Ignore:
Timestamp:
Nov 17, 2007 10:27:34 AM (17 years ago)
Author:
bennylp
Message:

Ticket #414: Implement IP interface enumeration on Linux/Unix? with SIOCGIFCONF ioctl() call to a socket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r1502 r1584  
    56955695  cat >>confdefs.h <<\_ACEOF 
    56965696#define PJ_HAS_NETINET_IP_H 1 
     5697_ACEOF 
     5698 
     5699fi 
     5700 
     5701 
     5702if test "${ac_cv_header_net_if_h+set}" = set; then 
     5703  echo "$as_me:$LINENO: checking for net/if.h" >&5 
     5704echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6 
     5705if test "${ac_cv_header_net_if_h+set}" = set; then 
     5706  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5707fi 
     5708echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 
     5709echo "${ECHO_T}$ac_cv_header_net_if_h" >&6 
     5710else 
     5711  # Is the header compilable? 
     5712echo "$as_me:$LINENO: checking net/if.h usability" >&5 
     5713echo $ECHO_N "checking net/if.h usability... $ECHO_C" >&6 
     5714cat >conftest.$ac_ext <<_ACEOF 
     5715/* confdefs.h.  */ 
     5716_ACEOF 
     5717cat confdefs.h >>conftest.$ac_ext 
     5718cat >>conftest.$ac_ext <<_ACEOF 
     5719/* end confdefs.h.  */ 
     5720$ac_includes_default 
     5721#include <net/if.h> 
     5722_ACEOF 
     5723rm -f conftest.$ac_objext 
     5724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5725  (eval $ac_compile) 2>conftest.er1 
     5726  ac_status=$? 
     5727  grep -v '^ *+' conftest.er1 >conftest.err 
     5728  rm -f conftest.er1 
     5729  cat conftest.err >&5 
     5730  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5731  (exit $ac_status); } && 
     5732         { ac_try='test -z "$ac_c_werror_flag" 
     5733                         || test ! -s conftest.err' 
     5734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5735  (eval $ac_try) 2>&5 
     5736  ac_status=$? 
     5737  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5738  (exit $ac_status); }; } && 
     5739         { ac_try='test -s conftest.$ac_objext' 
     5740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5741  (eval $ac_try) 2>&5 
     5742  ac_status=$? 
     5743  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5744  (exit $ac_status); }; }; then 
     5745  ac_header_compiler=yes 
     5746else 
     5747  echo "$as_me: failed program was:" >&5 
     5748sed 's/^/| /' conftest.$ac_ext >&5 
     5749 
     5750ac_header_compiler=no 
     5751fi 
     5752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     5753echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     5754echo "${ECHO_T}$ac_header_compiler" >&6 
     5755 
     5756# Is the header present? 
     5757echo "$as_me:$LINENO: checking net/if.h presence" >&5 
     5758echo $ECHO_N "checking net/if.h presence... $ECHO_C" >&6 
     5759cat >conftest.$ac_ext <<_ACEOF 
     5760/* confdefs.h.  */ 
     5761_ACEOF 
     5762cat confdefs.h >>conftest.$ac_ext 
     5763cat >>conftest.$ac_ext <<_ACEOF 
     5764/* end confdefs.h.  */ 
     5765#include <net/if.h> 
     5766_ACEOF 
     5767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 
     5768  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 
     5769  ac_status=$? 
     5770  grep -v '^ *+' conftest.er1 >conftest.err 
     5771  rm -f conftest.er1 
     5772  cat conftest.err >&5 
     5773  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5774  (exit $ac_status); } >/dev/null; then 
     5775  if test -s conftest.err; then 
     5776    ac_cpp_err=$ac_c_preproc_warn_flag 
     5777    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 
     5778  else 
     5779    ac_cpp_err= 
     5780  fi 
     5781else 
     5782  ac_cpp_err=yes 
     5783fi 
     5784if test -z "$ac_cpp_err"; then 
     5785  ac_header_preproc=yes 
     5786else 
     5787  echo "$as_me: failed program was:" >&5 
     5788sed 's/^/| /' conftest.$ac_ext >&5 
     5789 
     5790  ac_header_preproc=no 
     5791fi 
     5792rm -f conftest.err conftest.$ac_ext 
     5793echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     5794echo "${ECHO_T}$ac_header_preproc" >&6 
     5795 
     5796# So?  What about this header? 
     5797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 
     5798  yes:no: ) 
     5799    { echo "$as_me:$LINENO: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&5 
     5800echo "$as_me: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 
     5801    { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the compiler's result" >&5 
     5802echo "$as_me: WARNING: net/if.h: proceeding with the compiler's result" >&2;} 
     5803    ac_header_preproc=yes 
     5804    ;; 
     5805  no:yes:* ) 
     5806    { echo "$as_me:$LINENO: WARNING: net/if.h: present but cannot be compiled" >&5 
     5807echo "$as_me: WARNING: net/if.h: present but cannot be compiled" >&2;} 
     5808    { echo "$as_me:$LINENO: WARNING: net/if.h:     check for missing prerequisite headers?" >&5 
     5809echo "$as_me: WARNING: net/if.h:     check for missing prerequisite headers?" >&2;} 
     5810    { echo "$as_me:$LINENO: WARNING: net/if.h: see the Autoconf documentation" >&5 
     5811echo "$as_me: WARNING: net/if.h: see the Autoconf documentation" >&2;} 
     5812    { echo "$as_me:$LINENO: WARNING: net/if.h:     section \"Present But Cannot Be Compiled\"" >&5 
     5813echo "$as_me: WARNING: net/if.h:     section \"Present But Cannot Be Compiled\"" >&2;} 
     5814    { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the preprocessor's result" >&5 
     5815echo "$as_me: WARNING: net/if.h: proceeding with the preprocessor's result" >&2;} 
     5816    { echo "$as_me:$LINENO: WARNING: net/if.h: in the future, the compiler will take precedence" >&5 
     5817echo "$as_me: WARNING: net/if.h: in the future, the compiler will take precedence" >&2;} 
     5818    ( 
     5819      cat <<\_ASBOX 
     5820## ------------------------------------ ## 
     5821## Report this to the pjproject lists.  ## 
     5822## ------------------------------------ ## 
     5823_ASBOX 
     5824    ) | 
     5825      sed "s/^/$as_me: WARNING:     /" >&2 
     5826    ;; 
     5827esac 
     5828echo "$as_me:$LINENO: checking for net/if.h" >&5 
     5829echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6 
     5830if test "${ac_cv_header_net_if_h+set}" = set; then 
     5831  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5832else 
     5833  ac_cv_header_net_if_h=$ac_header_preproc 
     5834fi 
     5835echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 
     5836echo "${ECHO_T}$ac_cv_header_net_if_h" >&6 
     5837 
     5838fi 
     5839if test $ac_cv_header_net_if_h = yes; then 
     5840  cat >>confdefs.h <<\_ACEOF 
     5841#define PJ_HAS_NET_IF_H 1 
    56975842_ACEOF 
    56985843 
Note: See TracChangeset for help on using the changeset viewer.