Changeset 47

Show
Ignore:
Timestamp:
24.12.2001 22:20:22 (7 years ago)
Author:
tibob
Message:

IPFM v0.11 from official tarball

Location:
branches/TGZ_SOURCE
Files:
24 modified

Legend:

Unmodified
Added
Removed
  • branches/TGZ_SOURCE/HISTORY

    r42 r47  
     1Version 0.11 - 21 October 2000 - Samuel HOCEVAR (sam@via.ecp.fr), 
     2Robert CHERAMY (tibob@via.ecp.fr) 
     3------------------------------------------------------------------ 
     4sam : 
     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. 
     15tibob : 
     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 
    127Version 0.10.4 - 17 October 1999 - Andres KRAPF and Robert CHERAMY 
    228------------------------------------------------------------------ 
  • branches/TGZ_SOURCE/INSTALL

    r42 r47  
    11IPFM 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) 
     2IPFM is developed under Linux libc6 (Debian woody). 
     3It was reported to work under Linux libc5 (slackware) and libc6 (RedHat, 
     4SuSE), FreeBSD, OpenBSD, IRIX, and AIX. 
     5As we can't test new versions under these OSes, there might be problems. Please 
     6report them at ipfm@via.ecp.fr. 
    47 
    58Requirements 
     
    1922Here are the options used to build the Debian GNU/Linux package for example: 
    2023 
    21         ./configure --prefix=/usr 
     24        ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc 
    2225 
    2326Notes 
    2427----- 
    25 1. Local libpcap instalation 
     281. Local libpcap installation 
    2629  If ipfm and libpcap are installed in the same directory, (DIR/ipfm* and 
    2730  DIR/libpcap*) ipfm will use this local pcap library (you don't need to 
     
    3740  RedHat does), please let us know at ipfm@via.ecp.fr, so we can add it in 
    3841  future versions. 
    39   To make it compile before the new version is released, you have to change 
     42  To make it compile before a new version is released, you have to change 
    4043  the file source/Makefile, and set the line "INCLS =" to 
    4144  INCLS = -I/directory/holding/pcap/header/ 
     
    4649  correctly installed. 
    4750 
    48 5. You must be root... 
     515. You must be root ... 
    4952  * to install ipfm packages (.rpm and .deb) 
    5053  * to run ipfm 
    5154 
    5255For 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  
    1414ETCDIR  = $(ROOT)@sysconfdir@ 
    1515LOGDIR  = $(ROOT)/var/log 
     16VARRUN  = $(ROOT)/var/run 
    1617 
    1718INSTALL = @INSTALL@ 
     
    2223LEX  = @LEX@ 
    2324 
    24 CONFIGURATION_FILE=$(ETCDIR)/ipfm.conf 
    25 LOG_FILE=$(LOGDIR)/ipfm/%d-%b.%H-%M 
    26 TIME_INTERVAL='24*60*60' 
     25CONFIGFILE=$(ETCDIR)/ipfm.conf 
     26LOGFILE=$(LOGDIR)/ipfm/%d-%b.%H-%M 
     27PIDFILE=$(VARRUN)/ipfm.pid 
    2728 
  • branches/TGZ_SOURCE/Makefile.in

    r42 r47  
    1818        $(INSTALL) -m 755 source/ipfm $(SBINDIR)/ipfm 
    1919        $(INSTALL) -d -m 755 $(ETCDIR) 
    20         [ -f $(CONFIGURATION_FILE) ] || \ 
    21           $(INSTALL) -m 644 ipfm.conf.sample $(CONFIGURATION_FILE) 
     20        [ -f $(CONFIGFILE) ] || \ 
     21          $(INSTALL) -m 644 ipfm.conf.sample $(CONFIGFILE) 
    2222        $(INSTALL) -d -m 755 $(MANDIR)/man5 
    2323        $(INSTALL) -d -m 755 $(MANDIR)/man8 
     
    3333        $(RM) config.cache config.log config.status \ 
    3434          Makefile Makefile.common *~ core \ 
    35           source/Makefile source/*~ source/core \ 
     35          source/Makefile source/*~ source/core source/config.h \ 
    3636          doc/Makefile doc/*~ 
    3737 
     
    4040        echo "   ipfm is in               @sbindir@" && \ 
    4141        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)" 
    4445 
  • 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 
    92[NOT] PORT nb|<nb|>nb|all 
    103* Type (can be cumulative) 
    114TYPE TCP|UDP|ICMP 
    125 
    13 * file keeping the logs to prevent loosing data if machine is rebooted ? 
    14  
    156***** Rewrite output to accept modules ****** 
    167* be able to configure the output file format. 
    17  
    18 * Include date in output file 
    19  
    20 * Output On which network interface ipfm logs in log file. 
    218 
    229* Output Bandwidth (bps) instead of bytes in log file. 
     
    2714 
    2815* 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.10.4 
     10.11 
  • branches/TGZ_SOURCE/configure

    r42 r47  
    523523 
    524524 
     525 
    525526VERSION=`cat $srcdir/VERSION` 
    526527 
     
    532533set dummy uname; ac_word=$2 
    533534echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    534 echo "configure:535: checking for $ac_word" >&5 
     535echo "configure:536: checking for $ac_word" >&5 
    535536if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then 
    536537  echo $ac_n "(cached) $ac_c" 1>&6 
     
    566567 
    567568echo $ac_n "checking your OS""... $ac_c" 1>&6 
    568 echo "configure:569: checking your OS" >&5 
     569echo "configure:570: checking your OS" >&5 
    569570system=`$UNAME` 
    570571case $system in 
     
    595596set dummy gcc; ac_word=$2 
    596597echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    597 echo "configure:598: checking for $ac_word" >&5 
     598echo "configure:599: checking for $ac_word" >&5 
    598599if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    599600  echo $ac_n "(cached) $ac_c" 1>&6 
     
    625626set dummy cc; ac_word=$2 
    626627echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    627 echo "configure:628: checking for $ac_word" >&5 
     628echo "configure:629: checking for $ac_word" >&5 
    628629if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    629630  echo $ac_n "(cached) $ac_c" 1>&6 
     
    676677set dummy cl; ac_word=$2 
    677678echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    678 echo "configure:679: checking for $ac_word" >&5 
     679echo "configure:680: checking for $ac_word" >&5 
    679680if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    680681  echo $ac_n "(cached) $ac_c" 1>&6 
     
    708709 
    709710echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 
    710 echo "configure:711: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 
     711echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 
    711712 
    712713ac_ext=c 
     
    719720cat > conftest.$ac_ext << EOF 
    720721 
    721 #line 722 "configure" 
     722#line 723 "configure" 
    722723#include "confdefs.h" 
    723724 
    724725main(){return(0);} 
    725726EOF 
    726 if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     727if { (eval echo configure:728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    727728  ac_cv_prog_cc_works=yes 
    728729  # If we can't run a trivial program, we are probably using a cross compiler. 
     
    750751fi 
    751752echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 
    752 echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 
     753echo "configure:754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 
    753754echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 
    754755cross_compiling=$ac_cv_prog_cc_cross 
    755756 
    756757echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 
    757 echo "configure:758: checking whether we are using GNU C" >&5 
     758echo "configure:759: checking whether we are using GNU C" >&5 
    758759if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 
    759760  echo $ac_n "(cached) $ac_c" 1>&6 
     
    764765#endif 
    765766EOF 
    766 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 
     767if { 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 
    767768  ac_cv_prog_gcc=yes 
    768769else 
     
    783784CFLAGS= 
    784785echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 
    785 echo "configure:786: checking whether ${CC-cc} accepts -g" >&5 
     786echo "configure:787: checking whether ${CC-cc} accepts -g" >&5 
    786787if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 
    787788  echo $ac_n "(cached) $ac_c" 1>&6 
     
    819820set dummy $ac_prog; ac_word=$2 
    820821echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    821 echo "configure:822: checking for $ac_word" >&5 
     822echo "configure:823: checking for $ac_word" >&5 
    822823if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 
    823824  echo $ac_n "(cached) $ac_c" 1>&6 
     
    852853set dummy flex; ac_word=$2 
    853854echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    854 echo "configure:855: checking for $ac_word" >&5 
     855echo "configure:856: checking for $ac_word" >&5 
    855856if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 
    856857  echo $ac_n "(cached) $ac_c" 1>&6 
     
    886887  esac 
    887888  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 
    888 echo "configure:889: checking for yywrap in -l$ac_lib" >&5 
     889echo "configure:890: checking for yywrap in -l$ac_lib" >&5 
    889890ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 
    890891if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    894895LIBS="-l$ac_lib  $LIBS" 
    895896cat > conftest.$ac_ext <<EOF 
    896 #line 897 "configure" 
     897#line 898 "configure" 
    897898#include "confdefs.h" 
    898899/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    905906; return 0; } 
    906907EOF 
    907 if { (eval echo configure:908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     908if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    908909  rm -rf conftest* 
    909910  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    958959# ./install, which can be erroneously created by make from ./install.sh. 
    959960echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 
    960 echo "configure:961: checking for a BSD compatible install" >&5 
     961echo "configure:962: checking for a BSD compatible install" >&5 
    961962if test -z "$INSTALL"; then 
    962963if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 
     
    10131014 
    10141015echo $ac_n "checking for local libpcap""... $ac_c" 1>&6 
    1015 echo "configure:1016: checking for local libpcap" >&5 
     1016echo "configure:1017: checking for local libpcap" >&5 
    10161017pcapdirs=`ls .. | grep libpcap | sed -e 's:/$::' -e 's:^:../:' | tr '\n' ' '` 
    10171018libpcap=FAIL 
     
    10261027done 
    10271028 
    1028 if test $libpcap = FAIL ; then 
     1029if test "x$libpcap" = "xFAIL" ; then 
    10291030  echo "$ac_t""no" 1>&6 
    10301031  echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6 
    1031 echo "configure:1032: checking for main in -lpcap" >&5 
     1032echo "configure:1033: checking for main in -lpcap" >&5 
    10321033ac_lib_var=`echo pcap'_'main | sed 'y%./+-%__p_%'` 
    10331034if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    10371038LIBS="-lpcap  $LIBS" 
    10381039cat > conftest.$ac_ext <<EOF 
    1039 #line 1040 "configure" 
     1040#line 1041 "configure" 
    10401041#include "confdefs.h" 
    10411042 
     
    10441045; return 0; } 
    10451046EOF 
    1046 if { (eval echo configure:1047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1047if { (eval echo configure:1048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    10471048  rm -rf conftest* 
    10481049  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    10671068  pcapdir="" 
    10681069    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 
    1069 echo "configure:1070: checking how to run the C preprocessor" >&5 
     1070echo "configure:1071: checking how to run the C preprocessor" >&5 
    10701071# On Suns, sometimes $CPP names a directory. 
    10711072if test -n "$CPP" && test -d "$CPP"; then 
     
    10821083  # not just through cpp. 
    10831084  cat > conftest.$ac_ext <<EOF 
    1084 #line 1085 "configure" 
     1085#line 1086 "configure" 
    10851086#include "confdefs.h" 
    10861087#include <assert.h> 
     
    10881089EOF 
    10891090ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1090 { (eval echo configure:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     1091{ (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    10911092ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    10921093if test -z "$ac_err"; then 
     
    10991100  CPP="${CC-cc} -E -traditional-cpp" 
    11001101  cat > conftest.$ac_ext <<EOF 
    1101 #line 1102 "configure" 
     1102#line 1103 "configure" 
    11021103#include "confdefs.h" 
    11031104#include <assert.h> 
     
    11051106EOF 
    11061107ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1107 { (eval echo configure:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     1108{ (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    11081109ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    11091110if test -z "$ac_err"; then 
     
    11161117  CPP="${CC-cc} -nologo -E" 
    11171118  cat > conftest.$ac_ext <<EOF 
    1118 #line 1119 "configure" 
     1119#line 1120 "configure" 
    11191120#include "confdefs.h" 
    11201121#include <assert.h> 
     
    11221123EOF 
    11231124ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1124 { (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     1125{ (eval echo configure:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    11251126ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    11261127if test -z "$ac_err"; then 
     
    11481149ac_safe=`echo "pcap.h" | sed 'y%./+-%__p_%'` 
    11491150echo $ac_n "checking for pcap.h""... $ac_c" 1>&6 
    1150 echo "configure:1151: checking for pcap.h" >&5 
     1151echo "configure:1152: checking for pcap.h" >&5 
    11511152if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    11521153  echo $ac_n "(cached) $ac_c" 1>&6 
    11531154else 
    11541155  cat > conftest.$ac_ext <<EOF 
    1155 #line 1156 "configure" 
     1156#line 1157 "configure" 
    11561157#include "confdefs.h" 
    11571158#include <pcap.h> 
    11581159EOF 
    11591160ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1160 { (eval echo configure:1161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     1161{ (eval echo configure:1162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    11611162ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    11621163if test -z "$ac_err"; then 
     
    11801181fi 
    11811182 
    1182   if test $NO_PCAP_H = 1; then 
     1183  if test "x$NO_PCAP_H" = "x1"; then 
    11831184    echo $ac_n "checking for exotic pcap.h places""... $ac_c" 1>&6 
    1184 echo "configure:1185: checking for exotic pcap.h places" >&5 
     1185echo "configure:1186: checking for exotic pcap.h places" >&5 
    11851186    if test -r /usr/include/pcap/pcap.h; then 
    11861187      INCLS="$INCLS -I/usr/include/pcap" 
     
    11981199 
    11991200 
    1200 if test $CC = "gcc" ; then 
     1201if test "x$CC" = "xgcc" ; then 
    12011202  WARNINGS="-Wall" 
    12021203   
     
    12061207do 
    12071208echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
    1208 echo "configure:1209: checking for $ac_func" >&5 
     1209echo "configure:1210: checking for $ac_func" >&5 
    12091210if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
    12101211  echo $ac_n "(cached) $ac_c" 1>&6 
    12111212else 
    12121213  cat > conftest.$ac_ext <<EOF 
    1213 #line 1214 "configure" 
     1214#line 1215 "configure" 
    12141215#include "confdefs.h" 
    12151216/* System header to define __stub macros and hopefully few prototypes, 
     
    12341235; return 0; } 
    12351236EOF 
    1236 if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1237if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    12371238  rm -rf conftest* 
    12381239  eval "ac_cv_func_$ac_func=yes" 
     
    12621263do 
    12631264echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
    1264 echo "configure:1265: checking for $ac_func" >&5 
     1265echo "configure:1266: checking for $ac_func" >&5 
    12651266if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
    12661267  echo $ac_n "(cached) $ac_c" 1>&6 
    12671268else 
    12681269  cat > conftest.$ac_ext <<EOF 
    1269 #line 1270 "configure" 
     1270#line 1271 "configure" 
    12701271#include "confdefs.h" 
    12711272/* System header to define __stub macros and hopefully few prototypes, 
     
    12901291; return 0; } 
    12911292EOF 
    1292 if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1293if { (eval echo configure:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    12931294  rm -rf conftest* 
    12941295  eval "ac_cv_func_$ac_func=yes" 
     
    13181319do 
    13191320echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
    1320 echo "configure:1321: checking for $ac_func" >&5 
     1321echo "configure:1322: checking for $ac_func" >&5 
    13211322if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
    13221323  echo $ac_n "(cached) $ac_c" 1>&6 
    13231324else 
    13241325  cat > conftest.$ac_ext <<EOF 
    1325 #line 1326 "configure" 
     1326#line 1327 "configure" 
    13261327#include "confdefs.h" 
    13271328/* System header to define __stub macros and hopefully few prototypes, 
     
    13461347; return 0; } 
    13471348EOF 
    1348 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1349if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    13491350  rm -rf conftest* 
    13501351  eval "ac_cv_func_$ac_func=yes" 
     
    13671368else 
    13681369  echo "$ac_t""no" 1>&6 
     1370{ echo "configure: error: You need snprintf in order to use ipfm" 1>&2; exit 1; } 
    13691371fi 
    13701372done 
    13711373 
    13721374 
    1373 sysconfdir=/etc 
     1375 
     1376cat >> confdefs.h <<EOF 
     1377#define VERSION "$VERSION" 
     1378EOF 
     1379 
    13741380 
    13751381trap '' 1 2 15 
     
    14361442trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 
    14371443 
    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  
     1444DEFS=-DHAVE_CONFIG_H 
    14511445 
    14521446# Without the "./", some shells look in PATH for config.status. 
     
    14861480ac_given_INSTALL="$INSTALL" 
    14871481 
    1488 trap 'rm -fr `echo "Makefile Makefile.common source/Makefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 
     1482trap 'rm -fr `echo "Makefile Makefile.common source/Makefile doc/Makefile source/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 
    14891483EOF 
    14901484cat >> $CONFIG_STATUS <<EOF 
     
    16301624rm -f conftest.s* 
    16311625 
     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. 
     1630ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)' 
     1631ac_dB='\([      ][      ]*\)[^  ]*%\1#\2' 
     1632ac_dC='\3' 
     1633ac_dD='%g' 
     1634# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 
     1635ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)' 
     1636ac_uB='\([      ]\)%\1#\2define\3' 
     1637ac_uC=' ' 
     1638ac_uD='\4%g' 
     1639# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 
     1640ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)' 
     1641ac_eB='$%\1#\2define\3' 
     1642ac_eC=' ' 
     1643ac_eD='%g' 
     1644 
     1645if test "${CONFIG_HEADERS+set}" != set; then 
     1646EOF 
     1647cat >> $CONFIG_STATUS <<EOF 
     1648  CONFIG_HEADERS="source/config.h" 
     1649EOF 
     1650cat >> $CONFIG_STATUS <<\EOF 
     1651fi 
     1652for 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 
     1666EOF 
     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.