configure.in (17683) | configure.in (26175) |
---|---|
1dnl @(#) $Header: configure.in,v 1.56 96/07/17 15:27:07 leres Exp $ (LBL) | 1dnl @(#) $Header: configure.in,v 1.58 96/11/30 20:05:44 leres Exp $ (LBL) |
2dnl 3dnl Copyright (c) 1994, 1995, 1996 4dnl The Regents of the University of California. All rights reserved. 5dnl 6dnl Process this file with autoconf to produce a configure script. 7dnl 8 9AC_INIT(pcap.c) --- 30 unchanged lines hidden (view full) --- 40elif test -r /dev/nit ; then 41 V_PCAP=snit 42elif test -r /usr/include/sys/net/nit.h ; then 43 V_PCAP=nit 44elif test -r /usr/include/net/raw.h ; then 45 V_PCAP=snoop 46elif test -r /usr/include/sys/dlpi.h ; then 47 V_PCAP=dlpi | 2dnl 3dnl Copyright (c) 1994, 1995, 1996 4dnl The Regents of the University of California. All rights reserved. 5dnl 6dnl Process this file with autoconf to produce a configure script. 7dnl 8 9AC_INIT(pcap.c) --- 30 unchanged lines hidden (view full) --- 40elif test -r /dev/nit ; then 41 V_PCAP=snit 42elif test -r /usr/include/sys/net/nit.h ; then 43 V_PCAP=nit 44elif test -r /usr/include/net/raw.h ; then 45 V_PCAP=snoop 46elif test -r /usr/include/sys/dlpi.h ; then 47 V_PCAP=dlpi |
48elif test -r /usr/include/linux/socket.h ; then 49 V_PCAP=linux |
|
48elif test -c /dev/bpf0 ; then # check again in case not readable 49 V_PCAP=bpf 50elif test -c /dev/enet ; then # check again in case not readable 51 V_PCAP=enet 52elif test -c /dev/nit ; then # check again in case not readable 53 V_PCAP=snit 54else 55 V_PCAP=null --- 8 unchanged lines hidden (view full) --- 64 ;; 65 66dlpi) 67 AC_CHECK_HEADERS(sys/bufmod.h sys/dlpi_ext.h) 68 AC_MSG_CHECKING(for /dev/dlpi device) 69 if test -c /dev/dlpi ; then 70 AC_MSG_RESULT(yes) 71 AC_DEFINE(HAVE_DEV_DLPI) | 50elif test -c /dev/bpf0 ; then # check again in case not readable 51 V_PCAP=bpf 52elif test -c /dev/enet ; then # check again in case not readable 53 V_PCAP=enet 54elif test -c /dev/nit ; then # check again in case not readable 55 V_PCAP=snit 56else 57 V_PCAP=null --- 8 unchanged lines hidden (view full) --- 66 ;; 67 68dlpi) 69 AC_CHECK_HEADERS(sys/bufmod.h sys/dlpi_ext.h) 70 AC_MSG_CHECKING(for /dev/dlpi device) 71 if test -c /dev/dlpi ; then 72 AC_MSG_RESULT(yes) 73 AC_DEFINE(HAVE_DEV_DLPI) |
72 73 case "$target_os" in 74 75 hpux9*) 76 AC_DEFINE(HAVE_HPUX9) 77 ;; 78 79 esac | |
80 else 81 AC_MSG_RESULT(no) 82 dir="/dev/dlpi" 83 AC_MSG_CHECKING(for $dir directory) 84 if test -d $dir ; then 85 AC_MSG_RESULT(yes) 86 AC_DEFINE_UNQUOTED(PCAP_DEV_PREFIX, "$dir") 87 else --- 7 unchanged lines hidden (view full) --- 95 96case "$target_os" in 97 98aix*) 99 dnl Workaround to enable certain features 100 AC_DEFINE(_SUN) 101 ;; 102 | 74 else 75 AC_MSG_RESULT(no) 76 dir="/dev/dlpi" 77 AC_MSG_CHECKING(for $dir directory) 78 if test -d $dir ; then 79 AC_MSG_RESULT(yes) 80 AC_DEFINE_UNQUOTED(PCAP_DEV_PREFIX, "$dir") 81 else --- 7 unchanged lines hidden (view full) --- 89 90case "$target_os" in 91 92aix*) 93 dnl Workaround to enable certain features 94 AC_DEFINE(_SUN) 95 ;; 96 |
97hpux9*) 98 AC_DEFINE(HAVE_HPUX9) 99 ;; 100 101sinix*) 102 AC_MSG_CHECKING(if SINIX compiler defines sinix) 103 AC_CACHE_VAL(ac_cv_cc_sinix_defined, 104 AC_TRY_COMPILE( 105 [], 106 [int i = sinix;], 107 ac_cv_cc_sinix_defined=yes, 108 ac_cv_cc_sinix_defined=no)) 109 AC_MSG_RESULT($ac_cv_cc_sinix_defined) 110 if test $ac_cv_cc_sinix_defined = no ; then 111 AC_DEFINE(sinix) 112 fi 113 ;; 114 |
|
103solaris*) 104 AC_DEFINE(HAVE_SOLARIS) 105 ;; | 115solaris*) 116 AC_DEFINE(HAVE_SOLARIS) 117 ;; |
118 119linux*) 120 V_INCLS="$V_INCLS -Ilinux-include" 121 ;; |
|
106esac 107 108AC_CHECK_PROGS(V_RANLIB, ranlib, @true) 109 110AC_LBL_DEVEL(V_CCOPT) 111 112AC_LBL_SOCKADDR_SA_LEN 113 --- 27 unchanged lines hidden --- | 122esac 123 124AC_CHECK_PROGS(V_RANLIB, ranlib, @true) 125 126AC_LBL_DEVEL(V_CCOPT) 127 128AC_LBL_SOCKADDR_SA_LEN 129 --- 27 unchanged lines hidden --- |