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