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