Changeset 5247


Ignore:
Timestamp:
Feb 25, 2016 4:54:17 AM (8 years ago)
Author:
nanang
Message:

Misc (re #1882): Updated ioqueue epoll related vars in build config, e.g: update 'ac_linux_poll' value, introduce PJ_HAS_LINUX_EPOLL flag (thanks George Joseph for the patch).

Location:
pjproject/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/README.txt

    r3553 r5247  
    464464   ... 
    465465   Optional Features: 
     466   --enable-epoll           Use epoll on Linux instead of select 
    466467   --disable-floating-point     Disable floating point where possible 
    467468   --disable-sound              Exclude sound (i.e. use null sound) 
  • pjproject/trunk/aconfigure

    r5239 r5247  
    623623ac_main_obj 
    624624ac_host 
    625 ac_linux_poll 
    626625opus_present 
    627626opus_h_present 
     
    689688ac_external_speex 
    690689ac_shared_libraries 
     690ac_linux_poll 
    691691ac_os_objs 
    692692EGREP 
     
    56825682 
    56835683 
     5684 
    56845685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5 
    56855686$as_echo_n "checking ioqueue backend... " >&6; } 
     
    56905691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5 
    56915692$as_echo "/dev/epoll" >&6; } 
     5693                $as_echo "#define PJ_HAS_LINUX_EPOLL 1" >>confdefs.h 
     5694 
     5695                ac_linux_poll=epoll 
    56925696 
    56935697else 
    56945698 
    56955699                ac_os_objs=ioqueue_select.o 
    5696                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 
     5700                { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 
    56975701$as_echo "select()" >&6; } 
     5702                ac_linux_poll=select 
    56985703 
    56995704fi 
     
    84128417 
    84138418 
    8414  
    8415 ac_linux_poll=select 
    84168419 
    84178420ac_host=unix 
  • pjproject/trunk/aconfigure.ac

    r5239 r5247  
    411411dnl #  
    412412AC_SUBST(ac_os_objs) 
     413AC_SUBST(ac_linux_poll) 
    413414AC_MSG_CHECKING([ioqueue backend]) 
    414415AC_ARG_ENABLE(epoll, 
     
    418419                ac_os_objs=ioqueue_epoll.o 
    419420                AC_MSG_RESULT([/dev/epoll]) 
     421                AC_DEFINE(PJ_HAS_LINUX_EPOLL,1) 
     422                ac_linux_poll=epoll 
    420423              ], 
    421424              [ 
    422425                ac_os_objs=ioqueue_select.o 
    423                 AC_MSG_RESULT([select()])  
     426                AC_MSG_RESULT([select()]) 
     427                ac_linux_poll=select 
    424428              ]) 
    425429 
     
    18801884 
    18811885AC_SUBST(target) 
    1882 AC_SUBST(ac_linux_poll,select) 
    18831886AC_SUBST(ac_host,unix) 
    18841887AC_SUBST(ac_main_obj) 
  • pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in

    r3841 r5247  
    129129#undef PJ_SELECT_NEEDS_NFDS 
    130130 
     131/* Was Linux epoll support enabled */ 
     132#undef PJ_HAS_LINUX_EPOLL 
     133 
    131134/* Is errno a good way to retrieve OS errors? 
    132135 */ 
Note: See TracChangeset for help on using the changeset viewer.