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