Changeset 47
- Timestamp:
- 24.12.2001 22:20:22 (7 years ago)
- Location:
- branches/TGZ_SOURCE
- Files:
-
- 24 modified
-
HISTORY (modified) (1 diff)
-
INSTALL (modified) (4 diffs)
-
Makefile.common.in (modified) (2 diffs)
-
Makefile.in (modified) (3 diffs)
-
TODO (modified) (2 diffs)
-
VERSION (modified) (1 diff)
-
configure (modified) (42 diffs)
-
configure.in (modified) (6 diffs)
-
doc/ipfm.conf.man (modified) (6 diffs)
-
doc/ipfm.man (modified) (4 diffs)
-
ipfm.conf.sample (modified) (1 diff)
-
source/Makefile.in (modified) (1 diff)
-
source/config.l (modified) (4 diffs)
-
source/config.y (modified) (13 diffs)
-
source/data.c (modified) (16 diffs)
-
source/data.h (modified) (2 diffs)
-
source/filter.c (modified) (6 diffs)
-
source/filter.h (modified) (1 diff)
-
source/init.c (modified) (15 diffs)
-
source/init.h (modified) (2 diffs)
-
source/ipfm.c (modified) (6 diffs)
-
source/pcap.c (modified) (11 diffs)
-
source/utils.c (modified) (3 diffs)
-
source/utils.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/TGZ_SOURCE/HISTORY
r42 r47 1 Version 0.11 - 21 October 2000 - Samuel HOCEVAR (sam@via.ecp.fr), 2 Robert CHERAMY (tibob@via.ecp.fr) 3 ------------------------------------------------------------------ 4 sam : 5 - changes to keep respecting the debian policy (sam convinced me to put the 6 /debian directory in the tarball) 7 - added counter to avoid going through the logs twice while dumping data 8 - ipfm now tires to create a directory if it is unable to create logfile 9 - sam checked my bad spelling. I'm ashamed of making so much mistakes ... 10 - avoid warning while empty tests (test x$var = "xfoo") in configure.in 11 - ability to fix an exact time origin and offset while logging. 12 Default offset is 0; 13 - cumulative stats 14 - added PID file handling when running in daemon mode. 15 tibob : 16 - put options that didn't belong into the Makefile (and in the gcc line) in 17 source/config.h.in. Lines are more readable at compile time. 18 - check if inet_aton exists. otherwise, uses old inet_addr method. 19 - removed a shift/reduce conflict in the yacc grammar 20 - A line of information is displayed in each logfile 21 - snprinf is now mandatory to use ipfm. People can cange snprintf to printf 22 if they want; at their own risk. 23 - replaced TIME Date [ALIGN Date] by DUMP EVERY Date AFTER Date 24 - added CLEAR EVERY Date AFTER Date 25 - SigUsr1 dumps data to disk without clearing buffers. 26 1 27 Version 0.10.4 - 17 October 1999 - Andres KRAPF and Robert CHERAMY 2 28 ------------------------------------------------------------------ -
branches/TGZ_SOURCE/INSTALL
r42 r47 1 1 IPFM is designed to work on every un*x system. 2 It was tested under Linux libc5 and libc6, FreeBSD, OpenBSD, IRIX, and should 3 work on AIX (please let us know if you tried other OSes) 2 IPFM is developed under Linux libc6 (Debian woody). 3 It was reported to work under Linux libc5 (slackware) and libc6 (RedHat, 4 SuSE), FreeBSD, OpenBSD, IRIX, and AIX. 5 As we can't test new versions under these OSes, there might be problems. Please 6 report them at ipfm@via.ecp.fr. 4 7 5 8 Requirements … … 19 22 Here are the options used to build the Debian GNU/Linux package for example: 20 23 21 ./configure --prefix=/usr 24 ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc 22 25 23 26 Notes 24 27 ----- 25 1. Local libpcap instal ation28 1. Local libpcap installation 26 29 If ipfm and libpcap are installed in the same directory, (DIR/ipfm* and 27 30 DIR/libpcap*) ipfm will use this local pcap library (you don't need to … … 37 40 RedHat does), please let us know at ipfm@via.ecp.fr, so we can add it in 38 41 future versions. 39 To make it compile before thenew version is released, you have to change42 To make it compile before a new version is released, you have to change 40 43 the file source/Makefile, and set the line "INCLS =" to 41 44 INCLS = -I/directory/holding/pcap/header/ … … 46 49 correctly installed. 47 50 48 5. You must be root ...51 5. You must be root ... 49 52 * to install ipfm packages (.rpm and .deb) 50 53 * to run ipfm 51 54 52 55 For any questions, remarks, requests, you can join us at ipfm@via.ecp.fr 53 --54 Robert CHERAMY <tibob@via.ecp.fr>55 Andres KRAPF <dae@via.ecp.fr> -
branches/TGZ_SOURCE/Makefile.common.in
r29 r47 14 14 ETCDIR = $(ROOT)@sysconfdir@ 15 15 LOGDIR = $(ROOT)/var/log 16 VARRUN = $(ROOT)/var/run 16 17 17 18 INSTALL = @INSTALL@ … … 22 23 LEX = @LEX@ 23 24 24 CONFIG URATION_FILE=$(ETCDIR)/ipfm.conf25 LOG _FILE=$(LOGDIR)/ipfm/%d-%b.%H-%M26 TIME_INTERVAL='24*60*60' 25 CONFIGFILE=$(ETCDIR)/ipfm.conf 26 LOGFILE=$(LOGDIR)/ipfm/%d-%b.%H-%M 27 PIDFILE=$(VARRUN)/ipfm.pid 27 28 -
branches/TGZ_SOURCE/Makefile.in
r42 r47 18 18 $(INSTALL) -m 755 source/ipfm $(SBINDIR)/ipfm 19 19 $(INSTALL) -d -m 755 $(ETCDIR) 20 [ -f $(CONFIG URATION_FILE) ] || \21 $(INSTALL) -m 644 ipfm.conf.sample $(CONFIG URATION_FILE)20 [ -f $(CONFIGFILE) ] || \ 21 $(INSTALL) -m 644 ipfm.conf.sample $(CONFIGFILE) 22 22 $(INSTALL) -d -m 755 $(MANDIR)/man5 23 23 $(INSTALL) -d -m 755 $(MANDIR)/man8 … … 33 33 $(RM) config.cache config.log config.status \ 34 34 Makefile Makefile.common *~ core \ 35 source/Makefile source/*~ source/core \35 source/Makefile source/*~ source/core source/config.h \ 36 36 doc/Makefile doc/*~ 37 37 … … 40 40 echo " ipfm is in @sbindir@" && \ 41 41 echo " man pages are in @mandir@" && \ 42 echo " configuration file is $(CONFIGURATION_FILE)" && \ 43 echo " log files are $(LOG_FILE)" 42 echo " configuration file is $(CONFIGFILE)" && \ 43 echo " pid file is $(PIDFILE)" && \ 44 echo " log files are $(LOGFILE)" 44 45 -
branches/TGZ_SOURCE/TODO
r42 r47 1 * Make old ANSI-only compilers support logs bigger than 4GB (will be done 2 only if there is a user request) 3 4 * add a warning in TestLogs() for redundant file names / possibility to append file. 5 6 * implement dns caching 7 8 * port log 1 * log by selecting protocol (TCP/UDP) and port 9 2 [NOT] PORT nb|<nb|>nb|all 10 3 * Type (can be cumulative) 11 4 TYPE TCP|UDP|ICMP 12 5 13 * file keeping the logs to prevent loosing data if machine is rebooted ?14 15 6 ***** Rewrite output to accept modules ****** 16 7 * be able to configure the output file format. 17 18 * Include date in output file19 20 * Output On which network interface ipfm logs in log file.21 8 22 9 * Output Bandwidth (bps) instead of bytes in log file. … … 27 14 28 15 * HTML output 29 * CISCO accounting process compatible format : host source totaltrafic numberofpacket 16 * CISCO accounting process compatible format : host source total_trafic number_of_packet 17 18 19 -
branches/TGZ_SOURCE/VERSION
r42 r47 1 0.1 0.41 0.11 -
branches/TGZ_SOURCE/configure
r42 r47 523 523 524 524 525 525 526 VERSION=`cat $srcdir/VERSION` 526 527 … … 532 533 set dummy uname; ac_word=$2 533 534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 534 echo "configure:53 5: checking for $ac_word" >&5535 echo "configure:536: checking for $ac_word" >&5 535 536 if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then 536 537 echo $ac_n "(cached) $ac_c" 1>&6 … … 566 567 567 568 echo $ac_n "checking your OS""... $ac_c" 1>&6 568 echo "configure:5 69: checking your OS" >&5569 echo "configure:570: checking your OS" >&5 569 570 system=`$UNAME` 570 571 case $system in … … 595 596 set dummy gcc; ac_word=$2 596 597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 597 echo "configure:59 8: checking for $ac_word" >&5598 echo "configure:599: checking for $ac_word" >&5 598 599 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 599 600 echo $ac_n "(cached) $ac_c" 1>&6 … … 625 626 set dummy cc; ac_word=$2 626 627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 627 echo "configure:62 8: checking for $ac_word" >&5628 echo "configure:629: checking for $ac_word" >&5 628 629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 629 630 echo $ac_n "(cached) $ac_c" 1>&6 … … 676 677 set dummy cl; ac_word=$2 677 678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 678 echo "configure:6 79: checking for $ac_word" >&5679 echo "configure:680: checking for $ac_word" >&5 679 680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 680 681 echo $ac_n "(cached) $ac_c" 1>&6 … … 708 709 709 710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 710 echo "configure:71 1: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5711 echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 711 712 712 713 ac_ext=c … … 719 720 cat > conftest.$ac_ext << EOF 720 721 721 #line 72 2"configure"722 #line 723 "configure" 722 723 #include "confdefs.h" 723 724 724 725 main(){return(0);} 725 726 EOF 726 if { (eval echo configure:72 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then727 if { (eval echo configure:728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 727 728 ac_cv_prog_cc_works=yes 728 729 # If we can't run a trivial program, we are probably using a cross compiler. … … 750 751 fi 751 752 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 752 echo "configure:75 3: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5753 echo "configure:754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 753 754 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 754 755 cross_compiling=$ac_cv_prog_cc_cross 755 756 756 757 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 757 echo "configure:75 8: checking whether we are using GNU C" >&5758 echo "configure:759: checking whether we are using GNU C" >&5 758 759 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 759 760 echo $ac_n "(cached) $ac_c" 1>&6 … … 764 765 #endif 765 766 EOF 766 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:76 7: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then767 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 767 768 ac_cv_prog_gcc=yes 768 769 else … … 783 784 CFLAGS= 784 785 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 785 echo "configure:78 6: checking whether ${CC-cc} accepts -g" >&5786 echo "configure:787: checking whether ${CC-cc} accepts -g" >&5 786 787 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 787 788 echo $ac_n "(cached) $ac_c" 1>&6 … … 819 820 set dummy $ac_prog; ac_word=$2 820 821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 821 echo "configure:82 2: checking for $ac_word" >&5822 echo "configure:823: checking for $ac_word" >&5 822 823 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 823 824 echo $ac_n "(cached) $ac_c" 1>&6 … … 852 853 set dummy flex; ac_word=$2 853 854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 854 echo "configure:85 5: checking for $ac_word" >&5855 echo "configure:856: checking for $ac_word" >&5 855 856 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 856 857 echo $ac_n "(cached) $ac_c" 1>&6 … … 886 887 esac 887 888 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 888 echo "configure:8 89: checking for yywrap in -l$ac_lib" >&5889 echo "configure:890: checking for yywrap in -l$ac_lib" >&5 889 890 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 890 891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 894 895 LIBS="-l$ac_lib $LIBS" 895 896 cat > conftest.$ac_ext <<EOF 896 #line 89 7"configure"897 #line 898 "configure" 897 898 #include "confdefs.h" 898 899 /* Override any gcc2 internal prototype to avoid an error. */ … … 905 906 ; return 0; } 906 907 EOF 907 if { (eval echo configure:90 8: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then908 if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 908 909 rm -rf conftest* 909 910 eval "ac_cv_lib_$ac_lib_var=yes" … … 958 959 # ./install, which can be erroneously created by make from ./install.sh. 959 960 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 960 echo "configure:96 1: checking for a BSD compatible install" >&5961 echo "configure:962: checking for a BSD compatible install" >&5 961 962 if test -z "$INSTALL"; then 962 963 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1013 1014 1014 1015 echo $ac_n "checking for local libpcap""... $ac_c" 1>&6 1015 echo "configure:101 6: checking for local libpcap" >&51016 echo "configure:1017: checking for local libpcap" >&5 1016 1017 pcapdirs=`ls .. | grep libpcap | sed -e 's:/$::' -e 's:^:../:' | tr '\n' ' '` 1017 1018 libpcap=FAIL … … 1026 1027 done 1027 1028 1028 if test $libpcap = FAIL; then1029 if test "x$libpcap" = "xFAIL" ; then 1029 1030 echo "$ac_t""no" 1>&6 1030 1031 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6 1031 echo "configure:103 2: checking for main in -lpcap" >&51032 echo "configure:1033: checking for main in -lpcap" >&5 1032 1033 ac_lib_var=`echo pcap'_'main | sed 'y%./+-%__p_%'` 1033 1034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1037 1038 LIBS="-lpcap $LIBS" 1038 1039 cat > conftest.$ac_ext <<EOF 1039 #line 104 0"configure"1040 #line 1041 "configure" 1040 1041 #include "confdefs.h" 1041 1042 … … 1044 1045 ; return 0; } 1045 1046 EOF 1046 if { (eval echo configure:104 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1047 if { (eval echo configure:1048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1047 1048 rm -rf conftest* 1048 1049 eval "ac_cv_lib_$ac_lib_var=yes" … … 1067 1068 pcapdir="" 1068 1069 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1069 echo "configure:107 0: checking how to run the C preprocessor" >&51070 echo "configure:1071: checking how to run the C preprocessor" >&5 1070 1071 # On Suns, sometimes $CPP names a directory. 1071 1072 if test -n "$CPP" && test -d "$CPP"; then … … 1082 1083 # not just through cpp. 1083 1084 cat > conftest.$ac_ext <<EOF 1084 #line 108 5"configure"1085 #line 1086 "configure" 1085 1086 #include "confdefs.h" 1086 1087 #include <assert.h> … … 1088 1089 EOF 1089 1090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1090 { (eval echo configure:109 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1091 { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1091 1092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1092 1093 if test -z "$ac_err"; then … … 1099 1100 CPP="${CC-cc} -E -traditional-cpp" 1100 1101 cat > conftest.$ac_ext <<EOF 1101 #line 110 2"configure"1102 #line 1103 "configure" 1102 1103 #include "confdefs.h" 1103 1104 #include <assert.h> … … 1105 1106 EOF 1106 1107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1107 { (eval echo configure:110 8: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1108 { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1108 1109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1109 1110 if test -z "$ac_err"; then … … 1116 1117 CPP="${CC-cc} -nologo -E" 1117 1118 cat > conftest.$ac_ext <<EOF 1118 #line 11 19"configure"1119 #line 1120 "configure" 1119 1120 #include "confdefs.h" 1120 1121 #include <assert.h> … … 1122 1123 EOF 1123 1124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1124 { (eval echo configure:112 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1125 { (eval echo configure:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1125 1126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1126 1127 if test -z "$ac_err"; then … … 1148 1149 ac_safe=`echo "pcap.h" | sed 'y%./+-%__p_%'` 1149 1150 echo $ac_n "checking for pcap.h""... $ac_c" 1>&6 1150 echo "configure:115 1: checking for pcap.h" >&51151 echo "configure:1152: checking for pcap.h" >&5 1151 1152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1152 1153 echo $ac_n "(cached) $ac_c" 1>&6 1153 1154 else 1154 1155 cat > conftest.$ac_ext <<EOF 1155 #line 115 6"configure"1156 #line 1157 "configure" 1156 1157 #include "confdefs.h" 1157 1158 #include <pcap.h> 1158 1159 EOF 1159 1160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1160 { (eval echo configure:116 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1161 { (eval echo configure:1162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1161 1162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1162 1163 if test -z "$ac_err"; then … … 1180 1181 fi 1181 1182 1182 if test $NO_PCAP_H = 1; then1183 if test "x$NO_PCAP_H" = "x1"; then 1183 1184 echo $ac_n "checking for exotic pcap.h places""... $ac_c" 1>&6 1184 echo "configure:118 5: checking for exotic pcap.h places" >&51185 echo "configure:1186: checking for exotic pcap.h places" >&5 1185 1186 if test -r /usr/include/pcap/pcap.h; then 1186 1187 INCLS="$INCLS -I/usr/include/pcap" … … 1198 1199 1199 1200 1200 if test $CC = "gcc" ; then1201 if test "x$CC" = "xgcc" ; then 1201 1202 WARNINGS="-Wall" 1202 1203 … … 1206 1207 do 1207 1208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1208 echo "configure:12 09: checking for $ac_func" >&51209 echo "configure:1210: checking for $ac_func" >&5 1209 1210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1210 1211 echo $ac_n "(cached) $ac_c" 1>&6 1211 1212 else 1212 1213 cat > conftest.$ac_ext <<EOF 1213 #line 121 4"configure"1214 #line 1215 "configure" 1214 1215 #include "confdefs.h" 1215 1216 /* System header to define __stub macros and hopefully few prototypes, … … 1234 1235 ; return 0; } 1235 1236 EOF 1236 if { (eval echo configure:123 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1237 if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1237 1238 rm -rf conftest* 1238 1239 eval "ac_cv_func_$ac_func=yes" … … 1262 1263 do 1263 1264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1264 echo "configure:126 5: checking for $ac_func" >&51265 echo "configure:1266: checking for $ac_func" >&5 1265 1266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1266 1267 echo $ac_n "(cached) $ac_c" 1>&6 1267 1268 else 1268 1269 cat > conftest.$ac_ext <<EOF 1269 #line 127 0"configure"1270 #line 1271 "configure" 1270 1271 #include "confdefs.h" 1271 1272 /* System header to define __stub macros and hopefully few prototypes, … … 1290 1291 ; return 0; } 1291 1292 EOF 1292 if { (eval echo configure:129 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1293 if { (eval echo configure:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1293 1294 rm -rf conftest* 1294 1295 eval "ac_cv_func_$ac_func=yes" … … 1318 1319 do 1319 1320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1320 echo "configure:132 1: checking for $ac_func" >&51321 echo "configure:1322: checking for $ac_func" >&5 1321 1322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1322 1323 echo $ac_n "(cached) $ac_c" 1>&6 1323 1324 else 1324 1325 cat > conftest.$ac_ext <<EOF 1325 #line 132 6"configure"1326 #line 1327 "configure" 1326 1327 #include "confdefs.h" 1327 1328 /* System header to define __stub macros and hopefully few prototypes, … … 1346 1347 ; return 0; } 1347 1348 EOF 1348 if { (eval echo configure:13 49: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1349 if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1349 1350 rm -rf conftest* 1350 1351 eval "ac_cv_func_$ac_func=yes" … … 1367 1368 else 1368 1369 echo "$ac_t""no" 1>&6 1370 { echo "configure: error: You need snprintf in order to use ipfm" 1>&2; exit 1; } 1369 1371 fi 1370 1372 done 1371 1373 1372 1374 1373 sysconfdir=/etc 1375 1376 cat >> confdefs.h <<EOF 1377 #define VERSION "$VERSION" 1378 EOF 1379 1374 1380 1375 1381 trap '' 1 2 15 … … 1436 1442 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1437 1443 1438 # Transform confdefs.h into DEFS. 1439 # Protect against shell expansion while executing Makefile rules. 1440 # Protect against Makefile macro expansion. 1441 cat > conftest.defs <<\EOF 1442 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 1443 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 1444 s%\[%\\&%g 1445 s%\]%\\&%g 1446 s%\$%$$%g 1447 EOF 1448 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 1449 rm -f conftest.defs 1450 1444 DEFS=-DHAVE_CONFIG_H 1451 1445 1452 1446 # Without the "./", some shells look in PATH for config.status. … … 1486 1480 ac_given_INSTALL="$INSTALL" 1487 1481 1488 trap 'rm -fr `echo "Makefile Makefile.common source/Makefile doc/Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 151482 trap 'rm -fr `echo "Makefile Makefile.common source/Makefile doc/Makefile source/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1489 1483 EOF 1490 1484 cat >> $CONFIG_STATUS <<EOF … … 1630 1624 rm -f conftest.s* 1631 1625 1626 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1627 # NAME is the cpp macro being defined and VALUE is the value it is being given. 1628 # 1629 # ac_d sets the value in "#define NAME VALUE" lines. 1630 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 1631 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 1632 ac_dC='\3' 1633 ac_dD='%g' 1634 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 1635 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1636 ac_uB='\([ ]\)%\1#\2define\3' 1637 ac_uC=' ' 1638 ac_uD='\4%g' 1639 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 1640 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1641 ac_eB='$%\1#\2define\3' 1642 ac_eC=' ' 1643 ac_eD='%g' 1644 1645 if test "${CONFIG_HEADERS+set}" != set; then 1646 EOF 1647 cat >> $CONFIG_STATUS <<EOF 1648 CONFIG_HEADERS="source/config.h" 1649 EOF 1650 cat >> $CONFIG_STATUS <<\EOF 1651 fi 1652 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 1653 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1654 case "$ac_file" in 1655 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1656 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1657 *) ac_file_in="${ac_file}.in" ;; 1658 esac 1659 1660 echo creating $ac_file 1661 1662 rm -f conftest.frag conftest.in conftest.out 1663 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1664 cat $ac_file_inputs > conftest.in 1665 1666 EOF 1667 1668 # Transform confdefs.h into a sed script conftest.vals that substitutes 1669 # the proper values into config.h.in to produce config.h. And first: 1670 # Protect against being on the right side of a sed subst in config.status. 1671 # Protect against being in an unquoted here document in config.status.
