]> The Tcpdump Group git mirrors - libpcap/blob - configure
Add a routine to format error messages with an errno-based message at the end.
[libpcap] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pcap 1.9.0-PRE-GIT.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
95 do
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
101
102 ;;
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
108 fi
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
112 fi
113
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='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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
157 fi
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 *) :
173 ;;
174 esac
175 fi
176 "
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; }
182
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 :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
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
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
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
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
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
225 fi
226 fi
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
236
237
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
258 fi
259
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."
271 fi
272 exit 1
273 fi
274 fi
275 fi
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
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
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 ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
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/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
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"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
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 ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
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 ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
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 ()
409 {
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
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
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
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
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
436 fi
437
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/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
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
463
464
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 '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
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; }
487
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
498 }
499
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;;
509 *)
510 ECHO_N='-n';;
511 esac
512
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
519 fi
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'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
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
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
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'"
552
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'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
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`
564
565 #
566 # Initializations.
567 #
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=
576
577 # Identity of this package.
578 PACKAGE_NAME='pcap'
579 PACKAGE_TARNAME='pcap'
580 PACKAGE_VERSION='1.9.0-PRE-GIT'
581 PACKAGE_STRING='pcap 1.9.0-PRE-GIT'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
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"
621
622 ac_subst_vars='LTLIBOBJS
623 INSTALL_DATA
624 INSTALL_SCRIPT
625 INSTALL_PROGRAM
626 RDMA_SRC
627 PCAP_SUPPORT_RDMASNIFF
628 DBUS_SRC
629 PCAP_SUPPORT_DBUS
630 PKGCONFIG
631 BT_MONITOR_SRC
632 BT_SRC
633 PCAP_SUPPORT_BT
634 NETMAP_SRC
635 PCAP_SUPPORT_NETMAP
636 NETFILTER_SRC
637 PCAP_SUPPORT_NETFILTER
638 USB_SRC
639 PCAP_SUPPORT_USB
640 RPCAPD_LIBS
641 INSTALL_RPCAPD
642 BUILD_RPCAPD
643 PTHREAD_LIBS
644 MAN_USERMOD_SECTION
645 MAN_MISC_INFO
646 MAN_FILE_FORMATS
647 DYEXT
648 SSRC
649 ADDLARCHIVEOBJS
650 ADDLOBJS
651 V_YACC
652 V_RPATH_OPT
653 V_SONAME_OPT
654 V_SHLIB_OPT
655 V_SHLIB_CMD
656 V_PCAP
657 V_LEX
658 V_INCLS
659 V_FINDALLDEVS
660 V_DEFS
661 V_CCOPT
662 MKDEP
663 DEPENDENCY_CFLAG
664 LN_S
665 AR
666 RANLIB
667 YFLAGS
668 YACC
669 LEXLIB
670 LEX_OUTPUT_ROOT
671 LEX
672 PCAP_SUPPORT_PACKET_RING
673 HAVE_LINUX_TPACKET_AUXDATA
674 VALGRINDTEST
675 LIBOBJS
676 EGREP
677 GREP
678 CPP
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 SHLICC2
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files=''
738 ac_user_opts='
739 enable_option_checking
740 with_gcc
741 enable_largefile
742 enable_protochain
743 with_sita
744 with_pcap
745 with_libnl
746 enable_packet_ring
747 enable_ipv6
748 with_dag
749 with_dag_includes
750 with_dag_libraries
751 with_septel
752 with_snf
753 with_snf_includes
754 with_snf_libraries
755 with_turbocap
756 enable_remote
757 enable_optimizer_dbg
758 enable_yydebug
759 enable_universal
760 enable_shared
761 enable_usb
762 enable_netmap
763 enable_bluetooth
764 enable_dbus
765 enable_rdma
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP
776 YACC
777 YFLAGS'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283 else
1284 ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures pcap 1.9.0-PRE-GIT to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1372
1373 cat <<\_ACEOF
1374
1375 System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of pcap 1.9.0-PRE-GIT:";;
1385 esac
1386 cat <<\_ACEOF
1387
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --disable-largefile omit support for large files
1393 --disable-protochain disable \"protochain\" insn
1394 --enable-packet-ring enable Linux packet ring support [default=yes]
1395 --enable-ipv6 build IPv6-capable version [default=yes, if
1396 getaddrinfo available]
1397 --enable-remote enable remote packet capture [default=no]
1398 --disable-remote disable remote packet capture
1399 --enable-optimizer-dbg build optimizer debugging code
1400 --enable-yydebug build parser debugging code
1401 --disable-universal don't build universal on macOS
1402 --enable-shared build shared libraries [default=yes, if support
1403 available]
1404 --enable-usb enable USB capture support [default=yes, if support
1405 available]
1406 --enable-netmap enable netmap support [default=yes, if support
1407 available]
1408 --enable-bluetooth enable Bluetooth support [default=yes, if support
1409 available]
1410 --enable-dbus enable D-Bus capture support [default=yes, if
1411 support available]
1412 --enable-rdma enable RDMA capture support [default=yes, if support
1413 available]
1414
1415 Optional Packages:
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --without-gcc don't use gcc
1419 --with-sita include SITA support
1420 --with-pcap=TYPE use packet capture TYPE
1421 --without-libnl disable libnl support [default=yes, on Linux, if
1422 present]
1423 --with-dag[=DIR] include Endace DAG support (located in directory
1424 DIR, if supplied). [default=yes, if present]
1425 --with-dag-includes=IDIR
1426 Endace DAG include directory, if not DIR/include
1427 --with-dag-libraries=LDIR
1428 Endace DAG library directory, if not DIR/lib
1429 --with-septel[=DIR] include Septel support (located in directory DIR, if
1430 supplied). [default=yes, if present]
1431 --with-snf[=DIR] include Myricom SNF support (located in directory
1432 DIR, if supplied). [default=yes, if present]
1433 --with-snf-includes=IDIR
1434 Myricom SNF include directory, if not DIR/include
1435 --with-snf-libraries=LDIR
1436 Myricom SNF library directory, if not DIR/lib
1437 --with-turbocap[=DIR] include Riverbed TurboCap support (located in
1438 directory DIR, if supplied). [default=yes, if
1439 present]
1440
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450 YACC The `Yet Another Compiler Compiler' implementation to use.
1451 Defaults to the first program found out of: `bison -y', `byacc',
1452 `yacc'.
1453 YFLAGS The list of arguments that will be passed by default to $YACC.
1454 This script will default YFLAGS to the empty string to avoid a
1455 default value of `-d' given by some make applications.
1456
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1459
1460 Report bugs to the package provider.
1461 _ACEOF
1462 ac_status=$?
1463 fi
1464
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1472
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *)
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1488
1489 case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1518 fi
1519
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1522 cat <<\_ACEOF
1523 pcap configure 1.9.0-PRE-GIT
1524 generated by GNU Autoconf 2.69
1525
1526 Copyright (C) 2012 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530 exit
1531 fi
1532
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1536
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569 fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573 } # ac_fn_c_try_compile
1574
1575 # ac_fn_c_try_link LINENO
1576 # -----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_link ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest$ac_exeext
1582 if { { ac_try="$ac_link"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest$ac_exeext && {
1601 test "$cross_compiling" = yes ||
1602 test -x conftest$ac_exeext
1603 }; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610 fi
1611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613 # interfere with the next link command; also delete a directory that is
1614 # left behind by Apple's compiler. We do this before executing the actions.
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_link
1620
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_cpp ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } > conftest.i && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652 fi
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_cpp
1657
1658 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1661 # the include files in INCLUDES and setting the cache variable VAR
1662 # accordingly.
1663 ac_fn_c_check_header_mongrel ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if eval \${$3+:} false; then :
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1671 fi
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 else
1676 # Is the header compilable?
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1678 $as_echo_n "checking $2 usability... " >&6; }
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 $4
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685 ac_header_compiler=yes
1686 else
1687 ac_header_compiler=no
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1691 $as_echo "$ac_header_compiler" >&6; }
1692
1693 # Is the header present?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1695 $as_echo_n "checking $2 presence... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_cpp "$LINENO"; then :
1701 ac_header_preproc=yes
1702 else
1703 ac_header_preproc=no
1704 fi
1705 rm -f conftest.err conftest.i conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1707 $as_echo "$ac_header_preproc" >&6; }
1708
1709 # So? What about this header?
1710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1711 yes:no: )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1713 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716 ;;
1717 no:yes:* )
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1719 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1721 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1723 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1725 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1728 ;;
1729 esac
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 eval "$3=\$ac_header_compiler"
1736 fi
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 fi
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_header_mongrel
1744
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1749 ac_fn_c_try_run ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763 { { case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_try") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; }; }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: program exited with status $ac_status" >&5
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=$ac_status
1780 fi
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_run
1786
1787 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists and can be compiled using the include files in
1790 # INCLUDES, setting the cache variable VAR accordingly.
1791 ac_fn_c_check_header_compile ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"; then :
1805 eval "$3=yes"
1806 else
1807 eval "$3=no"
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 fi
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_header_compile
1817
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833 #define $2 innocuous_$2
1834
1835 /* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1839
1840 #ifdef __STDC__
1841 # include <limits.h>
1842 #else
1843 # include <assert.h>
1844 #endif
1845
1846 #undef $2
1847
1848 /* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1851 #ifdef __cplusplus
1852 extern "C"
1853 #endif
1854 char $2 ();
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined __stub_$2 || defined __stub___$2
1859 choke me
1860 #endif
1861
1862 int
1863 main ()
1864 {
1865 return $2 ();
1866 ;
1867 return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_link "$LINENO"; then :
1871 eval "$3=yes"
1872 else
1873 eval "$3=no"
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1877 fi
1878 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883 } # ac_fn_c_check_func
1884
1885 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1886 # ---------------------------------------------
1887 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1888 # accordingly.
1889 ac_fn_c_check_decl ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 as_decl_name=`echo $2|sed 's/ *(.*//'`
1893 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1895 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1898 else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 $4
1902 int
1903 main ()
1904 {
1905 #ifndef $as_decl_name
1906 #ifdef __cplusplus
1907 (void) $as_decl_use;
1908 #else
1909 (void) $as_decl_name;
1910 #endif
1911 #endif
1912
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 eval "$3=yes"
1919 else
1920 eval "$3=no"
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 fi
1924 eval ac_res=\$$3
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929 } # ac_fn_c_check_decl
1930
1931 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1932 # -------------------------------------------
1933 # Tests whether TYPE exists after having included INCLUDES, setting cache
1934 # variable VAR accordingly.
1935 ac_fn_c_check_type ()
1936 {
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 eval "$3=no"
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 int
1948 main ()
1949 {
1950 if (sizeof ($2))
1951 return 0;
1952 ;
1953 return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $4
1960 int
1961 main ()
1962 {
1963 if (sizeof (($2)))
1964 return 0;
1965 ;
1966 return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970
1971 else
1972 eval "$3=yes"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_c_check_type
1984 cat >config.log <<_ACEOF
1985 This file contains any messages produced by compilers while
1986 running configure, to aid debugging if configure makes a mistake.
1987
1988 It was created by pcap $as_me 1.9.0-PRE-GIT, which was
1989 generated by GNU Autoconf 2.69. Invocation command line was
1990
1991 $ $0 $@
1992
1993 _ACEOF
1994 exec 5>>config.log
1995 {
1996 cat <<_ASUNAME
1997 ## --------- ##
1998 ## Platform. ##
1999 ## --------- ##
2000
2001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2006
2007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2009
2010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2013 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2017
2018 _ASUNAME
2019
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 $as_echo "PATH: $as_dir"
2026 done
2027 IFS=$as_save_IFS
2028
2029 } >&5
2030
2031 cat >&5 <<_ACEOF
2032
2033
2034 ## ----------- ##
2035 ## Core tests. ##
2036 ## ----------- ##
2037
2038 _ACEOF
2039
2040
2041 # Keep a trace of the command line.
2042 # Strip out --no-create and --no-recursion so they do not pile up.
2043 # Strip out --silent because we don't want to record it for future runs.
2044 # Also quote any args containing shell meta-characters.
2045 # Make two passes to allow for proper duplicate-argument suppression.
2046 ac_configure_args=
2047 ac_configure_args0=
2048 ac_configure_args1=
2049 ac_must_keep_next=false
2050 for ac_pass in 1 2
2051 do
2052 for ac_arg
2053 do
2054 case $ac_arg in
2055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057 | -silent | --silent | --silen | --sile | --sil)
2058 continue ;;
2059 *\'*)
2060 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061 esac
2062 case $ac_pass in
2063 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2064 2)
2065 as_fn_append ac_configure_args1 " '$ac_arg'"
2066 if test $ac_must_keep_next = true; then
2067 ac_must_keep_next=false # Got value, back to normal.
2068 else
2069 case $ac_arg in
2070 *=* | --config-cache | -C | -disable-* | --disable-* \
2071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073 | -with-* | --with-* | -without-* | --without-* | --x)
2074 case "$ac_configure_args0 " in
2075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2076 esac
2077 ;;
2078 -* ) ac_must_keep_next=true ;;
2079 esac
2080 fi
2081 as_fn_append ac_configure_args " '$ac_arg'"
2082 ;;
2083 esac
2084 done
2085 done
2086 { ac_configure_args0=; unset ac_configure_args0;}
2087 { ac_configure_args1=; unset ac_configure_args1;}
2088
2089 # When interrupted or exit'd, cleanup temporary files, and complete
2090 # config.log. We remove comments because anyway the quotes in there
2091 # would cause problems or look ugly.
2092 # WARNING: Use '\'' to represent an apostrophe within the trap.
2093 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094 trap 'exit_status=$?
2095 # Save into config.log some information that might help in debugging.
2096 {
2097 echo
2098
2099 $as_echo "## ---------------- ##
2100 ## Cache variables. ##
2101 ## ---------------- ##"
2102 echo
2103 # The following way of writing the cache mishandles newlines in values,
2104 (
2105 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106 eval ac_val=\$$ac_var
2107 case $ac_val in #(
2108 *${as_nl}*)
2109 case $ac_var in #(
2110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2112 esac
2113 case $ac_var in #(
2114 _ | IFS | as_nl) ;; #(
2115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116 *) { eval $ac_var=; unset $ac_var;} ;;
2117 esac ;;
2118 esac
2119 done
2120 (set) 2>&1 |
2121 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122 *${as_nl}ac_space=\ *)
2123 sed -n \
2124 "s/'\''/'\''\\\\'\'''\''/g;
2125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2126 ;; #(
2127 *)
2128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129 ;;
2130 esac |
2131 sort
2132 )
2133 echo
2134
2135 $as_echo "## ----------------- ##
2136 ## Output variables. ##
2137 ## ----------------- ##"
2138 echo
2139 for ac_var in $ac_subst_vars
2140 do
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 $as_echo "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2148
2149 if test -n "$ac_subst_files"; then
2150 $as_echo "## ------------------- ##
2151 ## File substitutions. ##
2152 ## ------------------- ##"
2153 echo
2154 for ac_var in $ac_subst_files
2155 do
2156 eval ac_val=\$$ac_var
2157 case $ac_val in
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 esac
2160 $as_echo "$ac_var='\''$ac_val'\''"
2161 done | sort
2162 echo
2163 fi
2164
2165 if test -s confdefs.h; then
2166 $as_echo "## ----------- ##
2167 ## confdefs.h. ##
2168 ## ----------- ##"
2169 echo
2170 cat confdefs.h
2171 echo
2172 fi
2173 test "$ac_signal" != 0 &&
2174 $as_echo "$as_me: caught signal $ac_signal"
2175 $as_echo "$as_me: exit $exit_status"
2176 } >&5
2177 rm -f core *.core core.conftest.* &&
2178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179 exit $exit_status
2180 ' 0
2181 for ac_signal in 1 2 13 15; do
2182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183 done
2184 ac_signal=0
2185
2186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2187 rm -f -r conftest* confdefs.h
2188
2189 $as_echo "/* confdefs.h */" > confdefs.h
2190
2191 # Predefined preprocessor variables.
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_NAME "$PACKAGE_NAME"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_STRING "$PACKAGE_STRING"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_URL "$PACKAGE_URL"
2215 _ACEOF
2216
2217
2218 # Let the site file select an alternate cache file if it wants to.
2219 # Prefer an explicitly selected file to automatically selected ones.
2220 ac_site_file1=NONE
2221 ac_site_file2=NONE
2222 if test -n "$CONFIG_SITE"; then
2223 # We do not want a PATH search for config.site.
2224 case $CONFIG_SITE in #((
2225 -*) ac_site_file1=./$CONFIG_SITE;;
2226 */*) ac_site_file1=$CONFIG_SITE;;
2227 *) ac_site_file1=./$CONFIG_SITE;;
2228 esac
2229 elif test "x$prefix" != xNONE; then
2230 ac_site_file1=$prefix/share/config.site
2231 ac_site_file2=$prefix/etc/config.site
2232 else
2233 ac_site_file1=$ac_default_prefix/share/config.site
2234 ac_site_file2=$ac_default_prefix/etc/config.site
2235 fi
2236 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2237 do
2238 test "x$ac_site_file" = xNONE && continue
2239 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242 sed 's/^/| /' "$ac_site_file" >&5
2243 . "$ac_site_file" \
2244 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 as_fn_error $? "failed to load site script $ac_site_file
2247 See \`config.log' for more details" "$LINENO" 5; }
2248 fi
2249 done
2250
2251 if test -r "$cache_file"; then
2252 # Some versions of bash will fail to source /dev/null (special files
2253 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2254 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256 $as_echo "$as_me: loading cache $cache_file" >&6;}
2257 case $cache_file in
2258 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259 *) . "./$cache_file";;
2260 esac
2261 fi
2262 else
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264 $as_echo "$as_me: creating cache $cache_file" >&6;}
2265 >$cache_file
2266 fi
2267
2268 # Check that the precious variables saved in the cache have kept the same
2269 # value.
2270 ac_cache_corrupted=false
2271 for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2277 set,)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,set)
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2285 ,);;
2286 *)
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x $ac_old_val`
2290 ac_new_val_w=`echo x $ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294 ac_cache_corrupted=:
2295 else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2299 fi
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2301 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2304 fi;;
2305 esac
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2308 case $ac_new_val in
2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2311 esac
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2315 esac
2316 fi
2317 done
2318 if $ac_cache_corrupted; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324 fi
2325 ## -------------------- ##
2326 ## Main body of script. ##
2327 ## -------------------- ##
2328
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336
2337
2338
2339 ac_aux_dir=
2340 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2341 if test -f "$ac_dir/install-sh"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/install-sh -c"
2344 break
2345 elif test -f "$ac_dir/install.sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install.sh -c"
2348 break
2349 elif test -f "$ac_dir/shtool"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/shtool install -c"
2352 break
2353 fi
2354 done
2355 if test -z "$ac_aux_dir"; then
2356 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2357 fi
2358
2359 # These three variables are undocumented and unsupported,
2360 # and are intended to be withdrawn in a future Autoconf release.
2361 # They can cause serious problems if a builder's source tree is in a directory
2362 # whose full name contains unusual characters.
2363 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2364 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2365 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2366
2367
2368 # Make sure we can run config.sub.
2369 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2370 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2371
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2373 $as_echo_n "checking build system type... " >&6; }
2374 if ${ac_cv_build+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376 else
2377 ac_build_alias=$build_alias
2378 test "x$ac_build_alias" = x &&
2379 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2380 test "x$ac_build_alias" = x &&
2381 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2384
2385 fi
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2387 $as_echo "$ac_cv_build" >&6; }
2388 case $ac_cv_build in
2389 *-*-*) ;;
2390 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2391 esac
2392 build=$ac_cv_build
2393 ac_save_IFS=$IFS; IFS='-'
2394 set x $ac_cv_build
2395 shift
2396 build_cpu=$1
2397 build_vendor=$2
2398 shift; shift
2399 # Remember, the first character of IFS is used to create $*,
2400 # except with old shells:
2401 build_os=$*
2402 IFS=$ac_save_IFS
2403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2404
2405
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2407 $as_echo_n "checking host system type... " >&6; }
2408 if ${ac_cv_host+:} false; then :
2409 $as_echo_n "(cached) " >&6
2410 else
2411 if test "x$host_alias" = x; then
2412 ac_cv_host=$ac_cv_build
2413 else
2414 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2416 fi
2417
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2420 $as_echo "$ac_cv_host" >&6; }
2421 case $ac_cv_host in
2422 *-*-*) ;;
2423 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2424 esac
2425 host=$ac_cv_host
2426 ac_save_IFS=$IFS; IFS='-'
2427 set x $ac_cv_host
2428 shift
2429 host_cpu=$1
2430 host_vendor=$2
2431 shift; shift
2432 # Remember, the first character of IFS is used to create $*,
2433 # except with old shells:
2434 host_os=$*
2435 IFS=$ac_save_IFS
2436 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2437
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2440 $as_echo_n "checking target system type... " >&6; }
2441 if ${ac_cv_target+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 if test "x$target_alias" = x; then
2445 ac_cv_target=$ac_cv_host
2446 else
2447 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2449 fi
2450
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2453 $as_echo "$ac_cv_target" >&6; }
2454 case $ac_cv_target in
2455 *-*-*) ;;
2456 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2457 esac
2458 target=$ac_cv_target
2459 ac_save_IFS=$IFS; IFS='-'
2460 set x $ac_cv_target
2461 shift
2462 target_cpu=$1
2463 target_vendor=$2
2464 shift; shift
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2467 target_os=$*
2468 IFS=$ac_save_IFS
2469 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2470
2471
2472 # The aliases save the names the user supplied, while $host etc.
2473 # will get canonicalized.
2474 test -n "$target_alias" &&
2475 test "$program_prefix$program_suffix$program_transform_name" = \
2476 NONENONEs,x,x, &&
2477 program_prefix=${target_alias}-
2478
2479
2480
2481
2482
2483
2484
2485
2486 # Check whether --with-gcc was given.
2487 if test "${with_gcc+set}" = set; then :
2488 withval=$with_gcc;
2489 fi
2490
2491 V_CCOPT=""
2492 if test "${srcdir}" != "." ; then
2493 V_CCOPT="-I\$(srcdir)"
2494 fi
2495 if test "${CFLAGS+set}" = set; then
2496 LBL_CFLAGS="$CFLAGS"
2497 fi
2498 if test -z "$CC" ; then
2499 case "$host_os" in
2500
2501 bsdi*)
2502 # Extract the first word of "shlicc2", so it can be a program name with args.
2503 set dummy shlicc2; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if ${ac_cv_prog_SHLICC2+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 if test -n "$SHLICC2"; then
2510 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_SHLICC2="yes"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2528 fi
2529 fi
2530 SHLICC2=$ac_cv_prog_SHLICC2
2531 if test -n "$SHLICC2"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2533 $as_echo "$SHLICC2" >&6; }
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539
2540 if test $SHLICC2 = yes ; then
2541 CC=shlicc2
2542 export CC
2543 fi
2544 ;;
2545 esac
2546 fi
2547 if test -z "$CC" -a "$with_gcc" = no ; then
2548 CC=cc
2549 export CC
2550 fi
2551
2552 ac_ext=c
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_CC+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2588 $as_echo "$CC" >&6; }
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2592 fi
2593
2594
2595 fi
2596 if test -z "$ac_cv_prog_CC"; then
2597 ac_ct_CC=$CC
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599 set dummy gcc; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615 ac_cv_prog_ac_ct_CC="gcc"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2628 $as_echo "$ac_ct_CC" >&6; }
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2632 fi
2633
2634 if test "x$ac_ct_CC" = x; then
2635 CC=""
2636 else
2637 case $cross_compiling:$ac_tool_warned in
2638 yes:)
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641 ac_tool_warned=yes ;;
2642 esac
2643 CC=$ac_ct_CC
2644 fi
2645 else
2646 CC="$ac_cv_prog_CC"
2647 fi
2648
2649 if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}cc; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_CC+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_CC="${ac_tool_prefix}cc"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 CC=$ac_cv_prog_CC
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687
2688 fi
2689 fi
2690 if test -z "$CC"; then
2691 # Extract the first word of "cc", so it can be a program name with args.
2692 set dummy cc; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_CC+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 ac_prog_rejected=no
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2710 ac_prog_rejected=yes
2711 continue
2712 fi
2713 ac_cv_prog_CC="cc"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 if test $ac_prog_rejected = yes; then
2722 # We found a bogon in the path, so make sure we never use it.
2723 set dummy $ac_cv_prog_CC
2724 shift
2725 if test $# != 0; then
2726 # We chose a different compiler from the bogus one.
2727 # However, it has the same basename, so the bogon will be chosen
2728 # first if we set CC to just the basename; use the full file name.
2729 shift
2730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2731 fi
2732 fi
2733 fi
2734 fi
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 fi
2743
2744
2745 fi
2746 if test -z "$CC"; then
2747 if test -n "$ac_tool_prefix"; then
2748 for ac_prog in cl.exe
2749 do
2750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786
2787 test -n "$CC" && break
2788 done
2789 fi
2790 if test -z "$CC"; then
2791 ac_ct_CC=$CC
2792 for ac_prog in cl.exe
2793 do
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy $ac_prog; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_ac_ct_CC="$ac_prog"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817 IFS=$as_save_IFS
2818
2819 fi
2820 fi
2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822 if test -n "$ac_ct_CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2824 $as_echo "$ac_ct_CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831 test -n "$ac_ct_CC" && break
2832 done
2833
2834 if test "x$ac_ct_CC" = x; then
2835 CC=""
2836 else
2837 case $cross_compiling:$ac_tool_warned in
2838 yes:)
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2842 esac
2843 CC=$ac_ct_CC
2844 fi
2845 fi
2846
2847 fi
2848
2849
2850 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852 as_fn_error $? "no acceptable C compiler found in \$PATH
2853 See \`config.log' for more details" "$LINENO" 5; }
2854
2855 # Provide some information about the compiler.
2856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2857 set X $ac_compile
2858 ac_compiler=$2
2859 for ac_option in --version -v -V -qversion; do
2860 { { ac_try="$ac_compiler $ac_option >&5"
2861 case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864 esac
2865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2868 ac_status=$?
2869 if test -s conftest.err; then
2870 sed '10a\
2871 ... rest of stderr output deleted ...
2872 10q' conftest.err >conftest.er1
2873 cat conftest.er1 >&5
2874 fi
2875 rm -f conftest.er1 conftest.err
2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; }
2878 done
2879
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2882
2883 int
2884 main ()
2885 {
2886
2887 ;
2888 return 0;
2889 }
2890 _ACEOF
2891 ac_clean_files_save=$ac_clean_files
2892 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2893 # Try to create an executable without -o first, disregard a.out.
2894 # It will help us diagnose broken compilers, and finding out an intuition
2895 # of exeext.
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2897 $as_echo_n "checking whether the C compiler works... " >&6; }
2898 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2899
2900 # The possible output files:
2901 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2902
2903 ac_rmfiles=
2904 for ac_file in $ac_files
2905 do
2906 case $ac_file in
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2908 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2909 esac
2910 done
2911 rm -f $ac_rmfiles
2912
2913 if { { ac_try="$ac_link_default"
2914 case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917 esac
2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 $as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_link_default") 2>&5
2921 ac_status=$?
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }; then :
2924 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2925 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2926 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2927 # so that the user can short-circuit this test for compilers unknown to
2928 # Autoconf.
2929 for ac_file in $ac_files ''
2930 do
2931 test -f "$ac_file" || continue
2932 case $ac_file in
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2934 ;;
2935 [ab].out )
2936 # We found the default executable, but exeext='' is most
2937 # certainly right.
2938 break;;
2939 *.* )
2940 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2941 then :; else
2942 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 fi
2944 # We set ac_cv_exeext here because the later test for it is not
2945 # safe: cross compilers may not add the suffix if given an `-o'
2946 # argument, so we may need to know it at that point already.
2947 # Even if this section looks crufty: it has the advantage of
2948 # actually working.
2949 break;;
2950 * )
2951 break;;
2952 esac
2953 done
2954 test "$ac_cv_exeext" = no && ac_cv_exeext=
2955
2956 else
2957 ac_file=''
2958 fi
2959 if test -z "$ac_file"; then :
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 $as_echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 as_fn_error 77 "C compiler cannot create executables
2968 See \`config.log' for more details" "$LINENO" 5; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2972 fi
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2974 $as_echo_n "checking for C compiler default output file name... " >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2976 $as_echo "$ac_file" >&6; }
2977 ac_exeext=$ac_cv_exeext
2978
2979 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2980 ac_clean_files=$ac_clean_files_save
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2982 $as_echo_n "checking for suffix of executables... " >&6; }
2983 if { { ac_try="$ac_link"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2989 $as_echo "$ac_try_echo"; } >&5
2990 (eval "$ac_link") 2>&5
2991 ac_status=$?
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }; then :
2994 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2995 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2996 # work properly (i.e., refer to `conftest.exe'), while it won't with
2997 # `rm'.
2998 for ac_file in conftest.exe conftest conftest.*; do
2999 test -f "$ac_file" || continue
3000 case $ac_file in
3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003 break;;
3004 * ) break;;
3005 esac
3006 done
3007 else
3008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3011 See \`config.log' for more details" "$LINENO" 5; }
3012 fi
3013 rm -f conftest conftest$ac_cv_exeext
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3015 $as_echo "$ac_cv_exeext" >&6; }
3016
3017 rm -f conftest.$ac_ext
3018 EXEEXT=$ac_cv_exeext
3019 ac_exeext=$EXEEXT
3020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3022 #include <stdio.h>
3023 int
3024 main ()
3025 {
3026 FILE *f = fopen ("conftest.out", "w");
3027 return ferror (f) || fclose (f) != 0;
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 ac_clean_files="$ac_clean_files conftest.out"
3034 # Check that the compiler produces executables we can run. If not, either
3035 # the compiler is broken, or we cross compile.
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3037 $as_echo_n "checking whether we are cross compiling... " >&6; }
3038 if test "$cross_compiling" != yes; then
3039 { { ac_try="$ac_link"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_link") 2>&5
3047 ac_status=$?
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }
3050 if { ac_try='./conftest$ac_cv_exeext'
3051 { { case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_try") 2>&5
3058 ac_status=$?
3059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 test $ac_status = 0; }; }; then
3061 cross_compiling=no
3062 else
3063 if test "$cross_compiling" = maybe; then
3064 cross_compiling=yes
3065 else
3066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error $? "cannot run C compiled programs.
3069 If you meant to cross compile, use \`--host'.
3070 See \`config.log' for more details" "$LINENO" 5; }
3071 fi
3072 fi
3073 fi
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3075 $as_echo "$cross_compiling" >&6; }
3076
3077 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3078 ac_clean_files=$ac_clean_files_save
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3080 $as_echo_n "checking for suffix of object files... " >&6; }
3081 if ${ac_cv_objext+:} false; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3086
3087 int
3088 main ()
3089 {
3090
3091 ;
3092 return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.o conftest.obj
3096 if { { ac_try="$ac_compile"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_compile") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }; then :
3107 for ac_file in conftest.o conftest.obj conftest.*; do
3108 test -f "$ac_file" || continue;
3109 case $ac_file in
3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3111 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3112 break;;
3113 esac
3114 done
3115 else
3116 $as_echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error $? "cannot compute suffix of object files: cannot compile
3122 See \`config.log' for more details" "$LINENO" 5; }
3123 fi
3124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3125 fi
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3127 $as_echo "$ac_cv_objext" >&6; }
3128 OBJEXT=$ac_cv_objext
3129 ac_objext=$OBJEXT
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3131 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3132 if ${ac_cv_c_compiler_gnu+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3137
3138 int
3139 main ()
3140 {
3141 #ifndef __GNUC__
3142 choke me
3143 #endif
3144
3145 ;
3146 return 0;
3147 }
3148 _ACEOF
3149 if ac_fn_c_try_compile "$LINENO"; then :
3150 ac_compiler_gnu=yes
3151 else
3152 ac_compiler_gnu=no
3153 fi
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3156
3157 fi
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3160 if test $ac_compiler_gnu = yes; then
3161 GCC=yes
3162 else
3163 GCC=
3164 fi
3165 ac_test_CFLAGS=${CFLAGS+set}
3166 ac_save_CFLAGS=$CFLAGS
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3169 if ${ac_cv_prog_cc_g+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 ac_save_c_werror_flag=$ac_c_werror_flag
3173 ac_c_werror_flag=yes
3174 ac_cv_prog_cc_g=no
3175 CFLAGS="-g"
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178
3179 int
3180 main ()
3181 {
3182
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 if ac_fn_c_try_compile "$LINENO"; then :
3188 ac_cv_prog_cc_g=yes
3189 else
3190 CFLAGS=""
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 int
3195 main ()
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 if ac_fn_c_try_compile "$LINENO"; then :
3203
3204 else
3205 ac_c_werror_flag=$ac_save_c_werror_flag
3206 CFLAGS="-g"
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3209
3210 int
3211 main ()
3212 {
3213
3214 ;
3215 return 0;
3216 }
3217 _ACEOF
3218 if ac_fn_c_try_compile "$LINENO"; then :
3219 ac_cv_prog_cc_g=yes
3220 fi
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 fi
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 fi
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_c_werror_flag=$ac_save_c_werror_flag
3227 fi
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3229 $as_echo "$ac_cv_prog_cc_g" >&6; }
3230 if test "$ac_test_CFLAGS" = set; then
3231 CFLAGS=$ac_save_CFLAGS
3232 elif test $ac_cv_prog_cc_g = yes; then
3233 if test "$GCC" = yes; then
3234 CFLAGS="-g -O2"
3235 else
3236 CFLAGS="-g"
3237 fi
3238 else
3239 if test "$GCC" = yes; then
3240 CFLAGS="-O2"
3241 else
3242 CFLAGS=
3243 fi
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3246 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3247 if ${ac_cv_prog_cc_c89+:} false; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 ac_cv_prog_cc_c89=no
3251 ac_save_CC=$CC
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3254 #include <stdarg.h>
3255 #include <stdio.h>
3256 struct stat;
3257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3258 struct buf { int x; };
3259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3260 static char *e (p, i)
3261 char **p;
3262 int i;
3263 {
3264 return p[i];
3265 }
3266 static char *f (char * (*g) (char **, int), char **p, ...)
3267 {
3268 char *s;
3269 va_list v;
3270 va_start (v,p);
3271 s = g (p, va_arg (v,int));
3272 va_end (v);
3273 return s;
3274 }
3275
3276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3277 function prototypes and stuff, but not '\xHH' hex character constants.
3278 These don't provoke an error unfortunately, instead are silently treated
3279 as 'x'. The following induces an error, until -std is added to get
3280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3281 array size at least. It's necessary to write '\x00'==0 to get something
3282 that's true only with -std. */
3283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3284
3285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3286 inside strings and character constants. */
3287 #define FOO(x) 'x'
3288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3289
3290 int test (int i, double x);
3291 struct s1 {int (*f) (int a);};
3292 struct s2 {int (*f) (double a);};
3293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3294 int argc;
3295 char **argv;
3296 int
3297 main ()
3298 {
3299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3306 do
3307 CC="$ac_save_CC $ac_arg"
3308 if ac_fn_c_try_compile "$LINENO"; then :
3309 ac_cv_prog_cc_c89=$ac_arg
3310 fi
3311 rm -f core conftest.err conftest.$ac_objext
3312 test "x$ac_cv_prog_cc_c89" != "xno" && break
3313 done
3314 rm -f conftest.$ac_ext
3315 CC=$ac_save_CC
3316
3317 fi
3318 # AC_CACHE_VAL
3319 case "x$ac_cv_prog_cc_c89" in
3320 x)
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3322 $as_echo "none needed" >&6; } ;;
3323 xno)
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3325 $as_echo "unsupported" >&6; } ;;
3326 *)
3327 CC="$CC $ac_cv_prog_cc_c89"
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3329 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3330 esac
3331 if test "x$ac_cv_prog_cc_c89" != xno; then :
3332
3333 fi
3334
3335 ac_ext=c
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340
3341
3342
3343
3344
3345
3346 if test "$GCC" = yes ; then
3347 #
3348 # -Werror forces warnings to be errors.
3349 #
3350 ac_lbl_cc_force_warning_errors=-Werror
3351
3352 #
3353 # Try to have the compiler default to hiding symbols,
3354 # so that only symbols explicitly exported with
3355 # PCAP_API will be visible outside (shared) libraries.
3356 #
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3359 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3360 save_CFLAGS="$CFLAGS"
3361 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3362 then
3363 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3364 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3365 then
3366 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3367 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3368 then
3369 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3370 else
3371 CFLAGS="$CFLAGS -fvisibility=hidden"
3372 fi
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375
3376 int
3377 main ()
3378 {
3379 return 0
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 if ac_fn_c_try_compile "$LINENO"; then :
3385
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3387 $as_echo "yes" >&6; }
3388 CFLAGS="$save_CFLAGS"
3389 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3390
3391 else
3392
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3395 CFLAGS="$save_CFLAGS"
3396
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399
3400 else
3401 V_INCLS="$V_INCLS -I/usr/local/include"
3402 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3403
3404 case "$host_os" in
3405
3406 darwin*)
3407 #
3408 # This is assumed either to be GCC or clang, both
3409 # of which use -Werror to force warnings to be errors.
3410 #
3411 ac_lbl_cc_force_warning_errors=-Werror
3412
3413 #
3414 # Try to have the compiler default to hiding symbols,
3415 # so that only symbols explicitly exported with
3416 # PCAP_API will be visible outside (shared) libraries.
3417 #
3418
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3420 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3421 save_CFLAGS="$CFLAGS"
3422 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3423 then
3424 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3425 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3426 then
3427 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3428 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3429 then
3430 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3431 else
3432 CFLAGS="$CFLAGS -fvisibility=hidden"
3433 fi
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436
3437 int
3438 main ()
3439 {
3440 return 0
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3448 $as_echo "yes" >&6; }
3449 CFLAGS="$save_CFLAGS"
3450 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3451
3452 else
3453
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456 CFLAGS="$save_CFLAGS"
3457
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460
3461 ;;
3462
3463 hpux*)
3464 #
3465 # HP C, which is what we presume we're using, doesn't
3466 # exit with a non-zero exit status if we hand it an
3467 # invalid -W flag, can't be forced to do so even with
3468 # +We, and doesn't handle GCC-style -W flags, so we
3469 # don't want to try using GCC-style -W flags.
3470 #
3471 ac_lbl_cc_dont_try_gcc_dashW=yes
3472 ;;
3473
3474 irix*)
3475 #
3476 # MIPS C, which is what we presume we're using, doesn't
3477 # necessarily exit with a non-zero exit status if we
3478 # hand it an invalid -W flag, can't be forced to do
3479 # so, and doesn't handle GCC-style -W flags, so we
3480 # don't want to try using GCC-style -W flags.
3481 #
3482 ac_lbl_cc_dont_try_gcc_dashW=yes
3483 #
3484 # It also, apparently, defaults to "char" being
3485 # unsigned, unlike most other C implementations;
3486 # I suppose we could say "signed char" whenever
3487 # we want to guarantee a signed "char", but let's
3488 # just force signed chars.
3489 #
3490 # -xansi is normally the default, but the
3491 # configure script was setting it; perhaps -cckr
3492 # was the default in the Old Days. (Then again,
3493 # that would probably be for backwards compatibility
3494 # in the days when ANSI C was Shiny and New, i.e.
3495 # 1989 and the early '90's, so maybe we can just
3496 # drop support for those compilers.)
3497 #
3498 # -g is equivalent to -g2, which turns off
3499 # optimization; we choose -g3, which generates
3500 # debugging information but doesn't turn off
3501 # optimization (even if the optimization would
3502 # cause inaccuracies in debugging).
3503 #
3504 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3505 ;;
3506
3507 osf*)
3508 #
3509 # Presumed to be DEC OSF/1, Digital UNIX, or
3510 # Tru64 UNIX.
3511 #
3512 # The DEC C compiler, which is what we presume we're
3513 # using, doesn't exit with a non-zero exit status if we
3514 # hand it an invalid -W flag, can't be forced to do
3515 # so, and doesn't handle GCC-style -W flags, so we
3516 # don't want to try using GCC-style -W flags.
3517 #
3518 ac_lbl_cc_dont_try_gcc_dashW=yes
3519 #
3520 # -g is equivalent to -g2, which turns off
3521 # optimization; we choose -g3, which generates
3522 # debugging information but doesn't turn off
3523 # optimization (even if the optimization would
3524 # cause inaccuracies in debugging).
3525 #
3526 V_CCOPT="$V_CCOPT -g3"
3527 ;;
3528
3529 solaris*)
3530 #
3531 # Assumed to be Sun C, which requires -errwarn to force
3532 # warnings to be treated as errors.
3533 #
3534 ac_lbl_cc_force_warning_errors=-errwarn
3535
3536 #
3537 # Try to have the compiler default to hiding symbols,
3538 # so that only symbols explicitly exported with
3539 # PCAP_API will be visible outside (shared) libraries.
3540 #
3541
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3543 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3544 save_CFLAGS="$CFLAGS"
3545 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3546 then
3547 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3548 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3549 then
3550 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3551 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3552 then
3553 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3554 else
3555 CFLAGS="$CFLAGS -xldscope=hidden"
3556 fi
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563 return 0
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 $as_echo "yes" >&6; }
3572 CFLAGS="$save_CFLAGS"
3573 V_CCOPT="$V_CCOPT -xldscope=hidden"
3574
3575 else
3576
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 CFLAGS="$save_CFLAGS"
3580
3581 fi
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583
3584 ;;
3585
3586 ultrix*)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3588 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3589 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594 #include <sys/types.h>
3595 int
3596 main ()
3597 {
3598 struct a { int b; };
3599 void c(const struct a *)
3600 ;
3601 return 0;
3602 }
3603 _ACEOF
3604 if ac_fn_c_try_compile "$LINENO"; then :
3605 ac_cv_lbl_cc_const_proto=yes
3606 else
3607 ac_cv_lbl_cc_const_proto=no
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 fi
3611
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3613 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3614 if test $ac_cv_lbl_cc_const_proto = no ; then
3615
3616 $as_echo "#define const /**/" >>confdefs.h
3617
3618 fi
3619 ;;
3620 esac
3621 V_CCOPT="$V_CCOPT -O"
3622 fi
3623
3624
3625 if test "$GCC" = yes ; then
3626 #
3627 # On platforms where we build a shared library:
3628 #
3629 # add options to generate position-independent code,
3630 # if necessary (it's the default in AIX and Darwin/OS X);
3631 #
3632 # define option to set the soname of the shared library,
3633 # if the OS supports that;
3634 #
3635 # add options to specify, at link time, a directory to
3636 # add to the run-time search path, if that's necessary.
3637 #
3638 V_SHLIB_CMD="\$(CC)"
3639 V_SHLIB_OPT="-shared"
3640 case "$host_os" in
3641
3642 aix*)
3643 ;;
3644
3645 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3646 #
3647 # Platforms where the linker is the GNU linker
3648 # or accepts command-line arguments like
3649 # those the GNU linker accepts.
3650 #
3651 # Some instruction sets require -fPIC on some
3652 # operating systems. Check for them. If you
3653 # have a combination that requires it, add it
3654 # here.
3655 #
3656 PIC_OPT=-fpic
3657 case "$host_cpu" in
3658
3659 sparc64*)
3660 case "$host_os" in
3661
3662 freebsd*|openbsd*)
3663 PIC_OPT=-fPIC
3664 ;;
3665 esac
3666 ;;
3667 esac
3668 V_CCOPT="$V_CCOPT $PIC_OPT"
3669 V_SONAME_OPT="-Wl,-soname,"
3670 V_RPATH_OPT="-Wl,-rpath,"
3671 ;;
3672
3673 hpux*)
3674 V_CCOPT="$V_CCOPT -fpic"
3675 #
3676 # XXX - this assumes GCC is using the HP linker,
3677 # rather than the GNU linker, and that the "+h"
3678 # option is used on all HP-UX platforms, both .sl
3679 # and .so.
3680 #
3681 V_SONAME_OPT="-Wl,+h,"
3682 #
3683 # By default, directories specifed with -L
3684 # are added to the run-time search path, so
3685 # we don't add them in pcap-config.
3686 #
3687 ;;
3688
3689 solaris*)
3690 V_CCOPT="$V_CCOPT -fpic"
3691 #
3692 # XXX - this assumes GCC is using the Sun linker,
3693 # rather than the GNU linker.
3694 #
3695 V_SONAME_OPT="-Wl,-h,"
3696 V_RPATH_OPT="-Wl,-R,"
3697 ;;
3698 esac
3699 else
3700 #
3701 # Set the appropriate compiler flags and, on platforms
3702 # where we build a shared library:
3703 #
3704 # add options to generate position-independent code,
3705 # if necessary (it's the default in Darwin/OS X);
3706 #
3707 # if we generate ".so" shared libraries, define the
3708 # appropriate options for building the shared library;
3709 #
3710 # add options to specify, at link time, a directory to
3711 # add to the run-time search path, if that's necessary.
3712 #
3713 # Note: spaces after V_SONAME_OPT are significant; on
3714 # some platforms the soname is passed with a GCC-like
3715 # "-Wl,-soname,{soname}" option, with the soname part
3716 # of the option, while on other platforms the C compiler
3717 # driver takes it as a regular option with the soname
3718 # following the option. The same applies to V_RPATH_OPT.
3719 #
3720 case "$host_os" in
3721
3722 aix*)
3723 V_SHLIB_CMD="\$(CC)"
3724 V_SHLIB_OPT="-G -bnoentry -bexpall"
3725 ;;
3726
3727 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3728 #
3729 # "cc" is GCC.
3730 #
3731 V_CCOPT="$V_CCOPT -fpic"
3732 V_SHLIB_CMD="\$(CC)"
3733 V_SHLIB_OPT="-shared"
3734 V_SONAME_OPT="-Wl,-soname,"
3735 V_RPATH_OPT="-Wl,-rpath,"
3736 ;;
3737
3738 hpux*)
3739 V_CCOPT="$V_CCOPT +z"
3740 V_SHLIB_CMD="\$(LD)"
3741 V_SHLIB_OPT="-b"
3742 V_SONAME_OPT="+h "
3743 #
3744 # By default, directories specifed with -L
3745 # are added to the run-time search path, so
3746 # we don't add them in pcap-config.
3747 #
3748 ;;
3749
3750 osf*)
3751 #
3752 # Presumed to be DEC OSF/1, Digital UNIX, or
3753 # Tru64 UNIX.
3754 #
3755 V_SHLIB_CMD="\$(CC)"
3756 V_SHLIB_OPT="-shared"
3757 V_SONAME_OPT="-soname "
3758 V_RPATH_OPT="-rpath "
3759 ;;
3760
3761 solaris*)
3762 V_CCOPT="$V_CCOPT -Kpic"
3763 V_SHLIB_CMD="\$(CC)"
3764 V_SHLIB_OPT="-G"
3765 V_SONAME_OPT="-h "
3766 V_RPATH_OPT="-R"
3767 ;;
3768 esac
3769 fi
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3772 $as_echo_n "checking for inline... " >&6; }
3773 save_CFLAGS="$CFLAGS"
3774 CFLAGS="$V_CCOPT"
3775 if ${ac_cv_lbl_inline+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778
3779 ac_cv_lbl_inline=""
3780 ac_lbl_cc_inline=no
3781 for ac_lbl_inline in inline __inline__ __inline
3782 do
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785 #define inline $ac_lbl_inline
3786 static inline struct iltest *foo(void);
3787 struct iltest {
3788 int iltest1;
3789 int iltest2;
3790 };
3791
3792 static inline struct iltest *
3793 foo()
3794 {
3795 static struct iltest xxx;
3796
3797 return &xxx;
3798 }
3799 int
3800 main ()
3801 {
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_lbl_cc_inline=yes
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 if test "$ac_lbl_cc_inline" = yes ; then
3812 break;
3813 fi
3814 done
3815 if test "$ac_lbl_cc_inline" = yes ; then
3816 ac_cv_lbl_inline=$ac_lbl_inline
3817 fi
3818 fi
3819
3820 CFLAGS="$save_CFLAGS"
3821 if test ! -z "$ac_cv_lbl_inline" ; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3823 $as_echo "$ac_cv_lbl_inline" >&6; }
3824 else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 fi
3828
3829 cat >>confdefs.h <<_ACEOF
3830 #define inline $ac_cv_lbl_inline
3831 _ACEOF
3832
3833
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3835 $as_echo_n "checking for __attribute__... " >&6; }
3836 if ${ac_cv___attribute__+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842
3843
3844 #include <stdlib.h>
3845
3846 static void foo(void) __attribute__ ((noreturn));
3847
3848 static void
3849 foo(void)
3850 {
3851 exit(1);
3852 }
3853
3854 int
3855 main(int argc, char **argv)
3856 {
3857 foo();
3858 }
3859
3860 _ACEOF
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_cv___attribute__=yes
3863 else
3864 ac_cv___attribute__=no
3865 fi
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 fi
3868
3869 if test "$ac_cv___attribute__" = "yes"; then
3870
3871 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3872
3873 else
3874 #
3875 # We can't use __attribute__, so we can't use __attribute__((unused)),
3876 # so we define _U_ to an empty string.
3877 #
3878 V_DEFS="$V_DEFS -D_U_=\"\""
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3881 $as_echo "$ac_cv___attribute__" >&6; }
3882
3883 if test "$ac_cv___attribute__" = "yes"; then
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
3886 $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
3887 if ${ac_cv___attribute___unused+:} false; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890
3891 save_CFLAGS="$CFLAGS"
3892 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895
3896
3897 #include <stdlib.h>
3898 #include <stdio.h>
3899
3900 int
3901 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3902 {
3903 printf("Hello, world!\n");
3904 return 0;
3905 }
3906
3907 _ACEOF
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv___attribute___unused=yes
3910 else
3911 ac_cv___attribute___unused=no
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 fi
3915
3916 CFLAGS="$save_CFLAGS"
3917 if test "$ac_cv___attribute___unused" = "yes"; then
3918 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3919 else
3920 V_DEFS="$V_DEFS -D_U_=\"\""
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
3923 $as_echo "$ac_cv___attribute___unused" >&6; }
3924
3925 fi
3926
3927 #
3928 # Try to arrange for large file support.
3929 #
3930 # Check whether --enable-largefile was given.
3931 if test "${enable_largefile+set}" = set; then :
3932 enableval=$enable_largefile;
3933 fi
3934
3935 if test "$enable_largefile" != no; then
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3938 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3939 if ${ac_cv_sys_largefile_CC+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 ac_cv_sys_largefile_CC=no
3943 if test "$GCC" != yes; then
3944 ac_save_CC=$CC
3945 while :; do
3946 # IRIX 6.2 and later do not support large files by default,
3947 # so use the C compiler's -n32 option if that helps.
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950 #include <sys/types.h>
3951 /* Check that off_t can represent 2**63 - 1 correctly.
3952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3953 since some C++ compilers masquerading as C compilers
3954 incorrectly reject 9223372036854775807. */
3955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3957 && LARGE_OFF_T % 2147483647 == 1)
3958 ? 1 : -1];
3959 int
3960 main ()
3961 {
3962
3963 ;
3964 return 0;
3965 }
3966 _ACEOF
3967 if ac_fn_c_try_compile "$LINENO"; then :
3968 break
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext
3971 CC="$CC -n32"
3972 if ac_fn_c_try_compile "$LINENO"; then :
3973 ac_cv_sys_largefile_CC=' -n32'; break
3974 fi
3975 rm -f core conftest.err conftest.$ac_objext
3976 break
3977 done
3978 CC=$ac_save_CC
3979 rm -f conftest.$ac_ext
3980 fi
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3983 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3984 if test "$ac_cv_sys_largefile_CC" != no; then
3985 CC=$CC$ac_cv_sys_largefile_CC
3986 fi
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3989 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3990 if ${ac_cv_sys_file_offset_bits+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 while :; do
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <sys/types.h>
3997 /* Check that off_t can represent 2**63 - 1 correctly.
3998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3999 since some C++ compilers masquerading as C compilers
4000 incorrectly reject 9223372036854775807. */
4001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4003 && LARGE_OFF_T % 2147483647 == 1)
4004 ? 1 : -1];
4005 int
4006 main ()
4007 {
4008
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_sys_file_offset_bits=no; break
4015 fi
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #define _FILE_OFFSET_BITS 64
4020 #include <sys/types.h>
4021 /* Check that off_t can represent 2**63 - 1 correctly.
4022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4023 since some C++ compilers masquerading as C compilers
4024 incorrectly reject 9223372036854775807. */
4025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4027 && LARGE_OFF_T % 2147483647 == 1)
4028 ? 1 : -1];
4029 int
4030 main ()
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_sys_file_offset_bits=64; break
4039 fi
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_cv_sys_file_offset_bits=unknown
4042 break
4043 done
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4046 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4047 case $ac_cv_sys_file_offset_bits in #(
4048 no | unknown) ;;
4049 *)
4050 cat >>confdefs.h <<_ACEOF
4051 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4052 _ACEOF
4053 ;;
4054 esac
4055 rm -rf conftest*
4056 if test $ac_cv_sys_file_offset_bits = unknown; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4058 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4059 if ${ac_cv_sys_large_files+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 while :; do
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <sys/types.h>
4066 /* Check that off_t can represent 2**63 - 1 correctly.
4067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4068 since some C++ compilers masquerading as C compilers
4069 incorrectly reject 9223372036854775807. */
4070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4072 && LARGE_OFF_T % 2147483647 == 1)
4073 ? 1 : -1];
4074 int
4075 main ()
4076 {
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_sys_large_files=no; break
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #define _LARGE_FILES 1
4089 #include <sys/types.h>
4090 /* Check that off_t can represent 2**63 - 1 correctly.
4091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4092 since some C++ compilers masquerading as C compilers
4093 incorrectly reject 9223372036854775807. */
4094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4096 && LARGE_OFF_T % 2147483647 == 1)
4097 ? 1 : -1];
4098 int
4099 main ()
4100 {
4101
4102 ;
4103 return 0;
4104 }
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_cv_sys_large_files=1; break
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_cv_sys_large_files=unknown
4111 break
4112 done
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4115 $as_echo "$ac_cv_sys_large_files" >&6; }
4116 case $ac_cv_sys_large_files in #(
4117 no | unknown) ;;
4118 *)
4119 cat >>confdefs.h <<_ACEOF
4120 #define _LARGE_FILES $ac_cv_sys_large_files
4121 _ACEOF
4122 ;;
4123 esac
4124 rm -rf conftest*
4125 fi
4126
4127
4128 fi
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4131 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4132 if ${ac_cv_sys_largefile_source+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 while :; do
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #include <sys/types.h> /* for off_t */
4139 #include <stdio.h>
4140 int
4141 main ()
4142 {
4143 int (*fp) (FILE *, off_t, int) = fseeko;
4144 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4145 ;
4146 return 0;
4147 }
4148 _ACEOF
4149 if ac_fn_c_try_link "$LINENO"; then :
4150 ac_cv_sys_largefile_source=no; break
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext \
4153 conftest$ac_exeext conftest.$ac_ext
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156 #define _LARGEFILE_SOURCE 1
4157 #include <sys/types.h> /* for off_t */
4158 #include <stdio.h>
4159 int
4160 main ()
4161 {
4162 int (*fp) (FILE *, off_t, int) = fseeko;
4163 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4164 ;
4165 return 0;
4166 }
4167 _ACEOF
4168 if ac_fn_c_try_link "$LINENO"; then :
4169 ac_cv_sys_largefile_source=1; break
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext \
4172 conftest$ac_exeext conftest.$ac_ext
4173 ac_cv_sys_largefile_source=unknown
4174 break
4175 done
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4178 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4179 case $ac_cv_sys_largefile_source in #(
4180 no | unknown) ;;
4181 *)
4182 cat >>confdefs.h <<_ACEOF
4183 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4184 _ACEOF
4185 ;;
4186 esac
4187 rm -rf conftest*
4188
4189 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4190 # in glibc 2.1.3, but that breaks too many other things.
4191 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4192 if test $ac_cv_sys_largefile_source != unknown; then
4193
4194 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4195
4196 fi
4197
4198
4199 ac_ext=c
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4205 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4206 # On Suns, sometimes $CPP names a directory.
4207 if test -n "$CPP" && test -d "$CPP"; then
4208 CPP=
4209 fi
4210 if test -z "$CPP"; then
4211 if ${ac_cv_prog_CPP+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 # Double quotes because CPP needs to be expanded
4215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4216 do
4217 ac_preproc_ok=false
4218 for ac_c_preproc_warn_flag in '' yes
4219 do
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #ifdef __STDC__
4229 # include <limits.h>
4230 #else
4231 # include <assert.h>
4232 #endif
4233 Syntax error
4234 _ACEOF
4235 if ac_fn_c_try_cpp "$LINENO"; then :
4236
4237 else
4238 # Broken: fails on valid input.
4239 continue
4240 fi
4241 rm -f conftest.err conftest.i conftest.$ac_ext
4242
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4251 continue
4252 else
4253 # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4256 fi
4257 rm -f conftest.err conftest.i conftest.$ac_ext
4258
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.i conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then :
4263 break
4264 fi
4265
4266 done
4267 ac_cv_prog_CPP=$CPP
4268
4269 fi
4270 CPP=$ac_cv_prog_CPP
4271 else
4272 ac_cv_prog_CPP=$CPP
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4275 $as_echo "$CPP" >&6; }
4276 ac_preproc_ok=false
4277 for ac_c_preproc_warn_flag in '' yes
4278 do
4279 # Use a header file that comes with gcc, so configuring glibc
4280 # with a fresh cross-compiler works.
4281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4282 # <limits.h> exists even on freestanding compilers.
4283 # On the NeXT, cc -E runs the code through the compiler's parser,
4284 # not just through cpp. "Syntax error" is here to catch this case.
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 #ifdef __STDC__
4288 # include <limits.h>
4289 #else
4290 # include <assert.h>
4291 #endif
4292 Syntax error
4293 _ACEOF
4294 if ac_fn_c_try_cpp "$LINENO"; then :
4295
4296 else
4297 # Broken: fails on valid input.
4298 continue
4299 fi
4300 rm -f conftest.err conftest.i conftest.$ac_ext
4301
4302 # OK, works on sane cases. Now check whether nonexistent headers
4303 # can be detected and how.
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <ac_nonexistent.h>
4307 _ACEOF
4308 if ac_fn_c_try_cpp "$LINENO"; then :
4309 # Broken: success on invalid input.
4310 continue
4311 else
4312 # Passes both tests.
4313 ac_preproc_ok=:
4314 break
4315 fi
4316 rm -f conftest.err conftest.i conftest.$ac_ext
4317
4318 done
4319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4320 rm -f conftest.i conftest.err conftest.$ac_ext
4321 if $ac_preproc_ok; then :
4322
4323 else
4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4327 See \`config.log' for more details" "$LINENO" 5; }
4328 fi
4329
4330 ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4338 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4339 if ${ac_cv_path_GREP+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -z "$GREP"; then
4343 ac_path_GREP_found=false
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347 do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_prog in grep ggrep; do
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4353 as_fn_executable_p "$ac_path_GREP" || continue
4354 # Check for GNU ac_path_GREP and select it if it is found.
4355 # Check for GNU $ac_path_GREP
4356 case `"$ac_path_GREP" --version 2>&1` in
4357 *GNU*)
4358 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4359 *)
4360 ac_count=0
4361 $as_echo_n 0123456789 >"conftest.in"
4362 while :
4363 do
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4365 mv "conftest.tmp" "conftest.in"
4366 cp "conftest.in" "conftest.nl"
4367 $as_echo 'GREP' >> "conftest.nl"
4368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370 as_fn_arith $ac_count + 1 && ac_count=$as_val
4371 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4372 # Best one so far, save it but keep looking for a better one
4373 ac_cv_path_GREP="$ac_path_GREP"
4374 ac_path_GREP_max=$ac_count
4375 fi
4376 # 10*(2^10) chars as input seems more than enough
4377 test $ac_count -gt 10 && break
4378 done
4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380 esac
4381
4382 $ac_path_GREP_found && break 3
4383 done
4384 done
4385 done
4386 IFS=$as_save_IFS
4387 if test -z "$ac_cv_path_GREP"; then
4388 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4389 fi
4390 else
4391 ac_cv_path_GREP=$GREP
4392 fi
4393
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4396 $as_echo "$ac_cv_path_GREP" >&6; }
4397 GREP="$ac_cv_path_GREP"
4398
4399
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4401 $as_echo_n "checking for egrep... " >&6; }
4402 if ${ac_cv_path_EGREP+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4406 then ac_cv_path_EGREP="$GREP -E"
4407 else
4408 if test -z "$EGREP"; then
4409 ac_path_EGREP_found=false
4410 # Loop through the user's path and test for each of PROGNAME-LIST
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4413 do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_prog in egrep; do
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4419 as_fn_executable_p "$ac_path_EGREP" || continue
4420 # Check for GNU ac_path_EGREP and select it if it is found.
4421 # Check for GNU $ac_path_EGREP
4422 case `"$ac_path_EGREP" --version 2>&1` in
4423 *GNU*)
4424 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4425 *)
4426 ac_count=0
4427 $as_echo_n 0123456789 >"conftest.in"
4428 while :
4429 do
4430 cat "conftest.in" "conftest.in" >"conftest.tmp"
4431 mv "conftest.tmp" "conftest.in"
4432 cp "conftest.in" "conftest.nl"
4433 $as_echo 'EGREP' >> "conftest.nl"
4434 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436 as_fn_arith $ac_count + 1 && ac_count=$as_val
4437 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4438 # Best one so far, save it but keep looking for a better one
4439 ac_cv_path_EGREP="$ac_path_EGREP"
4440 ac_path_EGREP_max=$ac_count
4441 fi
4442 # 10*(2^10) chars as input seems more than enough
4443 test $ac_count -gt 10 && break
4444 done
4445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4446 esac
4447
4448 $ac_path_EGREP_found && break 3
4449 done
4450 done
4451 done
4452 IFS=$as_save_IFS
4453 if test -z "$ac_cv_path_EGREP"; then
4454 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4455 fi
4456 else
4457 ac_cv_path_EGREP=$EGREP
4458 fi
4459
4460 fi
4461 fi
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4463 $as_echo "$ac_cv_path_EGREP" >&6; }
4464 EGREP="$ac_cv_path_EGREP"
4465
4466
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4468 $as_echo_n "checking for ANSI C header files... " >&6; }
4469 if ${ac_cv_header_stdc+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474 #include <stdlib.h>
4475 #include <stdarg.h>
4476 #include <string.h>
4477 #include <float.h>
4478
4479 int
4480 main ()
4481 {
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488 ac_cv_header_stdc=yes
4489 else
4490 ac_cv_header_stdc=no
4491 fi
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493
4494 if test $ac_cv_header_stdc = yes; then
4495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #include <string.h>
4499
4500 _ACEOF
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502 $EGREP "memchr" >/dev/null 2>&1; then :
4503
4504 else
4505 ac_cv_header_stdc=no
4506 fi
4507 rm -f conftest*
4508
4509 fi
4510
4511 if test $ac_cv_header_stdc = yes; then
4512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #include <stdlib.h>
4516
4517 _ACEOF
4518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4519 $EGREP "free" >/dev/null 2>&1; then :
4520
4521 else
4522 ac_cv_header_stdc=no
4523 fi
4524 rm -f conftest*
4525
4526 fi
4527
4528 if test $ac_cv_header_stdc = yes; then
4529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4530 if test "$cross_compiling" = yes; then :
4531 :
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <ctype.h>
4536 #include <stdlib.h>
4537 #if ((' ' & 0x0FF) == 0x020)
4538 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4539 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4540 #else
4541 # define ISLOWER(c) \
4542 (('a' <= (c) && (c) <= 'i') \
4543 || ('j' <= (c) && (c) <= 'r') \
4544 || ('s' <= (c) && (c) <= 'z'))
4545 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4546 #endif
4547
4548 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4549 int
4550 main ()
4551 {
4552 int i;
4553 for (i = 0; i < 256; i++)
4554 if (XOR (islower (i), ISLOWER (i))
4555 || toupper (i) != TOUPPER (i))
4556 return 2;
4557 return 0;
4558 }
4559 _ACEOF
4560 if ac_fn_c_try_run "$LINENO"; then :
4561
4562 else
4563 ac_cv_header_stdc=no
4564 fi
4565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4566 conftest.$ac_objext conftest.beam conftest.$ac_ext
4567 fi
4568
4569 fi
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4572 $as_echo "$ac_cv_header_stdc" >&6; }
4573 if test $ac_cv_header_stdc = yes; then
4574
4575 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4576
4577 fi
4578
4579 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4580 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4581 inttypes.h stdint.h unistd.h
4582 do :
4583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4585 "
4586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4587 cat >>confdefs.h <<_ACEOF
4588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4589 _ACEOF
4590
4591 fi
4592
4593 done
4594
4595
4596 for ac_header in sys/ioccom.h sys/sockio.h limits.h
4597 do :
4598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4599 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4600 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4601 cat >>confdefs.h <<_ACEOF
4602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4603 _ACEOF
4604
4605 fi
4606
4607 done
4608
4609 for ac_header in netpacket/packet.h
4610 do :
4611 ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4612 if test "x$ac_cv_header_netpacket_packet_h" = xyes; then :
4613 cat >>confdefs.h <<_ACEOF
4614 #define HAVE_NETPACKET_PACKET_H 1
4615 _ACEOF
4616
4617 fi
4618
4619 done
4620
4621 for ac_header in net/pfvar.h
4622 do :
4623 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4624 #include <sys/socket.h>
4625 #include <net/if.h>
4626 "
4627 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
4628 cat >>confdefs.h <<_ACEOF
4629 #define HAVE_NET_PFVAR_H 1
4630 _ACEOF
4631
4632 fi
4633
4634 done
4635
4636 if test "$ac_cv_header_net_pfvar_h" = yes; then
4637 #
4638 # Check for various PF actions.
4639 #
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4641 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 #include <sys/types.h>
4645 #include <sys/socket.h>
4646 #include <net/if.h>
4647 #include <net/pfvar.h>
4648 int
4649 main ()
4650 {
4651 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4652 ;
4653 return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4659 $as_echo "yes" >&6; }
4660
4661 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4662
4663
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 fi
4670
4671 case "$host_os" in
4672 linux*|uclinux*)
4673 for ac_header in linux/sockios.h linux/if_bonding.h
4674 do :
4675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4676 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4677 #include <sys/socket.h>
4678 #include <linux/if.h>
4679
4680 "
4681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4682 cat >>confdefs.h <<_ACEOF
4683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4684 _ACEOF
4685
4686 fi
4687
4688 done
4689
4690 ;;
4691 esac
4692
4693 if test "$GCC" = yes ; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4695 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4696 if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701 /*
4702 * This generates a "duplicate case value" when fixincludes
4703 * has not be run.
4704 */
4705 # include <sys/types.h>
4706 # include <sys/time.h>
4707 # include <sys/ioctl.h>
4708 # ifdef HAVE_SYS_IOCCOM_H
4709 # include <sys/ioccom.h>
4710 # endif
4711 int
4712 main ()
4713 {
4714 switch (0) {
4715 case _IO('A', 1):;
4716 case _IO('B', 1):;
4717 }
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"; then :
4723 ac_cv_lbl_gcc_fixincludes=yes
4724 else
4725 ac_cv_lbl_gcc_fixincludes=no
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 fi
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4731 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4732 if test $ac_cv_lbl_gcc_fixincludes = no ; then
4733 # Don't cache failure
4734 unset ac_cv_lbl_gcc_fixincludes
4735 as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
4736 fi
4737 fi
4738
4739 for ac_func in strerror strerror_r strlcpy strlcat
4740 do :
4741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4742 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4743 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4744 cat >>confdefs.h <<_ACEOF
4745 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4746 _ACEOF
4747
4748 fi
4749 done
4750
4751
4752 needsnprintf=no
4753 for ac_func in vsnprintf snprintf
4754 do :
4755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4757 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4758 cat >>confdefs.h <<_ACEOF
4759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4760 _ACEOF
4761
4762 else
4763 needsnprintf=yes
4764 fi
4765 done
4766
4767 if test $needsnprintf = yes; then
4768 case " $LIBOBJS " in
4769 *" snprintf.$ac_objext "* ) ;;
4770 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
4771 ;;
4772 esac
4773
4774 fi
4775
4776 needstrtok_r=no
4777 for ac_func in strtok_r
4778 do :
4779 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
4780 if test "x$ac_cv_func_strtok_r" = xyes; then :
4781 cat >>confdefs.h <<_ACEOF
4782 #define HAVE_STRTOK_R 1
4783 _ACEOF
4784
4785 else
4786 needstrtok_r=yes
4787 fi
4788 done
4789
4790 if test $needstrtok_r = yes; then
4791 case " $LIBOBJS " in
4792 *" strtok_r.$ac_objext "* ) ;;
4793 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
4794 ;;
4795 esac
4796
4797 fi
4798
4799 #
4800 # Do we have ffs(), and is it declared in <strings.h>?
4801 #
4802 for ac_func in ffs
4803 do :
4804 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
4805 if test "x$ac_cv_func_ffs" = xyes; then :
4806 cat >>confdefs.h <<_ACEOF
4807 #define HAVE_FFS 1
4808 _ACEOF
4809
4810 fi
4811 done
4812
4813 if test "$ac_cv_func_ffs" = yes; then
4814 #
4815 # We have ffs(); is it declared in <strings.h>?
4816 #
4817 # This test fails if we don't have <strings.h> or if we do
4818 # but it doesn't declare ffs().
4819 #
4820 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "
4821 #include <strings.h>
4822
4823 "
4824 if test "x$ac_cv_have_decl_ffs" = xyes; then :
4825
4826
4827 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
4828
4829
4830 fi
4831
4832 fi
4833
4834 #
4835 # Do this before checking for ether_hostton(), as it's a
4836 # "gethostbyname() -ish function".
4837 #
4838
4839 # Most operating systems have gethostbyname() in the default searched
4840 # libraries (i.e. libc):
4841 # Some OSes (eg. Solaris) place it in libnsl
4842 # Some strange OSes (SINIX) have it in libsocket:
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4844 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4845 if ${ac_cv_search_gethostbyname+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 ac_func_search_save_LIBS=$LIBS
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4851
4852 /* Override any GCC internal prototype to avoid an error.
4853 Use char because int might match the return type of a GCC
4854 builtin and then its argument prototype would still apply. */
4855 #ifdef __cplusplus
4856 extern "C"
4857 #endif
4858 char gethostbyname ();
4859 int
4860 main ()
4861 {
4862 return gethostbyname ();
4863 ;
4864 return 0;
4865 }
4866 _ACEOF
4867 for ac_lib in '' nsl socket resolv; do
4868 if test -z "$ac_lib"; then
4869 ac_res="none required"
4870 else
4871 ac_res=-l$ac_lib
4872 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4873 fi
4874 if ac_fn_c_try_link "$LINENO"; then :
4875 ac_cv_search_gethostbyname=$ac_res
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext \
4878 conftest$ac_exeext
4879 if ${ac_cv_search_gethostbyname+:} false; then :
4880 break
4881 fi
4882 done
4883 if ${ac_cv_search_gethostbyname+:} false; then :
4884
4885 else
4886 ac_cv_search_gethostbyname=no
4887 fi
4888 rm conftest.$ac_ext
4889 LIBS=$ac_func_search_save_LIBS
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4892 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4893 ac_res=$ac_cv_search_gethostbyname
4894 if test "$ac_res" != no; then :
4895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4896
4897 fi
4898
4899 # Unfortunately libsocket sometimes depends on libnsl and
4900 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4901 if test "$ac_cv_search_gethostbyname" = "no"
4902 then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
4904 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
4905 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 ac_check_lib_save_LIBS=$LIBS
4909 LIBS="-lsocket -lnsl $LIBS"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912
4913 /* Override any GCC internal prototype to avoid an error.
4914 Use char because int might match the return type of a GCC
4915 builtin and then its argument prototype would still apply. */
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 char gethostbyname ();
4920 int
4921 main ()
4922 {
4923 return gethostbyname ();
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_link "$LINENO"; then :
4929 ac_cv_lib_socket_gethostbyname=yes
4930 else
4931 ac_cv_lib_socket_gethostbyname=no
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext \
4934 conftest$ac_exeext conftest.$ac_ext
4935 LIBS=$ac_check_lib_save_LIBS
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
4938 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4939 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
4940 LIBS="-lsocket -lnsl $LIBS"
4941 fi
4942
4943 fi
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4945 $as_echo_n "checking for library containing socket... " >&6; }
4946 if ${ac_cv_search_socket+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 ac_func_search_save_LIBS=$LIBS
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952
4953 /* Override any GCC internal prototype to avoid an error.
4954 Use char because int might match the return type of a GCC
4955 builtin and then its argument prototype would still apply. */
4956 #ifdef __cplusplus
4957 extern "C"
4958 #endif
4959 char socket ();
4960 int
4961 main ()
4962 {
4963 return socket ();
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 for ac_lib in '' socket; do
4969 if test -z "$ac_lib"; then
4970 ac_res="none required"
4971 else
4972 ac_res=-l$ac_lib
4973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4974 fi
4975 if ac_fn_c_try_link "$LINENO"; then :
4976 ac_cv_search_socket=$ac_res
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext
4980 if ${ac_cv_search_socket+:} false; then :
4981 break
4982 fi
4983 done
4984 if ${ac_cv_search_socket+:} false; then :
4985
4986 else
4987 ac_cv_search_socket=no
4988 fi
4989 rm conftest.$ac_ext
4990 LIBS=$ac_func_search_save_LIBS
4991 fi
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4993 $as_echo "$ac_cv_search_socket" >&6; }
4994 ac_res=$ac_cv_search_socket
4995 if test "$ac_res" != no; then :
4996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4997
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5000 $as_echo_n "checking for socket in -lsocket... " >&6; }
5001 if ${ac_cv_lib_socket_socket+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 ac_check_lib_save_LIBS=$LIBS
5005 LIBS="-lsocket -lnsl $LIBS"
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008
5009 /* Override any GCC internal prototype to avoid an error.
5010 Use char because int might match the return type of a GCC
5011 builtin and then its argument prototype would still apply. */
5012 #ifdef __cplusplus
5013 extern "C"
5014 #endif
5015 char socket ();
5016 int
5017 main ()
5018 {
5019 return socket ();
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_link "$LINENO"; then :
5025 ac_cv_lib_socket_socket=yes
5026 else
5027 ac_cv_lib_socket_socket=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext \
5030 conftest$ac_exeext conftest.$ac_ext
5031 LIBS=$ac_check_lib_save_LIBS
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5034 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5035 if test "x$ac_cv_lib_socket_socket" = xyes; then :
5036 LIBS="-lsocket -lnsl $LIBS"
5037 fi
5038
5039 fi
5040
5041 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5043 $as_echo_n "checking for library containing putmsg... " >&6; }
5044 if ${ac_cv_search_putmsg+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 ac_func_search_save_LIBS=$LIBS
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050
5051 /* Override any GCC internal prototype to avoid an error.
5052 Use char because int might match the return type of a GCC
5053 builtin and then its argument prototype would still apply. */
5054 #ifdef __cplusplus
5055 extern "C"
5056 #endif
5057 char putmsg ();
5058 int
5059 main ()
5060 {
5061 return putmsg ();
5062 ;
5063 return 0;
5064 }
5065 _ACEOF
5066 for ac_lib in '' str; do
5067 if test -z "$ac_lib"; then
5068 ac_res="none required"
5069 else
5070 ac_res=-l$ac_lib
5071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5072 fi
5073 if ac_fn_c_try_link "$LINENO"; then :
5074 ac_cv_search_putmsg=$ac_res
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext \
5077 conftest$ac_exeext
5078 if ${ac_cv_search_putmsg+:} false; then :
5079 break
5080 fi
5081 done
5082 if ${ac_cv_search_putmsg+:} false; then :
5083
5084 else
5085 ac_cv_search_putmsg=no
5086 fi
5087 rm conftest.$ac_ext
5088 LIBS=$ac_func_search_save_LIBS
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5091 $as_echo "$ac_cv_search_putmsg" >&6; }
5092 ac_res=$ac_cv_search_putmsg
5093 if test "$ac_res" != no; then :
5094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5095
5096 fi
5097
5098
5099
5100 #
5101 # You are in a twisty little maze of UN*Xes, all different.
5102 # Some might not have ether_hostton().
5103 # Some might have it and declare it in <net/ethernet.h>.
5104 # Some might have it and declare it in <netinet/ether.h>
5105 # Some might have it and declare it in <sys/ethernet.h>.
5106 # Some might have it and declare it in <arpa/inet.h>.
5107 # Some might have it and declare it in <netinet/if_ether.h>.
5108 # Some might have it and not declare it in any header file.
5109 #
5110 # Before you is a C compiler.
5111 #
5112 for ac_func in ether_hostton
5113 do :
5114 ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5115 if test "x$ac_cv_func_ether_hostton" = xyes; then :
5116 cat >>confdefs.h <<_ACEOF
5117 #define HAVE_ETHER_HOSTTON 1
5118 _ACEOF
5119
5120 fi
5121 done
5122
5123 if test "$ac_cv_func_ether_hostton" = yes; then
5124 #
5125 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
5126 #
5127 # This test fails if we don't have <net/ethernet.h> or if we do
5128 # but it doesn't declare ether_hostton().
5129 #
5130 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5131 #include <net/ethernet.h>
5132
5133 "
5134 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5135
5136
5137 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5138
5139
5140 fi
5141
5142 #
5143 # Did that succeed?
5144 #
5145 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5146 #
5147 # No, how about <netinet/ether.h>, as on Linux?
5148 #
5149 # This test fails if we don't have <netinet/ether.h>
5150 # or if we do but it doesn't declare ether_hostton().
5151 #
5152 # Unset ac_cv_have_decl_ether_hostton so we don't
5153 # treat the previous failure as a cached value and
5154 # suppress the next test.
5155 #
5156 unset ac_cv_have_decl_ether_hostton
5157 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5158 #include <netinet/ether.h>
5159
5160 "
5161 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5162
5163
5164 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5165
5166
5167 fi
5168
5169 fi
5170 #
5171 # Did that succeed?
5172 #
5173 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5174 #
5175 # No, how about <sys/ethernet.h>, as on Solaris 10
5176 # and later?
5177 #
5178 # This test fails if we don't have <sys/ethernet.h>
5179 # or if we do but it doesn't declare ether_hostton().
5180 #
5181 # Unset ac_cv_have_decl_ether_hostton so we don't
5182 # treat the previous failure as a cached value and
5183 # suppress the next test.
5184 #
5185 unset ac_cv_have_decl_ether_hostton
5186 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5187 #include <sys/ethernet.h>
5188
5189 "
5190 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5191
5192
5193 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5194
5195
5196 fi
5197
5198 fi
5199 #
5200 # Did that succeed?
5201 #
5202 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5203 #
5204 # No, how about <arpa/inet.h>, as in AIX?
5205 #
5206 # This test fails if we don't have <arpa/inet.h>
5207 # (if we have ether_hostton(), we should have
5208 # networking, and if we have networking, we should
5209 # have <arapa/inet.h>) or if we do but it doesn't
5210 # declare ether_hostton().
5211 #
5212 # Unset ac_cv_have_decl_ether_hostton so we don't
5213 # treat the previous failure as a cached value and
5214 # suppress the next test.
5215 #
5216 unset ac_cv_have_decl_ether_hostton
5217 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5218 #include <arpa/inet.h>
5219
5220 "
5221 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5222
5223
5224 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5225
5226
5227 fi
5228
5229 fi
5230 #
5231 # Did that succeed?
5232 #
5233 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5234 #
5235 # No, how about <netinet/if_ether.h>?
5236 # On some platforms, it requires <net/if.h> and
5237 # <netinet/in.h>, and we always include it with
5238 # both of them, so test it with both of them.
5239 #
5240 # This test fails if we don't have <netinet/if_ether.h>
5241 # and the headers we include before it, or if we do but
5242 # <netinet/if_ether.h> doesn't declare ether_hostton().
5243 #
5244 # Unset ac_cv_have_decl_ether_hostton so we don't
5245 # treat the previous failure as a cached value and
5246 # suppress the next test.
5247 #
5248 unset ac_cv_have_decl_ether_hostton
5249 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5250 #include <sys/types.h>
5251 #include <sys/socket.h>
5252 #include <net/if.h>
5253 #include <netinet/in.h>
5254 #include <netinet/if_ether.h>
5255
5256 "
5257 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5258
5259
5260 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5261
5262
5263 fi
5264
5265 fi
5266 #
5267 # After all that, is ether_hostton() declared?
5268 #
5269 if test "$ac_cv_have_decl_ether_hostton" = yes; then
5270 #
5271 # Yes.
5272 #
5273
5274 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5275
5276 else
5277 #
5278 # No, we'll have to declare it ourselves.
5279 # Do we have "struct ether_addr" if we include
5280 # <netinet/if_ether.h>?
5281 #
5282 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5283 #include <sys/types.h>
5284 #include <sys/socket.h>
5285 #include <net/if.h>
5286 #include <netinet/in.h>
5287 #include <netinet/if_ether.h>
5288
5289 "
5290 if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
5291
5292 cat >>confdefs.h <<_ACEOF
5293 #define HAVE_STRUCT_ETHER_ADDR 1
5294 _ACEOF
5295
5296
5297 fi
5298
5299 fi
5300 fi
5301
5302 #
5303 # For various things that might use pthreads.
5304 #
5305 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5306 if test "x$ac_cv_header_pthread_h" = xyes; then :
5307
5308 #
5309 # OK, we have pthread.h. Do we have pthread_create in the
5310 # system libraries?
5311 #
5312 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5313 if test "x$ac_cv_func_pthread_create" = xyes; then :
5314
5315 #
5316 # Yes.
5317 #
5318 ac_lbl_have_pthreads="found"
5319
5320 else
5321
5322 #
5323 # No - do we have it in -lpthreads?
5324 #
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5326 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5327 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 ac_check_lib_save_LIBS=$LIBS
5331 LIBS="-lpthreads $LIBS"
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334
5335 /* Override any GCC internal prototype to avoid an error.
5336 Use char because int might match the return type of a GCC
5337 builtin and then its argument prototype would still apply. */
5338 #ifdef __cplusplus
5339 extern "C"
5340 #endif
5341 char pthread_create ();
5342 int
5343 main ()
5344 {
5345 return pthread_create ();
5346 ;
5347 return 0;
5348 }
5349 _ACEOF
5350 if ac_fn_c_try_link "$LINENO"; then :
5351 ac_cv_lib_pthreads_pthread_create=yes
5352 else
5353 ac_cv_lib_pthreads_pthread_create=no
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext \
5356 conftest$ac_exeext conftest.$ac_ext
5357 LIBS=$ac_check_lib_save_LIBS
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5360 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5361 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
5362
5363 #
5364 # Yes - add -lpthreads.
5365 #
5366 ac_lbl_have_pthreads="found"
5367 PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
5368
5369 else
5370
5371 #
5372 # No - do we have it in -lpthread?
5373 #
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5375 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5376 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 ac_check_lib_save_LIBS=$LIBS
5380 LIBS="-lpthread $LIBS"
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383
5384 /* Override any GCC internal prototype to avoid an error.
5385 Use char because int might match the return type of a GCC
5386 builtin and then its argument prototype would still apply. */
5387 #ifdef __cplusplus
5388 extern "C"
5389 #endif
5390 char pthread_create ();
5391 int
5392 main ()
5393 {
5394 return pthread_create ();
5395 ;
5396 return 0;
5397 }
5398 _ACEOF
5399 if ac_fn_c_try_link "$LINENO"; then :
5400 ac_cv_lib_pthread_pthread_create=yes
5401 else
5402 ac_cv_lib_pthread_pthread_create=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext \
5405 conftest$ac_exeext conftest.$ac_ext
5406 LIBS=$ac_check_lib_save_LIBS
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5409 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5410 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5411
5412 #
5413 # Yes - add -lpthread.
5414 #
5415 ac_lbl_have_pthreads="found"
5416 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
5417
5418 else
5419
5420 #
5421 # No.
5422 #
5423 ac_lbl_have_pthreads="not found"
5424
5425 fi
5426
5427
5428 fi
5429
5430
5431 fi
5432
5433
5434 else
5435
5436 #
5437 # We didn't find pthread.h.
5438 #
5439 ac_lbl_have_pthreads="not found"
5440
5441
5442 fi
5443
5444
5445
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5447 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5448 # Check whether --enable-protochain was given.
5449 if test "${enable_protochain+set}" = set; then :
5450 enableval=$enable_protochain;
5451 fi
5452
5453 case "x$enable_protochain" in
5454 xyes) enable_protochain=enabled ;;
5455 xno) enable_protochain=disabled ;;
5456 x) enable_protochain=enabled ;;
5457 esac
5458
5459 if test "$enable_protochain" = "disabled"; then
5460
5461 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5462
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5465 $as_echo "${enable_protochain}" >&6; }
5466
5467 #
5468 # valgrindtest directly uses the native capture mechanism, but
5469 # only tests with BPF and PF_PACKET sockets; only enable it if
5470 # we have BPF or PF_PACKET sockets.
5471 #
5472 VALGRINDTEST=
5473
5474 #
5475 # SITA support is mutually exclusive with native capture support;
5476 # "--with-sita" selects SITA support.
5477 #
5478
5479 # Check whether --with-sita was given.
5480 if test "${with_sita+set}" = set; then :
5481 withval=$with_sita;
5482 if test ! "x$withval" = "xno" ; then
5483
5484 $as_echo "#define SITA 1" >>confdefs.h
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5487 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5488 V_PCAP=sita
5489 fi
5490
5491 else
5492
5493
5494 # Check whether --with-pcap was given.
5495 if test "${with_pcap+set}" = set; then :
5496 withval=$with_pcap;
5497 fi
5498
5499 if test ! -z "$with_pcap" ; then
5500 V_PCAP="$withval"
5501 else
5502 #
5503 # Check for a bunch of headers for various packet
5504 # capture mechanisms.
5505 #
5506 for ac_header in net/bpf.h
5507 do :
5508 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
5509 if test "x$ac_cv_header_net_bpf_h" = xyes; then :
5510 cat >>confdefs.h <<_ACEOF
5511 #define HAVE_NET_BPF_H 1
5512 _ACEOF
5513
5514 fi
5515
5516 done
5517
5518 if test "$ac_cv_header_net_bpf_h" = yes; then
5519 #
5520 # Does it define BIOCSETIF?
5521 # I.e., is it a header for an LBL/BSD-style capture
5522 # mechanism, or is it just a header for a BPF filter
5523 # engine? Some versions of Arch Linux, for example,
5524 # have a net/bpf.h that doesn't define BIOCSETIF;
5525 # as it's a Linux, it should use packet sockets,
5526 # instead.
5527 #
5528 # We need:
5529 #
5530 # sys/types.h, because FreeBSD 10's net/bpf.h
5531 # requires that various BSD-style integer types
5532 # be defined;
5533 #
5534 # sys/ioctl.h and, if we have it, sys/ioccom.h,
5535 # because net/bpf.h defines ioctls;
5536 #
5537 # net/if.h, because it defines some structures
5538 # used in ioctls defined by net/bpf.h;
5539 #
5540 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
5541 # defines some structure fields as being
5542 # struct sockaddrs;
5543 #
5544 # and net/bpf.h doesn't necessarily include all
5545 # of those headers itself.
5546 #
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
5548 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
5549 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554
5555 #include <sys/types.h>
5556 #include <sys/ioctl.h>
5557 #include <sys/socket.h>
5558 #ifdef HAVE_SYS_IOCCOM_H
5559 #include <sys/ioccom.h>
5560 #endif
5561 #include <net/bpf.h>
5562 #include <net/if.h>
5563
5564 int
5565 main ()
5566 {
5567 u_int i = BIOCSETIF;
5568 ;
5569 return 0;
5570 }
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_lbl_bpf_h_defines_biocsetif=yes
5574 else
5575 ac_cv_lbl_bpf_h_defines_biocsetif=no
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
5581 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
5582 fi
5583 for ac_header in net/pfilt.h net/enet.h
5584 do :
5585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5586 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5587 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5588 cat >>confdefs.h <<_ACEOF
5589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5590 _ACEOF
5591
5592 fi
5593
5594 done
5595
5596 for ac_header in net/nit.h sys/net/nit.h
5597 do :
5598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5599 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5600 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5601 cat >>confdefs.h <<_ACEOF
5602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5603 _ACEOF
5604
5605 fi
5606
5607 done
5608
5609 for ac_header in linux/socket.h net/raw.h sys/dlpi.h
5610 do :
5611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5612 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5613 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5614 cat >>confdefs.h <<_ACEOF
5615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5616 _ACEOF
5617
5618 fi
5619
5620 done
5621
5622
5623 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
5624 #
5625 # BPF.
5626 # Check this before DLPI, so that we pick BPF on
5627 # Solaris 11 and later.
5628 #
5629 V_PCAP=bpf
5630
5631 #
5632 # We have BPF, so build valgrindtest with "make test"
5633 # on macOS, FreeBSD, and Linux (add your OS once
5634 # there's a valgrind for it).
5635 #
5636 case "$host_os" in
5637
5638 freebsd*|darwin*|linux*)
5639 VALGRINDTEST=valgrindtest
5640 ;;
5641 esac
5642 elif test "$ac_cv_header_linux_socket_h" = yes; then
5643 #
5644 # No prizes for guessing this one.
5645 #
5646 V_PCAP=linux
5647
5648 #
5649 # XXX - this won't work with older kernels that have
5650 # SOCK_PACKET sockets but not PF_PACKET sockets.
5651 #
5652 VALGRINDTEST=valgrindtest
5653 elif test "$ac_cv_header_net_pfilt_h" = yes; then
5654 #
5655 # DEC OSF/1, Digital UNIX, Tru64 UNIX
5656 #
5657 V_PCAP=pf
5658 elif test "$ac_cv_header_net_enet_h" = yes; then
5659 #
5660 # Stanford Enetfilter.
5661 #
5662 V_PCAP=enet
5663 elif test "$ac_cv_header_net_nit_h" = yes; then
5664 #
5665 # SunOS 4.x STREAMS NIT.
5666 #
5667 V_PCAP=snit
5668 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
5669 #
5670 # Pre-SunOS 4.x non-STREAMS NIT.
5671 #
5672 V_PCAP=nit
5673 elif test "$ac_cv_header_net_raw_h" = yes; then
5674 #
5675 # IRIX snoop.
5676 #
5677 V_PCAP=snoop
5678 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
5679 #
5680 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
5681 #
5682 V_PCAP=dlpi
5683 else
5684 #
5685 # Nothing we support.
5686 #
5687 V_PCAP=null
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
5689 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
5691 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5692 fi
5693 fi
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5695 $as_echo_n "checking packet capture type... " >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5697 $as_echo "$V_PCAP" >&6; }
5698
5699
5700 #
5701 # Do capture-mechanism-dependent tests.
5702 #
5703 case "$V_PCAP" in
5704 dlpi)
5705 #
5706 # Needed for common functions used by pcap-[dlpi,libdlpi].c
5707 #
5708 SSRC="dlpisubs.c"
5709
5710 #
5711 # Checks for some header files.
5712 #
5713 for ac_header in sys/bufmod.h sys/dlpi_ext.h
5714 do :
5715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5716 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5717 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5718 cat >>confdefs.h <<_ACEOF
5719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5720 _ACEOF
5721
5722 fi
5723
5724 done
5725
5726
5727 #
5728 # Checks to see if Solaris has the public libdlpi(3LIB) library.
5729 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5730 # public libdlpi(3LIB) version. Before libdlpi was made public, a
5731 # private version also existed, which did not have the same APIs.
5732 # Due to a gcc bug, the default search path for 32-bit libraries does
5733 # not include /lib, we add it explicitly here.
5734 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5735 # Also, due to the bug above applications that link to libpcap with
5736 # libdlpi will have to add "-L/lib" option to "configure".
5737 #
5738 saved_ldflags=$LDFLAGS
5739 LDFLAGS="$LIBS -L/lib"
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5741 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5742 if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 ac_check_lib_save_LIBS=$LIBS
5746 LIBS="-ldlpi $LIBS"
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749
5750 /* Override any GCC internal prototype to avoid an error.
5751 Use char because int might match the return type of a GCC
5752 builtin and then its argument prototype would still apply. */
5753 #ifdef __cplusplus
5754 extern "C"
5755 #endif
5756 char dlpi_walk ();
5757 int
5758 main ()
5759 {
5760 return dlpi_walk ();
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_c_try_link "$LINENO"; then :
5766 ac_cv_lib_dlpi_dlpi_walk=yes
5767 else
5768 ac_cv_lib_dlpi_dlpi_walk=no
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext \
5771 conftest$ac_exeext conftest.$ac_ext
5772 LIBS=$ac_check_lib_save_LIBS
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5775 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5776 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
5777
5778 LIBS="-ldlpi $LIBS"
5779 V_PCAP=libdlpi
5780
5781 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5782
5783
5784 else
5785 V_PCAP=dlpi
5786 fi
5787
5788 LDFLAGS=$saved_ldflags
5789
5790 #
5791 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5792 # versions of DLPI.
5793 #
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5795 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5796 if ${ac_cv_sys_dlpi_usable+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801
5802 #include <sys/types.h>
5803 #include <sys/time.h>
5804 #include <sys/dlpi.h>
5805
5806 int
5807 main ()
5808 {
5809 int i = DL_PROMISC_PHYS;
5810 ;
5811 return 0;
5812 }
5813 _ACEOF
5814 if ac_fn_c_try_compile "$LINENO"; then :
5815 ac_cv_sys_dlpi_usable=yes
5816 else
5817 ac_cv_sys_dlpi_usable=no
5818 fi
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 fi
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5823 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5824 if test $ac_cv_sys_dlpi_usable = no ; then
5825 as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5826 fi
5827
5828 #
5829 # This check is for Solaris with DLPI support for passive modes.
5830 # See dlpi(7P) for more details.
5831 #
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5833 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5834 if ${ac_cv_lbl_has_dl_passive_req_t+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839
5840 # include <sys/types.h>
5841 # include <sys/dlpi.h>
5842 int
5843 main ()
5844 {
5845 u_int i = sizeof(dl_passive_req_t)
5846 ;
5847 return 0;
5848 }
5849 _ACEOF
5850 if ac_fn_c_try_compile "$LINENO"; then :
5851 ac_cv_lbl_has_dl_passive_req_t=yes
5852 else
5853 ac_cv_lbl_has_dl_passive_req_t=no
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 fi
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5859 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5860 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5861
5862 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5863
5864 fi
5865 ;;
5866
5867 linux)
5868 #
5869 # Do we have the wireless extensions?
5870 #
5871 for ac_header in linux/wireless.h
5872 do :
5873 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5874 #include <sys/socket.h>
5875 #include <linux/if.h>
5876 #include <linux/types.h>
5877
5878 "
5879 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
5880 cat >>confdefs.h <<_ACEOF
5881 #define HAVE_LINUX_WIRELESS_H 1
5882 _ACEOF
5883
5884 fi
5885
5886 done
5887
5888
5889 #
5890 # Do we have libnl?
5891 #
5892
5893 # Check whether --with-libnl was given.
5894 if test "${with_libnl+set}" = set; then :
5895 withval=$with_libnl; with_libnl=$withval
5896 else
5897 with_libnl=if_available
5898 fi
5899
5900
5901 if test x$with_libnl != xno ; then
5902 have_any_nl="no"
5903
5904 incdir=-I/usr/include/libnl3
5905 libnldir=
5906 case "$with_libnl" in
5907
5908 yes|if_available)
5909 ;;
5910
5911 *)
5912 if test -d $withval; then
5913 libnldir=-L${withval}/lib/.libs
5914 incdir=-I${withval}/include
5915 fi
5916 ;;
5917 esac
5918
5919 #
5920 # Try libnl 3.x first.
5921 #
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
5923 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
5924 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 ac_check_lib_save_LIBS=$LIBS
5928 LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931
5932 /* Override any GCC internal prototype to avoid an error.
5933 Use char because int might match the return type of a GCC
5934 builtin and then its argument prototype would still apply. */
5935 #ifdef __cplusplus
5936 extern "C"
5937 #endif
5938 char nl_socket_alloc ();
5939 int
5940 main ()
5941 {
5942 return nl_socket_alloc ();
5943 ;
5944 return 0;
5945 }
5946 _ACEOF
5947 if ac_fn_c_try_link "$LINENO"; then :
5948 ac_cv_lib_nl_3_nl_socket_alloc=yes
5949 else
5950 ac_cv_lib_nl_3_nl_socket_alloc=no
5951 fi
5952 rm -f core conftest.err conftest.$ac_objext \
5953 conftest$ac_exeext conftest.$ac_ext
5954 LIBS=$ac_check_lib_save_LIBS
5955 fi
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
5957 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
5958 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
5959
5960 #
5961 # Yes, we have libnl 3.x.
5962 #
5963 LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5964
5965 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5966
5967
5968 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
5969
5970
5971 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5972
5973
5974 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5975
5976 V_INCLS="$V_INCLS ${incdir}"
5977 have_any_nl="yes"
5978
5979 fi
5980
5981
5982 if test x$have_any_nl = xno ; then
5983 #
5984 # Try libnl 2.x
5985 #
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5987 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5988 if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 ac_check_lib_save_LIBS=$LIBS
5992 LIBS="-lnl $LIBS"
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995
5996 /* Override any GCC internal prototype to avoid an error.
5997 Use char because int might match the return type of a GCC
5998 builtin and then its argument prototype would still apply. */
5999 #ifdef __cplusplus
6000 extern "C"
6001 #endif
6002 char nl_socket_alloc ();
6003 int
6004 main ()
6005 {
6006 return nl_socket_alloc ();
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 if ac_fn_c_try_link "$LINENO"; then :
6012 ac_cv_lib_nl_nl_socket_alloc=yes
6013 else
6014 ac_cv_lib_nl_nl_socket_alloc=no
6015 fi
6016 rm -f core conftest.err conftest.$ac_objext \
6017 conftest$ac_exeext conftest.$ac_ext
6018 LIBS=$ac_check_lib_save_LIBS
6019 fi
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6021 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6022 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
6023
6024 #
6025 # Yes, we have libnl 2.x.
6026 #
6027 LIBS="${libnldir} -lnl-genl -lnl $LIBS"
6028
6029 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6030
6031
6032 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6033
6034
6035 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6036
6037
6038 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6039
6040 have_any_nl="yes"
6041
6042 fi
6043
6044 fi
6045
6046 if test x$have_any_nl = xno ; then
6047 #
6048 # No, we don't; do we have libnl 1.x?
6049 #
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6051 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6052 if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 ac_check_lib_save_LIBS=$LIBS
6056 LIBS="-lnl $LIBS"
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059
6060 /* Override any GCC internal prototype to avoid an error.
6061 Use char because int might match the return type of a GCC
6062 builtin and then its argument prototype would still apply. */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 char nl_handle_alloc ();
6067 int
6068 main ()
6069 {
6070 return nl_handle_alloc ();
6071 ;
6072 return 0;
6073 }
6074 _ACEOF
6075 if ac_fn_c_try_link "$LINENO"; then :
6076 ac_cv_lib_nl_nl_handle_alloc=yes
6077 else
6078 ac_cv_lib_nl_nl_handle_alloc=no
6079 fi
6080 rm -f core conftest.err conftest.$ac_objext \
6081 conftest$ac_exeext conftest.$ac_ext
6082 LIBS=$ac_check_lib_save_LIBS
6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6085 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
6086 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then :
6087
6088 #
6089 # Yes.
6090 #
6091 LIBS="${libnldir} -lnl $LIBS"
6092
6093 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6094
6095 have_any_nl="yes"
6096
6097 fi
6098
6099 fi
6100
6101 if test x$have_any_nl = xno ; then
6102 #
6103 # No, we don't have libnl at all.
6104 #
6105 if test x$with_libnl = xyes ; then
6106 as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
6107 fi
6108 fi
6109 fi
6110
6111 for ac_header in linux/ethtool.h
6112 do :
6113 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
6114 $ac_includes_default
6115 #include <linux/types.h>
6116
6117 "
6118 if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
6119 cat >>confdefs.h <<_ACEOF
6120 #define HAVE_LINUX_ETHTOOL_H 1
6121 _ACEOF
6122
6123 fi
6124
6125 done
6126
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
6128 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
6129 if ${ac_cv_lbl_tpacket_stats+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134
6135 # include <linux/if_packet.h>
6136 int
6137 main ()
6138 {
6139 struct tpacket_stats stats
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145 ac_cv_lbl_tpacket_stats=yes
6146 else
6147 ac_cv_lbl_tpacket_stats=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 fi
6151
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
6153 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
6154 if test $ac_cv_lbl_tpacket_stats = yes; then
6155
6156 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
6157
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
6160 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
6161 if ${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166
6167 # include <sys/types.h>
6168 # include <linux/if_packet.h>
6169 int
6170 main ()
6171 {
6172 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
6173 ;
6174 return 0;
6175 }
6176 _ACEOF
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
6179 else
6180 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 fi
6184
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
6186 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
6187 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
6188 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
6189
6190
6191 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
6192
6193 fi
6194 ;;
6195
6196 bpf)
6197 #
6198 # Check whether we have the *BSD-style ioctls.
6199 #
6200 for ac_header in net/if_media.h
6201 do :
6202 ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6203 if test "x$ac_cv_header_net_if_media_h" = xyes; then :
6204 cat >>confdefs.h <<_ACEOF
6205 #define HAVE_NET_IF_MEDIA_H 1
6206 _ACEOF
6207
6208 fi
6209
6210 done
6211
6212
6213 #
6214 # Check whether we have struct BPF_TIMEVAL.
6215 #
6216 ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6217 #include <sys/types.h>
6218 #include <sys/ioctl.h>
6219 #ifdef HAVE_SYS_IOCCOM_H
6220 #include <sys/ioccom.h>
6221 #endif
6222 #include <net/bpf.h>
6223
6224 "
6225 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then :
6226
6227 cat >>confdefs.h <<_ACEOF
6228 #define HAVE_STRUCT_BPF_TIMEVAL 1
6229 _ACEOF
6230
6231
6232 fi
6233
6234 ;;
6235
6236 dag)
6237 #
6238 # --with-pcap=dag is the only way to get here, and it means
6239 # "DAG support but nothing else"
6240 #
6241 V_DEFS="$V_DEFS -DDAG_ONLY"
6242 xxx_only=yes
6243 ;;
6244
6245 septel)
6246 #
6247 # --with-pcap=septel is the only way to get here, and it means
6248 # "Septel support but nothing else"
6249 #
6250 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
6251 xxx_only=yes
6252 ;;
6253
6254 snf)
6255 #
6256 # --with-pcap=snf is the only way to get here, and it means
6257 # "SNF support but nothing else"
6258 #
6259 V_DEFS="$V_DEFS -DSNF_ONLY"
6260 xxx_only=yes
6261 ;;
6262
6263 null)
6264 ;;
6265
6266 *)
6267 as_fn_error $? "$V_PCAP is not a valid pcap type" "$LINENO" 5
6268 ;;
6269 esac
6270
6271 if test "$V_PCAP" != null
6272 then
6273 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6274 if test "x$ac_cv_func_getifaddrs" = xyes; then :
6275
6276 #
6277 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6278 # as well, just in case some platform is really weird.
6279 #
6280 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6281 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6282
6283 #
6284 # We have the header, so we use "getifaddrs()" to
6285 # get the list of interfaces.
6286 #
6287 V_FINDALLDEVS=fad-getad.c
6288
6289 else
6290
6291 #
6292 # We don't have the header - give up.
6293 # XXX - we could also fall back on some other
6294 # mechanism, but, for now, this'll catch this
6295 # problem so that we can at least try to figure
6296 # out something to do on systems with "getifaddrs()"
6297 # but without "ifaddrs.h", if there is something
6298 # we can do on those systems.
6299 #
6300 as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6301
6302 fi
6303
6304
6305
6306 else
6307
6308 #
6309 # Well, we don't have "getifaddrs()", so we have to use
6310 # some other mechanism; determine what that mechanism is.
6311 #
6312 # The first thing we use is the type of capture mechanism,
6313 # which is somewhat of a proxy for the OS we're using.
6314 #
6315 case "$V_PCAP" in
6316
6317 dlpi|libdlpi)
6318 #
6319 # This might be Solaris 8 or later, with
6320 # SIOCGLIFCONF, or it might be some other OS
6321 # or some older version of Solaris, with
6322 # just SIOCGIFCONF.
6323 #
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6325 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6326 if ${ac_cv_lbl_have_siocglifconf+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 #include <sys/param.h>
6332 #include <sys/file.h>
6333 #include <sys/ioctl.h>
6334 #include <sys/socket.h>
6335 #include <sys/sockio.h>
6336 int
6337 main ()
6338 {
6339 ioctl(0, SIOCGLIFCONF, (char *)0);
6340 ;
6341 return 0;
6342 }
6343 _ACEOF
6344 if ac_fn_c_try_compile "$LINENO"; then :
6345 ac_cv_lbl_have_siocglifconf=yes
6346 else
6347 ac_cv_lbl_have_siocglifconf=no
6348 fi
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 fi
6351
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6353 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6354 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6355 V_FINDALLDEVS=fad-glifc.c
6356 else
6357 V_FINDALLDEVS=fad-gifc.c
6358 fi
6359 ;;
6360
6361 *)
6362 #
6363 # Assume we just have SIOCGIFCONF.
6364 # (XXX - on at least later Linux kernels, there's
6365 # another mechanism, and we should be using that
6366 # instead.)
6367 #
6368 V_FINDALLDEVS=fad-gifc.c
6369 ;;
6370 esac
6371 fi
6372
6373 fi
6374
6375 fi
6376
6377
6378 case "$host_os" in
6379 linux*)
6380 for ac_header in linux/net_tstamp.h
6381 do :
6382 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
6383 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
6384 cat >>confdefs.h <<_ACEOF
6385 #define HAVE_LINUX_NET_TSTAMP_H 1
6386 _ACEOF
6387
6388 fi
6389
6390 done
6391
6392 ;;
6393 *)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
6395 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
6396 ;;
6397 esac
6398
6399 # Check whether --enable-packet-ring was given.
6400 if test "${enable_packet_ring+set}" = set; then :
6401 enableval=$enable_packet_ring;
6402 else
6403 enable_packet_ring=yes
6404 fi
6405
6406
6407 if test "x$enable_packet_ring" != "xno" ; then
6408
6409 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
6410
6411
6412 fi
6413
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6415 $as_echo_n "checking for socklen_t... " >&6; }
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418
6419 #include <sys/types.h>
6420 #include <sys/socket.h>
6421
6422 int
6423 main ()
6424 {
6425 socklen_t x;
6426 ;
6427 return 0;
6428 }
6429 _ACEOF
6430 if ac_fn_c_try_compile "$LINENO"; then :
6431 have_socklen_t=yes
6432 else
6433 have_socklen_t=no
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 if test "x$have_socklen_t" = "xyes"; then
6437
6438 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6439
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
6442 $as_echo "$have_socklen_t" >&6; }
6443
6444 # Check whether --enable-ipv6 was given.
6445 if test "${enable_ipv6+set}" = set; then :
6446 enableval=$enable_ipv6;
6447 else
6448 enable_ipv6=ifavailable
6449 fi
6450
6451 if test "$enable_ipv6" != "no"; then
6452 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6453 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
6454
6455
6456 $as_echo "#define INET6 1" >>confdefs.h
6457
6458
6459 else
6460
6461 if test "$enable_ipv6" != "ifavailable"; then
6462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6464 as_fn_error $? "--enable-ipv6 was given, but getaddrinfo isn't available
6465 See \`config.log' for more details" "$LINENO" 5; }
6466 fi
6467
6468 fi
6469
6470 fi
6471
6472 # Check for Endace DAG card support.
6473
6474 # Check whether --with-dag was given.
6475 if test "${with_dag+set}" = set; then :
6476 withval=$with_dag;
6477 if test "$withval" = no
6478 then
6479 # User doesn't want DAG support.
6480 want_dag=no
6481 elif test "$withval" = yes
6482 then
6483 # User wants DAG support but hasn't specified a directory.
6484 want_dag=yes
6485 else
6486 # User wants DAG support and has specified a directory, so use the provided value.
6487 want_dag=yes
6488 dag_root=$withval
6489 fi
6490
6491 else
6492
6493 if test "$V_PCAP" = dag; then
6494 # User requested DAG-only libpcap, so we'd better have
6495 # the DAG API.
6496 want_dag=yes
6497 elif test "xxx_only" = yes; then
6498 # User requested something-else-only pcap, so they don't
6499 # want DAG support.
6500 want_dag=no
6501 else
6502 #
6503 # Use DAG API if present, otherwise don't
6504 #
6505 want_dag=ifpresent
6506 fi
6507
6508 fi
6509
6510
6511
6512 # Check whether --with-dag-includes was given.
6513 if test "${with_dag_includes+set}" = set; then :
6514 withval=$with_dag_includes;
6515 # User wants DAG support and has specified a header directory, so use the provided value.
6516 want_dag=yes
6517 dag_include_dir=$withval
6518
6519 fi
6520
6521
6522
6523 # Check whether --with-dag-libraries was given.
6524 if test "${with_dag_libraries+set}" = set; then :
6525 withval=$with_dag_libraries;
6526 # User wants DAG support and has specified a library directory, so use the provided value.
6527 want_dag=yes
6528 dag_lib_dir=$withval
6529
6530 fi
6531
6532
6533 ac_cv_lbl_dag_api=no
6534 if test "$want_dag" != no; then
6535
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6537 $as_echo_n "checking whether we have DAG API headers... " >&6; }
6538
6539 # If necessary, set default paths for DAG API headers and libraries.
6540 if test -z "$dag_root"; then
6541 dag_root=/usr/local
6542 fi
6543
6544 if test -z "$dag_include_dir"; then
6545 dag_include_dir="$dag_root/include"
6546 fi
6547
6548 if test -z "$dag_lib_dir"; then
6549 dag_lib_dir="$dag_root/lib"
6550 fi
6551
6552 if test -z "$dag_tools_dir"; then
6553 dag_tools_dir="$dag_root/tools"
6554 fi
6555
6556 if test -r $dag_include_dir/dagapi.h; then
6557 ac_cv_lbl_dag_api=yes
6558 fi
6559
6560 if test "$ac_cv_lbl_dag_api" = yes; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($dag_include_dir)" >&5
6562 $as_echo "yes ($dag_include_dir)" >&6; }
6563
6564 V_INCLS="$V_INCLS -I$dag_include_dir"
6565
6566 if test $V_PCAP != dag ; then
6567 SSRC="$SSRC pcap-dag.c"
6568 fi
6569
6570 # Check for various DAG API functions.
6571 # Don't need to save and restore LIBS to prevent -ldag being
6572 # included if there's a found-action (arg 3).
6573 saved_ldflags=$LDFLAGS
6574 LDFLAGS="-L$dag_lib_dir"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6576 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6577 if ${ac_cv_lib_dag_dag_attach_stream+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 ac_check_lib_save_LIBS=$LIBS
6581 LIBS="-ldag $LIBS"
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584
6585 /* Override any GCC internal prototype to avoid an error.
6586 Use char because int might match the return type of a GCC
6587 builtin and then its argument prototype would still apply. */
6588 #ifdef __cplusplus
6589 extern "C"
6590 #endif
6591 char dag_attach_stream ();
6592 int
6593 main ()
6594 {
6595 return dag_attach_stream ();
6596 ;
6597 return 0;
6598 }
6599 _ACEOF
6600 if ac_fn_c_try_link "$LINENO"; then :
6601 ac_cv_lib_dag_dag_attach_stream=yes
6602 else
6603 ac_cv_lib_dag_dag_attach_stream=no
6604 fi
6605 rm -f core conftest.err conftest.$ac_objext \
6606 conftest$ac_exeext conftest.$ac_ext
6607 LIBS=$ac_check_lib_save_LIBS
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6610 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
6611 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then :
6612 cat >>confdefs.h <<_ACEOF
6613 #define HAVE_LIBDAG 1
6614 _ACEOF
6615
6616 LIBS="-ldag $LIBS"
6617
6618 else
6619 as_fn_error $? "DAG library lacks streams support" "$LINENO" 5
6620 fi
6621
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
6623 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
6624 if ${ac_cv_lib_dag_dag_attach_stream64+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 ac_check_lib_save_LIBS=$LIBS
6628 LIBS="-ldag $LIBS"
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631
6632 /* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */
6635 #ifdef __cplusplus
6636 extern "C"
6637 #endif
6638 char dag_attach_stream64 ();
6639 int
6640 main ()
6641 {
6642 return dag_attach_stream64 ();
6643 ;
6644 return 0;
6645 }
6646 _ACEOF
6647 if ac_fn_c_try_link "$LINENO"; then :
6648 ac_cv_lib_dag_dag_attach_stream64=yes
6649 else
6650 ac_cv_lib_dag_dag_attach_stream64=no
6651 fi
6652 rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
6654 LIBS=$ac_check_lib_save_LIBS
6655 fi
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
6657 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
6658 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes; then :
6659 dag_large_streams="1"
6660 else
6661 dag_large_streams="0"
6662 fi
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6665 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6666 if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 ac_check_lib_save_LIBS=$LIBS
6670 LIBS="-ldag $LIBS"
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673
6674 /* Override any GCC internal prototype to avoid an error.
6675 Use char because int might match the return type of a GCC
6676 builtin and then its argument prototype would still apply. */
6677 #ifdef __cplusplus
6678 extern "C"
6679 #endif
6680 char dag_get_erf_types ();
6681 int
6682 main ()
6683 {
6684 return dag_get_erf_types ();
6685 ;
6686 return 0;
6687 }
6688 _ACEOF
6689 if ac_fn_c_try_link "$LINENO"; then :
6690 ac_cv_lib_dag_dag_get_erf_types=yes
6691 else
6692 ac_cv_lib_dag_dag_get_erf_types=no
6693 fi
6694 rm -f core conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext
6696 LIBS=$ac_check_lib_save_LIBS
6697 fi
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6699 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6700 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then :
6701
6702
6703 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6704
6705 fi
6706
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6708 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6709 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 ac_check_lib_save_LIBS=$LIBS
6713 LIBS="-ldag $LIBS"
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716
6717 /* Override any GCC internal prototype to avoid an error.
6718 Use char because int might match the return type of a GCC
6719 builtin and then its argument prototype would still apply. */
6720 #ifdef __cplusplus
6721 extern "C"
6722 #endif
6723 char dag_get_stream_erf_types ();
6724 int
6725 main ()
6726 {
6727 return dag_get_stream_erf_types ();
6728 ;
6729 return 0;
6730 }
6731 _ACEOF
6732 if ac_fn_c_try_link "$LINENO"; then :
6733 ac_cv_lib_dag_dag_get_stream_erf_types=yes
6734 else
6735 ac_cv_lib_dag_dag_get_stream_erf_types=no
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6739 LIBS=$ac_check_lib_save_LIBS
6740 fi
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6742 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6743 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then :
6744
6745
6746 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6747
6748 fi
6749
6750
6751 LDFLAGS=$saved_ldflags
6752
6753 LIBS="$LIBS -ldag"
6754 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
6755
6756 if test "$dag_large_streams" = 1; then
6757
6758 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
6759
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6761 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6762 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 ac_check_lib_save_LIBS=$LIBS
6766 LIBS="-lvdag $LIBS"
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769
6770 /* Override any GCC internal prototype to avoid an error.
6771 Use char because int might match the return type of a GCC
6772 builtin and then its argument prototype would still apply. */
6773 #ifdef __cplusplus
6774 extern "C"
6775 #endif
6776 char vdag_set_device_info ();
6777 int
6778 main ()
6779 {
6780 return vdag_set_device_info ();
6781 ;
6782 return 0;
6783 }
6784 _ACEOF
6785 if ac_fn_c_try_link "$LINENO"; then :
6786 ac_cv_lib_vdag_vdag_set_device_info=yes
6787 else
6788 ac_cv_lib_vdag_vdag_set_device_info=no
6789 fi
6790 rm -f core conftest.err conftest.$ac_objext \
6791 conftest$ac_exeext conftest.$ac_ext
6792 LIBS=$ac_check_lib_save_LIBS
6793 fi
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6795 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6796 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then :
6797 ac_dag_have_vdag="1"
6798 else
6799 ac_dag_have_vdag="0"
6800 fi
6801
6802 if test "$ac_dag_have_vdag" = 1; then
6803
6804 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6805
6806 if test "$ac_lbl_have_pthreads" != "found"; then
6807 as_fn_error $? "DAG requires pthreads, but we didn't find them" "$LINENO" 5
6808 fi
6809 LIBS="$LIBS $PTHREAD_LIBS"
6810 fi
6811 fi
6812
6813
6814 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6815
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819
6820 if test "$V_PCAP" = dag; then
6821 # User requested "dag" capture type but we couldn't
6822 # find the DAG API support.
6823 as_fn_error $? "DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
6824 fi
6825
6826 if test "$want_dag" = yes; then
6827 # User wanted DAG support but we couldn't find it.
6828 as_fn_error $? "DAG support requested with --with-dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
6829 fi
6830 fi
6831 fi
6832
6833
6834 # Check whether --with-septel was given.
6835 if test "${with_septel+set}" = set; then :
6836 withval=$with_septel;
6837 if test "$withval" = no
6838 then
6839 want_septel=no
6840 elif test "$withval" = yes
6841 then
6842 want_septel=yes
6843 septel_root=
6844 else
6845 want_septel=yes
6846 septel_root=$withval
6847 fi
6848
6849 else
6850
6851 if test "$V_PCAP" = septel; then
6852 # User requested Septel-only libpcap, so we'd better have
6853 # the Septel API.
6854 want_septel=yes
6855 elif test "xxx_only" = yes; then
6856 # User requested something-else-only pcap, so they don't
6857 # want Septel support.
6858 want_septel=no
6859 else
6860 #
6861 # Use Septel API if present, otherwise don't
6862 #
6863 want_septel=ifpresent
6864 fi
6865
6866 fi
6867
6868
6869 ac_cv_lbl_septel_api=no
6870 if test "$with_septel" != no; then
6871
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
6873 $as_echo_n "checking whether we have Septel API headers... " >&6; }
6874
6875 # If necessary, set default paths for Septel API headers and libraries.
6876 if test -z "$septel_root"; then
6877 septel_root=$srcdir/../septel
6878 fi
6879
6880 septel_tools_dir="$septel_root"
6881 septel_include_dir="$septel_root/INC"
6882
6883 if test -r "$septel_include_dir/msg.h"; then
6884 ac_cv_lbl_septel_api=yes
6885 fi
6886
6887 if test "$ac_cv_lbl_septel_api" = yes; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
6889 $as_echo "yes ($septel_include_dir)" >&6; }
6890
6891 V_INCLS="$V_INCLS -I$septel_include_dir"
6892 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"
6893 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"
6894
6895 if test "$V_PCAP" != septel ; then
6896 SSRC="$SSRC pcap-septel.c"
6897 fi
6898
6899
6900 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6901
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905
6906 if test "$V_PCAP" = septel; then
6907 # User requested "septel" capture type but
6908 # we couldn't find the Septel API support.
6909 as_fn_error $? "Septel support requested with --with-pcap=septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
6910 fi
6911
6912 if test "$want_septel" = yes; then
6913 # User wanted Septel support but we couldn't find it.
6914 as_fn_error $? "Septel support requested with --with-septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
6915 fi
6916 fi
6917 fi
6918
6919 # Check for Myricom SNF support.
6920
6921 # Check whether --with-snf was given.
6922 if test "${with_snf+set}" = set; then :
6923 withval=$with_snf;
6924 if test "$withval" = no
6925 then
6926 # User explicitly doesn't want SNF
6927 want_snf=no
6928 elif test "$withval" = yes
6929 then
6930 # User wants SNF support but hasn't specified a directory.
6931 want_snf=yes
6932 else
6933 # User wants SNF support with a specified directory.
6934 want_snf=yes
6935 snf_root=$withval
6936 fi
6937
6938 else
6939
6940 if test "$V_PCAP" = snf; then
6941 # User requested Sniffer-only libpcap, so we'd better have
6942 # the Sniffer API.
6943 want_snf=yes
6944 elif test "xxx_only" = yes; then
6945 # User requested something-else-only pcap, so they don't
6946 # want SNF support.
6947 want_snf=no
6948 else
6949 #
6950 # Use Sniffer API if present, otherwise don't
6951 #
6952 want_snf=ifpresent
6953 fi
6954
6955 fi
6956
6957
6958
6959 # Check whether --with-snf-includes was given.
6960 if test "${with_snf_includes+set}" = set; then :
6961 withval=$with_snf_includes;
6962 # User wants SNF with specific header directory
6963 want_snf=yes
6964 snf_include_dir=$withval
6965
6966 fi
6967
6968
6969
6970 # Check whether --with-snf-libraries was given.
6971 if test "${with_snf_libraries+set}" = set; then :
6972 withval=$with_snf_libraries;
6973 # User wants SNF with specific lib directory
6974 want_snf=yes
6975 snf_lib_dir=$withval
6976
6977 fi
6978
6979
6980 ac_cv_lbl_snf_api=no
6981 if test "$with_snf" != no; then
6982
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6984 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6985
6986 # If necessary, set default paths for Sniffer headers and libraries.
6987 if test -z "$snf_root"; then
6988 snf_root=/opt/snf
6989 fi
6990
6991 if test -z "$snf_include_dir"; then
6992 snf_include_dir="$snf_root/include"
6993 fi
6994
6995 if test -z "$snf_lib_dir"; then
6996 snf_lib_dir="$snf_root/lib"
6997 fi
6998
6999 if test -f "$snf_include_dir/snf.h"; then
7000 # We found a header; make sure we can link with the library
7001 saved_ldflags=$LDFLAGS
7002 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7004 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7005 if ${ac_cv_lib_snf_snf_init+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 ac_check_lib_save_LIBS=$LIBS
7009 LIBS="-lsnf $LIBS"
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7012
7013 /* Override any GCC internal prototype to avoid an error.
7014 Use char because int might match the return type of a GCC
7015 builtin and then its argument prototype would still apply. */
7016 #ifdef __cplusplus
7017 extern "C"
7018 #endif
7019 char snf_init ();
7020 int
7021 main ()
7022 {
7023 return snf_init ();
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_c_try_link "$LINENO"; then :
7029 ac_cv_lib_snf_snf_init=yes
7030 else
7031 ac_cv_lib_snf_snf_init=no
7032 fi
7033 rm -f core conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7035 LIBS=$ac_check_lib_save_LIBS
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7038 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7039 if test "x$ac_cv_lib_snf_snf_init" = xyes; then :
7040 ac_cv_lbl_snf_api="yes"
7041 fi
7042
7043 LDFLAGS="$saved_ldflags"
7044 if test "$ac_cv_lbl_snf_api" = no; then
7045 as_fn_error $? "SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7046 fi
7047 fi
7048
7049 if test "$ac_cv_lbl_snf_api" = yes; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7051 $as_echo "yes ($snf_root)" >&6; }
7052
7053 V_INCLS="$V_INCLS -I$snf_include_dir"
7054 LIBS="$LIBS -lsnf"
7055 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7056
7057 if test "$V_PCAP" != snf ; then
7058 SSRC="$SSRC pcap-snf.c"
7059 fi
7060
7061
7062 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7063
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067
7068 if test "$want_snf" = yes; then
7069 # User requested "snf" capture type but
7070 # we couldn't find the Sniffer API support.
7071 as_fn_error $? "Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
7072 fi
7073
7074 if test "$want_snf" = yes; then
7075 as_fn_error $? "Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
7076 fi
7077 fi
7078 fi
7079
7080 # Check for Riverbed TurboCap support.
7081
7082 # Check whether --with-turbocap was given.
7083 if test "${with_turbocap+set}" = set; then :
7084 withval=$with_turbocap;
7085 if test "$withval" = no
7086 then
7087 # User explicitly doesn't want TurboCap
7088 want_turbocap=no
7089 elif test "$withval" = yes
7090 then
7091 # User wants TurboCap support but hasn't specified a directory.
7092 want_turbocap=yes
7093 else
7094 # User wants TurboCap support with a specified directory.
7095 want_turbocap=yes
7096 turbocap_root=$withval
7097 fi
7098
7099 else
7100
7101 if test "xxx_only" = yes; then
7102 # User requested something-else-only pcap, so they don't
7103 # want TurboCap support.
7104 want_turbocap=no
7105 else
7106 #
7107 # Use TurboCap API if present, otherwise don't
7108 #
7109 want_turbocap=ifpresent
7110 fi
7111
7112 fi
7113
7114
7115 ac_cv_lbl_turbocap_api=no
7116 if test "$want_turbocap" != no; then
7117
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
7119 $as_echo_n "checking whether TurboCap is supported... " >&6; }
7120
7121 save_CFLAGS="$CFLAGS"
7122 save_LIBS="$LIBS"
7123 if test ! -z "$turbocap_root"; then
7124 TURBOCAP_CFLAGS="-I$turbocap_root/include"
7125 TURBOCAP_LIBS="-L$turbocap_root/lib"
7126 CFLAGS="$CFLAGS $TURBOCAP_CFLAGS"
7127 fi
7128
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131
7132 #include <TcApi.h>
7133
7134 int
7135 main ()
7136 {
7137
7138 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
7139 TC_INSTANCE i;
7140 (void)TcInstanceCreateByName("foo", &i);
7141
7142 ;
7143 return 0;
7144 }
7145 _ACEOF
7146 if ac_fn_c_try_compile "$LINENO"; then :
7147 ac_cv_lbl_turbocap_api=yes
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150
7151 CFLAGS="$save_CFLAGS"
7152 if test $ac_cv_lbl_turbocap_api = yes; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7154 $as_echo "yes" >&6; }
7155
7156 SSRC="$SSRC pcap-tc.c"
7157 V_INCLS="$V_INCLS $TURBOCAP_CFLAGS"
7158 LIBS="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
7159
7160
7161 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
7162
7163 else
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7166
7167 if test "$want_turbocap" = yes; then
7168 # User wanted Turbo support but we couldn't find it.
7169 as_fn_error $? "TurboCap support requested with --with-turbocap, but the TurboCap headers weren't found: make sure the TurboCap support is installed or don't request TurboCap support" "$LINENO" 5
7170 fi
7171 fi
7172 fi
7173
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7175 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7176 # Check whether --enable-remote was given.
7177 if test "${enable_remote+set}" = set; then :
7178 enableval=$enable_remote;
7179 else
7180 enableval=no
7181 fi
7182
7183 case "$enableval" in
7184 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7185 $as_echo "yes" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7187 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7189 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7190 #
7191 # rpcapd requires pthreads on UN*X.
7192 #
7193 if test "$ac_lbl_have_pthreads" != "found"; then
7194 as_fn_error $? "rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
7195 fi
7196 #
7197 # It also requires crypt().
7198 # Do we have it in the system libraries?
7199 #
7200 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7201 if test "x$ac_cv_func_crypt" = xyes; then :
7202
7203 else
7204
7205 #
7206 # No. Do we have it in -lcrypt?
7207 #
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7209 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7210 if ${ac_cv_lib_crypt_crypt+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 ac_check_lib_save_LIBS=$LIBS
7214 LIBS="-lcrypt $LIBS"
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217
7218 /* Override any GCC internal prototype to avoid an error.
7219 Use char because int might match the return type of a GCC
7220 builtin and then its argument prototype would still apply. */
7221 #ifdef __cplusplus
7222 extern "C"
7223 #endif
7224 char crypt ();
7225 int
7226 main ()
7227 {
7228 return crypt ();
7229 ;
7230 return 0;
7231 }
7232 _ACEOF
7233 if ac_fn_c_try_link "$LINENO"; then :
7234 ac_cv_lib_crypt_crypt=yes
7235 else
7236 ac_cv_lib_crypt_crypt=no
7237 fi
7238 rm -f core conftest.err conftest.$ac_objext \
7239 conftest$ac_exeext conftest.$ac_ext
7240 LIBS=$ac_check_lib_save_LIBS
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7243 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7244 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7245
7246 #
7247 # Yes; add -lcrypt to the libraries for rpcapd.
7248 #
7249 RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt"
7250
7251 else
7252
7253 as_fn_error $? "rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
7254
7255 fi
7256
7257
7258 fi
7259
7260
7261 #
7262 # OK, we have crypt(). Do we have getspnam()?
7263 #
7264 for ac_func in getspnam
7265 do :
7266 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7267 if test "x$ac_cv_func_getspnam" = xyes; then :
7268 cat >>confdefs.h <<_ACEOF
7269 #define HAVE_GETSPNAM 1
7270 _ACEOF
7271
7272 fi
7273 done
7274
7275
7276 #
7277 # Check for various members of struct msghdr.
7278 #
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct msghdr has a msg_control member" >&5
7280 $as_echo_n "checking if struct msghdr has a msg_control member... " >&6; }
7281 if ${ac_cv_lbl_struct_msghdr_has_msg_control+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286
7287 # include <sys/socket.h>
7288 int
7289 main ()
7290 {
7291 u_int i = sizeof(((struct msghdr *)0)->msg_control)
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297 ac_cv_lbl_struct_msghdr_has_msg_control=yes
7298 else
7299 ac_cv_lbl_struct_msghdr_has_msg_control=no
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 fi
7303
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_struct_msghdr_has_msg_control" >&5
7305 $as_echo "$ac_cv_lbl_struct_msghdr_has_msg_control" >&6; }
7306 if test $ac_cv_lbl_struct_msghdr_has_msg_control = yes ; then
7307
7308 $as_echo "#define STRUCT_MSGHDR_HAS_MSG_CONTROL 1" >>confdefs.h
7309
7310 fi
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct msghdr has a msg_flags member" >&5
7312 $as_echo_n "checking if struct msghdr has a msg_flags member... " >&6; }
7313 if ${ac_cv_lbl_struct_msghdr_has_msg_flags+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318
7319 # include <sys/socket.h>
7320 int
7321 main ()
7322 {
7323 u_int i = sizeof(((struct msghdr *)0)->msg_flags)
7324 ;
7325 return 0;
7326 }
7327 _ACEOF
7328 if ac_fn_c_try_compile "$LINENO"; then :
7329 ac_cv_lbl_struct_msghdr_has_msg_flags=yes
7330 else
7331 ac_cv_lbl_struct_msghdr_has_msg_flags=no
7332 fi
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 fi
7335
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_struct_msghdr_has_msg_flags" >&5
7337 $as_echo "$ac_cv_lbl_struct_msghdr_has_msg_flags" >&6; }
7338 if test $ac_cv_lbl_struct_msghdr_has_msg_flags = yes ; then
7339
7340 $as_echo "#define STRUCT_MSGHDR_HAS_MSG_FLAGS 1" >>confdefs.h
7341
7342 fi
7343
7344
7345 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
7346
7347 SSRC="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
7348 BUILD_RPCAPD=build-rpcapd
7349 INSTALL_RPCAPD=install-rpcapd
7350 ;;
7351 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 ;;
7354 esac
7355
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
7357 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
7358 # Check whether --enable-optimizer-dbg was given.
7359 if test "${enable_optimizer_dbg+set}" = set; then :
7360 enableval=$enable_optimizer_dbg;
7361 fi
7362
7363 if test "$enable_optimizer_dbg" = "yes"; then
7364
7365 $as_echo "#define BDEBUG 1" >>confdefs.h
7366
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
7369 $as_echo "${enable_optimizer_dbg-no}" >&6; }
7370
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
7372 $as_echo_n "checking whether to build parser debugging code... " >&6; }
7373 # Check whether --enable-yydebug was given.
7374 if test "${enable_yydebug+set}" = set; then :
7375 enableval=$enable_yydebug;
7376 fi
7377
7378 if test "$enable_yydebug" = "yes"; then
7379
7380 $as_echo "#define YYDEBUG 1" >>confdefs.h
7381
7382 fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
7384 $as_echo "${enable_yydebug-no}" >&6; }
7385
7386 #
7387 # Look for {f}lex.
7388 #
7389 for ac_prog in flex lex
7390 do
7391 # Extract the first word of "$ac_prog", so it can be a program name with args.
7392 set dummy $ac_prog; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if ${ac_cv_prog_LEX+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 if test -n "$LEX"; then
7399 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_LEX="$ac_prog"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416 fi
7417 fi
7418 LEX=$ac_cv_prog_LEX
7419 if test -n "$LEX"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7421 $as_echo "$LEX" >&6; }
7422 else
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425 fi
7426
7427
7428 test -n "$LEX" && break
7429 done
7430 test -n "$LEX" || LEX=":"
7431
7432 if test "x$LEX" != "x:"; then
7433 cat >conftest.l <<_ACEOF
7434 %%
7435 a { ECHO; }
7436 b { REJECT; }
7437 c { yymore (); }
7438 d { yyless (1); }
7439 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7440 yyless ((input () != 0)); }
7441 f { unput (yytext[0]); }
7442 . { BEGIN INITIAL; }
7443 %%
7444 #ifdef YYTEXT_POINTER
7445 extern char *yytext;
7446 #endif
7447 int
7448 main (void)
7449 {
7450 return ! yylex () + ! yywrap ();
7451 }
7452 _ACEOF
7453 { { ac_try="$LEX conftest.l"
7454 case "(($ac_try" in
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7457 esac
7458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7459 $as_echo "$ac_try_echo"; } >&5
7460 (eval "$LEX conftest.l") 2>&5
7461 ac_status=$?
7462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7463 test $ac_status = 0; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7465 $as_echo_n "checking lex output file root... " >&6; }
7466 if ${ac_cv_prog_lex_root+:} false; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469
7470 if test -f lex.yy.c; then
7471 ac_cv_prog_lex_root=lex.yy
7472 elif test -f lexyy.c; then
7473 ac_cv_prog_lex_root=lexyy
7474 else
7475 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7476 fi
7477 fi
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7479 $as_echo "$ac_cv_prog_lex_root" >&6; }
7480 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7481
7482 if test -z "${LEXLIB+set}"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7484 $as_echo_n "checking lex library... " >&6; }
7485 if ${ac_cv_lib_lex+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488
7489 ac_save_LIBS=$LIBS
7490 ac_cv_lib_lex='none needed'
7491 for ac_lib in '' -lfl -ll; do
7492 LIBS="$ac_lib $ac_save_LIBS"
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 `cat $LEX_OUTPUT_ROOT.c`
7496 _ACEOF
7497 if ac_fn_c_try_link "$LINENO"; then :
7498 ac_cv_lib_lex=$ac_lib
7499 fi
7500 rm -f core conftest.err conftest.$ac_objext \
7501 conftest$ac_exeext conftest.$ac_ext
7502 test "$ac_cv_lib_lex" != 'none needed' && break
7503 done
7504 LIBS=$ac_save_LIBS
7505
7506 fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7508 $as_echo "$ac_cv_lib_lex" >&6; }
7509 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7510 fi
7511
7512
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7514 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7515 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 # POSIX says lex can declare yytext either as a pointer or an array; the
7519 # default is implementation-dependent. Figure out which it is, since
7520 # not all implementations provide the %pointer and %array declarations.
7521 ac_cv_prog_lex_yytext_pointer=no
7522 ac_save_LIBS=$LIBS
7523 LIBS="$LEXLIB $ac_save_LIBS"
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7526
7527 #define YYTEXT_POINTER 1
7528 `cat $LEX_OUTPUT_ROOT.c`
7529 _ACEOF
7530 if ac_fn_c_try_link "$LINENO"; then :
7531 ac_cv_prog_lex_yytext_pointer=yes
7532 fi
7533 rm -f core conftest.err conftest.$ac_objext \
7534 conftest$ac_exeext conftest.$ac_ext
7535 LIBS=$ac_save_LIBS
7536
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7539 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7540 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7541
7542 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7543
7544 fi
7545 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7546
7547 fi
7548 if test "$LEX" = ":"; then
7549 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7550 fi
7551
7552 #
7553 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7554 # and supports processing our scanner.l.
7555 #
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7557 $as_echo_n "checking for capable lex... " >&6; }
7558 if ${tcpdump_cv_capable_lex+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7562 tcpdump_cv_capable_lex=yes
7563 else
7564 tcpdump_cv_capable_lex=insufficient
7565 fi
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7568 $as_echo "$tcpdump_cv_capable_lex" >&6; }
7569 if test $tcpdump_cv_capable_lex = insufficient ; then
7570 as_fn_error $? "$LEX is insufficient to compile libpcap.
7571 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7572 fi
7573
7574 #
7575 # Look for yacc/bison/byacc.
7576 #
7577 for ac_prog in 'bison -y' byacc
7578 do
7579 # Extract the first word of "$ac_prog", so it can be a program name with args.
7580 set dummy $ac_prog; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if ${ac_cv_prog_YACC+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 if test -n "$YACC"; then
7587 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596 ac_cv_prog_YACC="$ac_prog"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7599 fi
7600 done
7601 done
7602 IFS=$as_save_IFS
7603
7604 fi
7605 fi
7606 YACC=$ac_cv_prog_YACC
7607 if test -n "$YACC"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7609 $as_echo "$YACC" >&6; }
7610 else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7613 fi
7614
7615
7616 test -n "$YACC" && break
7617 done
7618 test -n "$YACC" || YACC="yacc"
7619
7620
7621 #
7622 # Make sure it supports the -p flag and supports processing our
7623 # grammar.y.
7624 #
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
7626 $as_echo_n "checking for capable yacc/bison... " >&6; }
7627 if ${tcpdump_cv_capable_yacc+:} false; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
7631 tcpdump_cv_capable_yacc=yes
7632 else
7633 tcpdump_cv_capable_yacc=insufficient
7634 fi
7635 fi
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
7637 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
7638 if test $tcpdump_cv_capable_yacc = insufficient ; then
7639 as_fn_error $? "$YACC is insufficient to compile libpcap.
7640 libpcap requires Bison, Berkeley YACC, or another YACC compatible with them." "$LINENO" 5
7641 fi
7642
7643 #
7644 # Do various checks for various OSes and versions of those OSes.
7645 #
7646 # Assume, by default, no support for shared libraries and V7/BSD convention
7647 # for man pages (file formats in section 5, miscellaneous info in section 7).
7648 # Individual cases can override this.
7649 #
7650 DYEXT="none"
7651 MAN_FILE_FORMATS=5
7652 MAN_MISC_INFO=7
7653 MAN_USERMOD_SECTION=8
7654 case "$host_os" in
7655
7656 aix*)
7657
7658 $as_echo "#define _SUN 1" >>confdefs.h
7659
7660
7661 #
7662 # AIX makes it fun to build shared and static libraries,
7663 # because they're *both* ".a" archive libraries. We
7664 # build the static library for the benefit of the traditional
7665 # scheme of building libpcap and tcpdump in subdirectories of
7666 # the same directory, with tcpdump statically linked with the
7667 # libpcap in question, but we also build a shared library as
7668 # "libpcap.shareda" and install *it*, rather than the static
7669 # library, as "libpcap.a".
7670 #
7671 DYEXT="shareda"
7672
7673 case "$V_PCAP" in
7674
7675 dlpi)
7676 #
7677 # If we're using DLPI, applications will need to
7678 # use /lib/pse.exp if present, as we use the
7679 # STREAMS routines.
7680 #
7681 pseexe="/lib/pse.exp"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
7683 $as_echo_n "checking for $pseexe... " >&6; }
7684 if test -f $pseexe ; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686 $as_echo "yes" >&6; }
7687 LIBS="-I:$pseexe"
7688 fi
7689 ;;
7690
7691 bpf)
7692 #
7693 # If we're using BPF, we need "-lodm" and "-lcfg", as
7694 # we use them to load the BPF module.
7695 #
7696 LIBS="-lodm -lcfg"
7697 ;;
7698 esac
7699 ;;
7700
7701 darwin*)
7702 DYEXT="dylib"
7703 V_CCOPT="$V_CCOPT -fno-common"
7704 # Check whether --enable-universal was given.
7705 if test "${enable_universal+set}" = set; then :
7706 enableval=$enable_universal;
7707 fi
7708
7709 if test "$enable_universal" != "no"; then
7710 case "$host_os" in
7711
7712 darwin0-7.*)
7713 #
7714 # Pre-Tiger. Build only for 32-bit PowerPC; no
7715 # need for any special compiler or linker flags.
7716 #
7717 ;;
7718
7719 darwin8.0123*)
7720 #
7721 # Tiger, prior to Intel support. Build for 32-bit
7722 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
7723 # first. (I'm guessing that's what Apple does.)
7724 #
7725 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
7726 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
7727 ;;
7728
7729 darwin8.456*)
7730 #
7731 # Tiger, subsequent to Intel support but prior to
7732 # x86-64 support. Build for 32-bit PowerPC, 64-bit
7733 # PowerPC, and x86, with 32-bit PowerPC first.
7734 # (I'm guessing that's what Apple does.)
7735 #
7736 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
7737 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
7738 ;;
7739
7740 darwin8.*)
7741 #
7742 # All other Tiger, so subsequent to x86-64
7743 # support. Build for 32-bit PowerPC, 64-bit
7744 # PowerPC, x86, and x86-64, and with 32-bit PowerPC
7745 # first. (I'm guessing that's what Apple does.)
7746 #
7747 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7748 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7749 ;;
7750
7751 darwin9.*)
7752 #
7753 # Leopard. Build for 32-bit PowerPC, 64-bit
7754 # PowerPC, x86, and x86-64, with 32-bit PowerPC
7755 # first. (That's what Apple does.)
7756 #
7757 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7758 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7759 ;;
7760
7761 darwin10.*)
7762 #
7763 # Snow Leopard. Build for x86-64, x86, and
7764 # 32-bit PowerPC, with x86-64 first. (That's
7765 # what Apple does, even though Snow Leopard
7766 # doesn't run on PPC, so PPC libpcap runs under
7767 # Rosetta, and Rosetta doesn't support BPF
7768 # ioctls, so PPC programs can't do live
7769 # captures.)
7770 #
7771 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
7772 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
7773 ;;
7774
7775 darwin*)
7776 #
7777 # Post-Snow Leopard. Build for x86-64 and
7778 # x86, with x86-64 first. (That's probably what
7779 # Apple does, given that Rosetta is gone.)
7780 # XXX - update if and when Apple drops support
7781 # for 32-bit x86 code.
7782 #
7783 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
7784 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
7785 ;;
7786 esac
7787 fi
7788 ;;
7789
7790 hpux9*)
7791
7792 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
7793
7794
7795 #
7796 # Use System V conventions for man pages.
7797 #
7798 MAN_FILE_FORMATS=4
7799 MAN_MISC_INFO=5
7800 ;;
7801
7802 hpux10.0*)
7803
7804 #
7805 # Use System V conventions for man pages.
7806 #
7807 MAN_FILE_FORMATS=4
7808 MAN_MISC_INFO=5
7809 ;;
7810
7811 hpux10.1*)
7812
7813 #
7814 # Use System V conventions for man pages.
7815 #
7816 MAN_FILE_FORMATS=4
7817 MAN_MISC_INFO=5
7818 ;;
7819
7820 hpux*)
7821
7822 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
7823
7824 if test "`uname -m`" = "ia64"; then
7825 DYEXT="so"
7826 else
7827 DYEXT="sl"
7828 fi
7829
7830 #
7831 # "-b" builds a shared library; "+h" sets the soname.
7832 #
7833 SHLIB_OPT="-b"
7834 SONAME_OPT="+h"
7835
7836 #
7837 # Use System V conventions for man pages.
7838 #
7839 MAN_FILE_FORMATS=4
7840 MAN_MISC_INFO=5
7841 ;;
7842
7843 irix*)
7844 #
7845 # Use System V conventions for man pages.
7846 #
7847 MAN_FILE_FORMATS=4
7848 MAN_MISC_INFO=5
7849 ;;
7850
7851 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
7852 DYEXT="so"
7853
7854 #
7855 # Compiler assumed to be GCC; run-time linker may require a -R
7856 # flag.
7857 #
7858 if test "$libdir" != "/usr/lib"; then
7859 V_RFLAGS=-Wl,-R$libdir
7860 fi
7861 ;;
7862
7863 osf*)
7864 DYEXT="so"
7865
7866 #
7867 # Use System V conventions for man pages.
7868 #
7869 MAN_FILE_FORMATS=4
7870 MAN_MISC_INFO=5
7871 ;;
7872
7873 sinix*)
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
7875 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
7876 if ${ac_cv_cc_sinix_defined+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7881
7882 int
7883 main ()
7884 {
7885 int i = sinix;
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 if ac_fn_c_try_compile "$LINENO"; then :
7891 ac_cv_cc_sinix_defined=yes
7892 else
7893 ac_cv_cc_sinix_defined=no
7894 fi
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 fi
7897
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
7899 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
7900 if test $ac_cv_cc_sinix_defined = no ; then
7901
7902 $as_echo "#define sinix 1" >>confdefs.h
7903
7904 fi
7905 ;;
7906
7907 solaris*)
7908
7909 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
7910
7911
7912 DYEXT="so"
7913
7914 #
7915 # Make sure errno is thread-safe, in case we're called in
7916 # a multithreaded program. We don't guarantee that two
7917 # threads can use the *same* pcap_t safely, but the
7918 # current version does guarantee that you can use different
7919 # pcap_t's in different threads, and even that pcap_compile()
7920 # is thread-safe (it wasn't thread-safe in some older versions).
7921 #
7922 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
7923
7924 case "`uname -r`" in
7925
7926 5.12)
7927 ;;
7928
7929 *)
7930 #
7931 # Use System V conventions for man pages.
7932 #
7933 MAN_USERMOD_SECTION=1m
7934 MAN_FILE_FORMATS=4
7935 MAN_MISC_INFO=5
7936 esac
7937 ;;
7938 esac
7939
7940 # Check whether --enable-shared was given.
7941 if test "${enable_shared+set}" = set; then :
7942 enableval=$enable_shared;
7943 fi
7944
7945 test "x$enable_shared" = "xno" && DYEXT="none"
7946
7947 if test -n "$ac_tool_prefix"; then
7948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_prog_RANLIB+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 if test -n "$RANLIB"; then
7956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 RANLIB=$ac_cv_prog_RANLIB
7976 if test -n "$RANLIB"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7978 $as_echo "$RANLIB" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984
7985 fi
7986 if test -z "$ac_cv_prog_RANLIB"; then
7987 ac_ct_RANLIB=$RANLIB
7988 # Extract the first word of "ranlib", so it can be a program name with args.
7989 set dummy ranlib; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 if test -n "$ac_ct_RANLIB"; then
7996 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005 ac_cv_prog_ac_ct_RANLIB="ranlib"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8008 fi
8009 done
8010 done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8016 if test -n "$ac_ct_RANLIB"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8018 $as_echo "$ac_ct_RANLIB" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024 if test "x$ac_ct_RANLIB" = x; then
8025 RANLIB=":"
8026 else
8027 case $cross_compiling:$ac_tool_warned in
8028 yes:)
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031 ac_tool_warned=yes ;;
8032 esac
8033 RANLIB=$ac_ct_RANLIB
8034 fi
8035 else
8036 RANLIB="$ac_cv_prog_RANLIB"
8037 fi
8038
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}ar; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_prog_AR+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 if test -n "$AR"; then
8048 ac_cv_prog_AR="$AR" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_AR="${ac_tool_prefix}ar"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8060 fi
8061 done
8062 done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 AR=$ac_cv_prog_AR
8068 if test -n "$AR"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8070 $as_echo "$AR" >&6; }
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075
8076
8077 fi
8078 if test -z "$ac_cv_prog_AR"; then
8079 ac_ct_AR=$AR
8080 # Extract the first word of "ar", so it can be a program name with args.
8081 set dummy ar; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 if test -n "$ac_ct_AR"; then
8088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097 ac_cv_prog_ac_ct_AR="ar"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 break 2
8100 fi
8101 done
8102 done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8108 if test -n "$ac_ct_AR"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8110 $as_echo "$ac_ct_AR" >&6; }
8111 else
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116 if test "x$ac_ct_AR" = x; then
8117 AR=""
8118 else
8119 case $cross_compiling:$ac_tool_warned in
8120 yes:)
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8124 esac
8125 AR=$ac_ct_AR
8126 fi
8127 else
8128 AR="$ac_cv_prog_AR"
8129 fi
8130
8131
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8133 $as_echo_n "checking whether ln -s works... " >&6; }
8134 LN_S=$as_ln_s
8135 if test "$LN_S" = "ln -s"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137 $as_echo "yes" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8140 $as_echo "no, using $LN_S" >&6; }
8141 fi
8142
8143
8144
8145 rm -f os-proto.h
8146 if test "${LBL_CFLAGS+set}" = set; then
8147 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8148 fi
8149 if test -f .devel ; then
8150 #
8151 # Skip all the warning option stuff on some compilers.
8152 #
8153 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
8154
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
8156 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
8157 save_CFLAGS="$CFLAGS"
8158 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161
8162 int
8163 main ()
8164 {
8165 return 0
8166 ;
8167 return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"; then :
8171
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 #
8175 # We're assuming this is clang, where
8176 # -Werror=unknown-warning-option is the appropriate
8177 # option to force the compiler to fail.
8178 #
8179 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
8180
8181 else
8182
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8184 $as_echo "yes" >&6; }
8185
8186 fi
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 CFLAGS="$save_CFLAGS"
8189
8190
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
8192 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
8193 save_CFLAGS="$CFLAGS"
8194 if expr "x-Wall" : "x-W.*" >/dev/null
8195 then
8196 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
8197 elif expr "x-Wall" : "x-f.*" >/dev/null
8198 then
8199 CFLAGS="$CFLAGS -Werror -Wall"
8200 elif expr "x-Wall" : "x-m.*" >/dev/null
8201 then
8202 CFLAGS="$CFLAGS -Werror -Wall"
8203 else
8204 CFLAGS="$CFLAGS -Wall"
8205 fi
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208
8209 int
8210 main ()
8211 {
8212 return 0
8213 ;
8214 return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_compile "$LINENO"; then :
8218
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8220 $as_echo "yes" >&6; }
8221 CFLAGS="$save_CFLAGS"
8222 V_CCOPT="$V_CCOPT -Wall"
8223
8224 else
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 CFLAGS="$save_CFLAGS"
8229
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232
8233
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
8235 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
8236 save_CFLAGS="$CFLAGS"
8237 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
8238 then
8239 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
8240 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
8241 then
8242 CFLAGS="$CFLAGS -Werror -Wsign-compare"
8243 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
8244 then
8245 CFLAGS="$CFLAGS -Werror -Wsign-compare"
8246 else
8247 CFLAGS="$CFLAGS -Wsign-compare"
8248 fi
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8251
8252 int
8253 main ()
8254 {
8255 return 0
8256 ;
8257 return 0;
8258 }
8259 _ACEOF
8260 if ac_fn_c_try_compile "$LINENO"; then :
8261
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8263 $as_echo "yes" >&6; }
8264 CFLAGS="$save_CFLAGS"
8265 V_CCOPT="$V_CCOPT -Wsign-compare"
8266
8267 else
8268
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8271 CFLAGS="$save_CFLAGS"
8272
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275
8276
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
8278 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
8279 save_CFLAGS="$CFLAGS"
8280 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
8281 then
8282 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
8283 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
8284 then
8285 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
8286 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
8287 then
8288 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
8289 else
8290 CFLAGS="$CFLAGS -Wmissing-prototypes"
8291 fi
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294
8295 int
8296 main ()
8297 {
8298 return 0
8299 ;
8300 return 0;
8301 }
8302 _ACEOF
8303 if ac_fn_c_try_compile "$LINENO"; then :
8304
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8306 $as_echo "yes" >&6; }
8307 CFLAGS="$save_CFLAGS"
8308 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
8309
8310 else
8311
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 CFLAGS="$save_CFLAGS"
8315
8316 fi
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
8321 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
8322 save_CFLAGS="$CFLAGS"
8323 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
8324 then
8325 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
8326 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
8327 then
8328 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
8329 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
8330 then
8331 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
8332 else
8333 CFLAGS="$CFLAGS -Wstrict-prototypes"
8334 fi
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337
8338 int
8339 main ()
8340 {
8341 return 0
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_compile "$LINENO"; then :
8347
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8349 $as_echo "yes" >&6; }
8350 CFLAGS="$save_CFLAGS"
8351 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
8352
8353 else
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8357 CFLAGS="$save_CFLAGS"
8358
8359 fi
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361
8362
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
8364 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
8365 save_CFLAGS="$CFLAGS"
8366 if expr "x-Wshadow" : "x-W.*" >/dev/null
8367 then
8368 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
8369 elif expr "x-Wshadow" : "x-f.*" >/dev/null
8370 then
8371 CFLAGS="$CFLAGS -Werror -Wshadow"
8372 elif expr "x-Wshadow" : "x-m.*" >/dev/null
8373 then
8374 CFLAGS="$CFLAGS -Werror -Wshadow"
8375 else
8376 CFLAGS="$CFLAGS -Wshadow"
8377 fi
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8380
8381 int
8382 main ()
8383 {
8384 return 0
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 if ac_fn_c_try_compile "$LINENO"; then :
8390
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8392 $as_echo "yes" >&6; }
8393 CFLAGS="$save_CFLAGS"
8394 V_CCOPT="$V_CCOPT -Wshadow"
8395
8396 else
8397
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 CFLAGS="$save_CFLAGS"
8401
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
8407 $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
8408 save_CFLAGS="$CFLAGS"
8409 if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
8410 then
8411 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
8412 elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
8413 then
8414 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
8415 elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
8416 then
8417 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
8418 else
8419 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
8420 fi
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8423
8424 int
8425 main ()
8426 {
8427 return 0
8428 ;
8429 return 0;
8430 }
8431 _ACEOF
8432 if ac_fn_c_try_compile "$LINENO"; then :
8433
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8435 $as_echo "yes" >&6; }
8436 CFLAGS="$save_CFLAGS"
8437 V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
8438
8439 else
8440
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8443 CFLAGS="$save_CFLAGS"
8444
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447
8448
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
8450 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
8451 save_CFLAGS="$CFLAGS"
8452 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
8453 then
8454 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
8455 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
8456 then
8457 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8458 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
8459 then
8460 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8461 else
8462 CFLAGS="$CFLAGS -Wused-but-marked-unused"
8463 fi
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466
8467 int
8468 main ()
8469 {
8470 return 0
8471 ;
8472 return 0;
8473 }
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"; then :
8476
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8478 $as_echo "yes" >&6; }
8479 CFLAGS="$save_CFLAGS"
8480 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
8481
8482 else
8483
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8486 CFLAGS="$save_CFLAGS"
8487
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490
8491 fi
8492
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
8494 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
8495 if test "$GCC" = yes ; then
8496 #
8497 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
8498 # though it's not); we assume that, in this case, the flag
8499 # would be -M.
8500 #
8501 ac_lbl_dependency_flag="-M"
8502 else
8503 #
8504 # Not GCC or a compiler deemed to be GCC; what platform is
8505 # this? (We're assuming that if the compiler isn't GCC
8506 # it's the compiler from the vendor of the OS; that won't
8507 # necessarily be true for x86 platforms, where it might be
8508 # the Intel C compiler.)
8509 #
8510 case "$host_os" in
8511
8512 irix*|osf*|darwin*)
8513 #
8514 # MIPS C for IRIX, DEC C, and clang all use -M.
8515 #
8516 ac_lbl_dependency_flag="-M"
8517 ;;
8518
8519 solaris*)
8520 #
8521 # Sun C uses -xM.
8522 #
8523 ac_lbl_dependency_flag="-xM"
8524 ;;
8525
8526 hpux*)
8527 #
8528 # HP's older C compilers don't support this.
8529 # HP's newer C compilers support this with
8530 # either +M or +Make; the older compilers
8531 # interpret +M as something completely
8532 # different, so we use +Make so we don't
8533 # think it works with the older compilers.
8534 #
8535 ac_lbl_dependency_flag="+Make"
8536 ;;
8537
8538 *)
8539 #
8540 # Not one of the above; assume no support for
8541 # generating dependencies.
8542 #
8543 ac_lbl_dependency_flag=""
8544 ;;
8545 esac
8546 fi
8547
8548 #
8549 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
8550 # complain about it?
8551 #
8552 # Note: clang doesn't seem to exit with an error status when handed
8553 # an unknown non-warning error, even if you pass it
8554 # -Werror=unknown-warning-option. However, it always supports
8555 # -M, so the fact that this test always succeeds with clang
8556 # isn't an issue.
8557 #
8558 if test ! -z "$ac_lbl_dependency_flag"; then
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 int main(void) { return 0; }
8562 _ACEOF
8563 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
8564 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
8566 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
8567 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
8568 MKDEP='${srcdir}/mkdep'
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8572 #
8573 # We can't run mkdep, so have "make depend" do
8574 # nothing.
8575 #
8576 MKDEP=:
8577 fi
8578 rm -rf conftest*
8579 else
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8582 #
8583 # We can't run mkdep, so have "make depend" do
8584 # nothing.
8585 #
8586 MKDEP=:
8587 fi
8588
8589
8590
8591 #
8592 # We used to set -n32 for IRIX 6 when not using GCC (presumed
8593 # to mean that we're using MIPS C or MIPSpro C); it specified
8594 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
8595 # not sure why that would be something to do *only* with a
8596 # .devel file; why should the ABI for which we produce code
8597 # depend on .devel?
8598 #
8599 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8600 name="lbl/os-$os.h"
8601 if test -f $name ; then
8602 ln -s $name os-proto.h
8603
8604 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
8605
8606 else
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
8608 $as_echo "$as_me: WARNING: can't find $name" >&2;}
8609 fi
8610 fi
8611
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
8613 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
8614 if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619
8620 # include <sys/types.h>
8621 # include <sys/socket.h>
8622 int
8623 main ()
8624 {
8625 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8626 ;
8627 return 0;
8628 }
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"; then :
8631 ac_cv_lbl_sockaddr_has_sa_len=yes
8632 else
8633 ac_cv_lbl_sockaddr_has_sa_len=no
8634 fi
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 fi
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8639 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8640 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8641
8642 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
8643
8644 fi
8645
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
8647 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
8648 if ${ac_cv_lbl_has_sockaddr_storage+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653
8654 # include <sys/types.h>
8655 # include <sys/socket.h>
8656 int
8657 main ()
8658 {
8659 u_int i = sizeof (struct sockaddr_storage)
8660 ;
8661 return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_compile "$LINENO"; then :
8665 ac_cv_lbl_has_sockaddr_storage=yes
8666 else
8667 ac_cv_lbl_has_sockaddr_storage=no
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 fi
8671
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8673 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
8674 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8675
8676 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8677
8678 fi
8679
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
8681 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
8682 if ${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687
8688 # include <sys/types.h>
8689 # include <sys/dlpi.h>
8690 # include <sys/dlpi_ext.h>
8691 int
8692 main ()
8693 {
8694 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
8695 ;
8696 return 0;
8697 }
8698 _ACEOF
8699 if ac_fn_c_try_compile "$LINENO"; then :
8700 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
8701 else
8702 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
8703 fi
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 fi
8706
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
8708 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
8709 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
8710
8711 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
8712
8713 fi
8714
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
8716 $as_echo_n "checking if unaligned accesses fail... " >&6; }
8717 if ${ac_cv_lbl_unaligned_fail+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 case "$host_cpu" in
8721
8722 #
8723 # These are CPU types where:
8724 #
8725 # the CPU faults on an unaligned access, but at least some
8726 # OSes that support that CPU catch the fault and simulate
8727 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
8728 # the simulation is slow, so we don't want to use it;
8729 #
8730 # the CPU, I infer (from the old
8731 #
8732 # XXX: should also check that they don't do weird things (like on arm)
8733 #
8734 # comment) doesn't fault on unaligned accesses, but doesn't
8735 # do a normal unaligned fetch, either (e.g., presumably, ARM);
8736 #
8737 # for whatever reason, the test program doesn't work
8738 # (this has been claimed to be the case for several of those
8739 # CPUs - I don't know what the problem is; the problem
8740 # was reported as "the test program dumps core" for SuperH,
8741 # but that's what the test program is *supposed* to do -
8742 # it dumps core before it writes anything, so the test
8743 # for an empty output file should find an empty output
8744 # file and conclude that unaligned accesses don't work).
8745 #
8746 # This run-time test won't work if you're cross-compiling, so
8747 # in order to support cross-compiling for a particular CPU,
8748 # we have to wire in the list of CPU types anyway, as far as
8749 # I know, so perhaps we should just have a set of CPUs on
8750 # which we know it doesn't work, a set of CPUs on which we
8751 # know it does work, and have the script just fail on other
8752 # cpu types and update it when such a failure occurs.
8753 #
8754 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
8755 ac_cv_lbl_unaligned_fail=yes
8756 ;;
8757
8758 *)
8759 cat >conftest.c <<EOF
8760 # include <sys/types.h>
8761 # include <sys/wait.h>
8762 # include <stdio.h>
8763 unsigned char a[5] = { 1, 2, 3, 4, 5 };
8764 main() {
8765 unsigned int i;
8766 pid_t pid;
8767 int status;
8768 /* avoid "core dumped" message */
8769 pid = fork();
8770 if (pid < 0)
8771 exit(2);
8772 if (pid > 0) {
8773 /* parent */
8774 pid = waitpid(pid, &status, 0);
8775 if (pid < 0)
8776 exit(3);
8777 exit(!WIFEXITED(status));
8778 }
8779 /* child */
8780 i = *(unsigned int *)&a[1];
8781 printf("%d\n", i);
8782 exit(0);
8783 }
8784 EOF
8785 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
8786 conftest.c $LIBS >/dev/null 2>&1
8787 if test ! -x conftest ; then
8788 ac_cv_lbl_unaligned_fail=yes
8789 else
8790 ./conftest >conftest.out
8791 if test ! -s conftest.out ; then
8792 ac_cv_lbl_unaligned_fail=yes
8793 else
8794 ac_cv_lbl_unaligned_fail=no
8795 fi
8796 fi
8797 rm -f -r conftest* core core.conftest
8798 ;;
8799 esac
8800 fi
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
8803 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
8804 if test $ac_cv_lbl_unaligned_fail = yes ; then
8805
8806 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
8807
8808 fi
8809
8810 rm -f net
8811 ln -s ${srcdir}/bpf/net net
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836 # Check whether --enable-usb was given.
8837 if test "${enable_usb+set}" = set; then :
8838 enableval=$enable_usb;
8839 else
8840 enable_usb=yes
8841 fi
8842
8843
8844 if test "xxx_only" = yes; then
8845 # User requested something-else-only pcap, so they don't
8846 # want USB support.
8847 enable_usb=no
8848 fi
8849
8850 if test "x$enable_usb" != "xno" ; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
8852 $as_echo_n "checking for USB sniffing support... " >&6; }
8853 case "$host_os" in
8854 linux*)
8855
8856 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
8857
8858 USB_SRC=pcap-usb-linux.c
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8860 $as_echo "yes" >&6; }
8861 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
8862 if test $? -ne 0 ; then
8863 ac_usb_dev_name="usbmon"
8864 fi
8865
8866 cat >>confdefs.h <<_ACEOF
8867 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
8868 _ACEOF
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
8871 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
8872 #
8873 # Do we have a version of <linux/compiler.h> available?
8874 # If so, we might need it for <linux/usbdevice_fs.h>.
8875 #
8876 for ac_header in linux/compiler.h
8877 do :
8878 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
8879 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
8880 cat >>confdefs.h <<_ACEOF
8881 #define HAVE_LINUX_COMPILER_H 1
8882 _ACEOF
8883
8884 fi
8885
8886 done
8887
8888 if test "$ac_cv_header_linux_compiler_h" = yes; then
8889 #
8890 # Yes - include it when testing for <linux/usbdevice_fs.h>.
8891 #
8892 for ac_header in linux/usbdevice_fs.h
8893 do :
8894 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
8895 "
8896 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8897 cat >>confdefs.h <<_ACEOF
8898 #define HAVE_LINUX_USBDEVICE_FS_H 1
8899 _ACEOF
8900
8901 fi
8902
8903 done
8904
8905 else
8906 for ac_header in linux/usbdevice_fs.h
8907 do :
8908 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
8909 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8910 cat >>confdefs.h <<_ACEOF
8911 #define HAVE_LINUX_USBDEVICE_FS_H 1
8912 _ACEOF
8913
8914 fi
8915
8916 done
8917
8918 fi
8919 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
8920 #
8921 # OK, does it define bRequestType? Older versions of the kernel
8922 # define fields with names like "requesttype, "request", and
8923 # "value", rather than "bRequestType", "bRequest", and
8924 # "wValue".
8925 #
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
8927 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
8928 if ${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933
8934 $ac_includes_default
8935 #ifdef HAVE_LINUX_COMPILER_H
8936 #include <linux/compiler.h>
8937 #endif
8938 #include <linux/usbdevice_fs.h>
8939 int
8940 main ()
8941 {
8942 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
8943 ;
8944 return 0;
8945 }
8946 _ACEOF
8947 if ac_fn_c_try_compile "$LINENO"; then :
8948 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
8949 else
8950 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 fi
8954
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
8956 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
8957 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
8958
8959 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
8960
8961 fi
8962 fi
8963 ;;
8964 freebsd*)
8965 #
8966 # This just uses BPF in FreeBSD 8.4 and later; we don't need
8967 # to check for anything special for capturing.
8968 #
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
8970 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
8971 ;;
8972
8973 *)
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8976 ;;
8977 esac
8978 fi
8979
8980
8981
8982 if test "xxx_only" != yes; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
8984 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
8985 case "$host_os" in
8986 linux*)
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8988 $as_echo "yes" >&6; }
8989 #
8990 # Life's too short to deal with trying to get this to compile
8991 # if you don't get the right types defined with
8992 # __KERNEL_STRICT_NAMES getting defined by some other include.
8993 #
8994 # Check whether the includes Just Work. If not, don't turn on
8995 # netfilter support.
8996 #
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
8998 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
8999 if ${ac_cv_netfilter_can_compile+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004
9005 $ac_includes_default
9006 #include <sys/socket.h>
9007 #include <netinet/in.h>
9008 #include <linux/types.h>
9009
9010 #include <linux/netlink.h>
9011 #include <linux/netfilter.h>
9012 #include <linux/netfilter/nfnetlink.h>
9013 #include <linux/netfilter/nfnetlink_log.h>
9014 #include <linux/netfilter/nfnetlink_queue.h>
9015 int
9016 main ()
9017 {
9018
9019 ;
9020 return 0;
9021 }
9022 _ACEOF
9023 if ac_fn_c_try_compile "$LINENO"; then :
9024 ac_cv_netfilter_can_compile=yes
9025 else
9026 ac_cv_netfilter_can_compile=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029 fi
9030
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
9032 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
9033 if test $ac_cv_netfilter_can_compile = yes ; then
9034
9035 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
9036
9037 NETFILTER_SRC=pcap-netfilter-linux.c
9038 fi
9039 ;;
9040 *)
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 ;;
9044 esac
9045 fi
9046
9047
9048
9049 # Check whether --enable-netmap was given.
9050 if test "${enable_netmap+set}" = set; then :
9051 enableval=$enable_netmap;
9052 else
9053 enable_netmap=yes
9054 fi
9055
9056
9057 if test "x$enable_netmap" != "xno" ; then
9058 #
9059 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
9060 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
9061 # is defined, for example, as it includes a non-existent malloc.h
9062 # header.
9063 #
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
9065 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
9066 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071
9072 $ac_includes_default
9073 #define NETMAP_WITH_LIBS
9074 #include <net/netmap_user.h>
9075 int
9076 main ()
9077 {
9078
9079 ;
9080 return 0;
9081 }
9082 _ACEOF
9083 if ac_fn_c_try_compile "$LINENO"; then :
9084 ac_cv_net_netmap_user_can_compile=yes
9085 else
9086 ac_cv_net_netmap_user_can_compile=no
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 fi
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
9092 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
9093 if test $ac_cv_net_netmap_user_can_compile = yes ; then
9094
9095 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
9096
9097 NETMAP_SRC=pcap-netmap.c
9098 fi
9099
9100
9101 fi
9102
9103
9104 # Check whether --enable-bluetooth was given.
9105 if test "${enable_bluetooth+set}" = set; then :
9106 enableval=$enable_bluetooth;
9107 else
9108 enable_bluetooth=ifsupportavailable
9109 fi
9110
9111
9112 if test "xxx_only" = yes; then
9113 # User requested something-else-only pcap, so they don't
9114 # want Bluetooth support.
9115 enable_bluetooth=no
9116 fi
9117
9118 if test "x$enable_bluetooth" != "xno" ; then
9119 case "$host_os" in
9120 linux*)
9121 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
9122 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
9123
9124
9125 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
9126
9127 BT_SRC=pcap-bt-linux.c
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
9129 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
9130
9131 #
9132 # OK, does struct sockaddr_hci have an hci_channel
9133 # member?
9134 #
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_hci has hci_channel member" >&5
9136 $as_echo_n "checking if struct sockaddr_hci has hci_channel member... " >&6; }
9137 if ${ac_cv_lbl_sockaddr_hci_has_hci_channel+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9142
9143 #include <bluetooth/bluetooth.h>
9144 #include <bluetooth/hci.h>
9145
9146 int
9147 main ()
9148 {
9149 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 if ac_fn_c_try_compile "$LINENO"; then :
9155 ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
9156 else
9157 ac_cv_lbl_sockaddr_hci_has_hci_channel=no
9158 fi
9159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160 fi
9161
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
9163 $as_echo "$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
9164 if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
9165
9166 $as_echo "#define SOCKADDR_HCI_HAS_HCI_CHANNEL /**/" >>confdefs.h
9167
9168
9169 #
9170 # OK, is HCI_CHANNEL_MONITOR defined?
9171 #
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
9173 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
9174 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179
9180 #include <bluetooth/bluetooth.h>
9181 #include <bluetooth/hci.h>
9182
9183 int
9184 main ()
9185 {
9186 u_int i = HCI_CHANNEL_MONITOR
9187 ;
9188 return 0;
9189 }
9190 _ACEOF
9191 if ac_fn_c_try_compile "$LINENO"; then :
9192 ac_cv_lbl_hci_channel_monitor_is_defined=yes
9193 else
9194 ac_cv_lbl_hci_channel_monitor_is_defined=no
9195 fi
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 fi
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_hci_channel_monitor_is_defined" >&5
9200 $as_echo "$ac_cv_lbl_hci_channel_monitor_is_defined" >&6; }
9201 if test $ac_cv_lbl_hci_channel_monitor_is_defined = yes ; then
9202
9203 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
9204
9205 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
9206 fi
9207 fi
9208 ac_lbl_bluetooth_available=yes
9209
9210 else
9211 ac_lbl_bluetooth_available=no
9212
9213 fi
9214
9215
9216 if test "x$ac_lbl_bluetooth_available" == "xno" ; then
9217 if test "x$enable_bluetooth" = "xyes" ; then
9218 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
9219 else
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
9221 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
9222 fi
9223 fi
9224 ;;
9225 *)
9226 if test "x$enable_bluetooth" = "xyes" ; then
9227 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
9228 else
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
9230 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
9231 fi
9232 ;;
9233 esac
9234
9235
9236
9237 fi
9238
9239 # Check whether --enable-dbus was given.
9240 if test "${enable_dbus+set}" = set; then :
9241 enableval=$enable_dbus;
9242 else
9243 enable_dbus=ifavailable
9244 fi
9245
9246
9247 if test "xxx_only" = yes; then
9248 # User requested something-else-only pcap, so they don't
9249 # want D-Bus support.
9250 enable_dbus=no
9251 fi
9252
9253 if test "x$enable_dbus" != "xno"; then
9254 if test "x$enable_dbus" = "xyes"; then
9255 case "$host_os" in
9256
9257 darwin*)
9258 #
9259 # We don't support D-Bus sniffing on macOS; see
9260 #
9261 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
9262 #
9263 # The user requested it, so fail.
9264 #
9265 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
9266 esac
9267 else
9268 case "$host_os" in
9269
9270 darwin*)
9271 #
9272 # We don't support D-Bus sniffing on macOS; see
9273 #
9274 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
9275 #
9276 # The user dind't explicitly request it, so just
9277 # silently refuse to enable it.
9278 #
9279 enable_dbus="no"
9280 ;;
9281 esac
9282 fi
9283 fi
9284
9285 if test "x$enable_dbus" != "xno"; then
9286 # Extract the first word of "pkg-config", so it can be a program name with args.
9287 set dummy pkg-config; ac_word=$2
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 $as_echo_n "checking for $ac_word... " >&6; }
9290 if ${ac_cv_prog_PKGCONFIG+:} false; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 if test -n "$PKGCONFIG"; then
9294 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
9295 else
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 for as_dir in $PATH
9298 do
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9303 ac_cv_prog_PKGCONFIG="pkg-config"
9304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 break 2
9306 fi
9307 done
9308 done
9309 IFS=$as_save_IFS
9310
9311 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
9312 fi
9313 fi
9314 PKGCONFIG=$ac_cv_prog_PKGCONFIG
9315 if test -n "$PKGCONFIG"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
9317 $as_echo "$PKGCONFIG" >&6; }
9318 else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9321 fi
9322
9323
9324 if test "x$PKGCONFIG" != "xno"; then
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
9326 $as_echo_n "checking for D-Bus... " >&6; }
9327 if "$PKGCONFIG" dbus-1; then
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9329 $as_echo "yes" >&6; }
9330 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
9331 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
9332 save_CFLAGS="$CFLAGS"
9333 save_LIBS="$LIBS"
9334 CFLAGS="$CFLAGS $DBUS_CFLAGS"
9335 LIBS="$LIBS $DBUS_LIBS"
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
9337 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 #include <string.h>
9341
9342 #include <time.h>
9343 #include <sys/time.h>
9344
9345 #include <dbus/dbus.h>
9346 int
9347 main ()
9348 {
9349 return dbus_connection_read_write(NULL, 0);
9350 ;
9351 return 0;
9352 }
9353 _ACEOF
9354 if ac_fn_c_try_link "$LINENO"; then :
9355
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9357 $as_echo "yes" >&6; }
9358
9359 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
9360
9361 DBUS_SRC=pcap-dbus.c
9362 V_INCLS="$V_INCLS $DBUS_CFLAGS"
9363
9364 else
9365
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9368 if test "x$enable_dbus" = "xyes"; then
9369 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
9370 fi
9371 LIBS="$save_LIBS"
9372
9373 fi
9374 rm -f core conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
9376 CFLAGS="$save_CFLAGS"
9377 else
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379 $as_echo "no" >&6; }
9380 if test "x$enable_dbus" = "xyes"; then
9381 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
9382 fi
9383 fi
9384 fi
9385
9386
9387 fi
9388
9389 # Check whether --enable-rdma was given.
9390 if test "${enable_rdma+set}" = set; then :
9391 enableval=$enable_rdma;
9392 else
9393 enable_rdmasniff=ifavailable
9394 fi
9395
9396
9397 if test "xxx_only" = yes; then
9398 # User requested something-else-only pcap, so they don't
9399 # want RDMA support.
9400 enable_rdmasniff=no
9401 fi
9402
9403 if test "x$enable_rdmasniff" != "xno"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
9405 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
9406 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 ac_check_lib_save_LIBS=$LIBS
9410 LIBS="-libverbs $LIBS"
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413
9414 /* Override any GCC internal prototype to avoid an error.
9415 Use char because int might match the return type of a GCC
9416 builtin and then its argument prototype would still apply. */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 char ibv_get_device_list ();
9421 int
9422 main ()
9423 {
9424 return ibv_get_device_list ();
9425 ;
9426 return 0;
9427 }
9428 _ACEOF
9429 if ac_fn_c_try_link "$LINENO"; then :
9430 ac_cv_lib_ibverbs_ibv_get_device_list=yes
9431 else
9432 ac_cv_lib_ibverbs_ibv_get_device_list=no
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9436 LIBS=$ac_check_lib_save_LIBS
9437 fi
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
9439 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
9440 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
9441
9442 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
9443 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
9444
9445 #
9446 # ibv_create_flow may be defined as a static inline
9447 # function in infiniband/verbs.h, so we can't
9448 # use AC_CHECK_LIB.
9449 #
9450 # Too bad autoconf has no AC_SYMBOL_EXISTS()
9451 # macro that works like CMake's check_symbol_exists()
9452 # function, to check do a compile check like
9453 # this (they do a clever trick to avoid having
9454 # to know the function's signature).
9455 #
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
9457 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460
9461 #include <infiniband/verbs.h>
9462
9463 int
9464 main ()
9465 {
9466
9467 (void) ibv_create_flow((struct ibv_qp *) NULL,
9468 (struct ibv_flow_attr *) NULL);
9469
9470 ;
9471 return 0;
9472 }
9473 _ACEOF
9474 if ac_fn_c_try_link "$LINENO"; then :
9475
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9477 $as_echo "yes" >&6; }
9478
9479 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
9480
9481 RDMA_SRC=pcap-rdmasniff.c
9482 LIBS="-libverbs $LIBS"
9483
9484 else
9485
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9488
9489
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493
9494 fi
9495
9496
9497
9498 fi
9499
9500
9501
9502 fi
9503
9504 # Find a good install program. We prefer a C program (faster),
9505 # so one script is as good as another. But avoid the broken or
9506 # incompatible versions:
9507 # SysV /etc/install, /usr/sbin/install
9508 # SunOS /usr/etc/install
9509 # IRIX /sbin/install
9510 # AIX /bin/install
9511 # AmigaOS /C/install, which installs bootblocks on floppy discs
9512 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9513 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9514 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9515 # OS/2's system install, which has a completely different semantic
9516 # ./install, which can be erroneously created by make from ./install.sh.
9517 # Reject install programs that cannot install multiple files.
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9519 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9520 if test -z "$INSTALL"; then
9521 if ${ac_cv_path_install+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525 for as_dir in $PATH
9526 do
9527 IFS=$as_save_IFS
9528 test -z "$as_dir" && as_dir=.
9529 # Account for people who put trailing slashes in PATH elements.
9530 case $as_dir/ in #((
9531 ./ | .// | /[cC]/* | \
9532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9534 /usr/ucb/* ) ;;
9535 *)
9536 # OSF1 and SCO ODT 3.0 have their own names for install.
9537 # Don't use installbsd from OSF since it installs stuff as root
9538 # by default.
9539 for ac_prog in ginstall scoinst install; do
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9542 if test $ac_prog = install &&
9543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9544 # AIX install. It has an incompatible calling convention.
9545 :
9546 elif test $ac_prog = install &&
9547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9548 # program-specific install script used by HP pwplus--don't use.
9549 :
9550 else
9551 rm -rf conftest.one conftest.two conftest.dir
9552 echo one > conftest.one
9553 echo two > conftest.two
9554 mkdir conftest.dir
9555 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9556 test -s conftest.one && test -s conftest.two &&
9557 test -s conftest.dir/conftest.one &&
9558 test -s conftest.dir/conftest.two
9559 then
9560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9561 break 3
9562 fi
9563 fi
9564 fi
9565 done
9566 done
9567 ;;
9568 esac
9569
9570 done
9571 IFS=$as_save_IFS
9572
9573 rm -rf conftest.one conftest.two conftest.dir
9574
9575 fi
9576 if test "${ac_cv_path_install+set}" = set; then
9577 INSTALL=$ac_cv_path_install
9578 else
9579 # As a last resort, use the slow shell script. Don't cache a
9580 # value for INSTALL within a source directory, because that will
9581 # break other packages using the cache if that directory is
9582 # removed, or if the value is a relative name.
9583 INSTALL=$ac_install_sh
9584 fi
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9587 $as_echo "$INSTALL" >&6; }
9588
9589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9590 # It thinks the first close brace ends the variable substitution.
9591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9592
9593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9594
9595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9596
9597
9598 ac_config_headers="$ac_config_headers config.h"
9599
9600
9601 ac_config_commands="$ac_config_commands default-1"
9602
9603 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 rpcapd/Makefile"
9604
9605 cat >confcache <<\_ACEOF
9606 # This file is a shell script that caches the results of configure
9607 # tests run on this system so they can be shared between configure
9608 # scripts and configure runs, see configure's option --config-cache.
9609 # It is not useful on other systems. If it contains results you don't
9610 # want to keep, you may remove or edit it.
9611 #
9612 # config.status only pays attention to the cache file if you give it
9613 # the --recheck option to rerun configure.
9614 #
9615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9617 # following values.
9618
9619 _ACEOF
9620
9621 # The following way of writing the cache mishandles newlines in values,
9622 # but we know of no workaround that is simple, portable, and efficient.
9623 # So, we kill variables containing newlines.
9624 # Ultrix sh set writes to stderr and can't be redirected directly,
9625 # and sets the high bit in the cache file unless we assign to the vars.
9626 (
9627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9628 eval ac_val=\$$ac_var
9629 case $ac_val in #(
9630 *${as_nl}*)
9631 case $ac_var in #(
9632 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9633 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9634 esac
9635 case $ac_var in #(
9636 _ | IFS | as_nl) ;; #(
9637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9638 *) { eval $ac_var=; unset $ac_var;} ;;
9639 esac ;;
9640 esac
9641 done
9642
9643 (set) 2>&1 |
9644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9645 *${as_nl}ac_space=\ *)
9646 # `set' does not quote correctly, so add quotes: double-quote
9647 # substitution turns \\\\ into \\, and sed turns \\ into \.
9648 sed -n \
9649 "s/'/'\\\\''/g;
9650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9651 ;; #(
9652 *)
9653 # `set' quotes correctly as required by POSIX, so do not add quotes.
9654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9655 ;;
9656 esac |
9657 sort
9658 ) |
9659 sed '
9660 /^ac_cv_env_/b end
9661 t clear
9662 :clear
9663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9664 t end
9665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9666 :end' >>confcache
9667 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9668 if test -w "$cache_file"; then
9669 if test "x$cache_file" != "x/dev/null"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9671 $as_echo "$as_me: updating cache $cache_file" >&6;}
9672 if test ! -f "$cache_file" || test -h "$cache_file"; then
9673 cat confcache >"$cache_file"
9674 else
9675 case $cache_file in #(
9676 */* | ?:*)
9677 mv -f confcache "$cache_file"$$ &&
9678 mv -f "$cache_file"$$ "$cache_file" ;; #(
9679 *)
9680 mv -f confcache "$cache_file" ;;
9681 esac
9682 fi
9683 fi
9684 else
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9686 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9687 fi
9688 fi
9689 rm -f confcache
9690
9691 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9692 # Let make expand exec_prefix.
9693 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9694
9695 DEFS=-DHAVE_CONFIG_H
9696
9697 ac_libobjs=
9698 ac_ltlibobjs=
9699 U=
9700 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9701 # 1. Remove the extension, and $U if already installed.
9702 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9703 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9704 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9705 # will be set to the directory where LIBOBJS objects are built.
9706 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9707 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9708 done
9709 LIBOBJS=$ac_libobjs
9710
9711 LTLIBOBJS=$ac_ltlibobjs
9712
9713
9714
9715 : "${CONFIG_STATUS=./config.status}"
9716 ac_write_fail=0
9717 ac_clean_files_save=$ac_clean_files
9718 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9720 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9721 as_write_fail=0
9722 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9723 #! $SHELL
9724 # Generated by $as_me.
9725 # Run this file to recreate the current configuration.
9726 # Compiler output produced by configure, useful for debugging
9727 # configure, is in config.log if it exists.
9728
9729 debug=false
9730 ac_cs_recheck=false
9731 ac_cs_silent=false
9732
9733 SHELL=\${CONFIG_SHELL-$SHELL}
9734 export SHELL
9735 _ASEOF
9736 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9737 ## -------------------- ##
9738 ## M4sh Initialization. ##
9739 ## -------------------- ##
9740
9741 # Be more Bourne compatible
9742 DUALCASE=1; export DUALCASE # for MKS sh
9743 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9744 emulate sh
9745 NULLCMD=:
9746 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9747 # is contrary to our usage. Disable this feature.
9748 alias -g '${1+"$@"}'='"$@"'
9749 setopt NO_GLOB_SUBST
9750 else
9751 case `(set -o) 2>/dev/null` in #(
9752 *posix*) :
9753 set -o posix ;; #(
9754 *) :
9755 ;;
9756 esac
9757 fi
9758
9759
9760 as_nl='
9761 '
9762 export as_nl
9763 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9764 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9766 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9767 # Prefer a ksh shell builtin over an external printf program on Solaris,
9768 # but without wasting forks for bash or zsh.
9769 if test -z "$BASH_VERSION$ZSH_VERSION" \
9770 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9771 as_echo='print -r --'
9772 as_echo_n='print -rn --'
9773 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9774 as_echo='printf %s\n'
9775 as_echo_n='printf %s'
9776 else
9777 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9778 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9779 as_echo_n='/usr/ucb/echo -n'
9780 else
9781 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9782 as_echo_n_body='eval
9783 arg=$1;
9784 case $arg in #(
9785 *"$as_nl"*)
9786 expr "X$arg" : "X\\(.*\\)$as_nl";
9787 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9788 esac;
9789 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9790 '
9791 export as_echo_n_body
9792 as_echo_n='sh -c $as_echo_n_body as_echo'
9793 fi
9794 export as_echo_body
9795 as_echo='sh -c $as_echo_body as_echo'
9796 fi
9797
9798 # The user is always right.
9799 if test "${PATH_SEPARATOR+set}" != set; then
9800 PATH_SEPARATOR=:
9801 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9802 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9803 PATH_SEPARATOR=';'
9804 }
9805 fi
9806
9807
9808 # IFS
9809 # We need space, tab and new line, in precisely that order. Quoting is
9810 # there to prevent editors from complaining about space-tab.
9811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9812 # splitting by setting IFS to empty value.)
9813 IFS=" "" $as_nl"
9814
9815 # Find who we are. Look in the path if we contain no directory separator.
9816 as_myself=
9817 case $0 in #((
9818 *[\\/]* ) as_myself=$0 ;;
9819 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 for as_dir in $PATH
9821 do
9822 IFS=$as_save_IFS
9823 test -z "$as_dir" && as_dir=.
9824 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9825 done
9826 IFS=$as_save_IFS
9827
9828 ;;
9829 esac
9830 # We did not find ourselves, most probably we were run as `sh COMMAND'
9831 # in which case we are not to be found in the path.
9832 if test "x$as_myself" = x; then
9833 as_myself=$0
9834 fi
9835 if test ! -f "$as_myself"; then
9836 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9837 exit 1
9838 fi
9839
9840 # Unset variables that we do not need and which cause bugs (e.g. in
9841 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9842 # suppresses any "Segmentation fault" message there. '((' could
9843 # trigger a bug in pdksh 5.2.14.
9844 for as_var in BASH_ENV ENV MAIL MAILPATH
9845 do eval test x\${$as_var+set} = xset \
9846 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9847 done
9848 PS1='$ '
9849 PS2='> '
9850 PS4='+ '
9851
9852 # NLS nuisances.
9853 LC_ALL=C
9854 export LC_ALL
9855 LANGUAGE=C
9856 export LANGUAGE
9857
9858 # CDPATH.
9859 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9860
9861
9862 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9863 # ----------------------------------------
9864 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9865 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9866 # script with STATUS, using 1 if that was 0.
9867 as_fn_error ()
9868 {
9869 as_status=$1; test $as_status -eq 0 && as_status=1
9870 if test "$4"; then
9871 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9872 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9873 fi
9874 $as_echo "$as_me: error: $2" >&2
9875 as_fn_exit $as_status
9876 } # as_fn_error
9877
9878
9879 # as_fn_set_status STATUS
9880 # -----------------------
9881 # Set $? to STATUS, without forking.
9882 as_fn_set_status ()
9883 {
9884 return $1
9885 } # as_fn_set_status
9886
9887 # as_fn_exit STATUS
9888 # -----------------
9889 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9890 as_fn_exit ()
9891 {
9892 set +e
9893 as_fn_set_status $1
9894 exit $1
9895 } # as_fn_exit
9896
9897 # as_fn_unset VAR
9898 # ---------------
9899 # Portably unset VAR.
9900 as_fn_unset ()
9901 {
9902 { eval $1=; unset $1;}
9903 }
9904 as_unset=as_fn_unset
9905 # as_fn_append VAR VALUE
9906 # ----------------------
9907 # Append the text in VALUE to the end of the definition contained in VAR. Take
9908 # advantage of any shell optimizations that allow amortized linear growth over
9909 # repeated appends, instead of the typical quadratic growth present in naive
9910 # implementations.
9911 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9912 eval 'as_fn_append ()
9913 {
9914 eval $1+=\$2
9915 }'
9916 else
9917 as_fn_append ()
9918 {
9919 eval $1=\$$1\$2
9920 }
9921 fi # as_fn_append
9922
9923 # as_fn_arith ARG...
9924 # ------------------
9925 # Perform arithmetic evaluation on the ARGs, and store the result in the
9926 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9927 # must be portable across $(()) and expr.
9928 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9929 eval 'as_fn_arith ()
9930 {
9931 as_val=$(( $* ))
9932 }'
9933 else
9934 as_fn_arith ()
9935 {
9936 as_val=`expr "$@" || test $? -eq 1`
9937 }
9938 fi # as_fn_arith
9939
9940
9941 if expr a : '\(a\)' >/dev/null 2>&1 &&
9942 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9943 as_expr=expr
9944 else
9945 as_expr=false
9946 fi
9947
9948 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9949 as_basename=basename
9950 else
9951 as_basename=false
9952 fi
9953
9954 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9955 as_dirname=dirname
9956 else
9957 as_dirname=false
9958 fi
9959
9960 as_me=`$as_basename -- "$0" ||
9961 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9962 X"$0" : 'X\(//\)$' \| \
9963 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9964 $as_echo X/"$0" |
9965 sed '/^.*\/\([^/][^/]*\)\/*$/{
9966 s//\1/
9967 q
9968 }
9969 /^X\/\(\/\/\)$/{
9970 s//\1/
9971 q
9972 }
9973 /^X\/\(\/\).*/{
9974 s//\1/
9975 q
9976 }
9977 s/.*/./; q'`
9978
9979 # Avoid depending upon Character Ranges.
9980 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9981 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9982 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9983 as_cr_digits='0123456789'
9984 as_cr_alnum=$as_cr_Letters$as_cr_digits
9985
9986 ECHO_C= ECHO_N= ECHO_T=
9987 case `echo -n x` in #(((((
9988 -n*)
9989 case `echo 'xy\c'` in
9990 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9991 xy) ECHO_C='\c';;
9992 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9993 ECHO_T=' ';;
9994 esac;;
9995 *)
9996 ECHO_N='-n';;
9997 esac
9998
9999 rm -f conf$$ conf$$.exe conf$$.file
10000 if test -d conf$$.dir; then
10001 rm -f conf$$.dir/conf$$.file
10002 else
10003 rm -f conf$$.dir
10004 mkdir conf$$.dir 2>/dev/null
10005 fi
10006 if (echo >conf$$.file) 2>/dev/null; then
10007 if ln -s conf$$.file conf$$ 2>/dev/null; then
10008 as_ln_s='ln -s'
10009 # ... but there are two gotchas:
10010 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10011 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10012 # In both cases, we have to default to `cp -pR'.
10013 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10014 as_ln_s='cp -pR'
10015 elif ln conf$$.file conf$$ 2>/dev/null; then
10016 as_ln_s=ln
10017 else
10018 as_ln_s='cp -pR'
10019 fi
10020 else
10021 as_ln_s='cp -pR'
10022 fi
10023 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10024 rmdir conf$$.dir 2>/dev/null
10025
10026
10027 # as_fn_mkdir_p
10028 # -------------
10029 # Create "$as_dir" as a directory, including parents if necessary.
10030 as_fn_mkdir_p ()
10031 {
10032
10033 case $as_dir in #(
10034 -*) as_dir=./$as_dir;;
10035 esac
10036 test -d "$as_dir" || eval $as_mkdir_p || {
10037 as_dirs=
10038 while :; do
10039 case $as_dir in #(
10040 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10041 *) as_qdir=$as_dir;;
10042 esac
10043 as_dirs="'$as_qdir' $as_dirs"
10044 as_dir=`$as_dirname -- "$as_dir" ||
10045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10046 X"$as_dir" : 'X\(//\)[^/]' \| \
10047 X"$as_dir" : 'X\(//\)$' \| \
10048 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10049 $as_echo X"$as_dir" |
10050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10051 s//\1/
10052 q
10053 }
10054 /^X\(\/\/\)[^/].*/{
10055 s//\1/
10056 q
10057 }
10058 /^X\(\/\/\)$/{
10059 s//\1/
10060 q
10061 }
10062 /^X\(\/\).*/{
10063 s//\1/
10064 q
10065 }
10066 s/.*/./; q'`
10067 test -d "$as_dir" && break
10068 done
10069 test -z "$as_dirs" || eval "mkdir $as_dirs"
10070 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10071
10072
10073 } # as_fn_mkdir_p
10074 if mkdir -p . 2>/dev/null; then
10075 as_mkdir_p='mkdir -p "$as_dir"'
10076 else
10077 test -d ./-p && rmdir ./-p
10078 as_mkdir_p=false
10079 fi
10080
10081
10082 # as_fn_executable_p FILE
10083 # -----------------------
10084 # Test if FILE is an executable regular file.
10085 as_fn_executable_p ()
10086 {
10087 test -f "$1" && test -x "$1"
10088 } # as_fn_executable_p
10089 as_test_x='test -x'
10090 as_executable_p=as_fn_executable_p
10091
10092 # Sed expression to map a string onto a valid CPP name.
10093 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10094
10095 # Sed expression to map a string onto a valid variable name.
10096 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10097
10098
10099 exec 6>&1
10100 ## ----------------------------------- ##
10101 ## Main body of $CONFIG_STATUS script. ##
10102 ## ----------------------------------- ##
10103 _ASEOF
10104 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10105
10106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10107 # Save the log message, to keep $0 and so on meaningful, and to
10108 # report actual input values of CONFIG_FILES etc. instead of their
10109 # values after options handling.
10110 ac_log="
10111 This file was extended by pcap $as_me 1.9.0-PRE-GIT, which was
10112 generated by GNU Autoconf 2.69. Invocation command line was
10113
10114 CONFIG_FILES = $CONFIG_FILES
10115 CONFIG_HEADERS = $CONFIG_HEADERS
10116 CONFIG_LINKS = $CONFIG_LINKS
10117 CONFIG_COMMANDS = $CONFIG_COMMANDS
10118 $ $0 $@
10119
10120 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10121 "
10122
10123 _ACEOF
10124
10125 case $ac_config_files in *"
10126 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10127 esac
10128
10129 case $ac_config_headers in *"
10130 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10131 esac
10132
10133
10134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10135 # Files that config.status was made for.
10136 config_files="$ac_config_files"
10137 config_headers="$ac_config_headers"
10138 config_commands="$ac_config_commands"
10139
10140 _ACEOF
10141
10142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10143 ac_cs_usage="\
10144 \`$as_me' instantiates files and other configuration actions
10145 from templates according to the current configuration. Unless the files
10146 and actions are specified as TAGs, all are instantiated by default.
10147
10148 Usage: $0 [OPTION]... [TAG]...
10149
10150 -h, --help print this help, then exit
10151 -V, --version print version number and configuration settings, then exit
10152 --config print configuration, then exit
10153 -q, --quiet, --silent
10154 do not print progress messages
10155 -d, --debug don't remove temporary files
10156 --recheck update $as_me by reconfiguring in the same conditions
10157 --file=FILE[:TEMPLATE]
10158 instantiate the configuration file FILE
10159 --header=FILE[:TEMPLATE]
10160 instantiate the configuration header FILE
10161
10162 Configuration files:
10163 $config_files
10164
10165 Configuration headers:
10166 $config_headers
10167
10168 Configuration commands:
10169 $config_commands
10170
10171 Report bugs to the package provider."
10172
10173 _ACEOF
10174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10175 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10176 ac_cs_version="\\
10177 pcap config.status 1.9.0-PRE-GIT
10178 configured by $0, generated by GNU Autoconf 2.69,
10179 with options \\"\$ac_cs_config\\"
10180
10181 Copyright (C) 2012 Free Software Foundation, Inc.
10182 This config.status script is free software; the Free Software Foundation
10183 gives unlimited permission to copy, distribute and modify it."
10184
10185 ac_pwd='$ac_pwd'
10186 srcdir='$srcdir'
10187 INSTALL='$INSTALL'
10188 test -n "\$AWK" || AWK=awk
10189 _ACEOF
10190
10191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10192 # The default lists apply if the user does not specify any file.
10193 ac_need_defaults=:
10194 while test $# != 0
10195 do
10196 case $1 in
10197 --*=?*)
10198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10199 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10200 ac_shift=:
10201 ;;
10202 --*=)
10203 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10204 ac_optarg=
10205 ac_shift=:
10206 ;;
10207 *)
10208 ac_option=$1
10209 ac_optarg=$2
10210 ac_shift=shift
10211 ;;
10212 esac
10213
10214 case $ac_option in
10215 # Handling of the options.
10216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10217 ac_cs_recheck=: ;;
10218 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10219 $as_echo "$ac_cs_version"; exit ;;
10220 --config | --confi | --conf | --con | --co | --c )
10221 $as_echo "$ac_cs_config"; exit ;;
10222 --debug | --debu | --deb | --de | --d | -d )
10223 debug=: ;;
10224 --file | --fil | --fi | --f )
10225 $ac_shift
10226 case $ac_optarg in
10227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10228 '') as_fn_error $? "missing file argument" ;;
10229 esac
10230 as_fn_append CONFIG_FILES " '$ac_optarg'"
10231 ac_need_defaults=false;;
10232 --header | --heade | --head | --hea )
10233 $ac_shift
10234 case $ac_optarg in
10235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10236 esac
10237 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10238 ac_need_defaults=false;;
10239 --he | --h)
10240 # Conflict between --help and --header
10241 as_fn_error $? "ambiguous option: \`$1'
10242 Try \`$0 --help' for more information.";;
10243 --help | --hel | -h )
10244 $as_echo "$ac_cs_usage"; exit ;;
10245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10246 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10247 ac_cs_silent=: ;;
10248
10249 # This is an error.
10250 -*) as_fn_error $? "unrecognized option: \`$1'
10251 Try \`$0 --help' for more information." ;;
10252
10253 *) as_fn_append ac_config_targets " $1"
10254 ac_need_defaults=false ;;
10255
10256 esac
10257 shift
10258 done
10259
10260 ac_configure_extra_args=
10261
10262 if $ac_cs_silent; then
10263 exec 6>/dev/null
10264 ac_configure_extra_args="$ac_configure_extra_args --silent"
10265 fi
10266
10267 _ACEOF
10268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10269 if \$ac_cs_recheck; then
10270 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10271 shift
10272 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10273 CONFIG_SHELL='$SHELL'
10274 export CONFIG_SHELL
10275 exec "\$@"
10276 fi
10277
10278 _ACEOF
10279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10280 exec 5>>config.log
10281 {
10282 echo
10283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10284 ## Running $as_me. ##
10285 _ASBOX
10286 $as_echo "$ac_log"
10287 } >&5
10288
10289 _ACEOF
10290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10291 #
10292 # INIT-COMMANDS
10293 #
10294
10295
10296 _ACEOF
10297
10298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10299
10300 # Handling of arguments.
10301 for ac_config_target in $ac_config_targets
10302 do
10303 case $ac_config_target in
10304 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10305 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10307 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
10308 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
10309 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
10310 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
10311 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
10312 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
10313 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
10314 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
10315 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
10316 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
10317 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
10318 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
10319 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
10320 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
10321 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
10322 "rpcapd/Makefile") CONFIG_FILES="$CONFIG_FILES rpcapd/Makefile" ;;
10323
10324 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10325 esac
10326 done
10327
10328
10329 # If the user did not use the arguments to specify the items to instantiate,
10330 # then the envvar interface is used. Set only those that are not.
10331 # We use the long form for the default assignment because of an extremely
10332 # bizarre bug on SunOS 4.1.3.
10333 if $ac_need_defaults; then
10334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10337 fi
10338
10339 # Have a temporary directory for convenience. Make it in the build tree
10340 # simply because there is no reason against having it here, and in addition,
10341 # creating and moving files from /tmp can sometimes cause problems.
10342 # Hook for its removal unless debugging.
10343 # Note that there is a small window in which the directory will not be cleaned:
10344 # after its creation but before its name has been assigned to `$tmp'.
10345 $debug ||
10346 {
10347 tmp= ac_tmp=
10348 trap 'exit_status=$?
10349 : "${ac_tmp:=$tmp}"
10350 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10351 ' 0
10352 trap 'as_fn_exit 1' 1 2 13 15
10353 }
10354 # Create a (secure) tmp directory for tmp files.
10355
10356 {
10357 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10358 test -d "$tmp"
10359 } ||
10360 {
10361 tmp=./conf$$-$RANDOM
10362 (umask 077 && mkdir "$tmp")
10363 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10364 ac_tmp=$tmp
10365
10366 # Set up the scripts for CONFIG_FILES section.
10367 # No need to generate them if there are no CONFIG_FILES.
10368 # This happens for instance with `./config.status config.h'.
10369 if test -n "$CONFIG_FILES"; then
10370
10371
10372 ac_cr=`echo X | tr X '\015'`
10373 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10374 # But we know of no other shell where ac_cr would be empty at this
10375 # point, so we can use a bashism as a fallback.
10376 if test "x$ac_cr" = x; then
10377 eval ac_cr=\$\'\\r\'
10378 fi
10379 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10380 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10381 ac_cs_awk_cr='\\r'
10382 else
10383 ac_cs_awk_cr=$ac_cr
10384 fi
10385
10386 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10387 _ACEOF
10388
10389
10390 {
10391 echo "cat >conf$$subs.awk <<_ACEOF" &&
10392 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10393 echo "_ACEOF"
10394 } >conf$$subs.sh ||
10395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10396 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10397 ac_delim='%!_!# '
10398 for ac_last_try in false false false false false :; do
10399 . ./conf$$subs.sh ||
10400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10401
10402 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10403 if test $ac_delim_n = $ac_delim_num; then
10404 break
10405 elif $ac_last_try; then
10406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10407 else
10408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10409 fi
10410 done
10411 rm -f conf$$subs.sh
10412
10413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10414 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10415 _ACEOF
10416 sed -n '
10417 h
10418 s/^/S["/; s/!.*/"]=/
10419 p
10420 g
10421 s/^[^!]*!//
10422 :repl
10423 t repl
10424 s/'"$ac_delim"'$//
10425 t delim
10426 :nl
10427 h
10428 s/\(.\{148\}\)..*/\1/
10429 t more1
10430 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10431 p
10432 n
10433 b repl
10434 :more1
10435 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10436 p
10437 g
10438 s/.\{148\}//
10439 t nl
10440 :delim
10441 h
10442 s/\(.\{148\}\)..*/\1/
10443 t more2
10444 s/["\\]/\\&/g; s/^/"/; s/$/"/
10445 p
10446 b
10447 :more2
10448 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10449 p
10450 g
10451 s/.\{148\}//
10452 t delim
10453 ' <conf$$subs.awk | sed '
10454 /^[^""]/{
10455 N
10456 s/\n//
10457 }
10458 ' >>$CONFIG_STATUS || ac_write_fail=1
10459 rm -f conf$$subs.awk
10460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10461 _ACAWK
10462 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10463 for (key in S) S_is_set[key] = 1
10464 FS = "\a"
10465
10466 }
10467 {
10468 line = $ 0
10469 nfields = split(line, field, "@")
10470 substed = 0
10471 len = length(field[1])
10472 for (i = 2; i < nfields; i++) {
10473 key = field[i]
10474 keylen = length(key)
10475 if (S_is_set[key]) {
10476 value = S[key]
10477 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10478 len += length(value) + length(field[++i])
10479 substed = 1
10480 } else
10481 len += 1 + keylen
10482 }
10483
10484 print line
10485 }
10486
10487 _ACAWK
10488 _ACEOF
10489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10490 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10491 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10492 else
10493 cat
10494 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10495 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10496 _ACEOF
10497
10498 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10499 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10500 # trailing colons and then remove the whole line if VPATH becomes empty
10501 # (actually we leave an empty line to preserve line numbers).
10502 if test "x$srcdir" = x.; then
10503 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10504 h
10505 s///
10506 s/^/:/
10507 s/[ ]*$/:/
10508 s/:\$(srcdir):/:/g
10509 s/:\${srcdir}:/:/g
10510 s/:@srcdir@:/:/g
10511 s/^:*//
10512 s/:*$//
10513 x
10514 s/\(=[ ]*\).*/\1/
10515 G
10516 s/\n//
10517 s/^[^=]*=[ ]*$//
10518 }'
10519 fi
10520
10521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10522 fi # test -n "$CONFIG_FILES"
10523
10524 # Set up the scripts for CONFIG_HEADERS section.
10525 # No need to generate them if there are no CONFIG_HEADERS.
10526 # This happens for instance with `./config.status Makefile'.
10527 if test -n "$CONFIG_HEADERS"; then
10528 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10529 BEGIN {
10530 _ACEOF
10531
10532 # Transform confdefs.h into an awk script `defines.awk', embedded as
10533 # here-document in config.status, that substitutes the proper values into
10534 # config.h.in to produce config.h.
10535
10536 # Create a delimiter string that does not exist in confdefs.h, to ease
10537 # handling of long lines.
10538 ac_delim='%!_!# '
10539 for ac_last_try in false false :; do
10540 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10541 if test -z "$ac_tt"; then
10542 break
10543 elif $ac_last_try; then
10544 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10545 else
10546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10547 fi
10548 done
10549
10550 # For the awk script, D is an array of macro values keyed by name,
10551 # likewise P contains macro parameters if any. Preserve backslash
10552 # newline sequences.
10553
10554 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10555 sed -n '
10556 s/.\{148\}/&'"$ac_delim"'/g
10557 t rset
10558 :rset
10559 s/^[ ]*#[ ]*define[ ][ ]*/ /
10560 t def
10561 d
10562 :def
10563 s/\\$//
10564 t bsnl
10565 s/["\\]/\\&/g
10566 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10567 D["\1"]=" \3"/p
10568 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10569 d
10570 :bsnl
10571 s/["\\]/\\&/g
10572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10573 D["\1"]=" \3\\\\\\n"\\/p
10574 t cont
10575 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10576 t cont
10577 d
10578 :cont
10579 n
10580 s/.\{148\}/&'"$ac_delim"'/g
10581 t clear
10582 :clear
10583 s/\\$//
10584 t bsnlc
10585 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10586 d
10587 :bsnlc
10588 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10589 b cont
10590 ' <confdefs.h | sed '
10591 s/'"$ac_delim"'/"\\\
10592 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10593
10594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10595 for (key in D) D_is_set[key] = 1
10596 FS = "\a"
10597 }
10598 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10599 line = \$ 0
10600 split(line, arg, " ")
10601 if (arg[1] == "#") {
10602 defundef = arg[2]
10603 mac1 = arg[3]
10604 } else {
10605 defundef = substr(arg[1], 2)
10606 mac1 = arg[2]
10607 }
10608 split(mac1, mac2, "(") #)
10609 macro = mac2[1]
10610 prefix = substr(line, 1, index(line, defundef) - 1)
10611 if (D_is_set[macro]) {
10612 # Preserve the white space surrounding the "#".
10613 print prefix "define", macro P[macro] D[macro]
10614 next
10615 } else {
10616 # Replace #undef with comments. This is necessary, for example,
10617 # in the case of _POSIX_SOURCE, which is predefined and required
10618 # on some systems where configure will not decide to define it.
10619 if (defundef == "undef") {
10620 print "/*", prefix defundef, macro, "*/"
10621 next
10622 }
10623 }
10624 }
10625 { print }
10626 _ACAWK
10627 _ACEOF
10628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10629 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10630 fi # test -n "$CONFIG_HEADERS"
10631
10632
10633 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10634 shift
10635 for ac_tag
10636 do
10637 case $ac_tag in
10638 :[FHLC]) ac_mode=$ac_tag; continue;;
10639 esac
10640 case $ac_mode$ac_tag in
10641 :[FHL]*:*);;
10642 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10643 :[FH]-) ac_tag=-:-;;
10644 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10645 esac
10646 ac_save_IFS=$IFS
10647 IFS=:
10648 set x $ac_tag
10649 IFS=$ac_save_IFS
10650 shift
10651 ac_file=$1
10652 shift
10653
10654 case $ac_mode in
10655 :L) ac_source=$1;;
10656 :[FH])
10657 ac_file_inputs=
10658 for ac_f
10659 do
10660 case $ac_f in
10661 -) ac_f="$ac_tmp/stdin";;
10662 *) # Look for the file first in the build tree, then in the source tree
10663 # (if the path is not absolute). The absolute path cannot be DOS-style,
10664 # because $ac_f cannot contain `:'.
10665 test -f "$ac_f" ||
10666 case $ac_f in
10667 [\\/$]*) false;;
10668 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10669 esac ||
10670 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10671 esac
10672 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10673 as_fn_append ac_file_inputs " '$ac_f'"
10674 done
10675
10676 # Let's still pretend it is `configure' which instantiates (i.e., don't
10677 # use $as_me), people would be surprised to read:
10678 # /* config.h. Generated by config.status. */
10679 configure_input='Generated from '`
10680 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10681 `' by configure.'
10682 if test x"$ac_file" != x-; then
10683 configure_input="$ac_file. $configure_input"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10685 $as_echo "$as_me: creating $ac_file" >&6;}
10686 fi
10687 # Neutralize special characters interpreted by sed in replacement strings.
10688 case $configure_input in #(
10689 *\&* | *\|* | *\\* )
10690 ac_sed_conf_input=`$as_echo "$configure_input" |
10691 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10692 *) ac_sed_conf_input=$configure_input;;
10693 esac
10694
10695 case $ac_tag in
10696 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10698 esac
10699 ;;
10700 esac
10701
10702 ac_dir=`$as_dirname -- "$ac_file" ||
10703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10704 X"$ac_file" : 'X\(//\)[^/]' \| \
10705 X"$ac_file" : 'X\(//\)$' \| \
10706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10707 $as_echo X"$ac_file" |
10708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10709 s//\1/
10710 q
10711 }
10712 /^X\(\/\/\)[^/].*/{
10713 s//\1/
10714 q
10715 }
10716 /^X\(\/\/\)$/{
10717 s//\1/
10718 q
10719 }
10720 /^X\(\/\).*/{
10721 s//\1/
10722 q
10723 }
10724 s/.*/./; q'`
10725 as_dir="$ac_dir"; as_fn_mkdir_p
10726 ac_builddir=.
10727
10728 case "$ac_dir" in
10729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10730 *)
10731 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10732 # A ".." for each directory in $ac_dir_suffix.
10733 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10734 case $ac_top_builddir_sub in
10735 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10736 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10737 esac ;;
10738 esac
10739 ac_abs_top_builddir=$ac_pwd
10740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10741 # for backward compatibility:
10742 ac_top_builddir=$ac_top_build_prefix
10743
10744 case $srcdir in
10745 .) # We are building in place.
10746 ac_srcdir=.
10747 ac_top_srcdir=$ac_top_builddir_sub
10748 ac_abs_top_srcdir=$ac_pwd ;;
10749 [\\/]* | ?:[\\/]* ) # Absolute name.
10750 ac_srcdir=$srcdir$ac_dir_suffix;
10751 ac_top_srcdir=$srcdir
10752 ac_abs_top_srcdir=$srcdir ;;
10753 *) # Relative name.
10754 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10755 ac_top_srcdir=$ac_top_build_prefix$srcdir
10756 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10757 esac
10758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10759
10760
10761 case $ac_mode in
10762 :F)
10763 #
10764 # CONFIG_FILE
10765 #
10766
10767 case $INSTALL in
10768 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10769 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10770 esac
10771 _ACEOF
10772
10773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10774 # If the template does not know about datarootdir, expand it.
10775 # FIXME: This hack should be removed a few years after 2.60.
10776 ac_datarootdir_hack=; ac_datarootdir_seen=
10777 ac_sed_dataroot='
10778 /datarootdir/ {
10779 p
10780 q
10781 }
10782 /@datadir@/p
10783 /@docdir@/p
10784 /@infodir@/p
10785 /@localedir@/p
10786 /@mandir@/p'
10787 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10788 *datarootdir*) ac_datarootdir_seen=yes;;
10789 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10791 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10792 _ACEOF
10793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10794 ac_datarootdir_hack='
10795 s&@datadir@&$datadir&g
10796 s&@docdir@&$docdir&g
10797 s&@infodir@&$infodir&g
10798 s&@localedir@&$localedir&g
10799 s&@mandir@&$mandir&g
10800 s&\\\${datarootdir}&$datarootdir&g' ;;
10801 esac
10802 _ACEOF
10803
10804 # Neutralize VPATH when `$srcdir' = `.'.
10805 # Shell code in configure.ac might set extrasub.
10806 # FIXME: do we really want to maintain this feature?
10807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10808 ac_sed_extra="$ac_vpsub
10809 $extrasub
10810 _ACEOF
10811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10812 :t
10813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10814 s|@configure_input@|$ac_sed_conf_input|;t t
10815 s&@top_builddir@&$ac_top_builddir_sub&;t t
10816 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10817 s&@srcdir@&$ac_srcdir&;t t
10818 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10819 s&@top_srcdir@&$ac_top_srcdir&;t t
10820 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10821 s&@builddir@&$ac_builddir&;t t
10822 s&@abs_builddir@&$ac_abs_builddir&;t t
10823 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10824 s&@INSTALL@&$ac_INSTALL&;t t
10825 $ac_datarootdir_hack
10826 "
10827 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10828 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10829
10830 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10831 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10833 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10835 which seems to be undefined. Please make sure it is defined" >&5
10836 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10837 which seems to be undefined. Please make sure it is defined" >&2;}
10838
10839 rm -f "$ac_tmp/stdin"
10840 case $ac_file in
10841 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10842 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10843 esac \
10844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10845 ;;
10846 :H)
10847 #
10848 # CONFIG_HEADER
10849 #
10850 if test x"$ac_file" != x-; then
10851 {
10852 $as_echo "/* $configure_input */" \
10853 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10854 } >"$ac_tmp/config.h" \
10855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10856 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10858 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10859 else
10860 rm -f "$ac_file"
10861 mv "$ac_tmp/config.h" "$ac_file" \
10862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10863 fi
10864 else
10865 $as_echo "/* $configure_input */" \
10866 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10867 || as_fn_error $? "could not create -" "$LINENO" 5
10868 fi
10869 ;;
10870
10871 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10872 $as_echo "$as_me: executing $ac_file commands" >&6;}
10873 ;;
10874 esac
10875
10876
10877 case $ac_file$ac_mode in
10878 "default-1":C) if test -f .devel; then
10879 echo timestamp > stamp-h
10880 cat Makefile-devel-adds >> Makefile
10881 make depend
10882 fi ;;
10883
10884 esac
10885 done # for ac_tag
10886
10887
10888 as_fn_exit 0
10889 _ACEOF
10890 ac_clean_files=$ac_clean_files_save
10891
10892 test $ac_write_fail = 0 ||
10893 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10894
10895
10896 # configure is writing to config.log, and then calls config.status.
10897 # config.status does its own redirection, appending to config.log.
10898 # Unfortunately, on DOS this fails, as config.log is still kept open
10899 # by configure, so config.status won't be able to write to it; its
10900 # output is simply discarded. So we exec the FD to /dev/null,
10901 # effectively closing config.log, so it can be properly (re)opened and
10902 # appended to by config.status. When coming back to configure, we
10903 # need to make the FD available again.
10904 if test "$no_create" != yes; then
10905 ac_cs_success=:
10906 ac_config_status_args=
10907 test "$silent" = yes &&
10908 ac_config_status_args="$ac_config_status_args --quiet"
10909 exec 5>/dev/null
10910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10911 exec 5>>config.log
10912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10913 # would make configure fail if this is the last instruction.
10914 $ac_cs_success || as_fn_exit 1
10915 fi
10916 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10918 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10919 fi
10920
10921 exit 0