]> The Tcpdump Group git mirrors - libpcap/blob - configure
update configure and cmake
[libpcap] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pcap 1.10.0-PRE-GIT.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='pcap'
579 PACKAGE_TARNAME='pcap'
580 PACKAGE_VERSION='1.10.0-PRE-GIT'
581 PACKAGE_STRING='pcap 1.10.0-PRE-GIT'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="pcap.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 INSTALL_DATA
624 INSTALL_SCRIPT
625 INSTALL_PROGRAM
626 RDMA_SRC
627 PCAP_SUPPORT_RDMASNIFF
628 DBUS_SRC
629 PCAP_SUPPORT_DBUS
630 PKGCONFIG
631 BT_MONITOR_SRC
632 BT_SRC
633 PCAP_SUPPORT_BT
634 DPDK_SRC
635 PCAP_SUPPORT_DPDK
636 NETMAP_SRC
637 PCAP_SUPPORT_NETMAP
638 NETFILTER_SRC
639 PCAP_SUPPORT_NETFILTER
640 USB_SRC
641 PCAP_SUPPORT_USB
642 EXTRA_NETWORK_LIBS
643 RPCAPD_LIBS
644 INSTALL_RPCAPD
645 BUILD_RPCAPD
646 PTHREAD_LIBS
647 MAN_ADMIN_COMMANDS
648 MAN_MISC_INFO
649 MAN_FILE_FORMATS
650 MAN_DEVICES
651 DYEXT
652 SSRC
653 ADDLARCHIVEOBJS
654 ADDLOBJS
655 V_YACC
656 V_RPATH_OPT
657 V_SONAME_OPT
658 V_SHLIB_OPT
659 V_SHLIB_CMD
660 V_SHLIB_CCOPT
661 V_PCAP
662 V_LEX
663 V_INCLS
664 V_FINDALLDEVS
665 V_DEFS
666 V_PROG_LDFLAGS_FAT
667 V_PROG_CCOPT_FAT
668 V_LIB_LDFLAGS_FAT
669 V_LIB_CCOPT_FAT
670 V_CCOPT
671 MKDEP
672 DEPENDENCY_CFLAG
673 LN_S
674 AR
675 RANLIB
676 YFLAGS
677 YACC
678 LEXLIB
679 LEX_OUTPUT_ROOT
680 LEX
681 PCAP_SUPPORT_PACKET_RING
682 VALGRINDTEST_SRC
683 LIBOBJS
684 EGREP
685 GREP
686 CPP
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 SHLICC2
695 target_os
696 target_vendor
697 target_cpu
698 target
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 localstatedir
727 sharedstatedir
728 sysconfdir
729 datadir
730 datarootdir
731 libexecdir
732 sbindir
733 bindir
734 program_transform_name
735 prefix
736 exec_prefix
737 PACKAGE_URL
738 PACKAGE_BUGREPORT
739 PACKAGE_STRING
740 PACKAGE_VERSION
741 PACKAGE_TARNAME
742 PACKAGE_NAME
743 PATH_SEPARATOR
744 SHELL'
745 ac_subst_files=''
746 ac_user_opts='
747 enable_option_checking
748 with_gcc
749 enable_largefile
750 enable_protochain
751 with_pcap
752 with_libnl
753 enable_packet_ring
754 enable_ipv6
755 with_dag
756 with_dag_includes
757 with_dag_libraries
758 with_septel
759 with_snf
760 with_snf_includes
761 with_snf_libraries
762 with_turbocap
763 enable_remote
764 enable_optimizer_dbg
765 enable_yydebug
766 enable_universal
767 enable_shared
768 enable_usb
769 enable_netmap
770 enable_dpdk
771 with_dpdk_includes
772 with_dpdk_libraries
773 enable_bluetooth
774 enable_dbus
775 enable_rdma
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CPP
786 YACC
787 YFLAGS'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
847 fi
848
849 case $ac_option in
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *=) ac_optarg= ;;
852 *) ac_optarg=yes ;;
853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures pcap 1.10.0-PRE-GIT to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 --target=TARGET configure for building compilers for TARGET [HOST]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of pcap 1.10.0-PRE-GIT:";;
1395 esac
1396 cat <<\_ACEOF
1397
1398 Optional Features:
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --disable-largefile omit support for large files
1403 --disable-protochain disable \"protochain\" insn
1404 --enable-packet-ring enable packet ring support on Linux [default=yes]
1405 --enable-ipv6 build IPv6-capable version [default=yes]
1406 --enable-remote enable remote packet capture [default=no]
1407 --disable-remote disable remote packet capture
1408 --enable-optimizer-dbg build optimizer debugging code
1409 --enable-yydebug build parser debugging code
1410 --disable-universal don't build universal on macOS
1411 --enable-shared build shared libraries [default=yes, if support
1412 available]
1413 --enable-usb enable USB capture support [default=yes, if support
1414 available]
1415 --enable-netmap enable netmap support [default=yes, if support
1416 available]
1417 --enable-dpdk enable dpdk support [default=no]
1418 --enable-bluetooth enable Bluetooth support [default=yes, if support
1419 available]
1420 --enable-dbus enable D-Bus capture support [default=yes, if
1421 support available]
1422 --enable-rdma enable RDMA capture support [default=yes, if support
1423 available]
1424
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --without-gcc don't use gcc
1429 --with-pcap=TYPE use packet capture TYPE
1430 --without-libnl disable libnl support [default=yes, on Linux, if
1431 present]
1432 --with-dag[=DIR] include Endace DAG support (located in directory
1433 DIR, if supplied). [default=yes, if present]
1434 --with-dag-includes=IDIR
1435 Endace DAG include directory, if not DIR/include
1436 --with-dag-libraries=LDIR
1437 Endace DAG library directory, if not DIR/lib
1438 --with-septel[=DIR] include Septel support (located in directory DIR, if
1439 supplied). [default=yes, if present]
1440 --with-snf[=DIR] include Myricom SNF support (located in directory
1441 DIR, if supplied). [default=yes, if present]
1442 --with-snf-includes=IDIR
1443 Myricom SNF include directory, if not DIR/include
1444 --with-snf-libraries=LDIR
1445 Myricom SNF library directory, if not DIR/lib
1446 --with-turbocap[=DIR] include Riverbed TurboCap support (located in
1447 directory DIR, if supplied). [default=yes, if
1448 present]
1449 --with-dpdk-includes=IDIR
1450 Endace DPDK include directory, if not DIR/include
1451 --with-dpdk-libraries=LDIR
1452 Endace DPDK library directory, if not DIR/lib
1453
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CPP C preprocessor
1463 YACC The `Yet Another Compiler Compiler' implementation to use.
1464 Defaults to the first program found out of: `bison -y', `byacc',
1465 `yacc'.
1466 YFLAGS The list of arguments that will be passed by default to $YACC.
1467 This script will default YFLAGS to the empty string to avoid a
1468 default value of `-d' given by some make applications.
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to the package provider.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535 cat <<\_ACEOF
1536 pcap configure 1.10.0-PRE-GIT
1537 generated by GNU Autoconf 2.69
1538
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542 _ACEOF
1543 exit
1544 fi
1545
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1549
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1554 {
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1576 ac_retval=0
1577 else
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582 fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_c_try_link LINENO
1589 # -----------------------
1590 # Try to link conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_link ()
1592 {
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext conftest$ac_exeext
1595 if { { ac_try="$ac_link"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_link") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest$ac_exeext && {
1614 test "$cross_compiling" = yes ||
1615 test -x conftest$ac_exeext
1616 }; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1625 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1626 # interfere with the next link command; also delete a directory that is
1627 # left behind by Apple's compiler. We do this before executing the actions.
1628 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_link
1633
1634 # ac_fn_c_try_cpp LINENO
1635 # ----------------------
1636 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_cpp ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_cpp conftest.$ac_ext"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } > conftest.i && {
1656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1
1665 fi
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_cpp
1670
1671 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1672 # -------------------------------------------------------
1673 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1674 # the include files in INCLUDES and setting the cache variable VAR
1675 # accordingly.
1676 ac_fn_c_check_header_mongrel ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if eval \${$3+:} false; then :
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1684 fi
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 else
1689 # Is the header compilable?
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1691 $as_echo_n "checking $2 usability... " >&6; }
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1694 $4
1695 #include <$2>
1696 _ACEOF
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698 ac_header_compiler=yes
1699 else
1700 ac_header_compiler=no
1701 fi
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1704 $as_echo "$ac_header_compiler" >&6; }
1705
1706 # Is the header present?
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1708 $as_echo_n "checking $2 presence... " >&6; }
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1711 #include <$2>
1712 _ACEOF
1713 if ac_fn_c_try_cpp "$LINENO"; then :
1714 ac_header_preproc=yes
1715 else
1716 ac_header_preproc=no
1717 fi
1718 rm -f conftest.err conftest.i conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1720 $as_echo "$ac_header_preproc" >&6; }
1721
1722 # So? What about this header?
1723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1724 yes:no: )
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1726 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729 ;;
1730 no:yes:* )
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1732 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1734 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1736 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1738 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741 ;;
1742 esac
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 eval "$3=\$ac_header_compiler"
1749 fi
1750 eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 fi
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756 } # ac_fn_c_check_header_mongrel
1757
1758 # ac_fn_c_try_run LINENO
1759 # ----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1761 # that executables *can* be run.
1762 ac_fn_c_try_run ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>&5
1773 ac_status=$?
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1776 { { case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_try") 2>&5
1783 ac_status=$?
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; }; }; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: program exited with status $ac_status" >&5
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=$ac_status
1793 fi
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_run
1799
1800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists and can be compiled using the include files in
1803 # INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1805 {
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1811 else
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 $4
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818 eval "$3=yes"
1819 else
1820 eval "$3=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 fi
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_c_check_header_compile
1830
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1847
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1852
1853 #ifdef __STDC__
1854 # include <limits.h>
1855 #else
1856 # include <assert.h>
1857 #endif
1858
1859 #undef $2
1860
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 ();
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1872 choke me
1873 #endif
1874
1875 int
1876 main ()
1877 {
1878 return $2 ();
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_link "$LINENO"; then :
1884 eval "$3=yes"
1885 else
1886 eval "$3=no"
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_func
1897
1898 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1899 # ---------------------------------------------
1900 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1901 # accordingly.
1902 ac_fn_c_check_decl ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 as_decl_name=`echo $2|sed 's/ *(.*//'`
1906 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1908 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1911 else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $4
1915 int
1916 main ()
1917 {
1918 #ifndef $as_decl_name
1919 #ifdef __cplusplus
1920 (void) $as_decl_use;
1921 #else
1922 (void) $as_decl_name;
1923 #endif
1924 #endif
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 eval "$3=yes"
1932 else
1933 eval "$3=no"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_decl
1943
1944 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1945 # -------------------------------------------
1946 # Tests whether TYPE exists after having included INCLUDES, setting cache
1947 # variable VAR accordingly.
1948 ac_fn_c_check_type ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=no"
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $4
1960 int
1961 main ()
1962 {
1963 if (sizeof ($2))
1964 return 0;
1965 ;
1966 return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 int
1974 main ()
1975 {
1976 if (sizeof (($2)))
1977 return 0;
1978 ;
1979 return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983
1984 else
1985 eval "$3=yes"
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 fi
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_type
1997
1998 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999 # ----------------------------------------------------
2000 # Tries to find if the field MEMBER exists in type AGGR, after including
2001 # INCLUDES, setting cache variable VAR accordingly.
2002 ac_fn_c_check_member ()
2003 {
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006 $as_echo_n "checking for $2.$3... " >&6; }
2007 if eval \${$4+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $5
2013 int
2014 main ()
2015 {
2016 static $2 ac_aggr;
2017 if (ac_aggr.$3)
2018 return 0;
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$4=yes"
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $5
2029 int
2030 main ()
2031 {
2032 static $2 ac_aggr;
2033 if (sizeof ac_aggr.$3)
2034 return 0;
2035 ;
2036 return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 eval "$4=yes"
2041 else
2042 eval "$4=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 eval ac_res=\$$4
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053 } # ac_fn_c_check_member
2054 cat >config.log <<_ACEOF
2055 This file contains any messages produced by compilers while
2056 running configure, to aid debugging if configure makes a mistake.
2057
2058 It was created by pcap $as_me 1.10.0-PRE-GIT, which was
2059 generated by GNU Autoconf 2.69. Invocation command line was
2060
2061 $ $0 $@
2062
2063 _ACEOF
2064 exec 5>>config.log
2065 {
2066 cat <<_ASUNAME
2067 ## --------- ##
2068 ## Platform. ##
2069 ## --------- ##
2070
2071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2076
2077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2078 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2079
2080 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2081 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2083 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2084 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2085 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2086 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2087
2088 _ASUNAME
2089
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 $as_echo "PATH: $as_dir"
2096 done
2097 IFS=$as_save_IFS
2098
2099 } >&5
2100
2101 cat >&5 <<_ACEOF
2102
2103
2104 ## ----------- ##
2105 ## Core tests. ##
2106 ## ----------- ##
2107
2108 _ACEOF
2109
2110
2111 # Keep a trace of the command line.
2112 # Strip out --no-create and --no-recursion so they do not pile up.
2113 # Strip out --silent because we don't want to record it for future runs.
2114 # Also quote any args containing shell meta-characters.
2115 # Make two passes to allow for proper duplicate-argument suppression.
2116 ac_configure_args=
2117 ac_configure_args0=
2118 ac_configure_args1=
2119 ac_must_keep_next=false
2120 for ac_pass in 1 2
2121 do
2122 for ac_arg
2123 do
2124 case $ac_arg in
2125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2127 | -silent | --silent | --silen | --sile | --sil)
2128 continue ;;
2129 *\'*)
2130 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2131 esac
2132 case $ac_pass in
2133 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2134 2)
2135 as_fn_append ac_configure_args1 " '$ac_arg'"
2136 if test $ac_must_keep_next = true; then
2137 ac_must_keep_next=false # Got value, back to normal.
2138 else
2139 case $ac_arg in
2140 *=* | --config-cache | -C | -disable-* | --disable-* \
2141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2143 | -with-* | --with-* | -without-* | --without-* | --x)
2144 case "$ac_configure_args0 " in
2145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2146 esac
2147 ;;
2148 -* ) ac_must_keep_next=true ;;
2149 esac
2150 fi
2151 as_fn_append ac_configure_args " '$ac_arg'"
2152 ;;
2153 esac
2154 done
2155 done
2156 { ac_configure_args0=; unset ac_configure_args0;}
2157 { ac_configure_args1=; unset ac_configure_args1;}
2158
2159 # When interrupted or exit'd, cleanup temporary files, and complete
2160 # config.log. We remove comments because anyway the quotes in there
2161 # would cause problems or look ugly.
2162 # WARNING: Use '\'' to represent an apostrophe within the trap.
2163 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2164 trap 'exit_status=$?
2165 # Save into config.log some information that might help in debugging.
2166 {
2167 echo
2168
2169 $as_echo "## ---------------- ##
2170 ## Cache variables. ##
2171 ## ---------------- ##"
2172 echo
2173 # The following way of writing the cache mishandles newlines in values,
2174 (
2175 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2176 eval ac_val=\$$ac_var
2177 case $ac_val in #(
2178 *${as_nl}*)
2179 case $ac_var in #(
2180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2181 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2182 esac
2183 case $ac_var in #(
2184 _ | IFS | as_nl) ;; #(
2185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2186 *) { eval $ac_var=; unset $ac_var;} ;;
2187 esac ;;
2188 esac
2189 done
2190 (set) 2>&1 |
2191 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2192 *${as_nl}ac_space=\ *)
2193 sed -n \
2194 "s/'\''/'\''\\\\'\'''\''/g;
2195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2196 ;; #(
2197 *)
2198 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2199 ;;
2200 esac |
2201 sort
2202 )
2203 echo
2204
2205 $as_echo "## ----------------- ##
2206 ## Output variables. ##
2207 ## ----------------- ##"
2208 echo
2209 for ac_var in $ac_subst_vars
2210 do
2211 eval ac_val=\$$ac_var
2212 case $ac_val in
2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 esac
2215 $as_echo "$ac_var='\''$ac_val'\''"
2216 done | sort
2217 echo
2218
2219 if test -n "$ac_subst_files"; then
2220 $as_echo "## ------------------- ##
2221 ## File substitutions. ##
2222 ## ------------------- ##"
2223 echo
2224 for ac_var in $ac_subst_files
2225 do
2226 eval ac_val=\$$ac_var
2227 case $ac_val in
2228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2229 esac
2230 $as_echo "$ac_var='\''$ac_val'\''"
2231 done | sort
2232 echo
2233 fi
2234
2235 if test -s confdefs.h; then
2236 $as_echo "## ----------- ##
2237 ## confdefs.h. ##
2238 ## ----------- ##"
2239 echo
2240 cat confdefs.h
2241 echo
2242 fi
2243 test "$ac_signal" != 0 &&
2244 $as_echo "$as_me: caught signal $ac_signal"
2245 $as_echo "$as_me: exit $exit_status"
2246 } >&5
2247 rm -f core *.core core.conftest.* &&
2248 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2249 exit $exit_status
2250 ' 0
2251 for ac_signal in 1 2 13 15; do
2252 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2253 done
2254 ac_signal=0
2255
2256 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2257 rm -f -r conftest* confdefs.h
2258
2259 $as_echo "/* confdefs.h */" > confdefs.h
2260
2261 # Predefined preprocessor variables.
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_NAME "$PACKAGE_NAME"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_STRING "$PACKAGE_STRING"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2281 _ACEOF
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_URL "$PACKAGE_URL"
2285 _ACEOF
2286
2287
2288 # Let the site file select an alternate cache file if it wants to.
2289 # Prefer an explicitly selected file to automatically selected ones.
2290 ac_site_file1=NONE
2291 ac_site_file2=NONE
2292 if test -n "$CONFIG_SITE"; then
2293 # We do not want a PATH search for config.site.
2294 case $CONFIG_SITE in #((
2295 -*) ac_site_file1=./$CONFIG_SITE;;
2296 */*) ac_site_file1=$CONFIG_SITE;;
2297 *) ac_site_file1=./$CONFIG_SITE;;
2298 esac
2299 elif test "x$prefix" != xNONE; then
2300 ac_site_file1=$prefix/share/config.site
2301 ac_site_file2=$prefix/etc/config.site
2302 else
2303 ac_site_file1=$ac_default_prefix/share/config.site
2304 ac_site_file2=$ac_default_prefix/etc/config.site
2305 fi
2306 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2307 do
2308 test "x$ac_site_file" = xNONE && continue
2309 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2311 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2312 sed 's/^/| /' "$ac_site_file" >&5
2313 . "$ac_site_file" \
2314 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2316 as_fn_error $? "failed to load site script $ac_site_file
2317 See \`config.log' for more details" "$LINENO" 5; }
2318 fi
2319 done
2320
2321 if test -r "$cache_file"; then
2322 # Some versions of bash will fail to source /dev/null (special files
2323 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2324 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2326 $as_echo "$as_me: loading cache $cache_file" >&6;}
2327 case $cache_file in
2328 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2329 *) . "./$cache_file";;
2330 esac
2331 fi
2332 else
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2334 $as_echo "$as_me: creating cache $cache_file" >&6;}
2335 >$cache_file
2336 fi
2337
2338 # Check that the precious variables saved in the cache have kept the same
2339 # value.
2340 ac_cache_corrupted=false
2341 for ac_var in $ac_precious_vars; do
2342 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2343 eval ac_new_set=\$ac_env_${ac_var}_set
2344 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2345 eval ac_new_val=\$ac_env_${ac_var}_value
2346 case $ac_old_set,$ac_new_set in
2347 set,)
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2349 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2350 ac_cache_corrupted=: ;;
2351 ,set)
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2353 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2354 ac_cache_corrupted=: ;;
2355 ,);;
2356 *)
2357 if test "x$ac_old_val" != "x$ac_new_val"; then
2358 # differences in whitespace do not lead to failure.
2359 ac_old_val_w=`echo x $ac_old_val`
2360 ac_new_val_w=`echo x $ac_new_val`
2361 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2363 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2364 ac_cache_corrupted=:
2365 else
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2367 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2368 eval $ac_var=\$ac_old_val
2369 fi
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2371 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2373 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2374 fi;;
2375 esac
2376 # Pass precious variables to config.status.
2377 if test "$ac_new_set" = set; then
2378 case $ac_new_val in
2379 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2380 *) ac_arg=$ac_var=$ac_new_val ;;
2381 esac
2382 case " $ac_configure_args " in
2383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2384 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2385 esac
2386 fi
2387 done
2388 if $ac_cache_corrupted; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2392 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2393 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2394 fi
2395 ## -------------------- ##
2396 ## Main body of script. ##
2397 ## -------------------- ##
2398
2399 ac_ext=c
2400 ac_cpp='$CPP $CPPFLAGS'
2401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404
2405
2406
2407
2408
2409 ac_aux_dir=
2410 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2411 if test -f "$ac_dir/install-sh"; then
2412 ac_aux_dir=$ac_dir
2413 ac_install_sh="$ac_aux_dir/install-sh -c"
2414 break
2415 elif test -f "$ac_dir/install.sh"; then
2416 ac_aux_dir=$ac_dir
2417 ac_install_sh="$ac_aux_dir/install.sh -c"
2418 break
2419 elif test -f "$ac_dir/shtool"; then
2420 ac_aux_dir=$ac_dir
2421 ac_install_sh="$ac_aux_dir/shtool install -c"
2422 break
2423 fi
2424 done
2425 if test -z "$ac_aux_dir"; then
2426 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2427 fi
2428
2429 # These three variables are undocumented and unsupported,
2430 # and are intended to be withdrawn in a future Autoconf release.
2431 # They can cause serious problems if a builder's source tree is in a directory
2432 # whose full name contains unusual characters.
2433 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2434 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2435 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2436
2437
2438 # Make sure we can run config.sub.
2439 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2440 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2441
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2443 $as_echo_n "checking build system type... " >&6; }
2444 if ${ac_cv_build+:} false; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 ac_build_alias=$build_alias
2448 test "x$ac_build_alias" = x &&
2449 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2450 test "x$ac_build_alias" = x &&
2451 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2452 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2453 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2454
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2457 $as_echo "$ac_cv_build" >&6; }
2458 case $ac_cv_build in
2459 *-*-*) ;;
2460 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2461 esac
2462 build=$ac_cv_build
2463 ac_save_IFS=$IFS; IFS='-'
2464 set x $ac_cv_build
2465 shift
2466 build_cpu=$1
2467 build_vendor=$2
2468 shift; shift
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2471 build_os=$*
2472 IFS=$ac_save_IFS
2473 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2474
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2477 $as_echo_n "checking host system type... " >&6; }
2478 if ${ac_cv_host+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 if test "x$host_alias" = x; then
2482 ac_cv_host=$ac_cv_build
2483 else
2484 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2486 fi
2487
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2490 $as_echo "$ac_cv_host" >&6; }
2491 case $ac_cv_host in
2492 *-*-*) ;;
2493 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2494 esac
2495 host=$ac_cv_host
2496 ac_save_IFS=$IFS; IFS='-'
2497 set x $ac_cv_host
2498 shift
2499 host_cpu=$1
2500 host_vendor=$2
2501 shift; shift
2502 # Remember, the first character of IFS is used to create $*,
2503 # except with old shells:
2504 host_os=$*
2505 IFS=$ac_save_IFS
2506 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2507
2508
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2510 $as_echo_n "checking target system type... " >&6; }
2511 if ${ac_cv_target+:} false; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 if test "x$target_alias" = x; then
2515 ac_cv_target=$ac_cv_host
2516 else
2517 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2519 fi
2520
2521 fi
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2523 $as_echo "$ac_cv_target" >&6; }
2524 case $ac_cv_target in
2525 *-*-*) ;;
2526 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2527 esac
2528 target=$ac_cv_target
2529 ac_save_IFS=$IFS; IFS='-'
2530 set x $ac_cv_target
2531 shift
2532 target_cpu=$1
2533 target_vendor=$2
2534 shift; shift
2535 # Remember, the first character of IFS is used to create $*,
2536 # except with old shells:
2537 target_os=$*
2538 IFS=$ac_save_IFS
2539 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2540
2541
2542 # The aliases save the names the user supplied, while $host etc.
2543 # will get canonicalized.
2544 test -n "$target_alias" &&
2545 test "$program_prefix$program_suffix$program_transform_name" = \
2546 NONENONEs,x,x, &&
2547 program_prefix=${target_alias}-
2548
2549
2550
2551
2552
2553
2554
2555
2556 # Check whether --with-gcc was given.
2557 if test "${with_gcc+set}" = set; then :
2558 withval=$with_gcc;
2559 fi
2560
2561 V_CCOPT=""
2562 if test "${srcdir}" != "." ; then
2563 V_CCOPT="-I\$(srcdir)"
2564 fi
2565 if test "${CFLAGS+set}" = set; then
2566 LBL_CFLAGS="$CFLAGS"
2567 fi
2568 if test -z "$CC" ; then
2569 case "$host_os" in
2570
2571 bsdi*)
2572 # Extract the first word of "shlicc2", so it can be a program name with args.
2573 set dummy shlicc2; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_SHLICC2+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$SHLICC2"; then
2580 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_SHLICC2="yes"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2598 fi
2599 fi
2600 SHLICC2=$ac_cv_prog_SHLICC2
2601 if test -n "$SHLICC2"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2603 $as_echo "$SHLICC2" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609
2610 if test $SHLICC2 = yes ; then
2611 CC=shlicc2
2612 export CC
2613 fi
2614 ;;
2615 esac
2616 fi
2617 if test -z "$CC" -a "$with_gcc" = no ; then
2618 CC=cc
2619 export CC
2620 fi
2621
2622 #
2623 # Try to enable as many C99 features as we can.
2624 # At minimum, we want C++/C99-style // comments.
2625 #
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_CC+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669 fi
2670 if test -z "$ac_cv_prog_CC"; then
2671 ac_ct_CC=$CC
2672 # Extract the first word of "gcc", so it can be a program name with args.
2673 set dummy gcc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test -n "$ac_ct_CC"; then
2680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_ac_ct_CC="gcc"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2692 fi
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2700 if test -n "$ac_ct_CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2702 $as_echo "$ac_ct_CC" >&6; }
2703 else
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708 if test "x$ac_ct_CC" = x; then
2709 CC=""
2710 else
2711 case $cross_compiling:$ac_tool_warned in
2712 yes:)
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2716 esac
2717 CC=$ac_ct_CC
2718 fi
2719 else
2720 CC="$ac_cv_prog_CC"
2721 fi
2722
2723 if test -z "$CC"; then
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}cc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC="${ac_tool_prefix}cc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2759 fi
2760
2761
2762 fi
2763 fi
2764 if test -z "$CC"; then
2765 # Extract the first word of "cc", so it can be a program name with args.
2766 set dummy cc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if ${ac_cv_prog_CC+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 else
2775 ac_prog_rejected=no
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2784 ac_prog_rejected=yes
2785 continue
2786 fi
2787 ac_cv_prog_CC="cc"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 if test $ac_prog_rejected = yes; then
2796 # We found a bogon in the path, so make sure we never use it.
2797 set dummy $ac_cv_prog_CC
2798 shift
2799 if test $# != 0; then
2800 # We chose a different compiler from the bogus one.
2801 # However, it has the same basename, so the bogon will be chosen
2802 # first if we set CC to just the basename; use the full file name.
2803 shift
2804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2805 fi
2806 fi
2807 fi
2808 fi
2809 CC=$ac_cv_prog_CC
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819 fi
2820 if test -z "$CC"; then
2821 if test -n "$ac_tool_prefix"; then
2822 for ac_prog in cl.exe
2823 do
2824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 CC=$ac_cv_prog_CC
2852 if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860
2861 test -n "$CC" && break
2862 done
2863 fi
2864 if test -z "$CC"; then
2865 ac_ct_CC=$CC
2866 for ac_prog in cl.exe
2867 do
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_ac_ct_CC="$ac_prog"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889 done
2890 done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2898 $as_echo "$ac_ct_CC" >&6; }
2899 else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905 test -n "$ac_ct_CC" && break
2906 done
2907
2908 if test "x$ac_ct_CC" = x; then
2909 CC=""
2910 else
2911 case $cross_compiling:$ac_tool_warned in
2912 yes:)
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915 ac_tool_warned=yes ;;
2916 esac
2917 CC=$ac_ct_CC
2918 fi
2919 fi
2920
2921 fi
2922
2923
2924 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2926 as_fn_error $? "no acceptable C compiler found in \$PATH
2927 See \`config.log' for more details" "$LINENO" 5; }
2928
2929 # Provide some information about the compiler.
2930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2931 set X $ac_compile
2932 ac_compiler=$2
2933 for ac_option in --version -v -V -qversion; do
2934 { { ac_try="$ac_compiler $ac_option >&5"
2935 case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938 esac
2939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2940 $as_echo "$ac_try_echo"; } >&5
2941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2942 ac_status=$?
2943 if test -s conftest.err; then
2944 sed '10a\
2945 ... rest of stderr output deleted ...
2946 10q' conftest.err >conftest.er1
2947 cat conftest.er1 >&5
2948 fi
2949 rm -f conftest.er1 conftest.err
2950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2951 test $ac_status = 0; }
2952 done
2953
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2956
2957 int
2958 main ()
2959 {
2960
2961 ;
2962 return 0;
2963 }
2964 _ACEOF
2965 ac_clean_files_save=$ac_clean_files
2966 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2967 # Try to create an executable without -o first, disregard a.out.
2968 # It will help us diagnose broken compilers, and finding out an intuition
2969 # of exeext.
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2971 $as_echo_n "checking whether the C compiler works... " >&6; }
2972 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2973
2974 # The possible output files:
2975 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2976
2977 ac_rmfiles=
2978 for ac_file in $ac_files
2979 do
2980 case $ac_file in
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2982 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2983 esac
2984 done
2985 rm -f $ac_rmfiles
2986
2987 if { { ac_try="$ac_link_default"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 $as_echo "$ac_try_echo"; } >&5
2994 (eval "$ac_link_default") 2>&5
2995 ac_status=$?
2996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997 test $ac_status = 0; }; then :
2998 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2999 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3000 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3001 # so that the user can short-circuit this test for compilers unknown to
3002 # Autoconf.
3003 for ac_file in $ac_files ''
3004 do
3005 test -f "$ac_file" || continue
3006 case $ac_file in
3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3008 ;;
3009 [ab].out )
3010 # We found the default executable, but exeext='' is most
3011 # certainly right.
3012 break;;
3013 *.* )
3014 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3015 then :; else
3016 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3017 fi
3018 # We set ac_cv_exeext here because the later test for it is not
3019 # safe: cross compilers may not add the suffix if given an `-o'
3020 # argument, so we may need to know it at that point already.
3021 # Even if this section looks crufty: it has the advantage of
3022 # actually working.
3023 break;;
3024 * )
3025 break;;
3026 esac
3027 done
3028 test "$ac_cv_exeext" = no && ac_cv_exeext=
3029
3030 else
3031 ac_file=''
3032 fi
3033 if test -z "$ac_file"; then :
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 as_fn_error 77 "C compiler cannot create executables
3042 See \`config.log' for more details" "$LINENO" 5; }
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3045 $as_echo "yes" >&6; }
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3048 $as_echo_n "checking for C compiler default output file name... " >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3050 $as_echo "$ac_file" >&6; }
3051 ac_exeext=$ac_cv_exeext
3052
3053 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3054 ac_clean_files=$ac_clean_files_save
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3056 $as_echo_n "checking for suffix of executables... " >&6; }
3057 if { { ac_try="$ac_link"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063 $as_echo "$ac_try_echo"; } >&5
3064 (eval "$ac_link") 2>&5
3065 ac_status=$?
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }; then :
3068 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3069 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3070 # work properly (i.e., refer to `conftest.exe'), while it won't with
3071 # `rm'.
3072 for ac_file in conftest.exe conftest conftest.*; do
3073 test -f "$ac_file" || continue
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3076 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3077 break;;
3078 * ) break;;
3079 esac
3080 done
3081 else
3082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details" "$LINENO" 5; }
3086 fi
3087 rm -f conftest conftest$ac_cv_exeext
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3089 $as_echo "$ac_cv_exeext" >&6; }
3090
3091 rm -f conftest.$ac_ext
3092 EXEEXT=$ac_cv_exeext
3093 ac_exeext=$EXEEXT
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3096 #include <stdio.h>
3097 int
3098 main ()
3099 {
3100 FILE *f = fopen ("conftest.out", "w");
3101 return ferror (f) || fclose (f) != 0;
3102
3103 ;
3104 return 0;
3105 }
3106 _ACEOF
3107 ac_clean_files="$ac_clean_files conftest.out"
3108 # Check that the compiler produces executables we can run. If not, either
3109 # the compiler is broken, or we cross compile.
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3111 $as_echo_n "checking whether we are cross compiling... " >&6; }
3112 if test "$cross_compiling" != yes; then
3113 { { ac_try="$ac_link"
3114 case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_link") 2>&5
3121 ac_status=$?
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }
3124 if { ac_try='./conftest$ac_cv_exeext'
3125 { { case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_try") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; }; then
3135 cross_compiling=no
3136 else
3137 if test "$cross_compiling" = maybe; then
3138 cross_compiling=yes
3139 else
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details" "$LINENO" 5; }
3145 fi
3146 fi
3147 fi
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3149 $as_echo "$cross_compiling" >&6; }
3150
3151 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3152 ac_clean_files=$ac_clean_files_save
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3154 $as_echo_n "checking for suffix of object files... " >&6; }
3155 if ${ac_cv_objext+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160
3161 int
3162 main ()
3163 {
3164
3165 ;
3166 return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.o conftest.obj
3170 if { { ac_try="$ac_compile"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_compile") 2>&5
3178 ac_status=$?
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; then :
3181 for ac_file in conftest.o conftest.obj conftest.*; do
3182 test -f "$ac_file" || continue;
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3185 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3186 break;;
3187 esac
3188 done
3189 else
3190 $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "cannot compute suffix of object files: cannot compile
3196 See \`config.log' for more details" "$LINENO" 5; }
3197 fi
3198 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3199 fi
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3201 $as_echo "$ac_cv_objext" >&6; }
3202 OBJEXT=$ac_cv_objext
3203 ac_objext=$OBJEXT
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3205 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3206 if ${ac_cv_c_compiler_gnu+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3211
3212 int
3213 main ()
3214 {
3215 #ifndef __GNUC__
3216 choke me
3217 #endif
3218
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 if ac_fn_c_try_compile "$LINENO"; then :
3224 ac_compiler_gnu=yes
3225 else
3226 ac_compiler_gnu=no
3227 fi
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3230
3231 fi
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3233 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3234 if test $ac_compiler_gnu = yes; then
3235 GCC=yes
3236 else
3237 GCC=
3238 fi
3239 ac_test_CFLAGS=${CFLAGS+set}
3240 ac_save_CFLAGS=$CFLAGS
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3242 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3243 if ${ac_cv_prog_cc_g+:} false; then :
3244 $as_echo_n "(cached) " >&6
3245 else
3246 ac_save_c_werror_flag=$ac_c_werror_flag
3247 ac_c_werror_flag=yes
3248 ac_cv_prog_cc_g=no
3249 CFLAGS="-g"
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252
3253 int
3254 main ()
3255 {
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 if ac_fn_c_try_compile "$LINENO"; then :
3262 ac_cv_prog_cc_g=yes
3263 else
3264 CFLAGS=""
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3267
3268 int
3269 main ()
3270 {
3271
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 if ac_fn_c_try_compile "$LINENO"; then :
3277
3278 else
3279 ac_c_werror_flag=$ac_save_c_werror_flag
3280 CFLAGS="-g"
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3283
3284 int
3285 main ()
3286 {
3287
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_cv_prog_cc_g=yes
3294 fi
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 fi
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 fi
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_c_werror_flag=$ac_save_c_werror_flag
3301 fi
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3303 $as_echo "$ac_cv_prog_cc_g" >&6; }
3304 if test "$ac_test_CFLAGS" = set; then
3305 CFLAGS=$ac_save_CFLAGS
3306 elif test $ac_cv_prog_cc_g = yes; then
3307 if test "$GCC" = yes; then
3308 CFLAGS="-g -O2"
3309 else
3310 CFLAGS="-g"
3311 fi
3312 else
3313 if test "$GCC" = yes; then
3314 CFLAGS="-O2"
3315 else
3316 CFLAGS=
3317 fi
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3320 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3321 if ${ac_cv_prog_cc_c89+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 ac_cv_prog_cc_c89=no
3325 ac_save_CC=$CC
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328 #include <stdarg.h>
3329 #include <stdio.h>
3330 struct stat;
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3335 char **p;
3336 int i;
3337 {
3338 return p[i];
3339 }
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3341 {
3342 char *s;
3343 va_list v;
3344 va_start (v,p);
3345 s = g (p, va_arg (v,int));
3346 va_end (v);
3347 return s;
3348 }
3349
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3358
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3361 #define FOO(x) 'x'
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3363
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368 int argc;
3369 char **argv;
3370 int
3371 main ()
3372 {
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3380 do
3381 CC="$ac_save_CC $ac_arg"
3382 if ac_fn_c_try_compile "$LINENO"; then :
3383 ac_cv_prog_cc_c89=$ac_arg
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext
3386 test "x$ac_cv_prog_cc_c89" != "xno" && break
3387 done
3388 rm -f conftest.$ac_ext
3389 CC=$ac_save_CC
3390
3391 fi
3392 # AC_CACHE_VAL
3393 case "x$ac_cv_prog_cc_c89" in
3394 x)
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3396 $as_echo "none needed" >&6; } ;;
3397 xno)
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3399 $as_echo "unsupported" >&6; } ;;
3400 *)
3401 CC="$CC $ac_cv_prog_cc_c89"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3403 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3404 esac
3405 if test "x$ac_cv_prog_cc_c89" != xno; then :
3406
3407 fi
3408
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3416 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3417 if ${ac_cv_prog_cc_c99+:} false; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 ac_cv_prog_cc_c99=no
3421 ac_save_CC=$CC
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424 #include <stdarg.h>
3425 #include <stdbool.h>
3426 #include <stdlib.h>
3427 #include <wchar.h>
3428 #include <stdio.h>
3429
3430 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3431 #define debug(...) fprintf (stderr, __VA_ARGS__)
3432 #define showlist(...) puts (#__VA_ARGS__)
3433 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3434 static void
3435 test_varargs_macros (void)
3436 {
3437 int x = 1234;
3438 int y = 5678;
3439 debug ("Flag");
3440 debug ("X = %d\n", x);
3441 showlist (The first, second, and third items.);
3442 report (x>y, "x is %d but y is %d", x, y);
3443 }
3444
3445 // Check long long types.
3446 #define BIG64 18446744073709551615ull
3447 #define BIG32 4294967295ul
3448 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3449 #if !BIG_OK
3450 your preprocessor is broken;
3451 #endif
3452 #if BIG_OK
3453 #else
3454 your preprocessor is broken;
3455 #endif
3456 static long long int bignum = -9223372036854775807LL;
3457 static unsigned long long int ubignum = BIG64;
3458
3459 struct incomplete_array
3460 {
3461 int datasize;
3462 double data[];
3463 };
3464
3465 struct named_init {
3466 int number;
3467 const wchar_t *name;
3468 double average;
3469 };
3470
3471 typedef const char *ccp;
3472
3473 static inline int
3474 test_restrict (ccp restrict text)
3475 {
3476 // See if C++-style comments work.
3477 // Iterate through items via the restricted pointer.
3478 // Also check for declarations in for loops.
3479 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3480 continue;
3481 return 0;
3482 }
3483
3484 // Check varargs and va_copy.
3485 static void
3486 test_varargs (const char *format, ...)
3487 {
3488 va_list args;
3489 va_start (args, format);
3490 va_list args_copy;
3491 va_copy (args_copy, args);
3492
3493 const char *str;
3494 int number;
3495 float fnumber;
3496
3497 while (*format)
3498 {
3499 switch (*format++)
3500 {
3501 case 's': // string
3502 str = va_arg (args_copy, const char *);
3503 break;
3504 case 'd': // int
3505 number = va_arg (args_copy, int);
3506 break;
3507 case 'f': // float
3508 fnumber = va_arg (args_copy, double);
3509 break;
3510 default:
3511 break;
3512 }
3513 }
3514 va_end (args_copy);
3515 va_end (args);
3516 }
3517
3518 int
3519 main ()
3520 {
3521
3522 // Check bool.
3523 _Bool success = false;
3524
3525 // Check restrict.
3526 if (test_restrict ("String literal") == 0)
3527 success = true;
3528 char *restrict newvar = "Another string";
3529
3530 // Check varargs.
3531 test_varargs ("s, d' f .", "string", 65, 34.234);
3532 test_varargs_macros ();
3533
3534 // Check flexible array members.
3535 struct incomplete_array *ia =
3536 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3537 ia->datasize = 10;
3538 for (int i = 0; i < ia->datasize; ++i)
3539 ia->data[i] = i * 1.234;
3540
3541 // Check named initializers.
3542 struct named_init ni = {
3543 .number = 34,
3544 .name = L"Test wide string",
3545 .average = 543.34343,
3546 };
3547
3548 ni.number = 58;
3549
3550 int dynamic_array[ni.number];
3551 dynamic_array[ni.number - 1] = 543;
3552
3553 // work around unused variable warnings
3554 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3555 || dynamic_array[ni.number - 1] != 543);
3556
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3562 do
3563 CC="$ac_save_CC $ac_arg"
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_prog_cc_c99=$ac_arg
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext
3568 test "x$ac_cv_prog_cc_c99" != "xno" && break
3569 done
3570 rm -f conftest.$ac_ext
3571 CC=$ac_save_CC
3572
3573 fi
3574 # AC_CACHE_VAL
3575 case "x$ac_cv_prog_cc_c99" in
3576 x)
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3578 $as_echo "none needed" >&6; } ;;
3579 xno)
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3581 $as_echo "unsupported" >&6; } ;;
3582 *)
3583 CC="$CC $ac_cv_prog_cc_c99"
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3585 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3586 esac
3587 if test "x$ac_cv_prog_cc_c99" != xno; then :
3588
3589 fi
3590
3591
3592 if test "$ac_cv_prog_cc_c99" = "no"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5
3594 $as_echo "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;}
3595 fi
3596
3597
3598
3599
3600
3601 if test "$GCC" = yes ; then
3602 #
3603 # -Werror forces warnings to be errors.
3604 #
3605 ac_lbl_cc_force_warning_errors=-Werror
3606
3607 #
3608 # Try to have the compiler default to hiding symbols,
3609 # so that only symbols explicitly exported with
3610 # PCAP_API will be visible outside (shared) libraries.
3611 #
3612
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3614 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3615 save_CFLAGS="$CFLAGS"
3616 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3617 then
3618 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3619 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3620 then
3621 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3622 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3623 then
3624 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3625 else
3626 CFLAGS="$CFLAGS -fvisibility=hidden"
3627 fi
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630
3631 int
3632 main ()
3633 {
3634 return 0
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642 $as_echo "yes" >&6; }
3643 can_add_to_cflags=yes
3644 #
3645 # The compile supports this; do we have some C code for
3646 # which the warning should *not* appear?
3647 # We test the fourth argument because the third argument
3648 # could contain quotes, breaking the test.
3649 #
3650 if test "x" != "x"
3651 then
3652 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3654 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660
3661 #
3662 # Not a problem.
3663 #
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666
3667 else
3668
3669 #
3670 # A problem.
3671 #
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 $as_echo "yes" >&6; }
3674 can_add_to_cflags=no
3675
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 fi
3679 CFLAGS="$save_CFLAGS"
3680 if test x"$can_add_to_cflags" = "xyes"
3681 then
3682 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3683 fi
3684
3685 else
3686
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689 CFLAGS="$save_CFLAGS"
3690
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693
3694 else
3695 V_INCLS="$V_INCLS -I/usr/local/include"
3696 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3697
3698 case "$host_os" in
3699
3700 darwin*)
3701 #
3702 # This is assumed either to be GCC or clang, both
3703 # of which use -Werror to force warnings to be errors.
3704 #
3705 ac_lbl_cc_force_warning_errors=-Werror
3706
3707 #
3708 # Try to have the compiler default to hiding symbols,
3709 # so that only symbols explicitly exported with
3710 # PCAP_API will be visible outside (shared) libraries.
3711 #
3712
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3714 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3715 save_CFLAGS="$CFLAGS"
3716 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3717 then
3718 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3719 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3720 then
3721 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3722 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3723 then
3724 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3725 else
3726 CFLAGS="$CFLAGS -fvisibility=hidden"
3727 fi
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3730
3731 int
3732 main ()
3733 {
3734 return 0
3735 ;
3736 return 0;
3737 }
3738 _ACEOF
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3742 $as_echo "yes" >&6; }
3743 can_add_to_cflags=yes
3744 #
3745 # The compile supports this; do we have some C code for
3746 # which the warning should *not* appear?
3747 # We test the fourth argument because the third argument
3748 # could contain quotes, breaking the test.
3749 #
3750 if test "x" != "x"
3751 then
3752 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3754 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760
3761 #
3762 # Not a problem.
3763 #
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766
3767 else
3768
3769 #
3770 # A problem.
3771 #
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773 $as_echo "yes" >&6; }
3774 can_add_to_cflags=no
3775
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 fi
3779 CFLAGS="$save_CFLAGS"
3780 if test x"$can_add_to_cflags" = "xyes"
3781 then
3782 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3783 fi
3784
3785 else
3786
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3789 CFLAGS="$save_CFLAGS"
3790
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793
3794 ;;
3795
3796 hpux*)
3797 #
3798 # HP C, which is what we presume we're using, doesn't
3799 # exit with a non-zero exit status if we hand it an
3800 # invalid -W flag, can't be forced to do so even with
3801 # +We, and doesn't handle GCC-style -W flags, so we
3802 # don't want to try using GCC-style -W flags.
3803 #
3804 ac_lbl_cc_dont_try_gcc_dashW=yes
3805 ;;
3806
3807 irix*)
3808 #
3809 # MIPS C, which is what we presume we're using, doesn't
3810 # necessarily exit with a non-zero exit status if we
3811 # hand it an invalid -W flag, can't be forced to do
3812 # so, and doesn't handle GCC-style -W flags, so we
3813 # don't want to try using GCC-style -W flags.
3814 #
3815 ac_lbl_cc_dont_try_gcc_dashW=yes
3816 #
3817 # It also, apparently, defaults to "char" being
3818 # unsigned, unlike most other C implementations;
3819 # I suppose we could say "signed char" whenever
3820 # we want to guarantee a signed "char", but let's
3821 # just force signed chars.
3822 #
3823 # -xansi is normally the default, but the
3824 # configure script was setting it; perhaps -cckr
3825 # was the default in the Old Days. (Then again,
3826 # that would probably be for backwards compatibility
3827 # in the days when ANSI C was Shiny and New, i.e.
3828 # 1989 and the early '90's, so maybe we can just
3829 # drop support for those compilers.)
3830 #
3831 # -g is equivalent to -g2, which turns off
3832 # optimization; we choose -g3, which generates
3833 # debugging information but doesn't turn off
3834 # optimization (even if the optimization would
3835 # cause inaccuracies in debugging).
3836 #
3837 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3838 ;;
3839
3840 osf*)
3841 #
3842 # Presumed to be DEC OSF/1, Digital UNIX, or
3843 # Tru64 UNIX.
3844 #
3845 # The DEC C compiler, which is what we presume we're
3846 # using, doesn't exit with a non-zero exit status if we
3847 # hand it an invalid -W flag, can't be forced to do
3848 # so, and doesn't handle GCC-style -W flags, so we
3849 # don't want to try using GCC-style -W flags.
3850 #
3851 ac_lbl_cc_dont_try_gcc_dashW=yes
3852 #
3853 # -g is equivalent to -g2, which turns off
3854 # optimization; we choose -g3, which generates
3855 # debugging information but doesn't turn off
3856 # optimization (even if the optimization would
3857 # cause inaccuracies in debugging).
3858 #
3859 V_CCOPT="$V_CCOPT -g3"
3860 ;;
3861
3862 solaris*)
3863 #
3864 # Assumed to be Sun C, which requires -errwarn to force
3865 # warnings to be treated as errors.
3866 #
3867 ac_lbl_cc_force_warning_errors=-errwarn
3868
3869 #
3870 # Try to have the compiler default to hiding symbols,
3871 # so that only symbols explicitly exported with
3872 # PCAP_API will be visible outside (shared) libraries.
3873 #
3874
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3876 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3877 save_CFLAGS="$CFLAGS"
3878 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3879 then
3880 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3881 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3882 then
3883 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3884 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3885 then
3886 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3887 else
3888 CFLAGS="$CFLAGS -xldscope=hidden"
3889 fi
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892
3893 int
3894 main ()
3895 {
3896 return 0
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905 can_add_to_cflags=yes
3906 #
3907 # The compile supports this; do we have some C code for
3908 # which the warning should *not* appear?
3909 # We test the fourth argument because the third argument
3910 # could contain quotes, breaking the test.
3911 #
3912 if test "x" != "x"
3913 then
3914 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
3916 $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919
3920 _ACEOF
3921 if ac_fn_c_try_compile "$LINENO"; then :
3922
3923 #
3924 # Not a problem.
3925 #
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928
3929 else
3930
3931 #
3932 # A problem.
3933 #
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935 $as_echo "yes" >&6; }
3936 can_add_to_cflags=no
3937
3938 fi
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 fi
3941 CFLAGS="$save_CFLAGS"
3942 if test x"$can_add_to_cflags" = "xyes"
3943 then
3944 V_CCOPT="$V_CCOPT -xldscope=hidden"
3945 fi
3946
3947 else
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 CFLAGS="$save_CFLAGS"
3952
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955
3956 ;;
3957
3958 ultrix*)
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3960 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3961 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #include <sys/types.h>
3967 int
3968 main ()
3969 {
3970 struct a { int b; };
3971 void c(const struct a *)
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_cv_lbl_cc_const_proto=yes
3978 else
3979 ac_cv_lbl_cc_const_proto=no
3980 fi
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 fi
3983
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3985 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3986 if test $ac_cv_lbl_cc_const_proto = no ; then
3987
3988 $as_echo "#define const /**/" >>confdefs.h
3989
3990 fi
3991 ;;
3992 esac
3993 V_CCOPT="$V_CCOPT -O"
3994 fi
3995
3996
3997 if test "$GCC" = yes ; then
3998 #
3999 # On platforms where we build a shared library:
4000 #
4001 # add options to generate position-independent code,
4002 # if necessary (it's the default in AIX and Darwin/macOS);
4003 #
4004 # define option to set the soname of the shared library,
4005 # if the OS supports that;
4006 #
4007 # add options to specify, at link time, a directory to
4008 # add to the run-time search path, if that's necessary.
4009 #
4010 V_SHLIB_CMD="\$(CC)"
4011 V_SHLIB_OPT="-shared"
4012 case "$host_os" in
4013
4014 aix*)
4015 ;;
4016
4017 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
4018 #
4019 # Platforms where the linker is the GNU linker
4020 # or accepts command-line arguments like
4021 # those the GNU linker accepts.
4022 #
4023 # Some instruction sets require -fPIC on some
4024 # operating systems. Check for them. If you
4025 # have a combination that requires it, add it
4026 # here.
4027 #
4028 PIC_OPT=-fpic
4029 case "$host_cpu" in
4030
4031 sparc64*)
4032 case "$host_os" in
4033
4034 freebsd*|openbsd*)
4035 PIC_OPT=-fPIC
4036 ;;
4037 esac
4038 ;;
4039 esac
4040 V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
4041 V_SONAME_OPT="-Wl,-soname,"
4042 V_RPATH_OPT="-Wl,-rpath,"
4043 ;;
4044
4045 hpux*)
4046 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4047 #
4048 # XXX - this assumes GCC is using the HP linker,
4049 # rather than the GNU linker, and that the "+h"
4050 # option is used on all HP-UX platforms, both .sl
4051 # and .so.
4052 #
4053 V_SONAME_OPT="-Wl,+h,"
4054 #
4055 # By default, directories specifed with -L
4056 # are added to the run-time search path, so
4057 # we don't add them in pcap-config.
4058 #
4059 ;;
4060
4061 solaris*)
4062 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4063 #
4064 # XXX - this assumes GCC is using the Sun linker,
4065 # rather than the GNU linker.
4066 #
4067 V_SONAME_OPT="-Wl,-h,"
4068 V_RPATH_OPT="-Wl,-R,"
4069 ;;
4070 esac
4071 else
4072 #
4073 # Set the appropriate compiler flags and, on platforms
4074 # where we build a shared library:
4075 #
4076 # add options to generate position-independent code,
4077 # if necessary (it's the default in Darwin/macOS);
4078 #
4079 # if we generate ".so" shared libraries, define the
4080 # appropriate options for building the shared library;
4081 #
4082 # add options to specify, at link time, a directory to
4083 # add to the run-time search path, if that's necessary.
4084 #
4085 # Note: spaces after V_SONAME_OPT are significant; on
4086 # some platforms the soname is passed with a GCC-like
4087 # "-Wl,-soname,{soname}" option, with the soname part
4088 # of the option, while on other platforms the C compiler
4089 # driver takes it as a regular option with the soname
4090 # following the option. The same applies to V_RPATH_OPT.
4091 #
4092 case "$host_os" in
4093
4094 aix*)
4095 V_SHLIB_CMD="\$(CC)"
4096 V_SHLIB_OPT="-G -bnoentry -bexpall"
4097 ;;
4098
4099 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
4100 #
4101 # "cc" is GCC.
4102 #
4103 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4104 V_SHLIB_CMD="\$(CC)"
4105 V_SHLIB_OPT="-shared"
4106 V_SONAME_OPT="-Wl,-soname,"
4107 V_RPATH_OPT="-Wl,-rpath,"
4108 ;;
4109
4110 hpux*)
4111 V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
4112 V_SHLIB_CMD="\$(LD)"
4113 V_SHLIB_OPT="-b"
4114 V_SONAME_OPT="+h "
4115 #
4116 # By default, directories specifed with -L
4117 # are added to the run-time search path, so
4118 # we don't add them in pcap-config.
4119 #
4120 ;;
4121
4122 osf*)
4123 #
4124 # Presumed to be DEC OSF/1, Digital UNIX, or
4125 # Tru64 UNIX.
4126 #
4127 V_SHLIB_CMD="\$(CC)"
4128 V_SHLIB_OPT="-shared"
4129 V_SONAME_OPT="-soname "
4130 V_RPATH_OPT="-rpath "
4131 ;;
4132
4133 solaris*)
4134 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
4135 V_SHLIB_CMD="\$(CC)"
4136 V_SHLIB_OPT="-G"
4137 V_SONAME_OPT="-h "
4138 V_RPATH_OPT="-R"
4139 ;;
4140 esac
4141 fi
4142
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4144 $as_echo_n "checking for inline... " >&6; }
4145 save_CFLAGS="$CFLAGS"
4146 CFLAGS="$V_CCOPT"
4147 if ${ac_cv_lbl_inline+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150
4151 ac_cv_lbl_inline=""
4152 ac_lbl_cc_inline=no
4153 for ac_lbl_inline in inline __inline__ __inline
4154 do
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #define inline $ac_lbl_inline
4158 static inline struct iltest *foo(void);
4159 struct iltest {
4160 int iltest1;
4161 int iltest2;
4162 };
4163
4164 static inline struct iltest *
4165 foo()
4166 {
4167 static struct iltest xxx;
4168
4169 return &xxx;
4170 }
4171 int
4172 main ()
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_lbl_cc_inline=yes
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 if test "$ac_lbl_cc_inline" = yes ; then
4184 break;
4185 fi
4186 done
4187 if test "$ac_lbl_cc_inline" = yes ; then
4188 ac_cv_lbl_inline=$ac_lbl_inline
4189 fi
4190 fi
4191
4192 CFLAGS="$save_CFLAGS"
4193 if test ! -z "$ac_cv_lbl_inline" ; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4195 $as_echo "$ac_cv_lbl_inline" >&6; }
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201 cat >>confdefs.h <<_ACEOF
4202 #define inline $ac_cv_lbl_inline
4203 _ACEOF
4204
4205
4206 #
4207 # Try to arrange for large file support.
4208 #
4209 # Check whether --enable-largefile was given.
4210 if test "${enable_largefile+set}" = set; then :
4211 enableval=$enable_largefile;
4212 fi
4213
4214 if test "$enable_largefile" != no; then
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4217 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4218 if ${ac_cv_sys_largefile_CC+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 ac_cv_sys_largefile_CC=no
4222 if test "$GCC" != yes; then
4223 ac_save_CC=$CC
4224 while :; do
4225 # IRIX 6.2 and later do not support large files by default,
4226 # so use the C compiler's -n32 option if that helps.
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229 #include <sys/types.h>
4230 /* Check that off_t can represent 2**63 - 1 correctly.
4231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4232 since some C++ compilers masquerading as C compilers
4233 incorrectly reject 9223372036854775807. */
4234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4236 && LARGE_OFF_T % 2147483647 == 1)
4237 ? 1 : -1];
4238 int
4239 main ()
4240 {
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247 break
4248 fi
4249 rm -f core conftest.err conftest.$ac_objext
4250 CC="$CC -n32"
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_sys_largefile_CC=' -n32'; break
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext
4255 break
4256 done
4257 CC=$ac_save_CC
4258 rm -f conftest.$ac_ext
4259 fi
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4262 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4263 if test "$ac_cv_sys_largefile_CC" != no; then
4264 CC=$CC$ac_cv_sys_largefile_CC
4265 fi
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4268 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4269 if ${ac_cv_sys_file_offset_bits+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 while :; do
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #include <sys/types.h>
4276 /* Check that off_t can represent 2**63 - 1 correctly.
4277 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4278 since some C++ compilers masquerading as C compilers
4279 incorrectly reject 9223372036854775807. */
4280 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4282 && LARGE_OFF_T % 2147483647 == 1)
4283 ? 1 : -1];
4284 int
4285 main ()
4286 {
4287
4288 ;
4289 return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_sys_file_offset_bits=no; break
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 #define _FILE_OFFSET_BITS 64
4299 #include <sys/types.h>
4300 /* Check that off_t can represent 2**63 - 1 correctly.
4301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4302 since some C++ compilers masquerading as C compilers
4303 incorrectly reject 9223372036854775807. */
4304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4306 && LARGE_OFF_T % 2147483647 == 1)
4307 ? 1 : -1];
4308 int
4309 main ()
4310 {
4311
4312 ;
4313 return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_c_try_compile "$LINENO"; then :
4317 ac_cv_sys_file_offset_bits=64; break
4318 fi
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 ac_cv_sys_file_offset_bits=unknown
4321 break
4322 done
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4325 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4326 case $ac_cv_sys_file_offset_bits in #(
4327 no | unknown) ;;
4328 *)
4329 cat >>confdefs.h <<_ACEOF
4330 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4331 _ACEOF
4332 ;;
4333 esac
4334 rm -rf conftest*
4335 if test $ac_cv_sys_file_offset_bits = unknown; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4337 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4338 if ${ac_cv_sys_large_files+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 while :; do
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <sys/types.h>
4345 /* Check that off_t can represent 2**63 - 1 correctly.
4346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4347 since some C++ compilers masquerading as C compilers
4348 incorrectly reject 9223372036854775807. */
4349 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4351 && LARGE_OFF_T % 2147483647 == 1)
4352 ? 1 : -1];
4353 int
4354 main ()
4355 {
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362 ac_cv_sys_large_files=no; break
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 #define _LARGE_FILES 1
4368 #include <sys/types.h>
4369 /* Check that off_t can represent 2**63 - 1 correctly.
4370 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4371 since some C++ compilers masquerading as C compilers
4372 incorrectly reject 9223372036854775807. */
4373 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4374 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4375 && LARGE_OFF_T % 2147483647 == 1)
4376 ? 1 : -1];
4377 int
4378 main ()
4379 {
4380
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 ac_cv_sys_large_files=1; break
4387 fi
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 ac_cv_sys_large_files=unknown
4390 break
4391 done
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4394 $as_echo "$ac_cv_sys_large_files" >&6; }
4395 case $ac_cv_sys_large_files in #(
4396 no | unknown) ;;
4397 *)
4398 cat >>confdefs.h <<_ACEOF
4399 #define _LARGE_FILES $ac_cv_sys_large_files
4400 _ACEOF
4401 ;;
4402 esac
4403 rm -rf conftest*
4404 fi
4405
4406
4407 fi
4408
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4410 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4411 if ${ac_cv_sys_largefile_source+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 while :; do
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <sys/types.h> /* for off_t */
4418 #include <stdio.h>
4419 int
4420 main ()
4421 {
4422 int (*fp) (FILE *, off_t, int) = fseeko;
4423 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4424 ;
4425 return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_c_try_link "$LINENO"; then :
4429 ac_cv_sys_largefile_source=no; break
4430 fi
4431 rm -f core conftest.err conftest.$ac_objext \
4432 conftest$ac_exeext conftest.$ac_ext
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 #define _LARGEFILE_SOURCE 1
4436 #include <sys/types.h> /* for off_t */
4437 #include <stdio.h>
4438 int
4439 main ()
4440 {
4441 int (*fp) (FILE *, off_t, int) = fseeko;
4442 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4443 ;
4444 return 0;
4445 }
4446 _ACEOF
4447 if ac_fn_c_try_link "$LINENO"; then :
4448 ac_cv_sys_largefile_source=1; break
4449 fi
4450 rm -f core conftest.err conftest.$ac_objext \
4451 conftest$ac_exeext conftest.$ac_ext
4452 ac_cv_sys_largefile_source=unknown
4453 break
4454 done
4455 fi
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4457 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4458 case $ac_cv_sys_largefile_source in #(
4459 no | unknown) ;;
4460 *)
4461 cat >>confdefs.h <<_ACEOF
4462 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4463 _ACEOF
4464 ;;
4465 esac
4466 rm -rf conftest*
4467
4468 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4469 # in glibc 2.1.3, but that breaks too many other things.
4470 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4471 if test $ac_cv_sys_largefile_source != unknown; then
4472
4473 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4474
4475 fi
4476
4477
4478 ac_ext=c
4479 ac_cpp='$CPP $CPPFLAGS'
4480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4484 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4485 # On Suns, sometimes $CPP names a directory.
4486 if test -n "$CPP" && test -d "$CPP"; then
4487 CPP=
4488 fi
4489 if test -z "$CPP"; then
4490 if ${ac_cv_prog_CPP+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 # Double quotes because CPP needs to be expanded
4494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4495 do
4496 ac_preproc_ok=false
4497 for ac_c_preproc_warn_flag in '' yes
4498 do
4499 # Use a header file that comes with gcc, so configuring glibc
4500 # with a fresh cross-compiler works.
4501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4502 # <limits.h> exists even on freestanding compilers.
4503 # On the NeXT, cc -E runs the code through the compiler's parser,
4504 # not just through cpp. "Syntax error" is here to catch this case.
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #ifdef __STDC__
4508 # include <limits.h>
4509 #else
4510 # include <assert.h>
4511 #endif
4512 Syntax error
4513 _ACEOF
4514 if ac_fn_c_try_cpp "$LINENO"; then :
4515
4516 else
4517 # Broken: fails on valid input.
4518 continue
4519 fi
4520 rm -f conftest.err conftest.i conftest.$ac_ext
4521
4522 # OK, works on sane cases. Now check whether nonexistent headers
4523 # can be detected and how.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #include <ac_nonexistent.h>
4527 _ACEOF
4528 if ac_fn_c_try_cpp "$LINENO"; then :
4529 # Broken: success on invalid input.
4530 continue
4531 else
4532 # Passes both tests.
4533 ac_preproc_ok=:
4534 break
4535 fi
4536 rm -f conftest.err conftest.i conftest.$ac_ext
4537
4538 done
4539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4540 rm -f conftest.i conftest.err conftest.$ac_ext
4541 if $ac_preproc_ok; then :
4542 break
4543 fi
4544
4545 done
4546 ac_cv_prog_CPP=$CPP
4547
4548 fi
4549 CPP=$ac_cv_prog_CPP
4550 else
4551 ac_cv_prog_CPP=$CPP
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4554 $as_echo "$CPP" >&6; }
4555 ac_preproc_ok=false
4556 for ac_c_preproc_warn_flag in '' yes
4557 do
4558 # Use a header file that comes with gcc, so configuring glibc
4559 # with a fresh cross-compiler works.
4560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4561 # <limits.h> exists even on freestanding compilers.
4562 # On the NeXT, cc -E runs the code through the compiler's parser,
4563 # not just through cpp. "Syntax error" is here to catch this case.
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #ifdef __STDC__
4567 # include <limits.h>
4568 #else
4569 # include <assert.h>
4570 #endif
4571 Syntax error
4572 _ACEOF
4573 if ac_fn_c_try_cpp "$LINENO"; then :
4574
4575 else
4576 # Broken: fails on valid input.
4577 continue
4578 fi
4579 rm -f conftest.err conftest.i conftest.$ac_ext
4580
4581 # OK, works on sane cases. Now check whether nonexistent headers
4582 # can be detected and how.
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <ac_nonexistent.h>
4586 _ACEOF
4587 if ac_fn_c_try_cpp "$LINENO"; then :
4588 # Broken: success on invalid input.
4589 continue
4590 else
4591 # Passes both tests.
4592 ac_preproc_ok=:
4593 break
4594 fi
4595 rm -f conftest.err conftest.i conftest.$ac_ext
4596
4597 done
4598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599 rm -f conftest.i conftest.err conftest.$ac_ext
4600 if $ac_preproc_ok; then :
4601
4602 else
4603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4605 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4606 See \`config.log' for more details" "$LINENO" 5; }
4607 fi
4608
4609 ac_ext=c
4610 ac_cpp='$CPP $CPPFLAGS'
4611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4617 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4618 if ${ac_cv_path_GREP+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -z "$GREP"; then
4622 ac_path_GREP_found=false
4623 # Loop through the user's path and test for each of PROGNAME-LIST
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4626 do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_prog in grep ggrep; do
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4632 as_fn_executable_p "$ac_path_GREP" || continue
4633 # Check for GNU ac_path_GREP and select it if it is found.
4634 # Check for GNU $ac_path_GREP
4635 case `"$ac_path_GREP" --version 2>&1` in
4636 *GNU*)
4637 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4638 *)
4639 ac_count=0
4640 $as_echo_n 0123456789 >"conftest.in"
4641 while :
4642 do
4643 cat "conftest.in" "conftest.in" >"conftest.tmp"
4644 mv "conftest.tmp" "conftest.in"
4645 cp "conftest.in" "conftest.nl"
4646 $as_echo 'GREP' >> "conftest.nl"
4647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4649 as_fn_arith $ac_count + 1 && ac_count=$as_val
4650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4651 # Best one so far, save it but keep looking for a better one
4652 ac_cv_path_GREP="$ac_path_GREP"
4653 ac_path_GREP_max=$ac_count
4654 fi
4655 # 10*(2^10) chars as input seems more than enough
4656 test $ac_count -gt 10 && break
4657 done
4658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4659 esac
4660
4661 $ac_path_GREP_found && break 3
4662 done
4663 done
4664 done
4665 IFS=$as_save_IFS
4666 if test -z "$ac_cv_path_GREP"; then
4667 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4668 fi
4669 else
4670 ac_cv_path_GREP=$GREP
4671 fi
4672
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4675 $as_echo "$ac_cv_path_GREP" >&6; }
4676 GREP="$ac_cv_path_GREP"
4677
4678
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4680 $as_echo_n "checking for egrep... " >&6; }
4681 if ${ac_cv_path_EGREP+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4685 then ac_cv_path_EGREP="$GREP -E"
4686 else
4687 if test -z "$EGREP"; then
4688 ac_path_EGREP_found=false
4689 # Loop through the user's path and test for each of PROGNAME-LIST
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4692 do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_prog in egrep; do
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4698 as_fn_executable_p "$ac_path_EGREP" || continue
4699 # Check for GNU ac_path_EGREP and select it if it is found.
4700 # Check for GNU $ac_path_EGREP
4701 case `"$ac_path_EGREP" --version 2>&1` in
4702 *GNU*)
4703 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4704 *)
4705 ac_count=0
4706 $as_echo_n 0123456789 >"conftest.in"
4707 while :
4708 do
4709 cat "conftest.in" "conftest.in" >"conftest.tmp"
4710 mv "conftest.tmp" "conftest.in"
4711 cp "conftest.in" "conftest.nl"
4712 $as_echo 'EGREP' >> "conftest.nl"
4713 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4715 as_fn_arith $ac_count + 1 && ac_count=$as_val
4716 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4717 # Best one so far, save it but keep looking for a better one
4718 ac_cv_path_EGREP="$ac_path_EGREP"
4719 ac_path_EGREP_max=$ac_count
4720 fi
4721 # 10*(2^10) chars as input seems more than enough
4722 test $ac_count -gt 10 && break
4723 done
4724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4725 esac
4726
4727 $ac_path_EGREP_found && break 3
4728 done
4729 done
4730 done
4731 IFS=$as_save_IFS
4732 if test -z "$ac_cv_path_EGREP"; then
4733 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4734 fi
4735 else
4736 ac_cv_path_EGREP=$EGREP
4737 fi
4738
4739 fi
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4742 $as_echo "$ac_cv_path_EGREP" >&6; }
4743 EGREP="$ac_cv_path_EGREP"
4744
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4747 $as_echo_n "checking for ANSI C header files... " >&6; }
4748 if ${ac_cv_header_stdc+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #include <stdlib.h>
4754 #include <stdarg.h>
4755 #include <string.h>
4756 #include <float.h>
4757
4758 int
4759 main ()
4760 {
4761
4762 ;
4763 return 0;
4764 }
4765 _ACEOF
4766 if ac_fn_c_try_compile "$LINENO"; then :
4767 ac_cv_header_stdc=yes
4768 else
4769 ac_cv_header_stdc=no
4770 fi
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772
4773 if test $ac_cv_header_stdc = yes; then
4774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777 #include <string.h>
4778
4779 _ACEOF
4780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781 $EGREP "memchr" >/dev/null 2>&1; then :
4782
4783 else
4784 ac_cv_header_stdc=no
4785 fi
4786 rm -f conftest*
4787
4788 fi
4789
4790 if test $ac_cv_header_stdc = yes; then
4791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #include <stdlib.h>
4795
4796 _ACEOF
4797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4798 $EGREP "free" >/dev/null 2>&1; then :
4799
4800 else
4801 ac_cv_header_stdc=no
4802 fi
4803 rm -f conftest*
4804
4805 fi
4806
4807 if test $ac_cv_header_stdc = yes; then
4808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4809 if test "$cross_compiling" = yes; then :
4810 :
4811 else
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #include <ctype.h>
4815 #include <stdlib.h>
4816 #if ((' ' & 0x0FF) == 0x020)
4817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4819 #else
4820 # define ISLOWER(c) \
4821 (('a' <= (c) && (c) <= 'i') \
4822 || ('j' <= (c) && (c) <= 'r') \
4823 || ('s' <= (c) && (c) <= 'z'))
4824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4825 #endif
4826
4827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4828 int
4829 main ()
4830 {
4831 int i;
4832 for (i = 0; i < 256; i++)
4833 if (XOR (islower (i), ISLOWER (i))
4834 || toupper (i) != TOUPPER (i))
4835 return 2;
4836 return 0;
4837 }
4838 _ACEOF
4839 if ac_fn_c_try_run "$LINENO"; then :
4840
4841 else
4842 ac_cv_header_stdc=no
4843 fi
4844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4845 conftest.$ac_objext conftest.beam conftest.$ac_ext
4846 fi
4847
4848 fi
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4851 $as_echo "$ac_cv_header_stdc" >&6; }
4852 if test $ac_cv_header_stdc = yes; then
4853
4854 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4855
4856 fi
4857
4858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4860 inttypes.h stdint.h unistd.h
4861 do :
4862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4863 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4864 "
4865 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4866 cat >>confdefs.h <<_ACEOF
4867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4868 _ACEOF
4869
4870 fi
4871
4872 done
4873
4874
4875 for ac_header in sys/ioccom.h sys/sockio.h
4876 do :
4877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4878 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4880 cat >>confdefs.h <<_ACEOF
4881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4882 _ACEOF
4883
4884 fi
4885
4886 done
4887
4888 for ac_header in netpacket/packet.h
4889 do :
4890 ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4891 if test "x$ac_cv_header_netpacket_packet_h" = xyes; then :
4892 cat >>confdefs.h <<_ACEOF
4893 #define HAVE_NETPACKET_PACKET_H 1
4894 _ACEOF
4895
4896 fi
4897
4898 done
4899
4900 for ac_header in net/pfvar.h
4901 do :
4902 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4903 #include <sys/socket.h>
4904 #include <net/if.h>
4905 "
4906 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
4907 cat >>confdefs.h <<_ACEOF
4908 #define HAVE_NET_PFVAR_H 1
4909 _ACEOF
4910
4911 fi
4912
4913 done
4914
4915 if test "$ac_cv_header_net_pfvar_h" = yes; then
4916 #
4917 # Check for various PF actions.
4918 #
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4920 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #include <sys/types.h>
4924 #include <sys/socket.h>
4925 #include <net/if.h>
4926 #include <net/pfvar.h>
4927 int
4928 main ()
4929 {
4930 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4931 ;
4932 return 0;
4933 }
4934 _ACEOF
4935 if ac_fn_c_try_compile "$LINENO"; then :
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938 $as_echo "yes" >&6; }
4939
4940 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4941
4942
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 fi
4949
4950 case "$host_os" in
4951 linux*|uclinux*)
4952 #
4953 # linux/if_bonding.h requires sys/socket.h.
4954 #
4955 for ac_header in linux/sockios.h linux/if_bonding.h
4956 do :
4957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4958 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4959 #include <sys/socket.h>
4960 #include <linux/if.h>
4961
4962 "
4963 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4964 cat >>confdefs.h <<_ACEOF
4965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4966 _ACEOF
4967
4968 fi
4969
4970 done
4971
4972
4973 #
4974 # Check for the eventfd header.
4975 #
4976 for ac_header in sys/eventfd.h
4977 do :
4978 ac_fn_c_check_header_mongrel "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
4979 if test "x$ac_cv_header_sys_eventfd_h" = xyes; then :
4980 cat >>confdefs.h <<_ACEOF
4981 #define HAVE_SYS_EVENTFD_H 1
4982 _ACEOF
4983
4984 fi
4985
4986 done
4987
4988 ;;
4989 esac
4990
4991 if test "$GCC" = yes ; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4993 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4994 if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 /*
5000 * This generates a "duplicate case value" when fixincludes
5001 * has not be run.
5002 */
5003 # include <sys/types.h>
5004 # include <sys/time.h>
5005 # include <sys/ioctl.h>
5006 # ifdef HAVE_SYS_IOCCOM_H
5007 # include <sys/ioccom.h>
5008 # endif
5009 int
5010 main ()
5011 {
5012 switch (0) {
5013 case _IO('A', 1):;
5014 case _IO('B', 1):;
5015 }
5016 ;
5017 return 0;
5018 }
5019 _ACEOF
5020 if ac_fn_c_try_compile "$LINENO"; then :
5021 ac_cv_lbl_gcc_fixincludes=yes
5022 else
5023 ac_cv_lbl_gcc_fixincludes=no
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 fi
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
5029 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
5030 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5031 # Don't cache failure
5032 unset ac_cv_lbl_gcc_fixincludes
5033 as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
5034 fi
5035 fi
5036
5037 for ac_func in strerror strerror_r strerror_s
5038 do :
5039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5040 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5041 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5042 cat >>confdefs.h <<_ACEOF
5043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5044 _ACEOF
5045
5046 fi
5047 done
5048
5049
5050 needsnprintf=no
5051 for ac_func in vsnprintf snprintf
5052 do :
5053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5054 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5055 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5056 cat >>confdefs.h <<_ACEOF
5057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5058 _ACEOF
5059
5060 else
5061 needsnprintf=yes
5062 fi
5063 done
5064
5065 if test $needsnprintf = yes; then
5066 case " $LIBOBJS " in
5067 *" snprintf.$ac_objext "* ) ;;
5068 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5069 ;;
5070 esac
5071
5072 fi
5073
5074 needstrlcat=no
5075 for ac_func in strlcat
5076 do :
5077 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
5078 if test "x$ac_cv_func_strlcat" = xyes; then :
5079 cat >>confdefs.h <<_ACEOF
5080 #define HAVE_STRLCAT 1
5081 _ACEOF
5082
5083 else
5084 needstrlcat=yes
5085 fi
5086 done
5087
5088 if test $needstrlcat = yes; then
5089 case " $LIBOBJS " in
5090 *" strlcat.$ac_objext "* ) ;;
5091 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
5092 ;;
5093 esac
5094
5095 fi
5096
5097 needstrlcpy=no
5098 for ac_func in strlcpy
5099 do :
5100 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5101 if test "x$ac_cv_func_strlcpy" = xyes; then :
5102 cat >>confdefs.h <<_ACEOF
5103 #define HAVE_STRLCPY 1
5104 _ACEOF
5105
5106 else
5107 needstrlcpy=yes
5108 fi
5109 done
5110
5111 if test $needstrlcpy = yes; then
5112 case " $LIBOBJS " in
5113 *" strlcpy.$ac_objext "* ) ;;
5114 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
5115 ;;
5116 esac
5117
5118 fi
5119
5120 needstrtok_r=no
5121 for ac_func in strtok_r
5122 do :
5123 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5124 if test "x$ac_cv_func_strtok_r" = xyes; then :
5125 cat >>confdefs.h <<_ACEOF
5126 #define HAVE_STRTOK_R 1
5127 _ACEOF
5128
5129 else
5130 needstrtok_r=yes
5131 fi
5132 done
5133
5134 if test $needstrtok_r = yes; then
5135 case " $LIBOBJS " in
5136 *" strtok_r.$ac_objext "* ) ;;
5137 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
5138 ;;
5139 esac
5140
5141 fi
5142
5143 #
5144 # Do we have ffs(), and is it declared in <strings.h>?
5145 #
5146 for ac_func in ffs
5147 do :
5148 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
5149 if test "x$ac_cv_func_ffs" = xyes; then :
5150 cat >>confdefs.h <<_ACEOF
5151 #define HAVE_FFS 1
5152 _ACEOF
5153
5154 fi
5155 done
5156
5157 if test "$ac_cv_func_ffs" = yes; then
5158 #
5159 # We have ffs(); is it declared in <strings.h>?
5160 #
5161 # This test fails if we don't have <strings.h> or if we do
5162 # but it doesn't declare ffs().
5163 #
5164 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "
5165 #include <strings.h>
5166
5167 "
5168 if test "x$ac_cv_have_decl_ffs" = xyes; then :
5169
5170
5171 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
5172
5173
5174 fi
5175
5176 fi
5177
5178 #
5179 # Do this before checking for ether_hostton(), as it's a
5180 # "getaddrinfo()-ish function".
5181 #
5182
5183 #
5184 # Most operating systems have getaddrinfo() in the default searched
5185 # libraries (i.e. libc). Check there first.
5186 #
5187 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5188 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5189
5190 else
5191
5192 #
5193 # Not found in the standard system libraries.
5194 # Try libsocket, which requires libnsl.
5195 #
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
5197 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
5198 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 ac_check_lib_save_LIBS=$LIBS
5202 LIBS="-lsocket -lnsl $LIBS"
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205
5206 /* Override any GCC internal prototype to avoid an error.
5207 Use char because int might match the return type of a GCC
5208 builtin and then its argument prototype would still apply. */
5209 #ifdef __cplusplus
5210 extern "C"
5211 #endif
5212 char getaddrinfo ();
5213 int
5214 main ()
5215 {
5216 return getaddrinfo ();
5217 ;
5218 return 0;
5219 }
5220 _ACEOF
5221 if ac_fn_c_try_link "$LINENO"; then :
5222 ac_cv_lib_socket_getaddrinfo=yes
5223 else
5224 ac_cv_lib_socket_getaddrinfo=no
5225 fi
5226 rm -f core conftest.err conftest.$ac_objext \
5227 conftest$ac_exeext conftest.$ac_ext
5228 LIBS=$ac_check_lib_save_LIBS
5229 fi
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5231 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5232 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
5233
5234 #
5235 # OK, we found it in libsocket.
5236 #
5237 LIBS="-lsocket -lnsl $LIBS"
5238
5239 else
5240
5241 #
5242 # We didn't find it.
5243 #
5244 as_fn_error $? "getaddrinfo is required, but wasn't found" "$LINENO" 5
5245
5246 fi
5247
5248
5249 #
5250 # OK, do we have recvmsg() in libxnet?
5251 # We also link with libsocket and libnsl.
5252 #
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5254 $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5255 if ${ac_cv_lib_xnet_recvmsg+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 ac_check_lib_save_LIBS=$LIBS
5259 LIBS="-lxnet -lsocket -lnsl $LIBS"
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262
5263 /* Override any GCC internal prototype to avoid an error.
5264 Use char because int might match the return type of a GCC
5265 builtin and then its argument prototype would still apply. */
5266 #ifdef __cplusplus
5267 extern "C"
5268 #endif
5269 char recvmsg ();
5270 int
5271 main ()
5272 {
5273 return recvmsg ();
5274 ;
5275 return 0;
5276 }
5277 _ACEOF
5278 if ac_fn_c_try_link "$LINENO"; then :
5279 ac_cv_lib_xnet_recvmsg=yes
5280 else
5281 ac_cv_lib_xnet_recvmsg=no
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext \
5284 conftest$ac_exeext conftest.$ac_ext
5285 LIBS=$ac_check_lib_save_LIBS
5286 fi
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5288 $as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5289 if test "x$ac_cv_lib_xnet_recvmsg" = xyes; then :
5290
5291 #
5292 # Yes - link with it as well.
5293 #
5294 LIBS="-lxnet $LIBS"
5295
5296 fi
5297
5298
5299 fi
5300
5301 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5303 $as_echo_n "checking for library containing putmsg... " >&6; }
5304 if ${ac_cv_search_putmsg+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 ac_func_search_save_LIBS=$LIBS
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310
5311 /* Override any GCC internal prototype to avoid an error.
5312 Use char because int might match the return type of a GCC
5313 builtin and then its argument prototype would still apply. */
5314 #ifdef __cplusplus
5315 extern "C"
5316 #endif
5317 char putmsg ();
5318 int
5319 main ()
5320 {
5321 return putmsg ();
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 for ac_lib in '' str; do
5327 if test -z "$ac_lib"; then
5328 ac_res="none required"
5329 else
5330 ac_res=-l$ac_lib
5331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5332 fi
5333 if ac_fn_c_try_link "$LINENO"; then :
5334 ac_cv_search_putmsg=$ac_res
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext
5338 if ${ac_cv_search_putmsg+:} false; then :
5339 break
5340 fi
5341 done
5342 if ${ac_cv_search_putmsg+:} false; then :
5343
5344 else
5345 ac_cv_search_putmsg=no
5346 fi
5347 rm conftest.$ac_ext
5348 LIBS=$ac_func_search_save_LIBS
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5351 $as_echo "$ac_cv_search_putmsg" >&6; }
5352 ac_res=$ac_cv_search_putmsg
5353 if test "$ac_res" != no; then :
5354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5355
5356 fi
5357
5358
5359
5360 #
5361 # Check for reentrant versions of getnetbyname_r(), as provided by
5362 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5363 # If we don't find one, we just use getnetbyname(), which uses
5364 # thread-specific data on many platforms, but doesn't use it on
5365 # NetBSD or OpenBSD, and may not use it on older versions of other
5366 # platforms.
5367 #
5368 # Only do the check if we have a declaration of getnetbyname_r();
5369 # without it, we can't check which API it has. (We assume that
5370 # if there's a declaration, it has a prototype, so that the API
5371 # can be checked.)
5372 #
5373 ac_fn_c_check_decl "$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5374 "
5375 if test "x$ac_cv_have_decl_getnetbyname_r" = xyes; then :
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5378 $as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <netdb.h>
5382 int
5383 main ()
5384 {
5385
5386 struct netent netent_buf;
5387 char buf[1024];
5388 struct netent *resultp;
5389 int h_errnoval;
5390
5391 return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5392
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 if ac_fn_c_try_link "$LINENO"; then :
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 $as_echo "yes" >&6; }
5401
5402 $as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5403
5404
5405 else
5406
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5411 $as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 #include <netdb.h>
5415 int
5416 main ()
5417 {
5418
5419 struct netent netent_buf;
5420 char buf[1024];
5421
5422 return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5423
5424 ;
5425 return 0;
5426 }
5427 _ACEOF
5428 if ac_fn_c_try_link "$LINENO"; then :
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5431 $as_echo "yes" >&6; }
5432
5433 $as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5434
5435
5436 else
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5442 $as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <netdb.h>
5446 int
5447 main ()
5448 {
5449
5450 struct netent netent_buf;
5451 struct netent_data net_data;
5452
5453 return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5454
5455 ;
5456 return 0;
5457 }
5458 _ACEOF
5459 if ac_fn_c_try_link "$LINENO"; then :
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462 $as_echo "yes" >&6; }
5463
5464 $as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5465
5466
5467 else
5468
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471
5472 fi
5473 rm -f core conftest.err conftest.$ac_objext \
5474 conftest$ac_exeext conftest.$ac_ext
5475
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext \
5478 conftest$ac_exeext conftest.$ac_ext
5479
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext \
5482 conftest$ac_exeext conftest.$ac_ext
5483
5484 fi
5485
5486
5487 #
5488 # Check for reentrant versions of getprotobyname_r(), as provided by
5489 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5490 # If we don't find one, we just use getprotobyname(), which uses
5491 # thread-specific data on many platforms, but doesn't use it on
5492 # NetBSD or OpenBSD, and may not use it on older versions of other
5493 # platforms.
5494 #
5495 # Only do the check if we have a declaration of getprotobyname_r();
5496 # without it, we can't check which API it has. (We assume that
5497 # if there's a declaration, it has a prototype, so that the API
5498 # can be checked.)
5499 #
5500 ac_fn_c_check_decl "$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
5501 "
5502 if test "x$ac_cv_have_decl_getprotobyname_r" = xyes; then :
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
5505 $as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 #include <netdb.h>
5509 int
5510 main ()
5511 {
5512
5513 struct protoent protoent_buf;
5514 char buf[1024];
5515 struct protoent *resultp;
5516
5517 return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
5518
5519 ;
5520 return 0;
5521 }
5522 _ACEOF
5523 if ac_fn_c_try_link "$LINENO"; then :
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5526 $as_echo "yes" >&6; }
5527
5528 $as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
5529
5530
5531 else
5532
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
5537 $as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <netdb.h>
5541 int
5542 main ()
5543 {
5544
5545 struct protoent protoent_buf;
5546 char buf[1024];
5547
5548 return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
5549
5550 ;
5551 return 0;
5552 }
5553 _ACEOF
5554 if ac_fn_c_try_link "$LINENO"; then :
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 $as_echo "yes" >&6; }
5558
5559 $as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
5560
5561
5562 else
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
5568 $as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #include <netdb.h>
5572 int
5573 main ()
5574 {
5575
5576 struct protoent protoent_buf;
5577 struct protoent_data proto_data;
5578
5579 return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
5580
5581 ;
5582 return 0;
5583 }
5584 _ACEOF
5585 if ac_fn_c_try_link "$LINENO"; then :
5586
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5588 $as_echo "yes" >&6; }
5589
5590 $as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
5591
5592
5593 else
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5597
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext \
5600 conftest$ac_exeext conftest.$ac_ext
5601
5602 fi
5603 rm -f core conftest.err conftest.$ac_objext \
5604 conftest$ac_exeext conftest.$ac_ext
5605
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext \
5608 conftest$ac_exeext conftest.$ac_ext
5609
5610 fi
5611
5612
5613 #
5614 # You are in a twisty little maze of UN*Xes, all different.
5615 # Some might not have ether_hostton().
5616 # Some might have it and declare it in <net/ethernet.h>.
5617 # Some might have it and declare it in <netinet/ether.h>
5618 # Some might have it and declare it in <sys/ethernet.h>.
5619 # Some might have it and declare it in <arpa/inet.h>.
5620 # Some might have it and declare it in <netinet/if_ether.h>.
5621 # Some might have it and not declare it in any header file.
5622 #
5623 # Before you is a C compiler.
5624 #
5625 for ac_func in ether_hostton
5626 do :
5627 ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5628 if test "x$ac_cv_func_ether_hostton" = xyes; then :
5629 cat >>confdefs.h <<_ACEOF
5630 #define HAVE_ETHER_HOSTTON 1
5631 _ACEOF
5632
5633 fi
5634 done
5635
5636 if test "$ac_cv_func_ether_hostton" = yes; then
5637 #
5638 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
5639 #
5640 # This test fails if we don't have <net/ethernet.h> or if we do
5641 # but it doesn't declare ether_hostton().
5642 #
5643 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5644 #include <net/ethernet.h>
5645
5646 "
5647 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5648
5649
5650 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5651
5652
5653 fi
5654
5655 #
5656 # Did that succeed?
5657 #
5658 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5659 #
5660 # No, how about <netinet/ether.h>, as on Linux?
5661 #
5662 # This test fails if we don't have <netinet/ether.h>
5663 # or if we do but it doesn't declare ether_hostton().
5664 #
5665 # Unset ac_cv_have_decl_ether_hostton so we don't
5666 # treat the previous failure as a cached value and
5667 # suppress the next test.
5668 #
5669 unset ac_cv_have_decl_ether_hostton
5670 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5671 #include <netinet/ether.h>
5672
5673 "
5674 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5675
5676
5677 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5678
5679
5680 fi
5681
5682 fi
5683 #
5684 # Did that succeed?
5685 #
5686 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5687 #
5688 # No, how about <sys/ethernet.h>, as on Solaris 10
5689 # and later?
5690 #
5691 # This test fails if we don't have <sys/ethernet.h>
5692 # or if we do but it doesn't declare ether_hostton().
5693 #
5694 # Unset ac_cv_have_decl_ether_hostton so we don't
5695 # treat the previous failure as a cached value and
5696 # suppress the next test.
5697 #
5698 unset ac_cv_have_decl_ether_hostton
5699 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5700 #include <sys/ethernet.h>
5701
5702 "
5703 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5704
5705
5706 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5707
5708
5709 fi
5710
5711 fi
5712 #
5713 # Did that succeed?
5714 #
5715 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5716 #
5717 # No, how about <arpa/inet.h>, as in AIX?
5718 #
5719 # This test fails if we don't have <arpa/inet.h>
5720 # (if we have ether_hostton(), we should have
5721 # networking, and if we have networking, we should
5722 # have <arapa/inet.h>) or if we do but it doesn't
5723 # declare ether_hostton().
5724 #
5725 # Unset ac_cv_have_decl_ether_hostton so we don't
5726 # treat the previous failure as a cached value and
5727 # suppress the next test.
5728 #
5729 unset ac_cv_have_decl_ether_hostton
5730 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5731 #include <arpa/inet.h>
5732
5733 "
5734 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5735
5736
5737 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5738
5739
5740 fi
5741
5742 fi
5743 #
5744 # Did that succeed?
5745 #
5746 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5747 #
5748 # No, how about <netinet/if_ether.h>?
5749 # On some platforms, it requires <net/if.h> and
5750 # <netinet/in.h>, and we always include it with
5751 # both of them, so test it with both of them.
5752 #
5753 # This test fails if we don't have <netinet/if_ether.h>
5754 # and the headers we include before it, or if we do but
5755 # <netinet/if_ether.h> doesn't declare ether_hostton().
5756 #
5757 # Unset ac_cv_have_decl_ether_hostton so we don't
5758 # treat the previous failure as a cached value and
5759 # suppress the next test.
5760 #
5761 unset ac_cv_have_decl_ether_hostton
5762 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5763 #include <sys/types.h>
5764 #include <sys/socket.h>
5765 #include <net/if.h>
5766 #include <netinet/in.h>
5767 #include <netinet/if_ether.h>
5768
5769 "
5770 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5771
5772
5773 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5774
5775
5776 fi
5777
5778 fi
5779 #
5780 # After all that, is ether_hostton() declared?
5781 #
5782 if test "$ac_cv_have_decl_ether_hostton" = yes; then
5783 #
5784 # Yes.
5785 #
5786
5787 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5788
5789 else
5790 #
5791 # No, we'll have to declare it ourselves.
5792 # Do we have "struct ether_addr" if we include
5793 # <netinet/if_ether.h>?
5794 #
5795 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5796 #include <sys/types.h>
5797 #include <sys/socket.h>
5798 #include <net/if.h>
5799 #include <netinet/in.h>
5800 #include <netinet/if_ether.h>
5801
5802 "
5803 if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
5804
5805 cat >>confdefs.h <<_ACEOF
5806 #define HAVE_STRUCT_ETHER_ADDR 1
5807 _ACEOF
5808
5809
5810 fi
5811
5812 fi
5813 fi
5814
5815 #
5816 # For various things that might use pthreads.
5817 #
5818 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5819 if test "x$ac_cv_header_pthread_h" = xyes; then :
5820
5821 #
5822 # OK, we have pthread.h. Do we have pthread_create in the
5823 # system libraries?
5824 #
5825 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5826 if test "x$ac_cv_func_pthread_create" = xyes; then :
5827
5828 #
5829 # Yes.
5830 #
5831 ac_lbl_have_pthreads="found"
5832
5833 else
5834
5835 #
5836 # No - do we have it in -lpthreads?
5837 #
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5839 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5840 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 ac_check_lib_save_LIBS=$LIBS
5844 LIBS="-lpthreads $LIBS"
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847
5848 /* Override any GCC internal prototype to avoid an error.
5849 Use char because int might match the return type of a GCC
5850 builtin and then its argument prototype would still apply. */
5851 #ifdef __cplusplus
5852 extern "C"
5853 #endif
5854 char pthread_create ();
5855 int
5856 main ()
5857 {
5858 return pthread_create ();
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 if ac_fn_c_try_link "$LINENO"; then :
5864 ac_cv_lib_pthreads_pthread_create=yes
5865 else
5866 ac_cv_lib_pthreads_pthread_create=no
5867 fi
5868 rm -f core conftest.err conftest.$ac_objext \
5869 conftest$ac_exeext conftest.$ac_ext
5870 LIBS=$ac_check_lib_save_LIBS
5871 fi
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5873 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5874 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
5875
5876 #
5877 # Yes - add -lpthreads.
5878 #
5879 ac_lbl_have_pthreads="found"
5880 PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
5881
5882 else
5883
5884 #
5885 # No - do we have it in -lpthread?
5886 #
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5888 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5889 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 ac_check_lib_save_LIBS=$LIBS
5893 LIBS="-lpthread $LIBS"
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5900 #ifdef __cplusplus
5901 extern "C"
5902 #endif
5903 char pthread_create ();
5904 int
5905 main ()
5906 {
5907 return pthread_create ();
5908 ;
5909 return 0;
5910 }
5911 _ACEOF
5912 if ac_fn_c_try_link "$LINENO"; then :
5913 ac_cv_lib_pthread_pthread_create=yes
5914 else
5915 ac_cv_lib_pthread_pthread_create=no
5916 fi
5917 rm -f core conftest.err conftest.$ac_objext \
5918 conftest$ac_exeext conftest.$ac_ext
5919 LIBS=$ac_check_lib_save_LIBS
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5922 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5923 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5924
5925 #
5926 # Yes - add -lpthread.
5927 #
5928 ac_lbl_have_pthreads="found"
5929 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
5930
5931 else
5932
5933 #
5934 # No.
5935 #
5936 ac_lbl_have_pthreads="not found"
5937
5938 fi
5939
5940
5941 fi
5942
5943
5944 fi
5945
5946
5947 else
5948
5949 #
5950 # We didn't find pthread.h.
5951 #
5952 ac_lbl_have_pthreads="not found"
5953
5954
5955 fi
5956
5957
5958
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5960 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5961 # Check whether --enable-protochain was given.
5962 if test "${enable_protochain+set}" = set; then :
5963 enableval=$enable_protochain;
5964 fi
5965
5966 case "x$enable_protochain" in
5967 xyes) enable_protochain=enabled ;;
5968 xno) enable_protochain=disabled ;;
5969 x) enable_protochain=enabled ;;
5970 esac
5971
5972 if test "$enable_protochain" = "disabled"; then
5973
5974 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5975
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5978 $as_echo "${enable_protochain}" >&6; }
5979
5980 #
5981 # valgrindtest directly uses the native capture mechanism, but
5982 # only tests with BPF and PF_PACKET sockets; only enable it if
5983 # we have BPF or PF_PACKET sockets.
5984 #
5985 VALGRINDTEST_SRC=
5986
5987
5988 # Check whether --with-pcap was given.
5989 if test "${with_pcap+set}" = set; then :
5990 withval=$with_pcap;
5991 fi
5992
5993 if test ! -z "$with_pcap" ; then
5994 V_PCAP="$withval"
5995 else
5996 #
5997 # Check for a bunch of headers for various packet
5998 # capture mechanisms.
5999 #
6000 for ac_header in net/bpf.h
6001 do :
6002 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6003 if test "x$ac_cv_header_net_bpf_h" = xyes; then :
6004 cat >>confdefs.h <<_ACEOF
6005 #define HAVE_NET_BPF_H 1
6006 _ACEOF
6007
6008 fi
6009
6010 done
6011
6012 if test "$ac_cv_header_net_bpf_h" = yes; then
6013 #
6014 # Does it define BIOCSETIF?
6015 # I.e., is it a header for an LBL/BSD-style capture
6016 # mechanism, or is it just a header for a BPF filter
6017 # engine? Some versions of Arch Linux, for example,
6018 # have a net/bpf.h that doesn't define BIOCSETIF;
6019 # as it's a Linux, it should use packet sockets,
6020 # instead.
6021 #
6022 # We need:
6023 #
6024 # sys/types.h, because FreeBSD 10's net/bpf.h
6025 # requires that various BSD-style integer types
6026 # be defined;
6027 #
6028 # sys/time.h, because AIX 5.2 and 5.3's net/bpf.h
6029 # doesn't include it but does use struct timeval
6030 # in ioctl definitions;
6031 #
6032 # sys/ioctl.h and, if we have it, sys/ioccom.h,
6033 # because net/bpf.h defines ioctls;
6034 #
6035 # net/if.h, because it defines some structures
6036 # used in ioctls defined by net/bpf.h;
6037 #
6038 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
6039 # defines some structure fields as being
6040 # struct sockaddrs;
6041 #
6042 # and net/bpf.h doesn't necessarily include all
6043 # of those headers itself.
6044 #
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
6046 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
6047 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052
6053 #include <sys/types.h>
6054 #include <sys/time.h>
6055 #include <sys/ioctl.h>
6056 #include <sys/socket.h>
6057 #ifdef HAVE_SYS_IOCCOM_H
6058 #include <sys/ioccom.h>
6059 #endif
6060 #include <net/bpf.h>
6061 #include <net/if.h>
6062
6063 int
6064 main ()
6065 {
6066 u_int i = BIOCSETIF;
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"; then :
6072 ac_cv_lbl_bpf_h_defines_biocsetif=yes
6073 else
6074 ac_cv_lbl_bpf_h_defines_biocsetif=no
6075 fi
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 fi
6078
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
6080 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
6081 fi
6082 for ac_header in net/pfilt.h net/enet.h
6083 do :
6084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6086 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6087 cat >>confdefs.h <<_ACEOF
6088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089 _ACEOF
6090
6091 fi
6092
6093 done
6094
6095 for ac_header in net/nit.h sys/net/nit.h
6096 do :
6097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6100 cat >>confdefs.h <<_ACEOF
6101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6102 _ACEOF
6103
6104 fi
6105
6106 done
6107
6108 for ac_header in linux/socket.h net/raw.h sys/dlpi.h
6109 do :
6110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6111 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6113 cat >>confdefs.h <<_ACEOF
6114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6115 _ACEOF
6116
6117 fi
6118
6119 done
6120
6121
6122 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
6123 #
6124 # BPF.
6125 # Check this before DLPI, so that we pick BPF on
6126 # Solaris 11 and later.
6127 #
6128 V_PCAP=bpf
6129
6130 #
6131 # We have BPF, so build valgrindtest with "make test"
6132 # on macOS and FreeBSD (add your OS once there's a
6133 # valgrind for it).
6134 #
6135 case "$host_os" in
6136
6137 freebsd*|darwin*|linux*)
6138 VALGRINDTEST_SRC=valgrindtest.c
6139 ;;
6140 esac
6141 elif test "$ac_cv_header_linux_socket_h" = yes; then
6142 #
6143 # No prizes for guessing this one.
6144 #
6145 V_PCAP=linux
6146
6147 #
6148 # XXX - this won't work with older kernels that have
6149 # SOCK_PACKET sockets but not PF_PACKET sockets.
6150 #
6151 VALGRINDTEST_SRC=valgrindtest.c
6152 elif test "$ac_cv_header_net_pfilt_h" = yes; then
6153 #
6154 # DEC OSF/1, Digital UNIX, Tru64 UNIX
6155 #
6156 V_PCAP=pf
6157 elif test "$ac_cv_header_net_enet_h" = yes; then
6158 #
6159 # Stanford Enetfilter.
6160 #
6161 V_PCAP=enet
6162 elif test "$ac_cv_header_net_nit_h" = yes; then
6163 #
6164 # SunOS 4.x STREAMS NIT.
6165 #
6166 V_PCAP=snit
6167 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
6168 #
6169 # Pre-SunOS 4.x non-STREAMS NIT.
6170 #
6171 V_PCAP=nit
6172 elif test "$ac_cv_header_net_raw_h" = yes; then
6173 #
6174 # IRIX snoop.
6175 #
6176 V_PCAP=snoop
6177 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
6178 #
6179 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
6180 #
6181 V_PCAP=dlpi
6182 else
6183 #
6184 # Nothing we support.
6185 #
6186 V_PCAP=null
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6188 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6190 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6191 fi
6192 fi
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6194 $as_echo_n "checking packet capture type... " >&6; }
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6196 $as_echo "$V_PCAP" >&6; }
6197
6198
6199 #
6200 # Do capture-mechanism-dependent tests.
6201 #
6202 case "$V_PCAP" in
6203 dlpi)
6204 #
6205 # Needed for common functions used by pcap-[dlpi,libdlpi].c
6206 #
6207 SSRC="dlpisubs.c"
6208
6209 #
6210 # Checks for some header files.
6211 #
6212 for ac_header in sys/bufmod.h sys/dlpi_ext.h
6213 do :
6214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6217 cat >>confdefs.h <<_ACEOF
6218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6219 _ACEOF
6220
6221 fi
6222
6223 done
6224
6225
6226 #
6227 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6228 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6229 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6230 # private version also existed, which did not have the same APIs.
6231 # Due to a gcc bug, the default search path for 32-bit libraries does
6232 # not include /lib, we add it explicitly here.
6233 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6234 # Also, due to the bug above applications that link to libpcap with
6235 # libdlpi will have to add "-L/lib" option to "configure".
6236 #
6237 saved_ldflags=$LDFLAGS
6238 LDFLAGS="$LIBS -L/lib"
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6240 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6241 if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 ac_check_lib_save_LIBS=$LIBS
6245 LIBS="-ldlpi $LIBS"
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248
6249 /* Override any GCC internal prototype to avoid an error.
6250 Use char because int might match the return type of a GCC
6251 builtin and then its argument prototype would still apply. */
6252 #ifdef __cplusplus
6253 extern "C"
6254 #endif
6255 char dlpi_walk ();
6256 int
6257 main ()
6258 {
6259 return dlpi_walk ();
6260 ;
6261 return 0;
6262 }
6263 _ACEOF
6264 if ac_fn_c_try_link "$LINENO"; then :
6265 ac_cv_lib_dlpi_dlpi_walk=yes
6266 else
6267 ac_cv_lib_dlpi_dlpi_walk=no
6268 fi
6269 rm -f core conftest.err conftest.$ac_objext \
6270 conftest$ac_exeext conftest.$ac_ext
6271 LIBS=$ac_check_lib_save_LIBS
6272 fi
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6274 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6275 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
6276
6277 LIBS="-ldlpi $LIBS"
6278 V_PCAP=libdlpi
6279
6280 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6281
6282
6283 else
6284 V_PCAP=dlpi
6285 fi
6286
6287 LDFLAGS=$saved_ldflags
6288
6289 #
6290 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6291 # versions of DLPI.
6292 #
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6294 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6295 if ${ac_cv_sys_dlpi_usable+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300
6301 #include <sys/types.h>
6302 #include <sys/time.h>
6303 #include <sys/dlpi.h>
6304
6305 int
6306 main ()
6307 {
6308 int i = DL_PROMISC_PHYS;
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314 ac_cv_sys_dlpi_usable=yes
6315 else
6316 ac_cv_sys_dlpi_usable=no
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 fi
6320
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6322 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6323 if test $ac_cv_sys_dlpi_usable = no ; then
6324 as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6325 fi
6326
6327 #
6328 # Check to see if Solaris has the dl_passive_req_t struct defined
6329 # in <sys/dlpi.h>.
6330 # This check is for DLPI support for passive modes.
6331 # See dlpi(7P) for more details.
6332 #
6333 ac_fn_c_check_type "$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6334 #include <sys/types.h>
6335 #include <sys/dlpi.h>
6336
6337 "
6338 if test "x$ac_cv_type_dl_passive_req_t" = xyes; then :
6339
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_DL_PASSIVE_REQ_T 1
6342 _ACEOF
6343
6344
6345 fi
6346
6347 ;;
6348
6349 linux)
6350 #
6351 # Do we have the wireless extensions?
6352 #
6353 for ac_header in linux/wireless.h
6354 do :
6355 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6356 #include <sys/socket.h>
6357 #include <linux/if.h>
6358 #include <linux/types.h>
6359
6360 "
6361 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
6362 cat >>confdefs.h <<_ACEOF
6363 #define HAVE_LINUX_WIRELESS_H 1
6364 _ACEOF
6365
6366 fi
6367
6368 done
6369
6370
6371 #
6372 # Do we have libnl?
6373 #
6374
6375 # Check whether --with-libnl was given.
6376 if test "${with_libnl+set}" = set; then :
6377 withval=$with_libnl; with_libnl=$withval
6378 else
6379 with_libnl=if_available
6380 fi
6381
6382
6383 if test x$with_libnl != xno ; then
6384 have_any_nl="no"
6385
6386 incdir=-I/usr/include/libnl3
6387 libnldir=
6388 case "$with_libnl" in
6389
6390 yes|if_available)
6391 ;;
6392
6393 *)
6394 if test -d $withval; then
6395 libnldir=-L${withval}/lib/.libs
6396 incdir=-I${withval}/include
6397 fi
6398 ;;
6399 esac
6400
6401 #
6402 # Try libnl 3.x first.
6403 #
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
6405 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
6406 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 ac_check_lib_save_LIBS=$LIBS
6410 LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413
6414 /* Override any GCC internal prototype to avoid an error.
6415 Use char because int might match the return type of a GCC
6416 builtin and then its argument prototype would still apply. */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 char nl_socket_alloc ();
6421 int
6422 main ()
6423 {
6424 return nl_socket_alloc ();
6425 ;
6426 return 0;
6427 }
6428 _ACEOF
6429 if ac_fn_c_try_link "$LINENO"; then :
6430 ac_cv_lib_nl_3_nl_socket_alloc=yes
6431 else
6432 ac_cv_lib_nl_3_nl_socket_alloc=no
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext \
6435 conftest$ac_exeext conftest.$ac_ext
6436 LIBS=$ac_check_lib_save_LIBS
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
6439 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
6440 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
6441
6442 #
6443 # Yes, we have libnl 3.x.
6444 #
6445 LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6446
6447 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6448
6449
6450 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
6451
6452
6453 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6454
6455
6456 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6457
6458 V_INCLS="$V_INCLS ${incdir}"
6459 have_any_nl="yes"
6460
6461 fi
6462
6463
6464 if test x$have_any_nl = xno ; then
6465 #
6466 # Try libnl 2.x
6467 #
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
6469 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
6470 if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 ac_check_lib_save_LIBS=$LIBS
6474 LIBS="-lnl $LIBS"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477
6478 /* Override any GCC internal prototype to avoid an error.
6479 Use char because int might match the return type of a GCC
6480 builtin and then its argument prototype would still apply. */
6481 #ifdef __cplusplus
6482 extern "C"
6483 #endif
6484 char nl_socket_alloc ();
6485 int
6486 main ()
6487 {
6488 return nl_socket_alloc ();
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_link "$LINENO"; then :
6494 ac_cv_lib_nl_nl_socket_alloc=yes
6495 else
6496 ac_cv_lib_nl_nl_socket_alloc=no
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext \
6499 conftest$ac_exeext conftest.$ac_ext
6500 LIBS=$ac_check_lib_save_LIBS
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6503 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6504 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
6505
6506 #
6507 # Yes, we have libnl 2.x.
6508 #
6509 LIBS="${libnldir} -lnl-genl -lnl $LIBS"
6510
6511 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6512
6513
6514 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6515
6516
6517 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6518
6519
6520 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6521
6522 have_any_nl="yes"
6523
6524 fi
6525
6526 fi
6527
6528 if test x$have_any_nl = xno ; then
6529 #
6530 # No, we don't; do we have libnl 1.x?
6531 #
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6533 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6534 if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 ac_check_lib_save_LIBS=$LIBS
6538 LIBS="-lnl $LIBS"
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541
6542 /* Override any GCC internal prototype to avoid an error.
6543 Use char because int might match the return type of a GCC
6544 builtin and then its argument prototype would still apply. */
6545 #ifdef __cplusplus
6546 extern "C"
6547 #endif
6548 char nl_handle_alloc ();
6549 int
6550 main ()
6551 {
6552 return nl_handle_alloc ();
6553 ;
6554 return 0;
6555 }
6556 _ACEOF
6557 if ac_fn_c_try_link "$LINENO"; then :
6558 ac_cv_lib_nl_nl_handle_alloc=yes
6559 else
6560 ac_cv_lib_nl_nl_handle_alloc=no
6561 fi
6562 rm -f core conftest.err conftest.$ac_objext \
6563 conftest$ac_exeext conftest.$ac_ext
6564 LIBS=$ac_check_lib_save_LIBS
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6567 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
6568 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then :
6569
6570 #
6571 # Yes.
6572 #
6573 LIBS="${libnldir} -lnl $LIBS"
6574
6575 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6576
6577 have_any_nl="yes"
6578
6579 fi
6580
6581 fi
6582
6583 if test x$have_any_nl = xno ; then
6584 #
6585 # No, we don't have libnl at all.
6586 #
6587 if test x$with_libnl = xyes ; then
6588 as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
6589 fi
6590 fi
6591 fi
6592
6593 for ac_header in linux/ethtool.h
6594 do :
6595 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
6596 $ac_includes_default
6597 #include <linux/types.h>
6598
6599 "
6600 if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
6601 cat >>confdefs.h <<_ACEOF
6602 #define HAVE_LINUX_ETHTOOL_H 1
6603 _ACEOF
6604
6605 fi
6606
6607 done
6608
6609
6610 #
6611 # Check to see if struct tpacket_stats is defined in
6612 # <linux/if_packet.h>. If so, then pcap-linux.c can use this
6613 # to report proper statistics.
6614 #
6615 # -Scott Barron
6616 #
6617 ac_fn_c_check_type "$LINENO" "struct tpacket_stats" "ac_cv_type_struct_tpacket_stats" "
6618 #include <linux/if_packet.h>
6619
6620 "
6621 if test "x$ac_cv_type_struct_tpacket_stats" = xyes; then :
6622
6623 cat >>confdefs.h <<_ACEOF
6624 #define HAVE_STRUCT_TPACKET_STATS 1
6625 _ACEOF
6626
6627
6628 fi
6629
6630
6631 #
6632 # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
6633 #
6634 # NOTE: any failure means we conclude that it doesn't have that
6635 # member, so if we don't have tpacket_auxdata, we conclude it
6636 # doesn't have that member (which is OK, as either we won't be
6637 # using code that would use that member, or we wouldn't compile
6638 # in any case).
6639 ac_fn_c_check_member "$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
6640 #include <sys/types.h>
6641 #include <linux/if_packet.h>
6642
6643 "
6644 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes; then :
6645
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
6648 _ACEOF
6649
6650
6651 fi
6652
6653 ;;
6654
6655 bpf)
6656 #
6657 # Check whether we have the *BSD-style ioctls.
6658 #
6659 for ac_header in net/if_media.h
6660 do :
6661 ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6662 if test "x$ac_cv_header_net_if_media_h" = xyes; then :
6663 cat >>confdefs.h <<_ACEOF
6664 #define HAVE_NET_IF_MEDIA_H 1
6665 _ACEOF
6666
6667 fi
6668
6669 done
6670
6671
6672 #
6673 # Check whether we have struct BPF_TIMEVAL.
6674 #
6675 ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6676 #include <sys/types.h>
6677 #include <sys/ioctl.h>
6678 #ifdef HAVE_SYS_IOCCOM_H
6679 #include <sys/ioccom.h>
6680 #endif
6681 #include <net/bpf.h>
6682
6683 "
6684 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then :
6685
6686 cat >>confdefs.h <<_ACEOF
6687 #define HAVE_STRUCT_BPF_TIMEVAL 1
6688 _ACEOF
6689
6690
6691 fi
6692
6693 ;;
6694
6695 dag)
6696 #
6697 # --with-pcap=dag is the only way to get here, and it means
6698 # "DAG support but nothing else"
6699 #
6700 V_DEFS="$V_DEFS -DDAG_ONLY"
6701 xxx_only=yes
6702 ;;
6703
6704 septel)
6705 #
6706 # --with-pcap=septel is the only way to get here, and it means
6707 # "Septel support but nothing else"
6708 #
6709 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
6710 xxx_only=yes
6711 ;;
6712
6713 snf)
6714 #
6715 # --with-pcap=snf is the only way to get here, and it means
6716 # "SNF support but nothing else"
6717 #
6718 V_DEFS="$V_DEFS -DSNF_ONLY"
6719 xxx_only=yes
6720 ;;
6721
6722 null)
6723 ;;
6724
6725 *)
6726 as_fn_error $? "$V_PCAP is not a valid pcap type" "$LINENO" 5
6727 ;;
6728 esac
6729
6730 if test "$V_PCAP" != null
6731 then
6732 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6733 if test "x$ac_cv_func_getifaddrs" = xyes; then :
6734
6735 #
6736 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6737 # as well, just in case some platform is really weird.
6738 #
6739 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6740 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6741
6742 #
6743 # We have the header, so we use "getifaddrs()" to
6744 # get the list of interfaces.
6745 #
6746 V_FINDALLDEVS=fad-getad.c
6747
6748 else
6749
6750 #
6751 # We don't have the header - give up.
6752 # XXX - we could also fall back on some other
6753 # mechanism, but, for now, this'll catch this
6754 # problem so that we can at least try to figure
6755 # out something to do on systems with "getifaddrs()"
6756 # but without "ifaddrs.h", if there is something
6757 # we can do on those systems.
6758 #
6759 as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6760
6761 fi
6762
6763
6764
6765 else
6766
6767 #
6768 # Well, we don't have "getifaddrs()", at least not with the
6769 # libraries with which we've decided we need to link
6770 # libpcap with, so we have to use some other mechanism.
6771 #
6772 # Note that this may happen on Solaris, which has
6773 # getifaddrs(), but in -lsocket, not in -lxnet, so we
6774 # won't find it if we link with -lxnet, which we want
6775 # to do for other reasons.
6776 #
6777 # For now, we use either the SIOCGIFCONF ioctl or the
6778 # SIOCGLIFCONF ioctl, preferring the latter if we have
6779 # it; the latter is a Solarisism that first appeared
6780 # in Solaris 8. (Solaris's getifaddrs() appears to
6781 # be built atop SIOCGLIFCONF; using it directly
6782 # avoids a not-all-that-useful middleman.)
6783 #
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6785 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6786 if ${ac_cv_lbl_have_siocglifconf+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 #include <sys/param.h>
6792 #include <sys/file.h>
6793 #include <sys/ioctl.h>
6794 #include <sys/socket.h>
6795 #include <sys/sockio.h>
6796 int
6797 main ()
6798 {
6799 ioctl(0, SIOCGLIFCONF, (char *)0);
6800 ;
6801 return 0;
6802 }
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805 ac_cv_lbl_have_siocglifconf=yes
6806 else
6807 ac_cv_lbl_have_siocglifconf=no
6808 fi
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 fi
6811
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6813 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6814 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6815 V_FINDALLDEVS=fad-glifc.c
6816 else
6817 V_FINDALLDEVS=fad-gifc.c
6818 fi
6819
6820 fi
6821
6822 fi
6823
6824 case "$host_os" in
6825 linux*)
6826 for ac_header in linux/net_tstamp.h
6827 do :
6828 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
6829 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
6830 cat >>confdefs.h <<_ACEOF
6831 #define HAVE_LINUX_NET_TSTAMP_H 1
6832 _ACEOF
6833
6834 fi
6835
6836 done
6837
6838 ;;
6839 *)
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
6841 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
6842 ;;
6843 esac
6844
6845 # Check whether --enable-packet-ring was given.
6846 if test "${enable_packet_ring+set}" = set; then :
6847 enableval=$enable_packet_ring;
6848 else
6849 enable_packet_ring=yes
6850 fi
6851
6852
6853 if test "x$enable_packet_ring" != "xno" ; then
6854
6855 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
6856
6857
6858 fi
6859
6860 #
6861 # Check for socklen_t.
6862 #
6863 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6864 #include <sys/types.h>
6865 #include <sys/socket.h>
6866
6867 "
6868 if test "x$ac_cv_type_socklen_t" = xyes; then :
6869
6870 cat >>confdefs.h <<_ACEOF
6871 #define HAVE_SOCKLEN_T 1
6872 _ACEOF
6873
6874
6875 fi
6876
6877
6878 # Check whether --enable-ipv6 was given.
6879 if test "${enable_ipv6+set}" = set; then :
6880 enableval=$enable_ipv6;
6881 else
6882 enable_ipv6=yes
6883 fi
6884
6885 if test "$enable_ipv6" != "no"; then
6886 #
6887 # We've already made sure we have getaddrinfo above in
6888 # AC_LBL_LIBRARY_NET.
6889 #
6890
6891 $as_echo "#define INET6 1" >>confdefs.h
6892
6893 fi
6894
6895 # Check for Endace DAG card support.
6896
6897 # Check whether --with-dag was given.
6898 if test "${with_dag+set}" = set; then :
6899 withval=$with_dag;
6900 if test "$withval" = no
6901 then
6902 # User doesn't want DAG support.
6903 want_dag=no
6904 elif test "$withval" = yes
6905 then
6906 # User wants DAG support but hasn't specified a directory.
6907 want_dag=yes
6908 else
6909 # User wants DAG support and has specified a directory, so use the provided value.
6910 want_dag=yes
6911 dag_root=$withval
6912 fi
6913
6914 else
6915
6916 if test "$V_PCAP" = dag; then
6917 # User requested DAG-only libpcap, so we'd better have
6918 # the DAG API.
6919 want_dag=yes
6920 elif test "xxx_only" = yes; then
6921 # User requested something-else-only pcap, so they don't
6922 # want DAG support.
6923 want_dag=no
6924 else
6925 #
6926 # Use DAG API if present, otherwise don't
6927 #
6928 want_dag=ifpresent
6929 fi
6930
6931 fi
6932
6933
6934
6935 # Check whether --with-dag-includes was given.
6936 if test "${with_dag_includes+set}" = set; then :
6937 withval=$with_dag_includes;
6938 # User wants DAG support and has specified a header directory, so use the provided value.
6939 want_dag=yes
6940 dag_include_dir=$withval
6941
6942 fi
6943
6944
6945
6946 # Check whether --with-dag-libraries was given.
6947 if test "${with_dag_libraries+set}" = set; then :
6948 withval=$with_dag_libraries;
6949 # User wants DAG support and has specified a library directory, so use the provided value.
6950 want_dag=yes
6951 dag_lib_dir=$withval
6952
6953 fi
6954
6955
6956 if test "$want_dag" != no; then
6957
6958 # If necessary, set default paths for DAG API headers and libraries.
6959 if test -z "$dag_root"; then
6960 dag_root=/usr/local
6961 fi
6962
6963 if test -z "$dag_include_dir"; then
6964 dag_include_dir="$dag_root/include"
6965 fi
6966
6967 if test -z "$dag_lib_dir"; then
6968 dag_lib_dir="$dag_root/lib"
6969 fi
6970
6971 V_INCLS="$V_INCLS -I$dag_include_dir"
6972
6973 for ac_header in dagapi.h
6974 do :
6975 ac_fn_c_check_header_mongrel "$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
6976 if test "x$ac_cv_header_dagapi_h" = xyes; then :
6977 cat >>confdefs.h <<_ACEOF
6978 #define HAVE_DAGAPI_H 1
6979 _ACEOF
6980
6981 fi
6982
6983 done
6984
6985
6986 if test "$ac_cv_header_dagapi_h" = yes; then
6987
6988 if test $V_PCAP != dag ; then
6989 SSRC="$SSRC pcap-dag.c"
6990 fi
6991
6992 # Check for various DAG API functions.
6993 # Don't need to save and restore LIBS to prevent -ldag being
6994 # included if there's a found-action (arg 3).
6995 saved_ldflags=$LDFLAGS
6996 LDFLAGS="-L$dag_lib_dir"
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6998 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6999 if ${ac_cv_lib_dag_dag_attach_stream+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 ac_check_lib_save_LIBS=$LIBS
7003 LIBS="-ldag $LIBS"
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006
7007 /* Override any GCC internal prototype to avoid an error.
7008 Use char because int might match the return type of a GCC
7009 builtin and then its argument prototype would still apply. */
7010 #ifdef __cplusplus
7011 extern "C"
7012 #endif
7013 char dag_attach_stream ();
7014 int
7015 main ()
7016 {
7017 return dag_attach_stream ();
7018 ;
7019 return 0;
7020 }
7021 _ACEOF
7022 if ac_fn_c_try_link "$LINENO"; then :
7023 ac_cv_lib_dag_dag_attach_stream=yes
7024 else
7025 ac_cv_lib_dag_dag_attach_stream=no
7026 fi
7027 rm -f core conftest.err conftest.$ac_objext \
7028 conftest$ac_exeext conftest.$ac_ext
7029 LIBS=$ac_check_lib_save_LIBS
7030 fi
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
7032 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
7033 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then :
7034 cat >>confdefs.h <<_ACEOF
7035 #define HAVE_LIBDAG 1
7036 _ACEOF
7037
7038 LIBS="-ldag $LIBS"
7039
7040 else
7041 as_fn_error $? "DAG library lacks streams support" "$LINENO" 5
7042 fi
7043
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
7045 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
7046 if ${ac_cv_lib_dag_dag_attach_stream64+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 ac_check_lib_save_LIBS=$LIBS
7050 LIBS="-ldag $LIBS"
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053
7054 /* Override any GCC internal prototype to avoid an error.
7055 Use char because int might match the return type of a GCC
7056 builtin and then its argument prototype would still apply. */
7057 #ifdef __cplusplus
7058 extern "C"
7059 #endif
7060 char dag_attach_stream64 ();
7061 int
7062 main ()
7063 {
7064 return dag_attach_stream64 ();
7065 ;
7066 return 0;
7067 }
7068 _ACEOF
7069 if ac_fn_c_try_link "$LINENO"; then :
7070 ac_cv_lib_dag_dag_attach_stream64=yes
7071 else
7072 ac_cv_lib_dag_dag_attach_stream64=no
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext \
7075 conftest$ac_exeext conftest.$ac_ext
7076 LIBS=$ac_check_lib_save_LIBS
7077 fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
7079 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
7080 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes; then :
7081 dag_large_streams="1"
7082 else
7083 dag_large_streams="0"
7084 fi
7085
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
7087 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
7088 if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 ac_check_lib_save_LIBS=$LIBS
7092 LIBS="-ldag $LIBS"
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095
7096 /* Override any GCC internal prototype to avoid an error.
7097 Use char because int might match the return type of a GCC
7098 builtin and then its argument prototype would still apply. */
7099 #ifdef __cplusplus
7100 extern "C"
7101 #endif
7102 char dag_get_erf_types ();
7103 int
7104 main ()
7105 {
7106 return dag_get_erf_types ();
7107 ;
7108 return 0;
7109 }
7110 _ACEOF
7111 if ac_fn_c_try_link "$LINENO"; then :
7112 ac_cv_lib_dag_dag_get_erf_types=yes
7113 else
7114 ac_cv_lib_dag_dag_get_erf_types=no
7115 fi
7116 rm -f core conftest.err conftest.$ac_objext \
7117 conftest$ac_exeext conftest.$ac_ext
7118 LIBS=$ac_check_lib_save_LIBS
7119 fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
7121 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
7122 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then :
7123
7124
7125 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
7126
7127 fi
7128
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
7130 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
7131 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 ac_check_lib_save_LIBS=$LIBS
7135 LIBS="-ldag $LIBS"
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138
7139 /* Override any GCC internal prototype to avoid an error.
7140 Use char because int might match the return type of a GCC
7141 builtin and then its argument prototype would still apply. */
7142 #ifdef __cplusplus
7143 extern "C"
7144 #endif
7145 char dag_get_stream_erf_types ();
7146 int
7147 main ()
7148 {
7149 return dag_get_stream_erf_types ();
7150 ;
7151 return 0;
7152 }
7153 _ACEOF
7154 if ac_fn_c_try_link "$LINENO"; then :
7155 ac_cv_lib_dag_dag_get_stream_erf_types=yes
7156 else
7157 ac_cv_lib_dag_dag_get_stream_erf_types=no
7158 fi
7159 rm -f core conftest.err conftest.$ac_objext \
7160 conftest$ac_exeext conftest.$ac_ext
7161 LIBS=$ac_check_lib_save_LIBS
7162 fi
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
7164 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
7165 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then :
7166
7167
7168 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
7169
7170 fi
7171
7172
7173 LDFLAGS=$saved_ldflags
7174
7175 #
7176 # We assume that if we have libdag we have libdagconf,
7177 # as they're installed at the same time from the same
7178 # package.
7179 #
7180 LIBS="$LIBS -ldag -ldagconf"
7181 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
7182
7183 if test "$dag_large_streams" = 1; then
7184
7185 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
7188 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
7189 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 ac_check_lib_save_LIBS=$LIBS
7193 LIBS="-lvdag $LIBS"
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196
7197 /* Override any GCC internal prototype to avoid an error.
7198 Use char because int might match the return type of a GCC
7199 builtin and then its argument prototype would still apply. */
7200 #ifdef __cplusplus
7201 extern "C"
7202 #endif
7203 char vdag_set_device_info ();
7204 int
7205 main ()
7206 {
7207 return vdag_set_device_info ();
7208 ;
7209 return 0;
7210 }
7211 _ACEOF
7212 if ac_fn_c_try_link "$LINENO"; then :
7213 ac_cv_lib_vdag_vdag_set_device_info=yes
7214 else
7215 ac_cv_lib_vdag_vdag_set_device_info=no
7216 fi
7217 rm -f core conftest.err conftest.$ac_objext \
7218 conftest$ac_exeext conftest.$ac_ext
7219 LIBS=$ac_check_lib_save_LIBS
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
7222 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
7223 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then :
7224 ac_dag_have_vdag="1"
7225 else
7226 ac_dag_have_vdag="0"
7227 fi
7228
7229 if test "$ac_dag_have_vdag" = 1; then
7230
7231 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
7232
7233 if test "$ac_lbl_have_pthreads" != "found"; then
7234 as_fn_error $? "DAG requires pthreads, but we didn't find them" "$LINENO" 5
7235 fi
7236 LIBS="$LIBS $PTHREAD_LIBS"
7237 fi
7238 fi
7239
7240
7241 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
7242
7243 else
7244
7245 if test "$V_PCAP" = dag; then
7246 # User requested "dag" capture type but we couldn't
7247 # find the DAG API support.
7248 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
7249 fi
7250
7251 if test "$want_dag" = yes; then
7252 # User wanted DAG support but we couldn't find it.
7253 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
7254 fi
7255 fi
7256 fi
7257
7258
7259 # Check whether --with-septel was given.
7260 if test "${with_septel+set}" = set; then :
7261 withval=$with_septel;
7262 if test "$withval" = no
7263 then
7264 want_septel=no
7265 elif test "$withval" = yes
7266 then
7267 want_septel=yes
7268 septel_root=
7269 else
7270 want_septel=yes
7271 septel_root=$withval
7272 fi
7273
7274 else
7275
7276 if test "$V_PCAP" = septel; then
7277 # User requested Septel-only libpcap, so we'd better have
7278 # the Septel API.
7279 want_septel=yes
7280 elif test "xxx_only" = yes; then
7281 # User requested something-else-only pcap, so they don't
7282 # want Septel support.
7283 want_septel=no
7284 else
7285 #
7286 # Use Septel API if present, otherwise don't
7287 #
7288 want_septel=ifpresent
7289 fi
7290
7291 fi
7292
7293
7294 ac_cv_lbl_septel_api=no
7295 if test "$with_septel" != no; then
7296
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
7298 $as_echo_n "checking whether we have Septel API headers... " >&6; }
7299
7300 # If necessary, set default paths for Septel API headers and libraries.
7301 if test -z "$septel_root"; then
7302 septel_root=$srcdir/../septel
7303 fi
7304
7305 septel_tools_dir="$septel_root"
7306 septel_include_dir="$septel_root/INC"
7307
7308 if test -r "$septel_include_dir/msg.h"; then
7309 ac_cv_lbl_septel_api=yes
7310 fi
7311
7312 if test "$ac_cv_lbl_septel_api" = yes; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
7314 $as_echo "yes ($septel_include_dir)" >&6; }
7315
7316 V_INCLS="$V_INCLS -I$septel_include_dir"
7317 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"
7318 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"
7319
7320 if test "$V_PCAP" != septel ; then
7321 SSRC="$SSRC pcap-septel.c"
7322 fi
7323
7324
7325 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
7326
7327 else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330
7331 if test "$V_PCAP" = septel; then
7332 # User requested "septel" capture type but
7333 # we couldn't find the Septel API support.
7334 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
7335 fi
7336
7337 if test "$want_septel" = yes; then
7338 # User wanted Septel support but we couldn't find it.
7339 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
7340 fi
7341 fi
7342 fi
7343
7344 # Check for Myricom SNF support.
7345
7346 # Check whether --with-snf was given.
7347 if test "${with_snf+set}" = set; then :
7348 withval=$with_snf;
7349 if test "$withval" = no
7350 then
7351 # User explicitly doesn't want SNF
7352 want_snf=no
7353 elif test "$withval" = yes
7354 then
7355 # User wants SNF support but hasn't specified a directory.
7356 want_snf=yes
7357 else
7358 # User wants SNF support with a specified directory.
7359 want_snf=yes
7360 snf_root=$withval
7361 fi
7362
7363 else
7364
7365 if test "$V_PCAP" = snf; then
7366 # User requested Sniffer-only libpcap, so we'd better have
7367 # the Sniffer API.
7368 want_snf=yes
7369 elif test "xxx_only" = yes; then
7370 # User requested something-else-only pcap, so they don't
7371 # want SNF support.
7372 want_snf=no
7373 else
7374 #
7375 # Use Sniffer API if present, otherwise don't
7376 #
7377 want_snf=ifpresent
7378 fi
7379
7380 fi
7381
7382
7383
7384 # Check whether --with-snf-includes was given.
7385 if test "${with_snf_includes+set}" = set; then :
7386 withval=$with_snf_includes;
7387 # User wants SNF with specific header directory
7388 want_snf=yes
7389 snf_include_dir=$withval
7390
7391 fi
7392
7393
7394
7395 # Check whether --with-snf-libraries was given.
7396 if test "${with_snf_libraries+set}" = set; then :
7397 withval=$with_snf_libraries;
7398 # User wants SNF with specific lib directory
7399 want_snf=yes
7400 snf_lib_dir=$withval
7401
7402 fi
7403
7404
7405 ac_cv_lbl_snf_api=no
7406 if test "$with_snf" != no; then
7407
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
7409 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
7410
7411 # If necessary, set default paths for Sniffer headers and libraries.
7412 if test -z "$snf_root"; then
7413 snf_root=/opt/snf
7414 fi
7415
7416 if test -z "$snf_include_dir"; then
7417 snf_include_dir="$snf_root/include"
7418 fi
7419
7420 if test -z "$snf_lib_dir"; then
7421 snf_lib_dir="$snf_root/lib"
7422 fi
7423
7424 if test -f "$snf_include_dir/snf.h"; then
7425 # We found a header; make sure we can link with the library
7426 saved_ldflags=$LDFLAGS
7427 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7429 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7430 if ${ac_cv_lib_snf_snf_init+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 ac_check_lib_save_LIBS=$LIBS
7434 LIBS="-lsnf $LIBS"
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437
7438 /* Override any GCC internal prototype to avoid an error.
7439 Use char because int might match the return type of a GCC
7440 builtin and then its argument prototype would still apply. */
7441 #ifdef __cplusplus
7442 extern "C"
7443 #endif
7444 char snf_init ();
7445 int
7446 main ()
7447 {
7448 return snf_init ();
7449 ;
7450 return 0;
7451 }
7452 _ACEOF
7453 if ac_fn_c_try_link "$LINENO"; then :
7454 ac_cv_lib_snf_snf_init=yes
7455 else
7456 ac_cv_lib_snf_snf_init=no
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext \
7459 conftest$ac_exeext conftest.$ac_ext
7460 LIBS=$ac_check_lib_save_LIBS
7461 fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7463 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7464 if test "x$ac_cv_lib_snf_snf_init" = xyes; then :
7465 ac_cv_lbl_snf_api="yes"
7466 fi
7467
7468 LDFLAGS="$saved_ldflags"
7469 if test "$ac_cv_lbl_snf_api" = no; then
7470 as_fn_error $? "SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7471 fi
7472 fi
7473
7474 if test "$ac_cv_lbl_snf_api" = yes; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7476 $as_echo "yes ($snf_root)" >&6; }
7477
7478 V_INCLS="$V_INCLS -I$snf_include_dir"
7479 LIBS="$LIBS -lsnf"
7480 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7481
7482 if test "$V_PCAP" != snf ; then
7483 SSRC="$SSRC pcap-snf.c"
7484 fi
7485
7486
7487 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7488
7489 else
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492
7493 if test "$want_snf" = yes; then
7494 # User requested "snf" capture type but
7495 # we couldn't find the Sniffer API support.
7496 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
7497 fi
7498
7499 if test "$want_snf" = yes; then
7500 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
7501 fi
7502 fi
7503 fi
7504
7505 # Check for Riverbed TurboCap support.
7506
7507 # Check whether --with-turbocap was given.
7508 if test "${with_turbocap+set}" = set; then :
7509 withval=$with_turbocap;
7510 if test "$withval" = no
7511 then
7512 # User explicitly doesn't want TurboCap
7513 want_turbocap=no
7514 elif test "$withval" = yes
7515 then
7516 # User wants TurboCap support but hasn't specified a directory.
7517 want_turbocap=yes
7518 else
7519 # User wants TurboCap support with a specified directory.
7520 want_turbocap=yes
7521 turbocap_root=$withval
7522 fi
7523
7524 else
7525
7526 if test "xxx_only" = yes; then
7527 # User requested something-else-only pcap, so they don't
7528 # want TurboCap support.
7529 want_turbocap=no
7530 else
7531 #
7532 # Use TurboCap API if present, otherwise don't
7533 #
7534 want_turbocap=ifpresent
7535 fi
7536
7537 fi
7538
7539
7540 ac_cv_lbl_turbocap_api=no
7541 if test "$want_turbocap" != no; then
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
7544 $as_echo_n "checking whether TurboCap is supported... " >&6; }
7545
7546 save_CFLAGS="$CFLAGS"
7547 save_LIBS="$LIBS"
7548 if test ! -z "$turbocap_root"; then
7549 TURBOCAP_CFLAGS="-I$turbocap_root/include"
7550 TURBOCAP_LIBS="-L$turbocap_root/lib"
7551 CFLAGS="$CFLAGS $TURBOCAP_CFLAGS"
7552 fi
7553
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556
7557 #include <TcApi.h>
7558
7559 int
7560 main ()
7561 {
7562
7563 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
7564 TC_INSTANCE i;
7565 (void)TcInstanceCreateByName("foo", &i);
7566
7567 ;
7568 return 0;
7569 }
7570 _ACEOF
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572 ac_cv_lbl_turbocap_api=yes
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575
7576 CFLAGS="$save_CFLAGS"
7577 if test $ac_cv_lbl_turbocap_api = yes; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7579 $as_echo "yes" >&6; }
7580
7581 SSRC="$SSRC pcap-tc.c"
7582 V_INCLS="$V_INCLS $TURBOCAP_CFLAGS"
7583 LIBS="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
7584
7585
7586 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
7587
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591
7592 if test "$want_turbocap" = yes; then
7593 # User wanted Turbo support but we couldn't find it.
7594 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
7595 fi
7596 fi
7597 fi
7598
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7600 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7601 # Check whether --enable-remote was given.
7602 if test "${enable_remote+set}" = set; then :
7603 enableval=$enable_remote;
7604 else
7605 enableval=no
7606 fi
7607
7608 case "$enableval" in
7609 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7610 $as_echo "yes" >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7612 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7614 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7615 #
7616 # rpcapd requires pthreads on UN*X.
7617 #
7618 if test "$ac_lbl_have_pthreads" != "found"; then
7619 as_fn_error $? "rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
7620 fi
7621 #
7622 # It also requires crypt().
7623 # Do we have it in the system libraries?
7624 #
7625 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7626 if test "x$ac_cv_func_crypt" = xyes; then :
7627
7628 else
7629
7630 #
7631 # No. Do we have it in -lcrypt?
7632 #
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7634 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7635 if ${ac_cv_lib_crypt_crypt+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 ac_check_lib_save_LIBS=$LIBS
7639 LIBS="-lcrypt $LIBS"
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 char crypt ();
7650 int
7651 main ()
7652 {
7653 return crypt ();
7654 ;
7655 return 0;
7656 }
7657 _ACEOF
7658 if ac_fn_c_try_link "$LINENO"; then :
7659 ac_cv_lib_crypt_crypt=yes
7660 else
7661 ac_cv_lib_crypt_crypt=no
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
7665 LIBS=$ac_check_lib_save_LIBS
7666 fi
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7668 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7669 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7670
7671 #
7672 # Yes; add -lcrypt to the libraries for rpcapd.
7673 #
7674 RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt"
7675
7676 else
7677
7678 as_fn_error $? "rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
7679
7680 fi
7681
7682
7683 fi
7684
7685
7686 #
7687 # OK, we have crypt(). Do we have getspnam()?
7688 #
7689 for ac_func in getspnam
7690 do :
7691 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7692 if test "x$ac_cv_func_getspnam" = xyes; then :
7693 cat >>confdefs.h <<_ACEOF
7694 #define HAVE_GETSPNAM 1
7695 _ACEOF
7696
7697 fi
7698 done
7699
7700
7701 #
7702 # Check for various members of struct msghdr.
7703 #
7704 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
7705 #include \"ftmacros.h\"
7706 #include <sys/socket.h>
7707
7708 "
7709 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
7710
7711 cat >>confdefs.h <<_ACEOF
7712 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
7713 _ACEOF
7714
7715
7716 fi
7717
7718 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
7719 #include \"ftmacros.h\"
7720 #include <sys/socket.h>
7721
7722 "
7723 if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes; then :
7724
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
7727 _ACEOF
7728
7729
7730 fi
7731
7732
7733
7734 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
7735
7736 SSRC="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
7737 BUILD_RPCAPD=build-rpcapd
7738 INSTALL_RPCAPD=install-rpcapd
7739 ;;
7740 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 ;;
7743 esac
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
7746 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
7747 # Check whether --enable-optimizer-dbg was given.
7748 if test "${enable_optimizer_dbg+set}" = set; then :
7749 enableval=$enable_optimizer_dbg;
7750 fi
7751
7752 if test "$enable_optimizer_dbg" = "yes"; then
7753
7754 $as_echo "#define BDEBUG 1" >>confdefs.h
7755
7756 fi
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
7758 $as_echo "${enable_optimizer_dbg-no}" >&6; }
7759
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
7761 $as_echo_n "checking whether to build parser debugging code... " >&6; }
7762 # Check whether --enable-yydebug was given.
7763 if test "${enable_yydebug+set}" = set; then :
7764 enableval=$enable_yydebug;
7765 fi
7766
7767 if test "$enable_yydebug" = "yes"; then
7768
7769 $as_echo "#define YYDEBUG 1" >>confdefs.h
7770
7771 fi
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
7773 $as_echo "${enable_yydebug-no}" >&6; }
7774
7775 #
7776 # Look for {f}lex.
7777 #
7778 for ac_prog in flex lex
7779 do
7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy $ac_prog; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_LEX+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 if test -n "$LEX"; then
7788 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_LEX="$ac_prog"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 LEX=$ac_cv_prog_LEX
7808 if test -n "$LEX"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7810 $as_echo "$LEX" >&6; }
7811 else
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816
7817 test -n "$LEX" && break
7818 done
7819 test -n "$LEX" || LEX=":"
7820
7821 if test "x$LEX" != "x:"; then
7822 cat >conftest.l <<_ACEOF
7823 %%
7824 a { ECHO; }
7825 b { REJECT; }
7826 c { yymore (); }
7827 d { yyless (1); }
7828 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7829 yyless ((input () != 0)); }
7830 f { unput (yytext[0]); }
7831 . { BEGIN INITIAL; }
7832 %%
7833 #ifdef YYTEXT_POINTER
7834 extern char *yytext;
7835 #endif
7836 int
7837 main (void)
7838 {
7839 return ! yylex () + ! yywrap ();
7840 }
7841 _ACEOF
7842 { { ac_try="$LEX conftest.l"
7843 case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846 esac
7847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7848 $as_echo "$ac_try_echo"; } >&5
7849 (eval "$LEX conftest.l") 2>&5
7850 ac_status=$?
7851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7852 test $ac_status = 0; }
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7854 $as_echo_n "checking lex output file root... " >&6; }
7855 if ${ac_cv_prog_lex_root+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858
7859 if test -f lex.yy.c; then
7860 ac_cv_prog_lex_root=lex.yy
7861 elif test -f lexyy.c; then
7862 ac_cv_prog_lex_root=lexyy
7863 else
7864 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7865 fi
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7868 $as_echo "$ac_cv_prog_lex_root" >&6; }
7869 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7870
7871 if test -z "${LEXLIB+set}"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7873 $as_echo_n "checking lex library... " >&6; }
7874 if ${ac_cv_lib_lex+:} false; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877
7878 ac_save_LIBS=$LIBS
7879 ac_cv_lib_lex='none needed'
7880 for ac_lib in '' -lfl -ll; do
7881 LIBS="$ac_lib $ac_save_LIBS"
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 `cat $LEX_OUTPUT_ROOT.c`
7885 _ACEOF
7886 if ac_fn_c_try_link "$LINENO"; then :
7887 ac_cv_lib_lex=$ac_lib
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 test "$ac_cv_lib_lex" != 'none needed' && break
7892 done
7893 LIBS=$ac_save_LIBS
7894
7895 fi
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7897 $as_echo "$ac_cv_lib_lex" >&6; }
7898 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7899 fi
7900
7901
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7903 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7904 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 # POSIX says lex can declare yytext either as a pointer or an array; the
7908 # default is implementation-dependent. Figure out which it is, since
7909 # not all implementations provide the %pointer and %array declarations.
7910 ac_cv_prog_lex_yytext_pointer=no
7911 ac_save_LIBS=$LIBS
7912 LIBS="$LEXLIB $ac_save_LIBS"
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915
7916 #define YYTEXT_POINTER 1
7917 `cat $LEX_OUTPUT_ROOT.c`
7918 _ACEOF
7919 if ac_fn_c_try_link "$LINENO"; then :
7920 ac_cv_prog_lex_yytext_pointer=yes
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 LIBS=$ac_save_LIBS
7925
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7928 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7929 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7930
7931 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7932
7933 fi
7934 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7935
7936 fi
7937 if test "$LEX" = ":"; then
7938 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7939 fi
7940
7941 #
7942 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7943 # and supports processing our scanner.l.
7944 #
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7946 $as_echo_n "checking for capable lex... " >&6; }
7947 if ${tcpdump_cv_capable_lex+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7951 tcpdump_cv_capable_lex=yes
7952 else
7953 tcpdump_cv_capable_lex=insufficient
7954 fi
7955 fi
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7957 $as_echo "$tcpdump_cv_capable_lex" >&6; }
7958 if test $tcpdump_cv_capable_lex = insufficient ; then
7959 as_fn_error $? "$LEX is insufficient to compile libpcap.
7960 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7961 fi
7962
7963 #
7964 # Look for yacc/bison/byacc.
7965 #
7966 for ac_prog in 'bison -y' byacc
7967 do
7968 # Extract the first word of "$ac_prog", so it can be a program name with args.
7969 set dummy $ac_prog; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_YACC+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test -n "$YACC"; then
7976 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7980 do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_YACC="$ac_prog"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989 done
7990 done
7991 IFS=$as_save_IFS
7992
7993 fi
7994 fi
7995 YACC=$ac_cv_prog_YACC
7996 if test -n "$YACC"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7998 $as_echo "$YACC" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8002 fi
8003
8004
8005 test -n "$YACC" && break
8006 done
8007 test -n "$YACC" || YACC="yacc"
8008
8009
8010 #
8011 # Make sure it supports the -p flag and supports processing our
8012 # grammar.y.
8013 #
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
8015 $as_echo_n "checking for capable yacc/bison... " >&6; }
8016 if ${tcpdump_cv_capable_yacc+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
8020 tcpdump_cv_capable_yacc=yes
8021 else
8022 tcpdump_cv_capable_yacc=insufficient
8023 fi
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
8026 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
8027 if test $tcpdump_cv_capable_yacc = insufficient ; then
8028 as_fn_error $? "$YACC is insufficient to compile libpcap.
8029 libpcap requires Bison, a newer version of Berkeley YACC with support
8030 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
8031 fi
8032
8033 #
8034 # Do various checks for various OSes and versions of those OSes.
8035 #
8036 # Assume, by default, no support for shared libraries and V7/BSD
8037 # convention for man pages (devices in section 4, file formats in
8038 # section 5, miscellaneous info in section 7, administrative commands
8039 # and daemons in section 8). Individual cases can override this.
8040 #
8041 DYEXT="none"
8042 MAN_DEVICES=4
8043 MAN_FILE_FORMATS=5
8044 MAN_MISC_INFO=7
8045 MAN_ADMIN_COMMANDS=8
8046 case "$host_os" in
8047
8048 aix*)
8049
8050 $as_echo "#define _SUN 1" >>confdefs.h
8051
8052
8053 #
8054 # AIX makes it fun to build shared and static libraries,
8055 # because they're *both* ".a" archive libraries. We
8056 # build the static library for the benefit of the traditional
8057 # scheme of building libpcap and tcpdump in subdirectories of
8058 # the same directory, with tcpdump statically linked with the
8059 # libpcap in question, but we also build a shared library as
8060 # "libpcap.shareda" and install *it*, rather than the static
8061 # library, as "libpcap.a".
8062 #
8063 DYEXT="shareda"
8064
8065 case "$V_PCAP" in
8066
8067 dlpi)
8068 #
8069 # If we're using DLPI, applications will need to
8070 # use /lib/pse.exp if present, as we use the
8071 # STREAMS routines.
8072 #
8073 pseexe="/lib/pse.exp"
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
8075 $as_echo_n "checking for $pseexe... " >&6; }
8076 if test -f $pseexe ; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8078 $as_echo "yes" >&6; }
8079 LIBS="-I:$pseexe"
8080 fi
8081 ;;
8082
8083 bpf)
8084 #
8085 # If we're using BPF, we need "-lodm" and "-lcfg", as
8086 # we use them to load the BPF module.
8087 #
8088 LIBS="-lodm -lcfg"
8089 ;;
8090 esac
8091 ;;
8092
8093 darwin*)
8094 DYEXT="dylib"
8095 V_CCOPT="$V_CCOPT -fno-common"
8096 # Check whether --enable-universal was given.
8097 if test "${enable_universal+set}" = set; then :
8098 enableval=$enable_universal;
8099 fi
8100
8101 if test "$enable_universal" != "no"; then
8102 case "$host_os" in
8103
8104 darwin[0-7].*)
8105 #
8106 # Pre-Tiger. Build only for 32-bit PowerPC; no
8107 # need for any special compiler or linker flags.
8108 #
8109 ;;
8110
8111 darwin8.[0123]|darwin8.[0123].*)
8112 #
8113 # Tiger, prior to Intel support. Build
8114 # libraries and executables for 32-bit PowerPC
8115 # and 64-bit PowerPC, with 32-bit PowerPC first.
8116 # (I'm guessing that's what Apple does.)
8117 #
8118 # (The double brackets are needed because
8119 # autotools/m4 use brackets as a quoting
8120 # character; the double brackets turn into
8121 # single brackets in the generated configure
8122 # file.)
8123 #
8124 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
8125 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
8126 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
8127 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
8128 ;;
8129
8130 darwin8.[456]|darwin.[456].*)
8131 #
8132 # Tiger, subsequent to Intel support but prior
8133 # to x86-64 support. Build libraries and
8134 # executables for 32-bit PowerPC, 64-bit
8135 # PowerPC, and 32-bit x86, with 32-bit PowerPC
8136 # first. (I'm guessing that's what Apple does.)
8137 #
8138 # (The double brackets are needed because
8139 # autotools/m4 use brackets as a quoting
8140 # character; the double brackets turn into
8141 # single brackets in the generated configure
8142 # file.)
8143 #
8144 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8145 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8146 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8147 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8148 ;;
8149
8150 darwin8.*)
8151 #
8152 # All other Tiger, so subsequent to x86-64
8153 # support. Build libraries and executables for
8154 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
8155 # and x86-64, with 32-bit PowerPC first. (I'm
8156 # guessing that's what Apple does.)
8157 #
8158 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8159 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8160 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8161 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8162 ;;
8163
8164 darwin9.*)
8165 #
8166 # Leopard. Build libraries for 32-bit PowerPC,
8167 # 64-bit PowerPC, 32-bit x86, and x86-64, with
8168 # 32-bit PowerPC first, and build executables
8169 # for 32-bit x86 and 32-bit PowerPC, with 32-bit
8170 # x86 first. (That's what Apple does.)
8171 #
8172 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8173 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8174 V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
8175 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
8176 ;;
8177
8178 darwin10.*)
8179 #
8180 # Snow Leopard. Build libraries for x86-64,
8181 # 32-bit x86, and 32-bit PowerPC, with x86-64
8182 # first, and build executables for x86-64 and
8183 # 32-bit x86, with x86-64 first. (That's what
8184 # Apple does, even though Snow Leopard doesn't
8185 # run on PPC, so PPC libpcap runs under Rosetta,
8186 # and Rosetta doesn't support BPF ioctls, so PPC
8187 # programs can't do live captures.)
8188 #
8189 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
8190 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
8191 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
8192 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
8193 ;;
8194
8195 darwin*)
8196 #
8197 # Post-Snow Leopard. Build libraries for x86-64
8198 # and 32-bit x86, with x86-64 first, and build
8199 # executables only for x86-64. (That's what
8200 # Apple does.) This requires no special flags
8201 # for programs.
8202 # XXX - update if and when Apple drops support
8203 # for 32-bit x86 code and if and when Apple adds
8204 # ARM-based Macs. (You're on your own for iOS
8205 # etc.)
8206 #
8207 # XXX - check whether we *can* build for
8208 # i386 and, if not, suggest that the user
8209 # install the /usr/include headers if they
8210 # want to build fat.
8211 #
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building for 32-bit x86 is supported" >&5
8213 $as_echo_n "checking whether building for 32-bit x86 is supported... " >&6; }
8214 save_CFLAGS="$CFLAGS"
8215 CFLAGS="$CFLAGS -arch i386"
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218
8219 int
8220 main ()
8221 {
8222 return 0;
8223 ;
8224 return 0;
8225 }
8226 _ACEOF
8227 if ac_fn_c_try_compile "$LINENO"; then :
8228
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8230 $as_echo "yes" >&6; }
8231 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386"
8232 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386"
8233
8234 else
8235
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 V_LIB_CCOPT_FAT="-arch x86_64"
8239 V_LIB_LDFLAGS_FAT="-arch x86_64"
8240 case "$host_os" in
8241
8242 darwin18.*)
8243 #
8244 # Mojave; you need to install the
8245 # /usr/include headers to get
8246 # 32-bit x86 builds to work.
8247 #
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after that, installing the /usr/include headers from the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package" >&5
8249 $as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after that, installing the /usr/include headers from the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package" >&2;}
8250 ;;
8251
8252 *)
8253 #
8254 # Pre-Mojave; the command-line
8255 # tools should be sufficient to
8256 # enable 32-bit x86 builds.
8257 #
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&5
8259 $as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&2;}
8260 ;;
8261 esac
8262
8263 fi
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 CFLAGS="$save_CFLAGS"
8266 ;;
8267 esac
8268 fi
8269 ;;
8270
8271 hpux9*)
8272
8273 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
8274
8275
8276 #
8277 # Use System V conventions for man pages.
8278 #
8279 MAN_ADMIN_COMMANDS=1m
8280 MAN_FILE_FORMATS=4
8281 MAN_MISC_INFO=5
8282 ;;
8283
8284 hpux10.0*)
8285
8286 #
8287 # Use System V conventions for man pages.
8288 #
8289 MAN_ADMIN_COMMANDS=1m
8290 MAN_FILE_FORMATS=4
8291 MAN_MISC_INFO=5
8292 ;;
8293
8294 hpux10.1*)
8295
8296 #
8297 # Use System V conventions for man pages.
8298 #
8299 MAN_ADMIN_COMMANDS=1m
8300 MAN_FILE_FORMATS=4
8301 MAN_MISC_INFO=5
8302 ;;
8303
8304 hpux*)
8305
8306 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
8307
8308 if test "`uname -m`" = "ia64"; then
8309 DYEXT="so"
8310 else
8311 DYEXT="sl"
8312 fi
8313
8314 #
8315 # "-b" builds a shared library; "+h" sets the soname.
8316 #
8317 SHLIB_OPT="-b"
8318 SONAME_OPT="+h"
8319
8320 #
8321 # Use System V conventions for man pages.
8322 #
8323 MAN_FILE_FORMATS=4
8324 MAN_MISC_INFO=5
8325 ;;
8326
8327 irix*)
8328 #
8329 # Use IRIX conventions for man pages; they're the same as the
8330 # System V conventions, except that they use section 8 for
8331 # administrative commands and daemons.
8332 #
8333 MAN_FILE_FORMATS=4
8334 MAN_MISC_INFO=5
8335 ;;
8336
8337 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
8338 DYEXT="so"
8339
8340 #
8341 # Compiler assumed to be GCC; run-time linker may require a -R
8342 # flag.
8343 #
8344 if test "$libdir" != "/usr/lib"; then
8345 V_RFLAGS=-Wl,-R$libdir
8346 fi
8347 ;;
8348
8349 osf*)
8350 DYEXT="so"
8351
8352 #
8353 # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
8354 # Use Tru64 UNIX conventions for man pages; they're the same as
8355 # the System V conventions except that they use section 8 for
8356 # administrative commands and daemons.
8357 #
8358 MAN_FILE_FORMATS=4
8359 MAN_MISC_INFO=5
8360 MAN_DEVICES=7
8361 ;;
8362
8363 sinix*)
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
8365 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
8366 if ${ac_cv_cc_sinix_defined+:} false; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8371
8372 int
8373 main ()
8374 {
8375 int i = sinix;
8376 ;
8377 return 0;
8378 }
8379 _ACEOF
8380 if ac_fn_c_try_compile "$LINENO"; then :
8381 ac_cv_cc_sinix_defined=yes
8382 else
8383 ac_cv_cc_sinix_defined=no
8384 fi
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
8389 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
8390 if test $ac_cv_cc_sinix_defined = no ; then
8391
8392 $as_echo "#define sinix 1" >>confdefs.h
8393
8394 fi
8395 ;;
8396
8397 solaris*)
8398
8399 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
8400
8401
8402 DYEXT="so"
8403
8404 #
8405 # Make sure errno is thread-safe, in case we're called in
8406 # a multithreaded program. We don't guarantee that two
8407 # threads can use the *same* pcap_t safely, but the
8408 # current version does guarantee that you can use different
8409 # pcap_t's in different threads, and even that pcap_compile()
8410 # is thread-safe (it wasn't thread-safe in some older versions).
8411 #
8412 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
8413
8414 case "`uname -r`" in
8415
8416 5.12)
8417 ;;
8418
8419 *)
8420 #
8421 # Use System V conventions for man pages.
8422 #
8423 MAN_ADMIN_COMMANDS=1m
8424 MAN_FILE_FORMATS=4
8425 MAN_MISC_INFO=5
8426 MAN_DEVICES=7D
8427 esac
8428 ;;
8429 esac
8430
8431 # Check whether --enable-shared was given.
8432 if test "${enable_shared+set}" = set; then :
8433 enableval=$enable_shared;
8434 fi
8435
8436 test "x$enable_shared" = "xno" && DYEXT="none"
8437
8438 if test -n "$ac_tool_prefix"; then
8439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8440 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_RANLIB+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 if test -n "$RANLIB"; then
8447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8451 do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8459 fi
8460 done
8461 done
8462 IFS=$as_save_IFS
8463
8464 fi
8465 fi
8466 RANLIB=$ac_cv_prog_RANLIB
8467 if test -n "$RANLIB"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8469 $as_echo "$RANLIB" >&6; }
8470 else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8473 fi
8474
8475
8476 fi
8477 if test -z "$ac_cv_prog_RANLIB"; then
8478 ac_ct_RANLIB=$RANLIB
8479 # Extract the first word of "ranlib", so it can be a program name with args.
8480 set dummy ranlib; ac_word=$2
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 if test -n "$ac_ct_RANLIB"; then
8487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8496 ac_cv_prog_ac_ct_RANLIB="ranlib"
8497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 break 2
8499 fi
8500 done
8501 done
8502 IFS=$as_save_IFS
8503
8504 fi
8505 fi
8506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8507 if test -n "$ac_ct_RANLIB"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8509 $as_echo "$ac_ct_RANLIB" >&6; }
8510 else
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8513 fi
8514
8515 if test "x$ac_ct_RANLIB" = x; then
8516 RANLIB=":"
8517 else
8518 case $cross_compiling:$ac_tool_warned in
8519 yes:)
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8522 ac_tool_warned=yes ;;
8523 esac
8524 RANLIB=$ac_ct_RANLIB
8525 fi
8526 else
8527 RANLIB="$ac_cv_prog_RANLIB"
8528 fi
8529
8530 if test -n "$ac_tool_prefix"; then
8531 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8532 set dummy ${ac_tool_prefix}ar; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_AR+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 if test -n "$AR"; then
8539 ac_cv_prog_AR="$AR" # Let the user override the test.
8540 else
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in $PATH
8543 do
8544 IFS=$as_save_IFS
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548 ac_cv_prog_AR="${ac_tool_prefix}ar"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 break 2
8551 fi
8552 done
8553 done
8554 IFS=$as_save_IFS
8555
8556 fi
8557 fi
8558 AR=$ac_cv_prog_AR
8559 if test -n "$AR"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8561 $as_echo "$AR" >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8565 fi
8566
8567
8568 fi
8569 if test -z "$ac_cv_prog_AR"; then
8570 ac_ct_AR=$AR
8571 # Extract the first word of "ar", so it can be a program name with args.
8572 set dummy ar; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 if test -n "$ac_ct_AR"; then
8579 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588 ac_cv_prog_ac_ct_AR="ar"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 break 2
8591 fi
8592 done
8593 done
8594 IFS=$as_save_IFS
8595
8596 fi
8597 fi
8598 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8599 if test -n "$ac_ct_AR"; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8601 $as_echo "$ac_ct_AR" >&6; }
8602 else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8605 fi
8606
8607 if test "x$ac_ct_AR" = x; then
8608 AR=""
8609 else
8610 case $cross_compiling:$ac_tool_warned in
8611 yes:)
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8614 ac_tool_warned=yes ;;
8615 esac
8616 AR=$ac_ct_AR
8617 fi
8618 else
8619 AR="$ac_cv_prog_AR"
8620 fi
8621
8622
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8624 $as_echo_n "checking whether ln -s works... " >&6; }
8625 LN_S=$as_ln_s
8626 if test "$LN_S" = "ln -s"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8628 $as_echo "yes" >&6; }
8629 else
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8631 $as_echo "no, using $LN_S" >&6; }
8632 fi
8633
8634
8635
8636 rm -f os-proto.h
8637 if test "${LBL_CFLAGS+set}" = set; then
8638 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8639 fi
8640 if test -f .devel ; then
8641 #
8642 # Skip all the warning option stuff on some compilers.
8643 #
8644 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
8645
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
8647 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
8648 save_CFLAGS="$CFLAGS"
8649 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652
8653 int
8654 main ()
8655 {
8656 return 0
8657 ;
8658 return 0;
8659 }
8660 _ACEOF
8661 if ac_fn_c_try_compile "$LINENO"; then :
8662
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8665 #
8666 # We're assuming this is clang, where
8667 # -Werror=unknown-warning-option is the appropriate
8668 # option to force the compiler to fail.
8669 #
8670 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
8671
8672 else
8673
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8675 $as_echo "yes" >&6; }
8676
8677 fi
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 CFLAGS="$save_CFLAGS"
8680
8681
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
8683 $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
8684 save_CFLAGS="$CFLAGS"
8685 if expr "x-W" : "x-W.*" >/dev/null
8686 then
8687 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
8688 elif expr "x-W" : "x-f.*" >/dev/null
8689 then
8690 CFLAGS="$CFLAGS -Werror -W"
8691 elif expr "x-W" : "x-m.*" >/dev/null
8692 then
8693 CFLAGS="$CFLAGS -Werror -W"
8694 else
8695 CFLAGS="$CFLAGS -W"
8696 fi
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699
8700 int
8701 main ()
8702 {
8703 return 0
8704 ;
8705 return 0;
8706 }
8707 _ACEOF
8708 if ac_fn_c_try_compile "$LINENO"; then :
8709
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8712 can_add_to_cflags=yes
8713 #
8714 # The compile supports this; do we have some C code for
8715 # which the warning should *not* appear?
8716 # We test the fourth argument because the third argument
8717 # could contain quotes, breaking the test.
8718 #
8719 if test "x" != "x"
8720 then
8721 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5
8723 $as_echo_n "checking whether -W ... " >&6; }
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726
8727 _ACEOF
8728 if ac_fn_c_try_compile "$LINENO"; then :
8729
8730 #
8731 # Not a problem.
8732 #
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735
8736 else
8737
8738 #
8739 # A problem.
8740 #
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8742 $as_echo "yes" >&6; }
8743 can_add_to_cflags=no
8744
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 fi
8748 CFLAGS="$save_CFLAGS"
8749 if test x"$can_add_to_cflags" = "xyes"
8750 then
8751 V_CCOPT="$V_CCOPT -W"
8752 fi
8753
8754 else
8755
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8758 CFLAGS="$save_CFLAGS"
8759
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762
8763
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
8765 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
8766 save_CFLAGS="$CFLAGS"
8767 if expr "x-Wall" : "x-W.*" >/dev/null
8768 then
8769 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
8770 elif expr "x-Wall" : "x-f.*" >/dev/null
8771 then
8772 CFLAGS="$CFLAGS -Werror -Wall"
8773 elif expr "x-Wall" : "x-m.*" >/dev/null
8774 then
8775 CFLAGS="$CFLAGS -Werror -Wall"
8776 else
8777 CFLAGS="$CFLAGS -Wall"
8778 fi
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781
8782 int
8783 main ()
8784 {
8785 return 0
8786 ;
8787 return 0;
8788 }
8789 _ACEOF
8790 if ac_fn_c_try_compile "$LINENO"; then :
8791
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8793 $as_echo "yes" >&6; }
8794 can_add_to_cflags=yes
8795 #
8796 # The compile supports this; do we have some C code for
8797 # which the warning should *not* appear?
8798 # We test the fourth argument because the third argument
8799 # could contain quotes, breaking the test.
8800 #
8801 if test "x" != "x"
8802 then
8803 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
8805 $as_echo_n "checking whether -Wall ... " >&6; }
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808
8809 _ACEOF
8810 if ac_fn_c_try_compile "$LINENO"; then :
8811
8812 #
8813 # Not a problem.
8814 #
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8817
8818 else
8819
8820 #
8821 # A problem.
8822 #
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8824 $as_echo "yes" >&6; }
8825 can_add_to_cflags=no
8826
8827 fi
8828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 fi
8830 CFLAGS="$save_CFLAGS"
8831 if test x"$can_add_to_cflags" = "xyes"
8832 then
8833 V_CCOPT="$V_CCOPT -Wall"
8834 fi
8835
8836 else
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 CFLAGS="$save_CFLAGS"
8841
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
8847 $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
8848 save_CFLAGS="$CFLAGS"
8849 if expr "x-Wcomma" : "x-W.*" >/dev/null
8850 then
8851 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma"
8852 elif expr "x-Wcomma" : "x-f.*" >/dev/null
8853 then
8854 CFLAGS="$CFLAGS -Werror -Wcomma"
8855 elif expr "x-Wcomma" : "x-m.*" >/dev/null
8856 then
8857 CFLAGS="$CFLAGS -Werror -Wcomma"
8858 else
8859 CFLAGS="$CFLAGS -Wcomma"
8860 fi
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863
8864 int
8865 main ()
8866 {
8867 return 0
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_c_try_compile "$LINENO"; then :
8873
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8875 $as_echo "yes" >&6; }
8876 can_add_to_cflags=yes
8877 #
8878 # The compile supports this; do we have some C code for
8879 # which the warning should *not* appear?
8880 # We test the fourth argument because the third argument
8881 # could contain quotes, breaking the test.
8882 #
8883 if test "x" != "x"
8884 then
8885 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
8887 $as_echo_n "checking whether -Wcomma ... " >&6; }
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8890
8891 _ACEOF
8892 if ac_fn_c_try_compile "$LINENO"; then :
8893
8894 #
8895 # Not a problem.
8896 #
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 $as_echo "no" >&6; }
8899
8900 else
8901
8902 #
8903 # A problem.
8904 #
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8906 $as_echo "yes" >&6; }
8907 can_add_to_cflags=no
8908
8909 fi
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 fi
8912 CFLAGS="$save_CFLAGS"
8913 if test x"$can_add_to_cflags" = "xyes"
8914 then
8915 V_CCOPT="$V_CCOPT -Wcomma"
8916 fi
8917
8918 else
8919
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8922 CFLAGS="$save_CFLAGS"
8923
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926
8927
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
8929 $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
8930 save_CFLAGS="$CFLAGS"
8931 if expr "x-Wdocumentation" : "x-W.*" >/dev/null
8932 then
8933 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation"
8934 elif expr "x-Wdocumentation" : "x-f.*" >/dev/null
8935 then
8936 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8937 elif expr "x-Wdocumentation" : "x-m.*" >/dev/null
8938 then
8939 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8940 else
8941 CFLAGS="$CFLAGS -Wdocumentation"
8942 fi
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945
8946 int
8947 main ()
8948 {
8949 return 0
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 if ac_fn_c_try_compile "$LINENO"; then :
8955
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8957 $as_echo "yes" >&6; }
8958 can_add_to_cflags=yes
8959 #
8960 # The compile supports this; do we have some C code for
8961 # which the warning should *not* appear?
8962 # We test the fourth argument because the third argument
8963 # could contain quotes, breaking the test.
8964 #
8965 if test "x" != "x"
8966 then
8967 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
8969 $as_echo_n "checking whether -Wdocumentation ... " >&6; }
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972
8973 _ACEOF
8974 if ac_fn_c_try_compile "$LINENO"; then :
8975
8976 #
8977 # Not a problem.
8978 #
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8981
8982 else
8983
8984 #
8985 # A problem.
8986 #
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8988 $as_echo "yes" >&6; }
8989 can_add_to_cflags=no
8990
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 fi
8994 CFLAGS="$save_CFLAGS"
8995 if test x"$can_add_to_cflags" = "xyes"
8996 then
8997 V_CCOPT="$V_CCOPT -Wdocumentation"
8998 fi
8999
9000 else
9001
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9004 CFLAGS="$save_CFLAGS"
9005
9006 fi
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008
9009
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
9011 $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
9012 save_CFLAGS="$CFLAGS"
9013 if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null
9014 then
9015 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral"
9016 elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null
9017 then
9018 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9019 elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null
9020 then
9021 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9022 else
9023 CFLAGS="$CFLAGS -Wformat-nonliteral"
9024 fi
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027
9028 int
9029 main ()
9030 {
9031 return 0
9032 ;
9033 return 0;
9034 }
9035 _ACEOF
9036 if ac_fn_c_try_compile "$LINENO"; then :
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9039 $as_echo "yes" >&6; }
9040 can_add_to_cflags=yes
9041 #
9042 # The compile supports this; do we have some C code for
9043 # which the warning should *not* appear?
9044 # We test the fourth argument because the third argument
9045 # could contain quotes, breaking the test.
9046 #
9047 if test "x" != "x"
9048 then
9049 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
9051 $as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054
9055 _ACEOF
9056 if ac_fn_c_try_compile "$LINENO"; then :
9057
9058 #
9059 # Not a problem.
9060 #
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9063
9064 else
9065
9066 #
9067 # A problem.
9068 #
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9070 $as_echo "yes" >&6; }
9071 can_add_to_cflags=no
9072
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 CFLAGS="$save_CFLAGS"
9077 if test x"$can_add_to_cflags" = "xyes"
9078 then
9079 V_CCOPT="$V_CCOPT -Wformat-nonliteral"
9080 fi
9081
9082 else
9083
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085 $as_echo "no" >&6; }
9086 CFLAGS="$save_CFLAGS"
9087
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090
9091
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
9093 $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
9094 save_CFLAGS="$CFLAGS"
9095 if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null
9096 then
9097 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn"
9098 elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null
9099 then
9100 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9101 elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null
9102 then
9103 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9104 else
9105 CFLAGS="$CFLAGS -Wmissing-noreturn"
9106 fi
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109
9110 int
9111 main ()
9112 {
9113 return 0
9114 ;
9115 return 0;
9116 }
9117 _ACEOF
9118 if ac_fn_c_try_compile "$LINENO"; then :
9119
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9121 $as_echo "yes" >&6; }
9122 can_add_to_cflags=yes
9123 #
9124 # The compile supports this; do we have some C code for
9125 # which the warning should *not* appear?
9126 # We test the fourth argument because the third argument
9127 # could contain quotes, breaking the test.
9128 #
9129 if test "x" != "x"
9130 then
9131 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
9133 $as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136
9137 _ACEOF
9138 if ac_fn_c_try_compile "$LINENO"; then :
9139
9140 #
9141 # Not a problem.
9142 #
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9145
9146 else
9147
9148 #
9149 # A problem.
9150 #
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9152 $as_echo "yes" >&6; }
9153 can_add_to_cflags=no
9154
9155 fi
9156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 fi
9158 CFLAGS="$save_CFLAGS"
9159 if test x"$can_add_to_cflags" = "xyes"
9160 then
9161 V_CCOPT="$V_CCOPT -Wmissing-noreturn"
9162 fi
9163
9164 else
9165
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 CFLAGS="$save_CFLAGS"
9169
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172
9173
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
9175 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
9176 save_CFLAGS="$CFLAGS"
9177 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
9178 then
9179 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
9180 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
9181 then
9182 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9183 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
9184 then
9185 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9186 else
9187 CFLAGS="$CFLAGS -Wmissing-prototypes"
9188 fi
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191
9192 int
9193 main ()
9194 {
9195 return 0
9196 ;
9197 return 0;
9198 }
9199 _ACEOF
9200 if ac_fn_c_try_compile "$LINENO"; then :
9201
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9203 $as_echo "yes" >&6; }
9204 can_add_to_cflags=yes
9205 #
9206 # The compile supports this; do we have some C code for
9207 # which the warning should *not* appear?
9208 # We test the fourth argument because the third argument
9209 # could contain quotes, breaking the test.
9210 #
9211 if test "x" != "x"
9212 then
9213 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
9215 $as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"; then :
9221
9222 #
9223 # Not a problem.
9224 #
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9227
9228 else
9229
9230 #
9231 # A problem.
9232 #
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9234 $as_echo "yes" >&6; }
9235 can_add_to_cflags=no
9236
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239 fi
9240 CFLAGS="$save_CFLAGS"
9241 if test x"$can_add_to_cflags" = "xyes"
9242 then
9243 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
9244 fi
9245
9246 else
9247
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }
9250 CFLAGS="$save_CFLAGS"
9251
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254
9255
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
9257 $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
9258 save_CFLAGS="$CFLAGS"
9259 if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null
9260 then
9261 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations"
9262 elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null
9263 then
9264 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9265 elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null
9266 then
9267 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9268 else
9269 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
9270 fi
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273
9274 int
9275 main ()
9276 {
9277 return 0
9278 ;
9279 return 0;
9280 }
9281 _ACEOF
9282 if ac_fn_c_try_compile "$LINENO"; then :
9283
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9285 $as_echo "yes" >&6; }
9286 can_add_to_cflags=yes
9287 #
9288 # The compile supports this; do we have some C code for
9289 # which the warning should *not* appear?
9290 # We test the fourth argument because the third argument
9291 # could contain quotes, breaking the test.
9292 #
9293 if test "x" != "x"
9294 then
9295 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
9297 $as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300
9301 _ACEOF
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303
9304 #
9305 # Not a problem.
9306 #
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9309
9310 else
9311
9312 #
9313 # A problem.
9314 #
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9316 $as_echo "yes" >&6; }
9317 can_add_to_cflags=no
9318
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9321 fi
9322 CFLAGS="$save_CFLAGS"
9323 if test x"$can_add_to_cflags" = "xyes"
9324 then
9325 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
9326 fi
9327
9328 else
9329
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331 $as_echo "no" >&6; }
9332 CFLAGS="$save_CFLAGS"
9333
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336
9337
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
9339 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
9340 save_CFLAGS="$CFLAGS"
9341 if expr "x-Wshadow" : "x-W.*" >/dev/null
9342 then
9343 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
9344 elif expr "x-Wshadow" : "x-f.*" >/dev/null
9345 then
9346 CFLAGS="$CFLAGS -Werror -Wshadow"
9347 elif expr "x-Wshadow" : "x-m.*" >/dev/null
9348 then
9349 CFLAGS="$CFLAGS -Werror -Wshadow"
9350 else
9351 CFLAGS="$CFLAGS -Wshadow"
9352 fi
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355
9356 int
9357 main ()
9358 {
9359 return 0
9360 ;
9361 return 0;
9362 }
9363 _ACEOF
9364 if ac_fn_c_try_compile "$LINENO"; then :
9365
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9367 $as_echo "yes" >&6; }
9368 can_add_to_cflags=yes
9369 #
9370 # The compile supports this; do we have some C code for
9371 # which the warning should *not* appear?
9372 # We test the fourth argument because the third argument
9373 # could contain quotes, breaking the test.
9374 #
9375 if test "x" != "x"
9376 then
9377 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
9379 $as_echo_n "checking whether -Wshadow ... " >&6; }
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9382
9383 _ACEOF
9384 if ac_fn_c_try_compile "$LINENO"; then :
9385
9386 #
9387 # Not a problem.
9388 #
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 $as_echo "no" >&6; }
9391
9392 else
9393
9394 #
9395 # A problem.
9396 #
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9398 $as_echo "yes" >&6; }
9399 can_add_to_cflags=no
9400
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 fi
9404 CFLAGS="$save_CFLAGS"
9405 if test x"$can_add_to_cflags" = "xyes"
9406 then
9407 V_CCOPT="$V_CCOPT -Wshadow"
9408 fi
9409
9410 else
9411
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 $as_echo "no" >&6; }
9414 CFLAGS="$save_CFLAGS"
9415
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418
9419
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
9421 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
9422 save_CFLAGS="$CFLAGS"
9423 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
9424 then
9425 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
9426 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
9427 then
9428 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9429 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
9430 then
9431 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9432 else
9433 CFLAGS="$CFLAGS -Wsign-compare"
9434 fi
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437
9438 int
9439 main ()
9440 {
9441 return 0
9442 ;
9443 return 0;
9444 }
9445 _ACEOF
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9449 $as_echo "yes" >&6; }
9450 can_add_to_cflags=yes
9451 #
9452 # The compile supports this; do we have some C code for
9453 # which the warning should *not* appear?
9454 # We test the fourth argument because the third argument
9455 # could contain quotes, breaking the test.
9456 #
9457 if test "x" != "x"
9458 then
9459 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
9461 $as_echo_n "checking whether -Wsign-compare ... " >&6; }
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464
9465 _ACEOF
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467
9468 #
9469 # Not a problem.
9470 #
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9473
9474 else
9475
9476 #
9477 # A problem.
9478 #
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9480 $as_echo "yes" >&6; }
9481 can_add_to_cflags=no
9482
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485 fi
9486 CFLAGS="$save_CFLAGS"
9487 if test x"$can_add_to_cflags" = "xyes"
9488 then
9489 V_CCOPT="$V_CCOPT -Wsign-compare"
9490 fi
9491
9492 else
9493
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9496 CFLAGS="$save_CFLAGS"
9497
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9500
9501
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
9503 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
9504 save_CFLAGS="$CFLAGS"
9505 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
9506 then
9507 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
9508 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
9509 then
9510 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9511 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
9512 then
9513 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9514 else
9515 CFLAGS="$CFLAGS -Wstrict-prototypes"
9516 fi
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519
9520 int
9521 main ()
9522 {
9523 return 0
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 if ac_fn_c_try_compile "$LINENO"; then :
9529
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9531 $as_echo "yes" >&6; }
9532 can_add_to_cflags=yes
9533 #
9534 # The compile supports this; do we have some C code for
9535 # which the warning should *not* appear?
9536 # We test the fourth argument because the third argument
9537 # could contain quotes, breaking the test.
9538 #
9539 if test "x" != "x"
9540 then
9541 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
9543 $as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9546
9547 _ACEOF
9548 if ac_fn_c_try_compile "$LINENO"; then :
9549
9550 #
9551 # Not a problem.
9552 #
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554 $as_echo "no" >&6; }
9555
9556 else
9557
9558 #
9559 # A problem.
9560 #
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9562 $as_echo "yes" >&6; }
9563 can_add_to_cflags=no
9564
9565 fi
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 fi
9568 CFLAGS="$save_CFLAGS"
9569 if test x"$can_add_to_cflags" = "xyes"
9570 then
9571 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
9572 fi
9573
9574 else
9575
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577 $as_echo "no" >&6; }
9578 CFLAGS="$save_CFLAGS"
9579
9580 fi
9581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582
9583
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
9585 $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
9586 save_CFLAGS="$CFLAGS"
9587 if expr "x-Wunused-parameter" : "x-W.*" >/dev/null
9588 then
9589 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter"
9590 elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null
9591 then
9592 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9593 elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null
9594 then
9595 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9596 else
9597 CFLAGS="$CFLAGS -Wunused-parameter"
9598 fi
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601
9602 int
9603 main ()
9604 {
9605 return 0
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"; then :
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9613 $as_echo "yes" >&6; }
9614 can_add_to_cflags=yes
9615 #
9616 # The compile supports this; do we have some C code for
9617 # which the warning should *not* appear?
9618 # We test the fourth argument because the third argument
9619 # could contain quotes, breaking the test.
9620 #
9621 if test "x" != "x"
9622 then
9623 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
9625 $as_echo_n "checking whether -Wunused-parameter ... " >&6; }
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628
9629 _ACEOF
9630 if ac_fn_c_try_compile "$LINENO"; then :
9631
9632 #
9633 # Not a problem.
9634 #
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9637
9638 else
9639
9640 #
9641 # A problem.
9642 #
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9644 $as_echo "yes" >&6; }
9645 can_add_to_cflags=no
9646
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649 fi
9650 CFLAGS="$save_CFLAGS"
9651 if test x"$can_add_to_cflags" = "xyes"
9652 then
9653 V_CCOPT="$V_CCOPT -Wunused-parameter"
9654 fi
9655
9656 else
9657
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9660 CFLAGS="$save_CFLAGS"
9661
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664
9665
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
9667 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
9668 save_CFLAGS="$CFLAGS"
9669 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
9670 then
9671 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
9672 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
9673 then
9674 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9675 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
9676 then
9677 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9678 else
9679 CFLAGS="$CFLAGS -Wused-but-marked-unused"
9680 fi
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9683
9684 int
9685 main ()
9686 {
9687 return 0
9688 ;
9689 return 0;
9690 }
9691 _ACEOF
9692 if ac_fn_c_try_compile "$LINENO"; then :
9693
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9695 $as_echo "yes" >&6; }
9696 can_add_to_cflags=yes
9697 #
9698 # The compile supports this; do we have some C code for
9699 # which the warning should *not* appear?
9700 # We test the fourth argument because the third argument
9701 # could contain quotes, breaking the test.
9702 #
9703 if test "x" != "x"
9704 then
9705 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
9707 $as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710
9711 _ACEOF
9712 if ac_fn_c_try_compile "$LINENO"; then :
9713
9714 #
9715 # Not a problem.
9716 #
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9719
9720 else
9721
9722 #
9723 # A problem.
9724 #
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9726 $as_echo "yes" >&6; }
9727 can_add_to_cflags=no
9728
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 fi
9732 CFLAGS="$save_CFLAGS"
9733 if test x"$can_add_to_cflags" = "xyes"
9734 then
9735 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
9736 fi
9737
9738 else
9739
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9742 CFLAGS="$save_CFLAGS"
9743
9744 fi
9745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9746
9747 # Warns about safeguards added in case the enums are
9748 # extended
9749 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
9750 #
9751 # This can cause problems with ntohs(), ntohl(),
9752 # htons(), and htonl() on some platforms, such
9753 # as OpenBSD 6.3 with Clang 5.0.1. I guess the
9754 # problem is that the macro that ultimately does
9755 # the byte-swapping involves a conditional
9756 # expression that tests whether the value being
9757 # swapped is a compile-time constant or not,
9758 # using __builtin_constant_p(), and, depending
9759 # on whether it is, does a compile-time swap or
9760 # a run-time swap; perhaps the compiler always
9761 # considers one of the two results of the
9762 # conditional expressin is never evaluated,
9763 # because the conditional check is done at
9764 # compile time, and thus always says "that
9765 # expression is never executed".
9766 #
9767 # (Perhaps there should be a way of flagging
9768 # an expression that you *want* evaluated at
9769 # compile time, so that the compiler 1) warns
9770 # if it *can't* be evaluated at compile time
9771 # and 2) *doesn't* warn that the true or false
9772 # branch will never be reached.)
9773 #
9774
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
9776 $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
9777 save_CFLAGS="$CFLAGS"
9778 if expr "x-Wunreachable-code" : "x-W.*" >/dev/null
9779 then
9780 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code"
9781 elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null
9782 then
9783 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
9784 elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null
9785 then
9786 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
9787 else
9788 CFLAGS="$CFLAGS -Wunreachable-code"
9789 fi
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792
9793 int
9794 main ()
9795 {
9796 return 0
9797 ;
9798 return 0;
9799 }
9800 _ACEOF
9801 if ac_fn_c_try_compile "$LINENO"; then :
9802
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9804 $as_echo "yes" >&6; }
9805 can_add_to_cflags=yes
9806 #
9807 # The compile supports this; do we have some C code for
9808 # which the warning should *not* appear?
9809 # We test the fourth argument because the third argument
9810 # could contain quotes, breaking the test.
9811 #
9812 if test "xgenerates warnings from ntohs()" != "x"
9813 then
9814 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5
9816 $as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 #include <arpa/inet.h>
9820
9821 unsigned short
9822 testme(unsigned short a)
9823 {
9824 return ntohs(a);
9825 }
9826
9827 _ACEOF
9828 if ac_fn_c_try_compile "$LINENO"; then :
9829
9830 #
9831 # Not a problem.
9832 #
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834 $as_echo "no" >&6; }
9835
9836 else
9837
9838 #
9839 # A problem.
9840 #
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9842 $as_echo "yes" >&6; }
9843 can_add_to_cflags=no
9844
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847 fi
9848 CFLAGS="$save_CFLAGS"
9849 if test x"$can_add_to_cflags" = "xyes"
9850 then
9851 V_CCOPT="$V_CCOPT -Wunreachable-code"
9852 fi
9853
9854 else
9855
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9858 CFLAGS="$save_CFLAGS"
9859
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshorten-64-to-32 option" >&5
9865 $as_echo_n "checking whether the compiler supports the -Wshorten-64-to-32 option... " >&6; }
9866 save_CFLAGS="$CFLAGS"
9867 if expr "x-Wshorten-64-to-32" : "x-W.*" >/dev/null
9868 then
9869 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshorten-64-to-32"
9870 elif expr "x-Wshorten-64-to-32" : "x-f.*" >/dev/null
9871 then
9872 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
9873 elif expr "x-Wshorten-64-to-32" : "x-m.*" >/dev/null
9874 then
9875 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
9876 else
9877 CFLAGS="$CFLAGS -Wshorten-64-to-32"
9878 fi
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9881
9882 int
9883 main ()
9884 {
9885 return 0
9886 ;
9887 return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"; then :
9891
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9893 $as_echo "yes" >&6; }
9894 can_add_to_cflags=yes
9895 #
9896 # The compile supports this; do we have some C code for
9897 # which the warning should *not* appear?
9898 # We test the fourth argument because the third argument
9899 # could contain quotes, breaking the test.
9900 #
9901 if test "x" != "x"
9902 then
9903 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshorten-64-to-32 " >&5
9905 $as_echo_n "checking whether -Wshorten-64-to-32 ... " >&6; }
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908
9909 _ACEOF
9910 if ac_fn_c_try_compile "$LINENO"; then :
9911
9912 #
9913 # Not a problem.
9914 #
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9917
9918 else
9919
9920 #
9921 # A problem.
9922 #
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; }
9925 can_add_to_cflags=no
9926
9927 fi
9928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9929 fi
9930 CFLAGS="$save_CFLAGS"
9931 if test x"$can_add_to_cflags" = "xyes"
9932 then
9933 V_CCOPT="$V_CCOPT -Wshorten-64-to-32"
9934 fi
9935
9936 else
9937
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939 $as_echo "no" >&6; }
9940 CFLAGS="$save_CFLAGS"
9941
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944
9945 fi
9946
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
9948 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
9949 if test "$GCC" = yes ; then
9950 #
9951 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
9952 # though it's not); we assume that, in this case, the flag
9953 # would be -M.
9954 #
9955 ac_lbl_dependency_flag="-M"
9956 else
9957 #
9958 # Not GCC or a compiler deemed to be GCC; what platform is
9959 # this? (We're assuming that if the compiler isn't GCC
9960 # it's the compiler from the vendor of the OS; that won't
9961 # necessarily be true for x86 platforms, where it might be
9962 # the Intel C compiler.)
9963 #
9964 case "$host_os" in
9965
9966 irix*|osf*|darwin*)
9967 #
9968 # MIPS C for IRIX, DEC C, and clang all use -M.
9969 #
9970 ac_lbl_dependency_flag="-M"
9971 ;;
9972
9973 solaris*)
9974 #
9975 # Sun C uses -xM.
9976 #
9977 ac_lbl_dependency_flag="-xM"
9978 ;;
9979
9980 hpux*)
9981 #
9982 # HP's older C compilers don't support this.
9983 # HP's newer C compilers support this with
9984 # either +M or +Make; the older compilers
9985 # interpret +M as something completely
9986 # different, so we use +Make so we don't
9987 # think it works with the older compilers.
9988 #
9989 ac_lbl_dependency_flag="+Make"
9990 ;;
9991
9992 *)
9993 #
9994 # Not one of the above; assume no support for
9995 # generating dependencies.
9996 #
9997 ac_lbl_dependency_flag=""
9998 ;;
9999 esac
10000 fi
10001
10002 #
10003 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
10004 # complain about it?
10005 #
10006 # Note: clang doesn't seem to exit with an error status when handed
10007 # an unknown non-warning error, even if you pass it
10008 # -Werror=unknown-warning-option. However, it always supports
10009 # -M, so the fact that this test always succeeds with clang
10010 # isn't an issue.
10011 #
10012 if test ! -z "$ac_lbl_dependency_flag"; then
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10015 int main(void) { return 0; }
10016 _ACEOF
10017 if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
10018 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
10019 ac_status=$?
10020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10021 test $ac_status = 0; }; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
10023 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
10024 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
10025 MKDEP='${srcdir}/mkdep'
10026 else
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10029 #
10030 # We can't run mkdep, so have "make depend" do
10031 # nothing.
10032 #
10033 MKDEP='${srcdir}/nomkdep'
10034 fi
10035 rm -rf conftest*
10036 else
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10039 #
10040 # We can't run mkdep, so have "make depend" do
10041 # nothing.
10042 #
10043 MKDEP='${srcdir}/nomkdep'
10044 fi
10045
10046
10047
10048 #
10049 # We used to set -n32 for IRIX 6 when not using GCC (presumed
10050 # to mean that we're using MIPS C or MIPSpro C); it specified
10051 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
10052 # not sure why that would be something to do *only* with a
10053 # .devel file; why should the ABI for which we produce code
10054 # depend on .devel?
10055 #
10056 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10057 name="lbl/os-$os.h"
10058 if test -f $name ; then
10059 ln -s $name os-proto.h
10060
10061 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
10062
10063 else
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
10065 $as_echo "$as_me: WARNING: can't find $name" >&2;}
10066 fi
10067 fi
10068
10069 #
10070 # Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
10071 #
10072 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
10073 #include <sys/types.h>
10074 #include <sys/socket.h>
10075
10076 "
10077 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10078
10079 cat >>confdefs.h <<_ACEOF
10080 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10081 _ACEOF
10082
10083
10084 fi
10085
10086
10087 #
10088 # Check to see if there's a sockaddr_storage structure.
10089 #
10090 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10091 #include <sys/types.h>
10092 #include <sys/socket.h>
10093
10094 "
10095 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10096
10097 cat >>confdefs.h <<_ACEOF
10098 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10099 _ACEOF
10100
10101
10102 fi
10103
10104
10105 #
10106 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
10107 # dl_module_id_1 member.
10108 #
10109 # NOTE: any failure means we conclude that it doesn't have that member,
10110 # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
10111 # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
10112 # it doesn't have that member (which is OK, as either we won't be
10113 # using code that would use that member, or we wouldn't compile in
10114 # any case).
10115 #
10116 ac_fn_c_check_member "$LINENO" "dl_hp_ppa_info_t" "dl_module_id_1" "ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" "
10117 #include <sys/types.h>
10118 #include <sys/dlpi.h>
10119 #include <sys/dlpi_ext.h>
10120
10121 "
10122 if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
10123
10124 cat >>confdefs.h <<_ACEOF
10125 #define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10126 _ACEOF
10127
10128
10129 fi
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162 # Check whether --enable-usb was given.
10163 if test "${enable_usb+set}" = set; then :
10164 enableval=$enable_usb;
10165 else
10166 enable_usb=yes
10167 fi
10168
10169
10170 if test "xxx_only" = yes; then
10171 # User requested something-else-only pcap, so they don't
10172 # want USB support.
10173 enable_usb=no
10174 fi
10175
10176 if test "x$enable_usb" != "xno" ; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
10178 $as_echo_n "checking for USB sniffing support... " >&6; }
10179 case "$host_os" in
10180 linux*)
10181
10182 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
10183
10184 USB_SRC=pcap-usb-linux.c
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10186 $as_echo "yes" >&6; }
10187 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10188 if test $? -ne 0 ; then
10189 ac_usb_dev_name="usbmon"
10190 fi
10191
10192 cat >>confdefs.h <<_ACEOF
10193 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10194 _ACEOF
10195
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10197 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10198 #
10199 # Do we have a version of <linux/compiler.h> available?
10200 # If so, we might need it for <linux/usbdevice_fs.h>.
10201 #
10202 for ac_header in linux/compiler.h
10203 do :
10204 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
10205 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
10206 cat >>confdefs.h <<_ACEOF
10207 #define HAVE_LINUX_COMPILER_H 1
10208 _ACEOF
10209
10210 fi
10211
10212 done
10213
10214 if test "$ac_cv_header_linux_compiler_h" = yes; then
10215 #
10216 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10217 #
10218 for ac_header in linux/usbdevice_fs.h
10219 do :
10220 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
10221 "
10222 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10223 cat >>confdefs.h <<_ACEOF
10224 #define HAVE_LINUX_USBDEVICE_FS_H 1
10225 _ACEOF
10226
10227 fi
10228
10229 done
10230
10231 else
10232 for ac_header in linux/usbdevice_fs.h
10233 do :
10234 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
10235 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10236 cat >>confdefs.h <<_ACEOF
10237 #define HAVE_LINUX_USBDEVICE_FS_H 1
10238 _ACEOF
10239
10240 fi
10241
10242 done
10243
10244 fi
10245 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10246 #
10247 # OK, does it define bRequestType? Older versions of the kernel
10248 # define fields with names like "requesttype, "request", and
10249 # "value", rather than "bRequestType", "bRequest", and
10250 # "wValue".
10251 #
10252 ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
10253 $ac_includes_default
10254 #ifdef HAVE_LINUX_COMPILER_H
10255 #include <linux/compiler.h>
10256 #endif
10257 #include <linux/usbdevice_fs.h>
10258
10259 "
10260 if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
10261
10262 cat >>confdefs.h <<_ACEOF
10263 #define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10264 _ACEOF
10265
10266
10267 fi
10268
10269 fi
10270 ;;
10271 freebsd*)
10272 #
10273 # This just uses BPF in FreeBSD 8.4 and later; we don't need
10274 # to check for anything special for capturing.
10275 #
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
10277 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
10278 ;;
10279
10280 *)
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10283 ;;
10284 esac
10285 fi
10286
10287
10288
10289 if test "xxx_only" != yes; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
10291 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
10292 case "$host_os" in
10293 linux*)
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10295 $as_echo "yes" >&6; }
10296 #
10297 # Life's too short to deal with trying to get this to compile
10298 # if you don't get the right types defined with
10299 # __KERNEL_STRICT_NAMES getting defined by some other include.
10300 #
10301 # Check whether the includes Just Work. If not, don't turn on
10302 # netfilter support.
10303 #
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
10305 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
10306 if ${ac_cv_netfilter_can_compile+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311
10312 $ac_includes_default
10313 #include <sys/socket.h>
10314 #include <netinet/in.h>
10315 #include <linux/types.h>
10316
10317 #include <linux/netlink.h>
10318 #include <linux/netfilter.h>
10319 #include <linux/netfilter/nfnetlink.h>
10320 #include <linux/netfilter/nfnetlink_log.h>
10321 #include <linux/netfilter/nfnetlink_queue.h>
10322 int
10323 main ()
10324 {
10325
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_compile "$LINENO"; then :
10331 ac_cv_netfilter_can_compile=yes
10332 else
10333 ac_cv_netfilter_can_compile=no
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10336 fi
10337
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
10339 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
10340 if test $ac_cv_netfilter_can_compile = yes ; then
10341
10342 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
10343
10344 NETFILTER_SRC=pcap-netfilter-linux.c
10345 fi
10346 ;;
10347 *)
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 $as_echo "no" >&6; }
10350 ;;
10351 esac
10352 fi
10353
10354
10355
10356 # Check whether --enable-netmap was given.
10357 if test "${enable_netmap+set}" = set; then :
10358 enableval=$enable_netmap;
10359 else
10360 enable_netmap=yes
10361 fi
10362
10363
10364 if test "x$enable_netmap" != "xno" ; then
10365 #
10366 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
10367 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
10368 # is defined, for example, as it includes a non-existent malloc.h
10369 # header.
10370 #
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
10372 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
10373 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10378
10379 $ac_includes_default
10380 #define NETMAP_WITH_LIBS
10381 #include <net/netmap_user.h>
10382 int
10383 main ()
10384 {
10385
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 if ac_fn_c_try_compile "$LINENO"; then :
10391 ac_cv_net_netmap_user_can_compile=yes
10392 else
10393 ac_cv_net_netmap_user_can_compile=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 fi
10397
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
10399 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
10400 if test $ac_cv_net_netmap_user_can_compile = yes ; then
10401
10402 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
10403
10404 NETMAP_SRC=pcap-netmap.c
10405 fi
10406
10407
10408 fi
10409
10410 # Check for DPDK support, defualt no. --enable-dpdk shall be setted explicitly.
10411 # Check whether --enable-dpdk was given.
10412 if test "${enable_dpdk+set}" = set; then :
10413 enableval=$enable_dpdk; enable_dpdk=$enableval
10414 else
10415 enable_dpdk=no
10416 fi
10417
10418
10419
10420 # Check whether --with-dpdk-includes was given.
10421 if test "${with_dpdk_includes+set}" = set; then :
10422 withval=$with_dpdk_includes;
10423 # User wants DPDK support and has specified a header directory, so use the provided value.
10424 dpdk_include_dir=$withval
10425
10426 fi
10427
10428
10429
10430 # Check whether --with-dpdk-libraries was given.
10431 if test "${with_dpdk_libraries+set}" = set; then :
10432 withval=$with_dpdk_libraries;
10433 # User wants DPDK support and has specified a library directory, so use the provided value.
10434 dpdk_lib_dir=$withval
10435
10436 fi
10437
10438
10439 if test "x$enable_dpdk" != "xno" ; then
10440 # If necessary, set default paths for DPDK API headers and libraries.
10441 if test -z "$dpdk_include_dir"; then
10442 dpdk_include_dir="$RTE_SDK/$RTE_TARGET/include"
10443 fi
10444
10445 if test -z "$dpdk_lib_dir"; then
10446 dpdk_lib_dir="$RTE_SDK/$RTE_TARGET/lib"
10447 fi
10448 DPDK_MACHINE_CFLAGS="-march=native"
10449 DPDK_CFLAGS="$DPDK_MACHINE_CFLAGS -I$dpdk_include_dir"
10450 DPDK_LDFLAGS="-L$dpdk_lib_dir -ldpdk -lrt -lm -lnuma -ldl -pthread"
10451 DPDK_LIBS=$DPDK_LDFLAGS
10452 CFLAGS="$CFLAGS $DPDK_CFLAGS"
10453 LIBS="$LIBS $DPDK_LIBS"
10454 LDFLAGS="$LDFLAGS $DPDK_LDFLAGS"
10455 V_INCLS="$V_INCLS $DPDK_CFLAGS"
10456 if test $enable_dpdk = yes ; then
10457
10458 $as_echo "#define PCAP_SUPPORT_DPDK 1" >>confdefs.h
10459
10460 DPDK_SRC=pcap-dpdk.c
10461 fi
10462 fi
10463
10464
10465
10466 # Check whether --enable-bluetooth was given.
10467 if test "${enable_bluetooth+set}" = set; then :
10468 enableval=$enable_bluetooth;
10469 else
10470 enable_bluetooth=ifsupportavailable
10471 fi
10472
10473
10474 if test "xxx_only" = yes; then
10475 # User requested something-else-only pcap, so they don't
10476 # want Bluetooth support.
10477 enable_bluetooth=no
10478 fi
10479
10480 if test "x$enable_bluetooth" != "xno" ; then
10481 case "$host_os" in
10482 linux*)
10483 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
10484 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
10485
10486 #
10487 # We have bluetooth.h, so we support Bluetooth
10488 # sniffing.
10489 #
10490
10491 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
10492
10493 BT_SRC=pcap-bt-linux.c
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
10495 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
10496 ac_lbl_bluetooth_available=yes
10497
10498 #
10499 # OK, does struct sockaddr_hci have an hci_channel
10500 # member?
10501 #
10502 ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
10503 #include <bluetooth/bluetooth.h>
10504 #include <bluetooth/hci.h>
10505
10506 "
10507 if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
10508
10509 cat >>confdefs.h <<_ACEOF
10510 #define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
10511 _ACEOF
10512
10513
10514 #
10515 # Yes; is HCI_CHANNEL_MONITOR defined?
10516 #
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
10518 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
10519 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524
10525 #include <bluetooth/bluetooth.h>
10526 #include <bluetooth/hci.h>
10527
10528 int
10529 main ()
10530 {
10531
10532 u_int i = HCI_CHANNEL_MONITOR;
10533
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 if ac_fn_c_try_compile "$LINENO"; then :
10539
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10541 $as_echo "yes" >&6; }
10542
10543 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
10544
10545 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
10546
10547 else
10548
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10551
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554 fi
10555
10556
10557 fi
10558
10559
10560 else
10561
10562 #
10563 # We don't have bluetooth.h, so we don't support
10564 # Bluetooth sniffing.
10565 #
10566 if test "x$enable_bluetooth" = "xyes" ; then
10567 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10570 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10571 fi
10572
10573 fi
10574
10575
10576 ;;
10577 *)
10578 if test "x$enable_bluetooth" = "xyes" ; then
10579 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
10582 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10583 fi
10584 ;;
10585 esac
10586
10587
10588
10589 fi
10590
10591 # Check whether --enable-dbus was given.
10592 if test "${enable_dbus+set}" = set; then :
10593 enableval=$enable_dbus;
10594 else
10595 enable_dbus=ifavailable
10596 fi
10597
10598
10599 if test "xxx_only" = yes; then
10600 # User requested something-else-only pcap, so they don't
10601 # want D-Bus support.
10602 enable_dbus=no
10603 fi
10604
10605 if test "x$enable_dbus" != "xno"; then
10606 if test "x$enable_dbus" = "xyes"; then
10607 case "$host_os" in
10608
10609 darwin*)
10610 #
10611 # We don't support D-Bus sniffing on macOS; see
10612 #
10613 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10614 #
10615 # The user requested it, so fail.
10616 #
10617 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
10618 esac
10619 else
10620 case "$host_os" in
10621
10622 darwin*)
10623 #
10624 # We don't support D-Bus sniffing on macOS; see
10625 #
10626 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10627 #
10628 # The user dind't explicitly request it, so just
10629 # silently refuse to enable it.
10630 #
10631 enable_dbus="no"
10632 ;;
10633 esac
10634 fi
10635 fi
10636
10637 if test "x$enable_dbus" != "xno"; then
10638 # Extract the first word of "pkg-config", so it can be a program name with args.
10639 set dummy pkg-config; ac_word=$2
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10641 $as_echo_n "checking for $ac_word... " >&6; }
10642 if ${ac_cv_prog_PKGCONFIG+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 if test -n "$PKGCONFIG"; then
10646 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
10647 else
10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10649 for as_dir in $PATH
10650 do
10651 IFS=$as_save_IFS
10652 test -z "$as_dir" && as_dir=.
10653 for ac_exec_ext in '' $ac_executable_extensions; do
10654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10655 ac_cv_prog_PKGCONFIG="pkg-config"
10656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10657 break 2
10658 fi
10659 done
10660 done
10661 IFS=$as_save_IFS
10662
10663 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
10664 fi
10665 fi
10666 PKGCONFIG=$ac_cv_prog_PKGCONFIG
10667 if test -n "$PKGCONFIG"; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10669 $as_echo "$PKGCONFIG" >&6; }
10670 else
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; }
10673 fi
10674
10675
10676 if test "x$PKGCONFIG" != "xno"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
10678 $as_echo_n "checking for D-Bus... " >&6; }
10679 if "$PKGCONFIG" dbus-1; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681 $as_echo "yes" >&6; }
10682 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
10683 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
10684 save_CFLAGS="$CFLAGS"
10685 save_LIBS="$LIBS"
10686 CFLAGS="$CFLAGS $DBUS_CFLAGS"
10687 LIBS="$LIBS $DBUS_LIBS"
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
10689 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 #include <string.h>
10693
10694 #include <time.h>
10695 #include <sys/time.h>
10696
10697 #include <dbus/dbus.h>
10698 int
10699 main ()
10700 {
10701 return dbus_connection_read_write(NULL, 0);
10702 ;
10703 return 0;
10704 }
10705 _ACEOF
10706 if ac_fn_c_try_link "$LINENO"; then :
10707
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10709 $as_echo "yes" >&6; }
10710
10711 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
10712
10713 DBUS_SRC=pcap-dbus.c
10714 V_INCLS="$V_INCLS $DBUS_CFLAGS"
10715
10716 else
10717
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10720 if test "x$enable_dbus" = "xyes"; then
10721 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
10722 fi
10723 LIBS="$save_LIBS"
10724
10725 fi
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 CFLAGS="$save_CFLAGS"
10729 else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; }
10732 if test "x$enable_dbus" = "xyes"; then
10733 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
10734 fi
10735 fi
10736 fi
10737
10738
10739 fi
10740
10741 # Check whether --enable-rdma was given.
10742 if test "${enable_rdma+set}" = set; then :
10743 enableval=$enable_rdma;
10744 else
10745 enable_rdma=ifavailable
10746 fi
10747
10748
10749 if test "xxx_only" = yes; then
10750 # User requested something-else-only pcap, so they don't
10751 # want RDMA support.
10752 enable_rdma=no
10753 fi
10754
10755 if test "x$enable_rdma" != "xno"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
10757 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
10758 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-libverbs $LIBS"
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10765
10766 /* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 char ibv_get_device_list ();
10773 int
10774 main ()
10775 {
10776 return ibv_get_device_list ();
10777 ;
10778 return 0;
10779 }
10780 _ACEOF
10781 if ac_fn_c_try_link "$LINENO"; then :
10782 ac_cv_lib_ibverbs_ibv_get_device_list=yes
10783 else
10784 ac_cv_lib_ibverbs_ibv_get_device_list=no
10785 fi
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LIBS=$ac_check_lib_save_LIBS
10789 fi
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
10791 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
10792 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
10793
10794 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
10795 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
10796
10797 #
10798 # ibv_create_flow may be defined as a static inline
10799 # function in infiniband/verbs.h, so we can't
10800 # use AC_CHECK_LIB.
10801 #
10802 # Too bad autoconf has no AC_SYMBOL_EXISTS()
10803 # macro that works like CMake's check_symbol_exists()
10804 # function, to check do a compile check like
10805 # this (they do a clever trick to avoid having
10806 # to know the function's signature).
10807 #
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
10809 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812
10813 #include <infiniband/verbs.h>
10814
10815 int
10816 main ()
10817 {
10818
10819 (void) ibv_create_flow((struct ibv_qp *) NULL,
10820 (struct ibv_flow_attr *) NULL);
10821
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_link "$LINENO"; then :
10827
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10829 $as_echo "yes" >&6; }
10830
10831 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
10832
10833 RDMA_SRC=pcap-rdmasniff.c
10834 LIBS="-libverbs $LIBS"
10835
10836 else
10837
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10840
10841
10842 fi
10843 rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845
10846 fi
10847
10848
10849
10850 fi
10851
10852
10853
10854 fi
10855
10856 # Find a good install program. We prefer a C program (faster),
10857 # so one script is as good as another. But avoid the broken or
10858 # incompatible versions:
10859 # SysV /etc/install, /usr/sbin/install
10860 # SunOS /usr/etc/install
10861 # IRIX /sbin/install
10862 # AIX /bin/install
10863 # AmigaOS /C/install, which installs bootblocks on floppy discs
10864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10867 # OS/2's system install, which has a completely different semantic
10868 # ./install, which can be erroneously created by make from ./install.sh.
10869 # Reject install programs that cannot install multiple files.
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10871 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10872 if test -z "$INSTALL"; then
10873 if ${ac_cv_path_install+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877 for as_dir in $PATH
10878 do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 # Account for people who put trailing slashes in PATH elements.
10882 case $as_dir/ in #((
10883 ./ | .// | /[cC]/* | \
10884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10885 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10886 /usr/ucb/* ) ;;
10887 *)
10888 # OSF1 and SCO ODT 3.0 have their own names for install.
10889 # Don't use installbsd from OSF since it installs stuff as root
10890 # by default.
10891 for ac_prog in ginstall scoinst install; do
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10894 if test $ac_prog = install &&
10895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10896 # AIX install. It has an incompatible calling convention.
10897 :
10898 elif test $ac_prog = install &&
10899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10900 # program-specific install script used by HP pwplus--don't use.
10901 :
10902 else
10903 rm -rf conftest.one conftest.two conftest.dir
10904 echo one > conftest.one
10905 echo two > conftest.two
10906 mkdir conftest.dir
10907 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10908 test -s conftest.one && test -s conftest.two &&
10909 test -s conftest.dir/conftest.one &&
10910 test -s conftest.dir/conftest.two
10911 then
10912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10913 break 3
10914 fi
10915 fi
10916 fi
10917 done
10918 done
10919 ;;
10920 esac
10921
10922 done
10923 IFS=$as_save_IFS
10924
10925 rm -rf conftest.one conftest.two conftest.dir
10926
10927 fi
10928 if test "${ac_cv_path_install+set}" = set; then
10929 INSTALL=$ac_cv_path_install
10930 else
10931 # As a last resort, use the slow shell script. Don't cache a
10932 # value for INSTALL within a source directory, because that will
10933 # break other packages using the cache if that directory is
10934 # removed, or if the value is a relative name.
10935 INSTALL=$ac_install_sh
10936 fi
10937 fi
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10939 $as_echo "$INSTALL" >&6; }
10940
10941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10942 # It thinks the first close brace ends the variable substitution.
10943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10944
10945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10946
10947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10948
10949
10950 ac_config_headers="$ac_config_headers config.h"
10951
10952
10953 ac_config_commands="$ac_config_commands default-1"
10954
10955 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_immediate_mode.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile rpcapd/rpcapd.manadmin testprogs/Makefile"
10956
10957 cat >confcache <<\_ACEOF
10958 # This file is a shell script that caches the results of configure
10959 # tests run on this system so they can be shared between configure
10960 # scripts and configure runs, see configure's option --config-cache.
10961 # It is not useful on other systems. If it contains results you don't
10962 # want to keep, you may remove or edit it.
10963 #
10964 # config.status only pays attention to the cache file if you give it
10965 # the --recheck option to rerun configure.
10966 #
10967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10969 # following values.
10970
10971 _ACEOF
10972
10973 # The following way of writing the cache mishandles newlines in values,
10974 # but we know of no workaround that is simple, portable, and efficient.
10975 # So, we kill variables containing newlines.
10976 # Ultrix sh set writes to stderr and can't be redirected directly,
10977 # and sets the high bit in the cache file unless we assign to the vars.
10978 (
10979 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10980 eval ac_val=\$$ac_var
10981 case $ac_val in #(
10982 *${as_nl}*)
10983 case $ac_var in #(
10984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10986 esac
10987 case $ac_var in #(
10988 _ | IFS | as_nl) ;; #(
10989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10990 *) { eval $ac_var=; unset $ac_var;} ;;
10991 esac ;;
10992 esac
10993 done
10994
10995 (set) 2>&1 |
10996 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10997 *${as_nl}ac_space=\ *)
10998 # `set' does not quote correctly, so add quotes: double-quote
10999 # substitution turns \\\\ into \\, and sed turns \\ into \.
11000 sed -n \
11001 "s/'/'\\\\''/g;
11002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11003 ;; #(
11004 *)
11005 # `set' quotes correctly as required by POSIX, so do not add quotes.
11006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11007 ;;
11008 esac |
11009 sort
11010 ) |
11011 sed '
11012 /^ac_cv_env_/b end
11013 t clear
11014 :clear
11015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11016 t end
11017 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11018 :end' >>confcache
11019 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11020 if test -w "$cache_file"; then
11021 if test "x$cache_file" != "x/dev/null"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11023 $as_echo "$as_me: updating cache $cache_file" >&6;}
11024 if test ! -f "$cache_file" || test -h "$cache_file"; then
11025 cat confcache >"$cache_file"
11026 else
11027 case $cache_file in #(
11028 */* | ?:*)
11029 mv -f confcache "$cache_file"$$ &&
11030 mv -f "$cache_file"$$ "$cache_file" ;; #(
11031 *)
11032 mv -f confcache "$cache_file" ;;
11033 esac
11034 fi
11035 fi
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11038 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11039 fi
11040 fi
11041 rm -f confcache
11042
11043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11044 # Let make expand exec_prefix.
11045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11046
11047 DEFS=-DHAVE_CONFIG_H
11048
11049 ac_libobjs=
11050 ac_ltlibobjs=
11051 U=
11052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11053 # 1. Remove the extension, and $U if already installed.
11054 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11055 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11056 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11057 # will be set to the directory where LIBOBJS objects are built.
11058 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11059 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11060 done
11061 LIBOBJS=$ac_libobjs
11062
11063 LTLIBOBJS=$ac_ltlibobjs
11064
11065
11066
11067 : "${CONFIG_STATUS=./config.status}"
11068 ac_write_fail=0
11069 ac_clean_files_save=$ac_clean_files
11070 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11072 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11073 as_write_fail=0
11074 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11075 #! $SHELL
11076 # Generated by $as_me.
11077 # Run this file to recreate the current configuration.
11078 # Compiler output produced by configure, useful for debugging
11079 # configure, is in config.log if it exists.
11080
11081 debug=false
11082 ac_cs_recheck=false
11083 ac_cs_silent=false
11084
11085 SHELL=\${CONFIG_SHELL-$SHELL}
11086 export SHELL
11087 _ASEOF
11088 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11089 ## -------------------- ##
11090 ## M4sh Initialization. ##
11091 ## -------------------- ##
11092
11093 # Be more Bourne compatible
11094 DUALCASE=1; export DUALCASE # for MKS sh
11095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11096 emulate sh
11097 NULLCMD=:
11098 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11099 # is contrary to our usage. Disable this feature.
11100 alias -g '${1+"$@"}'='"$@"'
11101 setopt NO_GLOB_SUBST
11102 else
11103 case `(set -o) 2>/dev/null` in #(
11104 *posix*) :
11105 set -o posix ;; #(
11106 *) :
11107 ;;
11108 esac
11109 fi
11110
11111
11112 as_nl='
11113 '
11114 export as_nl
11115 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11116 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11118 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11119 # Prefer a ksh shell builtin over an external printf program on Solaris,
11120 # but without wasting forks for bash or zsh.
11121 if test -z "$BASH_VERSION$ZSH_VERSION" \
11122 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11123 as_echo='print -r --'
11124 as_echo_n='print -rn --'
11125 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11126 as_echo='printf %s\n'
11127 as_echo_n='printf %s'
11128 else
11129 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11130 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11131 as_echo_n='/usr/ucb/echo -n'
11132 else
11133 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11134 as_echo_n_body='eval
11135 arg=$1;
11136 case $arg in #(
11137 *"$as_nl"*)
11138 expr "X$arg" : "X\\(.*\\)$as_nl";
11139 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11140 esac;
11141 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11142 '
11143 export as_echo_n_body
11144 as_echo_n='sh -c $as_echo_n_body as_echo'
11145 fi
11146 export as_echo_body
11147 as_echo='sh -c $as_echo_body as_echo'
11148 fi
11149
11150 # The user is always right.
11151 if test "${PATH_SEPARATOR+set}" != set; then
11152 PATH_SEPARATOR=:
11153 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11154 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11155 PATH_SEPARATOR=';'
11156 }
11157 fi
11158
11159
11160 # IFS
11161 # We need space, tab and new line, in precisely that order. Quoting is
11162 # there to prevent editors from complaining about space-tab.
11163 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11164 # splitting by setting IFS to empty value.)
11165 IFS=" "" $as_nl"
11166
11167 # Find who we are. Look in the path if we contain no directory separator.
11168 as_myself=
11169 case $0 in #((
11170 *[\\/]* ) as_myself=$0 ;;
11171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11173 do
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
11176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11177 done
11178 IFS=$as_save_IFS
11179
11180 ;;
11181 esac
11182 # We did not find ourselves, most probably we were run as `sh COMMAND'
11183 # in which case we are not to be found in the path.
11184 if test "x$as_myself" = x; then
11185 as_myself=$0
11186 fi
11187 if test ! -f "$as_myself"; then
11188 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11189 exit 1
11190 fi
11191
11192 # Unset variables that we do not need and which cause bugs (e.g. in
11193 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11194 # suppresses any "Segmentation fault" message there. '((' could
11195 # trigger a bug in pdksh 5.2.14.
11196 for as_var in BASH_ENV ENV MAIL MAILPATH
11197 do eval test x\${$as_var+set} = xset \
11198 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11199 done
11200 PS1='$ '
11201 PS2='> '
11202 PS4='+ '
11203
11204 # NLS nuisances.
11205 LC_ALL=C
11206 export LC_ALL
11207 LANGUAGE=C
11208 export LANGUAGE
11209
11210 # CDPATH.
11211 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11212
11213
11214 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11215 # ----------------------------------------
11216 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11217 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11218 # script with STATUS, using 1 if that was 0.
11219 as_fn_error ()
11220 {
11221 as_status=$1; test $as_status -eq 0 && as_status=1
11222 if test "$4"; then
11223 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11224 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11225 fi
11226 $as_echo "$as_me: error: $2" >&2
11227 as_fn_exit $as_status
11228 } # as_fn_error
11229
11230
11231 # as_fn_set_status STATUS
11232 # -----------------------
11233 # Set $? to STATUS, without forking.
11234 as_fn_set_status ()
11235 {
11236 return $1
11237 } # as_fn_set_status
11238
11239 # as_fn_exit STATUS
11240 # -----------------
11241 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11242 as_fn_exit ()
11243 {
11244 set +e
11245 as_fn_set_status $1
11246 exit $1
11247 } # as_fn_exit
11248
11249 # as_fn_unset VAR
11250 # ---------------
11251 # Portably unset VAR.
11252 as_fn_unset ()
11253 {
11254 { eval $1=; unset $1;}
11255 }
11256 as_unset=as_fn_unset
11257 # as_fn_append VAR VALUE
11258 # ----------------------
11259 # Append the text in VALUE to the end of the definition contained in VAR. Take
11260 # advantage of any shell optimizations that allow amortized linear growth over
11261 # repeated appends, instead of the typical quadratic growth present in naive
11262 # implementations.
11263 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11264 eval 'as_fn_append ()
11265 {
11266 eval $1+=\$2
11267 }'
11268 else
11269 as_fn_append ()
11270 {
11271 eval $1=\$$1\$2
11272 }
11273 fi # as_fn_append
11274
11275 # as_fn_arith ARG...
11276 # ------------------
11277 # Perform arithmetic evaluation on the ARGs, and store the result in the
11278 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11279 # must be portable across $(()) and expr.
11280 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11281 eval 'as_fn_arith ()
11282 {
11283 as_val=$(( $* ))
11284 }'
11285 else
11286 as_fn_arith ()
11287 {
11288 as_val=`expr "$@" || test $? -eq 1`
11289 }
11290 fi # as_fn_arith
11291
11292
11293 if expr a : '\(a\)' >/dev/null 2>&1 &&
11294 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11295 as_expr=expr
11296 else
11297 as_expr=false
11298 fi
11299
11300 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11301 as_basename=basename
11302 else
11303 as_basename=false
11304 fi
11305
11306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11307 as_dirname=dirname
11308 else
11309 as_dirname=false
11310 fi
11311
11312 as_me=`$as_basename -- "$0" ||
11313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11314 X"$0" : 'X\(//\)$' \| \
11315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11316 $as_echo X/"$0" |
11317 sed '/^.*\/\([^/][^/]*\)\/*$/{
11318 s//\1/
11319 q
11320 }
11321 /^X\/\(\/\/\)$/{
11322 s//\1/
11323 q
11324 }
11325 /^X\/\(\/\).*/{
11326 s//\1/
11327 q
11328 }
11329 s/.*/./; q'`
11330
11331 # Avoid depending upon Character Ranges.
11332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11335 as_cr_digits='0123456789'
11336 as_cr_alnum=$as_cr_Letters$as_cr_digits
11337
11338 ECHO_C= ECHO_N= ECHO_T=
11339 case `echo -n x` in #(((((
11340 -n*)
11341 case `echo 'xy\c'` in
11342 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11343 xy) ECHO_C='\c';;
11344 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11345 ECHO_T=' ';;
11346 esac;;
11347 *)
11348 ECHO_N='-n';;
11349 esac
11350
11351 rm -f conf$$ conf$$.exe conf$$.file
11352 if test -d conf$$.dir; then
11353 rm -f conf$$.dir/conf$$.file
11354 else
11355 rm -f conf$$.dir
11356 mkdir conf$$.dir 2>/dev/null
11357 fi
11358 if (echo >conf$$.file) 2>/dev/null; then
11359 if ln -s conf$$.file conf$$ 2>/dev/null; then
11360 as_ln_s='ln -s'
11361 # ... but there are two gotchas:
11362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11364 # In both cases, we have to default to `cp -pR'.
11365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11366 as_ln_s='cp -pR'
11367 elif ln conf$$.file conf$$ 2>/dev/null; then
11368 as_ln_s=ln
11369 else
11370 as_ln_s='cp -pR'
11371 fi
11372 else
11373 as_ln_s='cp -pR'
11374 fi
11375 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11376 rmdir conf$$.dir 2>/dev/null
11377
11378
11379 # as_fn_mkdir_p
11380 # -------------
11381 # Create "$as_dir" as a directory, including parents if necessary.
11382 as_fn_mkdir_p ()
11383 {
11384
11385 case $as_dir in #(
11386 -*) as_dir=./$as_dir;;
11387 esac
11388 test -d "$as_dir" || eval $as_mkdir_p || {
11389 as_dirs=
11390 while :; do
11391 case $as_dir in #(
11392 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11393 *) as_qdir=$as_dir;;
11394 esac
11395 as_dirs="'$as_qdir' $as_dirs"
11396 as_dir=`$as_dirname -- "$as_dir" ||
11397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11398 X"$as_dir" : 'X\(//\)[^/]' \| \
11399 X"$as_dir" : 'X\(//\)$' \| \
11400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11401 $as_echo X"$as_dir" |
11402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11403 s//\1/
11404 q
11405 }
11406 /^X\(\/\/\)[^/].*/{
11407 s//\1/
11408 q
11409 }
11410 /^X\(\/\/\)$/{
11411 s//\1/
11412 q
11413 }
11414 /^X\(\/\).*/{
11415 s//\1/
11416 q
11417 }
11418 s/.*/./; q'`
11419 test -d "$as_dir" && break
11420 done
11421 test -z "$as_dirs" || eval "mkdir $as_dirs"
11422 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11423
11424
11425 } # as_fn_mkdir_p
11426 if mkdir -p . 2>/dev/null; then
11427 as_mkdir_p='mkdir -p "$as_dir"'
11428 else
11429 test -d ./-p && rmdir ./-p
11430 as_mkdir_p=false
11431 fi
11432
11433
11434 # as_fn_executable_p FILE
11435 # -----------------------
11436 # Test if FILE is an executable regular file.
11437 as_fn_executable_p ()
11438 {
11439 test -f "$1" && test -x "$1"
11440 } # as_fn_executable_p
11441 as_test_x='test -x'
11442 as_executable_p=as_fn_executable_p
11443
11444 # Sed expression to map a string onto a valid CPP name.
11445 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11446
11447 # Sed expression to map a string onto a valid variable name.
11448 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11449
11450
11451 exec 6>&1
11452 ## ----------------------------------- ##
11453 ## Main body of $CONFIG_STATUS script. ##
11454 ## ----------------------------------- ##
11455 _ASEOF
11456 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11457
11458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11459 # Save the log message, to keep $0 and so on meaningful, and to
11460 # report actual input values of CONFIG_FILES etc. instead of their
11461 # values after options handling.
11462 ac_log="
11463 This file was extended by pcap $as_me 1.10.0-PRE-GIT, which was
11464 generated by GNU Autoconf 2.69. Invocation command line was
11465
11466 CONFIG_FILES = $CONFIG_FILES
11467 CONFIG_HEADERS = $CONFIG_HEADERS
11468 CONFIG_LINKS = $CONFIG_LINKS
11469 CONFIG_COMMANDS = $CONFIG_COMMANDS
11470 $ $0 $@
11471
11472 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11473 "
11474
11475 _ACEOF
11476
11477 case $ac_config_files in *"
11478 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11479 esac
11480
11481 case $ac_config_headers in *"
11482 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11483 esac
11484
11485
11486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11487 # Files that config.status was made for.
11488 config_files="$ac_config_files"
11489 config_headers="$ac_config_headers"
11490 config_commands="$ac_config_commands"
11491
11492 _ACEOF
11493
11494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11495 ac_cs_usage="\
11496 \`$as_me' instantiates files and other configuration actions
11497 from templates according to the current configuration. Unless the files
11498 and actions are specified as TAGs, all are instantiated by default.
11499
11500 Usage: $0 [OPTION]... [TAG]...
11501
11502 -h, --help print this help, then exit
11503 -V, --version print version number and configuration settings, then exit
11504 --config print configuration, then exit
11505 -q, --quiet, --silent
11506 do not print progress messages
11507 -d, --debug don't remove temporary files
11508 --recheck update $as_me by reconfiguring in the same conditions
11509 --file=FILE[:TEMPLATE]
11510 instantiate the configuration file FILE
11511 --header=FILE[:TEMPLATE]
11512 instantiate the configuration header FILE
11513
11514 Configuration files:
11515 $config_files
11516
11517 Configuration headers:
11518 $config_headers
11519
11520 Configuration commands:
11521 $config_commands
11522
11523 Report bugs to the package provider."
11524
11525 _ACEOF
11526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11527 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11528 ac_cs_version="\\
11529 pcap config.status 1.10.0-PRE-GIT
11530 configured by $0, generated by GNU Autoconf 2.69,
11531 with options \\"\$ac_cs_config\\"
11532
11533 Copyright (C) 2012 Free Software Foundation, Inc.
11534 This config.status script is free software; the Free Software Foundation
11535 gives unlimited permission to copy, distribute and modify it."
11536
11537 ac_pwd='$ac_pwd'
11538 srcdir='$srcdir'
11539 INSTALL='$INSTALL'
11540 test -n "\$AWK" || AWK=awk
11541 _ACEOF
11542
11543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11544 # The default lists apply if the user does not specify any file.
11545 ac_need_defaults=:
11546 while test $# != 0
11547 do
11548 case $1 in
11549 --*=?*)
11550 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11551 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11552 ac_shift=:
11553 ;;
11554 --*=)
11555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11556 ac_optarg=
11557 ac_shift=:
11558 ;;
11559 *)
11560 ac_option=$1
11561 ac_optarg=$2
11562 ac_shift=shift
11563 ;;
11564 esac
11565
11566 case $ac_option in
11567 # Handling of the options.
11568 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11569 ac_cs_recheck=: ;;
11570 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11571 $as_echo "$ac_cs_version"; exit ;;
11572 --config | --confi | --conf | --con | --co | --c )
11573 $as_echo "$ac_cs_config"; exit ;;
11574 --debug | --debu | --deb | --de | --d | -d )
11575 debug=: ;;
11576 --file | --fil | --fi | --f )
11577 $ac_shift
11578 case $ac_optarg in
11579 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11580 '') as_fn_error $? "missing file argument" ;;
11581 esac
11582 as_fn_append CONFIG_FILES " '$ac_optarg'"
11583 ac_need_defaults=false;;
11584 --header | --heade | --head | --hea )
11585 $ac_shift
11586 case $ac_optarg in
11587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11588 esac
11589 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11590 ac_need_defaults=false;;
11591 --he | --h)
11592 # Conflict between --help and --header
11593 as_fn_error $? "ambiguous option: \`$1'
11594 Try \`$0 --help' for more information.";;
11595 --help | --hel | -h )
11596 $as_echo "$ac_cs_usage"; exit ;;
11597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11598 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11599 ac_cs_silent=: ;;
11600
11601 # This is an error.
11602 -*) as_fn_error $? "unrecognized option: \`$1'
11603 Try \`$0 --help' for more information." ;;
11604
11605 *) as_fn_append ac_config_targets " $1"
11606 ac_need_defaults=false ;;
11607
11608 esac
11609 shift
11610 done
11611
11612 ac_configure_extra_args=
11613
11614 if $ac_cs_silent; then
11615 exec 6>/dev/null
11616 ac_configure_extra_args="$ac_configure_extra_args --silent"
11617 fi
11618
11619 _ACEOF
11620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11621 if \$ac_cs_recheck; then
11622 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11623 shift
11624 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11625 CONFIG_SHELL='$SHELL'
11626 export CONFIG_SHELL
11627 exec "\$@"
11628 fi
11629
11630 _ACEOF
11631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11632 exec 5>>config.log
11633 {
11634 echo
11635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11636 ## Running $as_me. ##
11637 _ASBOX
11638 $as_echo "$ac_log"
11639 } >&5
11640
11641 _ACEOF
11642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11643 #
11644 # INIT-COMMANDS
11645 #
11646
11647
11648 _ACEOF
11649
11650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11651
11652 # Handling of arguments.
11653 for ac_config_target in $ac_config_targets
11654 do
11655 case $ac_config_target in
11656 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11657 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11658 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11659 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
11660 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
11661 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11662 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
11663 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
11664 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
11665 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
11666 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11667 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
11668 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11669 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11670 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11671 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11672 "pcap_set_immediate_mode.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_immediate_mode.3pcap" ;;
11673 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
11674 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11675 "rpcapd/Makefile") CONFIG_FILES="$CONFIG_FILES rpcapd/Makefile" ;;
11676 "rpcapd/rpcapd.manadmin") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
11677 "testprogs/Makefile") CONFIG_FILES="$CONFIG_FILES testprogs/Makefile" ;;
11678
11679 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11680 esac
11681 done
11682
11683
11684 # If the user did not use the arguments to specify the items to instantiate,
11685 # then the envvar interface is used. Set only those that are not.
11686 # We use the long form for the default assignment because of an extremely
11687 # bizarre bug on SunOS 4.1.3.
11688 if $ac_need_defaults; then
11689 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11690 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11692 fi
11693
11694 # Have a temporary directory for convenience. Make it in the build tree
11695 # simply because there is no reason against having it here, and in addition,
11696 # creating and moving files from /tmp can sometimes cause problems.
11697 # Hook for its removal unless debugging.
11698 # Note that there is a small window in which the directory will not be cleaned:
11699 # after its creation but before its name has been assigned to `$tmp'.
11700 $debug ||
11701 {
11702 tmp= ac_tmp=
11703 trap 'exit_status=$?
11704 : "${ac_tmp:=$tmp}"
11705 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11706 ' 0
11707 trap 'as_fn_exit 1' 1 2 13 15
11708 }
11709 # Create a (secure) tmp directory for tmp files.
11710
11711 {
11712 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11713 test -d "$tmp"
11714 } ||
11715 {
11716 tmp=./conf$$-$RANDOM
11717 (umask 077 && mkdir "$tmp")
11718 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11719 ac_tmp=$tmp
11720
11721 # Set up the scripts for CONFIG_FILES section.
11722 # No need to generate them if there are no CONFIG_FILES.
11723 # This happens for instance with `./config.status config.h'.
11724 if test -n "$CONFIG_FILES"; then
11725
11726
11727 ac_cr=`echo X | tr X '\015'`
11728 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11729 # But we know of no other shell where ac_cr would be empty at this
11730 # point, so we can use a bashism as a fallback.
11731 if test "x$ac_cr" = x; then
11732 eval ac_cr=\$\'\\r\'
11733 fi
11734 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11735 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11736 ac_cs_awk_cr='\\r'
11737 else
11738 ac_cs_awk_cr=$ac_cr
11739 fi
11740
11741 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11742 _ACEOF
11743
11744
11745 {
11746 echo "cat >conf$$subs.awk <<_ACEOF" &&
11747 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11748 echo "_ACEOF"
11749 } >conf$$subs.sh ||
11750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11751 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11752 ac_delim='%!_!# '
11753 for ac_last_try in false false false false false :; do
11754 . ./conf$$subs.sh ||
11755 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11756
11757 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11758 if test $ac_delim_n = $ac_delim_num; then
11759 break
11760 elif $ac_last_try; then
11761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11762 else
11763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11764 fi
11765 done
11766 rm -f conf$$subs.sh
11767
11768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11769 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11770 _ACEOF
11771 sed -n '
11772 h
11773 s/^/S["/; s/!.*/"]=/
11774 p
11775 g
11776 s/^[^!]*!//
11777 :repl
11778 t repl
11779 s/'"$ac_delim"'$//
11780 t delim
11781 :nl
11782 h
11783 s/\(.\{148\}\)..*/\1/
11784 t more1
11785 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11786 p
11787 n
11788 b repl
11789 :more1
11790 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11791 p
11792 g
11793 s/.\{148\}//
11794 t nl
11795 :delim
11796 h
11797 s/\(.\{148\}\)..*/\1/
11798 t more2
11799 s/["\\]/\\&/g; s/^/"/; s/$/"/
11800 p
11801 b
11802 :more2
11803 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11804 p
11805 g
11806 s/.\{148\}//
11807 t delim
11808 ' <conf$$subs.awk | sed '
11809 /^[^""]/{
11810 N
11811 s/\n//
11812 }
11813 ' >>$CONFIG_STATUS || ac_write_fail=1
11814 rm -f conf$$subs.awk
11815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11816 _ACAWK
11817 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11818 for (key in S) S_is_set[key] = 1
11819 FS = "\a"
11820
11821 }
11822 {
11823 line = $ 0
11824 nfields = split(line, field, "@")
11825 substed = 0
11826 len = length(field[1])
11827 for (i = 2; i < nfields; i++) {
11828 key = field[i]
11829 keylen = length(key)
11830 if (S_is_set[key]) {
11831 value = S[key]
11832 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11833 len += length(value) + length(field[++i])
11834 substed = 1
11835 } else
11836 len += 1 + keylen
11837 }
11838
11839 print line
11840 }
11841
11842 _ACAWK
11843 _ACEOF
11844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11845 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11846 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11847 else
11848 cat
11849 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11850 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11851 _ACEOF
11852
11853 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11854 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11855 # trailing colons and then remove the whole line if VPATH becomes empty
11856 # (actually we leave an empty line to preserve line numbers).
11857 if test "x$srcdir" = x.; then
11858 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11859 h
11860 s///
11861 s/^/:/
11862 s/[ ]*$/:/
11863 s/:\$(srcdir):/:/g
11864 s/:\${srcdir}:/:/g
11865 s/:@srcdir@:/:/g
11866 s/^:*//
11867 s/:*$//
11868 x
11869 s/\(=[ ]*\).*/\1/
11870 G
11871 s/\n//
11872 s/^[^=]*=[ ]*$//
11873 }'
11874 fi
11875
11876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11877 fi # test -n "$CONFIG_FILES"
11878
11879 # Set up the scripts for CONFIG_HEADERS section.
11880 # No need to generate them if there are no CONFIG_HEADERS.
11881 # This happens for instance with `./config.status Makefile'.
11882 if test -n "$CONFIG_HEADERS"; then
11883 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11884 BEGIN {
11885 _ACEOF
11886
11887 # Transform confdefs.h into an awk script `defines.awk', embedded as
11888 # here-document in config.status, that substitutes the proper values into
11889 # config.h.in to produce config.h.
11890
11891 # Create a delimiter string that does not exist in confdefs.h, to ease
11892 # handling of long lines.
11893 ac_delim='%!_!# '
11894 for ac_last_try in false false :; do
11895 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11896 if test -z "$ac_tt"; then
11897 break
11898 elif $ac_last_try; then
11899 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11900 else
11901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11902 fi
11903 done
11904
11905 # For the awk script, D is an array of macro values keyed by name,
11906 # likewise P contains macro parameters if any. Preserve backslash
11907 # newline sequences.
11908
11909 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11910 sed -n '
11911 s/.\{148\}/&'"$ac_delim"'/g
11912 t rset
11913 :rset
11914 s/^[ ]*#[ ]*define[ ][ ]*/ /
11915 t def
11916 d
11917 :def
11918 s/\\$//
11919 t bsnl
11920 s/["\\]/\\&/g
11921 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11922 D["\1"]=" \3"/p
11923 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11924 d
11925 :bsnl
11926 s/["\\]/\\&/g
11927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11928 D["\1"]=" \3\\\\\\n"\\/p
11929 t cont
11930 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11931 t cont
11932 d
11933 :cont
11934 n
11935 s/.\{148\}/&'"$ac_delim"'/g
11936 t clear
11937 :clear
11938 s/\\$//
11939 t bsnlc
11940 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11941 d
11942 :bsnlc
11943 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11944 b cont
11945 ' <confdefs.h | sed '
11946 s/'"$ac_delim"'/"\\\
11947 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11948
11949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11950 for (key in D) D_is_set[key] = 1
11951 FS = "\a"
11952 }
11953 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11954 line = \$ 0
11955 split(line, arg, " ")
11956 if (arg[1] == "#") {
11957 defundef = arg[2]
11958 mac1 = arg[3]
11959 } else {
11960 defundef = substr(arg[1], 2)
11961 mac1 = arg[2]
11962 }
11963 split(mac1, mac2, "(") #)
11964 macro = mac2[1]
11965 prefix = substr(line, 1, index(line, defundef) - 1)
11966 if (D_is_set[macro]) {
11967 # Preserve the white space surrounding the "#".
11968 print prefix "define", macro P[macro] D[macro]
11969 next
11970 } else {
11971 # Replace #undef with comments. This is necessary, for example,
11972 # in the case of _POSIX_SOURCE, which is predefined and required
11973 # on some systems where configure will not decide to define it.
11974 if (defundef == "undef") {
11975 print "/*", prefix defundef, macro, "*/"
11976 next
11977 }
11978 }
11979 }
11980 { print }
11981 _ACAWK
11982 _ACEOF
11983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11984 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11985 fi # test -n "$CONFIG_HEADERS"
11986
11987
11988 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11989 shift
11990 for ac_tag
11991 do
11992 case $ac_tag in
11993 :[FHLC]) ac_mode=$ac_tag; continue;;
11994 esac
11995 case $ac_mode$ac_tag in
11996 :[FHL]*:*);;
11997 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11998 :[FH]-) ac_tag=-:-;;
11999 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12000 esac
12001 ac_save_IFS=$IFS
12002 IFS=:
12003 set x $ac_tag
12004 IFS=$ac_save_IFS
12005 shift
12006 ac_file=$1
12007 shift
12008
12009 case $ac_mode in
12010 :L) ac_source=$1;;
12011 :[FH])
12012 ac_file_inputs=
12013 for ac_f
12014 do
12015 case $ac_f in
12016 -) ac_f="$ac_tmp/stdin";;
12017 *) # Look for the file first in the build tree, then in the source tree
12018 # (if the path is not absolute). The absolute path cannot be DOS-style,
12019 # because $ac_f cannot contain `:'.
12020 test -f "$ac_f" ||
12021 case $ac_f in
12022 [\\/$]*) false;;
12023 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12024 esac ||
12025 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12026 esac
12027 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12028 as_fn_append ac_file_inputs " '$ac_f'"
12029 done
12030
12031 # Let's still pretend it is `configure' which instantiates (i.e., don't
12032 # use $as_me), people would be surprised to read:
12033 # /* config.h. Generated by config.status. */
12034 configure_input='Generated from '`
12035 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12036 `' by configure.'
12037 if test x"$ac_file" != x-; then
12038 configure_input="$ac_file. $configure_input"
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12040 $as_echo "$as_me: creating $ac_file" >&6;}
12041 fi
12042 # Neutralize special characters interpreted by sed in replacement strings.
12043 case $configure_input in #(
12044 *\&* | *\|* | *\\* )
12045 ac_sed_conf_input=`$as_echo "$configure_input" |
12046 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12047 *) ac_sed_conf_input=$configure_input;;
12048 esac
12049
12050 case $ac_tag in
12051 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12053 esac
12054 ;;
12055 esac
12056
12057 ac_dir=`$as_dirname -- "$ac_file" ||
12058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12059 X"$ac_file" : 'X\(//\)[^/]' \| \
12060 X"$ac_file" : 'X\(//\)$' \| \
12061 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12062 $as_echo X"$ac_file" |
12063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12064 s//\1/
12065 q
12066 }
12067 /^X\(\/\/\)[^/].*/{
12068 s//\1/
12069 q
12070 }
12071 /^X\(\/\/\)$/{
12072 s//\1/
12073 q
12074 }
12075 /^X\(\/\).*/{
12076 s//\1/
12077 q
12078 }
12079 s/.*/./; q'`
12080 as_dir="$ac_dir"; as_fn_mkdir_p
12081 ac_builddir=.
12082
12083 case "$ac_dir" in
12084 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12085 *)
12086 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12087 # A ".." for each directory in $ac_dir_suffix.
12088 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12089 case $ac_top_builddir_sub in
12090 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12091 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12092 esac ;;
12093 esac
12094 ac_abs_top_builddir=$ac_pwd
12095 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12096 # for backward compatibility:
12097 ac_top_builddir=$ac_top_build_prefix
12098
12099 case $srcdir in
12100 .) # We are building in place.
12101 ac_srcdir=.
12102 ac_top_srcdir=$ac_top_builddir_sub
12103 ac_abs_top_srcdir=$ac_pwd ;;
12104 [\\/]* | ?:[\\/]* ) # Absolute name.
12105 ac_srcdir=$srcdir$ac_dir_suffix;
12106 ac_top_srcdir=$srcdir
12107 ac_abs_top_srcdir=$srcdir ;;
12108 *) # Relative name.
12109 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12110 ac_top_srcdir=$ac_top_build_prefix$srcdir
12111 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12112 esac
12113 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12114
12115
12116 case $ac_mode in
12117 :F)
12118 #
12119 # CONFIG_FILE
12120 #
12121
12122 case $INSTALL in
12123 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12124 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12125 esac
12126 _ACEOF
12127
12128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12129 # If the template does not know about datarootdir, expand it.
12130 # FIXME: This hack should be removed a few years after 2.60.
12131 ac_datarootdir_hack=; ac_datarootdir_seen=
12132 ac_sed_dataroot='
12133 /datarootdir/ {
12134 p
12135 q
12136 }
12137 /@datadir@/p
12138 /@docdir@/p
12139 /@infodir@/p
12140 /@localedir@/p
12141 /@mandir@/p'
12142 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12143 *datarootdir*) ac_datarootdir_seen=yes;;
12144 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12146 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12147 _ACEOF
12148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12149 ac_datarootdir_hack='
12150 s&@datadir@&$datadir&g
12151 s&@docdir@&$docdir&g
12152 s&@infodir@&$infodir&g
12153 s&@localedir@&$localedir&g
12154 s&@mandir@&$mandir&g
12155 s&\\\${datarootdir}&$datarootdir&g' ;;
12156 esac
12157 _ACEOF
12158
12159 # Neutralize VPATH when `$srcdir' = `.'.
12160 # Shell code in configure.ac might set extrasub.
12161 # FIXME: do we really want to maintain this feature?
12162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12163 ac_sed_extra="$ac_vpsub
12164 $extrasub
12165 _ACEOF
12166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12167 :t
12168 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12169 s|@configure_input@|$ac_sed_conf_input|;t t
12170 s&@top_builddir@&$ac_top_builddir_sub&;t t
12171 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12172 s&@srcdir@&$ac_srcdir&;t t
12173 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12174 s&@top_srcdir@&$ac_top_srcdir&;t t
12175 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12176 s&@builddir@&$ac_builddir&;t t
12177 s&@abs_builddir@&$ac_abs_builddir&;t t
12178 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12179 s&@INSTALL@&$ac_INSTALL&;t t
12180 $ac_datarootdir_hack
12181 "
12182 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12183 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12184
12185 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12186 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12187 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12188 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12190 which seems to be undefined. Please make sure it is defined" >&5
12191 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12192 which seems to be undefined. Please make sure it is defined" >&2;}
12193
12194 rm -f "$ac_tmp/stdin"
12195 case $ac_file in
12196 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12197 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12198 esac \
12199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12200 ;;
12201 :H)
12202 #
12203 # CONFIG_HEADER
12204 #
12205 if test x"$ac_file" != x-; then
12206 {
12207 $as_echo "/* $configure_input */" \
12208 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12209 } >"$ac_tmp/config.h" \
12210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12211 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12213 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12214 else
12215 rm -f "$ac_file"
12216 mv "$ac_tmp/config.h" "$ac_file" \
12217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12218 fi
12219 else
12220 $as_echo "/* $configure_input */" \
12221 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12222 || as_fn_error $? "could not create -" "$LINENO" 5
12223 fi
12224 ;;
12225
12226 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12227 $as_echo "$as_me: executing $ac_file commands" >&6;}
12228 ;;
12229 esac
12230
12231
12232 case $ac_file$ac_mode in
12233 "default-1":C) if test -f .devel; then
12234 echo timestamp > stamp-h
12235 cat $srcdir/Makefile-devel-adds >> Makefile
12236 make depend
12237 fi ;;
12238
12239 esac
12240 done # for ac_tag
12241
12242
12243 as_fn_exit 0
12244 _ACEOF
12245 ac_clean_files=$ac_clean_files_save
12246
12247 test $ac_write_fail = 0 ||
12248 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12249
12250
12251 # configure is writing to config.log, and then calls config.status.
12252 # config.status does its own redirection, appending to config.log.
12253 # Unfortunately, on DOS this fails, as config.log is still kept open
12254 # by configure, so config.status won't be able to write to it; its
12255 # output is simply discarded. So we exec the FD to /dev/null,
12256 # effectively closing config.log, so it can be properly (re)opened and
12257 # appended to by config.status. When coming back to configure, we
12258 # need to make the FD available again.
12259 if test "$no_create" != yes; then
12260 ac_cs_success=:
12261 ac_config_status_args=
12262 test "$silent" = yes &&
12263 ac_config_status_args="$ac_config_status_args --quiet"
12264 exec 5>/dev/null
12265 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12266 exec 5>>config.log
12267 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12268 # would make configure fail if this is the last instruction.
12269 $ac_cs_success || as_fn_exit 1
12270 fi
12271 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12273 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12274 fi
12275
12276 exit 0