Remove building with NOCRYPTO option
[minix.git] / external / bsd / libpcap / dist / configure
blobef22204e8eb24e5e2f45cb112a3423f04968e129
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="pcap.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='LTLIBOBJS
623 INSTALL_DATA
624 INSTALL_SCRIPT
625 INSTALL_PROGRAM
626 PCAP_SUPPORT_PACKET_RING
627 DBUS_SRC
628 PCAP_SUPPORT_DBUS
629 PKGCONFIG
630 CAN_SRC
631 PCAP_SUPPORT_CAN
632 CANUSB_SRC
633 PCAP_SUPPORT_CANUSB
634 BT_MONITOR_SRC
635 BT_SRC
636 PCAP_SUPPORT_BT
637 NETFILTER_SRC
638 PCAP_SUPPORT_NETFILTER
639 USB_SRC
640 PCAP_SUPPORT_USB
641 MAN_MISC_INFO
642 MAN_FILE_FORMATS
643 DYEXT
644 SSRC
645 ADDLARCHIVEOBJS
646 ADDLOBJS
647 V_RPATH_OPT
648 V_SONAME_OPT
649 V_SHLIB_OPT
650 V_SHLIB_CMD
651 V_PCAP
652 V_INCLS
653 V_FINDALLDEVS
654 V_DEFS
655 V_CCOPT
656 MKDEP
657 DEPENDENCY_CFLAG
658 LN_S
660 RANLIB
661 V_YACC
662 V_LEX
663 HAVE_LINUX_TPACKET_AUXDATA
664 LIBOBJS
665 EGREP
666 GREP
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
675 SHLICC2
676 target_os
677 target_vendor
678 target_cpu
679 target
680 host_os
681 host_vendor
682 host_cpu
683 host
684 build_os
685 build_vendor
686 build_cpu
687 build
688 target_alias
689 host_alias
690 build_alias
691 LIBS
692 ECHO_T
693 ECHO_N
694 ECHO_C
695 DEFS
696 mandir
697 localedir
698 libdir
699 psdir
700 pdfdir
701 dvidir
702 htmldir
703 infodir
704 docdir
705 oldincludedir
706 includedir
707 localstatedir
708 sharedstatedir
709 sysconfdir
710 datadir
711 datarootdir
712 libexecdir
713 sbindir
714 bindir
715 program_transform_name
716 prefix
717 exec_prefix
718 PACKAGE_URL
719 PACKAGE_BUGREPORT
720 PACKAGE_STRING
721 PACKAGE_VERSION
722 PACKAGE_TARNAME
723 PACKAGE_NAME
724 PATH_SEPARATOR
725 SHELL'
726 ac_subst_files=''
727 ac_user_opts='
728 enable_option_checking
729 with_gcc
730 enable_largefile
731 enable_protochain
732 with_sita
733 with_pcap
734 with_libnl
735 enable_ipv6
736 enable_optimizer_dbg
737 enable_yydebug
738 with_dag
739 with_dag_includes
740 with_dag_libraries
741 with_septel
742 with_snf
743 with_snf_includes
744 with_snf_libraries
745 with_flex
746 with_bison
747 enable_universal
748 enable_shared
749 enable_usb
750 enable_bluetooth
751 enable_canusb
752 enable_can
753 enable_dbus
754 enable_packet_ring
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
760 CFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
764 CPP'
767 # Initialize some variables set by options.
768 ac_init_help=
769 ac_init_version=false
770 ac_unrecognized_opts=
771 ac_unrecognized_sep=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
815 ac_prev=
816 ac_dashdash=
817 for ac_option
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
822 ac_prev=
823 continue
826 case $ac_option in
827 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 *=) ac_optarg= ;;
829 *) ac_optarg=yes ;;
830 esac
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
836 ac_dashdash=yes ;;
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 ac_prev=bindir ;;
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 bindir=$ac_optarg ;;
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
855 --config-cache | -C)
856 cache_file=config.cache ;;
858 -datadir | --datadir | --datadi | --datad)
859 ac_prev=datadir ;;
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
870 -disable-* | --disable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 as_fn_error $? "invalid feature name: $ac_useropt"
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
879 "enable_$ac_useropt"
880 "*) ;;
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
883 esac
884 eval enable_$ac_useropt=no ;;
886 -docdir | --docdir | --docdi | --doc | --do)
887 ac_prev=docdir ;;
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 docdir=$ac_optarg ;;
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 ac_prev=dvidir ;;
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 dvidir=$ac_optarg ;;
896 -enable-* | --enable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=\$ac_optarg ;;
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
923 with_gas=yes ;;
925 -help | --help | --hel | --he | -h)
926 ac_init_help=long ;;
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 ac_prev=htmldir ;;
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 | --ht=*)
941 htmldir=$ac_optarg ;;
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 ac_prev=infodir ;;
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
955 -libdir | --libdir | --libdi | --libd)
956 ac_prev=libdir ;;
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 libdir=$ac_optarg ;;
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
967 -localedir | --localedir | --localedi | --localed | --locale)
968 ac_prev=localedir ;;
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 ac_prev=mandir ;;
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 mandir=$ac_optarg ;;
984 -nfp | --nfp | --nf)
985 # Obsolete; use --without-fp.
986 with_fp=no ;;
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
990 no_create=yes ;;
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 no_recursion=yes ;;
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 ac_prev=prefix ;;
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 ac_prev=pdfdir ;;
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1046 -psdir | --psdir | --psdi | --psd | --ps)
1047 ac_prev=psdir ;;
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 psdir=$ac_optarg ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 silent=yes ;;
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 ac_prev=sbindir ;;
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 | --sbi=* | --sb=*)
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1064 | --sha | --sh)
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 | --sha=* | --sh=*)
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1073 ac_prev=site ;;
1074 -site=* | --site=* | --sit=*)
1075 site=$ac_optarg ;;
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 ac_prev=srcdir ;;
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 verbose=yes ;;
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1100 -with-* | --with-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=no ;;
1132 --x)
1133 # Obsolete; use --with-x.
1134 with_x=yes ;;
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information"
1154 *=*)
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' | [0-9]* | *[!_$as_cr_alnum]* )
1159 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1160 esac
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1172 esac
1173 done
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error $? "missing argument to $ac_option"
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1182 no) ;;
1183 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 esac
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1196 case $ac_val in
1197 */ )
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1200 esac
1201 # Be sure to have absolute directory names.
1202 case $ac_val in
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 esac
1206 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1207 done
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 elif test "x$build_alias" != "x$host_alias"; then
1221 cross_compiling=yes
1225 ac_tool_prefix=
1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228 test "$silent" = yes && exec 6>/dev/null
1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232 ac_ls_di=`ls -di .` &&
1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234 as_fn_error $? "working directory cannot be determined"
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236 as_fn_error $? "pwd does not report name of working directory"
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241 ac_srcdir_defaulted=yes
1242 # Try the directory containing this script, then the parent directory.
1243 ac_confdir=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 s//\1/
1253 /^X\(\/\/\)[^/].*/{
1254 s//\1/
1257 /^X\(\/\/\)$/{
1258 s//\1/
1261 /^X\(\/\).*/{
1262 s//\1/
1265 s/.*/./; q'`
1266 srcdir=$ac_confdir
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 srcdir=..
1270 else
1271 ac_srcdir_defaulted=no
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280 pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1299 # Report the --help message.
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1304 cat <<_ACEOF
1305 \`configure' configures this package to adapt to many kinds of systems.
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1312 Defaults for the options are specified in brackets.
1314 Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking ...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 [PREFIX]
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1336 For better control, use the options below.
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1358 _ACEOF
1360 cat <<\_ACEOF
1362 System types:
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
1366 _ACEOF
1369 if test -n "$ac_init_help"; then
1371 cat <<\_ACEOF
1373 Optional Features:
1374 --disable-option-checking ignore unrecognized --enable/--with options
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --disable-largefile omit support for large files
1378 --disable-protochain disable \"protochain\" insn
1379 --enable-ipv6 build IPv6-capable version [default=yes, if
1380 getaddrinfo available]
1381 --enable-optimizer-dbg build optimizer debugging code
1382 --enable-yydebug build parser debugging code
1383 --disable-universal don't build universal on OS X
1384 --enable-shared build shared libraries [default=yes, if support
1385 available]
1386 --enable-usb enable nusb support [default=yes, if support
1387 available]
1388 --enable-bluetooth enable Bluetooth support [default=yes, if support
1389 available]
1390 --enable-canusb enable canusb support [default=yes, if support
1391 available]
1392 --enable-can enable CAN support [default=yes, if support
1393 available]
1394 --enable-dbus enable D-Bus capture support [default=yes, if
1395 support available]
1396 --enable-packet-ring enable Linux packet ring support [default=yes]
1398 Optional Packages:
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --without-gcc don't use gcc
1402 --with-sita include SITA support
1403 --with-pcap=TYPE use packet capture TYPE
1404 --without-libnl disable libnl support [default=yes, on Linux, if
1405 present]
1406 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1407 default="yes" on BSD and Linux if present]
1408 --with-dag-includes=DIR Endace DAG include directory
1409 --with-dag-libraries=DIR
1410 Endace DAG library directory
1411 --with-septel[=DIR] include Septel support (located in directory DIR, if
1412 supplied). [default=yes, on Linux, if present]
1413 --with-snf[=DIR] include Myricom SNF support ["yes", "no" or DIR;
1414 default="yes" on BSD and Linux if present]
1415 --with-snf-includes=DIR Myricom SNF include directory
1416 --with-snf-libraries=DIR
1417 Myricom SNF library directory
1418 --without-flex don't use flex
1419 --without-bison don't use bison
1421 Some influential environment variables:
1422 CC C compiler command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1425 nonstandard directory <lib dir>
1426 LIBS libraries to pass to the linker, e.g. -l<library>
1427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1428 you have headers in a nonstandard directory <include dir>
1429 CPP C preprocessor
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to the package provider.
1435 _ACEOF
1436 ac_status=$?
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
1445 ac_builddir=.
1447 case "$ac_dir" in
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457 esac
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1463 case $srcdir in
1464 .) # We are building in place.
1465 ac_srcdir=.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 esac
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1487 else
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 fi || ac_status=$?
1490 cd "$ac_pwd" || { ac_status=$?; break; }
1491 done
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1496 cat <<\_ACEOF
1497 configure
1498 generated by GNU Autoconf 2.69
1500 Copyright (C) 2012 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1503 _ACEOF
1504 exit
1507 ## ------------------------ ##
1508 ## Autoconf initialization. ##
1509 ## ------------------------ ##
1511 # ac_fn_c_try_compile LINENO
1512 # --------------------------
1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_compile ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1519 case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522 esac
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1542 ac_retval=1
1544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1545 as_fn_set_status $ac_retval
1547 } # ac_fn_c_try_compile
1549 # ac_fn_c_try_cpp LINENO
1550 # ----------------------
1551 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_cpp ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 if { { ac_try="$ac_cpp conftest.$ac_ext"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } > conftest.i && {
1571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 }; then :
1574 ac_retval=0
1575 else
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1579 ac_retval=1
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1584 } # ac_fn_c_try_cpp
1586 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1587 # -------------------------------------------------------
1588 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1589 # the include files in INCLUDES and setting the cache variable VAR
1590 # accordingly.
1591 ac_fn_c_check_header_mongrel ()
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if eval \${$3+:} false; then :
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596 $as_echo_n "checking for $2... " >&6; }
1597 if eval \${$3+:} false; then :
1598 $as_echo_n "(cached) " >&6
1600 eval ac_res=\$$3
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1602 $as_echo "$ac_res" >&6; }
1603 else
1604 # Is the header compilable?
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1606 $as_echo_n "checking $2 usability... " >&6; }
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1610 #include <$2>
1611 _ACEOF
1612 if ac_fn_c_try_compile "$LINENO"; then :
1613 ac_header_compiler=yes
1614 else
1615 ac_header_compiler=no
1617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1619 $as_echo "$ac_header_compiler" >&6; }
1621 # Is the header present?
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1623 $as_echo_n "checking $2 presence... " >&6; }
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_cpp "$LINENO"; then :
1629 ac_header_preproc=yes
1630 else
1631 ac_header_preproc=no
1633 rm -f conftest.err conftest.i conftest.$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1635 $as_echo "$ac_header_preproc" >&6; }
1637 # So? What about this header?
1638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1639 yes:no: )
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1641 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1643 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645 no:yes:* )
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1647 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1649 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1651 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1653 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 esac
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if eval \${$3+:} false; then :
1661 $as_echo_n "(cached) " >&6
1662 else
1663 eval "$3=\$ac_header_compiler"
1665 eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 } # ac_fn_c_check_header_mongrel
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=$ac_status
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1713 } # ac_fn_c_try_run
1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716 # -------------------------------------------------------
1717 # Tests whether HEADER exists and can be compiled using the include files in
1718 # INCLUDES, setting the cache variable VAR accordingly.
1719 ac_fn_c_check_header_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733 eval "$3=yes"
1734 else
1735 eval "$3=no"
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 } # ac_fn_c_check_header_compile
1746 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1747 # -------------------------------------------
1748 # Tests whether TYPE exists after having included INCLUDES, setting cache
1749 # variable VAR accordingly.
1750 ac_fn_c_check_type ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1757 else
1758 eval "$3=no"
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1763 main ()
1765 if (sizeof ($2))
1766 return 0;
1768 return 0;
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1776 main ()
1778 if (sizeof (($2)))
1779 return 0;
1781 return 0;
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1786 else
1787 eval "$3=yes"
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 } # ac_fn_c_check_type
1800 # ac_fn_c_try_link LINENO
1801 # -----------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_c_try_link ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext conftest$ac_exeext
1807 if { { ac_try="$ac_link"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest$ac_exeext && {
1826 test "$cross_compiling" = yes ||
1827 test -x conftest$ac_exeext
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 ac_retval=1
1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838 # interfere with the next link command; also delete a directory that is
1839 # left behind by Apple's compiler. We do this before executing the actions.
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_c_try_link
1846 # ac_fn_c_check_func LINENO FUNC VAR
1847 # ----------------------------------
1848 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1849 ac_fn_c_check_func ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval \${$3+:} false; then :
1855 $as_echo_n "(cached) " >&6
1856 else
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1861 #define $2 innocuous_$2
1863 /* System header to define __stub macros and hopefully few prototypes,
1864 which can conflict with char $2 (); below.
1865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1866 <limits.h> exists even on freestanding compilers. */
1868 #ifdef __STDC__
1869 # include <limits.h>
1870 #else
1871 # include <assert.h>
1872 #endif
1874 #undef $2
1876 /* Override any GCC internal prototype to avoid an error.
1877 Use char because int might match the return type of a GCC
1878 builtin and then its argument prototype would still apply. */
1879 #ifdef __cplusplus
1880 extern "C"
1881 #endif
1882 char $2 ();
1883 /* The GNU C library defines this for functions which it implements
1884 to always fail with ENOSYS. Some functions are actually named
1885 something starting with __ and the normal name is an alias. */
1886 #if defined __stub_$2 || defined __stub___$2
1887 choke me
1888 #endif
1891 main ()
1893 return $2 ();
1895 return 0;
1897 _ACEOF
1898 if ac_fn_c_try_link "$LINENO"; then :
1899 eval "$3=yes"
1900 else
1901 eval "$3=no"
1903 rm -f core conftest.err conftest.$ac_objext \
1904 conftest$ac_exeext conftest.$ac_ext
1906 eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 } # ac_fn_c_check_func
1913 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1914 # ---------------------------------------------
1915 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1916 # accordingly.
1917 ac_fn_c_check_decl ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 as_decl_name=`echo $2|sed 's/ *(.*//'`
1921 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1923 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1931 main ()
1933 #ifndef $as_decl_name
1934 #ifdef __cplusplus
1935 (void) $as_decl_use;
1936 #else
1937 (void) $as_decl_name;
1938 #endif
1939 #endif
1942 return 0;
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 eval "$3=yes"
1947 else
1948 eval "$3=no"
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 } # ac_fn_c_check_decl
1958 cat >config.log <<_ACEOF
1959 This file contains any messages produced by compilers while
1960 running configure, to aid debugging if configure makes a mistake.
1962 It was created by $as_me, which was
1963 generated by GNU Autoconf 2.69. Invocation command line was
1965 $ $0 $@
1967 _ACEOF
1968 exec 5>>config.log
1970 cat <<_ASUNAME
1971 ## --------- ##
1972 ## Platform. ##
1973 ## --------- ##
1975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1987 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1992 _ASUNAME
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 $as_echo "PATH: $as_dir"
2000 done
2001 IFS=$as_save_IFS
2003 } >&5
2005 cat >&5 <<_ACEOF
2008 ## ----------- ##
2009 ## Core tests. ##
2010 ## ----------- ##
2012 _ACEOF
2015 # Keep a trace of the command line.
2016 # Strip out --no-create and --no-recursion so they do not pile up.
2017 # Strip out --silent because we don't want to record it for future runs.
2018 # Also quote any args containing shell meta-characters.
2019 # Make two passes to allow for proper duplicate-argument suppression.
2020 ac_configure_args=
2021 ac_configure_args0=
2022 ac_configure_args1=
2023 ac_must_keep_next=false
2024 for ac_pass in 1 2
2026 for ac_arg
2028 case $ac_arg in
2029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2031 | -silent | --silent | --silen | --sile | --sil)
2032 continue ;;
2033 *\'*)
2034 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 esac
2036 case $ac_pass in
2037 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2039 as_fn_append ac_configure_args1 " '$ac_arg'"
2040 if test $ac_must_keep_next = true; then
2041 ac_must_keep_next=false # Got value, back to normal.
2042 else
2043 case $ac_arg in
2044 *=* | --config-cache | -C | -disable-* | --disable-* \
2045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2047 | -with-* | --with-* | -without-* | --without-* | --x)
2048 case "$ac_configure_args0 " in
2049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2050 esac
2052 -* ) ac_must_keep_next=true ;;
2053 esac
2055 as_fn_append ac_configure_args " '$ac_arg'"
2057 esac
2058 done
2059 done
2060 { ac_configure_args0=; unset ac_configure_args0;}
2061 { ac_configure_args1=; unset ac_configure_args1;}
2063 # When interrupted or exit'd, cleanup temporary files, and complete
2064 # config.log. We remove comments because anyway the quotes in there
2065 # would cause problems or look ugly.
2066 # WARNING: Use '\'' to represent an apostrophe within the trap.
2067 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2068 trap 'exit_status=$?
2069 # Save into config.log some information that might help in debugging.
2071 echo
2073 $as_echo "## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##"
2076 echo
2077 # The following way of writing the cache mishandles newlines in values,
2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in #(
2082 *${as_nl}*)
2083 case $ac_var in #(
2084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086 esac
2087 case $ac_var in #(
2088 _ | IFS | as_nl) ;; #(
2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090 *) { eval $ac_var=; unset $ac_var;} ;;
2091 esac ;;
2092 esac
2093 done
2094 (set) 2>&1 |
2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096 *${as_nl}ac_space=\ *)
2097 sed -n \
2098 "s/'\''/'\''\\\\'\'''\''/g;
2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100 ;; #(
2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2104 esac |
2105 sort
2107 echo
2109 $as_echo "## ----------------- ##
2110 ## Output variables. ##
2111 ## ----------------- ##"
2112 echo
2113 for ac_var in $ac_subst_vars
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 $as_echo "$ac_var='\''$ac_val'\''"
2120 done | sort
2121 echo
2123 if test -n "$ac_subst_files"; then
2124 $as_echo "## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##"
2127 echo
2128 for ac_var in $ac_subst_files
2130 eval ac_val=\$$ac_var
2131 case $ac_val in
2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 esac
2134 $as_echo "$ac_var='\''$ac_val'\''"
2135 done | sort
2136 echo
2139 if test -s confdefs.h; then
2140 $as_echo "## ----------- ##
2141 ## confdefs.h. ##
2142 ## ----------- ##"
2143 echo
2144 cat confdefs.h
2145 echo
2147 test "$ac_signal" != 0 &&
2148 $as_echo "$as_me: caught signal $ac_signal"
2149 $as_echo "$as_me: exit $exit_status"
2150 } >&5
2151 rm -f core *.core core.conftest.* &&
2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153 exit $exit_status
2155 for ac_signal in 1 2 13 15; do
2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 done
2158 ac_signal=0
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2163 $as_echo "/* confdefs.h */" > confdefs.h
2165 # Predefined preprocessor variables.
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_NAME "$PACKAGE_NAME"
2169 _ACEOF
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2173 _ACEOF
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2177 _ACEOF
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_STRING "$PACKAGE_STRING"
2181 _ACEOF
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2185 _ACEOF
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_URL "$PACKAGE_URL"
2189 _ACEOF
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2194 ac_site_file1=NONE
2195 ac_site_file2=NONE
2196 if test -n "$CONFIG_SITE"; then
2197 # We do not want a PATH search for config.site.
2198 case $CONFIG_SITE in #((
2199 -*) ac_site_file1=./$CONFIG_SITE;;
2200 */*) ac_site_file1=$CONFIG_SITE;;
2201 *) ac_site_file1=./$CONFIG_SITE;;
2202 esac
2203 elif test "x$prefix" != xNONE; then
2204 ac_site_file1=$prefix/share/config.site
2205 ac_site_file2=$prefix/etc/config.site
2206 else
2207 ac_site_file1=$ac_default_prefix/share/config.site
2208 ac_site_file2=$ac_default_prefix/etc/config.site
2210 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2212 test "x$ac_site_file" = xNONE && continue
2213 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2216 sed 's/^/| /' "$ac_site_file" >&5
2217 . "$ac_site_file" \
2218 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 as_fn_error $? "failed to load site script $ac_site_file
2221 See \`config.log' for more details" "$LINENO" 5; }
2223 done
2225 if test -r "$cache_file"; then
2226 # Some versions of bash will fail to source /dev/null (special files
2227 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 $as_echo "$as_me: loading cache $cache_file" >&6;}
2231 case $cache_file in
2232 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233 *) . "./$cache_file";;
2234 esac
2236 else
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 $as_echo "$as_me: creating cache $cache_file" >&6;}
2239 >$cache_file
2242 # Check that the precious variables saved in the cache have kept the same
2243 # value.
2244 ac_cache_corrupted=false
2245 for ac_var in $ac_precious_vars; do
2246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247 eval ac_new_set=\$ac_env_${ac_var}_set
2248 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249 eval ac_new_val=\$ac_env_${ac_var}_value
2250 case $ac_old_set,$ac_new_set in
2251 set,)
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2255 ,set)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,);;
2261 if test "x$ac_old_val" != "x$ac_new_val"; then
2262 # differences in whitespace do not lead to failure.
2263 ac_old_val_w=`echo x $ac_old_val`
2264 ac_new_val_w=`echo x $ac_new_val`
2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268 ac_cache_corrupted=:
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272 eval $ac_var=\$ac_old_val
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2275 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2277 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2278 fi;;
2279 esac
2280 # Pass precious variables to config.status.
2281 if test "$ac_new_set" = set; then
2282 case $ac_new_val in
2283 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 *) ac_arg=$ac_var=$ac_new_val ;;
2285 esac
2286 case " $ac_configure_args " in
2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2288 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2289 esac
2291 done
2292 if $ac_cache_corrupted; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2299 ## -------------------- ##
2300 ## Main body of script. ##
2301 ## -------------------- ##
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311 ac_aux_dir=
2312 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2313 if test -f "$ac_dir/install-sh"; then
2314 ac_aux_dir=$ac_dir
2315 ac_install_sh="$ac_aux_dir/install-sh -c"
2316 break
2317 elif test -f "$ac_dir/install.sh"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/install.sh -c"
2320 break
2321 elif test -f "$ac_dir/shtool"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/shtool install -c"
2324 break
2326 done
2327 if test -z "$ac_aux_dir"; then
2328 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2331 # These three variables are undocumented and unsupported,
2332 # and are intended to be withdrawn in a future Autoconf release.
2333 # They can cause serious problems if a builder's source tree is in a directory
2334 # whose full name contains unusual characters.
2335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2340 # Make sure we can run config.sub.
2341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2342 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345 $as_echo_n "checking build system type... " >&6; }
2346 if ${ac_cv_build+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 ac_build_alias=$build_alias
2350 test "x$ac_build_alias" = x &&
2351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352 test "x$ac_build_alias" = x &&
2353 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359 $as_echo "$ac_cv_build" >&6; }
2360 case $ac_cv_build in
2361 *-*-*) ;;
2362 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2363 esac
2364 build=$ac_cv_build
2365 ac_save_IFS=$IFS; IFS='-'
2366 set x $ac_cv_build
2367 shift
2368 build_cpu=$1
2369 build_vendor=$2
2370 shift; shift
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2373 build_os=$*
2374 IFS=$ac_save_IFS
2375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if ${ac_cv_host+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test "x$host_alias" = x; then
2384 ac_cv_host=$ac_cv_build
2385 else
2386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392 $as_echo "$ac_cv_host" >&6; }
2393 case $ac_cv_host in
2394 *-*-*) ;;
2395 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2396 esac
2397 host=$ac_cv_host
2398 ac_save_IFS=$IFS; IFS='-'
2399 set x $ac_cv_host
2400 shift
2401 host_cpu=$1
2402 host_vendor=$2
2403 shift; shift
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2406 host_os=$*
2407 IFS=$ac_save_IFS
2408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2412 $as_echo_n "checking target system type... " >&6; }
2413 if ${ac_cv_target+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test "x$target_alias" = x; then
2417 ac_cv_target=$ac_cv_host
2418 else
2419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2425 $as_echo "$ac_cv_target" >&6; }
2426 case $ac_cv_target in
2427 *-*-*) ;;
2428 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2429 esac
2430 target=$ac_cv_target
2431 ac_save_IFS=$IFS; IFS='-'
2432 set x $ac_cv_target
2433 shift
2434 target_cpu=$1
2435 target_vendor=$2
2436 shift; shift
2437 # Remember, the first character of IFS is used to create $*,
2438 # except with old shells:
2439 target_os=$*
2440 IFS=$ac_save_IFS
2441 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2444 # The aliases save the names the user supplied, while $host etc.
2445 # will get canonicalized.
2446 test -n "$target_alias" &&
2447 test "$program_prefix$program_suffix$program_transform_name" = \
2448 NONENONEs,x,x, &&
2449 program_prefix=${target_alias}-
2458 # Check whether --with-gcc was given.
2459 if test "${with_gcc+set}" = set; then :
2460 withval=$with_gcc;
2463 V_CCOPT=""
2464 if test "${srcdir}" != "." ; then
2465 V_CCOPT="-I\$(srcdir)"
2467 if test "${CFLAGS+set}" = set; then
2468 LBL_CFLAGS="$CFLAGS"
2470 if test -z "$CC" ; then
2471 case "$host_os" in
2473 bsdi*)
2474 # Extract the first word of "shlicc2", so it can be a program name with args.
2475 set dummy shlicc2; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_SHLICC2+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 if test -n "$SHLICC2"; then
2482 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_SHLICC2="yes"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2495 done
2496 done
2497 IFS=$as_save_IFS
2499 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2502 SHLICC2=$ac_cv_prog_SHLICC2
2503 if test -n "$SHLICC2"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2505 $as_echo "$SHLICC2" >&6; }
2506 else
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508 $as_echo "no" >&6; }
2512 if test $SHLICC2 = yes ; then
2513 CC=shlicc2
2514 export CC
2517 esac
2519 if test -z "$CC" -a "$with_gcc" = no ; then
2520 CC=cc
2521 export CC
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if ${ac_cv_prog_CC+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2551 done
2552 done
2553 IFS=$as_save_IFS
2557 CC=$ac_cv_prog_CC
2558 if test -n "$CC"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2560 $as_echo "$CC" >&6; }
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2568 if test -z "$ac_cv_prog_CC"; then
2569 ac_ct_CC=$CC
2570 # Extract the first word of "gcc", so it can be a program name with args.
2571 set dummy gcc; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587 ac_cv_prog_ac_ct_CC="gcc"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2591 done
2592 done
2593 IFS=$as_save_IFS
2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2600 $as_echo "$ac_ct_CC" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2606 if test "x$ac_ct_CC" = x; then
2607 CC=""
2608 else
2609 case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615 CC=$ac_ct_CC
2617 else
2618 CC="$ac_cv_prog_CC"
2621 if test -z "$CC"; then
2622 if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}cc; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_CC+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640 ac_cv_prog_CC="${ac_tool_prefix}cc"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2644 done
2645 done
2646 IFS=$as_save_IFS
2650 CC=$ac_cv_prog_CC
2651 if test -n "$CC"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653 $as_echo "$CC" >&6; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2662 if test -z "$CC"; then
2663 # Extract the first word of "cc", so it can be a program name with args.
2664 set dummy cc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_CC+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 ac_prog_rejected=no
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2682 ac_prog_rejected=yes
2683 continue
2685 ac_cv_prog_CC="cc"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2689 done
2690 done
2691 IFS=$as_save_IFS
2693 if test $ac_prog_rejected = yes; then
2694 # We found a bogon in the path, so make sure we never use it.
2695 set dummy $ac_cv_prog_CC
2696 shift
2697 if test $# != 0; then
2698 # We chose a different compiler from the bogus one.
2699 # However, it has the same basename, so the bogon will be chosen
2700 # first if we set CC to just the basename; use the full file name.
2701 shift
2702 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
2718 if test -z "$CC"; then
2719 if test -n "$ac_tool_prefix"; then
2720 for ac_prog in cl.exe
2722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_CC+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2743 done
2744 done
2745 IFS=$as_save_IFS
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2759 test -n "$CC" && break
2760 done
2762 if test -z "$CC"; then
2763 ac_ct_CC=$CC
2764 for ac_prog in cl.exe
2766 # Extract the first word of "$ac_prog", so it can be a program name with args.
2767 set dummy $ac_prog; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_ac_ct_CC="$ac_prog"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2787 done
2788 done
2789 IFS=$as_save_IFS
2793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2796 $as_echo "$ac_ct_CC" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2803 test -n "$ac_ct_CC" && break
2804 done
2806 if test "x$ac_ct_CC" = x; then
2807 CC=""
2808 else
2809 case $cross_compiling:$ac_tool_warned in
2810 yes:)
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2813 ac_tool_warned=yes ;;
2814 esac
2815 CC=$ac_ct_CC
2822 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2824 as_fn_error $? "no acceptable C compiler found in \$PATH
2825 See \`config.log' for more details" "$LINENO" 5; }
2827 # Provide some information about the compiler.
2828 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2829 set X $ac_compile
2830 ac_compiler=$2
2831 for ac_option in --version -v -V -qversion; do
2832 { { ac_try="$ac_compiler $ac_option >&5"
2833 case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838 $as_echo "$ac_try_echo"; } >&5
2839 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2840 ac_status=$?
2841 if test -s conftest.err; then
2842 sed '10a\
2843 ... rest of stderr output deleted ...
2844 10q' conftest.err >conftest.er1
2845 cat conftest.er1 >&5
2847 rm -f conftest.er1 conftest.err
2848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2849 test $ac_status = 0; }
2850 done
2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853 /* end confdefs.h. */
2856 main ()
2860 return 0;
2862 _ACEOF
2863 ac_clean_files_save=$ac_clean_files
2864 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2865 # Try to create an executable without -o first, disregard a.out.
2866 # It will help us diagnose broken compilers, and finding out an intuition
2867 # of exeext.
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2869 $as_echo_n "checking whether the C compiler works... " >&6; }
2870 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2872 # The possible output files:
2873 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2875 ac_rmfiles=
2876 for ac_file in $ac_files
2878 case $ac_file in
2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2880 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2881 esac
2882 done
2883 rm -f $ac_rmfiles
2885 if { { ac_try="$ac_link_default"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2891 $as_echo "$ac_try_echo"; } >&5
2892 (eval "$ac_link_default") 2>&5
2893 ac_status=$?
2894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2895 test $ac_status = 0; }; then :
2896 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2897 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2898 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2899 # so that the user can short-circuit this test for compilers unknown to
2900 # Autoconf.
2901 for ac_file in $ac_files ''
2903 test -f "$ac_file" || continue
2904 case $ac_file in
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2907 [ab].out )
2908 # We found the default executable, but exeext='' is most
2909 # certainly right.
2910 break;;
2911 *.* )
2912 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2913 then :; else
2914 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2916 # We set ac_cv_exeext here because the later test for it is not
2917 # safe: cross compilers may not add the suffix if given an `-o'
2918 # argument, so we may need to know it at that point already.
2919 # Even if this section looks crufty: it has the advantage of
2920 # actually working.
2921 break;;
2923 break;;
2924 esac
2925 done
2926 test "$ac_cv_exeext" = no && ac_cv_exeext=
2928 else
2929 ac_file=''
2931 if test -z "$ac_file"; then :
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 $as_echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error 77 "C compiler cannot create executables
2940 See \`config.log' for more details" "$LINENO" 5; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943 $as_echo "yes" >&6; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2946 $as_echo_n "checking for C compiler default output file name... " >&6; }
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2948 $as_echo "$ac_file" >&6; }
2949 ac_exeext=$ac_cv_exeext
2951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2952 ac_clean_files=$ac_clean_files_save
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2954 $as_echo_n "checking for suffix of executables... " >&6; }
2955 if { { ac_try="$ac_link"
2956 case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2961 $as_echo "$ac_try_echo"; } >&5
2962 (eval "$ac_link") 2>&5
2963 ac_status=$?
2964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965 test $ac_status = 0; }; then :
2966 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2967 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2968 # work properly (i.e., refer to `conftest.exe'), while it won't with
2969 # `rm'.
2970 for ac_file in conftest.exe conftest conftest.*; do
2971 test -f "$ac_file" || continue
2972 case $ac_file in
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2974 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2975 break;;
2976 * ) break;;
2977 esac
2978 done
2979 else
2980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2983 See \`config.log' for more details" "$LINENO" 5; }
2985 rm -f conftest conftest$ac_cv_exeext
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2987 $as_echo "$ac_cv_exeext" >&6; }
2989 rm -f conftest.$ac_ext
2990 EXEEXT=$ac_cv_exeext
2991 ac_exeext=$EXEEXT
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2994 #include <stdio.h>
2996 main ()
2998 FILE *f = fopen ("conftest.out", "w");
2999 return ferror (f) || fclose (f) != 0;
3002 return 0;
3004 _ACEOF
3005 ac_clean_files="$ac_clean_files conftest.out"
3006 # Check that the compiler produces executables we can run. If not, either
3007 # the compiler is broken, or we cross compile.
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3009 $as_echo_n "checking whether we are cross compiling... " >&6; }
3010 if test "$cross_compiling" != yes; then
3011 { { ac_try="$ac_link"
3012 case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015 esac
3016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017 $as_echo "$ac_try_echo"; } >&5
3018 (eval "$ac_link") 2>&5
3019 ac_status=$?
3020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021 test $ac_status = 0; }
3022 if { ac_try='./conftest$ac_cv_exeext'
3023 { { case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_try") 2>&5
3030 ac_status=$?
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }; }; then
3033 cross_compiling=no
3034 else
3035 if test "$cross_compiling" = maybe; then
3036 cross_compiling=yes
3037 else
3038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040 as_fn_error $? "cannot run C compiled programs.
3041 If you meant to cross compile, use \`--host'.
3042 See \`config.log' for more details" "$LINENO" 5; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3047 $as_echo "$cross_compiling" >&6; }
3049 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3050 ac_clean_files=$ac_clean_files_save
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3052 $as_echo_n "checking for suffix of object files... " >&6; }
3053 if ${ac_cv_objext+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3060 main ()
3064 return 0;
3066 _ACEOF
3067 rm -f conftest.o conftest.obj
3068 if { { ac_try="$ac_compile"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_compile") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then :
3079 for ac_file in conftest.o conftest.obj conftest.*; do
3080 test -f "$ac_file" || continue;
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3083 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3084 break;;
3085 esac
3086 done
3087 else
3088 $as_echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093 as_fn_error $? "cannot compute suffix of object files: cannot compile
3094 See \`config.log' for more details" "$LINENO" 5; }
3096 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3099 $as_echo "$ac_cv_objext" >&6; }
3100 OBJEXT=$ac_cv_objext
3101 ac_objext=$OBJEXT
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3103 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3104 if ${ac_cv_c_compiler_gnu+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3111 main ()
3113 #ifndef __GNUC__
3114 choke me
3115 #endif
3118 return 0;
3120 _ACEOF
3121 if ac_fn_c_try_compile "$LINENO"; then :
3122 ac_compiler_gnu=yes
3123 else
3124 ac_compiler_gnu=no
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3131 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3132 if test $ac_compiler_gnu = yes; then
3133 GCC=yes
3134 else
3135 GCC=
3137 ac_test_CFLAGS=${CFLAGS+set}
3138 ac_save_CFLAGS=$CFLAGS
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3140 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3141 if ${ac_cv_prog_cc_g+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 ac_save_c_werror_flag=$ac_c_werror_flag
3145 ac_c_werror_flag=yes
3146 ac_cv_prog_cc_g=no
3147 CFLAGS="-g"
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149 /* end confdefs.h. */
3152 main ()
3156 return 0;
3158 _ACEOF
3159 if ac_fn_c_try_compile "$LINENO"; then :
3160 ac_cv_prog_cc_g=yes
3161 else
3162 CFLAGS=""
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3167 main ()
3171 return 0;
3173 _ACEOF
3174 if ac_fn_c_try_compile "$LINENO"; then :
3176 else
3177 ac_c_werror_flag=$ac_save_c_werror_flag
3178 CFLAGS="-g"
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3183 main ()
3187 return 0;
3189 _ACEOF
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191 ac_cv_prog_cc_g=yes
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_c_werror_flag=$ac_save_c_werror_flag
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3201 $as_echo "$ac_cv_prog_cc_g" >&6; }
3202 if test "$ac_test_CFLAGS" = set; then
3203 CFLAGS=$ac_save_CFLAGS
3204 elif test $ac_cv_prog_cc_g = yes; then
3205 if test "$GCC" = yes; then
3206 CFLAGS="-g -O2"
3207 else
3208 CFLAGS="-g"
3210 else
3211 if test "$GCC" = yes; then
3212 CFLAGS="-O2"
3213 else
3214 CFLAGS=
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3218 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3219 if ${ac_cv_prog_cc_c89+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 ac_cv_prog_cc_c89=no
3223 ac_save_CC=$CC
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3226 #include <stdarg.h>
3227 #include <stdio.h>
3228 struct stat;
3229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3230 struct buf { int x; };
3231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3232 static char *e (p, i)
3233 char **p;
3234 int i;
3236 return p[i];
3238 static char *f (char * (*g) (char **, int), char **p, ...)
3240 char *s;
3241 va_list v;
3242 va_start (v,p);
3243 s = g (p, va_arg (v,int));
3244 va_end (v);
3245 return s;
3248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3249 function prototypes and stuff, but not '\xHH' hex character constants.
3250 These don't provoke an error unfortunately, instead are silently treated
3251 as 'x'. The following induces an error, until -std is added to get
3252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3253 array size at least. It's necessary to write '\x00'==0 to get something
3254 that's true only with -std. */
3255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3258 inside strings and character constants. */
3259 #define FOO(x) 'x'
3260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3262 int test (int i, double x);
3263 struct s1 {int (*f) (int a);};
3264 struct s2 {int (*f) (double a);};
3265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3266 int argc;
3267 char **argv;
3269 main ()
3271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3273 return 0;
3275 _ACEOF
3276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3279 CC="$ac_save_CC $ac_arg"
3280 if ac_fn_c_try_compile "$LINENO"; then :
3281 ac_cv_prog_cc_c89=$ac_arg
3283 rm -f core conftest.err conftest.$ac_objext
3284 test "x$ac_cv_prog_cc_c89" != "xno" && break
3285 done
3286 rm -f conftest.$ac_ext
3287 CC=$ac_save_CC
3290 # AC_CACHE_VAL
3291 case "x$ac_cv_prog_cc_c89" in
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3294 $as_echo "none needed" >&6; } ;;
3295 xno)
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3297 $as_echo "unsupported" >&6; } ;;
3299 CC="$CC $ac_cv_prog_cc_c89"
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3301 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3302 esac
3303 if test "x$ac_cv_prog_cc_c89" != xno; then :
3307 ac_ext=c
3308 ac_cpp='$CPP $CPPFLAGS'
3309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317 if test "$GCC" = yes ; then
3319 # -Werror forces warnings to be errors.
3321 ac_lbl_cc_force_warning_errors=-Werror
3322 else
3323 V_INCLS="$V_INCLS -I/usr/local/include"
3324 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3326 case "$host_os" in
3328 darwin*)
3330 # This is assumed either to be GCC or clang, both
3331 # of which use -Werror to force warnings to be errors.
3333 ac_lbl_cc_force_warning_errors=-Werror
3336 hpux*)
3338 # HP C, which is what we presume we're using, doesn't
3339 # exit with a non-zero exit status if we hand it an
3340 # invalid -W flag, can't be forced to do so even with
3341 # +We, and doesn't handle GCC-style -W flags, so we
3342 # don't want to try using GCC-style -W flags.
3344 ac_lbl_cc_dont_try_gcc_dashW=yes
3347 irix*)
3349 # MIPS C, which is what we presume we're using, doesn't
3350 # necessarily exit with a non-zero exit status if we
3351 # hand it an invalid -W flag, can't be forced to do
3352 # so, and doesn't handle GCC-style -W flags, so we
3353 # don't want to try using GCC-style -W flags.
3355 ac_lbl_cc_dont_try_gcc_dashW=yes
3357 # It also, apparently, defaults to "char" being
3358 # unsigned, unlike most other C implementations;
3359 # I suppose we could say "signed char" whenever
3360 # we want to guarantee a signed "char", but let's
3361 # just force signed chars.
3363 # -xansi is normally the default, but the
3364 # configure script was setting it; perhaps -cckr
3365 # was the default in the Old Days. (Then again,
3366 # that would probably be for backwards compatibility
3367 # in the days when ANSI C was Shiny and New, i.e.
3368 # 1989 and the early '90's, so maybe we can just
3369 # drop support for those compilers.)
3371 # -g is equivalent to -g2, which turns off
3372 # optimization; we choose -g3, which generates
3373 # debugging information but doesn't turn off
3374 # optimization (even if the optimization would
3375 # cause inaccuracies in debugging).
3377 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3380 osf*)
3382 # Presumed to be DEC OSF/1, Digital UNIX, or
3383 # Tru64 UNIX.
3385 # The DEC C compiler, which is what we presume we're
3386 # using, doesn't exit with a non-zero exit status if we
3387 # hand it an invalid -W flag, can't be forced to do
3388 # so, and doesn't handle GCC-style -W flags, so we
3389 # don't want to try using GCC-style -W flags.
3391 ac_lbl_cc_dont_try_gcc_dashW=yes
3393 # -g is equivalent to -g2, which turns off
3394 # optimization; we choose -g3, which generates
3395 # debugging information but doesn't turn off
3396 # optimization (even if the optimization would
3397 # cause inaccuracies in debugging).
3399 V_CCOPT="$V_CCOPT -g3"
3402 solaris*)
3404 # Assumed to be Sun C, which requires -errwarn to force
3405 # warnings to be treated as errors.
3407 ac_lbl_cc_force_warning_errors=-errwarn
3410 ultrix*)
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3412 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3413 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419 #include <sys/types.h>
3421 main ()
3423 struct a { int b; };
3424 void c(const struct a *)
3426 return 0;
3428 _ACEOF
3429 if ac_fn_c_try_compile "$LINENO"; then :
3430 ac_cv_lbl_cc_const_proto=yes
3431 else
3432 ac_cv_lbl_cc_const_proto=no
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3438 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3439 if test $ac_cv_lbl_cc_const_proto = no ; then
3441 $as_echo "#define const /**/" >>confdefs.h
3445 esac
3446 V_CCOPT="$V_CCOPT -O"
3450 if test "$GCC" = yes ; then
3452 # On platforms where we build a shared library:
3454 # add options to generate position-independent code,
3455 # if necessary (it's the default in AIX and Darwin/OS X);
3457 # define option to set the soname of the shared library,
3458 # if the OS supports that;
3460 # add options to specify, at link time, a directory to
3461 # add to the run-time search path, if that's necessary.
3463 V_SHLIB_CMD="\$(CC)"
3464 V_SHLIB_OPT="-shared"
3465 case "$host_os" in
3467 aix*)
3470 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3472 # Platforms where the linker is the GNU linker
3473 # or accepts command-line arguments like
3474 # those the GNU linker accepts.
3476 # Some instruction sets require -fPIC on some
3477 # operating systems. Check for them. If you
3478 # have a combination that requires it, add it
3479 # here.
3481 PIC_OPT=-fpic
3482 case "$host_cpu" in
3484 sparc64*)
3485 case "$host_os" in
3487 freebsd*|openbsd*)
3488 PIC_OPT=-fPIC
3490 esac
3492 esac
3493 V_CCOPT="$V_CCOPT $PIC_OPT"
3494 V_SONAME_OPT="-Wl,-soname,"
3495 V_RPATH_OPT="-Wl,-rpath,"
3498 hpux*)
3499 V_CCOPT="$V_CCOPT -fpic"
3501 # XXX - this assumes GCC is using the HP linker,
3502 # rather than the GNU linker, and that the "+h"
3503 # option is used on all HP-UX platforms, both .sl
3504 # and .so.
3506 V_SONAME_OPT="-Wl,+h,"
3508 # By default, directories specifed with -L
3509 # are added to the run-time search path, so
3510 # we don't add them in pcap-config.
3514 solaris*)
3515 V_CCOPT="$V_CCOPT -fpic"
3517 # XXX - this assumes GCC is using the Sun linker,
3518 # rather than the GNU linker.
3520 V_SONAME_OPT="-Wl,-h,"
3521 V_RPATH_OPT="-Wl,-R,"
3523 esac
3524 else
3526 # Set the appropriate compiler flags and, on platforms
3527 # where we build a shared library:
3529 # add options to generate position-independent code,
3530 # if necessary (it's the default in Darwin/OS X);
3532 # if we generate ".so" shared libraries, define the
3533 # appropriate options for building the shared library;
3535 # add options to specify, at link time, a directory to
3536 # add to the run-time search path, if that's necessary.
3538 # Note: spaces after V_SONAME_OPT are significant; on
3539 # some platforms the soname is passed with a GCC-like
3540 # "-Wl,-soname,{soname}" option, with the soname part
3541 # of the option, while on other platforms the C compiler
3542 # driver takes it as a regular option with the soname
3543 # following the option. The same applies to V_RPATH_OPT.
3545 case "$host_os" in
3547 aix*)
3548 V_SHLIB_CMD="\$(CC)"
3549 V_SHLIB_OPT="-G -bnoentry -bexpall"
3552 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3554 # "cc" is GCC.
3556 V_CCOPT="$V_CCOPT -fpic"
3557 V_SHLIB_CMD="\$(CC)"
3558 V_SHLIB_OPT="-shared"
3559 V_SONAME_OPT="-Wl,-soname,"
3560 V_RPATH_OPT="-Wl,-rpath,"
3563 hpux*)
3564 V_CCOPT="$V_CCOPT +z"
3565 V_SHLIB_CMD="\$(LD)"
3566 V_SHLIB_OPT="-b"
3567 V_SONAME_OPT="+h "
3569 # By default, directories specifed with -L
3570 # are added to the run-time search path, so
3571 # we don't add them in pcap-config.
3575 osf*)
3577 # Presumed to be DEC OSF/1, Digital UNIX, or
3578 # Tru64 UNIX.
3580 V_SHLIB_CMD="\$(CC)"
3581 V_SHLIB_OPT="-shared"
3582 V_SONAME_OPT="-soname "
3583 V_RPATH_OPT="-rpath "
3586 solaris*)
3587 V_CCOPT="$V_CCOPT -Kpic"
3588 V_SHLIB_CMD="\$(CC)"
3589 V_SHLIB_OPT="-G"
3590 V_SONAME_OPT="-h "
3591 V_RPATH_OPT="-R"
3593 esac
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3597 $as_echo_n "checking for inline... " >&6; }
3598 save_CFLAGS="$CFLAGS"
3599 CFLAGS="$V_CCOPT"
3600 if ${ac_cv_lbl_inline+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3604 ac_cv_lbl_inline=""
3605 ac_lbl_cc_inline=no
3606 for ac_lbl_inline in inline __inline__ __inline
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610 #define inline $ac_lbl_inline
3611 static inline struct iltest *foo(void);
3612 struct iltest {
3613 int iltest1;
3614 int iltest2;
3617 static inline struct iltest *
3618 foo()
3620 static struct iltest xxx;
3622 return &xxx;
3625 main ()
3629 return 0;
3631 _ACEOF
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633 ac_lbl_cc_inline=yes
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 if test "$ac_lbl_cc_inline" = yes ; then
3637 break;
3639 done
3640 if test "$ac_lbl_cc_inline" = yes ; then
3641 ac_cv_lbl_inline=$ac_lbl_inline
3645 CFLAGS="$save_CFLAGS"
3646 if test ! -z "$ac_cv_lbl_inline" ; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3648 $as_echo "$ac_cv_lbl_inline" >&6; }
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3654 cat >>confdefs.h <<_ACEOF
3655 #define inline $ac_cv_lbl_inline
3656 _ACEOF
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3660 $as_echo_n "checking for __attribute__... " >&6; }
3661 if ${ac_cv___attribute__+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3669 #include <stdlib.h>
3671 static void foo(void) __attribute__ ((noreturn));
3673 static void
3674 foo(void)
3676 exit(1);
3680 main(int argc, char **argv)
3682 foo();
3685 _ACEOF
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687 ac_cv___attribute__=yes
3688 else
3689 ac_cv___attribute__=no
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 if test "$ac_cv___attribute__" = "yes"; then
3696 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3698 else
3700 # We can't use __attribute__, so we can't use __attribute__((unused)),
3701 # so we define _U_ to an empty string.
3703 V_DEFS="$V_DEFS -D_U_=\"\""
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3706 $as_echo "$ac_cv___attribute__" >&6; }
3708 if test "$ac_cv___attribute__" = "yes"; then
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
3711 $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
3712 if ${ac_cv___attribute___unused+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3716 save_CFLAGS="$CFLAGS"
3717 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3722 #include <stdlib.h>
3723 #include <stdio.h>
3726 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3728 printf("Hello, world!\n");
3729 return 0;
3732 _ACEOF
3733 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_cv___attribute___unused=yes
3735 else
3736 ac_cv___attribute___unused=no
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 CFLAGS="$save_CFLAGS"
3742 if test "$ac_cv___attribute___unused" = "yes"; then
3743 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3744 else
3745 V_DEFS="$V_DEFS -D_U_=\"\""
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
3748 $as_echo "$ac_cv___attribute___unused" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be used without warnings" >&5
3752 $as_echo_n "checking whether __attribute__((format)) can be used without warnings... " >&6; }
3753 if ${ac_cv___attribute___format+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3757 save_CFLAGS="$CFLAGS"
3758 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3763 #include <stdlib.h>
3765 extern int foo(const char *fmt, ...)
3766 __attribute__ ((format (printf, 1, 2)));
3769 main(int argc, char **argv)
3771 foo("%s", "test");
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv___attribute___format=yes
3777 else
3778 ac_cv___attribute___format=no
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 CFLAGS="$save_CFLAGS"
3784 if test "$ac_cv___attribute___format" = "yes"; then
3786 $as_echo "#define __ATTRIBUTE___FORMAT_OK 1" >>confdefs.h
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format" >&5
3790 $as_echo "$ac_cv___attribute___format" >&6; }
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3800 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3801 # On Suns, sometimes $CPP names a directory.
3802 if test -n "$CPP" && test -d "$CPP"; then
3803 CPP=
3805 if test -z "$CPP"; then
3806 if ${ac_cv_prog_CPP+:} false; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 # Double quotes because CPP needs to be expanded
3810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3812 ac_preproc_ok=false
3813 for ac_c_preproc_warn_flag in '' yes
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #ifdef __STDC__
3824 # include <limits.h>
3825 #else
3826 # include <assert.h>
3827 #endif
3828 Syntax error
3829 _ACEOF
3830 if ac_fn_c_try_cpp "$LINENO"; then :
3832 else
3833 # Broken: fails on valid input.
3834 continue
3836 rm -f conftest.err conftest.i conftest.$ac_ext
3838 # OK, works on sane cases. Now check whether nonexistent headers
3839 # can be detected and how.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3843 _ACEOF
3844 if ac_fn_c_try_cpp "$LINENO"; then :
3845 # Broken: success on invalid input.
3846 continue
3847 else
3848 # Passes both tests.
3849 ac_preproc_ok=:
3850 break
3852 rm -f conftest.err conftest.i conftest.$ac_ext
3854 done
3855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856 rm -f conftest.i conftest.err conftest.$ac_ext
3857 if $ac_preproc_ok; then :
3858 break
3861 done
3862 ac_cv_prog_CPP=$CPP
3865 CPP=$ac_cv_prog_CPP
3866 else
3867 ac_cv_prog_CPP=$CPP
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3870 $as_echo "$CPP" >&6; }
3871 ac_preproc_ok=false
3872 for ac_c_preproc_warn_flag in '' yes
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #ifdef __STDC__
3883 # include <limits.h>
3884 #else
3885 # include <assert.h>
3886 #endif
3887 Syntax error
3888 _ACEOF
3889 if ac_fn_c_try_cpp "$LINENO"; then :
3891 else
3892 # Broken: fails on valid input.
3893 continue
3895 rm -f conftest.err conftest.i conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #include <ac_nonexistent.h>
3902 _ACEOF
3903 if ac_fn_c_try_cpp "$LINENO"; then :
3904 # Broken: success on invalid input.
3905 continue
3906 else
3907 # Passes both tests.
3908 ac_preproc_ok=:
3909 break
3911 rm -f conftest.err conftest.i conftest.$ac_ext
3913 done
3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915 rm -f conftest.i conftest.err conftest.$ac_ext
3916 if $ac_preproc_ok; then :
3918 else
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3922 See \`config.log' for more details" "$LINENO" 5; }
3925 ac_ext=c
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3933 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3934 if ${ac_cv_path_GREP+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 if test -z "$GREP"; then
3938 ac_path_GREP_found=false
3939 # Loop through the user's path and test for each of PROGNAME-LIST
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_prog in grep ggrep; do
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948 as_fn_executable_p "$ac_path_GREP" || continue
3949 # Check for GNU ac_path_GREP and select it if it is found.
3950 # Check for GNU $ac_path_GREP
3951 case `"$ac_path_GREP" --version 2>&1` in
3952 *GNU*)
3953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3955 ac_count=0
3956 $as_echo_n 0123456789 >"conftest.in"
3957 while :
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
3962 $as_echo 'GREP' >> "conftest.nl"
3963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965 as_fn_arith $ac_count + 1 && ac_count=$as_val
3966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_GREP="$ac_path_GREP"
3969 ac_path_GREP_max=$ac_count
3971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3973 done
3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3975 esac
3977 $ac_path_GREP_found && break 3
3978 done
3979 done
3980 done
3981 IFS=$as_save_IFS
3982 if test -z "$ac_cv_path_GREP"; then
3983 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3985 else
3986 ac_cv_path_GREP=$GREP
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3991 $as_echo "$ac_cv_path_GREP" >&6; }
3992 GREP="$ac_cv_path_GREP"
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3996 $as_echo_n "checking for egrep... " >&6; }
3997 if ${ac_cv_path_EGREP+:} false; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4001 then ac_cv_path_EGREP="$GREP -E"
4002 else
4003 if test -z "$EGREP"; then
4004 ac_path_EGREP_found=false
4005 # Loop through the user's path and test for each of PROGNAME-LIST
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in egrep; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4014 as_fn_executable_p "$ac_path_EGREP" || continue
4015 # Check for GNU ac_path_EGREP and select it if it is found.
4016 # Check for GNU $ac_path_EGREP
4017 case `"$ac_path_EGREP" --version 2>&1` in
4018 *GNU*)
4019 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4021 ac_count=0
4022 $as_echo_n 0123456789 >"conftest.in"
4023 while :
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
4028 $as_echo 'EGREP' >> "conftest.nl"
4029 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031 as_fn_arith $ac_count + 1 && ac_count=$as_val
4032 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_EGREP="$ac_path_EGREP"
4035 ac_path_EGREP_max=$ac_count
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4039 done
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 esac
4043 $ac_path_EGREP_found && break 3
4044 done
4045 done
4046 done
4047 IFS=$as_save_IFS
4048 if test -z "$ac_cv_path_EGREP"; then
4049 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4051 else
4052 ac_cv_path_EGREP=$EGREP
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4058 $as_echo "$ac_cv_path_EGREP" >&6; }
4059 EGREP="$ac_cv_path_EGREP"
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4063 $as_echo_n "checking for ANSI C header files... " >&6; }
4064 if ${ac_cv_header_stdc+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069 #include <stdlib.h>
4070 #include <stdarg.h>
4071 #include <string.h>
4072 #include <float.h>
4075 main ()
4079 return 0;
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_header_stdc=yes
4084 else
4085 ac_cv_header_stdc=no
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 if test $ac_cv_header_stdc = yes; then
4090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093 #include <string.h>
4095 _ACEOF
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "memchr" >/dev/null 2>&1; then :
4099 else
4100 ac_cv_header_stdc=no
4102 rm -f conftest*
4106 if test $ac_cv_header_stdc = yes; then
4107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <stdlib.h>
4112 _ACEOF
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "free" >/dev/null 2>&1; then :
4116 else
4117 ac_cv_header_stdc=no
4119 rm -f conftest*
4123 if test $ac_cv_header_stdc = yes; then
4124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4125 if test "$cross_compiling" = yes; then :
4127 else
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #include <ctype.h>
4131 #include <stdlib.h>
4132 #if ((' ' & 0x0FF) == 0x020)
4133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4135 #else
4136 # define ISLOWER(c) \
4137 (('a' <= (c) && (c) <= 'i') \
4138 || ('j' <= (c) && (c) <= 'r') \
4139 || ('s' <= (c) && (c) <= 'z'))
4140 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4141 #endif
4143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4145 main ()
4147 int i;
4148 for (i = 0; i < 256; i++)
4149 if (XOR (islower (i), ISLOWER (i))
4150 || toupper (i) != TOUPPER (i))
4151 return 2;
4152 return 0;
4154 _ACEOF
4155 if ac_fn_c_try_run "$LINENO"; then :
4157 else
4158 ac_cv_header_stdc=no
4160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4161 conftest.$ac_objext conftest.beam conftest.$ac_ext
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4167 $as_echo "$ac_cv_header_stdc" >&6; }
4168 if test $ac_cv_header_stdc = yes; then
4170 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4175 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4176 inttypes.h stdint.h unistd.h
4177 do :
4178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4179 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4181 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4182 cat >>confdefs.h <<_ACEOF
4183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4184 _ACEOF
4188 done
4191 for ac_header in sys/bitypes.h
4192 do :
4193 ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
4194 if test "x$ac_cv_header_sys_bitypes_h" = xyes; then :
4195 cat >>confdefs.h <<_ACEOF
4196 #define HAVE_SYS_BITYPES_H 1
4197 _ACEOF
4201 done
4204 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
4205 #ifdef HAVE_SYS_BITYPES_H
4206 #include <sys/bitypes.h>
4207 #endif
4209 if test "x$ac_cv_type_int8_t" = xyes; then :
4211 else
4213 $as_echo "#define int8_t signed char" >>confdefs.h
4217 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
4218 #ifdef HAVE_SYS_BITYPES_H
4219 #include <sys/bitypes.h>
4220 #endif
4222 if test "x$ac_cv_type_u_int8_t" = xyes; then :
4224 else
4226 $as_echo "#define u_int8_t unsigned char" >>confdefs.h
4230 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4231 if test "x$ac_cv_type_int16_t" = xyes; then :
4233 else
4235 $as_echo "#define int16_t short" >>confdefs.h
4237 $ac_includes_default
4238 #ifdef HAVE_SYS_BITYPES_H
4239 #include <sys/bitypes.h>
4240 #endif
4243 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
4244 #ifdef HAVE_SYS_BITYPES_H
4245 #include <sys/bitypes.h>
4246 #endif
4248 if test "x$ac_cv_type_u_int16_t" = xyes; then :
4250 else
4252 $as_echo "#define u_int16_t unsigned short" >>confdefs.h
4256 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
4257 #ifdef HAVE_SYS_BITYPES_H
4258 #include <sys/bitypes.h>
4259 #endif
4261 if test "x$ac_cv_type_int32_t" = xyes; then :
4263 else
4265 $as_echo "#define int32_t int" >>confdefs.h
4269 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
4270 #ifdef HAVE_SYS_BITYPES_H
4271 #include <sys/bitypes.h>
4272 #endif
4274 if test "x$ac_cv_type_u_int32_t" = xyes; then :
4276 else
4278 $as_echo "#define u_int32_t unsigned int" >>confdefs.h
4282 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
4283 #ifdef HAVE_SYS_BITYPES_H
4284 #include <sys/bitypes.h>
4285 #endif
4287 if test "x$ac_cv_type_int64_t" = xyes; then :
4289 else
4291 $as_echo "#define int64_t long long" >>confdefs.h
4295 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
4296 #ifdef HAVE_SYS_BITYPES_H
4297 #include <sys/bitypes.h>
4298 #endif
4300 if test "x$ac_cv_type_u_int64_t" = xyes; then :
4302 else
4304 $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
4310 # Try to arrange for large file support.
4312 # Check whether --enable-largefile was given.
4313 if test "${enable_largefile+set}" = set; then :
4314 enableval=$enable_largefile;
4317 if test "$enable_largefile" != no; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4320 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4321 if ${ac_cv_sys_largefile_CC+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 ac_cv_sys_largefile_CC=no
4325 if test "$GCC" != yes; then
4326 ac_save_CC=$CC
4327 while :; do
4328 # IRIX 6.2 and later do not support large files by default,
4329 # so use the C compiler's -n32 option if that helps.
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332 #include <sys/types.h>
4333 /* Check that off_t can represent 2**63 - 1 correctly.
4334 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4335 since some C++ compilers masquerading as C compilers
4336 incorrectly reject 9223372036854775807. */
4337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4338 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4339 && LARGE_OFF_T % 2147483647 == 1)
4340 ? 1 : -1];
4342 main ()
4346 return 0;
4348 _ACEOF
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350 break
4352 rm -f core conftest.err conftest.$ac_objext
4353 CC="$CC -n32"
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355 ac_cv_sys_largefile_CC=' -n32'; break
4357 rm -f core conftest.err conftest.$ac_objext
4358 break
4359 done
4360 CC=$ac_save_CC
4361 rm -f conftest.$ac_ext
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4365 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4366 if test "$ac_cv_sys_largefile_CC" != no; then
4367 CC=$CC$ac_cv_sys_largefile_CC
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4371 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4372 if ${ac_cv_sys_file_offset_bits+:} false; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 while :; do
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 #include <sys/types.h>
4379 /* Check that off_t can represent 2**63 - 1 correctly.
4380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4381 since some C++ compilers masquerading as C compilers
4382 incorrectly reject 9223372036854775807. */
4383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4385 && LARGE_OFF_T % 2147483647 == 1)
4386 ? 1 : -1];
4388 main ()
4392 return 0;
4394 _ACEOF
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396 ac_cv_sys_file_offset_bits=no; break
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #define _FILE_OFFSET_BITS 64
4402 #include <sys/types.h>
4403 /* Check that off_t can represent 2**63 - 1 correctly.
4404 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4405 since some C++ compilers masquerading as C compilers
4406 incorrectly reject 9223372036854775807. */
4407 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4408 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4409 && LARGE_OFF_T % 2147483647 == 1)
4410 ? 1 : -1];
4412 main ()
4416 return 0;
4418 _ACEOF
4419 if ac_fn_c_try_compile "$LINENO"; then :
4420 ac_cv_sys_file_offset_bits=64; break
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 ac_cv_sys_file_offset_bits=unknown
4424 break
4425 done
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4428 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4429 case $ac_cv_sys_file_offset_bits in #(
4430 no | unknown) ;;
4432 cat >>confdefs.h <<_ACEOF
4433 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4434 _ACEOF
4436 esac
4437 rm -rf conftest*
4438 if test $ac_cv_sys_file_offset_bits = unknown; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4440 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4441 if ${ac_cv_sys_large_files+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 while :; do
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #include <sys/types.h>
4448 /* Check that off_t can represent 2**63 - 1 correctly.
4449 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4450 since some C++ compilers masquerading as C compilers
4451 incorrectly reject 9223372036854775807. */
4452 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4453 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4454 && LARGE_OFF_T % 2147483647 == 1)
4455 ? 1 : -1];
4457 main ()
4461 return 0;
4463 _ACEOF
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465 ac_cv_sys_large_files=no; break
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #define _LARGE_FILES 1
4471 #include <sys/types.h>
4472 /* Check that off_t can represent 2**63 - 1 correctly.
4473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4474 since some C++ compilers masquerading as C compilers
4475 incorrectly reject 9223372036854775807. */
4476 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4478 && LARGE_OFF_T % 2147483647 == 1)
4479 ? 1 : -1];
4481 main ()
4485 return 0;
4487 _ACEOF
4488 if ac_fn_c_try_compile "$LINENO"; then :
4489 ac_cv_sys_large_files=1; break
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 ac_cv_sys_large_files=unknown
4493 break
4494 done
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4497 $as_echo "$ac_cv_sys_large_files" >&6; }
4498 case $ac_cv_sys_large_files in #(
4499 no | unknown) ;;
4501 cat >>confdefs.h <<_ACEOF
4502 #define _LARGE_FILES $ac_cv_sys_large_files
4503 _ACEOF
4505 esac
4506 rm -rf conftest*
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4513 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4514 if ${ac_cv_sys_largefile_source+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 while :; do
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #include <sys/types.h> /* for off_t */
4521 #include <stdio.h>
4523 main ()
4525 int (*fp) (FILE *, off_t, int) = fseeko;
4526 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4528 return 0;
4530 _ACEOF
4531 if ac_fn_c_try_link "$LINENO"; then :
4532 ac_cv_sys_largefile_source=no; break
4534 rm -f core conftest.err conftest.$ac_objext \
4535 conftest$ac_exeext conftest.$ac_ext
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #define _LARGEFILE_SOURCE 1
4539 #include <sys/types.h> /* for off_t */
4540 #include <stdio.h>
4542 main ()
4544 int (*fp) (FILE *, off_t, int) = fseeko;
4545 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4547 return 0;
4549 _ACEOF
4550 if ac_fn_c_try_link "$LINENO"; then :
4551 ac_cv_sys_largefile_source=1; break
4553 rm -f core conftest.err conftest.$ac_objext \
4554 conftest$ac_exeext conftest.$ac_ext
4555 ac_cv_sys_largefile_source=unknown
4556 break
4557 done
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4560 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4561 case $ac_cv_sys_largefile_source in #(
4562 no | unknown) ;;
4564 cat >>confdefs.h <<_ACEOF
4565 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4566 _ACEOF
4568 esac
4569 rm -rf conftest*
4571 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4572 # in glibc 2.1.3, but that breaks too many other things.
4573 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4574 if test $ac_cv_sys_largefile_source != unknown; then
4576 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4581 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
4582 do :
4583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4585 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4586 cat >>confdefs.h <<_ACEOF
4587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4588 _ACEOF
4592 done
4594 for ac_header in linux/types.h
4595 do :
4596 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
4597 if test "x$ac_cv_header_linux_types_h" = xyes; then :
4598 cat >>confdefs.h <<_ACEOF
4599 #define HAVE_LINUX_TYPES_H 1
4600 _ACEOF
4604 done
4606 for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
4607 do :
4608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4609 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4610 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4611 cat >>confdefs.h <<_ACEOF
4612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 _ACEOF
4617 done
4619 for ac_header in net/pfvar.h
4620 do :
4621 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4622 #include <sys/socket.h>
4623 #include <net/if.h>
4625 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
4626 cat >>confdefs.h <<_ACEOF
4627 #define HAVE_NET_PFVAR_H 1
4628 _ACEOF
4632 done
4634 if test "$ac_cv_header_net_pfvar_h" = yes; then
4636 # Check for various PF actions.
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4639 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 #include <sys/types.h>
4643 #include <sys/socket.h>
4644 #include <net/if.h>
4645 #include <net/pfvar.h>
4647 main ()
4649 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4651 return 0;
4653 _ACEOF
4654 if ac_fn_c_try_compile "$LINENO"; then :
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4657 $as_echo "yes" >&6; }
4659 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 for ac_header in netinet/if_ether.h
4669 do :
4670 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4671 #include <sys/socket.h>
4673 if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
4674 cat >>confdefs.h <<_ACEOF
4675 #define HAVE_NETINET_IF_ETHER_H 1
4676 _ACEOF
4680 done
4682 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4684 # The simple test didn't work.
4685 # Do we need to include <net/if.h> first?
4686 # Unset ac_cv_header_netinet_if_ether_h so we don't
4687 # treat the previous failure as a cached value and
4688 # suppress the next test.
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4691 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4692 unset ac_cv_header_netinet_if_ether_h
4693 for ac_header in netinet/if_ether.h
4694 do :
4695 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4696 #include <sys/socket.h>
4697 #include <netinet/in.h>
4698 struct mbuf;
4699 struct rtentry;
4700 #include <net/if.h>
4702 if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
4703 cat >>confdefs.h <<_ACEOF
4704 #define HAVE_NETINET_IF_ETHER_H 1
4705 _ACEOF
4709 done
4713 if test "$GCC" = yes ; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4715 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4716 if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4722 * This generates a "duplicate case value" when fixincludes
4723 * has not be run.
4725 # include <sys/types.h>
4726 # include <sys/time.h>
4727 # include <sys/ioctl.h>
4728 # ifdef HAVE_SYS_IOCCOM_H
4729 # include <sys/ioccom.h>
4730 # endif
4732 main ()
4734 switch (0) {
4735 case _IO('A', 1):;
4736 case _IO('B', 1):;
4739 return 0;
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_lbl_gcc_fixincludes=yes
4744 else
4745 ac_cv_lbl_gcc_fixincludes=no
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4751 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4752 if test $ac_cv_lbl_gcc_fixincludes = no ; then
4753 # Don't cache failure
4754 unset ac_cv_lbl_gcc_fixincludes
4755 as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
4759 for ac_func in strerror strlcpy
4760 do :
4761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4762 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4763 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4764 cat >>confdefs.h <<_ACEOF
4765 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4766 _ACEOF
4769 done
4772 needsnprintf=no
4773 for ac_func in vsnprintf snprintf
4774 do :
4775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4776 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4777 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4778 cat >>confdefs.h <<_ACEOF
4779 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4780 _ACEOF
4782 else
4783 needsnprintf=yes
4785 done
4787 if test $needsnprintf = yes; then
4788 case " $LIBOBJS " in
4789 *" snprintf.$ac_objext "* ) ;;
4790 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
4792 esac
4797 # Do this before checking for ether_hostton(), as it's a
4798 # "gethostbyname() -ish function".
4801 # Most operating systems have gethostbyname() in the default searched
4802 # libraries (i.e. libc):
4803 # Some OSes (eg. Solaris) place it in libnsl
4804 # Some strange OSes (SINIX) have it in libsocket:
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4806 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4807 if ${ac_cv_search_gethostbyname+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 ac_func_search_save_LIBS=$LIBS
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4814 /* Override any GCC internal prototype to avoid an error.
4815 Use char because int might match the return type of a GCC
4816 builtin and then its argument prototype would still apply. */
4817 #ifdef __cplusplus
4818 extern "C"
4819 #endif
4820 char gethostbyname ();
4822 main ()
4824 return gethostbyname ();
4826 return 0;
4828 _ACEOF
4829 for ac_lib in '' nsl socket resolv; do
4830 if test -z "$ac_lib"; then
4831 ac_res="none required"
4832 else
4833 ac_res=-l$ac_lib
4834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4836 if ac_fn_c_try_link "$LINENO"; then :
4837 ac_cv_search_gethostbyname=$ac_res
4839 rm -f core conftest.err conftest.$ac_objext \
4840 conftest$ac_exeext
4841 if ${ac_cv_search_gethostbyname+:} false; then :
4842 break
4844 done
4845 if ${ac_cv_search_gethostbyname+:} false; then :
4847 else
4848 ac_cv_search_gethostbyname=no
4850 rm conftest.$ac_ext
4851 LIBS=$ac_func_search_save_LIBS
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4854 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4855 ac_res=$ac_cv_search_gethostbyname
4856 if test "$ac_res" != no; then :
4857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4861 # Unfortunately libsocket sometimes depends on libnsl and
4862 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4863 if test "$ac_cv_search_gethostbyname" = "no"
4864 then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
4866 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
4867 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 ac_check_lib_save_LIBS=$LIBS
4871 LIBS="-lsocket -lnsl $LIBS"
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4875 /* Override any GCC internal prototype to avoid an error.
4876 Use char because int might match the return type of a GCC
4877 builtin and then its argument prototype would still apply. */
4878 #ifdef __cplusplus
4879 extern "C"
4880 #endif
4881 char gethostbyname ();
4883 main ()
4885 return gethostbyname ();
4887 return 0;
4889 _ACEOF
4890 if ac_fn_c_try_link "$LINENO"; then :
4891 ac_cv_lib_socket_gethostbyname=yes
4892 else
4893 ac_cv_lib_socket_gethostbyname=no
4895 rm -f core conftest.err conftest.$ac_objext \
4896 conftest$ac_exeext conftest.$ac_ext
4897 LIBS=$ac_check_lib_save_LIBS
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
4900 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4901 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
4902 LIBS="-lsocket -lnsl $LIBS"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4907 $as_echo_n "checking for library containing socket... " >&6; }
4908 if ${ac_cv_search_socket+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 ac_func_search_save_LIBS=$LIBS
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4915 /* Override any GCC internal prototype to avoid an error.
4916 Use char because int might match the return type of a GCC
4917 builtin and then its argument prototype would still apply. */
4918 #ifdef __cplusplus
4919 extern "C"
4920 #endif
4921 char socket ();
4923 main ()
4925 return socket ();
4927 return 0;
4929 _ACEOF
4930 for ac_lib in '' socket; do
4931 if test -z "$ac_lib"; then
4932 ac_res="none required"
4933 else
4934 ac_res=-l$ac_lib
4935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4937 if ac_fn_c_try_link "$LINENO"; then :
4938 ac_cv_search_socket=$ac_res
4940 rm -f core conftest.err conftest.$ac_objext \
4941 conftest$ac_exeext
4942 if ${ac_cv_search_socket+:} false; then :
4943 break
4945 done
4946 if ${ac_cv_search_socket+:} false; then :
4948 else
4949 ac_cv_search_socket=no
4951 rm conftest.$ac_ext
4952 LIBS=$ac_func_search_save_LIBS
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4955 $as_echo "$ac_cv_search_socket" >&6; }
4956 ac_res=$ac_cv_search_socket
4957 if test "$ac_res" != no; then :
4958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4962 $as_echo_n "checking for socket in -lsocket... " >&6; }
4963 if ${ac_cv_lib_socket_socket+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 ac_check_lib_save_LIBS=$LIBS
4967 LIBS="-lsocket -lnsl $LIBS"
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4971 /* Override any GCC internal prototype to avoid an error.
4972 Use char because int might match the return type of a GCC
4973 builtin and then its argument prototype would still apply. */
4974 #ifdef __cplusplus
4975 extern "C"
4976 #endif
4977 char socket ();
4979 main ()
4981 return socket ();
4983 return 0;
4985 _ACEOF
4986 if ac_fn_c_try_link "$LINENO"; then :
4987 ac_cv_lib_socket_socket=yes
4988 else
4989 ac_cv_lib_socket_socket=no
4991 rm -f core conftest.err conftest.$ac_objext \
4992 conftest$ac_exeext conftest.$ac_ext
4993 LIBS=$ac_check_lib_save_LIBS
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4996 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4997 if test "x$ac_cv_lib_socket_socket" = xyes; then :
4998 LIBS="-lsocket -lnsl $LIBS"
5003 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5005 $as_echo_n "checking for library containing putmsg... " >&6; }
5006 if ${ac_cv_search_putmsg+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 ac_func_search_save_LIBS=$LIBS
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5013 /* Override any GCC internal prototype to avoid an error.
5014 Use char because int might match the return type of a GCC
5015 builtin and then its argument prototype would still apply. */
5016 #ifdef __cplusplus
5017 extern "C"
5018 #endif
5019 char putmsg ();
5021 main ()
5023 return putmsg ();
5025 return 0;
5027 _ACEOF
5028 for ac_lib in '' str; do
5029 if test -z "$ac_lib"; then
5030 ac_res="none required"
5031 else
5032 ac_res=-l$ac_lib
5033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5035 if ac_fn_c_try_link "$LINENO"; then :
5036 ac_cv_search_putmsg=$ac_res
5038 rm -f core conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext
5040 if ${ac_cv_search_putmsg+:} false; then :
5041 break
5043 done
5044 if ${ac_cv_search_putmsg+:} false; then :
5046 else
5047 ac_cv_search_putmsg=no
5049 rm conftest.$ac_ext
5050 LIBS=$ac_func_search_save_LIBS
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5053 $as_echo "$ac_cv_search_putmsg" >&6; }
5054 ac_res=$ac_cv_search_putmsg
5055 if test "$ac_res" != no; then :
5056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5063 # You are in a twisty little maze of UN*Xes, all different.
5064 # Some might not have ether_hostton().
5065 # Some might have it, but not declare it in any header file.
5066 # Some might have it, but declare it in <netinet/if_ether.h>.
5067 # Some might have it, but declare it in <netinet/ether.h>
5068 # (And some might have it but document it as something declared in
5069 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5071 # Before you is a C compiler.
5073 for ac_func in ether_hostton
5074 do :
5075 ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5076 if test "x$ac_cv_func_ether_hostton" = xyes; then :
5077 cat >>confdefs.h <<_ACEOF
5078 #define HAVE_ETHER_HOSTTON 1
5079 _ACEOF
5082 done
5084 if test "$ac_cv_func_ether_hostton" = yes; then
5086 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5088 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5090 # Yes. Does it declare ether_hostton()?
5092 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5093 #include <sys/types.h>
5094 #include <sys/socket.h>
5095 #include <netinet/in.h>
5096 #include <arpa/inet.h>
5097 struct mbuf;
5098 struct rtentry;
5099 #include <net/if.h>
5100 #include <netinet/if_ether.h>
5103 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5106 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5113 # Did that succeed?
5115 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5117 # No, how about <netinet/ether.h>, as on Linux?
5119 for ac_header in netinet/ether.h
5120 do :
5121 ac_fn_c_check_header_mongrel "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
5122 if test "x$ac_cv_header_netinet_ether_h" = xyes; then :
5123 cat >>confdefs.h <<_ACEOF
5124 #define HAVE_NETINET_ETHER_H 1
5125 _ACEOF
5129 done
5131 if test "$ac_cv_header_netinet_ether_h" = yes; then
5133 # We have it - does it declare ether_hostton()?
5134 # Unset ac_cv_have_decl_ether_hostton so we don't
5135 # treat the previous failure as a cached value and
5136 # suppress the next test.
5138 unset ac_cv_have_decl_ether_hostton
5139 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5140 #include <netinet/ether.h>
5143 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5146 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5154 # Is ether_hostton() declared?
5156 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5158 # No, we'll have to declare it ourselves.
5159 # Do we have "struct ether_addr"?
5161 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5162 #include <sys/types.h>
5163 #include <sys/socket.h>
5164 #include <netinet/in.h>
5165 #include <arpa/inet.h>
5166 struct mbuf;
5167 struct rtentry;
5168 #include <net/if.h>
5169 #include <netinet/if_ether.h>
5172 if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
5174 cat >>confdefs.h <<_ACEOF
5175 #define HAVE_STRUCT_ETHER_ADDR 1
5176 _ACEOF
5182 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h
5184 else
5186 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5192 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5193 # Check whether --enable-protochain was given.
5194 if test "${enable_protochain+set}" = set; then :
5195 enableval=$enable_protochain;
5198 case "x$enable_protochain" in
5199 xyes) enable_protochain=enabled ;;
5200 xno) enable_protochain=disabled ;;
5201 x) enable_protochain=enabled ;;
5202 esac
5204 if test "$enable_protochain" = "disabled"; then
5206 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5210 $as_echo "${enable_protochain}" >&6; }
5213 # SITA support is mutually exclusive with native capture support;
5214 # "--with-sita" selects SITA support.
5217 # Check whether --with-sita was given.
5218 if test "${with_sita+set}" = set; then :
5219 withval=$with_sita;
5220 if test ! "x$withval" = "xno" ; then
5222 $as_echo "#define SITA 1" >>confdefs.h
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5225 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5226 V_PCAP=sita
5227 V_FINDALLDEVS=sita
5230 else
5232 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5233 as_fn_error $? "pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5
5236 # Check whether --with-pcap was given.
5237 if test "${with_pcap+set}" = set; then :
5238 withval=$with_pcap;
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5242 $as_echo_n "checking packet capture type... " >&6; }
5243 if test ! -z "$with_pcap" ; then
5244 V_PCAP="$withval"
5245 elif test -r /dev/bpf -o -h /dev/bpf ; then
5247 # Cloning BPF device.
5249 V_PCAP=bpf
5251 $as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h
5253 elif test -r /dev/bpf0 ; then
5254 V_PCAP=bpf
5255 elif test -r /usr/include/net/pfilt.h ; then
5256 V_PCAP=pf
5257 elif test -r /dev/enet ; then
5258 V_PCAP=enet
5259 elif test -r /dev/nit ; then
5260 V_PCAP=snit
5261 elif test -r /usr/include/sys/net/nit.h ; then
5262 V_PCAP=nit
5263 elif test -r /usr/include/linux/socket.h ; then
5264 V_PCAP=linux
5265 elif test -r /usr/include/net/raw.h ; then
5266 V_PCAP=snoop
5267 elif test -r /usr/include/odmi.h ; then
5269 # On AIX, the BPF devices might not yet be present - they're
5270 # created the first time libpcap runs after booting.
5271 # We check for odmi.h instead.
5273 V_PCAP=bpf
5274 elif test -c /dev/bpf0 ; then # check again in case not readable
5275 V_PCAP=bpf
5276 elif test -r /usr/include/sys/dlpi.h ; then
5277 V_PCAP=dlpi
5278 elif test -c /dev/enet ; then # check again in case not readable
5279 V_PCAP=enet
5280 elif test -c /dev/nit ; then # check again in case not readable
5281 V_PCAP=snit
5282 else
5283 V_PCAP=null
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5286 $as_echo "$V_PCAP" >&6; }
5289 # Do capture-mechanism-dependent tests.
5291 case "$V_PCAP" in
5292 dlpi)
5294 # Needed for common functions used by pcap-[dlpi,libdlpi].c
5296 SSRC="dlpisubs.c"
5299 # Checks for some header files.
5301 for ac_header in sys/bufmod.h sys/dlpi_ext.h
5302 do :
5303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5304 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5306 cat >>confdefs.h <<_ACEOF
5307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5308 _ACEOF
5312 done
5316 # Checks to see if Solaris has the public libdlpi(3LIB) library.
5317 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5318 # public libdlpi(3LIB) version. Before libdlpi was made public, a
5319 # private version also existed, which did not have the same APIs.
5320 # Due to a gcc bug, the default search path for 32-bit libraries does
5321 # not include /lib, we add it explicitly here.
5322 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5323 # Also, due to the bug above applications that link to libpcap with
5324 # libdlpi will have to add "-L/lib" option to "configure".
5326 saved_ldflags=$LDFLAGS
5327 LDFLAGS="$LIBS -L/lib"
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5329 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5330 if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 ac_check_lib_save_LIBS=$LIBS
5334 LIBS="-ldlpi $LIBS"
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5338 /* Override any GCC internal prototype to avoid an error.
5339 Use char because int might match the return type of a GCC
5340 builtin and then its argument prototype would still apply. */
5341 #ifdef __cplusplus
5342 extern "C"
5343 #endif
5344 char dlpi_walk ();
5346 main ()
5348 return dlpi_walk ();
5350 return 0;
5352 _ACEOF
5353 if ac_fn_c_try_link "$LINENO"; then :
5354 ac_cv_lib_dlpi_dlpi_walk=yes
5355 else
5356 ac_cv_lib_dlpi_dlpi_walk=no
5358 rm -f core conftest.err conftest.$ac_objext \
5359 conftest$ac_exeext conftest.$ac_ext
5360 LIBS=$ac_check_lib_save_LIBS
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5363 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5364 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
5366 LIBS="-ldlpi $LIBS"
5367 V_PCAP=libdlpi
5369 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5372 else
5373 V_PCAP=dlpi
5376 LDFLAGS=$saved_ldflags
5379 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5380 # versions of DLPI.
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5383 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5384 if ${ac_cv_sys_dlpi_usable+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5390 #include <sys/types.h>
5391 #include <sys/time.h>
5392 #include <sys/dlpi.h>
5395 main ()
5397 int i = DL_PROMISC_PHYS;
5399 return 0;
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_cv_sys_dlpi_usable=yes
5404 else
5405 ac_cv_sys_dlpi_usable=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5411 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5412 if test $ac_cv_sys_dlpi_usable = no ; then
5413 as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5417 # Check whether we have a /dev/dlpi device or have multiple devices.
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
5420 $as_echo_n "checking for /dev/dlpi device... " >&6; }
5421 if test -c /dev/dlpi ; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5423 $as_echo "yes" >&6; }
5425 $as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 dir="/dev/dlpi"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
5432 $as_echo_n "checking for $dir directory... " >&6; }
5433 if test -d $dir ; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5435 $as_echo "yes" >&6; }
5437 cat >>confdefs.h <<_ACEOF
5438 #define PCAP_DEV_PREFIX "$dir"
5439 _ACEOF
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5448 # This check is for Solaris with DLPI support for passive modes.
5449 # See dlpi(7P) for more details.
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5452 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5453 if ${ac_cv_lbl_has_dl_passive_req_t+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5459 # include <sys/types.h>
5460 # include <sys/dlpi.h>
5462 main ()
5464 u_int i = sizeof(dl_passive_req_t)
5466 return 0;
5468 _ACEOF
5469 if ac_fn_c_try_compile "$LINENO"; then :
5470 ac_cv_lbl_has_dl_passive_req_t=yes
5471 else
5472 ac_cv_lbl_has_dl_passive_req_t=no
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5478 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5479 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5481 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5486 linux)
5488 # Do we have the wireless extensions?
5490 for ac_header in linux/wireless.h
5491 do :
5492 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5493 #include <sys/socket.h>
5494 #include <linux/if.h>
5495 #include <linux/types.h>
5498 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
5499 cat >>confdefs.h <<_ACEOF
5500 #define HAVE_LINUX_WIRELESS_H 1
5501 _ACEOF
5505 done
5509 # Do we have libnl?
5512 # Check whether --with-libnl was given.
5513 if test "${with_libnl+set}" = set; then :
5514 withval=$with_libnl; with_libnl=$withval
5518 if test x$with_libnl != xno ; then
5519 have_any_nl="no"
5521 incdir=-I/usr/include/libnl3
5522 libnldir=
5523 if test x$withval != x ; then
5524 libnldir=-L${withval}/lib/.libs
5525 incdir=-I${withval}/include
5529 # Try libnl 3.x first.
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
5532 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
5533 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 ac_check_lib_save_LIBS=$LIBS
5537 LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5541 /* Override any GCC internal prototype to avoid an error.
5542 Use char because int might match the return type of a GCC
5543 builtin and then its argument prototype would still apply. */
5544 #ifdef __cplusplus
5545 extern "C"
5546 #endif
5547 char nl_socket_alloc ();
5549 main ()
5551 return nl_socket_alloc ();
5553 return 0;
5555 _ACEOF
5556 if ac_fn_c_try_link "$LINENO"; then :
5557 ac_cv_lib_nl_3_nl_socket_alloc=yes
5558 else
5559 ac_cv_lib_nl_3_nl_socket_alloc=no
5561 rm -f core conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
5566 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
5567 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
5570 # Yes, we have libnl 3.x.
5572 LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5574 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5577 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
5580 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5583 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5585 V_INCLS="$V_INCLS ${incdir}"
5586 have_any_nl="yes"
5591 if test x$have_any_nl = xno ; then
5593 # Try libnl 2.x
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5596 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5597 if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 ac_check_lib_save_LIBS=$LIBS
5601 LIBS="-lnl $LIBS"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5605 /* Override any GCC internal prototype to avoid an error.
5606 Use char because int might match the return type of a GCC
5607 builtin and then its argument prototype would still apply. */
5608 #ifdef __cplusplus
5609 extern "C"
5610 #endif
5611 char nl_socket_alloc ();
5613 main ()
5615 return nl_socket_alloc ();
5617 return 0;
5619 _ACEOF
5620 if ac_fn_c_try_link "$LINENO"; then :
5621 ac_cv_lib_nl_nl_socket_alloc=yes
5622 else
5623 ac_cv_lib_nl_nl_socket_alloc=no
5625 rm -f core conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5627 LIBS=$ac_check_lib_save_LIBS
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
5630 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
5631 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
5634 # Yes, we have libnl 2.x.
5636 LIBS="${libnldir} -lnl-genl -lnl $LIBS"
5638 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5641 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
5644 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5647 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5649 have_any_nl="yes"
5655 if test x$have_any_nl = xno ; then
5657 # No, we don't; do we have libnl 1.x?
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
5660 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
5661 if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 ac_check_lib_save_LIBS=$LIBS
5665 LIBS="-lnl $LIBS"
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5669 /* Override any GCC internal prototype to avoid an error.
5670 Use char because int might match the return type of a GCC
5671 builtin and then its argument prototype would still apply. */
5672 #ifdef __cplusplus
5673 extern "C"
5674 #endif
5675 char nl_handle_alloc ();
5677 main ()
5679 return nl_handle_alloc ();
5681 return 0;
5683 _ACEOF
5684 if ac_fn_c_try_link "$LINENO"; then :
5685 ac_cv_lib_nl_nl_handle_alloc=yes
5686 else
5687 ac_cv_lib_nl_nl_handle_alloc=no
5689 rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5691 LIBS=$ac_check_lib_save_LIBS
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
5694 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
5695 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then :
5698 # Yes.
5700 LIBS="${libnldir} -lnl $LIBS"
5702 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5704 have_any_nl="yes"
5710 if test x$have_any_nl = xno ; then
5712 # No, we don't have libnl at all.
5714 if test x$with_libnl = xyes ; then
5715 as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
5720 for ac_header in linux/ethtool.h
5721 do :
5722 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
5723 $ac_includes_default
5724 #include <linux/types.h>
5727 if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
5728 cat >>confdefs.h <<_ACEOF
5729 #define HAVE_LINUX_ETHTOOL_H 1
5730 _ACEOF
5734 done
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
5737 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
5738 if ${ac_cv_lbl_tpacket_stats+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5744 # include <linux/if_packet.h>
5746 main ()
5748 struct tpacket_stats stats
5750 return 0;
5752 _ACEOF
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754 ac_cv_lbl_tpacket_stats=yes
5755 else
5756 ac_cv_lbl_tpacket_stats=no
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
5762 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
5763 if test $ac_cv_lbl_tpacket_stats = yes; then
5765 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
5769 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
5770 if ${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5776 # include <sys/types.h>
5777 # include <linux/if_packet.h>
5779 main ()
5781 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
5783 return 0;
5785 _ACEOF
5786 if ac_fn_c_try_compile "$LINENO"; then :
5787 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
5788 else
5789 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
5795 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
5796 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
5797 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
5800 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
5805 bpf)
5807 # Check whether we have the *BSD-style ioctls.
5809 for ac_header in net/if_media.h
5810 do :
5811 ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
5812 if test "x$ac_cv_header_net_if_media_h" = xyes; then :
5813 cat >>confdefs.h <<_ACEOF
5814 #define HAVE_NET_IF_MEDIA_H 1
5815 _ACEOF
5819 done
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system supports zerocopy BPF" >&5
5823 $as_echo_n "checking whether the system supports zerocopy BPF... " >&6; }
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 #include <sys/socket.h>
5827 #include <sys/ioctl.h>
5828 #include <net/if.h>
5829 #include <net/bpf.h>
5831 main ()
5833 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
5835 return 0;
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"; then :
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5841 $as_echo "yes" >&6; }
5843 $as_echo "#define HAVE_ZEROCOPY_BPF 1" >>confdefs.h
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 # Check whether we have struct BPF_TIMEVAL.
5855 ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
5856 #include <sys/types.h>
5857 #include <sys/ioctl.h>
5858 #ifdef HAVE_SYS_IOCCOM_H
5859 #include <sys/ioccom.h>
5860 #endif
5861 #include <net/bpf.h>
5864 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then :
5866 cat >>confdefs.h <<_ACEOF
5867 #define HAVE_STRUCT_BPF_TIMEVAL 1
5868 _ACEOF
5875 dag)
5876 V_DEFS="$V_DEFS -DDAG_ONLY"
5879 septel)
5880 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
5883 snf)
5884 V_DEFS="$V_DEFS -DSNF_ONLY"
5887 null)
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
5889 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
5891 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5893 esac
5895 if test "$V_PCAP" = null
5896 then
5898 # We can't capture, so we can't open any capture
5899 # devices, so we won't return any interfaces.
5901 V_FINDALLDEVS=null
5902 else
5903 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
5904 if test "x$ac_cv_func_getifaddrs" = xyes; then :
5907 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
5908 # as well, just in case some platform is really weird.
5910 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
5911 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
5914 # We have the header, so we use "getifaddrs()" to
5915 # get the list of interfaces.
5917 V_FINDALLDEVS=getad
5919 else
5922 # We don't have the header - give up.
5923 # XXX - we could also fall back on some other
5924 # mechanism, but, for now, this'll catch this
5925 # problem so that we can at least try to figure
5926 # out something to do on systems with "getifaddrs()"
5927 # but without "ifaddrs.h", if there is something
5928 # we can do on those systems.
5930 as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
5936 else
5939 # Well, we don't have "getifaddrs()", so we have to use
5940 # some other mechanism; determine what that mechanism is.
5942 # The first thing we use is the type of capture mechanism,
5943 # which is somewhat of a proxy for the OS we're using.
5945 case "$V_PCAP" in
5947 dlpi|libdlpi)
5949 # This might be Solaris 8 or later, with
5950 # SIOCGLIFCONF, or it might be some other OS
5951 # or some older version of Solaris, with
5952 # just SIOCGIFCONF.
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
5955 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
5956 if ${ac_cv_lbl_have_siocglifconf+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 #include <sys/param.h>
5962 #include <sys/file.h>
5963 #include <sys/ioctl.h>
5964 #include <sys/socket.h>
5965 #include <sys/sockio.h>
5967 main ()
5969 ioctl(0, SIOCGLIFCONF, (char *)0);
5971 return 0;
5973 _ACEOF
5974 if ac_fn_c_try_compile "$LINENO"; then :
5975 ac_cv_lbl_have_siocglifconf=yes
5976 else
5977 ac_cv_lbl_have_siocglifconf=no
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
5983 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
5984 if test $ac_cv_lbl_have_siocglifconf = yes ; then
5985 V_FINDALLDEVS=glifc
5986 else
5987 V_FINDALLDEVS=gifc
5993 # Assume we just have SIOCGIFCONF.
5994 # (XXX - on at least later Linux kernels, there's
5995 # another mechanism, and we should be using that
5996 # instead.)
5998 V_FINDALLDEVS=gifc
6000 esac
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6009 $as_echo_n "checking for socklen_t... " >&6; }
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6013 #include <sys/types.h>
6014 #include <sys/socket.h>
6017 main ()
6019 socklen_t x;
6021 return 0;
6023 _ACEOF
6024 if ac_fn_c_try_compile "$LINENO"; then :
6025 have_socklen_t=yes
6026 else
6027 have_socklen_t=no
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 if test "x$have_socklen_t" = "xyes"; then
6032 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
6036 $as_echo "$have_socklen_t" >&6; }
6038 # Check whether --enable-ipv6 was given.
6039 if test "${enable_ipv6+set}" = set; then :
6040 enableval=$enable_ipv6;
6041 else
6042 enable_ipv6=ifavailable
6045 if test "$enable_ipv6" != "no"; then
6046 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6047 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
6050 $as_echo "#define INET6 1" >>confdefs.h
6053 else
6055 if test "$enable_ipv6" != "ifavailable"; then
6056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6058 as_fn_error $? "--enable-ipv6 was given, but getaddrinfo isn't available
6059 See \`config.log' for more details" "$LINENO" 5; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
6067 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
6068 # Check whether --enable-optimizer-dbg was given.
6069 if test "${enable_optimizer_dbg+set}" = set; then :
6070 enableval=$enable_optimizer_dbg;
6073 if test "$enable_optimizer_dbg" = "yes"; then
6075 $as_echo "#define BDEBUG 1" >>confdefs.h
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
6079 $as_echo "${enable_optimizer_dbg-no}" >&6; }
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
6082 $as_echo_n "checking whether to build parser debugging code... " >&6; }
6083 # Check whether --enable-yydebug was given.
6084 if test "${enable_yydebug+set}" = set; then :
6085 enableval=$enable_yydebug;
6088 if test "$enable_yydebug" = "yes"; then
6090 $as_echo "#define YYDEBUG 1" >>confdefs.h
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
6094 $as_echo "${enable_yydebug-no}" >&6; }
6096 # Check for Endace DAG card support.
6098 # Check whether --with-dag was given.
6099 if test "${with_dag+set}" = set; then :
6100 withval=$with_dag;
6101 if test "$withval" = no
6102 then
6103 # User doesn't want DAG support.
6104 want_dag=no
6105 elif test "$withval" = yes
6106 then
6107 # User wants DAG support but hasn't specified a directory.
6108 want_dag=yes
6109 else
6110 # User wants DAG support and has specified a directory, so use the provided value.
6111 want_dag=yes
6112 dag_root=$withval
6115 else
6118 # Use DAG API if present, otherwise don't
6120 want_dag=ifpresent
6126 # Check whether --with-dag-includes was given.
6127 if test "${with_dag_includes+set}" = set; then :
6128 withval=$with_dag_includes;
6129 # User wants DAG support and has specified a header directory, so use the provided value.
6130 want_dag=yes
6131 dag_include_dir=$withval
6137 # Check whether --with-dag-libraries was given.
6138 if test "${with_dag_libraries+set}" = set; then :
6139 withval=$with_dag_libraries;
6140 # User wants DAG support and has specified a library directory, so use the provided value.
6141 want_dag=yes
6142 dag_lib_dir=$withval
6147 case "$V_PCAP" in
6148 linux|bpf|dag)
6150 # We support the DAG API if we're on Linux or BSD, or if we're
6151 # building a DAG-only libpcap.
6156 # If the user explicitly requested DAG, tell them it's not
6157 # supported.
6159 # If they expressed no preference, don't include it.
6161 if test $want_dag = yes; then
6162 as_fn_error $? "DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" "$LINENO" 5
6163 elif test $want_dag = yes; then
6164 want_dag=no
6167 esac
6169 ac_cv_lbl_dag_api=no
6170 if test "$want_dag" != no; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6173 $as_echo_n "checking whether we have DAG API headers... " >&6; }
6175 # If necessary, set default paths for DAG API headers and libraries.
6176 if test -z "$dag_root"; then
6177 dag_root=/usr/local
6180 if test -z "$dag_include_dir"; then
6181 dag_include_dir="$dag_root/include"
6184 if test -z "$dag_lib_dir"; then
6185 dag_lib_dir="$dag_root/lib"
6188 if test -z "$dag_tools_dir"; then
6189 dag_tools_dir="$dag_root/tools"
6192 if test -r $dag_include_dir/dagapi.h; then
6193 ac_cv_lbl_dag_api=yes
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
6196 $as_echo "$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
6199 if test $ac_cv_lbl_dag_api = yes; then
6200 V_INCLS="$V_INCLS -I$dag_include_dir"
6202 if test $V_PCAP != dag ; then
6203 SSRC="pcap-dag.c"
6206 # See if we can find a general version string.
6207 # Don't need to save and restore LIBS to prevent -ldag being
6208 # included if there's a found-action (arg 3).
6209 saved_ldflags=$LDFLAGS
6210 LDFLAGS="-L$dag_lib_dir"
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6212 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6213 if ${ac_cv_lib_dag_dag_attach_stream+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 ac_check_lib_save_LIBS=$LIBS
6217 LIBS="-ldag $LIBS"
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6221 /* Override any GCC internal prototype to avoid an error.
6222 Use char because int might match the return type of a GCC
6223 builtin and then its argument prototype would still apply. */
6224 #ifdef __cplusplus
6225 extern "C"
6226 #endif
6227 char dag_attach_stream ();
6229 main ()
6231 return dag_attach_stream ();
6233 return 0;
6235 _ACEOF
6236 if ac_fn_c_try_link "$LINENO"; then :
6237 ac_cv_lib_dag_dag_attach_stream=yes
6238 else
6239 ac_cv_lib_dag_dag_attach_stream=no
6241 rm -f core conftest.err conftest.$ac_objext \
6242 conftest$ac_exeext conftest.$ac_ext
6243 LIBS=$ac_check_lib_save_LIBS
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6246 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
6247 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then :
6248 dag_streams="1"
6249 else
6250 dag_streams="0"
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6254 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6255 if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 ac_check_lib_save_LIBS=$LIBS
6259 LIBS="-ldag $LIBS"
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6263 /* Override any GCC internal prototype to avoid an error.
6264 Use char because int might match the return type of a GCC
6265 builtin and then its argument prototype would still apply. */
6266 #ifdef __cplusplus
6267 extern "C"
6268 #endif
6269 char dag_get_erf_types ();
6271 main ()
6273 return dag_get_erf_types ();
6275 return 0;
6277 _ACEOF
6278 if ac_fn_c_try_link "$LINENO"; then :
6279 ac_cv_lib_dag_dag_get_erf_types=yes
6280 else
6281 ac_cv_lib_dag_dag_get_erf_types=no
6283 rm -f core conftest.err conftest.$ac_objext \
6284 conftest$ac_exeext conftest.$ac_ext
6285 LIBS=$ac_check_lib_save_LIBS
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6288 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6289 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then :
6292 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6297 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6298 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 ac_check_lib_save_LIBS=$LIBS
6302 LIBS="-ldag $LIBS"
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6306 /* Override any GCC internal prototype to avoid an error.
6307 Use char because int might match the return type of a GCC
6308 builtin and then its argument prototype would still apply. */
6309 #ifdef __cplusplus
6310 extern "C"
6311 #endif
6312 char dag_get_stream_erf_types ();
6314 main ()
6316 return dag_get_stream_erf_types ();
6318 return 0;
6320 _ACEOF
6321 if ac_fn_c_try_link "$LINENO"; then :
6322 ac_cv_lib_dag_dag_get_stream_erf_types=yes
6323 else
6324 ac_cv_lib_dag_dag_get_stream_erf_types=no
6326 rm -f core conftest.err conftest.$ac_objext \
6327 conftest$ac_exeext conftest.$ac_ext
6328 LIBS=$ac_check_lib_save_LIBS
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6331 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6332 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then :
6335 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6340 LDFLAGS=$saved_ldflags
6342 if test "$dag_streams" = 1; then
6344 $as_echo "#define HAVE_DAG_STREAMS_API 1" >>confdefs.h
6346 LIBS="$LIBS -ldag"
6347 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6350 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6351 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 ac_check_lib_save_LIBS=$LIBS
6355 LIBS="-lvdag $LIBS"
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6359 /* Override any GCC internal prototype to avoid an error.
6360 Use char because int might match the return type of a GCC
6361 builtin and then its argument prototype would still apply. */
6362 #ifdef __cplusplus
6363 extern "C"
6364 #endif
6365 char vdag_set_device_info ();
6367 main ()
6369 return vdag_set_device_info ();
6371 return 0;
6373 _ACEOF
6374 if ac_fn_c_try_link "$LINENO"; then :
6375 ac_cv_lib_vdag_vdag_set_device_info=yes
6376 else
6377 ac_cv_lib_vdag_vdag_set_device_info=no
6379 rm -f core conftest.err conftest.$ac_objext \
6380 conftest$ac_exeext conftest.$ac_ext
6381 LIBS=$ac_check_lib_save_LIBS
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6384 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6385 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then :
6386 ac_dag_have_vdag="1"
6387 else
6388 ac_dag_have_vdag="0"
6391 if test "$ac_dag_have_vdag" = 1; then
6393 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6395 LIBS="$LIBS -lpthread"
6400 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have the DAG API" >&5
6405 $as_echo_n "checking whether we have the DAG API... " >&6; }
6407 if test $ac_cv_lbl_dag_api = no; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 if test "$want_dag" = yes; then
6411 # User wanted DAG support but we couldn't find it.
6412 as_fn_error $? "DAG API requested, but not found at $dag_root: use --without-dag" "$LINENO" 5
6415 if test "$V_PCAP" = dag; then
6416 # User requested "dag" capture type but the DAG API wasn't
6417 # found.
6418 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
6420 else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6422 $as_echo "yes" >&6; }
6426 # Check whether --with-septel was given.
6427 if test "${with_septel+set}" = set; then :
6428 withval=$with_septel;
6429 if test "$withval" = no
6430 then
6431 want_septel=no
6432 elif test "$withval" = yes
6433 then
6434 want_septel=yes
6435 septel_root=
6436 else
6437 want_septel=yes
6438 septel_root=$withval
6441 else
6444 # Use Septel API if present, otherwise don't
6446 want_septel=ifpresent
6447 septel_root=./../septel
6451 ac_cv_lbl_septel_api=no
6452 case "$V_PCAP" in
6453 linux|septel)
6455 # We support the Septel API if we're on Linux, or if we're building
6456 # a Septel-only libpcap.
6461 # If the user explicitly requested Septel, tell them it's not
6462 # supported.
6464 # If they expressed no preference, don't include it.
6466 if test $want_septel = yes; then
6467 as_fn_error $? "Septel support only available with 'linux' and 'septel' packet capture types" "$LINENO" 5
6468 elif test $want_septel = yes; then
6469 want_septel=no
6472 esac
6474 if test "$with_septel" != no; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API" >&5
6476 $as_echo_n "checking whether we have Septel API... " >&6; }
6478 if test -z "$septel_root"; then
6479 septel_root=$srcdir/../septel
6482 septel_tools_dir="$septel_root"
6483 septel_include_dir="$septel_root/INC"
6485 ac_cv_lbl_septel_api=no
6486 if test -r "$septel_include_dir/msg.h"; then
6487 V_INCLS="$V_INCLS -I$septel_include_dir"
6488 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"
6489 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"
6491 if test "$V_PCAP" != septel ; then
6492 SSRC="pcap-septel.c"
6494 ac_cv_lbl_septel_api=yes
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_septel_api" >&5
6498 $as_echo "$ac_cv_lbl_septel_api" >&6; }
6499 if test $ac_cv_lbl_septel_api = no; then
6500 if test "$want_septel" = yes; then
6501 as_fn_error $? "Septel API not found under directory $septel_root; use --without-septel" "$LINENO" 5
6503 else
6505 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6510 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
6511 as_fn_error $? "Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" "$LINENO" 5
6514 # Check for Myricom SNF support.
6516 # Check whether --with-snf was given.
6517 if test "${with_snf+set}" = set; then :
6518 withval=$with_snf;
6519 if test "$withval" = no
6520 then
6521 # User explicitly doesn't want SNF
6522 want_snf=no
6523 elif test "$withval" = yes
6524 then
6525 # User wants SNF support but hasn't specific a directory.
6526 want_snf=yes
6527 else
6528 # User wants SNF support with a specified directory.
6529 want_snf=yes
6530 snf_root=$withval
6533 else
6536 # Use Sniffer API if present, otherwise don't
6538 want_snf=ifpresent
6544 # Check whether --with-snf-includes was given.
6545 if test "${with_snf_includes+set}" = set; then :
6546 withval=$with_snf_includes;
6547 # User wants SNF with specific header directory
6548 want_snf=yes
6549 snf_include_dir=$withval
6555 # Check whether --with-snf-libraries was given.
6556 if test "${with_snf_libraries+set}" = set; then :
6557 withval=$with_snf_libraries;
6558 # User wants SNF with specific lib directory
6559 want_snf=yes
6560 snf_lib_dir=$withval
6565 case "$V_PCAP" in
6566 bpf|linux|snf)
6568 # We support the Sniffer API if we're on BSD, Linux, or if we're
6569 # building a Sniffer-only libpcap.
6574 # If the user explicitly requested Sniffer, tell them it's not
6575 # supported.
6577 # If they expressed no preference, don't include it.
6579 if test $want_snf = yes; then
6580 as_fn_error $? "Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" "$LINENO" 5
6581 elif test $want_snf = yes; then
6582 want_snf=no
6585 esac
6587 ac_cv_lbl_snf_api=no
6588 if test "$with_snf" != no; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6591 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6593 if test -z "$snf_root"; then
6594 snf_root=/opt/snf
6597 if test -z "$snf_include_dir"; then
6598 snf_include_dir="$snf_root/include"
6601 if test -z "$snf_lib_dir"; then
6602 snf_lib_dir="$snf_root/lib"
6605 if test -f "$snf_include_dir/snf.h"; then
6606 ac_cv_lbl_snf_api=yes
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
6609 $as_echo "$ac_cv_lbl_snf_api ($snf_root)" >&6; }
6611 if test $ac_cv_lbl_snf_api = no; then
6612 if test "$want_snf" = yes; then
6613 as_fn_error $? "SNF API headers not found under $snf_include_dir; use --without-snf" "$LINENO" 5
6615 else
6616 saved_ldflags=$LDFLAGS
6617 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
6619 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
6620 if ${ac_cv_lib_snf_snf_init+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 ac_check_lib_save_LIBS=$LIBS
6624 LIBS="-lsnf $LIBS"
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6628 /* Override any GCC internal prototype to avoid an error.
6629 Use char because int might match the return type of a GCC
6630 builtin and then its argument prototype would still apply. */
6631 #ifdef __cplusplus
6632 extern "C"
6633 #endif
6634 char snf_init ();
6636 main ()
6638 return snf_init ();
6640 return 0;
6642 _ACEOF
6643 if ac_fn_c_try_link "$LINENO"; then :
6644 ac_cv_lib_snf_snf_init=yes
6645 else
6646 ac_cv_lib_snf_snf_init=no
6648 rm -f core conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6650 LIBS=$ac_check_lib_save_LIBS
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
6653 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
6654 if test "x$ac_cv_lib_snf_snf_init" = xyes; then :
6655 ac_cv_lbl_snf_api="yes"
6656 else
6657 ac_cv_lbl_snf_api="no"
6660 LDFLAGS="$saved_ldflags"
6662 if test $ac_cv_lbl_snf_api = no; then
6663 if test "$want_snf" = yes; then
6664 as_fn_error $? "SNF API cannot correctly be linked check config.log; use --without-snf" "$LINENO" 5
6666 else
6667 V_INCLS="$V_INCLS -I$snf_include_dir"
6668 LIBS="$LIBS -lsnf"
6669 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
6670 if test "$V_PCAP" != snf ; then
6671 SSRC="pcap-snf.c"
6674 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
6680 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
6681 as_fn_error $? "Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" "$LINENO" 5
6685 # Check whether --with-flex was given.
6686 if test "${with_flex+set}" = set; then :
6687 withval=$with_flex;
6691 # Check whether --with-bison was given.
6692 if test "${with_bison+set}" = set; then :
6693 withval=$with_bison;
6696 if test "$with_flex" = no ; then
6697 V_LEX=lex
6698 else
6699 for ac_prog in flex
6701 # Extract the first word of "$ac_prog", so it can be a program name with args.
6702 set dummy $ac_prog; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_prog_V_LEX+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 if test -n "$V_LEX"; then
6709 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718 ac_cv_prog_V_LEX="$ac_prog"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6722 done
6723 done
6724 IFS=$as_save_IFS
6728 V_LEX=$ac_cv_prog_V_LEX
6729 if test -n "$V_LEX"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_LEX" >&5
6731 $as_echo "$V_LEX" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6738 test -n "$V_LEX" && break
6739 done
6740 test -n "$V_LEX" || V_LEX="lex"
6743 if test "$V_LEX" = flex ; then
6744 # The -V flag was added in 2.4
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex 2.4 or higher" >&5
6746 $as_echo_n "checking for flex 2.4 or higher... " >&6; }
6747 if ${ac_cv_lbl_flex_v24+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 if flex -V >/dev/null 2>&1; then
6751 ac_cv_lbl_flex_v24=yes
6752 else
6753 ac_cv_lbl_flex_v24=no
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_flex_v24" >&5
6758 $as_echo "$ac_cv_lbl_flex_v24" >&6; }
6759 if test $ac_cv_lbl_flex_v24 = no ; then
6760 s="2.4 or higher required"
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring obsolete flex executable ($s)" >&5
6762 $as_echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
6763 V_LEX=lex
6766 if test "$with_bison" = no ; then
6767 V_YACC=yacc
6768 else
6769 for ac_prog in bison
6771 # Extract the first word of "$ac_prog", so it can be a program name with args.
6772 set dummy $ac_prog; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_V_YACC+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 if test -n "$V_YACC"; then
6779 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_V_YACC="$ac_prog"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6792 done
6793 done
6794 IFS=$as_save_IFS
6798 V_YACC=$ac_cv_prog_V_YACC
6799 if test -n "$V_YACC"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_YACC" >&5
6801 $as_echo "$V_YACC" >&6; }
6802 else
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6808 test -n "$V_YACC" && break
6809 done
6810 test -n "$V_YACC" || V_YACC="yacc"
6813 if test "$V_YACC" = bison ; then
6814 V_YACC="$V_YACC -y"
6816 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
6818 $as_echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
6819 V_LEX=lex
6820 V_YACC=yacc
6822 if test "$V_LEX" = flex -a -n "pcap_" ; then
6823 V_LEX="$V_LEX -Ppcap_"
6824 V_YACC="$V_YACC -p pcap_"
6825 else
6827 $as_echo "#define NEED_YYPARSE_WRAPPER 1" >>confdefs.h
6830 if test "$V_LEX" = lex ; then
6831 # Some versions of lex can't handle the definitions section of scanner.l .
6832 # Try lexing it and complain if it can't deal.
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
6834 $as_echo_n "checking for capable lex... " >&6; }
6835 if ${tcpdump_cv_capable_lex+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if lex -t scanner.l > /dev/null 2>&1; then
6839 tcpdump_cv_capable_lex=yes
6840 else
6841 tcpdump_cv_capable_lex=insufficient
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
6845 $as_echo "$tcpdump_cv_capable_lex" >&6; }
6846 if test $tcpdump_cv_capable_lex = insufficient ; then
6847 as_fn_error $? "Your operating system's lex is insufficient to compile
6848 libpcap. flex is a lex replacement that has many advantages, including
6849 being able to compile libpcap. For more information, see
6850 http://www.gnu.org/software/flex/flex.html ." "$LINENO" 5
6855 # Assume, by default, no support for shared libraries and V7/BSD convention
6856 # for man pages (file formats in section 5, miscellaneous info in section 7).
6857 # Individual cases can override this.
6859 DYEXT="none"
6860 MAN_FILE_FORMATS=5
6861 MAN_MISC_INFO=7
6862 case "$host_os" in
6864 aix*)
6866 $as_echo "#define _SUN 1" >>confdefs.h
6870 # AIX makes it fun to build shared and static libraries,
6871 # because they're *both* ".a" archive libraries. We
6872 # build the static library for the benefit of the traditional
6873 # scheme of building libpcap and tcpdump in subdirectories of
6874 # the same directory, with tcpdump statically linked with the
6875 # libpcap in question, but we also build a shared library as
6876 # "libpcap.shareda" and install *it*, rather than the static
6877 # library, as "libpcap.a".
6879 DYEXT="shareda"
6881 case "$V_PCAP" in
6883 dlpi)
6885 # If we're using DLPI, applications will need to
6886 # use /lib/pse.exp if present, as we use the
6887 # STREAMS routines.
6889 pseexe="/lib/pse.exp"
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
6891 $as_echo_n "checking for $pseexe... " >&6; }
6892 if test -f $pseexe ; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6894 $as_echo "yes" >&6; }
6895 LIBS="-I:$pseexe"
6899 bpf)
6901 # If we're using BPF, we need "-lodm" and "-lcfg", as
6902 # we use them to load the BPF module.
6904 LIBS="-lodm -lcfg"
6906 esac
6909 darwin*)
6910 DYEXT="dylib"
6911 V_CCOPT="$V_CCOPT -fno-common"
6912 # Check whether --enable-universal was given.
6913 if test "${enable_universal+set}" = set; then :
6914 enableval=$enable_universal;
6917 if test "$enable_universal" != "no"; then
6918 case "$host_os" in
6920 darwin0-7.*)
6922 # Pre-Tiger. Build only for 32-bit PowerPC; no
6923 # need for any special compiler or linker flags.
6927 darwin8.0123*)
6929 # Tiger, prior to Intel support. Build for 32-bit
6930 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
6931 # first. (I'm guessing that's what Apple does.)
6933 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
6934 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
6937 darwin8.456*)
6939 # Tiger, subsequent to Intel support but prior to
6940 # x86-64 support. Build for 32-bit PowerPC, 64-bit
6941 # PowerPC, and x86, with 32-bit PowerPC first.
6942 # (I'm guessing that's what Apple does.)
6944 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
6945 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
6948 darwin8.*)
6950 # All other Tiger, so subsequent to x86-64
6951 # support. Build for 32-bit PowerPC, 64-bit
6952 # PowerPC, x86, and x86-64, and with 32-bit PowerPC
6953 # first. (I'm guessing that's what Apple does.)
6955 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6956 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6959 darwin9.*)
6961 # Leopard. Build for 32-bit PowerPC, 64-bit
6962 # PowerPC, x86, and x86-64, with 32-bit PowerPC
6963 # first. (That's what Apple does.)
6965 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6966 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6969 darwin10.*)
6971 # Snow Leopard. Build for x86-64, x86, and
6972 # 32-bit PowerPC, with x86-64 first. (That's
6973 # what Apple does, even though Snow Leopard
6974 # doesn't run on PPC, so PPC libpcap runs under
6975 # Rosetta, and Rosetta doesn't support BPF
6976 # ioctls, so PPC programs can't do live
6977 # captures.)
6979 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
6980 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
6983 darwin*)
6985 # Post-Snow Leopard. Build for x86-64 and
6986 # x86, with x86-64 first. (That's probably what
6987 # Apple does, given that Rosetta is gone.)
6988 # XXX - update if and when Apple drops support
6989 # for 32-bit x86 code.
6991 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
6992 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
6994 esac
6998 hpux9*)
7000 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
7004 # Use System V conventions for man pages.
7006 MAN_FILE_FORMATS=4
7007 MAN_MISC_INFO=5
7010 hpux10.0*)
7013 # Use System V conventions for man pages.
7015 MAN_FILE_FORMATS=4
7016 MAN_MISC_INFO=5
7019 hpux10.1*)
7022 # Use System V conventions for man pages.
7024 MAN_FILE_FORMATS=4
7025 MAN_MISC_INFO=5
7028 hpux*)
7030 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
7032 if test "`uname -m`" = "ia64"; then
7033 DYEXT="so"
7034 else
7035 DYEXT="sl"
7039 # "-b" builds a shared library; "+h" sets the soname.
7041 SHLIB_OPT="-b"
7042 SONAME_OPT="+h"
7045 # Use System V conventions for man pages.
7047 MAN_FILE_FORMATS=4
7048 MAN_MISC_INFO=5
7051 irix*)
7053 # Use System V conventions for man pages.
7055 MAN_FILE_FORMATS=4
7056 MAN_MISC_INFO=5
7059 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
7060 DYEXT="so"
7063 # Compiler assumed to be GCC; run-time linker may require a -R
7064 # flag.
7066 if test "$libdir" != "/usr/lib"; then
7067 V_RFLAGS=-Wl,-R$libdir
7071 osf*)
7072 DYEXT="so"
7075 # Use System V conventions for man pages.
7077 MAN_FILE_FORMATS=4
7078 MAN_MISC_INFO=5
7081 sinix*)
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
7083 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
7084 if ${ac_cv_cc_sinix_defined+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7091 main ()
7093 int i = sinix;
7095 return 0;
7097 _ACEOF
7098 if ac_fn_c_try_compile "$LINENO"; then :
7099 ac_cv_cc_sinix_defined=yes
7100 else
7101 ac_cv_cc_sinix_defined=no
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
7107 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
7108 if test $ac_cv_cc_sinix_defined = no ; then
7110 $as_echo "#define sinix 1" >>confdefs.h
7115 solaris*)
7117 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
7120 DYEXT="so"
7122 # Use System V conventions for man pages.
7124 MAN_FILE_FORMATS=4
7125 MAN_MISC_INFO=5
7127 esac
7129 # Check whether --enable-shared was given.
7130 if test "${enable_shared+set}" = set; then :
7131 enableval=$enable_shared;
7134 test "x$enable_shared" = "xno" && DYEXT="none"
7136 if test -n "$ac_tool_prefix"; then
7137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_RANLIB+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$RANLIB"; then
7145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7158 done
7159 done
7160 IFS=$as_save_IFS
7164 RANLIB=$ac_cv_prog_RANLIB
7165 if test -n "$RANLIB"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7167 $as_echo "$RANLIB" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7175 if test -z "$ac_cv_prog_RANLIB"; then
7176 ac_ct_RANLIB=$RANLIB
7177 # Extract the first word of "ranlib", so it can be a program name with args.
7178 set dummy ranlib; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 if test -n "$ac_ct_RANLIB"; then
7185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7194 ac_cv_prog_ac_ct_RANLIB="ranlib"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7198 done
7199 done
7200 IFS=$as_save_IFS
7204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7205 if test -n "$ac_ct_RANLIB"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7207 $as_echo "$ac_ct_RANLIB" >&6; }
7208 else
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7213 if test "x$ac_ct_RANLIB" = x; then
7214 RANLIB=":"
7215 else
7216 case $cross_compiling:$ac_tool_warned in
7217 yes:)
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7220 ac_tool_warned=yes ;;
7221 esac
7222 RANLIB=$ac_ct_RANLIB
7224 else
7225 RANLIB="$ac_cv_prog_RANLIB"
7228 if test -n "$ac_tool_prefix"; then
7229 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7230 set dummy ${ac_tool_prefix}ar; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_AR+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$AR"; then
7237 ac_cv_prog_AR="$AR" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_AR="${ac_tool_prefix}ar"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7250 done
7251 done
7252 IFS=$as_save_IFS
7256 AR=$ac_cv_prog_AR
7257 if test -n "$AR"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7259 $as_echo "$AR" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7267 if test -z "$ac_cv_prog_AR"; then
7268 ac_ct_AR=$AR
7269 # Extract the first word of "ar", so it can be a program name with args.
7270 set dummy ar; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 if test -n "$ac_ct_AR"; then
7277 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_ac_ct_AR="ar"
7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7290 done
7291 done
7292 IFS=$as_save_IFS
7296 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7297 if test -n "$ac_ct_AR"; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7299 $as_echo "$ac_ct_AR" >&6; }
7300 else
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7305 if test "x$ac_ct_AR" = x; then
7306 AR=""
7307 else
7308 case $cross_compiling:$ac_tool_warned in
7309 yes:)
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7312 ac_tool_warned=yes ;;
7313 esac
7314 AR=$ac_ct_AR
7316 else
7317 AR="$ac_cv_prog_AR"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7322 $as_echo_n "checking whether ln -s works... " >&6; }
7323 LN_S=$as_ln_s
7324 if test "$LN_S" = "ln -s"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326 $as_echo "yes" >&6; }
7327 else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7329 $as_echo "no, using $LN_S" >&6; }
7334 rm -f os-proto.h
7335 if test "${LBL_CFLAGS+set}" = set; then
7336 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7338 if test -f .devel ; then
7340 # Skip all the warning option stuff on some compilers.
7342 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
7345 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
7346 save_CFLAGS="$CFLAGS"
7347 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7352 main ()
7354 return 0
7356 return 0;
7358 _ACEOF
7359 if ac_fn_c_try_compile "$LINENO"; then :
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7364 # We're assuming this is clang, where
7365 # -Werror=unknown-warning-option is the appropriate
7366 # option to force the compiler to fail.
7368 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
7370 else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7373 $as_echo "yes" >&6; }
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 CFLAGS="$save_CFLAGS"
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
7381 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
7382 save_CFLAGS="$CFLAGS"
7383 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7388 main ()
7390 return 0
7392 return 0;
7394 _ACEOF
7395 if ac_fn_c_try_compile "$LINENO"; then :
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7398 $as_echo "yes" >&6; }
7399 CFLAGS="$save_CFLAGS"
7400 V_CCOPT="$V_CCOPT -Wall"
7402 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 CFLAGS="$save_CFLAGS"
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
7413 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
7414 save_CFLAGS="$CFLAGS"
7415 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7420 main ()
7422 return 0
7424 return 0;
7426 _ACEOF
7427 if ac_fn_c_try_compile "$LINENO"; then :
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7430 $as_echo "yes" >&6; }
7431 CFLAGS="$save_CFLAGS"
7432 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
7434 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 CFLAGS="$save_CFLAGS"
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
7445 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
7446 save_CFLAGS="$CFLAGS"
7447 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7452 main ()
7454 return 0
7456 return 0;
7458 _ACEOF
7459 if ac_fn_c_try_compile "$LINENO"; then :
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7462 $as_echo "yes" >&6; }
7463 CFLAGS="$save_CFLAGS"
7464 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
7466 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7470 CFLAGS="$save_CFLAGS"
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
7478 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
7479 if test "$GCC" = yes ; then
7481 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
7482 # though it's not); we assume that, in this case, the flag
7483 # would be -M.
7485 ac_lbl_dependency_flag="-M"
7486 else
7488 # Not GCC or a compiler deemed to be GCC; what platform is
7489 # this? (We're assuming that if the compiler isn't GCC
7490 # it's the compiler from the vendor of the OS; that won't
7491 # necessarily be true for x86 platforms, where it might be
7492 # the Intel C compiler.)
7494 case "$host_os" in
7496 irix*|osf*|darwin*)
7498 # MIPS C for IRIX, DEC C, and clang all use -M.
7500 ac_lbl_dependency_flag="-M"
7503 solaris*)
7505 # Sun C uses -xM.
7507 ac_lbl_dependency_flag="-xM"
7510 hpux*)
7512 # HP's older C compilers don't support this.
7513 # HP's newer C compilers support this with
7514 # either +M or +Make; the older compilers
7515 # interpret +M as something completely
7516 # different, so we use +Make so we don't
7517 # think it works with the older compilers.
7519 ac_lbl_dependency_flag="+Make"
7524 # Not one of the above; assume no support for
7525 # generating dependencies.
7527 ac_lbl_dependency_flag=""
7529 esac
7533 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
7534 # complain about it?
7536 # Note: clang doesn't seem to exit with an error status when handed
7537 # an unknown non-warning error, even if you pass it
7538 # -Werror=unknown-warning-option. However, it always supports
7539 # -M, so the fact that this test always succeeds with clang
7540 # isn't an issue.
7542 if test ! -z "$ac_lbl_dependency_flag"; then
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 int main(void) { return 0; }
7546 _ACEOF
7547 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
7548 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
7550 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
7551 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
7552 MKDEP='${srcdir}/mkdep'
7553 else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7557 # We can't run mkdep, so have "make depend" do
7558 # nothing.
7560 MKDEP=:
7562 rm -rf conftest*
7563 else
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7567 # We can't run mkdep, so have "make depend" do
7568 # nothing.
7570 MKDEP=:
7576 # We used to set -n32 for IRIX 6 when not using GCC (presumed
7577 # to mean that we're using MIPS C or MIPSpro C); it specified
7578 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
7579 # not sure why that would be something to do *only* with a
7580 # .devel file; why should the ABI for which we produce code
7581 # depend on .devel?
7583 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
7584 name="lbl/os-$os.h"
7585 if test -f $name ; then
7586 ln -s $name os-proto.h
7588 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
7590 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
7592 $as_echo "$as_me: WARNING: can't find $name" >&2;}
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
7597 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
7598 if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7604 # include <sys/types.h>
7605 # include <sys/socket.h>
7607 main ()
7609 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7611 return 0;
7613 _ACEOF
7614 if ac_fn_c_try_compile "$LINENO"; then :
7615 ac_cv_lbl_sockaddr_has_sa_len=yes
7616 else
7617 ac_cv_lbl_sockaddr_has_sa_len=no
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7623 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
7624 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7626 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
7631 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
7632 if ${ac_cv_lbl_has_sockaddr_storage+:} false; then :
7633 $as_echo_n "(cached) " >&6
7634 else
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7638 # include <sys/types.h>
7639 # include <sys/socket.h>
7641 main ()
7643 u_int i = sizeof (struct sockaddr_storage)
7645 return 0;
7647 _ACEOF
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649 ac_cv_lbl_has_sockaddr_storage=yes
7650 else
7651 ac_cv_lbl_has_sockaddr_storage=no
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
7657 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
7658 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
7660 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
7665 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
7666 if ${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7672 # include <sys/types.h>
7673 # include <sys/dlpi.h>
7674 # include <sys/dlpi_ext.h>
7676 main ()
7678 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
7680 return 0;
7682 _ACEOF
7683 if ac_fn_c_try_compile "$LINENO"; then :
7684 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
7685 else
7686 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
7692 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
7693 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
7695 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
7700 $as_echo_n "checking if unaligned accesses fail... " >&6; }
7701 if ${ac_cv_lbl_unaligned_fail+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 case "$host_cpu" in
7707 # These are CPU types where:
7709 # the CPU faults on an unaligned access, but at least some
7710 # OSes that support that CPU catch the fault and simulate
7711 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7712 # the simulation is slow, so we don't want to use it;
7714 # the CPU, I infer (from the old
7716 # XXX: should also check that they don't do weird things (like on arm)
7718 # comment) doesn't fault on unaligned accesses, but doesn't
7719 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7721 # for whatever reason, the test program doesn't work
7722 # (this has been claimed to be the case for several of those
7723 # CPUs - I don't know what the problem is; the problem
7724 # was reported as "the test program dumps core" for SuperH,
7725 # but that's what the test program is *supposed* to do -
7726 # it dumps core before it writes anything, so the test
7727 # for an empty output file should find an empty output
7728 # file and conclude that unaligned accesses don't work).
7730 # This run-time test won't work if you're cross-compiling, so
7731 # in order to support cross-compiling for a particular CPU,
7732 # we have to wire in the list of CPU types anyway, as far as
7733 # I know, so perhaps we should just have a set of CPUs on
7734 # which we know it doesn't work, a set of CPUs on which we
7735 # know it does work, and have the script just fail on other
7736 # cpu types and update it when such a failure occurs.
7738 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
7739 ac_cv_lbl_unaligned_fail=yes
7743 cat >conftest.c <<EOF
7744 # include <sys/types.h>
7745 # include <sys/wait.h>
7746 # include <stdio.h>
7747 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7748 main() {
7749 unsigned int i;
7750 pid_t pid;
7751 int status;
7752 /* avoid "core dumped" message */
7753 pid = fork();
7754 if (pid < 0)
7755 exit(2);
7756 if (pid > 0) {
7757 /* parent */
7758 pid = waitpid(pid, &status, 0);
7759 if (pid < 0)
7760 exit(3);
7761 exit(!WIFEXITED(status));
7763 /* child */
7764 i = *(unsigned int *)&a[1];
7765 printf("%d\n", i);
7766 exit(0);
7769 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
7770 conftest.c $LIBS >/dev/null 2>&1
7771 if test ! -x conftest ; then
7772 ac_cv_lbl_unaligned_fail=yes
7773 else
7774 ./conftest >conftest.out
7775 if test ! -s conftest.out ; then
7776 ac_cv_lbl_unaligned_fail=yes
7777 else
7778 ac_cv_lbl_unaligned_fail=no
7781 rm -f -r conftest* core core.conftest
7783 esac
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
7787 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
7788 if test $ac_cv_lbl_unaligned_fail = yes ; then
7790 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
7795 # Makefile.in includes rules to generate version.h, so we assume
7796 # that it will be generated if autoconf is used.
7799 $as_echo "#define HAVE_VERSION_H 1" >>confdefs.h
7802 rm -f net
7803 ln -s ${srcdir}/bpf/net net
7823 # Check whether --enable-usb was given.
7824 if test "${enable_usb+set}" = set; then :
7825 enableval=$enable_usb;
7826 else
7827 enable_usb=yes
7831 if test "x$enable_usb" != "xno" ; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
7833 $as_echo_n "checking for USB sniffing support... " >&6; }
7834 case "$host_os" in
7835 linux*)
7837 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
7839 USB_SRC=pcap-usb-linux.c
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7841 $as_echo "yes" >&6; }
7842 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
7843 if test $? -ne 0 ; then
7844 ac_usb_dev_name="usbmon"
7847 cat >>confdefs.h <<_ACEOF
7848 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
7849 _ACEOF
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
7852 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
7854 # Do we have a version of <linux/compiler.h> available?
7855 # If so, we might need it for <linux/usbdevice_fs.h>.
7857 for ac_header in linux/compiler.h
7858 do :
7859 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
7860 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
7861 cat >>confdefs.h <<_ACEOF
7862 #define HAVE_LINUX_COMPILER_H 1
7863 _ACEOF
7867 done
7869 if test "$ac_cv_header_linux_compiler_h" = yes; then
7871 # Yes - include it when testing for <linux/usbdevice_fs.h>.
7873 for ac_header in linux/usbdevice_fs.h
7874 do :
7875 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
7877 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
7878 cat >>confdefs.h <<_ACEOF
7879 #define HAVE_LINUX_USBDEVICE_FS_H 1
7880 _ACEOF
7884 done
7886 else
7887 for ac_header in linux/usbdevice_fs.h
7888 do :
7889 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
7890 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
7891 cat >>confdefs.h <<_ACEOF
7892 #define HAVE_LINUX_USBDEVICE_FS_H 1
7893 _ACEOF
7897 done
7900 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
7902 # OK, does it define bRequestType? Older versions of the kernel
7903 # define fields with names like "requesttype, "request", and
7904 # "value", rather than "bRequestType", "bRequest", and
7905 # "wValue".
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
7908 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
7909 if ${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7915 $ac_includes_default
7916 #ifdef HAVE_SYS_BITYPES_H
7917 #include <sys/bitypes.h>
7918 #endif
7919 #ifdef HAVE_LINUX_COMPILER_H
7920 #include <linux/compiler.h>
7921 #endif
7922 #include <linux/usbdevice_fs.h>
7924 main ()
7926 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
7928 return 0;
7930 _ACEOF
7931 if ac_fn_c_try_compile "$LINENO"; then :
7932 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
7933 else
7934 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
7936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
7940 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
7941 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
7943 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7952 esac
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
7958 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
7959 case "$host_os" in
7960 linux*)
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7962 $as_echo "yes" >&6; }
7964 # Life's too short to deal with trying to get this to compile
7965 # if you don't get the right types defined with
7966 # __KERNEL_STRICT_NAMES getting defined by some other include.
7968 # Check whether the includes Just Work. If not, don't turn on
7969 # netfilter support.
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
7972 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
7973 if ${ac_cv_netfilter_can_compile+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7979 $ac_includes_default
7980 #include <sys/socket.h>
7981 #include <netinet/in.h>
7982 #include <linux/types.h>
7984 #include <linux/netlink.h>
7985 #include <linux/netfilter.h>
7986 #include <linux/netfilter/nfnetlink.h>
7987 #include <linux/netfilter/nfnetlink_log.h>
7988 #include <linux/netfilter/nfnetlink_queue.h>
7990 main ()
7994 return 0;
7996 _ACEOF
7997 if ac_fn_c_try_compile "$LINENO"; then :
7998 ac_cv_netfilter_can_compile=yes
7999 else
8000 ac_cv_netfilter_can_compile=no
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
8006 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
8007 if test $ac_cv_netfilter_can_compile = yes ; then
8009 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
8011 NETFILTER_SRC=pcap-netfilter-linux.c
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8018 esac
8022 # Check whether --enable-bluetooth was given.
8023 if test "${enable_bluetooth+set}" = set; then :
8024 enableval=$enable_bluetooth;
8025 else
8026 enable_bluetooth=ifsupportavailable
8030 if test "x$enable_bluetooth" != "xno" ; then
8031 case "$host_os" in
8032 linux*)
8033 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8034 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8037 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
8039 BT_SRC=pcap-bt-linux.c
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
8041 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
8044 # OK, does struct sockaddr_hci have an hci_channel
8045 # member?
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_hci has hci_channel member" >&5
8048 $as_echo_n "checking if struct sockaddr_hci has hci_channel member... " >&6; }
8049 if ${ac_cv_lbl_sockaddr_hci_has_hci_channel+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8055 #include <bluetooth/bluetooth.h>
8056 #include <bluetooth/hci.h>
8059 main ()
8061 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
8063 return 0;
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067 ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
8068 else
8069 ac_cv_lbl_sockaddr_hci_has_hci_channel=no
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
8075 $as_echo "$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
8076 if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
8078 $as_echo "#define SOCKADDR_HCI_HAS_HCI_CHANNEL /**/" >>confdefs.h
8082 # OK, is HCI_CHANNEL_MONITOR defined?
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
8085 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
8086 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8092 #include <bluetooth/bluetooth.h>
8093 #include <bluetooth/hci.h>
8096 main ()
8098 u_int i = HCI_CHANNEL_MONITOR
8100 return 0;
8102 _ACEOF
8103 if ac_fn_c_try_compile "$LINENO"; then :
8104 ac_cv_lbl_hci_channel_monitor_is_defined=yes
8105 else
8106 ac_cv_lbl_hci_channel_monitor_is_defined=no
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_hci_channel_monitor_is_defined" >&5
8112 $as_echo "$ac_cv_lbl_hci_channel_monitor_is_defined" >&6; }
8113 if test $ac_cv_lbl_hci_channel_monitor_is_defined = yes ; then
8115 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
8117 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
8120 ac_lbl_bluetooth_available=yes
8122 else
8123 ac_lbl_bluetooth_available=no
8128 if test "x$ac_lbl_bluetooth_available" == "xno" ; then
8129 if test "x$enable_bluetooth" = "xyes" ; then
8130 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
8133 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
8138 if test "x$enable_bluetooth" = "xyes" ; then
8139 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
8140 else
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
8142 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
8145 esac
8151 # Check whether --enable-canusb was given.
8152 if test "${enable_canusb+set}" = set; then :
8153 enableval=$enable_canusb;
8154 else
8155 enable_canusb=ifsupportavailable
8159 if test "x$enable_canusb" != "xno" ; then
8160 case "$host_os" in
8161 linux*|uclinux*)
8162 ac_fn_c_check_header_mongrel "$LINENO" "libusb-1.0/libusb.h" "ac_cv_header_libusb_1_0_libusb_h" "$ac_includes_default"
8163 if test "x$ac_cv_header_libusb_1_0_libusb_h" = xyes; then :
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -lusb-1.0" >&5
8166 $as_echo_n "checking for libusb_init in -lusb-1.0... " >&6; }
8167 if ${ac_cv_lib_usb_1_0_libusb_init+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 ac_check_lib_save_LIBS=$LIBS
8171 LIBS="-lusb-1.0 -lpthread
8172 $LIBS"
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8176 /* Override any GCC internal prototype to avoid an error.
8177 Use char because int might match the return type of a GCC
8178 builtin and then its argument prototype would still apply. */
8179 #ifdef __cplusplus
8180 extern "C"
8181 #endif
8182 char libusb_init ();
8184 main ()
8186 return libusb_init ();
8188 return 0;
8190 _ACEOF
8191 if ac_fn_c_try_link "$LINENO"; then :
8192 ac_cv_lib_usb_1_0_libusb_init=yes
8193 else
8194 ac_cv_lib_usb_1_0_libusb_init=no
8196 rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8198 LIBS=$ac_check_lib_save_LIBS
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_1_0_libusb_init" >&5
8201 $as_echo "$ac_cv_lib_usb_1_0_libusb_init" >&6; }
8202 if test "x$ac_cv_lib_usb_1_0_libusb_init" = xyes; then :
8205 $as_echo "#define PCAP_SUPPORT_CANUSB 1" >>confdefs.h
8207 CANUSB_SRC=pcap-canusb-linux.c
8208 LIBS="-lusb-1.0 -lpthread $LIBS"
8209 ac_lbl_has_libusb=yes
8211 else
8212 ac_lbl_has_libusb=no
8216 else
8217 ac_lbl_has_libusb=no
8222 if test "x$ac_lbl_has_libusb" = "xyes" ; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is supported" >&5
8224 $as_echo "$as_me: canusb sniffing is supported" >&6;}
8225 else
8226 if test "x$enable_canusb" = "xyes" ; then
8227 as_fn_error $? "canusb sniffing is not supported; install libusb1.0 lib devel to enable it" "$LINENO" 5
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&5
8230 $as_echo "$as_me: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&6;}
8235 if test "x$enable_canusb" = "xyes" ; then
8236 as_fn_error $? "no canusb support implemented for $host_os" "$LINENO" 5
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: no canusb support implemented for $host_os" >&5
8239 $as_echo "$as_me: no canusb support implemented for $host_os" >&6;}
8242 esac
8247 # Check whether --enable-can was given.
8248 if test "${enable_can+set}" = set; then :
8249 enableval=$enable_can;
8250 else
8251 enable_can=ifsupportavailable
8255 if test "x$enable_can" != "xno" ; then
8256 case "$host_os" in
8257 linux*)
8258 ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "#include <sys/socket.h>
8261 if test "x$ac_cv_header_linux_can_h" = xyes; then :
8264 $as_echo "#define PCAP_SUPPORT_CAN 1" >>confdefs.h
8266 CAN_SRC=pcap-can-linux.c
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is supported" >&5
8268 $as_echo "$as_me: CAN sniffing is supported" >&6;}
8270 else
8272 if test "x$enable_can" = "xyes" ; then
8273 as_fn_error $? "CAN sniffing is not supported" "$LINENO" 5
8274 else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is not supported" >&5
8276 $as_echo "$as_me: CAN sniffing is not supported" >&6;}
8284 if test "x$enable_can" = "xyes" ; then
8285 as_fn_error $? "no CAN sniffing support implemented for $host_os" "$LINENO" 5
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: no CAN sniffing support implemented for $host_os" >&5
8288 $as_echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
8291 esac
8296 # Check whether --enable-dbus was given.
8297 if test "${enable_dbus+set}" = set; then :
8298 enableval=$enable_dbus;
8299 else
8300 enable_dbus=ifavailable
8304 if test "x$enable_dbus" != "xno"; then
8305 if test "x$enable_dbus" = "xyes"; then
8306 case "$host_os" in
8308 darwin*)
8310 # We don't support D-Bus sniffing on OS X; see
8312 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8314 # The user requested it, so fail.
8316 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on OS X" "$LINENO" 5
8317 esac
8318 else
8319 case "$host_os" in
8321 darwin*)
8323 # We don't support D-Bus sniffing on OS X; see
8325 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8327 # The user dind't explicitly request it, so just
8328 # silently refuse to enable it.
8330 enable_dbus="no"
8332 esac
8336 if test "x$enable_dbus" != "xno"; then
8337 # Extract the first word of "pkg-config", so it can be a program name with args.
8338 set dummy pkg-config; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_prog_PKGCONFIG+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 if test -n "$PKGCONFIG"; then
8345 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8354 ac_cv_prog_PKGCONFIG="pkg-config"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8358 done
8359 done
8360 IFS=$as_save_IFS
8362 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
8365 PKGCONFIG=$ac_cv_prog_PKGCONFIG
8366 if test -n "$PKGCONFIG"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8368 $as_echo "$PKGCONFIG" >&6; }
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8375 if test "x$PKGCONFIG" != "xno"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
8377 $as_echo_n "checking for D-Bus... " >&6; }
8378 if "$PKGCONFIG" dbus-1; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8380 $as_echo "yes" >&6; }
8381 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
8382 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
8383 save_CFLAGS="$CFLAGS"
8384 save_LIBS="$LIBS"
8385 CFLAGS="$CFLAGS $DBUS_CFLAGS"
8386 LIBS="$LIBS $DBUS_LIBS"
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
8388 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8391 #include <string.h>
8393 #include <time.h>
8394 #include <sys/time.h>
8396 #include <dbus/dbus.h>
8398 main ()
8400 return dbus_connection_read_write(NULL, 0);
8402 return 0;
8404 _ACEOF
8405 if ac_fn_c_try_link "$LINENO"; then :
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8408 $as_echo "yes" >&6; }
8410 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
8412 DBUS_SRC=pcap-dbus.c
8413 V_INCLS="$V_INCLS $DBUS_CFLAGS"
8415 else
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 if test "x$enable_dbus" = "xyes"; then
8420 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
8422 LIBS="$save_LIBS"
8425 rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext conftest.$ac_ext
8427 CFLAGS="$save_CFLAGS"
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 if test "x$enable_dbus" = "xyes"; then
8432 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
8440 case "$host_os" in
8441 linux*)
8442 for ac_header in linux/net_tstamp.h
8443 do :
8444 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
8445 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
8446 cat >>confdefs.h <<_ACEOF
8447 #define HAVE_LINUX_NET_TSTAMP_H 1
8448 _ACEOF
8452 done
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
8457 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
8459 esac
8461 # Check whether --enable-packet-ring was given.
8462 if test "${enable_packet_ring+set}" = set; then :
8463 enableval=$enable_packet_ring;
8464 else
8465 enable_packet_ring=yes
8469 if test "x$enable_packet_ring" != "xno" ; then
8471 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
8476 # Find a good install program. We prefer a C program (faster),
8477 # so one script is as good as another. But avoid the broken or
8478 # incompatible versions:
8479 # SysV /etc/install, /usr/sbin/install
8480 # SunOS /usr/etc/install
8481 # IRIX /sbin/install
8482 # AIX /bin/install
8483 # AmigaOS /C/install, which installs bootblocks on floppy discs
8484 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8485 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8486 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8487 # OS/2's system install, which has a completely different semantic
8488 # ./install, which can be erroneously created by make from ./install.sh.
8489 # Reject install programs that cannot install multiple files.
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8491 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8492 if test -z "$INSTALL"; then
8493 if ${ac_cv_path_install+:} false; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 # Account for people who put trailing slashes in PATH elements.
8502 case $as_dir/ in #((
8503 ./ | .// | /[cC]/* | \
8504 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8505 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8506 /usr/ucb/* ) ;;
8508 # OSF1 and SCO ODT 3.0 have their own names for install.
8509 # Don't use installbsd from OSF since it installs stuff as root
8510 # by default.
8511 for ac_prog in ginstall scoinst install; do
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8514 if test $ac_prog = install &&
8515 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8516 # AIX install. It has an incompatible calling convention.
8518 elif test $ac_prog = install &&
8519 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8520 # program-specific install script used by HP pwplus--don't use.
8522 else
8523 rm -rf conftest.one conftest.two conftest.dir
8524 echo one > conftest.one
8525 echo two > conftest.two
8526 mkdir conftest.dir
8527 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8528 test -s conftest.one && test -s conftest.two &&
8529 test -s conftest.dir/conftest.one &&
8530 test -s conftest.dir/conftest.two
8531 then
8532 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8533 break 3
8537 done
8538 done
8540 esac
8542 done
8543 IFS=$as_save_IFS
8545 rm -rf conftest.one conftest.two conftest.dir
8548 if test "${ac_cv_path_install+set}" = set; then
8549 INSTALL=$ac_cv_path_install
8550 else
8551 # As a last resort, use the slow shell script. Don't cache a
8552 # value for INSTALL within a source directory, because that will
8553 # break other packages using the cache if that directory is
8554 # removed, or if the value is a relative name.
8555 INSTALL=$ac_install_sh
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8559 $as_echo "$INSTALL" >&6; }
8561 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8562 # It thinks the first close brace ends the variable substitution.
8563 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8565 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8567 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8570 ac_config_headers="$ac_config_headers config.h"
8573 ac_config_commands="$ac_config_commands default-1"
8575 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_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap"
8577 cat >confcache <<\_ACEOF
8578 # This file is a shell script that caches the results of configure
8579 # tests run on this system so they can be shared between configure
8580 # scripts and configure runs, see configure's option --config-cache.
8581 # It is not useful on other systems. If it contains results you don't
8582 # want to keep, you may remove or edit it.
8584 # config.status only pays attention to the cache file if you give it
8585 # the --recheck option to rerun configure.
8587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8589 # following values.
8591 _ACEOF
8593 # The following way of writing the cache mishandles newlines in values,
8594 # but we know of no workaround that is simple, portable, and efficient.
8595 # So, we kill variables containing newlines.
8596 # Ultrix sh set writes to stderr and can't be redirected directly,
8597 # and sets the high bit in the cache file unless we assign to the vars.
8599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8600 eval ac_val=\$$ac_var
8601 case $ac_val in #(
8602 *${as_nl}*)
8603 case $ac_var in #(
8604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8606 esac
8607 case $ac_var in #(
8608 _ | IFS | as_nl) ;; #(
8609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8610 *) { eval $ac_var=; unset $ac_var;} ;;
8611 esac ;;
8612 esac
8613 done
8615 (set) 2>&1 |
8616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8617 *${as_nl}ac_space=\ *)
8618 # `set' does not quote correctly, so add quotes: double-quote
8619 # substitution turns \\\\ into \\, and sed turns \\ into \.
8620 sed -n \
8621 "s/'/'\\\\''/g;
8622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8623 ;; #(
8625 # `set' quotes correctly as required by POSIX, so do not add quotes.
8626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8628 esac |
8629 sort
8631 sed '
8632 /^ac_cv_env_/b end
8633 t clear
8634 :clear
8635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8636 t end
8637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8638 :end' >>confcache
8639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8640 if test -w "$cache_file"; then
8641 if test "x$cache_file" != "x/dev/null"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8643 $as_echo "$as_me: updating cache $cache_file" >&6;}
8644 if test ! -f "$cache_file" || test -h "$cache_file"; then
8645 cat confcache >"$cache_file"
8646 else
8647 case $cache_file in #(
8648 */* | ?:*)
8649 mv -f confcache "$cache_file"$$ &&
8650 mv -f "$cache_file"$$ "$cache_file" ;; #(
8652 mv -f confcache "$cache_file" ;;
8653 esac
8656 else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8658 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8661 rm -f confcache
8663 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8664 # Let make expand exec_prefix.
8665 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8667 DEFS=-DHAVE_CONFIG_H
8669 ac_libobjs=
8670 ac_ltlibobjs=
8672 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8673 # 1. Remove the extension, and $U if already installed.
8674 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8675 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8676 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8677 # will be set to the directory where LIBOBJS objects are built.
8678 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8679 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8680 done
8681 LIBOBJS=$ac_libobjs
8683 LTLIBOBJS=$ac_ltlibobjs
8687 : "${CONFIG_STATUS=./config.status}"
8688 ac_write_fail=0
8689 ac_clean_files_save=$ac_clean_files
8690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8692 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8693 as_write_fail=0
8694 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8695 #! $SHELL
8696 # Generated by $as_me.
8697 # Run this file to recreate the current configuration.
8698 # Compiler output produced by configure, useful for debugging
8699 # configure, is in config.log if it exists.
8701 debug=false
8702 ac_cs_recheck=false
8703 ac_cs_silent=false
8705 SHELL=\${CONFIG_SHELL-$SHELL}
8706 export SHELL
8707 _ASEOF
8708 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8709 ## -------------------- ##
8710 ## M4sh Initialization. ##
8711 ## -------------------- ##
8713 # Be more Bourne compatible
8714 DUALCASE=1; export DUALCASE # for MKS sh
8715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8716 emulate sh
8717 NULLCMD=:
8718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8719 # is contrary to our usage. Disable this feature.
8720 alias -g '${1+"$@"}'='"$@"'
8721 setopt NO_GLOB_SUBST
8722 else
8723 case `(set -o) 2>/dev/null` in #(
8724 *posix*) :
8725 set -o posix ;; #(
8726 *) :
8728 esac
8732 as_nl='
8734 export as_nl
8735 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8736 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8739 # Prefer a ksh shell builtin over an external printf program on Solaris,
8740 # but without wasting forks for bash or zsh.
8741 if test -z "$BASH_VERSION$ZSH_VERSION" \
8742 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8743 as_echo='print -r --'
8744 as_echo_n='print -rn --'
8745 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8746 as_echo='printf %s\n'
8747 as_echo_n='printf %s'
8748 else
8749 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8750 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8751 as_echo_n='/usr/ucb/echo -n'
8752 else
8753 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8754 as_echo_n_body='eval
8755 arg=$1;
8756 case $arg in #(
8757 *"$as_nl"*)
8758 expr "X$arg" : "X\\(.*\\)$as_nl";
8759 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8760 esac;
8761 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8763 export as_echo_n_body
8764 as_echo_n='sh -c $as_echo_n_body as_echo'
8766 export as_echo_body
8767 as_echo='sh -c $as_echo_body as_echo'
8770 # The user is always right.
8771 if test "${PATH_SEPARATOR+set}" != set; then
8772 PATH_SEPARATOR=:
8773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8775 PATH_SEPARATOR=';'
8780 # IFS
8781 # We need space, tab and new line, in precisely that order. Quoting is
8782 # there to prevent editors from complaining about space-tab.
8783 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8784 # splitting by setting IFS to empty value.)
8785 IFS=" "" $as_nl"
8787 # Find who we are. Look in the path if we contain no directory separator.
8788 as_myself=
8789 case $0 in #((
8790 *[\\/]* ) as_myself=$0 ;;
8791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 for as_dir in $PATH
8794 IFS=$as_save_IFS
8795 test -z "$as_dir" && as_dir=.
8796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8797 done
8798 IFS=$as_save_IFS
8801 esac
8802 # We did not find ourselves, most probably we were run as `sh COMMAND'
8803 # in which case we are not to be found in the path.
8804 if test "x$as_myself" = x; then
8805 as_myself=$0
8807 if test ! -f "$as_myself"; then
8808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8809 exit 1
8812 # Unset variables that we do not need and which cause bugs (e.g. in
8813 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8814 # suppresses any "Segmentation fault" message there. '((' could
8815 # trigger a bug in pdksh 5.2.14.
8816 for as_var in BASH_ENV ENV MAIL MAILPATH
8817 do eval test x\${$as_var+set} = xset \
8818 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8819 done
8820 PS1='$ '
8821 PS2='> '
8822 PS4='+ '
8824 # NLS nuisances.
8825 LC_ALL=C
8826 export LC_ALL
8827 LANGUAGE=C
8828 export LANGUAGE
8830 # CDPATH.
8831 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8834 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8835 # ----------------------------------------
8836 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8837 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8838 # script with STATUS, using 1 if that was 0.
8839 as_fn_error ()
8841 as_status=$1; test $as_status -eq 0 && as_status=1
8842 if test "$4"; then
8843 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8846 $as_echo "$as_me: error: $2" >&2
8847 as_fn_exit $as_status
8848 } # as_fn_error
8851 # as_fn_set_status STATUS
8852 # -----------------------
8853 # Set $? to STATUS, without forking.
8854 as_fn_set_status ()
8856 return $1
8857 } # as_fn_set_status
8859 # as_fn_exit STATUS
8860 # -----------------
8861 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8862 as_fn_exit ()
8864 set +e
8865 as_fn_set_status $1
8866 exit $1
8867 } # as_fn_exit
8869 # as_fn_unset VAR
8870 # ---------------
8871 # Portably unset VAR.
8872 as_fn_unset ()
8874 { eval $1=; unset $1;}
8876 as_unset=as_fn_unset
8877 # as_fn_append VAR VALUE
8878 # ----------------------
8879 # Append the text in VALUE to the end of the definition contained in VAR. Take
8880 # advantage of any shell optimizations that allow amortized linear growth over
8881 # repeated appends, instead of the typical quadratic growth present in naive
8882 # implementations.
8883 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8884 eval 'as_fn_append ()
8886 eval $1+=\$2
8888 else
8889 as_fn_append ()
8891 eval $1=\$$1\$2
8893 fi # as_fn_append
8895 # as_fn_arith ARG...
8896 # ------------------
8897 # Perform arithmetic evaluation on the ARGs, and store the result in the
8898 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8899 # must be portable across $(()) and expr.
8900 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8901 eval 'as_fn_arith ()
8903 as_val=$(( $* ))
8905 else
8906 as_fn_arith ()
8908 as_val=`expr "$@" || test $? -eq 1`
8910 fi # as_fn_arith
8913 if expr a : '\(a\)' >/dev/null 2>&1 &&
8914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8915 as_expr=expr
8916 else
8917 as_expr=false
8920 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8921 as_basename=basename
8922 else
8923 as_basename=false
8926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8927 as_dirname=dirname
8928 else
8929 as_dirname=false
8932 as_me=`$as_basename -- "$0" ||
8933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8934 X"$0" : 'X\(//\)$' \| \
8935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8936 $as_echo X/"$0" |
8937 sed '/^.*\/\([^/][^/]*\)\/*$/{
8938 s//\1/
8941 /^X\/\(\/\/\)$/{
8942 s//\1/
8945 /^X\/\(\/\).*/{
8946 s//\1/
8949 s/.*/./; q'`
8951 # Avoid depending upon Character Ranges.
8952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8955 as_cr_digits='0123456789'
8956 as_cr_alnum=$as_cr_Letters$as_cr_digits
8958 ECHO_C= ECHO_N= ECHO_T=
8959 case `echo -n x` in #(((((
8960 -n*)
8961 case `echo 'xy\c'` in
8962 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8963 xy) ECHO_C='\c';;
8964 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8965 ECHO_T=' ';;
8966 esac;;
8968 ECHO_N='-n';;
8969 esac
8971 rm -f conf$$ conf$$.exe conf$$.file
8972 if test -d conf$$.dir; then
8973 rm -f conf$$.dir/conf$$.file
8974 else
8975 rm -f conf$$.dir
8976 mkdir conf$$.dir 2>/dev/null
8978 if (echo >conf$$.file) 2>/dev/null; then
8979 if ln -s conf$$.file conf$$ 2>/dev/null; then
8980 as_ln_s='ln -s'
8981 # ... but there are two gotchas:
8982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8984 # In both cases, we have to default to `cp -pR'.
8985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8986 as_ln_s='cp -pR'
8987 elif ln conf$$.file conf$$ 2>/dev/null; then
8988 as_ln_s=ln
8989 else
8990 as_ln_s='cp -pR'
8992 else
8993 as_ln_s='cp -pR'
8995 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8996 rmdir conf$$.dir 2>/dev/null
8999 # as_fn_mkdir_p
9000 # -------------
9001 # Create "$as_dir" as a directory, including parents if necessary.
9002 as_fn_mkdir_p ()
9005 case $as_dir in #(
9006 -*) as_dir=./$as_dir;;
9007 esac
9008 test -d "$as_dir" || eval $as_mkdir_p || {
9009 as_dirs=
9010 while :; do
9011 case $as_dir in #(
9012 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9013 *) as_qdir=$as_dir;;
9014 esac
9015 as_dirs="'$as_qdir' $as_dirs"
9016 as_dir=`$as_dirname -- "$as_dir" ||
9017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9018 X"$as_dir" : 'X\(//\)[^/]' \| \
9019 X"$as_dir" : 'X\(//\)$' \| \
9020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9021 $as_echo X"$as_dir" |
9022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9023 s//\1/
9026 /^X\(\/\/\)[^/].*/{
9027 s//\1/
9030 /^X\(\/\/\)$/{
9031 s//\1/
9034 /^X\(\/\).*/{
9035 s//\1/
9038 s/.*/./; q'`
9039 test -d "$as_dir" && break
9040 done
9041 test -z "$as_dirs" || eval "mkdir $as_dirs"
9042 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9045 } # as_fn_mkdir_p
9046 if mkdir -p . 2>/dev/null; then
9047 as_mkdir_p='mkdir -p "$as_dir"'
9048 else
9049 test -d ./-p && rmdir ./-p
9050 as_mkdir_p=false
9054 # as_fn_executable_p FILE
9055 # -----------------------
9056 # Test if FILE is an executable regular file.
9057 as_fn_executable_p ()
9059 test -f "$1" && test -x "$1"
9060 } # as_fn_executable_p
9061 as_test_x='test -x'
9062 as_executable_p=as_fn_executable_p
9064 # Sed expression to map a string onto a valid CPP name.
9065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9067 # Sed expression to map a string onto a valid variable name.
9068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9071 exec 6>&1
9072 ## ----------------------------------- ##
9073 ## Main body of $CONFIG_STATUS script. ##
9074 ## ----------------------------------- ##
9075 _ASEOF
9076 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9079 # Save the log message, to keep $0 and so on meaningful, and to
9080 # report actual input values of CONFIG_FILES etc. instead of their
9081 # values after options handling.
9082 ac_log="
9083 This file was extended by $as_me, which was
9084 generated by GNU Autoconf 2.69. Invocation command line was
9086 CONFIG_FILES = $CONFIG_FILES
9087 CONFIG_HEADERS = $CONFIG_HEADERS
9088 CONFIG_LINKS = $CONFIG_LINKS
9089 CONFIG_COMMANDS = $CONFIG_COMMANDS
9090 $ $0 $@
9092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9095 _ACEOF
9097 case $ac_config_files in *"
9098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9099 esac
9101 case $ac_config_headers in *"
9102 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9103 esac
9106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9107 # Files that config.status was made for.
9108 config_files="$ac_config_files"
9109 config_headers="$ac_config_headers"
9110 config_commands="$ac_config_commands"
9112 _ACEOF
9114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9115 ac_cs_usage="\
9116 \`$as_me' instantiates files and other configuration actions
9117 from templates according to the current configuration. Unless the files
9118 and actions are specified as TAGs, all are instantiated by default.
9120 Usage: $0 [OPTION]... [TAG]...
9122 -h, --help print this help, then exit
9123 -V, --version print version number and configuration settings, then exit
9124 --config print configuration, then exit
9125 -q, --quiet, --silent
9126 do not print progress messages
9127 -d, --debug don't remove temporary files
9128 --recheck update $as_me by reconfiguring in the same conditions
9129 --file=FILE[:TEMPLATE]
9130 instantiate the configuration file FILE
9131 --header=FILE[:TEMPLATE]
9132 instantiate the configuration header FILE
9134 Configuration files:
9135 $config_files
9137 Configuration headers:
9138 $config_headers
9140 Configuration commands:
9141 $config_commands
9143 Report bugs to the package provider."
9145 _ACEOF
9146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9147 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9148 ac_cs_version="\\
9149 config.status
9150 configured by $0, generated by GNU Autoconf 2.69,
9151 with options \\"\$ac_cs_config\\"
9153 Copyright (C) 2012 Free Software Foundation, Inc.
9154 This config.status script is free software; the Free Software Foundation
9155 gives unlimited permission to copy, distribute and modify it."
9157 ac_pwd='$ac_pwd'
9158 srcdir='$srcdir'
9159 INSTALL='$INSTALL'
9160 test -n "\$AWK" || AWK=awk
9161 _ACEOF
9163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9164 # The default lists apply if the user does not specify any file.
9165 ac_need_defaults=:
9166 while test $# != 0
9168 case $1 in
9169 --*=?*)
9170 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9171 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9172 ac_shift=:
9174 --*=)
9175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9176 ac_optarg=
9177 ac_shift=:
9180 ac_option=$1
9181 ac_optarg=$2
9182 ac_shift=shift
9184 esac
9186 case $ac_option in
9187 # Handling of the options.
9188 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9189 ac_cs_recheck=: ;;
9190 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9191 $as_echo "$ac_cs_version"; exit ;;
9192 --config | --confi | --conf | --con | --co | --c )
9193 $as_echo "$ac_cs_config"; exit ;;
9194 --debug | --debu | --deb | --de | --d | -d )
9195 debug=: ;;
9196 --file | --fil | --fi | --f )
9197 $ac_shift
9198 case $ac_optarg in
9199 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9200 '') as_fn_error $? "missing file argument" ;;
9201 esac
9202 as_fn_append CONFIG_FILES " '$ac_optarg'"
9203 ac_need_defaults=false;;
9204 --header | --heade | --head | --hea )
9205 $ac_shift
9206 case $ac_optarg in
9207 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9208 esac
9209 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9210 ac_need_defaults=false;;
9211 --he | --h)
9212 # Conflict between --help and --header
9213 as_fn_error $? "ambiguous option: \`$1'
9214 Try \`$0 --help' for more information.";;
9215 --help | --hel | -h )
9216 $as_echo "$ac_cs_usage"; exit ;;
9217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9218 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9219 ac_cs_silent=: ;;
9221 # This is an error.
9222 -*) as_fn_error $? "unrecognized option: \`$1'
9223 Try \`$0 --help' for more information." ;;
9225 *) as_fn_append ac_config_targets " $1"
9226 ac_need_defaults=false ;;
9228 esac
9229 shift
9230 done
9232 ac_configure_extra_args=
9234 if $ac_cs_silent; then
9235 exec 6>/dev/null
9236 ac_configure_extra_args="$ac_configure_extra_args --silent"
9239 _ACEOF
9240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9241 if \$ac_cs_recheck; then
9242 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9243 shift
9244 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9245 CONFIG_SHELL='$SHELL'
9246 export CONFIG_SHELL
9247 exec "\$@"
9250 _ACEOF
9251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9252 exec 5>>config.log
9254 echo
9255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9256 ## Running $as_me. ##
9257 _ASBOX
9258 $as_echo "$ac_log"
9259 } >&5
9261 _ACEOF
9262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9264 # INIT-COMMANDS
9268 _ACEOF
9270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9272 # Handling of arguments.
9273 for ac_config_target in $ac_config_targets
9275 case $ac_config_target in
9276 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9277 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9278 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9279 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
9280 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
9281 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
9282 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
9283 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
9284 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
9285 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
9286 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
9287 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
9288 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
9289 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
9290 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
9291 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
9292 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
9293 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
9295 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9296 esac
9297 done
9300 # If the user did not use the arguments to specify the items to instantiate,
9301 # then the envvar interface is used. Set only those that are not.
9302 # We use the long form for the default assignment because of an extremely
9303 # bizarre bug on SunOS 4.1.3.
9304 if $ac_need_defaults; then
9305 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9306 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9307 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9310 # Have a temporary directory for convenience. Make it in the build tree
9311 # simply because there is no reason against having it here, and in addition,
9312 # creating and moving files from /tmp can sometimes cause problems.
9313 # Hook for its removal unless debugging.
9314 # Note that there is a small window in which the directory will not be cleaned:
9315 # after its creation but before its name has been assigned to `$tmp'.
9316 $debug ||
9318 tmp= ac_tmp=
9319 trap 'exit_status=$?
9320 : "${ac_tmp:=$tmp}"
9321 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9323 trap 'as_fn_exit 1' 1 2 13 15
9325 # Create a (secure) tmp directory for tmp files.
9328 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9329 test -d "$tmp"
9330 } ||
9332 tmp=./conf$$-$RANDOM
9333 (umask 077 && mkdir "$tmp")
9334 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9335 ac_tmp=$tmp
9337 # Set up the scripts for CONFIG_FILES section.
9338 # No need to generate them if there are no CONFIG_FILES.
9339 # This happens for instance with `./config.status config.h'.
9340 if test -n "$CONFIG_FILES"; then
9343 ac_cr=`echo X | tr X '\015'`
9344 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9345 # But we know of no other shell where ac_cr would be empty at this
9346 # point, so we can use a bashism as a fallback.
9347 if test "x$ac_cr" = x; then
9348 eval ac_cr=\$\'\\r\'
9350 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9351 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9352 ac_cs_awk_cr='\\r'
9353 else
9354 ac_cs_awk_cr=$ac_cr
9357 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9358 _ACEOF
9362 echo "cat >conf$$subs.awk <<_ACEOF" &&
9363 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9364 echo "_ACEOF"
9365 } >conf$$subs.sh ||
9366 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9367 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9368 ac_delim='%!_!# '
9369 for ac_last_try in false false false false false :; do
9370 . ./conf$$subs.sh ||
9371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9373 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9374 if test $ac_delim_n = $ac_delim_num; then
9375 break
9376 elif $ac_last_try; then
9377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9378 else
9379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9381 done
9382 rm -f conf$$subs.sh
9384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9385 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9386 _ACEOF
9387 sed -n '
9389 s/^/S["/; s/!.*/"]=/
9392 s/^[^!]*!//
9393 :repl
9394 t repl
9395 s/'"$ac_delim"'$//
9396 t delim
9399 s/\(.\{148\}\)..*/\1/
9400 t more1
9401 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9404 b repl
9405 :more1
9406 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9409 s/.\{148\}//
9410 t nl
9411 :delim
9413 s/\(.\{148\}\)..*/\1/
9414 t more2
9415 s/["\\]/\\&/g; s/^/"/; s/$/"/
9418 :more2
9419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9422 s/.\{148\}//
9423 t delim
9424 ' <conf$$subs.awk | sed '
9425 /^[^""]/{
9427 s/\n//
9429 ' >>$CONFIG_STATUS || ac_write_fail=1
9430 rm -f conf$$subs.awk
9431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9432 _ACAWK
9433 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9434 for (key in S) S_is_set[key] = 1
9435 FS = "\a"
9439 line = $ 0
9440 nfields = split(line, field, "@")
9441 substed = 0
9442 len = length(field[1])
9443 for (i = 2; i < nfields; i++) {
9444 key = field[i]
9445 keylen = length(key)
9446 if (S_is_set[key]) {
9447 value = S[key]
9448 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9449 len += length(value) + length(field[++i])
9450 substed = 1
9451 } else
9452 len += 1 + keylen
9455 print line
9458 _ACAWK
9459 _ACEOF
9460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9461 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9462 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9463 else
9465 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9466 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9467 _ACEOF
9469 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9470 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9471 # trailing colons and then remove the whole line if VPATH becomes empty
9472 # (actually we leave an empty line to preserve line numbers).
9473 if test "x$srcdir" = x.; then
9474 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9476 s///
9477 s/^/:/
9478 s/[ ]*$/:/
9479 s/:\$(srcdir):/:/g
9480 s/:\${srcdir}:/:/g
9481 s/:@srcdir@:/:/g
9482 s/^:*//
9483 s/:*$//
9485 s/\(=[ ]*\).*/\1/
9487 s/\n//
9488 s/^[^=]*=[ ]*$//
9492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9493 fi # test -n "$CONFIG_FILES"
9495 # Set up the scripts for CONFIG_HEADERS section.
9496 # No need to generate them if there are no CONFIG_HEADERS.
9497 # This happens for instance with `./config.status Makefile'.
9498 if test -n "$CONFIG_HEADERS"; then
9499 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9500 BEGIN {
9501 _ACEOF
9503 # Transform confdefs.h into an awk script `defines.awk', embedded as
9504 # here-document in config.status, that substitutes the proper values into
9505 # config.h.in to produce config.h.
9507 # Create a delimiter string that does not exist in confdefs.h, to ease
9508 # handling of long lines.
9509 ac_delim='%!_!# '
9510 for ac_last_try in false false :; do
9511 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9512 if test -z "$ac_tt"; then
9513 break
9514 elif $ac_last_try; then
9515 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9516 else
9517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9519 done
9521 # For the awk script, D is an array of macro values keyed by name,
9522 # likewise P contains macro parameters if any. Preserve backslash
9523 # newline sequences.
9525 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9526 sed -n '
9527 s/.\{148\}/&'"$ac_delim"'/g
9528 t rset
9529 :rset
9530 s/^[ ]*#[ ]*define[ ][ ]*/ /
9531 t def
9533 :def
9534 s/\\$//
9535 t bsnl
9536 s/["\\]/\\&/g
9537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9538 D["\1"]=" \3"/p
9539 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9541 :bsnl
9542 s/["\\]/\\&/g
9543 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9544 D["\1"]=" \3\\\\\\n"\\/p
9545 t cont
9546 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9547 t cont
9549 :cont
9551 s/.\{148\}/&'"$ac_delim"'/g
9552 t clear
9553 :clear
9554 s/\\$//
9555 t bsnlc
9556 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9558 :bsnlc
9559 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9560 b cont
9561 ' <confdefs.h | sed '
9562 s/'"$ac_delim"'/"\\\
9563 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9566 for (key in D) D_is_set[key] = 1
9567 FS = "\a"
9569 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9570 line = \$ 0
9571 split(line, arg, " ")
9572 if (arg[1] == "#") {
9573 defundef = arg[2]
9574 mac1 = arg[3]
9575 } else {
9576 defundef = substr(arg[1], 2)
9577 mac1 = arg[2]
9579 split(mac1, mac2, "(") #)
9580 macro = mac2[1]
9581 prefix = substr(line, 1, index(line, defundef) - 1)
9582 if (D_is_set[macro]) {
9583 # Preserve the white space surrounding the "#".
9584 print prefix "define", macro P[macro] D[macro]
9585 next
9586 } else {
9587 # Replace #undef with comments. This is necessary, for example,
9588 # in the case of _POSIX_SOURCE, which is predefined and required
9589 # on some systems where configure will not decide to define it.
9590 if (defundef == "undef") {
9591 print "/*", prefix defundef, macro, "*/"
9592 next
9596 { print }
9597 _ACAWK
9598 _ACEOF
9599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9600 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9601 fi # test -n "$CONFIG_HEADERS"
9604 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9605 shift
9606 for ac_tag
9608 case $ac_tag in
9609 :[FHLC]) ac_mode=$ac_tag; continue;;
9610 esac
9611 case $ac_mode$ac_tag in
9612 :[FHL]*:*);;
9613 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9614 :[FH]-) ac_tag=-:-;;
9615 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9616 esac
9617 ac_save_IFS=$IFS
9618 IFS=:
9619 set x $ac_tag
9620 IFS=$ac_save_IFS
9621 shift
9622 ac_file=$1
9623 shift
9625 case $ac_mode in
9626 :L) ac_source=$1;;
9627 :[FH])
9628 ac_file_inputs=
9629 for ac_f
9631 case $ac_f in
9632 -) ac_f="$ac_tmp/stdin";;
9633 *) # Look for the file first in the build tree, then in the source tree
9634 # (if the path is not absolute). The absolute path cannot be DOS-style,
9635 # because $ac_f cannot contain `:'.
9636 test -f "$ac_f" ||
9637 case $ac_f in
9638 [\\/$]*) false;;
9639 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9640 esac ||
9641 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9642 esac
9643 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9644 as_fn_append ac_file_inputs " '$ac_f'"
9645 done
9647 # Let's still pretend it is `configure' which instantiates (i.e., don't
9648 # use $as_me), people would be surprised to read:
9649 # /* config.h. Generated by config.status. */
9650 configure_input='Generated from '`
9651 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9652 `' by configure.'
9653 if test x"$ac_file" != x-; then
9654 configure_input="$ac_file. $configure_input"
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9656 $as_echo "$as_me: creating $ac_file" >&6;}
9658 # Neutralize special characters interpreted by sed in replacement strings.
9659 case $configure_input in #(
9660 *\&* | *\|* | *\\* )
9661 ac_sed_conf_input=`$as_echo "$configure_input" |
9662 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9663 *) ac_sed_conf_input=$configure_input;;
9664 esac
9666 case $ac_tag in
9667 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9669 esac
9671 esac
9673 ac_dir=`$as_dirname -- "$ac_file" ||
9674 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9675 X"$ac_file" : 'X\(//\)[^/]' \| \
9676 X"$ac_file" : 'X\(//\)$' \| \
9677 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9678 $as_echo X"$ac_file" |
9679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9680 s//\1/
9683 /^X\(\/\/\)[^/].*/{
9684 s//\1/
9687 /^X\(\/\/\)$/{
9688 s//\1/
9691 /^X\(\/\).*/{
9692 s//\1/
9695 s/.*/./; q'`
9696 as_dir="$ac_dir"; as_fn_mkdir_p
9697 ac_builddir=.
9699 case "$ac_dir" in
9700 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9702 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9703 # A ".." for each directory in $ac_dir_suffix.
9704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9705 case $ac_top_builddir_sub in
9706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9708 esac ;;
9709 esac
9710 ac_abs_top_builddir=$ac_pwd
9711 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9712 # for backward compatibility:
9713 ac_top_builddir=$ac_top_build_prefix
9715 case $srcdir in
9716 .) # We are building in place.
9717 ac_srcdir=.
9718 ac_top_srcdir=$ac_top_builddir_sub
9719 ac_abs_top_srcdir=$ac_pwd ;;
9720 [\\/]* | ?:[\\/]* ) # Absolute name.
9721 ac_srcdir=$srcdir$ac_dir_suffix;
9722 ac_top_srcdir=$srcdir
9723 ac_abs_top_srcdir=$srcdir ;;
9724 *) # Relative name.
9725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9726 ac_top_srcdir=$ac_top_build_prefix$srcdir
9727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9728 esac
9729 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9732 case $ac_mode in
9735 # CONFIG_FILE
9738 case $INSTALL in
9739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9740 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9741 esac
9742 _ACEOF
9744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9745 # If the template does not know about datarootdir, expand it.
9746 # FIXME: This hack should be removed a few years after 2.60.
9747 ac_datarootdir_hack=; ac_datarootdir_seen=
9748 ac_sed_dataroot='
9749 /datarootdir/ {
9753 /@datadir@/p
9754 /@docdir@/p
9755 /@infodir@/p
9756 /@localedir@/p
9757 /@mandir@/p'
9758 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9759 *datarootdir*) ac_datarootdir_seen=yes;;
9760 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9762 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9763 _ACEOF
9764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9765 ac_datarootdir_hack='
9766 s&@datadir@&$datadir&g
9767 s&@docdir@&$docdir&g
9768 s&@infodir@&$infodir&g
9769 s&@localedir@&$localedir&g
9770 s&@mandir@&$mandir&g
9771 s&\\\${datarootdir}&$datarootdir&g' ;;
9772 esac
9773 _ACEOF
9775 # Neutralize VPATH when `$srcdir' = `.'.
9776 # Shell code in configure.ac might set extrasub.
9777 # FIXME: do we really want to maintain this feature?
9778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9779 ac_sed_extra="$ac_vpsub
9780 $extrasub
9781 _ACEOF
9782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9785 s|@configure_input@|$ac_sed_conf_input|;t t
9786 s&@top_builddir@&$ac_top_builddir_sub&;t t
9787 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9788 s&@srcdir@&$ac_srcdir&;t t
9789 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9790 s&@top_srcdir@&$ac_top_srcdir&;t t
9791 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9792 s&@builddir@&$ac_builddir&;t t
9793 s&@abs_builddir@&$ac_abs_builddir&;t t
9794 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9795 s&@INSTALL@&$ac_INSTALL&;t t
9796 $ac_datarootdir_hack
9798 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9799 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9801 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9802 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9803 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9804 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9806 which seems to be undefined. Please make sure it is defined" >&5
9807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9808 which seems to be undefined. Please make sure it is defined" >&2;}
9810 rm -f "$ac_tmp/stdin"
9811 case $ac_file in
9812 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9813 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9814 esac \
9815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9819 # CONFIG_HEADER
9821 if test x"$ac_file" != x-; then
9823 $as_echo "/* $configure_input */" \
9824 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9825 } >"$ac_tmp/config.h" \
9826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9827 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9829 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9830 else
9831 rm -f "$ac_file"
9832 mv "$ac_tmp/config.h" "$ac_file" \
9833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9835 else
9836 $as_echo "/* $configure_input */" \
9837 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9838 || as_fn_error $? "could not create -" "$LINENO" 5
9842 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9843 $as_echo "$as_me: executing $ac_file commands" >&6;}
9845 esac
9848 case $ac_file$ac_mode in
9849 "default-1":C) if test -f .devel; then
9850 echo timestamp > stamp-h
9851 cat Makefile-devel-adds >> Makefile
9852 make depend
9853 fi ;;
9855 esac
9856 done # for ac_tag
9859 as_fn_exit 0
9860 _ACEOF
9861 ac_clean_files=$ac_clean_files_save
9863 test $ac_write_fail = 0 ||
9864 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9867 # configure is writing to config.log, and then calls config.status.
9868 # config.status does its own redirection, appending to config.log.
9869 # Unfortunately, on DOS this fails, as config.log is still kept open
9870 # by configure, so config.status won't be able to write to it; its
9871 # output is simply discarded. So we exec the FD to /dev/null,
9872 # effectively closing config.log, so it can be properly (re)opened and
9873 # appended to by config.status. When coming back to configure, we
9874 # need to make the FD available again.
9875 if test "$no_create" != yes; then
9876 ac_cs_success=:
9877 ac_config_status_args=
9878 test "$silent" = yes &&
9879 ac_config_status_args="$ac_config_status_args --quiet"
9880 exec 5>/dev/null
9881 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9882 exec 5>>config.log
9883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9884 # would make configure fail if this is the last instruction.
9885 $ac_cs_success || as_fn_exit 1
9887 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9889 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9892 exit 0