| 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" |
| | 846 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| | 847 | echo "configure:848: checking how to run the C preprocessor" >&5 |
| | 848 | # On Suns, sometimes $CPP names a directory. |
| | 849 | if test -n "$CPP" && test -d "$CPP"; then |
| | 850 | CPP= |
| | 851 | fi |
| | 852 | if test -z "$CPP"; then |
| | 853 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| | 854 | echo $ac_n "(cached) $ac_c" 1>&6 |
| | 855 | else |
| | 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" |
| 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> |
| | 882 | Syntax Error |
| | 883 | EOF |
| | 884 | ac_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; } |
| | 886 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| | 887 | if test -z "$ac_err"; then |
| | 888 | : |
| | 889 | else |
| | 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> |
| | 899 | Syntax Error |
| | 900 | EOF |
| | 901 | ac_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; } |
| | 903 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| | 904 | if test -z "$ac_err"; then |
| | 905 | : |
| | 906 | else |
| | 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 |
| | 1009 | # Extract the first word of "flex", so it can be a program name with args. |
| | 1010 | set dummy flex; ac_word=$2 |
| | 1011 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| | 1012 | echo "configure:1013: checking for $ac_word" >&5 |
| | 1013 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
| | 1014 | echo $ac_n "(cached) $ac_c" 1>&6 |
| | 1015 | else |
| | 1016 | if test -n "$LEX"; then |
| | 1017 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| | 1018 | else |
| | 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" |
| | 1030 | fi |
| | 1031 | fi |
| | 1032 | LEX="$ac_cv_prog_LEX" |
| | 1033 | if test -n "$LEX"; then |
| | 1034 | echo "$ac_t""$LEX" 1>&6 |
| | 1035 | else |
| | 1036 | echo "$ac_t""no" 1>&6 |
| | 1037 | fi |
| | 1038 | |
| | 1039 | if test -z "$LEXLIB" |
| | 1040 | then |
| | 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 |
| | 1046 | echo "configure:1047: checking for yywrap in -l$ac_lib" >&5 |
| | 1047 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
| | 1048 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| | 1049 | echo $ac_n "(cached) $ac_c" 1>&6 |
| | 1050 | else |
| | 1051 | ac_save_LIBS="$LIBS" |
| | 1052 | LIBS="-l$ac_lib $LIBS" |
| | 1053 | cat > 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. */ |
| | 1059 | char yywrap(); |
| | 1060 | |
| | 1061 | int main() { |
| | 1062 | yywrap() |
| | 1063 | ; return 0; } |
| | 1064 | EOF |
| | 1065 | if { (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" |
| | 1068 | else |
| | 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" |
| | 1073 | fi |
| | 1074 | rm -f conftest* |
| | 1075 | LIBS="$ac_save_LIBS" |
| | 1076 | |
| | 1077 | fi |
| | 1078 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| | 1079 | echo "$ac_t""yes" 1>&6 |
| | 1080 | LEXLIB="-l$ac_lib" |
| | 1081 | else |
| | 1082 | echo "$ac_t""no" 1>&6 |
| | 1083 | fi |
| | 1084 | |
| | 1085 | fi |
| | 1086 | |
| | 1087 | # Extract the first word of "ranlib", so it can be a program name with args. |
| | 1088 | set dummy ranlib; ac_word=$2 |
| | 1089 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| | 1090 | echo "configure:1091: checking for $ac_word" >&5 |
| | 1091 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| | 1092 | echo $ac_n "(cached) $ac_c" 1>&6 |
| | 1093 | else |
| | 1094 | if test -n "$RANLIB"; then |
| | 1095 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| | 1096 | else |
| | 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=":" |
| | 1108 | fi |
| | 1109 | fi |
| | 1110 | RANLIB="$ac_cv_prog_RANLIB" |
| | 1111 | if test -n "$RANLIB"; then |
| | 1112 | echo "$ac_t""$RANLIB" 1>&6 |
| | 1113 | else |
| | 1114 | echo "$ac_t""no" 1>&6 |
| | 1115 | fi |
| | 1116 | |
| | 1117 | for ac_prog in 'bison -y' byacc |
| | 1118 | do |
| | 1119 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| | 1120 | set dummy $ac_prog; ac_word=$2 |
| | 1121 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| | 1122 | echo "configure:1123: checking for $ac_word" >&5 |
| | 1123 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
| | 1124 | echo $ac_n "(cached) $ac_c" 1>&6 |
| | 1125 | else |
| | 1126 | if test -n "$YACC"; then |
| | 1127 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| | 1128 | else |
| | 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" |
| | 1139 | fi |
| | 1140 | fi |
| | 1141 | YACC="$ac_cv_prog_YACC" |
| | 1142 | if test -n "$YACC"; then |
| | 1143 | echo "$ac_t""$YACC" 1>&6 |
| | 1144 | else |
| | 1145 | echo "$ac_t""no" 1>&6 |
| | 1146 | fi |
| | 1147 | |
| | 1148 | test -n "$YACC" && break |
| | 1149 | done |
| | 1150 | test -n "$YACC" || YACC="yacc" |
| | 1151 | |
| | 1152 | # Extract the first word of "ar", so it can be a program name with args. |
| | 1153 | set dummy ar; ac_word=$2 |
| | 1154 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| | 1155 | echo "configure:1156: checking for $ac_word" >&5 |
| | 1156 | if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then |
| | 1157 | echo $ac_n "(cached) $ac_c" 1>&6 |
| | 1158 | else |
| | 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 | ;; |
| | 1178 | esac |
| | 1179 | fi |
| | 1180 | AR="$ac_cv_path_AR" |
| | 1181 | if test -n "$AR"; then |
| | 1182 | echo "$ac_t""$AR" 1>&6 |
| | 1183 | else |
| | 1184 | echo "$ac_t""no" 1>&6 |
| | 1185 | fi |
| | 1186 | |
| | 1187 | |
| | 1188 | if test -z "$AR" ; then |
| | 1189 | { echo "configure: error: You need 'ar' in order to compile ipfm" 1>&2; exit 1; } |
| | 1190 | fi |
| 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_%'` |
| | 1248 | echo $ac_n "checking for pcap.h""... $ac_c" 1>&6 |
| | 1249 | echo "configure:1250: checking for pcap.h" >&5 |
| | 1250 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| | 1251 | echo $ac_n "(cached) $ac_c" 1>&6 |
| | 1252 | else |
| 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 | | |