Clean and tiddy-up files.
[tomato.git] / release / src / router / libpcap / configure
blob955401f27d99d40e4c60e5967dac42f255f26b60
1 #! /bin/sh
2 # From configure.in Revision: 1.168 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9 # Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
37 as_nl='
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
92 # Find who we are. Look in the path if we contain no directory separator.
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 else
232 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
233 $0: including any error possibly output before this
234 $0: message. Then install a modern shell, or manually run
235 $0: the script under such a shell if you do have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error STATUS ERROR [LINENO LOG_FD]
361 # ----------------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with STATUS, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$1; test $as_status -eq 0 && as_status=1
368 if test "$4"; then
369 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
372 $as_echo "$as_me: error: $2" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 test -n "$DJDIR" || exec 7<&0 </dev/null
531 exec 6>&1
533 # Name of the host.
534 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
535 # so uname gets run too.
536 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539 # Initializations.
541 ac_default_prefix=/usr/local
542 ac_clean_files=
543 ac_config_libobj_dir=.
544 LIBOBJS=
545 cross_compiling=no
546 subdirs=
547 MFLAGS=
548 MAKEFLAGS=
550 # Identity of this package.
551 PACKAGE_NAME=
552 PACKAGE_TARNAME=
553 PACKAGE_VERSION=
554 PACKAGE_STRING=
555 PACKAGE_BUGREPORT=
556 PACKAGE_URL=
558 ac_unique_file="pcap.c"
559 # Factoring default headers for most tests.
560 ac_includes_default="\
561 #include <stdio.h>
562 #ifdef HAVE_SYS_TYPES_H
563 # include <sys/types.h>
564 #endif
565 #ifdef HAVE_SYS_STAT_H
566 # include <sys/stat.h>
567 #endif
568 #ifdef STDC_HEADERS
569 # include <stdlib.h>
570 # include <stddef.h>
571 #else
572 # ifdef HAVE_STDLIB_H
573 # include <stdlib.h>
574 # endif
575 #endif
576 #ifdef HAVE_STRING_H
577 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 # include <memory.h>
579 # endif
580 # include <string.h>
581 #endif
582 #ifdef HAVE_STRINGS_H
583 # include <strings.h>
584 #endif
585 #ifdef HAVE_INTTYPES_H
586 # include <inttypes.h>
587 #endif
588 #ifdef HAVE_STDINT_H
589 # include <stdint.h>
590 #endif
591 #ifdef HAVE_UNISTD_H
592 # include <unistd.h>
593 #endif"
595 ac_subst_vars='LTLIBOBJS
596 INSTALL_DATA
597 INSTALL_SCRIPT
598 INSTALL_PROGRAM
599 CAN_SRC
600 PCAP_SUPPORT_CAN
601 CANUSB_SRC
602 PCAP_SUPPORT_CANUSB
603 BT_SRC
604 PCAP_SUPPORT_BT
605 NETFILTER_SRC
606 PCAP_SUPPORT_NETFILTER
607 USB_SRC
608 PCAP_SUPPORT_USB
609 MAN_MISC_INFO
610 MAN_FILE_FORMATS
611 DYEXT
612 SSRC
613 ADDLARCHIVEOBJS
614 ADDLOBJS
615 V_RPATH_OPT
616 V_SONAME_OPT
617 V_SHLIB_OPT
618 V_SHLIB_CMD
619 V_PCAP
620 V_INCLS
621 V_FINDALLDEVS
622 V_DEFS
623 V_CCOPT
625 RANLIB
626 V_YACC
627 V_LEX
628 HAVE_LINUX_TPACKET_AUXDATA
629 LIBOBJS
630 EGREP
631 GREP
633 OBJEXT
634 EXEEXT
635 ac_ct_CC
636 CPPFLAGS
637 LDFLAGS
638 CFLAGS
640 SHLICC2
641 target_os
642 target_vendor
643 target_cpu
644 target
645 host_os
646 host_vendor
647 host_cpu
648 host
649 build_os
650 build_vendor
651 build_cpu
652 build
653 target_alias
654 host_alias
655 build_alias
656 LIBS
657 ECHO_T
658 ECHO_N
659 ECHO_C
660 DEFS
661 mandir
662 localedir
663 libdir
664 psdir
665 pdfdir
666 dvidir
667 htmldir
668 infodir
669 docdir
670 oldincludedir
671 includedir
672 localstatedir
673 sharedstatedir
674 sysconfdir
675 datadir
676 datarootdir
677 libexecdir
678 sbindir
679 bindir
680 program_transform_name
681 prefix
682 exec_prefix
683 PACKAGE_URL
684 PACKAGE_BUGREPORT
685 PACKAGE_STRING
686 PACKAGE_VERSION
687 PACKAGE_TARNAME
688 PACKAGE_NAME
689 PATH_SEPARATOR
690 SHELL'
691 ac_subst_files=''
692 ac_user_opts='
693 enable_option_checking
694 with_gcc
695 enable_largefile
696 enable_protochain
697 with_sita
698 with_pcap
699 with_libnl
700 enable_ipv6
701 enable_optimizer_dbg
702 enable_yydebug
703 with_dag
704 with_dag_includes
705 with_dag_libraries
706 with_septel
707 with_snf
708 with_snf_includes
709 with_snf_libraries
710 with_flex
711 with_bison
712 enable_universal
713 enable_bluetooth
714 enable_canusb
715 enable_can
717 ac_precious_vars='build_alias
718 host_alias
719 target_alias
721 CFLAGS
722 LDFLAGS
723 LIBS
724 CPPFLAGS
725 CPP'
728 # Initialize some variables set by options.
729 ac_init_help=
730 ac_init_version=false
731 ac_unrecognized_opts=
732 ac_unrecognized_sep=
733 # The variables have the same names as the options, with
734 # dashes changed to underlines.
735 cache_file=/dev/null
736 exec_prefix=NONE
737 no_create=
738 no_recursion=
739 prefix=NONE
740 program_prefix=NONE
741 program_suffix=NONE
742 program_transform_name=s,x,x,
743 silent=
744 site=
745 srcdir=
746 verbose=
747 x_includes=NONE
748 x_libraries=NONE
750 # Installation directory options.
751 # These are left unexpanded so users can "make install exec_prefix=/foo"
752 # and all the variables that are supposed to be based on exec_prefix
753 # by default will actually change.
754 # Use braces instead of parens because sh, perl, etc. also accept them.
755 # (The list follows the same order as the GNU Coding Standards.)
756 bindir='${exec_prefix}/bin'
757 sbindir='${exec_prefix}/sbin'
758 libexecdir='${exec_prefix}/libexec'
759 datarootdir='${prefix}/share'
760 datadir='${datarootdir}'
761 sysconfdir='${prefix}/etc'
762 sharedstatedir='${prefix}/com'
763 localstatedir='${prefix}/var'
764 includedir='${prefix}/include'
765 oldincludedir='/usr/include'
766 docdir='${datarootdir}/doc/${PACKAGE}'
767 infodir='${datarootdir}/info'
768 htmldir='${docdir}'
769 dvidir='${docdir}'
770 pdfdir='${docdir}'
771 psdir='${docdir}'
772 libdir='${exec_prefix}/lib'
773 localedir='${datarootdir}/locale'
774 mandir='${datarootdir}/man'
776 ac_prev=
777 ac_dashdash=
778 for ac_option
780 # If the previous option needs an argument, assign it.
781 if test -n "$ac_prev"; then
782 eval $ac_prev=\$ac_option
783 ac_prev=
784 continue
787 case $ac_option in
788 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789 *=) ac_optarg= ;;
790 *) ac_optarg=yes ;;
791 esac
793 # Accept the important Cygnus configure options, so we can diagnose typos.
795 case $ac_dashdash$ac_option in
797 ac_dashdash=yes ;;
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
800 ac_prev=bindir ;;
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802 bindir=$ac_optarg ;;
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
816 --config-cache | -C)
817 cache_file=config.cache ;;
819 -datadir | --datadir | --datadi | --datad)
820 ac_prev=datadir ;;
821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
822 datadir=$ac_optarg ;;
824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
831 -disable-* | --disable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error $? "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
840 "enable_$ac_useropt"
841 "*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=no ;;
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
857 -enable-* | --enable-*)
858 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 as_fn_error $? "invalid feature name: $ac_useropt"
862 ac_useropt_orig=$ac_useropt
863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
866 "enable_$ac_useropt"
867 "*) ;;
868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
869 ac_unrecognized_sep=', ';;
870 esac
871 eval enable_$ac_useropt=\$ac_optarg ;;
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1061 -with-* | --with-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid package name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "with_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval with_$ac_useropt=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid package name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "with_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval with_$ac_useropt=no ;;
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1111 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1112 Try \`$0 --help' for more information"
1115 *=*)
1116 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1117 # Reject names that are not valid shell variable names.
1118 case $ac_envvar in #(
1119 '' | [0-9]* | *[!_$as_cr_alnum]* )
1120 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1121 esac
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133 esac
1134 done
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 as_fn_error $? "missing argument to $ac_option"
1141 if test -n "$ac_unrecognized_opts"; then
1142 case $enable_option_checking in
1143 no) ;;
1144 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1145 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1146 esac
1149 # Check all directory arguments for consistency.
1150 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1151 datadir sysconfdir sharedstatedir localstatedir includedir \
1152 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1153 libdir localedir mandir
1155 eval ac_val=\$$ac_var
1156 # Remove trailing slashes.
1157 case $ac_val in
1158 */ )
1159 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1160 eval $ac_var=\$ac_val;;
1161 esac
1162 # Be sure to have absolute directory names.
1163 case $ac_val in
1164 [\\/$]* | ?:[\\/]* ) continue;;
1165 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1166 esac
1167 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1168 done
1170 # There might be people who depend on the old broken behavior: `$host'
1171 # used to hold the argument of --host etc.
1172 # FIXME: To remove some day.
1173 build=$build_alias
1174 host=$host_alias
1175 target=$target_alias
1177 # FIXME: To remove some day.
1178 if test "x$host_alias" != x; then
1179 if test "x$build_alias" = x; then
1180 cross_compiling=maybe
1181 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1182 If a cross compiler is detected then cross compile mode will be used" >&2
1183 elif test "x$build_alias" != "x$host_alias"; then
1184 cross_compiling=yes
1188 ac_tool_prefix=
1189 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1191 test "$silent" = yes && exec 6>/dev/null
1194 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1195 ac_ls_di=`ls -di .` &&
1196 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1197 as_fn_error $? "working directory cannot be determined"
1198 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1199 as_fn_error $? "pwd does not report name of working directory"
1202 # Find the source files, if location was not specified.
1203 if test -z "$srcdir"; then
1204 ac_srcdir_defaulted=yes
1205 # Try the directory containing this script, then the parent directory.
1206 ac_confdir=`$as_dirname -- "$as_myself" ||
1207 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208 X"$as_myself" : 'X\(//\)[^/]' \| \
1209 X"$as_myself" : 'X\(//\)$' \| \
1210 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1211 $as_echo X"$as_myself" |
1212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 s//\1/
1216 /^X\(\/\/\)[^/].*/{
1217 s//\1/
1220 /^X\(\/\/\)$/{
1221 s//\1/
1224 /^X\(\/\).*/{
1225 s//\1/
1228 s/.*/./; q'`
1229 srcdir=$ac_confdir
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 srcdir=..
1233 else
1234 ac_srcdir_defaulted=no
1236 if test ! -r "$srcdir/$ac_unique_file"; then
1237 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1238 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1240 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241 ac_abs_confdir=`(
1242 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1243 pwd)`
1244 # When building in place, set srcdir=.
1245 if test "$ac_abs_confdir" = "$ac_pwd"; then
1246 srcdir=.
1248 # Remove unnecessary trailing slashes from srcdir.
1249 # Double slashes in file names in object file debugging info
1250 # mess up M-x gdb in Emacs.
1251 case $srcdir in
1252 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1253 esac
1254 for ac_var in $ac_precious_vars; do
1255 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1256 eval ac_env_${ac_var}_value=\$${ac_var}
1257 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1259 done
1262 # Report the --help message.
1264 if test "$ac_init_help" = "long"; then
1265 # Omit some internal or obsolete options to make the list less imposing.
1266 # This message is too long to be a string in the A/UX 3.1 sh.
1267 cat <<_ACEOF
1268 \`configure' configures this package to adapt to many kinds of systems.
1270 Usage: $0 [OPTION]... [VAR=VALUE]...
1272 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1273 VAR=VALUE. See below for descriptions of some of the useful variables.
1275 Defaults for the options are specified in brackets.
1277 Configuration:
1278 -h, --help display this help and exit
1279 --help=short display options specific to this package
1280 --help=recursive display the short help of all the included packages
1281 -V, --version display version information and exit
1282 -q, --quiet, --silent do not print \`checking ...' messages
1283 --cache-file=FILE cache test results in FILE [disabled]
1284 -C, --config-cache alias for \`--cache-file=config.cache'
1285 -n, --no-create do not create output files
1286 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1288 Installation directories:
1289 --prefix=PREFIX install architecture-independent files in PREFIX
1290 [$ac_default_prefix]
1291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1292 [PREFIX]
1294 By default, \`make install' will install all the files in
1295 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1296 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1297 for instance \`--prefix=\$HOME'.
1299 For better control, use the options below.
1301 Fine tuning of the installation directories:
1302 --bindir=DIR user executables [EPREFIX/bin]
1303 --sbindir=DIR system admin executables [EPREFIX/sbin]
1304 --libexecdir=DIR program executables [EPREFIX/libexec]
1305 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1306 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1307 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1308 --libdir=DIR object code libraries [EPREFIX/lib]
1309 --includedir=DIR C header files [PREFIX/include]
1310 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1311 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1312 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1313 --infodir=DIR info documentation [DATAROOTDIR/info]
1314 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1315 --mandir=DIR man documentation [DATAROOTDIR/man]
1316 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1317 --htmldir=DIR html documentation [DOCDIR]
1318 --dvidir=DIR dvi documentation [DOCDIR]
1319 --pdfdir=DIR pdf documentation [DOCDIR]
1320 --psdir=DIR ps documentation [DOCDIR]
1321 _ACEOF
1323 cat <<\_ACEOF
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 --target=TARGET configure for building compilers for TARGET [HOST]
1329 _ACEOF
1332 if test -n "$ac_init_help"; then
1334 cat <<\_ACEOF
1336 Optional Features:
1337 --disable-option-checking ignore unrecognized --enable/--with options
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --disable-largefile omit support for large files
1341 --disable-protochain disable \"protochain\" insn
1342 --enable-ipv6 build IPv6-capable version [default=yes, if
1343 getaddrinfo available]
1344 --enable-optimizer-dbg build optimizer debugging code
1345 --enable-yydebug build parser debugging code
1346 --disable-universal don't build universal on OS X
1347 --enable-bluetooth enable Bluetooth support [default=yes, if support
1348 available]
1349 --enable-canusb enable canusb support [default=yes, if support
1350 available]
1352 --enable-can enable CAN support [default=yes, if support
1353 available]
1355 Optional Packages:
1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1358 --without-gcc don't use gcc
1359 --with-sita include SITA support
1360 --with-pcap=TYPE use packet capture TYPE
1361 --without-libnl disable libnl support [default=yes, on Linux, if
1362 present]
1363 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1364 default="yes" on BSD and Linux if present]
1365 --with-dag-includes=DIR Endace DAG include directory
1366 --with-dag-libraries=DIR
1367 Endace DAG library directory
1368 --with-septel[=DIR] include Septel support (located in directory DIR, if
1369 supplied). [default=yes, on Linux, if present]
1370 --with-snf[=DIR] include Myricom SNF support ["yes", "no" or DIR;
1371 default="yes" on BSD and Linux if present]
1372 --with-snf-includes=DIR Myricom SNF include directory
1373 --with-snf-libraries=DIR
1374 Myricom SNF library directory
1375 --without-flex don't use flex
1376 --without-bison don't use bison
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1386 CPP C preprocessor
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1391 Report bugs to the package provider.
1392 _ACEOF
1393 ac_status=$?
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" ||
1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1401 continue
1402 ac_builddir=.
1404 case "$ac_dir" in
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 esac ;;
1414 esac
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1420 case $srcdir in
1421 .) # We are building in place.
1422 ac_srcdir=.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1429 *) # Relative name.
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 esac
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1444 else
1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 fi || ac_status=$?
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1448 done
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1453 cat <<\_ACEOF
1454 configure
1455 generated by GNU Autoconf 2.67
1457 Copyright (C) 2010 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1464 ## ------------------------ ##
1465 ## Autoconf initialization. ##
1466 ## ------------------------ ##
1468 # ac_fn_c_try_compile LINENO
1469 # --------------------------
1470 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_c_try_compile ()
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 rm -f conftest.$ac_objext
1475 if { { ac_try="$ac_compile"
1476 case "(($ac_try" in
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1479 esac
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_compile") 2>conftest.err
1483 ac_status=$?
1484 if test -s conftest.err; then
1485 grep -v '^ *+' conftest.err >conftest.er1
1486 cat conftest.er1 >&5
1487 mv -f conftest.er1 conftest.err
1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490 test $ac_status = 0; } && {
1491 test -z "$ac_c_werror_flag" ||
1492 test ! -s conftest.err
1493 } && test -s conftest.$ac_objext; then :
1494 ac_retval=0
1495 else
1496 $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1499 ac_retval=1
1501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1502 as_fn_set_status $ac_retval
1504 } # ac_fn_c_try_compile
1506 # ac_fn_c_try_cpp LINENO
1507 # ----------------------
1508 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_cpp ()
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 if { { ac_try="$ac_cpp conftest.$ac_ext"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } > conftest.i && {
1528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 }; then :
1531 ac_retval=0
1532 else
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1536 ac_retval=1
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 as_fn_set_status $ac_retval
1541 } # ac_fn_c_try_cpp
1543 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1544 # -------------------------------------------------------
1545 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1546 # the include files in INCLUDES and setting the cache variable VAR
1547 # accordingly.
1548 ac_fn_c_check_header_mongrel ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if eval "test \"\${$3+set}\"" = set; then :
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1553 $as_echo_n "checking for $2... " >&6; }
1554 if eval "test \"\${$3+set}\"" = set; then :
1555 $as_echo_n "(cached) " >&6
1557 eval ac_res=\$$3
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1559 $as_echo "$ac_res" >&6; }
1560 else
1561 # Is the header compilable?
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1563 $as_echo_n "checking $2 usability... " >&6; }
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1567 #include <$2>
1568 _ACEOF
1569 if ac_fn_c_try_compile "$LINENO"; then :
1570 ac_header_compiler=yes
1571 else
1572 ac_header_compiler=no
1574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1576 $as_echo "$ac_header_compiler" >&6; }
1578 # Is the header present?
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1580 $as_echo_n "checking $2 presence... " >&6; }
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1583 #include <$2>
1584 _ACEOF
1585 if ac_fn_c_try_cpp "$LINENO"; then :
1586 ac_header_preproc=yes
1587 else
1588 ac_header_preproc=no
1590 rm -f conftest.err conftest.i conftest.$ac_ext
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1592 $as_echo "$ac_header_preproc" >&6; }
1594 # So? What about this header?
1595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1596 yes:no: )
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1598 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1600 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1602 no:yes:* )
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1604 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1606 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1608 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1610 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1614 esac
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval "test \"\${$3+set}\"" = set; then :
1618 $as_echo_n "(cached) " >&6
1619 else
1620 eval "$3=\$ac_header_compiler"
1622 eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 } # ac_fn_c_check_header_mongrel
1630 # ac_fn_c_try_run LINENO
1631 # ----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1633 # that executables *can* be run.
1634 ac_fn_c_try_run ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_link"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>&5
1645 ac_status=$?
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1648 { { case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_try") 2>&5
1655 ac_status=$?
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; }; }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: program exited with status $ac_status" >&5
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_retval=$ac_status
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 as_fn_set_status $ac_retval
1670 } # ac_fn_c_try_run
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval "test \"\${$3+set}\"" = set; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690 eval "$3=yes"
1691 else
1692 eval "$3=no"
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 } # ac_fn_c_check_header_compile
1703 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1704 # -------------------------------------------
1705 # Tests whether TYPE exists after having included INCLUDES, setting cache
1706 # variable VAR accordingly.
1707 ac_fn_c_check_type ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval "test \"\${$3+set}\"" = set; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 eval "$3=no"
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1720 main ()
1722 if (sizeof ($2))
1723 return 0;
1725 return 0;
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1733 main ()
1735 if (sizeof (($2)))
1736 return 0;
1738 return 0;
1740 _ACEOF
1741 if ac_fn_c_try_compile "$LINENO"; then :
1743 else
1744 eval "$3=yes"
1746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755 } # ac_fn_c_check_type
1757 # ac_fn_c_try_link LINENO
1758 # -----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_link ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext conftest$ac_exeext
1764 if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest$ac_exeext && {
1783 test "$cross_compiling" = yes ||
1784 $as_test_x conftest$ac_exeext
1785 }; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1791 ac_retval=1
1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795 # interfere with the next link command; also delete a directory that is
1796 # left behind by Apple's compiler. We do this before executing the actions.
1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799 as_fn_set_status $ac_retval
1801 } # ac_fn_c_try_link
1803 # ac_fn_c_check_func LINENO FUNC VAR
1804 # ----------------------------------
1805 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1806 ac_fn_c_check_func ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval "test \"\${$3+set}\"" = set; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1818 #define $2 innocuous_$2
1820 /* System header to define __stub macros and hopefully few prototypes,
1821 which can conflict with char $2 (); below.
1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1823 <limits.h> exists even on freestanding compilers. */
1825 #ifdef __STDC__
1826 # include <limits.h>
1827 #else
1828 # include <assert.h>
1829 #endif
1831 #undef $2
1833 /* Override any GCC internal prototype to avoid an error.
1834 Use char because int might match the return type of a GCC
1835 builtin and then its argument prototype would still apply. */
1836 #ifdef __cplusplus
1837 extern "C"
1838 #endif
1839 char $2 ();
1840 /* The GNU C library defines this for functions which it implements
1841 to always fail with ENOSYS. Some functions are actually named
1842 something starting with __ and the normal name is an alias. */
1843 #if defined __stub_$2 || defined __stub___$2
1844 choke me
1845 #endif
1848 main ()
1850 return $2 ();
1852 return 0;
1854 _ACEOF
1855 if ac_fn_c_try_link "$LINENO"; then :
1856 eval "$3=yes"
1857 else
1858 eval "$3=no"
1860 rm -f core conftest.err conftest.$ac_objext \
1861 conftest$ac_exeext conftest.$ac_ext
1863 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 } # ac_fn_c_check_func
1870 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1871 # ---------------------------------------------
1872 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1873 # accordingly.
1874 ac_fn_c_check_decl ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 as_decl_name=`echo $2|sed 's/ *(.*//'`
1878 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1880 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1881 if eval "test \"\${$3+set}\"" = set; then :
1882 $as_echo_n "(cached) " >&6
1883 else
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1888 main ()
1890 #ifndef $as_decl_name
1891 #ifdef __cplusplus
1892 (void) $as_decl_use;
1893 #else
1894 (void) $as_decl_name;
1895 #endif
1896 #endif
1899 return 0;
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 eval "$3=yes"
1904 else
1905 eval "$3=no"
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 } # ac_fn_c_check_decl
1915 cat >config.log <<_ACEOF
1916 This file contains any messages produced by compilers while
1917 running configure, to aid debugging if configure makes a mistake.
1919 It was created by $as_me, which was
1920 generated by GNU Autoconf 2.67. Invocation command line was
1922 $ $0 $@
1924 _ACEOF
1925 exec 5>>config.log
1927 cat <<_ASUNAME
1928 ## --------- ##
1929 ## Platform. ##
1930 ## --------- ##
1932 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1941 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1944 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1945 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1949 _ASUNAME
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 $as_echo "PATH: $as_dir"
1957 done
1958 IFS=$as_save_IFS
1960 } >&5
1962 cat >&5 <<_ACEOF
1965 ## ----------- ##
1966 ## Core tests. ##
1967 ## ----------- ##
1969 _ACEOF
1972 # Keep a trace of the command line.
1973 # Strip out --no-create and --no-recursion so they do not pile up.
1974 # Strip out --silent because we don't want to record it for future runs.
1975 # Also quote any args containing shell meta-characters.
1976 # Make two passes to allow for proper duplicate-argument suppression.
1977 ac_configure_args=
1978 ac_configure_args0=
1979 ac_configure_args1=
1980 ac_must_keep_next=false
1981 for ac_pass in 1 2
1983 for ac_arg
1985 case $ac_arg in
1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1988 | -silent | --silent | --silen | --sile | --sil)
1989 continue ;;
1990 *\'*)
1991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 esac
1993 case $ac_pass in
1994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1996 as_fn_append ac_configure_args1 " '$ac_arg'"
1997 if test $ac_must_keep_next = true; then
1998 ac_must_keep_next=false # Got value, back to normal.
1999 else
2000 case $ac_arg in
2001 *=* | --config-cache | -C | -disable-* | --disable-* \
2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2004 | -with-* | --with-* | -without-* | --without-* | --x)
2005 case "$ac_configure_args0 " in
2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2007 esac
2009 -* ) ac_must_keep_next=true ;;
2010 esac
2012 as_fn_append ac_configure_args " '$ac_arg'"
2014 esac
2015 done
2016 done
2017 { ac_configure_args0=; unset ac_configure_args0;}
2018 { ac_configure_args1=; unset ac_configure_args1;}
2020 # When interrupted or exit'd, cleanup temporary files, and complete
2021 # config.log. We remove comments because anyway the quotes in there
2022 # would cause problems or look ugly.
2023 # WARNING: Use '\'' to represent an apostrophe within the trap.
2024 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2025 trap 'exit_status=$?
2026 # Save into config.log some information that might help in debugging.
2028 echo
2030 $as_echo "## ---------------- ##
2031 ## Cache variables. ##
2032 ## ---------------- ##"
2033 echo
2034 # The following way of writing the cache mishandles newlines in values,
2036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in #(
2039 *${as_nl}*)
2040 case $ac_var in #(
2041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2042 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2043 esac
2044 case $ac_var in #(
2045 _ | IFS | as_nl) ;; #(
2046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2047 *) { eval $ac_var=; unset $ac_var;} ;;
2048 esac ;;
2049 esac
2050 done
2051 (set) 2>&1 |
2052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2053 *${as_nl}ac_space=\ *)
2054 sed -n \
2055 "s/'\''/'\''\\\\'\'''\''/g;
2056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2057 ;; #(
2059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2061 esac |
2062 sort
2064 echo
2066 $as_echo "## ----------------- ##
2067 ## Output variables. ##
2068 ## ----------------- ##"
2069 echo
2070 for ac_var in $ac_subst_vars
2072 eval ac_val=\$$ac_var
2073 case $ac_val in
2074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2075 esac
2076 $as_echo "$ac_var='\''$ac_val'\''"
2077 done | sort
2078 echo
2080 if test -n "$ac_subst_files"; then
2081 $as_echo "## ------------------- ##
2082 ## File substitutions. ##
2083 ## ------------------- ##"
2084 echo
2085 for ac_var in $ac_subst_files
2087 eval ac_val=\$$ac_var
2088 case $ac_val in
2089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090 esac
2091 $as_echo "$ac_var='\''$ac_val'\''"
2092 done | sort
2093 echo
2096 if test -s confdefs.h; then
2097 $as_echo "## ----------- ##
2098 ## confdefs.h. ##
2099 ## ----------- ##"
2100 echo
2101 cat confdefs.h
2102 echo
2104 test "$ac_signal" != 0 &&
2105 $as_echo "$as_me: caught signal $ac_signal"
2106 $as_echo "$as_me: exit $exit_status"
2107 } >&5
2108 rm -f core *.core core.conftest.* &&
2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2110 exit $exit_status
2112 for ac_signal in 1 2 13 15; do
2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2114 done
2115 ac_signal=0
2117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2118 rm -f -r conftest* confdefs.h
2120 $as_echo "/* confdefs.h */" > confdefs.h
2122 # Predefined preprocessor variables.
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_NAME "$PACKAGE_NAME"
2126 _ACEOF
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2130 _ACEOF
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2134 _ACEOF
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_STRING "$PACKAGE_STRING"
2138 _ACEOF
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2142 _ACEOF
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_URL "$PACKAGE_URL"
2146 _ACEOF
2149 # Let the site file select an alternate cache file if it wants to.
2150 # Prefer an explicitly selected file to automatically selected ones.
2151 ac_site_file1=NONE
2152 ac_site_file2=NONE
2153 if test -n "$CONFIG_SITE"; then
2154 # We do not want a PATH search for config.site.
2155 case $CONFIG_SITE in #((
2156 -*) ac_site_file1=./$CONFIG_SITE;;
2157 */*) ac_site_file1=$CONFIG_SITE;;
2158 *) ac_site_file1=./$CONFIG_SITE;;
2159 esac
2160 elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2163 else
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
2167 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2169 test "x$ac_site_file" = xNONE && continue
2170 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173 sed 's/^/| /' "$ac_site_file" >&5
2174 . "$ac_site_file" \
2175 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2177 as_fn_error $? "failed to load site script $ac_site_file
2178 See \`config.log' for more details" "$LINENO" 5 ; }
2180 done
2182 if test -r "$cache_file"; then
2183 # Some versions of bash will fail to source /dev/null (special files
2184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2187 $as_echo "$as_me: loading cache $cache_file" >&6;}
2188 case $cache_file in
2189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2190 *) . "./$cache_file";;
2191 esac
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2195 $as_echo "$as_me: creating cache $cache_file" >&6;}
2196 >$cache_file
2199 # Check that the precious variables saved in the cache have kept the same
2200 # value.
2201 ac_cache_corrupted=false
2202 for ac_var in $ac_precious_vars; do
2203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2204 eval ac_new_set=\$ac_env_${ac_var}_set
2205 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2206 eval ac_new_val=\$ac_env_${ac_var}_value
2207 case $ac_old_set,$ac_new_set in
2208 set,)
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2212 ,set)
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2214 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2216 ,);;
2218 if test "x$ac_old_val" != "x$ac_new_val"; then
2219 # differences in whitespace do not lead to failure.
2220 ac_old_val_w=`echo x $ac_old_val`
2221 ac_new_val_w=`echo x $ac_new_val`
2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2224 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2225 ac_cache_corrupted=:
2226 else
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2228 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2229 eval $ac_var=\$ac_old_val
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2232 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2234 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2235 fi;;
2236 esac
2237 # Pass precious variables to config.status.
2238 if test "$ac_new_set" = set; then
2239 case $ac_new_val in
2240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 *) ac_arg=$ac_var=$ac_new_val ;;
2242 esac
2243 case " $ac_configure_args " in
2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2245 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2246 esac
2248 done
2249 if $ac_cache_corrupted; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2253 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2254 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2256 ## -------------------- ##
2257 ## Main body of script. ##
2258 ## -------------------- ##
2260 ac_ext=c
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268 ac_aux_dir=
2269 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270 if test -f "$ac_dir/install-sh"; then
2271 ac_aux_dir=$ac_dir
2272 ac_install_sh="$ac_aux_dir/install-sh -c"
2273 break
2274 elif test -f "$ac_dir/install.sh"; then
2275 ac_aux_dir=$ac_dir
2276 ac_install_sh="$ac_aux_dir/install.sh -c"
2277 break
2278 elif test -f "$ac_dir/shtool"; then
2279 ac_aux_dir=$ac_dir
2280 ac_install_sh="$ac_aux_dir/shtool install -c"
2281 break
2283 done
2284 if test -z "$ac_aux_dir"; then
2285 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297 # Make sure we can run config.sub.
2298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302 $as_echo_n "checking build system type... " >&6; }
2303 if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 ac_build_alias=$build_alias
2307 test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309 test "x$ac_build_alias" = x &&
2310 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316 $as_echo "$ac_cv_build" >&6; }
2317 case $ac_cv_build in
2318 *-*-*) ;;
2319 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2320 esac
2321 build=$ac_cv_build
2322 ac_save_IFS=$IFS; IFS='-'
2323 set x $ac_cv_build
2324 shift
2325 build_cpu=$1
2326 build_vendor=$2
2327 shift; shift
2328 # Remember, the first character of IFS is used to create $*,
2329 # except with old shells:
2330 build_os=$*
2331 IFS=$ac_save_IFS
2332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2336 $as_echo_n "checking host system type... " >&6; }
2337 if test "${ac_cv_host+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 if test "x$host_alias" = x; then
2341 ac_cv_host=$ac_cv_build
2342 else
2343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2349 $as_echo "$ac_cv_host" >&6; }
2350 case $ac_cv_host in
2351 *-*-*) ;;
2352 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2353 esac
2354 host=$ac_cv_host
2355 ac_save_IFS=$IFS; IFS='-'
2356 set x $ac_cv_host
2357 shift
2358 host_cpu=$1
2359 host_vendor=$2
2360 shift; shift
2361 # Remember, the first character of IFS is used to create $*,
2362 # except with old shells:
2363 host_os=$*
2364 IFS=$ac_save_IFS
2365 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2369 $as_echo_n "checking target system type... " >&6; }
2370 if test "${ac_cv_target+set}" = set; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 if test "x$target_alias" = x; then
2374 ac_cv_target=$ac_cv_host
2375 else
2376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2382 $as_echo "$ac_cv_target" >&6; }
2383 case $ac_cv_target in
2384 *-*-*) ;;
2385 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2386 esac
2387 target=$ac_cv_target
2388 ac_save_IFS=$IFS; IFS='-'
2389 set x $ac_cv_target
2390 shift
2391 target_cpu=$1
2392 target_vendor=$2
2393 shift; shift
2394 # Remember, the first character of IFS is used to create $*,
2395 # except with old shells:
2396 target_os=$*
2397 IFS=$ac_save_IFS
2398 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2401 # The aliases save the names the user supplied, while $host etc.
2402 # will get canonicalized.
2403 test -n "$target_alias" &&
2404 test "$program_prefix$program_suffix$program_transform_name" = \
2405 NONENONEs,x,x, &&
2406 program_prefix=${target_alias}-
2415 # Check whether --with-gcc was given.
2416 if test "${with_gcc+set}" = set; then :
2417 withval=$with_gcc;
2420 V_CCOPT="-O"
2421 V_INCLS=""
2422 if test "${srcdir}" != "." ; then
2423 V_INCLS="-I\$(srcdir)"
2425 if test "${CFLAGS+set}" = set; then
2426 LBL_CFLAGS="$CFLAGS"
2428 if test -z "$CC" ; then
2429 case "$host_os" in
2431 bsdi*)
2432 # Extract the first word of "shlicc2", so it can be a program name with args.
2433 set dummy shlicc2; ac_word=$2
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if test "${ac_cv_prog_SHLICC2+set}" = set; then :
2437 $as_echo_n "(cached) " >&6
2438 else
2439 if test -n "$SHLICC2"; then
2440 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_SHLICC2="yes"
2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2457 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2460 SHLICC2=$ac_cv_prog_SHLICC2
2461 if test -n "$SHLICC2"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2463 $as_echo "$SHLICC2" >&6; }
2464 else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466 $as_echo "no" >&6; }
2470 if test $SHLICC2 = yes ; then
2471 CC=shlicc2
2472 export CC
2475 esac
2477 if test -z "$CC" -a "$with_gcc" = no ; then
2478 CC=cc
2479 export CC
2482 ac_ext=c
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2509 done
2510 done
2511 IFS=$as_save_IFS
2515 CC=$ac_cv_prog_CC
2516 if test -n "$CC"; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2518 $as_echo "$CC" >&6; }
2519 else
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521 $as_echo "no" >&6; }
2526 if test -z "$ac_cv_prog_CC"; then
2527 ac_ct_CC=$CC
2528 # Extract the first word of "gcc", so it can be a program name with args.
2529 set dummy gcc; ac_word=$2
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531 $as_echo_n "checking for $ac_word... " >&6; }
2532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 if test -n "$ac_ct_CC"; then
2536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_ac_ct_CC="gcc"
2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2549 done
2550 done
2551 IFS=$as_save_IFS
2555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2556 if test -n "$ac_ct_CC"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2558 $as_echo "$ac_ct_CC" >&6; }
2559 else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561 $as_echo "no" >&6; }
2564 if test "x$ac_ct_CC" = x; then
2565 CC=""
2566 else
2567 case $cross_compiling:$ac_tool_warned in
2568 yes:)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2571 ac_tool_warned=yes ;;
2572 esac
2573 CC=$ac_ct_CC
2575 else
2576 CC="$ac_cv_prog_CC"
2579 if test -z "$CC"; then
2580 if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}cc; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_CC="${ac_tool_prefix}cc"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2602 done
2603 done
2604 IFS=$as_save_IFS
2608 CC=$ac_cv_prog_CC
2609 if test -n "$CC"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2611 $as_echo "$CC" >&6; }
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2620 if test -z "$CC"; then
2621 # Extract the first word of "cc", so it can be a program name with args.
2622 set dummy cc; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_CC+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2630 else
2631 ac_prog_rejected=no
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2640 ac_prog_rejected=yes
2641 continue
2643 ac_cv_prog_CC="cc"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2647 done
2648 done
2649 IFS=$as_save_IFS
2651 if test $ac_prog_rejected = yes; then
2652 # We found a bogon in the path, so make sure we never use it.
2653 set dummy $ac_cv_prog_CC
2654 shift
2655 if test $# != 0; then
2656 # We chose a different compiler from the bogus one.
2657 # However, it has the same basename, so the bogon will be chosen
2658 # first if we set CC to just the basename; use the full file name.
2659 shift
2660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2665 CC=$ac_cv_prog_CC
2666 if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2676 if test -z "$CC"; then
2677 if test -n "$ac_tool_prefix"; then
2678 for ac_prog in cl.exe
2680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2703 IFS=$as_save_IFS
2707 CC=$ac_cv_prog_CC
2708 if test -n "$CC"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710 $as_echo "$CC" >&6; }
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2717 test -n "$CC" && break
2718 done
2720 if test -z "$CC"; then
2721 ac_ct_CC=$CC
2722 for ac_prog in cl.exe
2724 # Extract the first word of "$ac_prog", so it can be a program name with args.
2725 set dummy $ac_prog; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$ac_ct_CC"; then
2732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_ac_ct_CC="$ac_prog"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2747 IFS=$as_save_IFS
2751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2752 if test -n "$ac_ct_CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2754 $as_echo "$ac_ct_CC" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2761 test -n "$ac_ct_CC" && break
2762 done
2764 if test "x$ac_ct_CC" = x; then
2765 CC=""
2766 else
2767 case $cross_compiling:$ac_tool_warned in
2768 yes:)
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2771 ac_tool_warned=yes ;;
2772 esac
2773 CC=$ac_ct_CC
2780 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2782 as_fn_error $? "no acceptable C compiler found in \$PATH
2783 See \`config.log' for more details" "$LINENO" 5 ; }
2785 # Provide some information about the compiler.
2786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2787 set X $ac_compile
2788 ac_compiler=$2
2789 for ac_option in --version -v -V -qversion; do
2790 { { ac_try="$ac_compiler $ac_option >&5"
2791 case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794 esac
2795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796 $as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2798 ac_status=$?
2799 if test -s conftest.err; then
2800 sed '10a\
2801 ... rest of stderr output deleted ...
2802 10q' conftest.err >conftest.er1
2803 cat conftest.er1 >&5
2805 rm -f conftest.er1 conftest.err
2806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2807 test $ac_status = 0; }
2808 done
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h. */
2814 main ()
2818 return 0;
2820 _ACEOF
2821 ac_clean_files_save=$ac_clean_files
2822 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2823 # Try to create an executable without -o first, disregard a.out.
2824 # It will help us diagnose broken compilers, and finding out an intuition
2825 # of exeext.
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2827 $as_echo_n "checking whether the C compiler works... " >&6; }
2828 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2830 # The possible output files:
2831 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2833 ac_rmfiles=
2834 for ac_file in $ac_files
2836 case $ac_file in
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2838 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2839 esac
2840 done
2841 rm -f $ac_rmfiles
2843 if { { ac_try="$ac_link_default"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2849 $as_echo "$ac_try_echo"; } >&5
2850 (eval "$ac_link_default") 2>&5
2851 ac_status=$?
2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2853 test $ac_status = 0; }; then :
2854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2856 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2857 # so that the user can short-circuit this test for compilers unknown to
2858 # Autoconf.
2859 for ac_file in $ac_files ''
2861 test -f "$ac_file" || continue
2862 case $ac_file in
2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2865 [ab].out )
2866 # We found the default executable, but exeext='' is most
2867 # certainly right.
2868 break;;
2869 *.* )
2870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2871 then :; else
2872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874 # We set ac_cv_exeext here because the later test for it is not
2875 # safe: cross compilers may not add the suffix if given an `-o'
2876 # argument, so we may need to know it at that point already.
2877 # Even if this section looks crufty: it has the advantage of
2878 # actually working.
2879 break;;
2881 break;;
2882 esac
2883 done
2884 test "$ac_cv_exeext" = no && ac_cv_exeext=
2886 else
2887 ac_file=''
2889 if test -z "$ac_file"; then :
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 $as_echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 as_fn_error 77 "C compiler cannot create executables
2898 See \`config.log' for more details" "$LINENO" 5 ; }
2899 else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2901 $as_echo "yes" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2904 $as_echo_n "checking for C compiler default output file name... " >&6; }
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2906 $as_echo "$ac_file" >&6; }
2907 ac_exeext=$ac_cv_exeext
2909 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2910 ac_clean_files=$ac_clean_files_save
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2912 $as_echo_n "checking for suffix of executables... " >&6; }
2913 if { { ac_try="$ac_link"
2914 case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917 esac
2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 $as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_link") 2>&5
2921 ac_status=$?
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }; then :
2924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2926 # work properly (i.e., refer to `conftest.exe'), while it won't with
2927 # `rm'.
2928 for ac_file in conftest.exe conftest conftest.*; do
2929 test -f "$ac_file" || continue
2930 case $ac_file in
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933 break;;
2934 * ) break;;
2935 esac
2936 done
2937 else
2938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2941 See \`config.log' for more details" "$LINENO" 5 ; }
2943 rm -f conftest conftest$ac_cv_exeext
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2945 $as_echo "$ac_cv_exeext" >&6; }
2947 rm -f conftest.$ac_ext
2948 EXEEXT=$ac_cv_exeext
2949 ac_exeext=$EXEEXT
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h. */
2952 #include <stdio.h>
2954 main ()
2956 FILE *f = fopen ("conftest.out", "w");
2957 return ferror (f) || fclose (f) != 0;
2960 return 0;
2962 _ACEOF
2963 ac_clean_files="$ac_clean_files conftest.out"
2964 # Check that the compiler produces executables we can run. If not, either
2965 # the compiler is broken, or we cross compile.
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2967 $as_echo_n "checking whether we are cross compiling... " >&6; }
2968 if test "$cross_compiling" != yes; then
2969 { { ac_try="$ac_link"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_link") 2>&5
2977 ac_status=$?
2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2979 test $ac_status = 0; }
2980 if { ac_try='./conftest$ac_cv_exeext'
2981 { { case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 $as_echo "$ac_try_echo"; } >&5
2987 (eval "$ac_try") 2>&5
2988 ac_status=$?
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }; }; then
2991 cross_compiling=no
2992 else
2993 if test "$cross_compiling" = maybe; then
2994 cross_compiling=yes
2995 else
2996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 as_fn_error $? "cannot run C compiled programs.
2999 If you meant to cross compile, use \`--host'.
3000 See \`config.log' for more details" "$LINENO" 5 ; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3005 $as_echo "$cross_compiling" >&6; }
3007 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3008 ac_clean_files=$ac_clean_files_save
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3010 $as_echo_n "checking for suffix of object files... " >&6; }
3011 if test "${ac_cv_objext+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3018 main ()
3022 return 0;
3024 _ACEOF
3025 rm -f conftest.o conftest.obj
3026 if { { ac_try="$ac_compile"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_compile") 2>&5
3034 ac_status=$?
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }; then :
3037 for ac_file in conftest.o conftest.obj conftest.*; do
3038 test -f "$ac_file" || continue;
3039 case $ac_file in
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3041 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3042 break;;
3043 esac
3044 done
3045 else
3046 $as_echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error $? "cannot compute suffix of object files: cannot compile
3052 See \`config.log' for more details" "$LINENO" 5 ; }
3054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3057 $as_echo "$ac_cv_objext" >&6; }
3058 OBJEXT=$ac_cv_objext
3059 ac_objext=$OBJEXT
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3061 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3062 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3069 main ()
3071 #ifndef __GNUC__
3072 choke me
3073 #endif
3076 return 0;
3078 _ACEOF
3079 if ac_fn_c_try_compile "$LINENO"; then :
3080 ac_compiler_gnu=yes
3081 else
3082 ac_compiler_gnu=no
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3089 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3090 if test $ac_compiler_gnu = yes; then
3091 GCC=yes
3092 else
3093 GCC=
3095 ac_test_CFLAGS=${CFLAGS+set}
3096 ac_save_CFLAGS=$CFLAGS
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3098 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3099 if test "${ac_cv_prog_cc_g+set}" = set; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 ac_save_c_werror_flag=$ac_c_werror_flag
3103 ac_c_werror_flag=yes
3104 ac_cv_prog_cc_g=no
3105 CFLAGS="-g"
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3110 main ()
3114 return 0;
3116 _ACEOF
3117 if ac_fn_c_try_compile "$LINENO"; then :
3118 ac_cv_prog_cc_g=yes
3119 else
3120 CFLAGS=""
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3125 main ()
3129 return 0;
3131 _ACEOF
3132 if ac_fn_c_try_compile "$LINENO"; then :
3134 else
3135 ac_c_werror_flag=$ac_save_c_werror_flag
3136 CFLAGS="-g"
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3141 main ()
3145 return 0;
3147 _ACEOF
3148 if ac_fn_c_try_compile "$LINENO"; then :
3149 ac_cv_prog_cc_g=yes
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 ac_c_werror_flag=$ac_save_c_werror_flag
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3159 $as_echo "$ac_cv_prog_cc_g" >&6; }
3160 if test "$ac_test_CFLAGS" = set; then
3161 CFLAGS=$ac_save_CFLAGS
3162 elif test $ac_cv_prog_cc_g = yes; then
3163 if test "$GCC" = yes; then
3164 CFLAGS="-g -O2"
3165 else
3166 CFLAGS="-g"
3168 else
3169 if test "$GCC" = yes; then
3170 CFLAGS="-O2"
3171 else
3172 CFLAGS=
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3177 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 ac_cv_prog_cc_c89=no
3181 ac_save_CC=$CC
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3184 #include <stdarg.h>
3185 #include <stdio.h>
3186 #include <sys/types.h>
3187 #include <sys/stat.h>
3188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3189 struct buf { int x; };
3190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3191 static char *e (p, i)
3192 char **p;
3193 int i;
3195 return p[i];
3197 static char *f (char * (*g) (char **, int), char **p, ...)
3199 char *s;
3200 va_list v;
3201 va_start (v,p);
3202 s = g (p, va_arg (v,int));
3203 va_end (v);
3204 return s;
3207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3208 function prototypes and stuff, but not '\xHH' hex character constants.
3209 These don't provoke an error unfortunately, instead are silently treated
3210 as 'x'. The following induces an error, until -std is added to get
3211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3212 array size at least. It's necessary to write '\x00'==0 to get something
3213 that's true only with -std. */
3214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3217 inside strings and character constants. */
3218 #define FOO(x) 'x'
3219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3221 int test (int i, double x);
3222 struct s1 {int (*f) (int a);};
3223 struct s2 {int (*f) (double a);};
3224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3225 int argc;
3226 char **argv;
3228 main ()
3230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3232 return 0;
3234 _ACEOF
3235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3238 CC="$ac_save_CC $ac_arg"
3239 if ac_fn_c_try_compile "$LINENO"; then :
3240 ac_cv_prog_cc_c89=$ac_arg
3242 rm -f core conftest.err conftest.$ac_objext
3243 test "x$ac_cv_prog_cc_c89" != "xno" && break
3244 done
3245 rm -f conftest.$ac_ext
3246 CC=$ac_save_CC
3249 # AC_CACHE_VAL
3250 case "x$ac_cv_prog_cc_c89" in
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3253 $as_echo "none needed" >&6; } ;;
3254 xno)
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3256 $as_echo "unsupported" >&6; } ;;
3258 CC="$CC $ac_cv_prog_cc_c89"
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3261 esac
3262 if test "x$ac_cv_prog_cc_c89" != xno; then :
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 if test "$GCC" = yes ; then
3277 if test "$SHLICC2" = yes ; then
3278 ac_cv_lbl_gcc_vers=2
3279 V_CCOPT="-O2"
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
3282 $as_echo_n "checking gcc version... " >&6; }
3283 if test "${ac_cv_lbl_gcc_vers+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
3287 sed -e '/^gcc version /!d' \
3288 -e 's/^gcc version //' \
3289 -e 's/ .*//' -e 's/^[^0-9]*//' \
3290 -e 's/\..*//'`
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_vers" >&5
3294 $as_echo "$ac_cv_lbl_gcc_vers" >&6; }
3295 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
3296 V_CCOPT="-O2"
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that $CC handles ansi prototypes" >&5
3301 $as_echo_n "checking that $CC handles ansi prototypes... " >&6; }
3302 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3308 #include <sys/types.h>
3310 main ()
3312 int frob(int, char *)
3314 return 0;
3316 _ACEOF
3317 if ac_fn_c_try_compile "$LINENO"; then :
3318 ac_cv_lbl_cc_ansi_prototypes=yes
3319 else
3320 ac_cv_lbl_cc_ansi_prototypes=no
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
3326 $as_echo "$ac_cv_lbl_cc_ansi_prototypes" >&6; }
3327 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
3328 case "$host_os" in
3330 hpux*)
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3332 $as_echo_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... " >&6; }
3333 savedcflags="$CFLAGS"
3334 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3335 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3340 #include <sys/types.h>
3342 main ()
3344 int frob(int, char *)
3346 return 0;
3348 _ACEOF
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350 ac_cv_lbl_cc_hpux_cc_aa=yes
3351 else
3352 ac_cv_lbl_cc_hpux_cc_aa=no
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3358 $as_echo "$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3359 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3360 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3362 CFLAGS="$savedcflags"
3363 V_CCOPT="-Aa $V_CCOPT"
3365 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
3369 osf*)
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3371 $as_echo_n "checking for ansi mode in DEC compiler ($CC -std1)... " >&6; }
3372 savedcflags="$CFLAGS"
3373 CFLAGS="-std1"
3374 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379 #include <sys/types.h>
3381 main ()
3383 int frob(int, char *)
3385 return 0;
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_cv_lbl_cc_osf1_cc_std1=yes
3390 else
3391 ac_cv_lbl_cc_osf1_cc_std1=no
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3397 $as_echo "$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3398 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3399 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3401 CFLAGS="$savedcflags"
3402 V_CCOPT="-std1 $V_CCOPT"
3406 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3408 esac
3410 V_INCLS="$V_INCLS -I/usr/local/include"
3411 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3413 case "$host_os" in
3415 irix*)
3416 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3419 osf*)
3421 # Presumed to be DEC OSF/1, Digital UNIX, or
3422 # Tru64 UNIX.
3424 V_CCOPT="$V_CCOPT -g3"
3427 ultrix*)
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3429 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3430 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435 #include <sys/types.h>
3437 main ()
3439 struct a { int b; };
3440 void c(const struct a *)
3442 return 0;
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_cv_lbl_cc_const_proto=yes
3447 else
3448 ac_cv_lbl_cc_const_proto=no
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3454 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3455 if test $ac_cv_lbl_cc_const_proto = no ; then
3457 $as_echo "#define const /**/" >>confdefs.h
3461 esac
3465 if test "$GCC" = yes ; then
3467 # On platforms where we build a shared library:
3469 # add options to generate position-independent code,
3470 # if necessary (it's the default in AIX and Darwin/OS X);
3472 # define option to set the soname of the shared library,
3473 # if the OS supports that;
3475 # add options to specify, at link time, a directory to
3476 # add to the run-time search path, if that's necessary.
3478 V_SHLIB_CMD="\$(CC)"
3479 V_SHLIB_OPT="-shared"
3480 case "$host_os" in
3482 aix*)
3485 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3487 # Platforms where the linker is the GNU linker
3488 # or accepts command-line arguments like
3489 # those the GNU linker accepts.
3491 # Some instruction sets require -fPIC on some
3492 # operating systems. Check for them. If you
3493 # have a combination that requires it, add it
3494 # here.
3496 PIC_OPT=-fpic
3497 case "$host_cpu" in
3499 sparc64*)
3500 case "$host_os" in
3502 freebsd*)
3503 PIC_OPT=-fPIC
3505 esac
3507 esac
3508 V_CCOPT="$V_CCOPT $PIC_OPT"
3509 V_SONAME_OPT="-Wl,-soname,"
3510 V_RPATH_OPT="-Wl,-rpath,"
3513 hpux*)
3514 V_CCOPT="$V_CCOPT -fpic"
3516 # XXX - this assumes GCC is using the HP linker,
3517 # rather than the GNU linker, and that the "+h"
3518 # option is used on all HP-UX platforms, both .sl
3519 # and .so.
3521 V_SONAME_OPT="-Wl,+h,"
3523 # By default, directories specifed with -L
3524 # are added to the run-time search path, so
3525 # we don't add them in pcap-config.
3529 solaris*)
3530 V_CCOPT="$V_CCOPT -fpic"
3532 # XXX - this assumes GCC is using the Sun linker,
3533 # rather than the GNU linker.
3535 V_SONAME_OPT="-Wl,-h,"
3536 V_RPATH_OPT="-Wl,-R,"
3538 esac
3539 else
3541 # Set the appropriate compiler flags and, on platforms
3542 # where we build a shared library:
3544 # add options to generate position-independent code,
3545 # if necessary (it's the default in Darwin/OS X);
3547 # if we generate ".so" shared libraries, define the
3548 # appropriate options for building the shared library;
3550 # add options to specify, at link time, a directory to
3551 # add to the run-time search path, if that's necessary.
3553 # Note: spaces after V_SONAME_OPT are significant; on
3554 # some platforms the soname is passed with a GCC-like
3555 # "-Wl,-soname,{soname}" option, with the soname part
3556 # of the option, while on other platforms the C compiler
3557 # driver takes it as a regular option with the soname
3558 # following the option. The same applies to V_RPATH_OPT.
3560 case "$host_os" in
3562 aix*)
3563 V_SHLIB_CMD="\$(CC)"
3564 V_SHLIB_OPT="-G -bnoentry -bexpall"
3567 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3569 # "cc" is GCC.
3571 V_CCOPT="$V_CCOPT -fpic"
3572 V_SHLIB_CMD="\$(CC)"
3573 V_SHLIB_OPT="-shared"
3574 V_SONAME_OPT="-Wl,-soname,"
3575 V_RPATH_OPT="-Wl,-rpath,"
3578 hpux*)
3579 V_CCOPT="$V_CCOPT +z"
3580 V_SHLIB_CMD="\$(LD)"
3581 V_SHLIB_OPT="-b"
3582 V_SONAME_OPT="+h "
3584 # By default, directories specifed with -L
3585 # are added to the run-time search path, so
3586 # we don't add them in pcap-config.
3590 osf*)
3592 # Presumed to be DEC OSF/1, Digital UNIX, or
3593 # Tru64 UNIX.
3595 V_SHLIB_CMD="\$(CC)"
3596 V_SHLIB_OPT="-shared"
3597 V_SONAME_OPT="-soname "
3598 V_RPATH_OPT="-rpath "
3601 solaris*)
3602 V_CCOPT="$V_CCOPT -Kpic"
3603 V_SHLIB_CMD="\$(CC)"
3604 V_SHLIB_OPT="-G"
3605 V_SONAME_OPT="-h "
3606 V_RPATH_OPT="-R"
3608 esac
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3612 $as_echo_n "checking for inline... " >&6; }
3613 save_CFLAGS="$CFLAGS"
3614 CFLAGS="$V_CCOPT"
3615 if test "${ac_cv_lbl_inline+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3619 ac_cv_lbl_inline=""
3620 ac_lbl_cc_inline=no
3621 for ac_lbl_inline in inline __inline__ __inline
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #define inline $ac_lbl_inline
3626 static inline struct iltest *foo(void);
3627 struct iltest {
3628 int iltest1;
3629 int iltest2;
3632 static inline struct iltest *
3633 foo()
3635 static struct iltest xxx;
3637 return &xxx;
3640 main ()
3644 return 0;
3646 _ACEOF
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_lbl_cc_inline=yes
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 if test "$ac_lbl_cc_inline" = yes ; then
3652 break;
3654 done
3655 if test "$ac_lbl_cc_inline" = yes ; then
3656 ac_cv_lbl_inline=$ac_lbl_inline
3660 CFLAGS="$save_CFLAGS"
3661 if test ! -z "$ac_cv_lbl_inline" ; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3663 $as_echo "$ac_cv_lbl_inline" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3669 cat >>confdefs.h <<_ACEOF
3670 #define inline $ac_cv_lbl_inline
3671 _ACEOF
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3675 $as_echo_n "checking for __attribute__... " >&6; }
3676 if test "${ac_cv___attribute__+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3683 #include <stdlib.h>
3685 static void foo(void) __attribute__ ((noreturn));
3687 static void
3688 foo(void)
3690 exit(1);
3694 main(int argc, char **argv)
3696 foo();
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv___attribute__=yes
3702 else
3703 ac_cv___attribute__=no
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 if test "$ac_cv___attribute__" = "yes"; then
3710 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3712 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3713 else
3714 V_DEFS="$V_DEFS -D_U_=\"\""
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3717 $as_echo "$ac_cv___attribute__" >&6; }
3720 ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3726 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3727 # On Suns, sometimes $CPP names a directory.
3728 if test -n "$CPP" && test -d "$CPP"; then
3729 CPP=
3731 if test -z "$CPP"; then
3732 if test "${ac_cv_prog_CPP+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 # Double quotes because CPP needs to be expanded
3736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3738 ac_preproc_ok=false
3739 for ac_c_preproc_warn_flag in '' yes
3741 # Use a header file that comes with gcc, so configuring glibc
3742 # with a fresh cross-compiler works.
3743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744 # <limits.h> exists even on freestanding compilers.
3745 # On the NeXT, cc -E runs the code through the compiler's parser,
3746 # not just through cpp. "Syntax error" is here to catch this case.
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749 #ifdef __STDC__
3750 # include <limits.h>
3751 #else
3752 # include <assert.h>
3753 #endif
3754 Syntax error
3755 _ACEOF
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3758 else
3759 # Broken: fails on valid input.
3760 continue
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3764 # OK, works on sane cases. Now check whether nonexistent headers
3765 # can be detected and how.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <ac_nonexistent.h>
3769 _ACEOF
3770 if ac_fn_c_try_cpp "$LINENO"; then :
3771 # Broken: success on invalid input.
3772 continue
3773 else
3774 # Passes both tests.
3775 ac_preproc_ok=:
3776 break
3778 rm -f conftest.err conftest.i conftest.$ac_ext
3780 done
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.i conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then :
3784 break
3787 done
3788 ac_cv_prog_CPP=$CPP
3791 CPP=$ac_cv_prog_CPP
3792 else
3793 ac_cv_prog_CPP=$CPP
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3796 $as_echo "$CPP" >&6; }
3797 ac_preproc_ok=false
3798 for ac_c_preproc_warn_flag in '' yes
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808 #ifdef __STDC__
3809 # include <limits.h>
3810 #else
3811 # include <assert.h>
3812 #endif
3813 Syntax error
3814 _ACEOF
3815 if ac_fn_c_try_cpp "$LINENO"; then :
3817 else
3818 # Broken: fails on valid input.
3819 continue
3821 rm -f conftest.err conftest.i conftest.$ac_ext
3823 # OK, works on sane cases. Now check whether nonexistent headers
3824 # can be detected and how.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3828 _ACEOF
3829 if ac_fn_c_try_cpp "$LINENO"; then :
3830 # Broken: success on invalid input.
3831 continue
3832 else
3833 # Passes both tests.
3834 ac_preproc_ok=:
3835 break
3837 rm -f conftest.err conftest.i conftest.$ac_ext
3839 done
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.i conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then :
3844 else
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log' for more details" "$LINENO" 5 ; }
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3859 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3860 if test "${ac_cv_path_GREP+set}" = set; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 if test -z "$GREP"; then
3864 ac_path_GREP_found=false
3865 # Loop through the user's path and test for each of PROGNAME-LIST
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_prog in grep ggrep; do
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3874 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3875 # Check for GNU ac_path_GREP and select it if it is found.
3876 # Check for GNU $ac_path_GREP
3877 case `"$ac_path_GREP" --version 2>&1` in
3878 *GNU*)
3879 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3881 ac_count=0
3882 $as_echo_n 0123456789 >"conftest.in"
3883 while :
3885 cat "conftest.in" "conftest.in" >"conftest.tmp"
3886 mv "conftest.tmp" "conftest.in"
3887 cp "conftest.in" "conftest.nl"
3888 $as_echo 'GREP' >> "conftest.nl"
3889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3891 as_fn_arith $ac_count + 1 && ac_count=$as_val
3892 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3893 # Best one so far, save it but keep looking for a better one
3894 ac_cv_path_GREP="$ac_path_GREP"
3895 ac_path_GREP_max=$ac_count
3897 # 10*(2^10) chars as input seems more than enough
3898 test $ac_count -gt 10 && break
3899 done
3900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3901 esac
3903 $ac_path_GREP_found && break 3
3904 done
3905 done
3906 done
3907 IFS=$as_save_IFS
3908 if test -z "$ac_cv_path_GREP"; then
3909 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3911 else
3912 ac_cv_path_GREP=$GREP
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3917 $as_echo "$ac_cv_path_GREP" >&6; }
3918 GREP="$ac_cv_path_GREP"
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3922 $as_echo_n "checking for egrep... " >&6; }
3923 if test "${ac_cv_path_EGREP+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3927 then ac_cv_path_EGREP="$GREP -E"
3928 else
3929 if test -z "$EGREP"; then
3930 ac_path_EGREP_found=false
3931 # Loop through the user's path and test for each of PROGNAME-LIST
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_prog in egrep; do
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3940 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3941 # Check for GNU ac_path_EGREP and select it if it is found.
3942 # Check for GNU $ac_path_EGREP
3943 case `"$ac_path_EGREP" --version 2>&1` in
3944 *GNU*)
3945 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3947 ac_count=0
3948 $as_echo_n 0123456789 >"conftest.in"
3949 while :
3951 cat "conftest.in" "conftest.in" >"conftest.tmp"
3952 mv "conftest.tmp" "conftest.in"
3953 cp "conftest.in" "conftest.nl"
3954 $as_echo 'EGREP' >> "conftest.nl"
3955 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3957 as_fn_arith $ac_count + 1 && ac_count=$as_val
3958 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3959 # Best one so far, save it but keep looking for a better one
3960 ac_cv_path_EGREP="$ac_path_EGREP"
3961 ac_path_EGREP_max=$ac_count
3963 # 10*(2^10) chars as input seems more than enough
3964 test $ac_count -gt 10 && break
3965 done
3966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3967 esac
3969 $ac_path_EGREP_found && break 3
3970 done
3971 done
3972 done
3973 IFS=$as_save_IFS
3974 if test -z "$ac_cv_path_EGREP"; then
3975 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3977 else
3978 ac_cv_path_EGREP=$EGREP
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3984 $as_echo "$ac_cv_path_EGREP" >&6; }
3985 EGREP="$ac_cv_path_EGREP"
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3989 $as_echo_n "checking for ANSI C header files... " >&6; }
3990 if test "${ac_cv_header_stdc+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <stdlib.h>
3996 #include <stdarg.h>
3997 #include <string.h>
3998 #include <float.h>
4001 main ()
4005 return 0;
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_header_stdc=yes
4010 else
4011 ac_cv_header_stdc=no
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 if test $ac_cv_header_stdc = yes; then
4016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #include <string.h>
4021 _ACEOF
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "memchr" >/dev/null 2>&1; then :
4025 else
4026 ac_cv_header_stdc=no
4028 rm -f conftest*
4032 if test $ac_cv_header_stdc = yes; then
4033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #include <stdlib.h>
4038 _ACEOF
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "free" >/dev/null 2>&1; then :
4042 else
4043 ac_cv_header_stdc=no
4045 rm -f conftest*
4049 if test $ac_cv_header_stdc = yes; then
4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051 if test "$cross_compiling" = yes; then :
4053 else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #include <ctype.h>
4057 #include <stdlib.h>
4058 #if ((' ' & 0x0FF) == 0x020)
4059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4061 #else
4062 # define ISLOWER(c) \
4063 (('a' <= (c) && (c) <= 'i') \
4064 || ('j' <= (c) && (c) <= 'r') \
4065 || ('s' <= (c) && (c) <= 'z'))
4066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4067 #endif
4069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4071 main ()
4073 int i;
4074 for (i = 0; i < 256; i++)
4075 if (XOR (islower (i), ISLOWER (i))
4076 || toupper (i) != TOUPPER (i))
4077 return 2;
4078 return 0;
4080 _ACEOF
4081 if ac_fn_c_try_run "$LINENO"; then :
4083 else
4084 ac_cv_header_stdc=no
4086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4087 conftest.$ac_objext conftest.beam conftest.$ac_ext
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4093 $as_echo "$ac_cv_header_stdc" >&6; }
4094 if test $ac_cv_header_stdc = yes; then
4096 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4100 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4101 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4102 inttypes.h stdint.h unistd.h
4103 do :
4104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4105 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4108 cat >>confdefs.h <<_ACEOF
4109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110 _ACEOF
4114 done
4117 for ac_header in sys/bitypes.h
4118 do :
4119 ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
4120 if test "x$ac_cv_header_sys_bitypes_h" = x""yes; then :
4121 cat >>confdefs.h <<_ACEOF
4122 #define HAVE_SYS_BITYPES_H 1
4123 _ACEOF
4127 done
4130 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
4131 #ifdef HAVE_SYS_BITYPES_H
4132 #include <sys/bitypes.h>
4133 #endif
4135 if test "x$ac_cv_type_int8_t" = x""yes; then :
4137 else
4139 $as_echo "#define int8_t signed char" >>confdefs.h
4143 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
4144 #ifdef HAVE_SYS_BITYPES_H
4145 #include <sys/bitypes.h>
4146 #endif
4148 if test "x$ac_cv_type_u_int8_t" = x""yes; then :
4150 else
4152 $as_echo "#define u_int8_t unsigned char" >>confdefs.h
4156 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4157 if test "x$ac_cv_type_int16_t" = x""yes; then :
4159 else
4161 $as_echo "#define int16_t short" >>confdefs.h
4163 $ac_includes_default
4164 #ifdef HAVE_SYS_BITYPES_H
4165 #include <sys/bitypes.h>
4166 #endif
4169 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
4170 #ifdef HAVE_SYS_BITYPES_H
4171 #include <sys/bitypes.h>
4172 #endif
4174 if test "x$ac_cv_type_u_int16_t" = x""yes; then :
4176 else
4178 $as_echo "#define u_int16_t unsigned short" >>confdefs.h
4182 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
4183 #ifdef HAVE_SYS_BITYPES_H
4184 #include <sys/bitypes.h>
4185 #endif
4187 if test "x$ac_cv_type_int32_t" = x""yes; then :
4189 else
4191 $as_echo "#define int32_t int" >>confdefs.h
4195 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
4196 #ifdef HAVE_SYS_BITYPES_H
4197 #include <sys/bitypes.h>
4198 #endif
4200 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
4202 else
4204 $as_echo "#define u_int32_t unsigned int" >>confdefs.h
4208 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
4209 #ifdef HAVE_SYS_BITYPES_H
4210 #include <sys/bitypes.h>
4211 #endif
4213 if test "x$ac_cv_type_int64_t" = x""yes; then :
4215 else
4217 $as_echo "#define int64_t long long" >>confdefs.h
4221 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
4222 #ifdef HAVE_SYS_BITYPES_H
4223 #include <sys/bitypes.h>
4224 #endif
4226 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
4228 else
4230 $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
4236 # Try to arrange for large file support.
4238 # Check whether --enable-largefile was given.
4239 if test "${enable_largefile+set}" = set; then :
4240 enableval=$enable_largefile;
4243 if test "$enable_largefile" != no; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4246 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4247 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 ac_cv_sys_largefile_CC=no
4251 if test "$GCC" != yes; then
4252 ac_save_CC=$CC
4253 while :; do
4254 # IRIX 6.2 and later do not support large files by default,
4255 # so use the C compiler's -n32 option if that helps.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <sys/types.h>
4259 /* Check that off_t can represent 2**63 - 1 correctly.
4260 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4261 since some C++ compilers masquerading as C compilers
4262 incorrectly reject 9223372036854775807. */
4263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4265 && LARGE_OFF_T % 2147483647 == 1)
4266 ? 1 : -1];
4268 main ()
4272 return 0;
4274 _ACEOF
4275 if ac_fn_c_try_compile "$LINENO"; then :
4276 break
4278 rm -f core conftest.err conftest.$ac_objext
4279 CC="$CC -n32"
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281 ac_cv_sys_largefile_CC=' -n32'; break
4283 rm -f core conftest.err conftest.$ac_objext
4284 break
4285 done
4286 CC=$ac_save_CC
4287 rm -f conftest.$ac_ext
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4291 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4292 if test "$ac_cv_sys_largefile_CC" != no; then
4293 CC=$CC$ac_cv_sys_largefile_CC
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4297 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4298 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 while :; do
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <sys/types.h>
4305 /* Check that off_t can represent 2**63 - 1 correctly.
4306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4307 since some C++ compilers masquerading as C compilers
4308 incorrectly reject 9223372036854775807. */
4309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4311 && LARGE_OFF_T % 2147483647 == 1)
4312 ? 1 : -1];
4314 main ()
4318 return 0;
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_cv_sys_file_offset_bits=no; break
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 #define _FILE_OFFSET_BITS 64
4328 #include <sys/types.h>
4329 /* Check that off_t can represent 2**63 - 1 correctly.
4330 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4331 since some C++ compilers masquerading as C compilers
4332 incorrectly reject 9223372036854775807. */
4333 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4335 && LARGE_OFF_T % 2147483647 == 1)
4336 ? 1 : -1];
4338 main ()
4342 return 0;
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346 ac_cv_sys_file_offset_bits=64; break
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 ac_cv_sys_file_offset_bits=unknown
4350 break
4351 done
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4354 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4355 case $ac_cv_sys_file_offset_bits in #(
4356 no | unknown) ;;
4358 cat >>confdefs.h <<_ACEOF
4359 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4360 _ACEOF
4362 esac
4363 rm -rf conftest*
4364 if test $ac_cv_sys_file_offset_bits = unknown; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4366 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4367 if test "${ac_cv_sys_large_files+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 while :; do
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #include <sys/types.h>
4374 /* Check that off_t can represent 2**63 - 1 correctly.
4375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4376 since some C++ compilers masquerading as C compilers
4377 incorrectly reject 9223372036854775807. */
4378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4380 && LARGE_OFF_T % 2147483647 == 1)
4381 ? 1 : -1];
4383 main ()
4387 return 0;
4389 _ACEOF
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391 ac_cv_sys_large_files=no; break
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396 #define _LARGE_FILES 1
4397 #include <sys/types.h>
4398 /* Check that off_t can represent 2**63 - 1 correctly.
4399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4400 since some C++ compilers masquerading as C compilers
4401 incorrectly reject 9223372036854775807. */
4402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4404 && LARGE_OFF_T % 2147483647 == 1)
4405 ? 1 : -1];
4407 main ()
4411 return 0;
4413 _ACEOF
4414 if ac_fn_c_try_compile "$LINENO"; then :
4415 ac_cv_sys_large_files=1; break
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 ac_cv_sys_large_files=unknown
4419 break
4420 done
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4423 $as_echo "$ac_cv_sys_large_files" >&6; }
4424 case $ac_cv_sys_large_files in #(
4425 no | unknown) ;;
4427 cat >>confdefs.h <<_ACEOF
4428 #define _LARGE_FILES $ac_cv_sys_large_files
4429 _ACEOF
4431 esac
4432 rm -rf conftest*
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4437 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4438 if test "${ac_cv_sys_largefile_source+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 while :; do
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 #include <sys/types.h> /* for off_t */
4445 #include <stdio.h>
4447 main ()
4449 int (*fp) (FILE *, off_t, int) = fseeko;
4450 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4452 return 0;
4454 _ACEOF
4455 if ac_fn_c_try_link "$LINENO"; then :
4456 ac_cv_sys_largefile_source=no; break
4458 rm -f core conftest.err conftest.$ac_objext \
4459 conftest$ac_exeext conftest.$ac_ext
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #define _LARGEFILE_SOURCE 1
4463 #include <sys/types.h> /* for off_t */
4464 #include <stdio.h>
4466 main ()
4468 int (*fp) (FILE *, off_t, int) = fseeko;
4469 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4471 return 0;
4473 _ACEOF
4474 if ac_fn_c_try_link "$LINENO"; then :
4475 ac_cv_sys_largefile_source=1; break
4477 rm -f core conftest.err conftest.$ac_objext \
4478 conftest$ac_exeext conftest.$ac_ext
4479 ac_cv_sys_largefile_source=unknown
4480 break
4481 done
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4484 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4485 case $ac_cv_sys_largefile_source in #(
4486 no | unknown) ;;
4488 cat >>confdefs.h <<_ACEOF
4489 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4490 _ACEOF
4492 esac
4493 rm -rf conftest*
4495 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4496 # in glibc 2.1.3, but that breaks too many other things.
4497 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4498 if test $ac_cv_sys_largefile_source != unknown; then
4500 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4505 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
4506 do :
4507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4508 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4509 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4510 cat >>confdefs.h <<_ACEOF
4511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4512 _ACEOF
4516 done
4518 for ac_header in linux/types.h
4519 do :
4520 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
4521 if test "x$ac_cv_header_linux_types_h" = x""yes; then :
4522 cat >>confdefs.h <<_ACEOF
4523 #define HAVE_LINUX_TYPES_H 1
4524 _ACEOF
4528 done
4530 for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
4531 do :
4532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4535 cat >>confdefs.h <<_ACEOF
4536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4537 _ACEOF
4541 done
4543 for ac_header in net/pfvar.h
4544 do :
4545 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4546 #include <sys/socket.h>
4547 #include <net/if.h>
4549 if test "x$ac_cv_header_net_pfvar_h" = x""yes; then :
4550 cat >>confdefs.h <<_ACEOF
4551 #define HAVE_NET_PFVAR_H 1
4552 _ACEOF
4556 done
4558 if test "$ac_cv_header_net_pfvar_h" = yes; then
4560 # Check for various PF actions.
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4563 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <sys/types.h>
4567 #include <sys/socket.h>
4568 #include <net/if.h>
4569 #include <net/pfvar.h>
4571 main ()
4573 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4575 return 0;
4577 _ACEOF
4578 if ac_fn_c_try_compile "$LINENO"; then :
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4581 $as_echo "yes" >&6; }
4583 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 for ac_header in netinet/if_ether.h
4593 do :
4594 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4595 #include <sys/socket.h>
4597 if test "x$ac_cv_header_netinet_if_ether_h" = x""yes; then :
4598 cat >>confdefs.h <<_ACEOF
4599 #define HAVE_NETINET_IF_ETHER_H 1
4600 _ACEOF
4604 done
4606 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4608 # The simple test didn't work.
4609 # Do we need to include <net/if.h> first?
4610 # Unset ac_cv_header_netinet_if_ether_h so we don't
4611 # treat the previous failure as a cached value and
4612 # suppress the next test.
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4615 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4616 unset ac_cv_header_netinet_if_ether_h
4617 for ac_header in netinet/if_ether.h
4618 do :
4619 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4620 #include <sys/socket.h>
4621 #include <netinet/in.h>
4622 struct mbuf;
4623 struct rtentry;
4624 #include <net/if.h>
4626 if test "x$ac_cv_header_netinet_if_ether_h" = x""yes; then :
4627 cat >>confdefs.h <<_ACEOF
4628 #define HAVE_NETINET_IF_ETHER_H 1
4629 _ACEOF
4633 done
4637 if test "$GCC" = yes ; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4639 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4640 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4646 * This generates a "duplicate case value" when fixincludes
4647 * has not be run.
4649 # include <sys/types.h>
4650 # include <sys/time.h>
4651 # include <sys/ioctl.h>
4652 # ifdef HAVE_SYS_IOCCOM_H
4653 # include <sys/ioccom.h>
4654 # endif
4656 main ()
4658 switch (0) {
4659 case _IO('A', 1):;
4660 case _IO('B', 1):;
4663 return 0;
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667 ac_cv_lbl_gcc_fixincludes=yes
4668 else
4669 ac_cv_lbl_gcc_fixincludes=no
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4675 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4676 if test $ac_cv_lbl_gcc_fixincludes = no ; then
4677 # Don't cache failure
4678 unset ac_cv_lbl_gcc_fixincludes
4679 as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
4683 for ac_func in strerror strlcpy
4684 do :
4685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4688 cat >>confdefs.h <<_ACEOF
4689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4690 _ACEOF
4693 done
4696 needsnprintf=no
4697 for ac_func in vsnprintf snprintf
4698 do :
4699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4702 cat >>confdefs.h <<_ACEOF
4703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4704 _ACEOF
4706 else
4707 needsnprintf=yes
4709 done
4711 if test $needsnprintf = yes; then
4712 case " $LIBOBJS " in
4713 *" snprintf.$ac_objext "* ) ;;
4714 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
4716 esac
4721 # Do this before checking for ether_hostton(), as it's a
4722 # "gethostbyname() -ish function".
4725 # Most operating systems have gethostbyname() in the default searched
4726 # libraries (i.e. libc):
4727 # Some OSes (eg. Solaris) place it in libnsl
4728 # Some strange OSes (SINIX) have it in libsocket:
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4730 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4731 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 ac_func_search_save_LIBS=$LIBS
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4738 /* Override any GCC internal prototype to avoid an error.
4739 Use char because int might match the return type of a GCC
4740 builtin and then its argument prototype would still apply. */
4741 #ifdef __cplusplus
4742 extern "C"
4743 #endif
4744 char gethostbyname ();
4746 main ()
4748 return gethostbyname ();
4750 return 0;
4752 _ACEOF
4753 for ac_lib in '' nsl socket resolv; do
4754 if test -z "$ac_lib"; then
4755 ac_res="none required"
4756 else
4757 ac_res=-l$ac_lib
4758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4760 if ac_fn_c_try_link "$LINENO"; then :
4761 ac_cv_search_gethostbyname=$ac_res
4763 rm -f core conftest.err conftest.$ac_objext \
4764 conftest$ac_exeext
4765 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4766 break
4768 done
4769 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4771 else
4772 ac_cv_search_gethostbyname=no
4774 rm conftest.$ac_ext
4775 LIBS=$ac_func_search_save_LIBS
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4778 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4779 ac_res=$ac_cv_search_gethostbyname
4780 if test "$ac_res" != no; then :
4781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4785 # Unfortunately libsocket sometimes depends on libnsl and
4786 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4787 if test "$ac_cv_search_gethostbyname" = "no"
4788 then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
4790 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
4791 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 ac_check_lib_save_LIBS=$LIBS
4795 LIBS="-lsocket -lnsl $LIBS"
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4799 /* Override any GCC internal prototype to avoid an error.
4800 Use char because int might match the return type of a GCC
4801 builtin and then its argument prototype would still apply. */
4802 #ifdef __cplusplus
4803 extern "C"
4804 #endif
4805 char gethostbyname ();
4807 main ()
4809 return gethostbyname ();
4811 return 0;
4813 _ACEOF
4814 if ac_fn_c_try_link "$LINENO"; then :
4815 ac_cv_lib_socket_gethostbyname=yes
4816 else
4817 ac_cv_lib_socket_gethostbyname=no
4819 rm -f core conftest.err conftest.$ac_objext \
4820 conftest$ac_exeext conftest.$ac_ext
4821 LIBS=$ac_check_lib_save_LIBS
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
4824 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4825 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
4826 LIBS="-lsocket -lnsl $LIBS"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4831 $as_echo_n "checking for library containing socket... " >&6; }
4832 if test "${ac_cv_search_socket+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 ac_func_search_save_LIBS=$LIBS
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4839 /* Override any GCC internal prototype to avoid an error.
4840 Use char because int might match the return type of a GCC
4841 builtin and then its argument prototype would still apply. */
4842 #ifdef __cplusplus
4843 extern "C"
4844 #endif
4845 char socket ();
4847 main ()
4849 return socket ();
4851 return 0;
4853 _ACEOF
4854 for ac_lib in '' socket; do
4855 if test -z "$ac_lib"; then
4856 ac_res="none required"
4857 else
4858 ac_res=-l$ac_lib
4859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4861 if ac_fn_c_try_link "$LINENO"; then :
4862 ac_cv_search_socket=$ac_res
4864 rm -f core conftest.err conftest.$ac_objext \
4865 conftest$ac_exeext
4866 if test "${ac_cv_search_socket+set}" = set; then :
4867 break
4869 done
4870 if test "${ac_cv_search_socket+set}" = set; then :
4872 else
4873 ac_cv_search_socket=no
4875 rm conftest.$ac_ext
4876 LIBS=$ac_func_search_save_LIBS
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4879 $as_echo "$ac_cv_search_socket" >&6; }
4880 ac_res=$ac_cv_search_socket
4881 if test "$ac_res" != no; then :
4882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4886 $as_echo_n "checking for socket in -lsocket... " >&6; }
4887 if test "${ac_cv_lib_socket_socket+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 ac_check_lib_save_LIBS=$LIBS
4891 LIBS="-lsocket -lnsl $LIBS"
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4895 /* Override any GCC internal prototype to avoid an error.
4896 Use char because int might match the return type of a GCC
4897 builtin and then its argument prototype would still apply. */
4898 #ifdef __cplusplus
4899 extern "C"
4900 #endif
4901 char socket ();
4903 main ()
4905 return socket ();
4907 return 0;
4909 _ACEOF
4910 if ac_fn_c_try_link "$LINENO"; then :
4911 ac_cv_lib_socket_socket=yes
4912 else
4913 ac_cv_lib_socket_socket=no
4915 rm -f core conftest.err conftest.$ac_objext \
4916 conftest$ac_exeext conftest.$ac_ext
4917 LIBS=$ac_check_lib_save_LIBS
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4920 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4921 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
4922 LIBS="-lsocket -lnsl $LIBS"
4927 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
4929 $as_echo_n "checking for library containing putmsg... " >&6; }
4930 if test "${ac_cv_search_putmsg+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 ac_func_search_save_LIBS=$LIBS
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4937 /* Override any GCC internal prototype to avoid an error.
4938 Use char because int might match the return type of a GCC
4939 builtin and then its argument prototype would still apply. */
4940 #ifdef __cplusplus
4941 extern "C"
4942 #endif
4943 char putmsg ();
4945 main ()
4947 return putmsg ();
4949 return 0;
4951 _ACEOF
4952 for ac_lib in '' str; do
4953 if test -z "$ac_lib"; then
4954 ac_res="none required"
4955 else
4956 ac_res=-l$ac_lib
4957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4959 if ac_fn_c_try_link "$LINENO"; then :
4960 ac_cv_search_putmsg=$ac_res
4962 rm -f core conftest.err conftest.$ac_objext \
4963 conftest$ac_exeext
4964 if test "${ac_cv_search_putmsg+set}" = set; then :
4965 break
4967 done
4968 if test "${ac_cv_search_putmsg+set}" = set; then :
4970 else
4971 ac_cv_search_putmsg=no
4973 rm conftest.$ac_ext
4974 LIBS=$ac_func_search_save_LIBS
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
4977 $as_echo "$ac_cv_search_putmsg" >&6; }
4978 ac_res=$ac_cv_search_putmsg
4979 if test "$ac_res" != no; then :
4980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4987 # You are in a twisty little maze of UN*Xes, all different.
4988 # Some might not have ether_hostton().
4989 # Some might have it, but not declare it in any header file.
4990 # Some might have it, but declare it in <netinet/if_ether.h>.
4991 # Some might have it, but declare it in <netinet/ether.h>
4992 # (And some might have it but document it as something declared in
4993 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
4995 # Before you is a C compiler.
4997 for ac_func in ether_hostton
4998 do :
4999 ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5000 if test "x$ac_cv_func_ether_hostton" = x""yes; then :
5001 cat >>confdefs.h <<_ACEOF
5002 #define HAVE_ETHER_HOSTTON 1
5003 _ACEOF
5006 done
5008 if test "$ac_cv_func_ether_hostton" = yes; then
5010 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5012 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5014 # Yes. Does it declare ether_hostton()?
5016 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5017 #include <sys/types.h>
5018 #include <sys/socket.h>
5019 #include <netinet/in.h>
5020 #include <arpa/inet.h>
5021 struct mbuf;
5022 struct rtentry;
5023 #include <net/if.h>
5024 #include <netinet/if_ether.h>
5027 if test "x$ac_cv_have_decl_ether_hostton" = x""yes; then :
5030 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5037 # Did that succeed?
5039 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5041 # No, how about <netinet/ether.h>, as on Linux?
5043 for ac_header in netinet/ether.h
5044 do :
5045 ac_fn_c_check_header_mongrel "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
5046 if test "x$ac_cv_header_netinet_ether_h" = x""yes; then :
5047 cat >>confdefs.h <<_ACEOF
5048 #define HAVE_NETINET_ETHER_H 1
5049 _ACEOF
5053 done
5055 if test "$ac_cv_header_netinet_ether_h" = yes; then
5057 # We have it - does it declare ether_hostton()?
5058 # Unset ac_cv_have_decl_ether_hostton so we don't
5059 # treat the previous failure as a cached value and
5060 # suppress the next test.
5062 unset ac_cv_have_decl_ether_hostton
5063 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5064 #include <netinet/ether.h>
5067 if test "x$ac_cv_have_decl_ether_hostton" = x""yes; then :
5070 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5078 # Is ether_hostton() declared?
5080 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5082 # No, we'll have to declare it ourselves.
5083 # Do we have "struct ether_addr"?
5085 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5086 #include <sys/types.h>
5087 #include <sys/socket.h>
5088 #include <netinet/in.h>
5089 #include <arpa/inet.h>
5090 struct mbuf;
5091 struct rtentry;
5092 #include <net/if.h>
5093 #include <netinet/if_ether.h>
5096 if test "x$ac_cv_type_struct_ether_addr" = x""yes; then :
5098 cat >>confdefs.h <<_ACEOF
5099 #define HAVE_STRUCT_ETHER_ADDR 1
5100 _ACEOF
5106 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h
5108 else
5110 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5116 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5117 # Check whether --enable-protochain was given.
5118 if test "${enable_protochain+set}" = set; then :
5119 enableval=$enable_protochain;
5122 case "x$enable_protochain" in
5123 xyes) enable_protochain=enabled ;;
5124 xno) enable_protochain=disabled ;;
5125 x) enable_protochain=enabled ;;
5126 esac
5128 if test "$enable_protochain" = "disabled"; then
5130 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5134 $as_echo "${enable_protochain}" >&6; }
5137 # SITA support is mutually exclusive with native capture support;
5138 # "--with-sita" selects SITA support.
5141 # Check whether --with-sita was given.
5142 if test "${with_sita+set}" = set; then :
5143 withval=$with_sita;
5144 if test ! "x$withval" = "xno" ; then
5146 $as_echo "#define SITA 1" >>confdefs.h
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5149 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5150 V_PCAP=sita
5151 V_FINDALLDEVS=sita
5154 else
5156 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5157 as_fn_error $? "pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5
5160 # Check whether --with-pcap was given.
5161 if test "${with_pcap+set}" = set; then :
5162 withval=$with_pcap;
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5166 $as_echo_n "checking packet capture type... " >&6; }
5167 if test ! -z "$with_pcap" ; then
5168 V_PCAP="$withval"
5169 elif test -r /dev/bpf -o -h /dev/bpf ; then
5171 # Cloning BPF device.
5173 V_PCAP=bpf
5175 $as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h
5177 elif test -r /dev/bpf0 ; then
5178 V_PCAP=bpf
5179 elif test -r /usr/include/net/pfilt.h ; then
5180 V_PCAP=pf
5181 elif test -r /dev/enet ; then
5182 V_PCAP=enet
5183 elif test -r /dev/nit ; then
5184 V_PCAP=snit
5185 elif test -r /usr/include/sys/net/nit.h ; then
5186 V_PCAP=nit
5187 elif test -r /usr/include/linux/socket.h ; then
5188 V_PCAP=linux
5189 elif test -r /usr/include/net/raw.h ; then
5190 V_PCAP=snoop
5191 elif test -r /usr/include/odmi.h ; then
5193 # On AIX, the BPF devices might not yet be present - they're
5194 # created the first time libpcap runs after booting.
5195 # We check for odmi.h instead.
5197 V_PCAP=bpf
5198 elif test -c /dev/bpf0 ; then # check again in case not readable
5199 V_PCAP=bpf
5200 elif test -r /usr/include/sys/dlpi.h ; then
5201 V_PCAP=dlpi
5202 elif test -c /dev/enet ; then # check again in case not readable
5203 V_PCAP=enet
5204 elif test -c /dev/nit ; then # check again in case not readable
5205 V_PCAP=snit
5206 else
5207 V_PCAP=null
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5210 $as_echo "$V_PCAP" >&6; }
5213 # Do capture-mechanism-dependent tests.
5215 case "$V_PCAP" in
5216 dlpi)
5218 # Checks to see if Solaris has the public libdlpi(3LIB) library.
5219 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5220 # public libdlpi(3LIB) version. Before libdlpi was made public, a
5221 # private version also existed, which did not have the same APIs.
5222 # Due to a gcc bug, the default search path for 32-bit libraries does
5223 # not include /lib, we add it explicitly here.
5224 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5225 # Also, due to the bug above applications that link to libpcap with
5226 # libdlpi will have to add "-L/lib" option to "configure".
5228 saved_ldflags=$LDFLAGS
5229 LDFLAGS="$LIBS -L/lib"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5231 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5232 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 ac_check_lib_save_LIBS=$LIBS
5236 LIBS="-ldlpi $LIBS"
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5240 /* Override any GCC internal prototype to avoid an error.
5241 Use char because int might match the return type of a GCC
5242 builtin and then its argument prototype would still apply. */
5243 #ifdef __cplusplus
5244 extern "C"
5245 #endif
5246 char dlpi_walk ();
5248 main ()
5250 return dlpi_walk ();
5252 return 0;
5254 _ACEOF
5255 if ac_fn_c_try_link "$LINENO"; then :
5256 ac_cv_lib_dlpi_dlpi_walk=yes
5257 else
5258 ac_cv_lib_dlpi_dlpi_walk=no
5260 rm -f core conftest.err conftest.$ac_objext \
5261 conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5265 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5266 if test "x$ac_cv_lib_dlpi_dlpi_walk" = x""yes; then :
5267 LIBS="-ldlpi $LIBS"
5268 V_PCAP=libdlpi
5270 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5272 else
5273 V_PCAP=dlpi
5276 LDFLAGS=$saved_ldflags
5279 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5280 # versions of DLPI.
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5283 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5284 if test "${ac_cv_sys_dlpi_usable+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5290 #include <sys/types.h>
5291 #include <sys/time.h>
5292 #include <sys/dlpi.h>
5295 main ()
5297 int i = DL_PROMISC_PHYS;
5299 return 0;
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_sys_dlpi_usable=yes
5304 else
5305 ac_cv_sys_dlpi_usable=no
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5311 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5312 if test $ac_cv_sys_dlpi_usable = no ; then
5313 as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5317 # Check whether we have a /dev/dlpi device or have multiple devices.
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
5320 $as_echo_n "checking for /dev/dlpi device... " >&6; }
5321 if test -c /dev/dlpi ; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5323 $as_echo "yes" >&6; }
5325 $as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 dir="/dev/dlpi"
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
5332 $as_echo_n "checking for $dir directory... " >&6; }
5333 if test -d $dir ; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 $as_echo "yes" >&6; }
5337 cat >>confdefs.h <<_ACEOF
5338 #define PCAP_DEV_PREFIX "$dir"
5339 _ACEOF
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5348 # This check is for Solaris with DLPI support for passive modes.
5349 # See dlpi(7P) for more details.
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5352 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5353 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5359 # include <sys/types.h>
5360 # include <sys/dlpi.h>
5362 main ()
5364 u_int i = sizeof(dl_passive_req_t)
5366 return 0;
5368 _ACEOF
5369 if ac_fn_c_try_compile "$LINENO"; then :
5370 ac_cv_lbl_has_dl_passive_req_t=yes
5371 else
5372 ac_cv_lbl_has_dl_passive_req_t=no
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5378 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5379 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5381 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5386 linux)
5388 # Do we have the wireless extensions?
5390 for ac_header in linux/wireless.h
5391 do :
5392 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5393 #include <sys/socket.h>
5394 #include <linux/if.h>
5395 #include <linux/types.h>
5398 if test "x$ac_cv_header_linux_wireless_h" = x""yes; then :
5399 cat >>confdefs.h <<_ACEOF
5400 #define HAVE_LINUX_WIRELESS_H 1
5401 _ACEOF
5405 done
5409 # Do we have libnl?
5412 # Check whether --with-libnl was given.
5413 if test "${with_libnl+set}" = set; then :
5414 withval=$with_libnl; with_libnl=$withval
5418 if test x$with_libnl != xno ; then
5420 # Try libnl 2.x first.
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5423 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5424 if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 ac_check_lib_save_LIBS=$LIBS
5428 LIBS="-lnl $LIBS"
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5432 /* Override any GCC internal prototype to avoid an error.
5433 Use char because int might match the return type of a GCC
5434 builtin and then its argument prototype would still apply. */
5435 #ifdef __cplusplus
5436 extern "C"
5437 #endif
5438 char nl_socket_alloc ();
5440 main ()
5442 return nl_socket_alloc ();
5444 return 0;
5446 _ACEOF
5447 if ac_fn_c_try_link "$LINENO"; then :
5448 ac_cv_lib_nl_nl_socket_alloc=yes
5449 else
5450 ac_cv_lib_nl_nl_socket_alloc=no
5452 rm -f core conftest.err conftest.$ac_objext \
5453 conftest$ac_exeext conftest.$ac_ext
5454 LIBS=$ac_check_lib_save_LIBS
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
5457 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
5458 if test "x$ac_cv_lib_nl_nl_socket_alloc" = x""yes; then :
5461 # Yes, we have libnl 2.x.
5463 LIBS="-lnl-genl -lnl $LIBS"
5465 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5468 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
5471 else
5474 # No, we don't; do we have libnl 1.x?
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
5477 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
5478 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 ac_check_lib_save_LIBS=$LIBS
5482 LIBS="-lnl $LIBS"
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5486 /* Override any GCC internal prototype to avoid an error.
5487 Use char because int might match the return type of a GCC
5488 builtin and then its argument prototype would still apply. */
5489 #ifdef __cplusplus
5490 extern "C"
5491 #endif
5492 char nl_handle_alloc ();
5494 main ()
5496 return nl_handle_alloc ();
5498 return 0;
5500 _ACEOF
5501 if ac_fn_c_try_link "$LINENO"; then :
5502 ac_cv_lib_nl_nl_handle_alloc=yes
5503 else
5504 ac_cv_lib_nl_nl_handle_alloc=no
5506 rm -f core conftest.err conftest.$ac_objext \
5507 conftest$ac_exeext conftest.$ac_ext
5508 LIBS=$ac_check_lib_save_LIBS
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
5511 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
5512 if test "x$ac_cv_lib_nl_nl_handle_alloc" = x""yes; then :
5515 # Yes.
5517 LIBS="-lnl $LIBS"
5519 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5522 else
5525 # No, we don't have libnl at all.
5527 if test x$with_libnl = xyes ; then
5528 as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
5538 for ac_header in linux/ethtool.h
5539 do :
5540 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
5541 $ac_includes_default
5542 #include <linux/types.h>
5545 if test "x$ac_cv_header_linux_ethtool_h" = x""yes; then :
5546 cat >>confdefs.h <<_ACEOF
5547 #define HAVE_LINUX_ETHTOOL_H 1
5548 _ACEOF
5552 done
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
5555 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
5556 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5562 # include <linux/if_packet.h>
5564 main ()
5566 struct tpacket_stats stats
5568 return 0;
5570 _ACEOF
5571 if ac_fn_c_try_compile "$LINENO"; then :
5572 ac_cv_lbl_tpacket_stats=yes
5573 else
5574 ac_cv_lbl_tpacket_stats=no
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
5580 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
5581 if test $ac_cv_lbl_tpacket_stats = yes; then
5583 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
5587 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
5588 if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5594 # include <sys/types.h>
5595 # include <linux/if_packet.h>
5597 main ()
5599 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
5601 return 0;
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
5606 else
5607 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
5613 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
5614 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
5615 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
5618 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
5623 bpf)
5625 # Check whether we have the *BSD-style ioctls.
5627 for ac_header in net/if_media.h
5628 do :
5629 ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
5630 if test "x$ac_cv_header_net_if_media_h" = x""yes; then :
5631 cat >>confdefs.h <<_ACEOF
5632 #define HAVE_NET_IF_MEDIA_H 1
5633 _ACEOF
5637 done
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system supports zerocopy BPF" >&5
5641 $as_echo_n "checking whether the system supports zerocopy BPF... " >&6; }
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/socket.h>
5645 #include <sys/ioctl.h>
5646 #include <net/if.h>
5647 #include <net/bpf.h>
5649 main ()
5651 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
5653 return 0;
5655 _ACEOF
5656 if ac_fn_c_try_compile "$LINENO"; then :
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5659 $as_echo "yes" >&6; }
5661 $as_echo "#define HAVE_ZEROCOPY_BPF 1" >>confdefs.h
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 # Check whether we have struct BPF_TIMEVAL.
5673 ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
5674 #include <sys/types.h>
5675 #include <sys/ioctl.h>
5676 #ifdef HAVE_SYS_IOCCOM_H
5677 #include <sys/ioccom.h>
5678 #endif
5679 #include <net/bpf.h>
5682 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = x""yes; then :
5684 cat >>confdefs.h <<_ACEOF
5685 #define HAVE_STRUCT_BPF_TIMEVAL 1
5686 _ACEOF
5693 dag)
5694 V_DEFS="$V_DEFS -DDAG_ONLY"
5697 septel)
5698 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
5701 snf)
5702 V_DEFS="$V_DEFS -DSNF_ONLY"
5705 null)
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
5707 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
5709 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5711 esac
5713 if test "$V_PCAP" = null
5714 then
5716 # We can't capture, so we can't open any capture
5717 # devices, so we won't return any interfaces.
5719 V_FINDALLDEVS=null
5720 else
5721 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
5722 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
5725 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
5726 # as well, just in case some platform is really weird.
5728 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
5729 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
5732 # We have the header, so we use "getifaddrs()" to
5733 # get the list of interfaces.
5735 V_FINDALLDEVS=getad
5737 else
5740 # We don't have the header - give up.
5741 # XXX - we could also fall back on some other
5742 # mechanism, but, for now, this'll catch this
5743 # problem so that we can at least try to figure
5744 # out something to do on systems with "getifaddrs()"
5745 # but without "ifaddrs.h", if there is something
5746 # we can do on those systems.
5748 as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
5754 else
5757 # Well, we don't have "getifaddrs()", so we have to use
5758 # some other mechanism; determine what that mechanism is.
5760 # The first thing we use is the type of capture mechanism,
5761 # which is somewhat of a proxy for the OS we're using.
5763 case "$V_PCAP" in
5765 dlpi|libdlpi)
5766 for ac_header in sys/bufmod.h sys/dlpi_ext.h
5767 do :
5768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5769 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5770 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5771 cat >>confdefs.h <<_ACEOF
5772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5773 _ACEOF
5777 done
5780 # This might be Solaris 8 or later, with
5781 # SIOCGLIFCONF, or it might be some other OS
5782 # or some older version of Solaris, with
5783 # just SIOCGIFCONF.
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
5786 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
5787 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include <sys/param.h>
5793 #include <sys/file.h>
5794 #include <sys/ioctl.h>
5795 #include <sys/socket.h>
5796 #include <sys/sockio.h>
5798 main ()
5800 ioctl(0, SIOCGLIFCONF, (char *)0);
5802 return 0;
5804 _ACEOF
5805 if ac_fn_c_try_compile "$LINENO"; then :
5806 ac_cv_lbl_have_siocglifconf=yes
5807 else
5808 ac_cv_lbl_have_siocglifconf=no
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
5814 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
5815 if test $ac_cv_lbl_have_siocglifconf = yes ; then
5816 V_FINDALLDEVS=glifc
5817 else
5818 V_FINDALLDEVS=gifc
5821 # Needed for common functions used by pcap-[dlpi,libdlpi].c
5823 SSRC="dlpisubs.c"
5828 # Assume we just have SIOCGIFCONF.
5829 # (XXX - on at least later Linux kernels, there's
5830 # another mechanism, and we should be using that
5831 # instead.)
5833 V_FINDALLDEVS=gifc
5835 esac
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
5844 $as_echo_n "checking for socklen_t... " >&6; }
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5848 #include <sys/types.h>
5849 #include <sys/socket.h>
5852 main ()
5854 socklen_t x;
5856 return 0;
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"; then :
5860 have_socklen_t=yes
5861 else
5862 have_socklen_t=no
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 if test "x$have_socklen_t" = "xyes"; then
5867 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
5871 $as_echo "$have_socklen_t" >&6; }
5873 { echo "$as_me:$LINENO: checking if --enable-remote option is specified" >&5
5874 echo $ECHO_N "checking if --disable-remote option is specified... $ECHO_C" >&6; }
5875 # Check whether --disable-remote was given.
5876 if test "${enable_remote+set}" = set; then
5877 enableval=$enable_remote;
5881 case "x$enable_remote" in
5882 xyes) enable_remote=enabled ;;
5883 xno) enable_remote=disabled ;;
5884 x) enable_remote=enabled ;;
5885 esac
5887 { echo "$as_me:$LINENO: result: ${enable_remote}" >&5
5888 echo "${ECHO_T}${enable_remote}" >&6; }
5890 if test "$enable_remote" = "enabled"; then
5893 { echo "$as_me:$LINENO: checking if remote capture is supported" >&5
5894 echo $ECHO_N "checking if remote capture is supported... $ECHO_C" >&6; }
5896 if test -e ./remote-ext.h ; then # Check that the remote extensions are there
5898 case "$V_PCAP" in
5900 linux)
5901 V_REMOTE_FILES="pcap-new.c pcap-remote.c sockutils.c"
5902 V_HAVE_REMOTE="-DHAVE_REMOTE"
5904 cat >>confdefs.h <<\_ACEOF
5905 #define HAVE_REMOTE 1
5906 _ACEOF
5908 have_remote=yes
5911 bpf)
5912 V_REMOTE_FILES="pcap-new.c pcap-remote.c sockutils.c"
5913 V_HAVE_REMOTE="-DHAVE_REMOTE"
5915 cat >>confdefs.h <<\_ACEOF
5916 #define HAVE_REMOTE 1
5917 _ACEOF
5919 have_remote=yes
5923 have_remote=no
5926 esac
5928 { echo "$as_me:$LINENO: result: ${have_remote}" >&5
5929 echo "${ECHO_T}${have_remote}" >&6; }
5934 # Check whether --enable-ipv6 was given.
5935 if test "${enable_ipv6+set}" = set; then :
5936 enableval=$enable_ipv6;
5937 else
5938 enable_ipv6=ifavailable
5941 if test "$enable_ipv6" != "no"; then
5942 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5943 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
5946 $as_echo "#define INET6 1" >>confdefs.h
5949 else
5951 if test "$enable_ipv6" != "ifavailable"; then
5952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5954 as_fn_error $? "--enable-ipv6 was given, but getaddrinfo isn't available
5955 See \`config.log' for more details" "$LINENO" 5 ; }
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
5963 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
5964 # Check whether --enable-optimizer-dbg was given.
5965 if test "${enable_optimizer_dbg+set}" = set; then :
5966 enableval=$enable_optimizer_dbg;
5969 if test "$enable_optimizer_dbg" = "yes"; then
5971 $as_echo "#define BDEBUG 1" >>confdefs.h
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
5975 $as_echo "${enable_optimizer_dbg-no}" >&6; }
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
5978 $as_echo_n "checking whether to build parser debugging code... " >&6; }
5979 # Check whether --enable-yydebug was given.
5980 if test "${enable_yydebug+set}" = set; then :
5981 enableval=$enable_yydebug;
5984 if test "$enable_yydebug" = "yes"; then
5986 $as_echo "#define YYDEBUG 1" >>confdefs.h
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
5990 $as_echo "${enable_yydebug-no}" >&6; }
5992 # Check for Endace DAG card support.
5994 # Check whether --with-dag was given.
5995 if test "${with_dag+set}" = set; then :
5996 withval=$with_dag;
5997 if test "$withval" = no
5998 then
5999 # User doesn't want DAG support.
6000 want_dag=no
6001 elif test "$withval" = yes
6002 then
6003 # User wants DAG support but hasn't specified a directory.
6004 want_dag=yes
6005 else
6006 # User wants DAG support and has specified a directory, so use the provided value.
6007 want_dag=yes
6008 dag_root=$withval
6011 else
6014 # Use DAG API if present, otherwise don't
6016 want_dag=ifpresent
6022 # Check whether --with-dag-includes was given.
6023 if test "${with_dag_includes+set}" = set; then :
6024 withval=$with_dag_includes;
6025 # User wants DAG support and has specified a header directory, so use the provided value.
6026 want_dag=yes
6027 dag_include_dir=$withval
6033 # Check whether --with-dag-libraries was given.
6034 if test "${with_dag_libraries+set}" = set; then :
6035 withval=$with_dag_libraries;
6036 # User wants DAG support and has specified a library directory, so use the provided value.
6037 want_dag=yes
6038 dag_lib_dir=$withval
6043 case "$V_PCAP" in
6044 linux|bpf|dag)
6046 # We support the DAG API if we're on Linux or BSD, or if we're
6047 # building a DAG-only libpcap.
6052 # If the user explicitly requested DAG, tell them it's not
6053 # supported.
6055 # If they expressed no preference, don't include it.
6057 if test $want_dag = yes; then
6058 as_fn_error $? "DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" "$LINENO" 5
6059 elif test $want_dag = yes; then
6060 want_dag=no
6063 esac
6065 ac_cv_lbl_dag_api=no
6066 if test "$want_dag" != no; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6069 $as_echo_n "checking whether we have DAG API headers... " >&6; }
6071 # If necessary, set default paths for DAG API headers and libraries.
6072 if test -z "$dag_root"; then
6073 dag_root=/usr/local
6076 if test -z "$dag_include_dir"; then
6077 dag_include_dir="$dag_root/include"
6080 if test -z "$dag_lib_dir"; then
6081 dag_lib_dir="$dag_root/lib"
6084 if test -z "$dag_tools_dir"; then
6085 dag_tools_dir="$dag_root/tools"
6088 if test -r $dag_include_dir/dagapi.h; then
6089 ac_cv_lbl_dag_api=yes
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
6092 $as_echo "$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
6095 if test $ac_cv_lbl_dag_api = yes; then
6096 V_INCLS="$V_INCLS -I$dag_include_dir"
6098 if test $V_PCAP != dag ; then
6099 SSRC="pcap-dag.c"
6102 # See if we can find a general version string.
6103 # Don't need to save and restore LIBS to prevent -ldag being
6104 # included if there's a found-action (arg 3).
6105 saved_ldflags=$LDFLAGS
6106 LDFLAGS="-L$dag_lib_dir"
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6108 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6109 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 ac_check_lib_save_LIBS=$LIBS
6113 LIBS="-ldag $LIBS"
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6117 /* Override any GCC internal prototype to avoid an error.
6118 Use char because int might match the return type of a GCC
6119 builtin and then its argument prototype would still apply. */
6120 #ifdef __cplusplus
6121 extern "C"
6122 #endif
6123 char dag_attach_stream ();
6125 main ()
6127 return dag_attach_stream ();
6129 return 0;
6131 _ACEOF
6132 if ac_fn_c_try_link "$LINENO"; then :
6133 ac_cv_lib_dag_dag_attach_stream=yes
6134 else
6135 ac_cv_lib_dag_dag_attach_stream=no
6137 rm -f core conftest.err conftest.$ac_objext \
6138 conftest$ac_exeext conftest.$ac_ext
6139 LIBS=$ac_check_lib_save_LIBS
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6142 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
6143 if test "x$ac_cv_lib_dag_dag_attach_stream" = x""yes; then :
6144 dag_streams="1"
6145 else
6146 dag_streams="0"
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6150 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6151 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 ac_check_lib_save_LIBS=$LIBS
6155 LIBS="-ldag $LIBS"
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6159 /* Override any GCC internal prototype to avoid an error.
6160 Use char because int might match the return type of a GCC
6161 builtin and then its argument prototype would still apply. */
6162 #ifdef __cplusplus
6163 extern "C"
6164 #endif
6165 char dag_get_erf_types ();
6167 main ()
6169 return dag_get_erf_types ();
6171 return 0;
6173 _ACEOF
6174 if ac_fn_c_try_link "$LINENO"; then :
6175 ac_cv_lib_dag_dag_get_erf_types=yes
6176 else
6177 ac_cv_lib_dag_dag_get_erf_types=no
6179 rm -f core conftest.err conftest.$ac_objext \
6180 conftest$ac_exeext conftest.$ac_ext
6181 LIBS=$ac_check_lib_save_LIBS
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6184 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6185 if test "x$ac_cv_lib_dag_dag_get_erf_types" = x""yes; then :
6188 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6193 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6194 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 ac_check_lib_save_LIBS=$LIBS
6198 LIBS="-ldag $LIBS"
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6202 /* Override any GCC internal prototype to avoid an error.
6203 Use char because int might match the return type of a GCC
6204 builtin and then its argument prototype would still apply. */
6205 #ifdef __cplusplus
6206 extern "C"
6207 #endif
6208 char dag_get_stream_erf_types ();
6210 main ()
6212 return dag_get_stream_erf_types ();
6214 return 0;
6216 _ACEOF
6217 if ac_fn_c_try_link "$LINENO"; then :
6218 ac_cv_lib_dag_dag_get_stream_erf_types=yes
6219 else
6220 ac_cv_lib_dag_dag_get_stream_erf_types=no
6222 rm -f core conftest.err conftest.$ac_objext \
6223 conftest$ac_exeext conftest.$ac_ext
6224 LIBS=$ac_check_lib_save_LIBS
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6227 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6228 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = x""yes; then :
6231 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6236 LDFLAGS=$saved_ldflags
6238 if test "$dag_streams" = 1; then
6240 $as_echo "#define HAVE_DAG_STREAMS_API 1" >>confdefs.h
6242 LIBS="$LIBS -ldag"
6243 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6246 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6247 if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 ac_check_lib_save_LIBS=$LIBS
6251 LIBS="-lvdag $LIBS"
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6255 /* Override any GCC internal prototype to avoid an error.
6256 Use char because int might match the return type of a GCC
6257 builtin and then its argument prototype would still apply. */
6258 #ifdef __cplusplus
6259 extern "C"
6260 #endif
6261 char vdag_set_device_info ();
6263 main ()
6265 return vdag_set_device_info ();
6267 return 0;
6269 _ACEOF
6270 if ac_fn_c_try_link "$LINENO"; then :
6271 ac_cv_lib_vdag_vdag_set_device_info=yes
6272 else
6273 ac_cv_lib_vdag_vdag_set_device_info=no
6275 rm -f core conftest.err conftest.$ac_objext \
6276 conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_check_lib_save_LIBS
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6280 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6281 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = x""yes; then :
6282 ac_dag_have_vdag="1"
6283 else
6284 ac_dag_have_vdag="0"
6287 if test "$ac_dag_have_vdag" = 1; then
6289 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6291 LIBS="$LIBS -lpthread"
6296 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have the DAG API" >&5
6301 $as_echo_n "checking whether we have the DAG API... " >&6; }
6303 if test $ac_cv_lbl_dag_api = no; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6306 if test "$want_dag" = yes; then
6307 # User wanted DAG support but we couldn't find it.
6308 as_fn_error $? "DAG API requested, but not found at $dag_root: use --without-dag" "$LINENO" 5
6311 if test "$V_PCAP" = dag; then
6312 # User requested "dag" capture type but the DAG API wasn't
6313 # found.
6314 as_fn_error $? "Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" "$LINENO" 5
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6318 $as_echo "yes" >&6; }
6322 # Check whether --with-septel was given.
6323 if test "${with_septel+set}" = set; then :
6324 withval=$with_septel;
6325 if test "$withval" = no
6326 then
6327 want_septel=no
6328 elif test "$withval" = yes
6329 then
6330 want_septel=yes
6331 septel_root=
6332 else
6333 want_septel=yes
6334 septel_root=$withval
6337 else
6340 # Use Septel API if present, otherwise don't
6342 want_septel=ifpresent
6343 septel_root=./../septel
6347 ac_cv_lbl_septel_api=no
6348 case "$V_PCAP" in
6349 linux|septel)
6351 # We support the Septel API if we're on Linux, or if we're building
6352 # a Septel-only libpcap.
6357 # If the user explicitly requested Septel, tell them it's not
6358 # supported.
6360 # If they expressed no preference, don't include it.
6362 if test $want_septel = yes; then
6363 as_fn_error $? "Septel support only available with 'linux' and 'septel' packet capture types" "$LINENO" 5
6364 elif test $want_septel = yes; then
6365 want_septel=no
6368 esac
6370 if test "$with_septel" != no; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API" >&5
6372 $as_echo_n "checking whether we have Septel API... " >&6; }
6374 if test -z "$septel_root"; then
6375 septel_root=$srcdir/../septel
6378 septel_tools_dir="$septel_root"
6379 septel_include_dir="$septel_root/INC"
6381 ac_cv_lbl_septel_api=no
6382 if test -r "$septel_include_dir/msg.h"; then
6383 V_INCLS="$V_INCLS -I$septel_include_dir"
6384 ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
6385 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
6387 if test "$V_PCAP" != septel ; then
6388 SSRC="pcap-septel.c"
6390 ac_cv_lbl_septel_api=yes
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_septel_api" >&5
6394 $as_echo "$ac_cv_lbl_septel_api" >&6; }
6395 if test $ac_cv_lbl_septel_api = no; then
6396 if test "$want_septel" = yes; then
6397 as_fn_error $? "Septel API not found under directory $septel_root; use --without-septel" "$LINENO" 5
6399 else
6401 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6406 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
6407 as_fn_error $? "Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" "$LINENO" 5
6410 # Check for Myricom SNF support.
6412 # Check whether --with-snf was given.
6413 if test "${with_snf+set}" = set; then :
6414 withval=$with_snf;
6415 if test "$withval" = no
6416 then
6417 # User explicitly doesn't want SNF
6418 want_snf=no
6419 elif test "$withval" = yes
6420 then
6421 # User wants SNF support but hasn't specific a directory.
6422 want_snf=yes
6423 else
6424 # User wants SNF support with a specified directory.
6425 want_snf=yes
6426 snf_root=$withval
6429 else
6432 # Use Sniffer API if present, otherwise don't
6434 want_snf=ifpresent
6440 # Check whether --with-snf-includes was given.
6441 if test "${with_snf_includes+set}" = set; then :
6442 withval=$with_snf_includes;
6443 # User wants SNF with specific header directory
6444 want_snf=yes
6445 snf_include_dir=$withval
6451 # Check whether --with-snf-libraries was given.
6452 if test "${with_snf_libraries+set}" = set; then :
6453 withval=$with_snf_libraries;
6454 # User wants SNF with specific lib directory
6455 want_snf=yes
6456 snf_lib_dir=$withval
6461 case "$V_PCAP" in
6462 bpf|linux|snf)
6464 # We support the Sniffer API if we're on BSD, Linux, or if we're
6465 # building a Sniffer-only libpcap.
6470 # If the user explicitly requested Sniffer, tell them it's not
6471 # supported.
6473 # If they expressed no preference, don't include it.
6475 if test $want_snf = yes; then
6476 as_fn_error $? "Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" "$LINENO" 5
6477 elif test $want_snf = yes; then
6478 want_snf=no
6481 esac
6483 ac_cv_lbl_snf_api=no
6484 if test "$with_snf" != no; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6487 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6489 if test -z "$snf_root"; then
6490 snf_root=/opt/snf
6493 if test -z "$snf_include_dir"; then
6494 snf_include_dir="$snf_root/include"
6497 if test -z "$snf_lib_dir"; then
6498 snf_lib_dir="$snf_root/lib"
6501 if test -f "$snf_include_dir/snf.h"; then
6502 ac_cv_lbl_snf_api=yes
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
6505 $as_echo "$ac_cv_lbl_snf_api ($snf_root)" >&6; }
6507 if test $ac_cv_lbl_snf_api = no; then
6508 if test "$want_snf" = yes; then
6509 as_fn_error $? "SNF API headers not found under $snf_include_dir; use --without-snf" "$LINENO" 5
6511 else
6512 saved_ldflags=$LDFLAGS
6513 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
6515 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
6516 if test "${ac_cv_lib_snf_snf_init+set}" = set; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 ac_check_lib_save_LIBS=$LIBS
6520 LIBS="-lsnf $LIBS"
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6524 /* Override any GCC internal prototype to avoid an error.
6525 Use char because int might match the return type of a GCC
6526 builtin and then its argument prototype would still apply. */
6527 #ifdef __cplusplus
6528 extern "C"
6529 #endif
6530 char snf_init ();
6532 main ()
6534 return snf_init ();
6536 return 0;
6538 _ACEOF
6539 if ac_fn_c_try_link "$LINENO"; then :
6540 ac_cv_lib_snf_snf_init=yes
6541 else
6542 ac_cv_lib_snf_snf_init=no
6544 rm -f core conftest.err conftest.$ac_objext \
6545 conftest$ac_exeext conftest.$ac_ext
6546 LIBS=$ac_check_lib_save_LIBS
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
6549 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
6550 if test "x$ac_cv_lib_snf_snf_init" = x""yes; then :
6551 ac_cv_lbl_snf_api="yes"
6552 else
6553 ac_cv_lbl_snf_api="no"
6556 LDFLAGS="$saved_ldflags"
6558 if test $ac_cv_lbl_snf_api = no; then
6559 if test "$want_snf" = yes; then
6560 as_fn_error $? "SNF API cannot correctly be linked check config.log; use --without-snf" "$LINENO" 5
6562 else
6563 V_INCLS="$V_INCLS -I$snf_include_dir"
6564 LIBS="$LIBS -lsnf"
6565 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
6566 if test "$V_PCAP" != snf ; then
6567 SSRC="pcap-snf.c"
6570 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
6576 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
6577 as_fn_error $? "Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" "$LINENO" 5
6581 # Check whether --with-flex was given.
6582 if test "${with_flex+set}" = set; then :
6583 withval=$with_flex;
6587 # Check whether --with-bison was given.
6588 if test "${with_bison+set}" = set; then :
6589 withval=$with_bison;
6592 if test "$with_flex" = no ; then
6593 V_LEX=lex
6594 else
6595 for ac_prog in flex
6597 # Extract the first word of "$ac_prog", so it can be a program name with args.
6598 set dummy $ac_prog; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if test "${ac_cv_prog_V_LEX+set}" = set; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 if test -n "$V_LEX"; then
6605 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_V_LEX="$ac_prog"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6618 done
6619 done
6620 IFS=$as_save_IFS
6624 V_LEX=$ac_cv_prog_V_LEX
6625 if test -n "$V_LEX"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_LEX" >&5
6627 $as_echo "$V_LEX" >&6; }
6628 else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6634 test -n "$V_LEX" && break
6635 done
6636 test -n "$V_LEX" || V_LEX="lex"
6639 if test "$V_LEX" = flex ; then
6640 # The -V flag was added in 2.4
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex 2.4 or higher" >&5
6642 $as_echo_n "checking for flex 2.4 or higher... " >&6; }
6643 if test "${ac_cv_lbl_flex_v24+set}" = set; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 if flex -V >/dev/null 2>&1; then
6647 ac_cv_lbl_flex_v24=yes
6648 else
6649 ac_cv_lbl_flex_v24=no
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_flex_v24" >&5
6654 $as_echo "$ac_cv_lbl_flex_v24" >&6; }
6655 if test $ac_cv_lbl_flex_v24 = no ; then
6656 s="2.4 or higher required"
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring obsolete flex executable ($s)" >&5
6658 $as_echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
6659 V_LEX=lex
6662 if test "$with_bison" = no ; then
6663 V_YACC=yacc
6664 else
6665 for ac_prog in bison
6667 # Extract the first word of "$ac_prog", so it can be a program name with args.
6668 set dummy $ac_prog; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if test "${ac_cv_prog_V_YACC+set}" = set; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$V_YACC"; then
6675 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_V_YACC="$ac_prog"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6688 done
6689 done
6690 IFS=$as_save_IFS
6694 V_YACC=$ac_cv_prog_V_YACC
6695 if test -n "$V_YACC"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_YACC" >&5
6697 $as_echo "$V_YACC" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6704 test -n "$V_YACC" && break
6705 done
6706 test -n "$V_YACC" || V_YACC="yacc"
6709 if test "$V_YACC" = bison ; then
6710 V_YACC="$V_YACC -y"
6712 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
6714 $as_echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
6715 V_LEX=lex
6716 V_YACC=yacc
6718 if test "$V_LEX" = flex -a -n "pcap_" ; then
6719 V_LEX="$V_LEX -Ppcap_"
6720 V_YACC="$V_YACC -p pcap_"
6722 if test "$V_LEX" = lex ; then
6723 # Some versions of lex can't handle the definitions section of scanner.l .
6724 # Try lexing it and complain if it can't deal.
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
6726 $as_echo_n "checking for capable lex... " >&6; }
6727 if test "${tcpdump_cv_capable_lex+set}" = set; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if lex -t scanner.l > /dev/null 2>&1; then
6731 tcpdump_cv_capable_lex=yes
6732 else
6733 tcpdump_cv_capable_lex=insufficient
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
6737 $as_echo "$tcpdump_cv_capable_lex" >&6; }
6738 if test $tcpdump_cv_capable_lex = insufficient ; then
6739 as_fn_error $? "Your operating system's lex is insufficient to compile
6740 libpcap. flex is a lex replacement that has many advantages, including
6741 being able to compile libpcap. For more information, see
6742 http://www.gnu.org/software/flex/flex.html ." "$LINENO" 5
6747 # Assume, by default, no support for shared libraries and V7/BSD convention
6748 # for man pages (file formats in section 5, miscellaneous info in section 7).
6749 # Individual cases can override this.
6751 DYEXT="none"
6752 MAN_FILE_FORMATS=5
6753 MAN_MISC_INFO=7
6754 case "$host_os" in
6756 aix*)
6758 $as_echo "#define _SUN 1" >>confdefs.h
6762 # AIX makes it fun to build shared and static libraries,
6763 # because they're *both* ".a" archive libraries. We
6764 # build the static library for the benefit of the traditional
6765 # scheme of building libpcap and tcpdump in subdirectories of
6766 # the same directory, with tcpdump statically linked with the
6767 # libpcap in question, but we also build a shared library as
6768 # "libpcap.shareda" and install *it*, rather than the static
6769 # library, as "libpcap.a".
6771 DYEXT="shareda"
6773 case "$V_PCAP" in
6775 dlpi)
6777 # If we're using DLPI, applications will need to
6778 # use /lib/pse.exp if present, as we use the
6779 # STREAMS routines.
6781 pseexe="/lib/pse.exp"
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
6783 $as_echo_n "checking for $pseexe... " >&6; }
6784 if test -f $pseexe ; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6786 $as_echo "yes" >&6; }
6787 LIBS="-I:$pseexe"
6791 bpf)
6793 # If we're using BPF, we need "-lodm" and "-lcfg", as
6794 # we use them to load the BPF module.
6796 LIBS="-lodm -lcfg"
6798 esac
6801 darwin*)
6802 DYEXT="dylib"
6803 V_CCOPT="$V_CCOPT -fno-common"
6804 # Check whether --enable-universal was given.
6805 if test "${enable_universal+set}" = set; then :
6806 enableval=$enable_universal;
6809 if test "$enable_universal" != "no"; then
6810 case "$host_os" in
6812 darwin9.*)
6814 # Leopard. Build for 32-bit PowerPC, 64-bit
6815 # PowerPC, x86, and x86-64, with 32-bit PowerPC
6816 # first. (That's what Apple does.)
6818 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6819 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6822 darwin10.*)
6824 # Snow Leopard. Build for x86-64, x86, and
6825 # 32-bit PowerPC, with x86-64 first. (That's
6826 # what Apple does, even though Snow Leopard
6827 # doesn't run on PPC, so PPC libpcap runs under
6828 # Rosetta, and Rosetta doesn't support BPF
6829 # ioctls, so PPC programs can't do live
6830 # captures.)
6832 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
6833 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
6836 darwin11.*)
6838 # Lion. Build for x86-64 and x86, with x86-64
6839 # first. (That's probably what Apple does,
6840 # given that Rosetta is gone.)
6842 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
6843 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
6845 esac
6849 hpux9*)
6851 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
6855 # Use System V conventions for man pages.
6857 MAN_FILE_FORMATS=4
6858 MAN_MISC_INFO=5
6861 hpux10.0*)
6864 # Use System V conventions for man pages.
6866 MAN_FILE_FORMATS=4
6867 MAN_MISC_INFO=5
6870 hpux10.1*)
6873 # Use System V conventions for man pages.
6875 MAN_FILE_FORMATS=4
6876 MAN_MISC_INFO=5
6879 hpux*)
6881 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
6883 if test "`uname -m`" = "ia64"; then
6884 DYEXT="so"
6885 else
6886 DYEXT="sl"
6890 # "-b" builds a shared library; "+h" sets the soname.
6892 SHLIB_OPT="-b"
6893 SONAME_OPT="+h"
6896 # Use System V conventions for man pages.
6898 MAN_FILE_FORMATS=4
6899 MAN_MISC_INFO=5
6902 irix*)
6904 # Use System V conventions for man pages.
6906 MAN_FILE_FORMATS=4
6907 MAN_MISC_INFO=5
6910 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
6911 DYEXT="so"
6914 # Compiler assumed to be GCC; run-time linker may require a -R
6915 # flag.
6917 if test "$libdir" != "/usr/lib"; then
6918 V_RFLAGS=-Wl,-R$libdir
6922 osf*)
6923 DYEXT="so"
6926 # Use System V conventions for man pages.
6928 MAN_FILE_FORMATS=4
6929 MAN_MISC_INFO=5
6932 sinix*)
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
6934 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
6935 if test "${ac_cv_cc_sinix_defined+set}" = set; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6942 main ()
6944 int i = sinix;
6946 return 0;
6948 _ACEOF
6949 if ac_fn_c_try_compile "$LINENO"; then :
6950 ac_cv_cc_sinix_defined=yes
6951 else
6952 ac_cv_cc_sinix_defined=no
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
6958 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
6959 if test $ac_cv_cc_sinix_defined = no ; then
6961 $as_echo "#define sinix 1" >>confdefs.h
6966 solaris*)
6968 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
6971 DYEXT="so"
6973 # Use System V conventions for man pages.
6975 MAN_FILE_FORMATS=4
6976 MAN_MISC_INFO=5
6978 esac
6980 if test -n "$ac_tool_prefix"; then
6981 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6982 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$RANLIB"; then
6989 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7002 done
7003 done
7004 IFS=$as_save_IFS
7008 RANLIB=$ac_cv_prog_RANLIB
7009 if test -n "$RANLIB"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7011 $as_echo "$RANLIB" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7019 if test -z "$ac_cv_prog_RANLIB"; then
7020 ac_ct_RANLIB=$RANLIB
7021 # Extract the first word of "ranlib", so it can be a program name with args.
7022 set dummy ranlib; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 if test -n "$ac_ct_RANLIB"; then
7029 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_ac_ct_RANLIB="ranlib"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7042 done
7043 done
7044 IFS=$as_save_IFS
7048 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7049 if test -n "$ac_ct_RANLIB"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7051 $as_echo "$ac_ct_RANLIB" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7057 if test "x$ac_ct_RANLIB" = x; then
7058 RANLIB=":"
7059 else
7060 case $cross_compiling:$ac_tool_warned in
7061 yes:)
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7064 ac_tool_warned=yes ;;
7065 esac
7066 RANLIB=$ac_ct_RANLIB
7068 else
7069 RANLIB="$ac_cv_prog_RANLIB"
7072 if test -n "$ac_tool_prefix"; then
7073 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7074 set dummy ${ac_tool_prefix}ar; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if test "${ac_cv_prog_AR+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 if test -n "$AR"; then
7081 ac_cv_prog_AR="$AR" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_AR="${ac_tool_prefix}ar"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7094 done
7095 done
7096 IFS=$as_save_IFS
7100 AR=$ac_cv_prog_AR
7101 if test -n "$AR"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7103 $as_echo "$AR" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7111 if test -z "$ac_cv_prog_AR"; then
7112 ac_ct_AR=$AR
7113 # Extract the first word of "ar", so it can be a program name with args.
7114 set dummy ar; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 if test -n "$ac_ct_AR"; then
7121 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_prog_ac_ct_AR="ar"
7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7134 done
7135 done
7136 IFS=$as_save_IFS
7140 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7141 if test -n "$ac_ct_AR"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7143 $as_echo "$ac_ct_AR" >&6; }
7144 else
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7149 if test "x$ac_ct_AR" = x; then
7150 AR=""
7151 else
7152 case $cross_compiling:$ac_tool_warned in
7153 yes:)
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156 ac_tool_warned=yes ;;
7157 esac
7158 AR=$ac_ct_AR
7160 else
7161 AR="$ac_cv_prog_AR"
7165 rm -f os-proto.h
7166 if test "${LBL_CFLAGS+set}" = set; then
7167 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7169 if test -f .devel ; then
7170 if test "$GCC" = yes ; then
7171 if test "${LBL_CFLAGS+set}" != set; then
7172 if test "$ac_cv_prog_cc_g" = yes ; then
7173 V_CCOPT="-g $V_CCOPT"
7175 V_CCOPT="$V_CCOPT -Wall"
7176 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
7177 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
7180 else
7181 case "$host_os" in
7183 irix6*)
7184 V_CCOPT="$V_CCOPT -n32"
7189 esac
7191 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
7192 name="lbl/os-$os.h"
7193 if test -f $name ; then
7194 ln -s $name os-proto.h
7196 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
7198 else
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
7200 $as_echo "$as_me: WARNING: can't find $name" >&2;}
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
7205 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
7206 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7212 # include <sys/types.h>
7213 # include <sys/socket.h>
7215 main ()
7217 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7219 return 0;
7221 _ACEOF
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223 ac_cv_lbl_sockaddr_has_sa_len=yes
7224 else
7225 ac_cv_lbl_sockaddr_has_sa_len=no
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7231 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
7232 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7234 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
7239 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
7240 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7246 # include <sys/types.h>
7247 # include <sys/socket.h>
7249 main ()
7251 u_int i = sizeof (struct sockaddr_storage)
7253 return 0;
7255 _ACEOF
7256 if ac_fn_c_try_compile "$LINENO"; then :
7257 ac_cv_lbl_has_sockaddr_storage=yes
7258 else
7259 ac_cv_lbl_has_sockaddr_storage=no
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
7265 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
7266 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
7268 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
7273 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
7274 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7280 # include <sys/types.h>
7281 # include <sys/dlpi.h>
7282 # include <sys/dlpi_ext.h>
7284 main ()
7286 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
7288 return 0;
7290 _ACEOF
7291 if ac_fn_c_try_compile "$LINENO"; then :
7292 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
7293 else
7294 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
7300 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
7301 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
7303 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
7308 $as_echo_n "checking if unaligned accesses fail... " >&6; }
7309 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 case "$host_cpu" in
7315 # These are CPU types where:
7317 # the CPU faults on an unaligned access, but at least some
7318 # OSes that support that CPU catch the fault and simulate
7319 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7320 # the simulation is slow, so we don't want to use it;
7322 # the CPU, I infer (from the old
7324 # XXX: should also check that they don't do weird things (like on arm)
7326 # comment) doesn't fault on unaligned accesses, but doesn't
7327 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7329 # for whatever reason, the test program doesn't work
7330 # (this has been claimed to be the case for several of those
7331 # CPUs - I don't know what the problem is; the problem
7332 # was reported as "the test program dumps core" for SuperH,
7333 # but that's what the test program is *supposed* to do -
7334 # it dumps core before it writes anything, so the test
7335 # for an empty output file should find an empty output
7336 # file and conclude that unaligned accesses don't work).
7338 # This run-time test won't work if you're cross-compiling, so
7339 # in order to support cross-compiling for a particular CPU,
7340 # we have to wire in the list of CPU types anyway, as far as
7341 # I know, so perhaps we should just have a set of CPUs on
7342 # which we know it doesn't work, a set of CPUs on which we
7343 # know it does work, and have the script just fail on other
7344 # cpu types and update it when such a failure occurs.
7346 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
7347 ac_cv_lbl_unaligned_fail=yes
7351 cat >conftest.c <<EOF
7352 # include <sys/types.h>
7353 # include <sys/wait.h>
7354 # include <stdio.h>
7355 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7356 main() {
7357 unsigned int i;
7358 pid_t pid;
7359 int status;
7360 /* avoid "core dumped" message */
7361 pid = fork();
7362 if (pid < 0)
7363 exit(2);
7364 if (pid > 0) {
7365 /* parent */
7366 pid = waitpid(pid, &status, 0);
7367 if (pid < 0)
7368 exit(3);
7369 exit(!WIFEXITED(status));
7371 /* child */
7372 i = *(unsigned int *)&a[1];
7373 printf("%d\n", i);
7374 exit(0);
7377 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
7378 conftest.c $LIBS >/dev/null 2>&1
7379 if test ! -x conftest ; then
7380 ac_cv_lbl_unaligned_fail=yes
7381 else
7382 ./conftest >conftest.out
7383 if test ! -s conftest.out ; then
7384 ac_cv_lbl_unaligned_fail=yes
7385 else
7386 ac_cv_lbl_unaligned_fail=no
7389 rm -f -r conftest* core core.conftest
7391 esac
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
7395 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
7396 if test $ac_cv_lbl_unaligned_fail = yes ; then
7398 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
7403 # Makefile.in includes rules to generate version.h, so we assume
7404 # that it will be generated if autoconf is used.
7407 $as_echo "#define HAVE_VERSION_H 1" >>confdefs.h
7410 rm -f net
7411 ln -s ${srcdir}/bpf/net net
7428 # HAVE_REMOTE
7431 # END HAVE_REMOTE
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
7436 $as_echo_n "checking for USB sniffing support... " >&6; }
7437 case "$host_os" in
7438 linux*)
7440 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
7442 USB_SRC=pcap-usb-linux.c
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7444 $as_echo "yes" >&6; }
7445 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
7446 if test $? -ne 0 ; then
7447 ac_usb_dev_name="usbmon"
7450 cat >>confdefs.h <<_ACEOF
7451 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
7452 _ACEOF
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
7455 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
7457 # Do we have a version of <linux/compiler.h> available?
7458 # If so, we might need it for <linux/usbdevice_fs.h>.
7460 for ac_header in linux/compiler.h
7461 do :
7462 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
7463 if test "x$ac_cv_header_linux_compiler_h" = x""yes; then :
7464 cat >>confdefs.h <<_ACEOF
7465 #define HAVE_LINUX_COMPILER_H 1
7466 _ACEOF
7470 done
7472 if test "$ac_cv_header_linux_compiler_h" = yes; then
7474 # Yes - include it when testing for <linux/usbdevice_fs.h>.
7476 for ac_header in linux/usbdevice_fs.h
7477 do :
7478 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
7480 if test "x$ac_cv_header_linux_usbdevice_fs_h" = x""yes; then :
7481 cat >>confdefs.h <<_ACEOF
7482 #define HAVE_LINUX_USBDEVICE_FS_H 1
7483 _ACEOF
7487 done
7489 else
7490 for ac_header in linux/usbdevice_fs.h
7491 do :
7492 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
7493 if test "x$ac_cv_header_linux_usbdevice_fs_h" = x""yes; then :
7494 cat >>confdefs.h <<_ACEOF
7495 #define HAVE_LINUX_USBDEVICE_FS_H 1
7496 _ACEOF
7500 done
7503 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
7505 # OK, does it define bRequestType? Older versions of the kernel
7506 # define fields with names like "requesttype, "request", and
7507 # "value", rather than "bRequestType", "bRequest", and
7508 # "wValue".
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
7511 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
7512 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7518 $ac_includes_default
7519 #ifdef HAVE_SYS_BITYPES_H
7520 #include <sys/bitypes.h>
7521 #endif
7522 #ifdef HAVE_LINUX_COMPILER_H
7523 #include <linux/compiler.h>
7524 #endif
7525 #include <linux/usbdevice_fs.h>
7527 main ()
7529 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
7531 return 0;
7533 _ACEOF
7534 if ac_fn_c_try_compile "$LINENO"; then :
7535 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
7536 else
7537 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
7543 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
7544 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
7546 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7555 esac
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
7560 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
7561 case "$host_os" in
7562 linux*)
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7564 $as_echo "yes" >&6; }
7566 # Life's too short to deal with trying to get this to compile
7567 # if you don't get the right types defined with
7568 # __KERNEL_STRICT_NAMES getting defined by some other include.
7570 # Check whether the includes Just Work. If not, don't turn on
7571 # netfilter support.
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
7574 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
7575 if test "${ac_cv_netfilter_can_compile+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7581 $ac_includes_default
7582 #include <sys/socket.h>
7583 #include <linux/types.h>
7585 #include <linux/netlink.h>
7586 #include <linux/netfilter/nfnetlink.h>
7587 #include <linux/netfilter/nfnetlink_log.h>
7589 main ()
7593 return 0;
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 ac_cv_netfilter_can_compile=yes
7598 else
7599 ac_cv_netfilter_can_compile=no
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
7605 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
7606 if test $ac_cv_netfilter_can_compile = yes ; then
7608 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
7610 NETFILTER_SRC=pcap-netfilter-linux.c
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7617 esac
7621 # Check whether --enable-bluetooth was given.
7622 if test "${enable_bluetooth+set}" = set; then :
7623 enableval=$enable_bluetooth;
7624 else
7625 enable_bluetooth=yes
7629 if test "x$enable_bluetooth" != "xno" ; then
7630 case "$host_os" in
7631 linux*)
7632 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
7633 if test "x$ac_cv_header_bluetooth_bluetooth_h" = x""yes; then :
7636 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
7638 BT_SRC=pcap-bt-linux.c
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
7640 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
7642 else
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
7644 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
7652 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
7654 esac
7659 # Check whether --enable-canusb was given.
7660 if test "${enable_canusb+set}" = set; then :
7661 enableval=$enable_canusb; enable_canusb=yes
7665 if test "x$enable_canusb" != "xno" ; then
7666 case "$host_os" in
7667 linux*)
7668 ac_fn_c_check_header_mongrel "$LINENO" "libusb-1.0/libusb.h" "ac_cv_header_libusb_1_0_libusb_h" "$ac_includes_default"
7669 if test "x$ac_cv_header_libusb_1_0_libusb_h" = x""yes; then :
7672 $as_echo "#define PCAP_SUPPORT_CANUSB 1" >>confdefs.h
7674 CANUSB_SRC=pcap-canusb-linux.c
7675 LIBS="-lusb-1.0 $LIBS"
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is supported" >&5
7677 $as_echo "$as_me: canusb sniffing is supported" >&6;}
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&5
7681 $as_echo "$as_me: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&6;}
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: no canusb support implemented for $host_os" >&5
7689 $as_echo "$as_me: no canusb support implemented for $host_os" >&6;}
7691 esac
7696 # Check whether --enable-can was given.
7697 if test "${enable_can+set}" = set; then :
7698 enableval=$enable_can;
7699 else
7700 enable_can=yes
7704 if test "x$enable_can" != "xno" ; then
7705 case "$host_os" in
7706 linux*)
7707 ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "#include <sys/socket.h>
7710 if test "x$ac_cv_header_linux_can_h" = x""yes; then :
7712 $as_echo "#define PCAP_SUPPORT_CAN 1" >>confdefs.h
7714 CAN_SRC=pcap-can-linux.c
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is supported" >&5
7716 $as_echo "$as_me: CAN sniffing is supported" >&6;}
7717 else
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is not supported" >&5
7719 $as_echo "$as_me: CAN sniffing is not supported" >&6;}
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: no CAN sniffing support implemented for $host_os" >&5
7726 $as_echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
7728 esac
7733 case "$host_os" in
7734 linux*)
7735 for ac_header in linux/net_tstamp.h
7736 do :
7737 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
7738 if test "x$ac_cv_header_linux_net_tstamp_h" = x""yes; then :
7739 cat >>confdefs.h <<_ACEOF
7740 #define HAVE_LINUX_NET_TSTAMP_H 1
7741 _ACEOF
7745 done
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
7750 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
7752 esac
7754 # Find a good install program. We prefer a C program (faster),
7755 # so one script is as good as another. But avoid the broken or
7756 # incompatible versions:
7757 # SysV /etc/install, /usr/sbin/install
7758 # SunOS /usr/etc/install
7759 # IRIX /sbin/install
7760 # AIX /bin/install
7761 # AmigaOS /C/install, which installs bootblocks on floppy discs
7762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7765 # OS/2's system install, which has a completely different semantic
7766 # ./install, which can be erroneously created by make from ./install.sh.
7767 # Reject install programs that cannot install multiple files.
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7769 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7770 if test -z "$INSTALL"; then
7771 if test "${ac_cv_path_install+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 # Account for people who put trailing slashes in PATH elements.
7780 case $as_dir/ in #((
7781 ./ | .// | /[cC]/* | \
7782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7783 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7784 /usr/ucb/* ) ;;
7786 # OSF1 and SCO ODT 3.0 have their own names for install.
7787 # Don't use installbsd from OSF since it installs stuff as root
7788 # by default.
7789 for ac_prog in ginstall scoinst install; do
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7792 if test $ac_prog = install &&
7793 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7794 # AIX install. It has an incompatible calling convention.
7796 elif test $ac_prog = install &&
7797 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7798 # program-specific install script used by HP pwplus--don't use.
7800 else
7801 rm -rf conftest.one conftest.two conftest.dir
7802 echo one > conftest.one
7803 echo two > conftest.two
7804 mkdir conftest.dir
7805 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7806 test -s conftest.one && test -s conftest.two &&
7807 test -s conftest.dir/conftest.one &&
7808 test -s conftest.dir/conftest.two
7809 then
7810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7811 break 3
7815 done
7816 done
7818 esac
7820 done
7821 IFS=$as_save_IFS
7823 rm -rf conftest.one conftest.two conftest.dir
7826 if test "${ac_cv_path_install+set}" = set; then
7827 INSTALL=$ac_cv_path_install
7828 else
7829 # As a last resort, use the slow shell script. Don't cache a
7830 # value for INSTALL within a source directory, because that will
7831 # break other packages using the cache if that directory is
7832 # removed, or if the value is a relative name.
7833 INSTALL=$ac_install_sh
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7837 $as_echo "$INSTALL" >&6; }
7839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7840 # It thinks the first close brace ends the variable substitution.
7841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7848 ac_config_headers="$ac_config_headers config.h"
7851 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
7853 cat >confcache <<\_ACEOF
7854 # This file is a shell script that caches the results of configure
7855 # tests run on this system so they can be shared between configure
7856 # scripts and configure runs, see configure's option --config-cache.
7857 # It is not useful on other systems. If it contains results you don't
7858 # want to keep, you may remove or edit it.
7860 # config.status only pays attention to the cache file if you give it
7861 # the --recheck option to rerun configure.
7863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7865 # following values.
7867 _ACEOF
7869 # The following way of writing the cache mishandles newlines in values,
7870 # but we know of no workaround that is simple, portable, and efficient.
7871 # So, we kill variables containing newlines.
7872 # Ultrix sh set writes to stderr and can't be redirected directly,
7873 # and sets the high bit in the cache file unless we assign to the vars.
7875 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7876 eval ac_val=\$$ac_var
7877 case $ac_val in #(
7878 *${as_nl}*)
7879 case $ac_var in #(
7880 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7881 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7882 esac
7883 case $ac_var in #(
7884 _ | IFS | as_nl) ;; #(
7885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7886 *) { eval $ac_var=; unset $ac_var;} ;;
7887 esac ;;
7888 esac
7889 done
7891 (set) 2>&1 |
7892 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7893 *${as_nl}ac_space=\ *)
7894 # `set' does not quote correctly, so add quotes: double-quote
7895 # substitution turns \\\\ into \\, and sed turns \\ into \.
7896 sed -n \
7897 "s/'/'\\\\''/g;
7898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7899 ;; #(
7901 # `set' quotes correctly as required by POSIX, so do not add quotes.
7902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7904 esac |
7905 sort
7907 sed '
7908 /^ac_cv_env_/b end
7909 t clear
7910 :clear
7911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7912 t end
7913 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7914 :end' >>confcache
7915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7916 if test -w "$cache_file"; then
7917 test "x$cache_file" != "x/dev/null" &&
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7919 $as_echo "$as_me: updating cache $cache_file" >&6;}
7920 cat confcache >$cache_file
7921 else
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7923 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7926 rm -f confcache
7928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7929 # Let make expand exec_prefix.
7930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7932 DEFS=-DHAVE_CONFIG_H
7934 ac_libobjs=
7935 ac_ltlibobjs=
7937 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7938 # 1. Remove the extension, and $U if already installed.
7939 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7940 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7941 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7942 # will be set to the directory where LIBOBJS objects are built.
7943 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7944 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7945 done
7946 LIBOBJS=$ac_libobjs
7948 LTLIBOBJS=$ac_ltlibobjs
7952 : ${CONFIG_STATUS=./config.status}
7953 ac_write_fail=0
7954 ac_clean_files_save=$ac_clean_files
7955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7957 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7958 as_write_fail=0
7959 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7960 #! $SHELL
7961 # Generated by $as_me.
7962 # Run this file to recreate the current configuration.
7963 # Compiler output produced by configure, useful for debugging
7964 # configure, is in config.log if it exists.
7966 debug=false
7967 ac_cs_recheck=false
7968 ac_cs_silent=false
7970 SHELL=\${CONFIG_SHELL-$SHELL}
7971 export SHELL
7972 _ASEOF
7973 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7974 ## -------------------- ##
7975 ## M4sh Initialization. ##
7976 ## -------------------- ##
7978 # Be more Bourne compatible
7979 DUALCASE=1; export DUALCASE # for MKS sh
7980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7981 emulate sh
7982 NULLCMD=:
7983 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7984 # is contrary to our usage. Disable this feature.
7985 alias -g '${1+"$@"}'='"$@"'
7986 setopt NO_GLOB_SUBST
7987 else
7988 case `(set -o) 2>/dev/null` in #(
7989 *posix*) :
7990 set -o posix ;; #(
7991 *) :
7993 esac
7997 as_nl='
7999 export as_nl
8000 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8001 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8003 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8004 # Prefer a ksh shell builtin over an external printf program on Solaris,
8005 # but without wasting forks for bash or zsh.
8006 if test -z "$BASH_VERSION$ZSH_VERSION" \
8007 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8008 as_echo='print -r --'
8009 as_echo_n='print -rn --'
8010 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8011 as_echo='printf %s\n'
8012 as_echo_n='printf %s'
8013 else
8014 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8015 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8016 as_echo_n='/usr/ucb/echo -n'
8017 else
8018 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8019 as_echo_n_body='eval
8020 arg=$1;
8021 case $arg in #(
8022 *"$as_nl"*)
8023 expr "X$arg" : "X\\(.*\\)$as_nl";
8024 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8025 esac;
8026 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8028 export as_echo_n_body
8029 as_echo_n='sh -c $as_echo_n_body as_echo'
8031 export as_echo_body
8032 as_echo='sh -c $as_echo_body as_echo'
8035 # The user is always right.
8036 if test "${PATH_SEPARATOR+set}" != set; then
8037 PATH_SEPARATOR=:
8038 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8039 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8040 PATH_SEPARATOR=';'
8045 # IFS
8046 # We need space, tab and new line, in precisely that order. Quoting is
8047 # there to prevent editors from complaining about space-tab.
8048 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8049 # splitting by setting IFS to empty value.)
8050 IFS=" "" $as_nl"
8052 # Find who we are. Look in the path if we contain no directory separator.
8053 case $0 in #((
8054 *[\\/]* ) as_myself=$0 ;;
8055 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 for as_dir in $PATH
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
8060 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8061 done
8062 IFS=$as_save_IFS
8065 esac
8066 # We did not find ourselves, most probably we were run as `sh COMMAND'
8067 # in which case we are not to be found in the path.
8068 if test "x$as_myself" = x; then
8069 as_myself=$0
8071 if test ! -f "$as_myself"; then
8072 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8073 exit 1
8076 # Unset variables that we do not need and which cause bugs (e.g. in
8077 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8078 # suppresses any "Segmentation fault" message there. '((' could
8079 # trigger a bug in pdksh 5.2.14.
8080 for as_var in BASH_ENV ENV MAIL MAILPATH
8081 do eval test x\${$as_var+set} = xset \
8082 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8083 done
8084 PS1='$ '
8085 PS2='> '
8086 PS4='+ '
8088 # NLS nuisances.
8089 LC_ALL=C
8090 export LC_ALL
8091 LANGUAGE=C
8092 export LANGUAGE
8094 # CDPATH.
8095 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8098 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8099 # ----------------------------------------
8100 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8101 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8102 # script with STATUS, using 1 if that was 0.
8103 as_fn_error ()
8105 as_status=$1; test $as_status -eq 0 && as_status=1
8106 if test "$4"; then
8107 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8108 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8110 $as_echo "$as_me: error: $2" >&2
8111 as_fn_exit $as_status
8112 } # as_fn_error
8115 # as_fn_set_status STATUS
8116 # -----------------------
8117 # Set $? to STATUS, without forking.
8118 as_fn_set_status ()
8120 return $1
8121 } # as_fn_set_status
8123 # as_fn_exit STATUS
8124 # -----------------
8125 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8126 as_fn_exit ()
8128 set +e
8129 as_fn_set_status $1
8130 exit $1
8131 } # as_fn_exit
8133 # as_fn_unset VAR
8134 # ---------------
8135 # Portably unset VAR.
8136 as_fn_unset ()
8138 { eval $1=; unset $1;}
8140 as_unset=as_fn_unset
8141 # as_fn_append VAR VALUE
8142 # ----------------------
8143 # Append the text in VALUE to the end of the definition contained in VAR. Take
8144 # advantage of any shell optimizations that allow amortized linear growth over
8145 # repeated appends, instead of the typical quadratic growth present in naive
8146 # implementations.
8147 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8148 eval 'as_fn_append ()
8150 eval $1+=\$2
8152 else
8153 as_fn_append ()
8155 eval $1=\$$1\$2
8157 fi # as_fn_append
8159 # as_fn_arith ARG...
8160 # ------------------
8161 # Perform arithmetic evaluation on the ARGs, and store the result in the
8162 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8163 # must be portable across $(()) and expr.
8164 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8165 eval 'as_fn_arith ()
8167 as_val=$(( $* ))
8169 else
8170 as_fn_arith ()
8172 as_val=`expr "$@" || test $? -eq 1`
8174 fi # as_fn_arith
8177 if expr a : '\(a\)' >/dev/null 2>&1 &&
8178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8179 as_expr=expr
8180 else
8181 as_expr=false
8184 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8185 as_basename=basename
8186 else
8187 as_basename=false
8190 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8191 as_dirname=dirname
8192 else
8193 as_dirname=false
8196 as_me=`$as_basename -- "$0" ||
8197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8198 X"$0" : 'X\(//\)$' \| \
8199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8200 $as_echo X/"$0" |
8201 sed '/^.*\/\([^/][^/]*\)\/*$/{
8202 s//\1/
8205 /^X\/\(\/\/\)$/{
8206 s//\1/
8209 /^X\/\(\/\).*/{
8210 s//\1/
8213 s/.*/./; q'`
8215 # Avoid depending upon Character Ranges.
8216 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8217 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8218 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8219 as_cr_digits='0123456789'
8220 as_cr_alnum=$as_cr_Letters$as_cr_digits
8222 ECHO_C= ECHO_N= ECHO_T=
8223 case `echo -n x` in #(((((
8224 -n*)
8225 case `echo 'xy\c'` in
8226 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8227 xy) ECHO_C='\c';;
8228 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8229 ECHO_T=' ';;
8230 esac;;
8232 ECHO_N='-n';;
8233 esac
8235 rm -f conf$$ conf$$.exe conf$$.file
8236 if test -d conf$$.dir; then
8237 rm -f conf$$.dir/conf$$.file
8238 else
8239 rm -f conf$$.dir
8240 mkdir conf$$.dir 2>/dev/null
8242 if (echo >conf$$.file) 2>/dev/null; then
8243 if ln -s conf$$.file conf$$ 2>/dev/null; then
8244 as_ln_s='ln -s'
8245 # ... but there are two gotchas:
8246 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8247 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8248 # In both cases, we have to default to `cp -p'.
8249 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8250 as_ln_s='cp -p'
8251 elif ln conf$$.file conf$$ 2>/dev/null; then
8252 as_ln_s=ln
8253 else
8254 as_ln_s='cp -p'
8256 else
8257 as_ln_s='cp -p'
8259 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8260 rmdir conf$$.dir 2>/dev/null
8263 # as_fn_mkdir_p
8264 # -------------
8265 # Create "$as_dir" as a directory, including parents if necessary.
8266 as_fn_mkdir_p ()
8269 case $as_dir in #(
8270 -*) as_dir=./$as_dir;;
8271 esac
8272 test -d "$as_dir" || eval $as_mkdir_p || {
8273 as_dirs=
8274 while :; do
8275 case $as_dir in #(
8276 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8277 *) as_qdir=$as_dir;;
8278 esac
8279 as_dirs="'$as_qdir' $as_dirs"
8280 as_dir=`$as_dirname -- "$as_dir" ||
8281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8282 X"$as_dir" : 'X\(//\)[^/]' \| \
8283 X"$as_dir" : 'X\(//\)$' \| \
8284 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8285 $as_echo X"$as_dir" |
8286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8287 s//\1/
8290 /^X\(\/\/\)[^/].*/{
8291 s//\1/
8294 /^X\(\/\/\)$/{
8295 s//\1/
8298 /^X\(\/\).*/{
8299 s//\1/
8302 s/.*/./; q'`
8303 test -d "$as_dir" && break
8304 done
8305 test -z "$as_dirs" || eval "mkdir $as_dirs"
8306 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8309 } # as_fn_mkdir_p
8310 if mkdir -p . 2>/dev/null; then
8311 as_mkdir_p='mkdir -p "$as_dir"'
8312 else
8313 test -d ./-p && rmdir ./-p
8314 as_mkdir_p=false
8317 if test -x / >/dev/null 2>&1; then
8318 as_test_x='test -x'
8319 else
8320 if ls -dL / >/dev/null 2>&1; then
8321 as_ls_L_option=L
8322 else
8323 as_ls_L_option=
8325 as_test_x='
8326 eval sh -c '\''
8327 if test -d "$1"; then
8328 test -d "$1/.";
8329 else
8330 case $1 in #(
8331 -*)set "./$1";;
8332 esac;
8333 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8334 ???[sx]*):;;*)false;;esac;fi
8335 '\'' sh
8338 as_executable_p=$as_test_x
8340 # Sed expression to map a string onto a valid CPP name.
8341 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8343 # Sed expression to map a string onto a valid variable name.
8344 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8347 exec 6>&1
8348 ## ----------------------------------- ##
8349 ## Main body of $CONFIG_STATUS script. ##
8350 ## ----------------------------------- ##
8351 _ASEOF
8352 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8355 # Save the log message, to keep $0 and so on meaningful, and to
8356 # report actual input values of CONFIG_FILES etc. instead of their
8357 # values after options handling.
8358 ac_log="
8359 This file was extended by $as_me, which was
8360 generated by GNU Autoconf 2.67. Invocation command line was
8362 CONFIG_FILES = $CONFIG_FILES
8363 CONFIG_HEADERS = $CONFIG_HEADERS
8364 CONFIG_LINKS = $CONFIG_LINKS
8365 CONFIG_COMMANDS = $CONFIG_COMMANDS
8366 $ $0 $@
8368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8371 _ACEOF
8373 case $ac_config_files in *"
8374 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8375 esac
8377 case $ac_config_headers in *"
8378 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8379 esac
8382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8383 # Files that config.status was made for.
8384 config_files="$ac_config_files"
8385 config_headers="$ac_config_headers"
8387 _ACEOF
8389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8390 ac_cs_usage="\
8391 \`$as_me' instantiates files and other configuration actions
8392 from templates according to the current configuration. Unless the files
8393 and actions are specified as TAGs, all are instantiated by default.
8395 Usage: $0 [OPTION]... [TAG]...
8397 -h, --help print this help, then exit
8398 -V, --version print version number and configuration settings, then exit
8399 --config print configuration, then exit
8400 -q, --quiet, --silent
8401 do not print progress messages
8402 -d, --debug don't remove temporary files
8403 --recheck update $as_me by reconfiguring in the same conditions
8404 --file=FILE[:TEMPLATE]
8405 instantiate the configuration file FILE
8406 --header=FILE[:TEMPLATE]
8407 instantiate the configuration header FILE
8409 Configuration files:
8410 $config_files
8412 Configuration headers:
8413 $config_headers
8415 Report bugs to the package provider."
8417 _ACEOF
8418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8419 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8420 ac_cs_version="\\
8421 config.status
8422 configured by $0, generated by GNU Autoconf 2.67,
8423 with options \\"\$ac_cs_config\\"
8425 Copyright (C) 2010 Free Software Foundation, Inc.
8426 This config.status script is free software; the Free Software Foundation
8427 gives unlimited permission to copy, distribute and modify it."
8429 ac_pwd='$ac_pwd'
8430 srcdir='$srcdir'
8431 INSTALL='$INSTALL'
8432 test -n "\$AWK" || AWK=awk
8433 _ACEOF
8435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8436 # The default lists apply if the user does not specify any file.
8437 ac_need_defaults=:
8438 while test $# != 0
8440 case $1 in
8441 --*=?*)
8442 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8443 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8444 ac_shift=:
8446 --*=)
8447 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8448 ac_optarg=
8449 ac_shift=:
8452 ac_option=$1
8453 ac_optarg=$2
8454 ac_shift=shift
8456 esac
8458 case $ac_option in
8459 # Handling of the options.
8460 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8461 ac_cs_recheck=: ;;
8462 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8463 $as_echo "$ac_cs_version"; exit ;;
8464 --config | --confi | --conf | --con | --co | --c )
8465 $as_echo "$ac_cs_config"; exit ;;
8466 --debug | --debu | --deb | --de | --d | -d )
8467 debug=: ;;
8468 --file | --fil | --fi | --f )
8469 $ac_shift
8470 case $ac_optarg in
8471 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8472 '') as_fn_error $? "missing file argument" ;;
8473 esac
8474 as_fn_append CONFIG_FILES " '$ac_optarg'"
8475 ac_need_defaults=false;;
8476 --header | --heade | --head | --hea )
8477 $ac_shift
8478 case $ac_optarg in
8479 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8480 esac
8481 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8482 ac_need_defaults=false;;
8483 --he | --h)
8484 # Conflict between --help and --header
8485 as_fn_error $? "ambiguous option: \`$1'
8486 Try \`$0 --help' for more information.";;
8487 --help | --hel | -h )
8488 $as_echo "$ac_cs_usage"; exit ;;
8489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8490 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8491 ac_cs_silent=: ;;
8493 # This is an error.
8494 -*) as_fn_error $? "unrecognized option: \`$1'
8495 Try \`$0 --help' for more information." ;;
8497 *) as_fn_append ac_config_targets " $1"
8498 ac_need_defaults=false ;;
8500 esac
8501 shift
8502 done
8504 ac_configure_extra_args=
8506 if $ac_cs_silent; then
8507 exec 6>/dev/null
8508 ac_configure_extra_args="$ac_configure_extra_args --silent"
8511 _ACEOF
8512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8513 if \$ac_cs_recheck; then
8514 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8515 shift
8516 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8517 CONFIG_SHELL='$SHELL'
8518 export CONFIG_SHELL
8519 exec "\$@"
8522 _ACEOF
8523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8524 exec 5>>config.log
8526 echo
8527 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8528 ## Running $as_me. ##
8529 _ASBOX
8530 $as_echo "$ac_log"
8531 } >&5
8533 _ACEOF
8534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8535 _ACEOF
8537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8539 # Handling of arguments.
8540 for ac_config_target in $ac_config_targets
8542 case $ac_config_target in
8543 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8544 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8545 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
8546 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
8547 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
8548 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
8549 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
8550 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
8551 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
8552 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
8553 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
8554 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
8555 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
8556 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
8557 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
8559 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
8560 esac
8561 done
8564 # If the user did not use the arguments to specify the items to instantiate,
8565 # then the envvar interface is used. Set only those that are not.
8566 # We use the long form for the default assignment because of an extremely
8567 # bizarre bug on SunOS 4.1.3.
8568 if $ac_need_defaults; then
8569 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8570 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8573 # Have a temporary directory for convenience. Make it in the build tree
8574 # simply because there is no reason against having it here, and in addition,
8575 # creating and moving files from /tmp can sometimes cause problems.
8576 # Hook for its removal unless debugging.
8577 # Note that there is a small window in which the directory will not be cleaned:
8578 # after its creation but before its name has been assigned to `$tmp'.
8579 $debug ||
8581 tmp=
8582 trap 'exit_status=$?
8583 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8585 trap 'as_fn_exit 1' 1 2 13 15
8587 # Create a (secure) tmp directory for tmp files.
8590 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8591 test -n "$tmp" && test -d "$tmp"
8592 } ||
8594 tmp=./conf$$-$RANDOM
8595 (umask 077 && mkdir "$tmp")
8596 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8598 # Set up the scripts for CONFIG_FILES section.
8599 # No need to generate them if there are no CONFIG_FILES.
8600 # This happens for instance with `./config.status config.h'.
8601 if test -n "$CONFIG_FILES"; then
8604 ac_cr=`echo X | tr X '\015'`
8605 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8606 # But we know of no other shell where ac_cr would be empty at this
8607 # point, so we can use a bashism as a fallback.
8608 if test "x$ac_cr" = x; then
8609 eval ac_cr=\$\'\\r\'
8611 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8612 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8613 ac_cs_awk_cr='\\r'
8614 else
8615 ac_cs_awk_cr=$ac_cr
8618 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8619 _ACEOF
8623 echo "cat >conf$$subs.awk <<_ACEOF" &&
8624 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8625 echo "_ACEOF"
8626 } >conf$$subs.sh ||
8627 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8628 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8629 ac_delim='%!_!# '
8630 for ac_last_try in false false false false false :; do
8631 . ./conf$$subs.sh ||
8632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8634 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8635 if test $ac_delim_n = $ac_delim_num; then
8636 break
8637 elif $ac_last_try; then
8638 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8639 else
8640 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8642 done
8643 rm -f conf$$subs.sh
8645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8646 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8647 _ACEOF
8648 sed -n '
8650 s/^/S["/; s/!.*/"]=/
8653 s/^[^!]*!//
8654 :repl
8655 t repl
8656 s/'"$ac_delim"'$//
8657 t delim
8660 s/\(.\{148\}\)..*/\1/
8661 t more1
8662 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8665 b repl
8666 :more1
8667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8670 s/.\{148\}//
8671 t nl
8672 :delim
8674 s/\(.\{148\}\)..*/\1/
8675 t more2
8676 s/["\\]/\\&/g; s/^/"/; s/$/"/
8679 :more2
8680 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8683 s/.\{148\}//
8684 t delim
8685 ' <conf$$subs.awk | sed '
8686 /^[^""]/{
8688 s/\n//
8690 ' >>$CONFIG_STATUS || ac_write_fail=1
8691 rm -f conf$$subs.awk
8692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8693 _ACAWK
8694 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8695 for (key in S) S_is_set[key] = 1
8696 FS = "\a"
8700 line = $ 0
8701 nfields = split(line, field, "@")
8702 substed = 0
8703 len = length(field[1])
8704 for (i = 2; i < nfields; i++) {
8705 key = field[i]
8706 keylen = length(key)
8707 if (S_is_set[key]) {
8708 value = S[key]
8709 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8710 len += length(value) + length(field[++i])
8711 substed = 1
8712 } else
8713 len += 1 + keylen
8716 print line
8719 _ACAWK
8720 _ACEOF
8721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8722 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8723 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8724 else
8726 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8727 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8728 _ACEOF
8730 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8731 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8732 # trailing colons and then remove the whole line if VPATH becomes empty
8733 # (actually we leave an empty line to preserve line numbers).
8734 if test "x$srcdir" = x.; then
8735 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8737 s///
8738 s/^/:/
8739 s/[ ]*$/:/
8740 s/:\$(srcdir):/:/g
8741 s/:\${srcdir}:/:/g
8742 s/:@srcdir@:/:/g
8743 s/^:*//
8744 s/:*$//
8746 s/\(=[ ]*\).*/\1/
8748 s/\n//
8749 s/^[^=]*=[ ]*$//
8753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8754 fi # test -n "$CONFIG_FILES"
8756 # Set up the scripts for CONFIG_HEADERS section.
8757 # No need to generate them if there are no CONFIG_HEADERS.
8758 # This happens for instance with `./config.status Makefile'.
8759 if test -n "$CONFIG_HEADERS"; then
8760 cat >"$tmp/defines.awk" <<\_ACAWK ||
8761 BEGIN {
8762 _ACEOF
8764 # Transform confdefs.h into an awk script `defines.awk', embedded as
8765 # here-document in config.status, that substitutes the proper values into
8766 # config.h.in to produce config.h.
8768 # Create a delimiter string that does not exist in confdefs.h, to ease
8769 # handling of long lines.
8770 ac_delim='%!_!# '
8771 for ac_last_try in false false :; do
8772 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8773 if test -z "$ac_t"; then
8774 break
8775 elif $ac_last_try; then
8776 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8777 else
8778 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8780 done
8782 # For the awk script, D is an array of macro values keyed by name,
8783 # likewise P contains macro parameters if any. Preserve backslash
8784 # newline sequences.
8786 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8787 sed -n '
8788 s/.\{148\}/&'"$ac_delim"'/g
8789 t rset
8790 :rset
8791 s/^[ ]*#[ ]*define[ ][ ]*/ /
8792 t def
8794 :def
8795 s/\\$//
8796 t bsnl
8797 s/["\\]/\\&/g
8798 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8799 D["\1"]=" \3"/p
8800 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8802 :bsnl
8803 s/["\\]/\\&/g
8804 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8805 D["\1"]=" \3\\\\\\n"\\/p
8806 t cont
8807 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8808 t cont
8810 :cont
8812 s/.\{148\}/&'"$ac_delim"'/g
8813 t clear
8814 :clear
8815 s/\\$//
8816 t bsnlc
8817 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8819 :bsnlc
8820 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8821 b cont
8822 ' <confdefs.h | sed '
8823 s/'"$ac_delim"'/"\\\
8824 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8827 for (key in D) D_is_set[key] = 1
8828 FS = "\a"
8830 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8831 line = \$ 0
8832 split(line, arg, " ")
8833 if (arg[1] == "#") {
8834 defundef = arg[2]
8835 mac1 = arg[3]
8836 } else {
8837 defundef = substr(arg[1], 2)
8838 mac1 = arg[2]
8840 split(mac1, mac2, "(") #)
8841 macro = mac2[1]
8842 prefix = substr(line, 1, index(line, defundef) - 1)
8843 if (D_is_set[macro]) {
8844 # Preserve the white space surrounding the "#".
8845 print prefix "define", macro P[macro] D[macro]
8846 next
8847 } else {
8848 # Replace #undef with comments. This is necessary, for example,
8849 # in the case of _POSIX_SOURCE, which is predefined and required
8850 # on some systems where configure will not decide to define it.
8851 if (defundef == "undef") {
8852 print "/*", prefix defundef, macro, "*/"
8853 next
8857 { print }
8858 _ACAWK
8859 _ACEOF
8860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8861 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8862 fi # test -n "$CONFIG_HEADERS"
8865 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8866 shift
8867 for ac_tag
8869 case $ac_tag in
8870 :[FHLC]) ac_mode=$ac_tag; continue;;
8871 esac
8872 case $ac_mode$ac_tag in
8873 :[FHL]*:*);;
8874 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
8875 :[FH]-) ac_tag=-:-;;
8876 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8877 esac
8878 ac_save_IFS=$IFS
8879 IFS=:
8880 set x $ac_tag
8881 IFS=$ac_save_IFS
8882 shift
8883 ac_file=$1
8884 shift
8886 case $ac_mode in
8887 :L) ac_source=$1;;
8888 :[FH])
8889 ac_file_inputs=
8890 for ac_f
8892 case $ac_f in
8893 -) ac_f="$tmp/stdin";;
8894 *) # Look for the file first in the build tree, then in the source tree
8895 # (if the path is not absolute). The absolute path cannot be DOS-style,
8896 # because $ac_f cannot contain `:'.
8897 test -f "$ac_f" ||
8898 case $ac_f in
8899 [\\/$]*) false;;
8900 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8901 esac ||
8902 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
8903 esac
8904 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8905 as_fn_append ac_file_inputs " '$ac_f'"
8906 done
8908 # Let's still pretend it is `configure' which instantiates (i.e., don't
8909 # use $as_me), people would be surprised to read:
8910 # /* config.h. Generated by config.status. */
8911 configure_input='Generated from '`
8912 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8913 `' by configure.'
8914 if test x"$ac_file" != x-; then
8915 configure_input="$ac_file. $configure_input"
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8917 $as_echo "$as_me: creating $ac_file" >&6;}
8919 # Neutralize special characters interpreted by sed in replacement strings.
8920 case $configure_input in #(
8921 *\&* | *\|* | *\\* )
8922 ac_sed_conf_input=`$as_echo "$configure_input" |
8923 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8924 *) ac_sed_conf_input=$configure_input;;
8925 esac
8927 case $ac_tag in
8928 *:-:* | *:-) cat >"$tmp/stdin" \
8929 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8930 esac
8932 esac
8934 ac_dir=`$as_dirname -- "$ac_file" ||
8935 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8936 X"$ac_file" : 'X\(//\)[^/]' \| \
8937 X"$ac_file" : 'X\(//\)$' \| \
8938 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8939 $as_echo X"$ac_file" |
8940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8941 s//\1/
8944 /^X\(\/\/\)[^/].*/{
8945 s//\1/
8948 /^X\(\/\/\)$/{
8949 s//\1/
8952 /^X\(\/\).*/{
8953 s//\1/
8956 s/.*/./; q'`
8957 as_dir="$ac_dir"; as_fn_mkdir_p
8958 ac_builddir=.
8960 case "$ac_dir" in
8961 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8963 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8964 # A ".." for each directory in $ac_dir_suffix.
8965 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8966 case $ac_top_builddir_sub in
8967 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8968 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8969 esac ;;
8970 esac
8971 ac_abs_top_builddir=$ac_pwd
8972 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8973 # for backward compatibility:
8974 ac_top_builddir=$ac_top_build_prefix
8976 case $srcdir in
8977 .) # We are building in place.
8978 ac_srcdir=.
8979 ac_top_srcdir=$ac_top_builddir_sub
8980 ac_abs_top_srcdir=$ac_pwd ;;
8981 [\\/]* | ?:[\\/]* ) # Absolute name.
8982 ac_srcdir=$srcdir$ac_dir_suffix;
8983 ac_top_srcdir=$srcdir
8984 ac_abs_top_srcdir=$srcdir ;;
8985 *) # Relative name.
8986 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8987 ac_top_srcdir=$ac_top_build_prefix$srcdir
8988 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8989 esac
8990 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8993 case $ac_mode in
8996 # CONFIG_FILE
8999 case $INSTALL in
9000 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9001 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9002 esac
9003 _ACEOF
9005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9006 # If the template does not know about datarootdir, expand it.
9007 # FIXME: This hack should be removed a few years after 2.60.
9008 ac_datarootdir_hack=; ac_datarootdir_seen=
9009 ac_sed_dataroot='
9010 /datarootdir/ {
9014 /@datadir@/p
9015 /@docdir@/p
9016 /@infodir@/p
9017 /@localedir@/p
9018 /@mandir@/p'
9019 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9020 *datarootdir*) ac_datarootdir_seen=yes;;
9021 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9023 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9024 _ACEOF
9025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9026 ac_datarootdir_hack='
9027 s&@datadir@&$datadir&g
9028 s&@docdir@&$docdir&g
9029 s&@infodir@&$infodir&g
9030 s&@localedir@&$localedir&g
9031 s&@mandir@&$mandir&g
9032 s&\\\${datarootdir}&$datarootdir&g' ;;
9033 esac
9034 _ACEOF
9036 # Neutralize VPATH when `$srcdir' = `.'.
9037 # Shell code in configure.ac might set extrasub.
9038 # FIXME: do we really want to maintain this feature?
9039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9040 ac_sed_extra="$ac_vpsub
9041 $extrasub
9042 _ACEOF
9043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9046 s|@configure_input@|$ac_sed_conf_input|;t t
9047 s&@top_builddir@&$ac_top_builddir_sub&;t t
9048 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9049 s&@srcdir@&$ac_srcdir&;t t
9050 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9051 s&@top_srcdir@&$ac_top_srcdir&;t t
9052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9053 s&@builddir@&$ac_builddir&;t t
9054 s&@abs_builddir@&$ac_abs_builddir&;t t
9055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9056 s&@INSTALL@&$ac_INSTALL&;t t
9057 $ac_datarootdir_hack
9059 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9062 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9063 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9064 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9066 which seems to be undefined. Please make sure it is defined" >&5
9067 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9068 which seems to be undefined. Please make sure it is defined" >&2;}
9070 rm -f "$tmp/stdin"
9071 case $ac_file in
9072 -) cat "$tmp/out" && rm -f "$tmp/out";;
9073 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9074 esac \
9075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9079 # CONFIG_HEADER
9081 if test x"$ac_file" != x-; then
9083 $as_echo "/* $configure_input */" \
9084 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9085 } >"$tmp/config.h" \
9086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9087 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9089 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9090 else
9091 rm -f "$ac_file"
9092 mv "$tmp/config.h" "$ac_file" \
9093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9095 else
9096 $as_echo "/* $configure_input */" \
9097 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9098 || as_fn_error $? "could not create -" "$LINENO" 5
9103 esac
9105 done # for ac_tag
9108 as_fn_exit 0
9109 _ACEOF
9110 ac_clean_files=$ac_clean_files_save
9112 test $ac_write_fail = 0 ||
9113 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9116 # configure is writing to config.log, and then calls config.status.
9117 # config.status does its own redirection, appending to config.log.
9118 # Unfortunately, on DOS this fails, as config.log is still kept open
9119 # by configure, so config.status won't be able to write to it; its
9120 # output is simply discarded. So we exec the FD to /dev/null,
9121 # effectively closing config.log, so it can be properly (re)opened and
9122 # appended to by config.status. When coming back to configure, we
9123 # need to make the FD available again.
9124 if test "$no_create" != yes; then
9125 ac_cs_success=:
9126 ac_config_status_args=
9127 test "$silent" = yes &&
9128 ac_config_status_args="$ac_config_status_args --quiet"
9129 exec 5>/dev/null
9130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9131 exec 5>>config.log
9132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9133 # would make configure fail if this is the last instruction.
9134 $ac_cs_success || as_fn_exit 1
9136 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9138 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9142 if test -f .devel ; then
9143 make depend
9145 exit 0