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