Changeset 63

Show
Ignore:
Timestamp:
26.12.2001 17:14:52 (7 years ago)
Author:
tibob
Message:

v0.11.5 in progress.
- integrated Loic Tortay's patches that did not change IPFM output
- removed linux specific promisc mode setting
- began to clean code
--
tibob

Location:
trunk
Files:
25 modified

Legend:

Unmodified
Added
Removed
  • trunk/HISTORY

    r60 r63  
     1Version 0.11.5 - 11 November 2001 
     2--------------------------------- 
     3- a forked child exits with _exit(), so we can let pcap library set 
     4  and unset promisc mode for us under linux. Thanks to Igor Podlesny 
     5  <poige@morning.ru> for the hint. 
     6- manfile update (RC & LT) 
     7Changes by Loïc Tortay : 
     8- moved /var/ to @localstatedir@ 
     9- changed permission of ipfm executable and manfiles 
     10- various changes in configure.in (OS, program and function checks) 
     11- added xmalloc, xfree, xstrdup for memory allocation control 
     12 
     13 
    114Version 0.11.4 - 07 January 2001 - Robert CHERAMY <robert@cheramy.net> 
    215---------------------------------------------------------------------- 
     
    3447  /debian directory in the tarball) 
    3548- added counter to avoid going through the logs twice while dumping data 
    36 - ipfm now tires to create a directory if it is unable to create logfile 
     49- ipfm now tries to create a directory if it is unable to create logfile 
    3750- sam checked my bad spelling. I'm ashamed of making so much mistakes ... 
    3851- avoid warning while empty tests (test x$var = "xfoo") in configure.in 
  • trunk/Makefile.common.in

    r48 r63  
    22# Common definitions for all the Makefile's 
    33# Copyright (c) 1999 Robert CHERAMY <tibob@via.ecp.fr> 
     4# Copyright (c) 2001 Loïc Tortay & IN2P3 Computing Center <tortay@cc.in2p3.fr> 
    45# 
    56 
     
    1314MANDIR  = $(ROOT)@mandir@ 
    1415ETCDIR  = $(ROOT)@sysconfdir@ 
    15 LOGDIR  = $(ROOT)/var/log 
    16 VARRUN  = $(ROOT)/var/run 
     16LOGDIR  = $(ROOT)@localstatedir@/log 
     17VARRUN  = $(ROOT)@localstatedir@/run 
    1718 
    1819INSTALL = @INSTALL@ 
  • trunk/Makefile.in

    r48 r63  
    22# Makefile for ipfm 
    33# Copyright (c) 1999 Robert CHERAMY <tibob@via.ecp.fr> 
     4# Copyright (c) 2001 Loïc Tortay & IN2P3 Computing Center <tortay@cc.in2p3.fr> 
    45# 
    56 
     
    1617install: all 
    1718        $(INSTALL) -d -m 755 $(SBINDIR) 
    18         $(INSTALL) -m 755 source/ipfm $(SBINDIR)/ipfm 
     19        $(INSTALL) -m 555 source/ipfm $(SBINDIR)/ipfm 
    1920        $(INSTALL) -d -m 755 $(ETCDIR) 
    2021        [ -f $(CONFIGFILE) ] || \ 
     
    2223        $(INSTALL) -d -m 755 $(MANDIR)/man5 
    2324        $(INSTALL) -d -m 755 $(MANDIR)/man8 
    24         $(INSTALL) -m 644 doc/ipfm.conf.5 $(MANDIR)/man5/ipfm.conf.5 
    25         $(INSTALL) -m 644 doc/ipfm.8 $(MANDIR)/man8/ipfm.8 
     25        $(INSTALL) -m 444 doc/ipfm.conf.5 $(MANDIR)/man5/ipfm.conf.5 
     26        $(INSTALL) -m 444 doc/ipfm.8 $(MANDIR)/man8/ipfm.8 
    2627        $(INSTALL) -d -m 755 $(LOGDIR)/ipfm 
    2728 
     
    3435          Makefile Makefile.common *~ core \ 
    3536          source/Makefile source/*~ source/core source/config.h \ 
    36           doc/Makefile doc/*~ 
     37          source/missing/Makefile doc/Makefile doc/*~ 
    3738 
    3839configdump: 
  • trunk/VERSION

    r60 r63  
    1 0.11.4 
     10.11.5pre1 
  • trunk/configure

    r48 r63  
    591591 
    592592    ;; 
     593  SunOS) 
     594    echo "$ac_t""SunOS" 1>&6 
     595    cat >> confdefs.h <<\EOF 
     596#define __OS_SUNOS__ 1 
     597EOF 
     598 
     599    LIBS="$LIBS -lnsl -lsocket" 
     600    ;; 
     601  AIX) 
     602    echo "$ac_t""AIX" 1>&6 
     603    cat >> confdefs.h <<\EOF 
     604#define __OS_AIX__ 1 
     605EOF 
     606 
     607    ;; 
     608  HP-UX) 
     609    echo "$ac_t""HPUX" 1>&6 
     610    cat >> confdefs.h <<\EOF 
     611#define __OS_HPUX__ 1 
     612EOF 
     613 
     614    ;; 
     615  OSF1) 
     616    echo "$ac_t""OSF1" 1>&6 
     617    cat >> confdefs.h <<\EOF 
     618#define __OS_OSF1__ 1 
     619EOF 
     620 
     621    ;; 
    593622esac 
    594623 
     
    596625set dummy gcc; ac_word=$2 
    597626echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    598 echo "configure:599: checking for $ac_word" >&5 
     627echo "configure:628: checking for $ac_word" >&5 
    599628if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    600629  echo $ac_n "(cached) $ac_c" 1>&6 
     
    626655set dummy cc; ac_word=$2 
    627656echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    628 echo "configure:629: checking for $ac_word" >&5 
     657echo "configure:658: checking for $ac_word" >&5 
    629658if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    630659  echo $ac_n "(cached) $ac_c" 1>&6 
     
    677706set dummy cl; ac_word=$2 
    678707echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    679 echo "configure:680: checking for $ac_word" >&5 
     708echo "configure:709: checking for $ac_word" >&5 
    680709if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    681710  echo $ac_n "(cached) $ac_c" 1>&6 
     
    709738 
    710739echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 
    711 echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 
     740echo "configure:741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 
    712741 
    713742ac_ext=c 
     
    720749cat > conftest.$ac_ext << EOF 
    721750 
    722 #line 723 "configure" 
     751#line 752 "configure" 
    723752#include "confdefs.h" 
    724753 
    725754main(){return(0);} 
    726755EOF 
    727 if { (eval echo configure:728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     756if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    728757  ac_cv_prog_cc_works=yes 
    729758  # If we can't run a trivial program, we are probably using a cross compiler. 
     
    751780fi 
    752781echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 
    753 echo "configure:754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 
     782echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 
    754783echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 
    755784cross_compiling=$ac_cv_prog_cc_cross 
    756785 
    757786echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 
    758 echo "configure:759: checking whether we are using GNU C" >&5 
     787echo "configure:788: checking whether we are using GNU C" >&5 
    759788if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 
    760789  echo $ac_n "(cached) $ac_c" 1>&6 
     
    765794#endif 
    766795EOF 
    767 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 
     796if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 
    768797  ac_cv_prog_gcc=yes 
    769798else 
     
    784813CFLAGS= 
    785814echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 
    786 echo "configure:787: checking whether ${CC-cc} accepts -g" >&5 
     815echo "configure:816: checking whether ${CC-cc} accepts -g" >&5 
    787816if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 
    788817  echo $ac_n "(cached) $ac_c" 1>&6 
     
    815844fi 
    816845 
    817 for ac_prog in 'bison -y' byacc 
    818 do 
    819 # Extract the first word of "$ac_prog", so it can be a program name with args. 
    820 set dummy $ac_prog; ac_word=$2 
    821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    822 echo "configure:823: checking for $ac_word" >&5 
    823 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 
    824   echo $ac_n "(cached) $ac_c" 1>&6 
    825 else 
    826   if test -n "$YACC"; then 
    827   ac_cv_prog_YACC="$YACC" # Let the user override the test. 
    828 else 
    829   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    830   ac_dummy="$PATH" 
    831   for ac_dir in $ac_dummy; do 
    832     test -z "$ac_dir" && ac_dir=. 
    833     if test -f $ac_dir/$ac_word; then 
    834       ac_cv_prog_YACC="$ac_prog" 
    835       break 
    836     fi 
    837   done 
    838   IFS="$ac_save_ifs" 
    839 fi 
    840 fi 
    841 YACC="$ac_cv_prog_YACC" 
    842 if test -n "$YACC"; then 
    843   echo "$ac_t""$YACC" 1>&6 
    844 else 
    845   echo "$ac_t""no" 1>&6 
    846 fi 
    847  
    848 test -n "$YACC" && break 
    849 done 
    850 test -n "$YACC" || YACC="yacc" 
    851  
    852 # Extract the first word of "flex", so it can be a program name with args. 
    853 set dummy flex; ac_word=$2 
    854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    855 echo "configure:856: checking for $ac_word" >&5 
    856 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 
    857   echo $ac_n "(cached) $ac_c" 1>&6 
    858 else 
    859   if test -n "$LEX"; then 
    860   ac_cv_prog_LEX="$LEX" # Let the user override the test. 
    861 else 
    862   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    863   ac_dummy="$PATH" 
    864   for ac_dir in $ac_dummy; do 
    865     test -z "$ac_dir" && ac_dir=. 
    866     if test -f $ac_dir/$ac_word; then 
    867       ac_cv_prog_LEX="flex" 
    868       break 
    869     fi 
    870   done 
    871   IFS="$ac_save_ifs" 
    872   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" 
    873 fi 
    874 fi 
    875 LEX="$ac_cv_prog_LEX" 
    876 if test -n "$LEX"; then 
    877   echo "$ac_t""$LEX" 1>&6 
    878 else 
    879   echo "$ac_t""no" 1>&6 
    880 fi 
    881  
    882 if test -z "$LEXLIB" 
    883 then 
    884   case "$LEX" in 
    885   flex*) ac_lib=fl ;; 
    886   *) ac_lib=l ;; 
    887   esac 
    888   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 
    889 echo "configure:890: checking for yywrap in -l$ac_lib" >&5 
    890 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 
    891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
    892   echo $ac_n "(cached) $ac_c" 1>&6 
    893 else 
    894   ac_save_LIBS="$LIBS" 
    895 LIBS="-l$ac_lib  $LIBS" 
    896 cat > conftest.$ac_ext <<EOF 
    897 #line 898 "configure" 
     846echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 
     847echo "configure:848: checking how to run the C preprocessor" >&5 
     848# On Suns, sometimes $CPP names a directory. 
     849if test -n "$CPP" && test -d "$CPP"; then 
     850  CPP= 
     851fi 
     852if test -z "$CPP"; then 
     853if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 
     854  echo $ac_n "(cached) $ac_c" 1>&6 
     855else 
     856    # This must be in double quotes, not single quotes, because CPP may get 
     857  # substituted into the Makefile and "${CC-cc}" will confuse make. 
     858  CPP="${CC-cc} -E" 
     859  # On the NeXT, cc -E runs the code through the compiler's parser, 
     860  # not just through cpp. 
     861  cat > conftest.$ac_ext <<EOF 
     862#line 863 "configure" 
    898863#include "confdefs.h" 
    899 /* Override any gcc2 internal prototype to avoid an error.  */ 
    900 /* We use char because int might match the return type of a gcc2 
    901     builtin and then its argument prototype would still apply.  */ 
    902 char yywrap(); 
    903  
    904 int main() { 
    905 yywrap() 
    906 ; return 0; } 
    907 EOF 
    908 if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    909   rm -rf conftest* 
    910   eval "ac_cv_lib_$ac_lib_var=yes" 
    911 else 
     864#include <assert.h> 
     865Syntax Error 
     866EOF 
     867ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
     868{ (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     869ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
     870if test -z "$ac_err"; then 
     871  : 
     872else 
     873  echo "$ac_err" >&5 
    912874  echo "configure: failed program was:" >&5 
    913875  cat conftest.$ac_ext >&5 
    914876  rm -rf conftest* 
    915   eval "ac_cv_lib_$ac_lib_var=no" 
     877  CPP="${CC-cc} -E -traditional-cpp" 
     878  cat > conftest.$ac_ext <<EOF 
     879#line 880 "configure" 
     880#include "confdefs.h" 
     881#include <assert.h> 
     882Syntax Error 
     883EOF 
     884ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
     885{ (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     886ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
     887if test -z "$ac_err"; then 
     888  : 
     889else 
     890  echo "$ac_err" >&5 
     891  echo "configure: failed program was:" >&5 
     892  cat conftest.$ac_ext >&5 
     893  rm -rf conftest* 
     894  CPP="${CC-cc} -nologo -E" 
     895  cat > conftest.$ac_ext <<EOF 
     896#line 897 "configure" 
     897#include "confdefs.h" 
     898#include <assert.h> 
     899Syntax Error 
     900EOF 
     901ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
     902{ (eval echo configure:903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     903ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
     904if test -z "$ac_err"; then 
     905  : 
     906else 
     907  echo "$ac_err" >&5 
     908  echo "configure: failed program was:" >&5 
     909  cat conftest.$ac_ext >&5 
     910  rm -rf conftest* 
     911  CPP=/lib/cpp 
    916912fi 
    917913rm -f conftest* 
    918 LIBS="$ac_save_LIBS" 
    919  
    920 fi 
    921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
    922   echo "$ac_t""yes" 1>&6 
    923   LEXLIB="-l$ac_lib" 
    924 else 
    925   echo "$ac_t""no" 1>&6 
    926 fi 
    927  
    928 fi 
     914fi 
     915rm -f conftest* 
     916fi 
     917rm -f conftest* 
     918  ac_cv_prog_CPP="$CPP" 
     919fi 
     920  CPP="$ac_cv_prog_CPP" 
     921else 
     922  ac_cv_prog_CPP="$CPP" 
     923fi 
     924echo "$ac_t""$CPP" 1>&6 
    929925 
    930926ac_aux_dir= 
     
    959955# ./install, which can be erroneously created by make from ./install.sh. 
    960956echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 
    961 echo "configure:962: checking for a BSD compatible install" >&5 
     957echo "configure:958: checking for a BSD compatible install" >&5 
    962958if test -z "$INSTALL"; then 
    963959if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 
     
    10111007test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 
    10121008 
     1009# Extract the first word of "flex", so it can be a program name with args. 
     1010set dummy flex; ac_word=$2 
     1011echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
     1012echo "configure:1013: checking for $ac_word" >&5 
     1013if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 
     1014  echo $ac_n "(cached) $ac_c" 1>&6 
     1015else 
     1016  if test -n "$LEX"; then 
     1017  ac_cv_prog_LEX="$LEX" # Let the user override the test. 
     1018else 
     1019  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
     1020  ac_dummy="$PATH" 
     1021  for ac_dir in $ac_dummy; do 
     1022    test -z "$ac_dir" && ac_dir=. 
     1023    if test -f $ac_dir/$ac_word; then 
     1024      ac_cv_prog_LEX="flex" 
     1025      break 
     1026    fi 
     1027  done 
     1028  IFS="$ac_save_ifs" 
     1029  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" 
     1030fi 
     1031fi 
     1032LEX="$ac_cv_prog_LEX" 
     1033if test -n "$LEX"; then 
     1034  echo "$ac_t""$LEX" 1>&6 
     1035else 
     1036  echo "$ac_t""no" 1>&6 
     1037fi 
     1038 
     1039if test -z "$LEXLIB" 
     1040then 
     1041  case "$LEX" in 
     1042  flex*) ac_lib=fl ;; 
     1043  *) ac_lib=l ;; 
     1044  esac 
     1045  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 
     1046echo "configure:1047: checking for yywrap in -l$ac_lib" >&5 
     1047ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 
     1048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     1049  echo $ac_n "(cached) $ac_c" 1>&6 
     1050else 
     1051  ac_save_LIBS="$LIBS" 
     1052LIBS="-l$ac_lib  $LIBS" 
     1053cat > conftest.$ac_ext <<EOF 
     1054#line 1055 "configure" 
     1055#include "confdefs.h" 
     1056/* Override any gcc2 internal prototype to avoid an error.  */ 
     1057/* We use char because int might match the return type of a gcc2 
     1058    builtin and then its argument prototype would still apply.  */ 
     1059char yywrap(); 
     1060 
     1061int main() { 
     1062yywrap() 
     1063; return 0; } 
     1064EOF 
     1065if { (eval echo configure:1066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1066  rm -rf conftest* 
     1067  eval "ac_cv_lib_$ac_lib_var=yes" 
     1068else 
     1069  echo "configure: failed program was:" >&5 
     1070  cat conftest.$ac_ext >&5 
     1071  rm -rf conftest* 
     1072  eval "ac_cv_lib_$ac_lib_var=no" 
     1073fi 
     1074rm -f conftest* 
     1075LIBS="$ac_save_LIBS" 
     1076 
     1077fi 
     1078if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
     1079  echo "$ac_t""yes" 1>&6 
     1080  LEXLIB="-l$ac_lib" 
     1081else 
     1082  echo "$ac_t""no" 1>&6 
     1083fi 
     1084 
     1085fi 
     1086 
     1087# Extract the first word of "ranlib", so it can be a program name with args. 
     1088set dummy ranlib; ac_word=$2 
     1089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
     1090echo "configure:1091: checking for $ac_word" >&5 
     1091if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 
     1092  echo $ac_n "(cached) $ac_c" 1>&6 
     1093else 
     1094  if test -n "$RANLIB"; then 
     1095  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 
     1096else 
     1097  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
     1098  ac_dummy="$PATH" 
     1099  for ac_dir in $ac_dummy; do 
     1100    test -z "$ac_dir" && ac_dir=. 
     1101    if test -f $ac_dir/$ac_word; then 
     1102      ac_cv_prog_RANLIB="ranlib" 
     1103      break 
     1104    fi 
     1105  done 
     1106  IFS="$ac_save_ifs" 
     1107  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 
     1108fi 
     1109fi 
     1110RANLIB="$ac_cv_prog_RANLIB" 
     1111if test -n "$RANLIB"; then 
     1112  echo "$ac_t""$RANLIB" 1>&6 
     1113else 
     1114  echo "$ac_t""no" 1>&6 
     1115fi 
     1116 
     1117for ac_prog in 'bison -y' byacc 
     1118do 
     1119# Extract the first word of "$ac_prog", so it can be a program name with args. 
     1120set dummy $ac_prog; ac_word=$2 
     1121echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
     1122echo "configure:1123: checking for $ac_word" >&5 
     1123if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 
     1124  echo $ac_n "(cached) $ac_c" 1>&6 
     1125else 
     1126  if test -n "$YACC"; then 
     1127  ac_cv_prog_YACC="$YACC" # Let the user override the test. 
     1128else 
     1129  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
     1130  ac_dummy="$PATH" 
     1131  for ac_dir in $ac_dummy; do 
     1132    test -z "$ac_dir" && ac_dir=. 
     1133    if test -f $ac_dir/$ac_word; then 
     1134      ac_cv_prog_YACC="$ac_prog" 
     1135      break 
     1136    fi 
     1137  done 
     1138  IFS="$ac_save_ifs" 
     1139fi 
     1140fi 
     1141YACC="$ac_cv_prog_YACC" 
     1142if test -n "$YACC"; then 
     1143  echo "$ac_t""$YACC" 1>&6 
     1144else 
     1145  echo "$ac_t""no" 1>&6 
     1146fi 
     1147 
     1148test -n "$YACC" && break 
     1149done 
     1150test -n "$YACC" || YACC="yacc" 
     1151 
     1152# Extract the first word of "ar", so it can be a program name with args. 
     1153set dummy ar; ac_word=$2 
     1154echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
     1155echo "configure:1156: checking for $ac_word" >&5 
     1156if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then 
     1157  echo $ac_n "(cached) $ac_c" 1>&6 
     1158else 
     1159  case "$AR" in 
     1160  /*) 
     1161  ac_cv_path_AR="$AR" # Let the user override the test with a path. 
     1162  ;; 
     1163  ?:/*)                   
     1164  ac_cv_path_AR="$AR" # Let the user override the test with a dos path. 
     1165  ;; 
     1166  *) 
     1167  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
     1168  ac_dummy="$PATH" 
     1169  for ac_dir in $ac_dummy; do  
     1170    test -z "$ac_dir" && ac_dir=. 
     1171    if test -f $ac_dir/$ac_word; then 
     1172      ac_cv_path_AR="$ac_dir/$ac_word" 
     1173      break 
     1174    fi 
     1175  done 
     1176  IFS="$ac_save_ifs" 
     1177  ;; 
     1178esac 
     1179fi 
     1180AR="$ac_cv_path_AR" 
     1181if test -n "$AR"; then 
     1182  echo "$ac_t""$AR" 1>&6 
     1183else 
     1184  echo "$ac_t""no" 1>&6 
     1185fi 
     1186 
     1187 
     1188if test -z "$AR" ; then 
     1189        { echo "configure: error: You need 'ar' in order to compile ipfm" 1>&2; exit 1; } 
     1190fi 
    10131191 
    10141192 
    10151193echo $ac_n "checking for local libpcap""... $ac_c" 1>&6 
    1016 echo "configure:1017: checking for local libpcap" >&5 
     1194echo "configure:1195: checking for local libpcap" >&5 
    10171195pcapdirs=`ls .. | grep libpcap | sed -e 's:/$::' -e 's:^:../:' | tr '\n' ' '` 
    10181196libpcap=FAIL 
     
    10301208  echo "$ac_t""no" 1>&6 
    10311209  echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6 
    1032 echo "configure:1033: checking for main in -lpcap" >&5 
     1210echo "configure:1211: checking for main in -lpcap" >&5 
    10331211ac_lib_var=`echo pcap'_'main | sed 'y%./+-%__p_%'` 
    10341212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    10381216LIBS="-lpcap  $LIBS" 
    10391217cat > conftest.$ac_ext <<EOF 
    1040 #line 1041 "configure" 
     1218#line 1219 "configure" 
    10411219#include "confdefs.h" 
    10421220 
     
    10451223; return 0; } 
    10461224EOF 
    1047 if { (eval echo configure:1048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1225if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    10481226  rm -rf conftest* 
    10491227  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    10671245 
    10681246  pcapdir="" 
    1069     echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 
    1070 echo "configure:1071: checking how to run the C preprocessor" >&5 
    1071 # On Suns, sometimes $CPP names a directory. 
    1072 if test -n "$CPP" && test -d "$CPP"; then 
    1073   CPP= 
    1074 fi 
    1075 if test -z "$CPP"; then 
    1076 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 
    1077   echo $ac_n "(cached) $ac_c" 1>&6 
    1078 else 
    1079     # This must be in double quotes, not single quotes, because CPP may get 
    1080   # substituted into the Makefile and "${CC-cc}" will confuse make. 
    1081   CPP="${CC-cc} -E" 
    1082   # On the NeXT, cc -E runs the code through the compiler's parser, 
    1083   # not just through cpp. 
     1247    ac_safe=`echo "pcap.h" | sed 'y%./+-%__p_%'` 
     1248echo $ac_n "checking for pcap.h""... $ac_c" 1>&6 
     1249echo "configure:1250: checking for pcap.h" >&5 
     1250if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
     1251  echo $ac_n "(cached) $ac_c" 1>&6 
     1252else 
    10841253  cat > conftest.$ac_ext <<EOF 
    1085 #line 1086 "configure" 
     1254#line 1255 "configure" 
    10861255#include "confdefs.h" 
    1087 #include <assert.h> 
    1088 Syntax Error 
     1256#include <pcap.h> 
    10891257EOF 
    10901258ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1091 { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     1259{ (eval echo configure:1260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    10921260ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    10931261if test -z "$ac_err"; then 
    1094   : 
     1262  rm -rf conftest* 
     1263  eval "ac_cv_header_$ac_safe=yes" 
    10951264else 
    10961265  echo "$ac_err" >&5 
     
    10981267  cat conftest.$ac_ext >&5 
    10991268  rm -rf conftest* 
    1100   CPP="${CC-cc} -E -traditional-cpp" 
    1101   cat > conftest.$ac_ext <<EOF 
    1102 #line 1103 "configure" 
    1103 #include "confdefs.h" 
    1104 #include <assert.h> 
    1105 Syntax Error 
    1106 EOF 
    1107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1108 { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    1109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    1110 if test -z "$ac_err"; then 
    1111   : 
    1112 else 
    1113   echo "$ac_err" >&5 
    1114   echo "configure: failed program was:" >&5 
    1115   cat conftest.$ac_ext >&5 
    1116   rm -rf conftest* 
    1117   CPP="${CC-cc} -nologo -E" 
    1118   cat > conftest.$ac_ext <<EOF 
    1119 #line 1120 "configure" 
    1120 #include "confdefs.h" 
    1121 #include <assert.h> 
    1122 Syntax Error 
    1123 EOF 
    1124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1125 { (eval echo configure:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    1126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    1127 if test -z "$ac_err"; then 
    1128   : 
    1129 else 
    1130   echo "$ac_err" >&5 
    1131   echo "configure: failed program was:" >&5 
    1132   cat conftest.$ac_ext >&5 
    1133   rm -rf conftest* 
    1134   CPP=/lib/cpp 
    1135 fi 
    1136 rm -f conftest* 
    1137 fi 
    1138 rm -f conftest* 
    1139 fi 
    1140 rm -f conftest* 
    1141   ac_cv_prog_CPP="$CPP" 
    1142 fi 
    1143   CPP="$ac_cv_prog_CPP" 
    1144 else 
    1145   ac_cv_prog_CPP="$CPP" 
    1146 fi 
    1147 echo "$ac_t""$CPP" 1>&6 
    1148  
    1149 ac_safe=`echo "pcap.h" | sed 'y%./+-%__p_%'` 
    1150 echo $ac_n "checking for pcap.h""... $ac_c" 1>&6 
    1151 echo "configure:1152: checking for pcap.h" >&5 
    1152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    1153   echo $ac_n "(cached) $ac_c" 1>&6 
    1154