xref: /freebsd/contrib/libpcap/configure (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for pcap 1.9.1.
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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  }
79fi
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.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102     ;;
103esac
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.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
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
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
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
234fi; }
235IFS=$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.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $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
257exit 255
258fi
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
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_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.
305as_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.
315as_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.
363as_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.
373if (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  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # 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.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # 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.
408as_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
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_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.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_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
500ECHO_C= ECHO_N= ECHO_T=
501case `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';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (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
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_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.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 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.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='pcap'
579PACKAGE_TARNAME='pcap'
580PACKAGE_VERSION='1.9.1'
581PACKAGE_STRING='pcap 1.9.1'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="pcap.c"
586# Factoring default headers for most tests.
587ac_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
622ac_subst_vars='LTLIBOBJS
623INSTALL_DATA
624INSTALL_SCRIPT
625INSTALL_PROGRAM
626RDMA_SRC
627PCAP_SUPPORT_RDMASNIFF
628DBUS_SRC
629PCAP_SUPPORT_DBUS
630PKGCONFIG
631BT_MONITOR_SRC
632BT_SRC
633PCAP_SUPPORT_BT
634NETMAP_SRC
635PCAP_SUPPORT_NETMAP
636NETFILTER_SRC
637PCAP_SUPPORT_NETFILTER
638USB_SRC
639PCAP_SUPPORT_USB
640EXTRA_NETWORK_LIBS
641RPCAPD_LIBS
642INSTALL_RPCAPD
643BUILD_RPCAPD
644PTHREAD_LIBS
645MAN_ADMIN_COMMANDS
646MAN_MISC_INFO
647MAN_FILE_FORMATS
648MAN_DEVICES
649DYEXT
650SSRC
651ADDLARCHIVEOBJS
652ADDLOBJS
653V_YACC
654V_RPATH_OPT
655V_SONAME_OPT
656V_SHLIB_OPT
657V_SHLIB_CMD
658V_SHLIB_CCOPT
659V_PCAP
660V_LEX
661V_INCLS
662V_FINDALLDEVS
663V_DEFS
664V_PROG_LDFLAGS_FAT
665V_PROG_CCOPT_FAT
666V_LIB_LDFLAGS_FAT
667V_LIB_CCOPT_FAT
668V_CCOPT
669MKDEP
670DEPENDENCY_CFLAG
671LN_S
672AR
673RANLIB
674YFLAGS
675YACC
676LEXLIB
677LEX_OUTPUT_ROOT
678LEX
679PCAP_SUPPORT_PACKET_RING
680VALGRINDTEST_SRC
681LIBOBJS
682EGREP
683GREP
684CPP
685OBJEXT
686EXEEXT
687ac_ct_CC
688CPPFLAGS
689LDFLAGS
690CFLAGS
691CC
692SHLICC2
693target_os
694target_vendor
695target_cpu
696target
697host_os
698host_vendor
699host_cpu
700host
701build_os
702build_vendor
703build_cpu
704build
705target_alias
706host_alias
707build_alias
708LIBS
709ECHO_T
710ECHO_N
711ECHO_C
712DEFS
713mandir
714localedir
715libdir
716psdir
717pdfdir
718dvidir
719htmldir
720infodir
721docdir
722oldincludedir
723includedir
724runstatedir
725localstatedir
726sharedstatedir
727sysconfdir
728datadir
729datarootdir
730libexecdir
731sbindir
732bindir
733program_transform_name
734prefix
735exec_prefix
736PACKAGE_URL
737PACKAGE_BUGREPORT
738PACKAGE_STRING
739PACKAGE_VERSION
740PACKAGE_TARNAME
741PACKAGE_NAME
742PATH_SEPARATOR
743SHELL'
744ac_subst_files=''
745ac_user_opts='
746enable_option_checking
747with_gcc
748enable_largefile
749enable_protochain
750with_sita
751with_pcap
752with_libnl
753enable_packet_ring
754enable_ipv6
755with_dag
756with_dag_includes
757with_dag_libraries
758with_septel
759with_snf
760with_snf_includes
761with_snf_libraries
762with_turbocap
763enable_remote
764enable_optimizer_dbg
765enable_yydebug
766enable_universal
767enable_shared
768enable_usb
769enable_netmap
770enable_bluetooth
771enable_dbus
772enable_rdma
773'
774      ac_precious_vars='build_alias
775host_alias
776target_alias
777CC
778CFLAGS
779LDFLAGS
780LIBS
781CPPFLAGS
782CPP
783YACC
784YFLAGS'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823runstatedir='${localstatedir}/run'
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
835
836ac_prev=
837ac_dashdash=
838for ac_option
839do
840  # If the previous option needs an argument, assign it.
841  if test -n "$ac_prev"; then
842    eval $ac_prev=\$ac_option
843    ac_prev=
844    continue
845  fi
846
847  case $ac_option in
848  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849  *=)   ac_optarg= ;;
850  *)    ac_optarg=yes ;;
851  esac
852
853  # Accept the important Cygnus configure options, so we can diagnose typos.
854
855  case $ac_dashdash$ac_option in
856  --)
857    ac_dashdash=yes ;;
858
859  -bindir | --bindir | --bindi | --bind | --bin | --bi)
860    ac_prev=bindir ;;
861  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862    bindir=$ac_optarg ;;
863
864  -build | --build | --buil | --bui | --bu)
865    ac_prev=build_alias ;;
866  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867    build_alias=$ac_optarg ;;
868
869  -cache-file | --cache-file | --cache-fil | --cache-fi \
870  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871    ac_prev=cache_file ;;
872  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874    cache_file=$ac_optarg ;;
875
876  --config-cache | -C)
877    cache_file=config.cache ;;
878
879  -datadir | --datadir | --datadi | --datad)
880    ac_prev=datadir ;;
881  -datadir=* | --datadir=* | --datadi=* | --datad=*)
882    datadir=$ac_optarg ;;
883
884  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885  | --dataroo | --dataro | --datar)
886    ac_prev=datarootdir ;;
887  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889    datarootdir=$ac_optarg ;;
890
891  -disable-* | --disable-*)
892    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893    # Reject names that are not valid shell variable names.
894    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895      as_fn_error $? "invalid feature name: $ac_useropt"
896    ac_useropt_orig=$ac_useropt
897    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898    case $ac_user_opts in
899      *"
900"enable_$ac_useropt"
901"*) ;;
902      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903	 ac_unrecognized_sep=', ';;
904    esac
905    eval enable_$ac_useropt=no ;;
906
907  -docdir | --docdir | --docdi | --doc | --do)
908    ac_prev=docdir ;;
909  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910    docdir=$ac_optarg ;;
911
912  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913    ac_prev=dvidir ;;
914  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915    dvidir=$ac_optarg ;;
916
917  -enable-* | --enable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921      as_fn_error $? "invalid feature name: $ac_useropt"
922    ac_useropt_orig=$ac_useropt
923    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924    case $ac_user_opts in
925      *"
926"enable_$ac_useropt"
927"*) ;;
928      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=\$ac_optarg ;;
932
933  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935  | --exec | --exe | --ex)
936    ac_prev=exec_prefix ;;
937  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939  | --exec=* | --exe=* | --ex=*)
940    exec_prefix=$ac_optarg ;;
941
942  -gas | --gas | --ga | --g)
943    # Obsolete; use --with-gas.
944    with_gas=yes ;;
945
946  -help | --help | --hel | --he | -h)
947    ac_init_help=long ;;
948  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949    ac_init_help=recursive ;;
950  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951    ac_init_help=short ;;
952
953  -host | --host | --hos | --ho)
954    ac_prev=host_alias ;;
955  -host=* | --host=* | --hos=* | --ho=*)
956    host_alias=$ac_optarg ;;
957
958  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959    ac_prev=htmldir ;;
960  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961  | --ht=*)
962    htmldir=$ac_optarg ;;
963
964  -includedir | --includedir | --includedi | --included | --include \
965  | --includ | --inclu | --incl | --inc)
966    ac_prev=includedir ;;
967  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968  | --includ=* | --inclu=* | --incl=* | --inc=*)
969    includedir=$ac_optarg ;;
970
971  -infodir | --infodir | --infodi | --infod | --info | --inf)
972    ac_prev=infodir ;;
973  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974    infodir=$ac_optarg ;;
975
976  -libdir | --libdir | --libdi | --libd)
977    ac_prev=libdir ;;
978  -libdir=* | --libdir=* | --libdi=* | --libd=*)
979    libdir=$ac_optarg ;;
980
981  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982  | --libexe | --libex | --libe)
983    ac_prev=libexecdir ;;
984  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985  | --libexe=* | --libex=* | --libe=*)
986    libexecdir=$ac_optarg ;;
987
988  -localedir | --localedir | --localedi | --localed | --locale)
989    ac_prev=localedir ;;
990  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991    localedir=$ac_optarg ;;
992
993  -localstatedir | --localstatedir | --localstatedi | --localstated \
994  | --localstate | --localstat | --localsta | --localst | --locals)
995    ac_prev=localstatedir ;;
996  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998    localstatedir=$ac_optarg ;;
999
1000  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001    ac_prev=mandir ;;
1002  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003    mandir=$ac_optarg ;;
1004
1005  -nfp | --nfp | --nf)
1006    # Obsolete; use --without-fp.
1007    with_fp=no ;;
1008
1009  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010  | --no-cr | --no-c | -n)
1011    no_create=yes ;;
1012
1013  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015    no_recursion=yes ;;
1016
1017  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019  | --oldin | --oldi | --old | --ol | --o)
1020    ac_prev=oldincludedir ;;
1021  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024    oldincludedir=$ac_optarg ;;
1025
1026  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027    ac_prev=prefix ;;
1028  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029    prefix=$ac_optarg ;;
1030
1031  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032  | --program-pre | --program-pr | --program-p)
1033    ac_prev=program_prefix ;;
1034  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036    program_prefix=$ac_optarg ;;
1037
1038  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039  | --program-suf | --program-su | --program-s)
1040    ac_prev=program_suffix ;;
1041  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043    program_suffix=$ac_optarg ;;
1044
1045  -program-transform-name | --program-transform-name \
1046  | --program-transform-nam | --program-transform-na \
1047  | --program-transform-n | --program-transform- \
1048  | --program-transform | --program-transfor \
1049  | --program-transfo | --program-transf \
1050  | --program-trans | --program-tran \
1051  | --progr-tra | --program-tr | --program-t)
1052    ac_prev=program_transform_name ;;
1053  -program-transform-name=* | --program-transform-name=* \
1054  | --program-transform-nam=* | --program-transform-na=* \
1055  | --program-transform-n=* | --program-transform-=* \
1056  | --program-transform=* | --program-transfor=* \
1057  | --program-transfo=* | --program-transf=* \
1058  | --program-trans=* | --program-tran=* \
1059  | --progr-tra=* | --program-tr=* | --program-t=*)
1060    program_transform_name=$ac_optarg ;;
1061
1062  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063    ac_prev=pdfdir ;;
1064  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065    pdfdir=$ac_optarg ;;
1066
1067  -psdir | --psdir | --psdi | --psd | --ps)
1068    ac_prev=psdir ;;
1069  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070    psdir=$ac_optarg ;;
1071
1072  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073  | -silent | --silent | --silen | --sile | --sil)
1074    silent=yes ;;
1075
1076  -runstatedir | --runstatedir | --runstatedi | --runstated \
1077  | --runstate | --runstat | --runsta | --runst | --runs \
1078  | --run | --ru | --r)
1079    ac_prev=runstatedir ;;
1080  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1081  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1082  | --run=* | --ru=* | --r=*)
1083    runstatedir=$ac_optarg ;;
1084
1085  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086    ac_prev=sbindir ;;
1087  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088  | --sbi=* | --sb=*)
1089    sbindir=$ac_optarg ;;
1090
1091  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093  | --sharedst | --shareds | --shared | --share | --shar \
1094  | --sha | --sh)
1095    ac_prev=sharedstatedir ;;
1096  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099  | --sha=* | --sh=*)
1100    sharedstatedir=$ac_optarg ;;
1101
1102  -site | --site | --sit)
1103    ac_prev=site ;;
1104  -site=* | --site=* | --sit=*)
1105    site=$ac_optarg ;;
1106
1107  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108    ac_prev=srcdir ;;
1109  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110    srcdir=$ac_optarg ;;
1111
1112  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113  | --syscon | --sysco | --sysc | --sys | --sy)
1114    ac_prev=sysconfdir ;;
1115  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117    sysconfdir=$ac_optarg ;;
1118
1119  -target | --target | --targe | --targ | --tar | --ta | --t)
1120    ac_prev=target_alias ;;
1121  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122    target_alias=$ac_optarg ;;
1123
1124  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125    verbose=yes ;;
1126
1127  -version | --version | --versio | --versi | --vers | -V)
1128    ac_init_version=: ;;
1129
1130  -with-* | --with-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=\$ac_optarg ;;
1145
1146  -without-* | --without-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: $ac_useropt"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=no ;;
1161
1162  --x)
1163    # Obsolete; use --with-x.
1164    with_x=yes ;;
1165
1166  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167  | --x-incl | --x-inc | --x-in | --x-i)
1168    ac_prev=x_includes ;;
1169  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171    x_includes=$ac_optarg ;;
1172
1173  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175    ac_prev=x_libraries ;;
1176  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178    x_libraries=$ac_optarg ;;
1179
1180  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information"
1182    ;;
1183
1184  *=*)
1185    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186    # Reject names that are not valid shell variable names.
1187    case $ac_envvar in #(
1188      '' | [0-9]* | *[!_$as_cr_alnum]* )
1189      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190    esac
1191    eval $ac_envvar=\$ac_optarg
1192    export $ac_envvar ;;
1193
1194  *)
1195    # FIXME: should be removed in autoconf 3.0.
1196    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200    ;;
1201
1202  esac
1203done
1204
1205if test -n "$ac_prev"; then
1206  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207  as_fn_error $? "missing argument to $ac_option"
1208fi
1209
1210if test -n "$ac_unrecognized_opts"; then
1211  case $enable_option_checking in
1212    no) ;;
1213    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215  esac
1216fi
1217
1218# Check all directory arguments for consistency.
1219for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220		datadir sysconfdir sharedstatedir localstatedir includedir \
1221		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222		libdir localedir mandir runstatedir
1223do
1224  eval ac_val=\$$ac_var
1225  # Remove trailing slashes.
1226  case $ac_val in
1227    */ )
1228      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229      eval $ac_var=\$ac_val;;
1230  esac
1231  # Be sure to have absolute directory names.
1232  case $ac_val in
1233    [\\/$]* | ?:[\\/]* )  continue;;
1234    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235  esac
1236  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248  if test "x$build_alias" = x; then
1249    cross_compiling=maybe
1250  elif test "x$build_alias" != "x$host_alias"; then
1251    cross_compiling=yes
1252  fi
1253fi
1254
1255ac_tool_prefix=
1256test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258test "$silent" = yes && exec 6>/dev/null
1259
1260
1261ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262ac_ls_di=`ls -di .` &&
1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264  as_fn_error $? "working directory cannot be determined"
1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266  as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269# Find the source files, if location was not specified.
1270if test -z "$srcdir"; then
1271  ac_srcdir_defaulted=yes
1272  # Try the directory containing this script, then the parent directory.
1273  ac_confdir=`$as_dirname -- "$as_myself" ||
1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275	 X"$as_myself" : 'X\(//\)[^/]' \| \
1276	 X"$as_myself" : 'X\(//\)$' \| \
1277	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278$as_echo X"$as_myself" |
1279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)[^/].*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\/\)$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\).*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  s/.*/./; q'`
1296  srcdir=$ac_confdir
1297  if test ! -r "$srcdir/$ac_unique_file"; then
1298    srcdir=..
1299  fi
1300else
1301  ac_srcdir_defaulted=no
1302fi
1303if test ! -r "$srcdir/$ac_unique_file"; then
1304  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306fi
1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
1309	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310	pwd)`
1311# When building in place, set srcdir=.
1312if test "$ac_abs_confdir" = "$ac_pwd"; then
1313  srcdir=.
1314fi
1315# Remove unnecessary trailing slashes from srcdir.
1316# Double slashes in file names in object file debugging info
1317# mess up M-x gdb in Emacs.
1318case $srcdir in
1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320esac
1321for ac_var in $ac_precious_vars; do
1322  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_env_${ac_var}_value=\$${ac_var}
1324  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326done
1327
1328#
1329# Report the --help message.
1330#
1331if test "$ac_init_help" = "long"; then
1332  # Omit some internal or obsolete options to make the list less imposing.
1333  # This message is too long to be a string in the A/UX 3.1 sh.
1334  cat <<_ACEOF
1335\`configure' configures pcap 1.9.1 to adapt to many kinds of systems.
1336
1337Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342Defaults for the options are specified in brackets.
1343
1344Configuration:
1345  -h, --help              display this help and exit
1346      --help=short        display options specific to this package
1347      --help=recursive    display the short help of all the included packages
1348  -V, --version           display version information and exit
1349  -q, --quiet, --silent   do not print \`checking ...' messages
1350      --cache-file=FILE   cache test results in FILE [disabled]
1351  -C, --config-cache      alias for \`--cache-file=config.cache'
1352  -n, --no-create         do not create output files
1353      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355Installation directories:
1356  --prefix=PREFIX         install architecture-independent files in PREFIX
1357                          [$ac_default_prefix]
1358  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                          [PREFIX]
1360
1361By default, \`make install' will install all the files in
1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364for instance \`--prefix=\$HOME'.
1365
1366For better control, use the options below.
1367
1368Fine tuning of the installation directories:
1369  --bindir=DIR            user executables [EPREFIX/bin]
1370  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371  --libexecdir=DIR        program executables [EPREFIX/libexec]
1372  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1376  --libdir=DIR            object code libraries [EPREFIX/lib]
1377  --includedir=DIR        C header files [PREFIX/include]
1378  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1379  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1380  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1381  --infodir=DIR           info documentation [DATAROOTDIR/info]
1382  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1383  --mandir=DIR            man documentation [DATAROOTDIR/man]
1384  --docdir=DIR            documentation root [DATAROOTDIR/doc/pcap]
1385  --htmldir=DIR           html documentation [DOCDIR]
1386  --dvidir=DIR            dvi documentation [DOCDIR]
1387  --pdfdir=DIR            pdf documentation [DOCDIR]
1388  --psdir=DIR             ps documentation [DOCDIR]
1389_ACEOF
1390
1391  cat <<\_ACEOF
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396  --target=TARGET   configure for building compilers for TARGET [HOST]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401  case $ac_init_help in
1402     short | recursive ) echo "Configuration of pcap 1.9.1:";;
1403   esac
1404  cat <<\_ACEOF
1405
1406Optional Features:
1407  --disable-option-checking  ignore unrecognized --enable/--with options
1408  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410  --disable-largefile     omit support for large files
1411  --disable-protochain    disable \"protochain\" insn
1412  --enable-packet-ring    enable packet ring support on Linux [default=yes]
1413  --enable-ipv6           build IPv6-capable version [default=yes]
1414  --enable-remote         enable remote packet capture [default=no]
1415  --disable-remote        disable remote packet capture
1416  --enable-optimizer-dbg  build optimizer debugging code
1417  --enable-yydebug        build parser debugging code
1418  --disable-universal     don't build universal on macOS
1419  --enable-shared         build shared libraries [default=yes, if support
1420                          available]
1421  --enable-usb            enable USB capture support [default=yes, if support
1422                          available]
1423  --enable-netmap         enable netmap support [default=yes, if support
1424                          available]
1425  --enable-bluetooth      enable Bluetooth support [default=yes, if support
1426                          available]
1427  --enable-dbus           enable D-Bus capture support [default=yes, if
1428                          support available]
1429  --enable-rdma           enable RDMA capture support [default=yes, if support
1430                          available]
1431
1432Optional Packages:
1433  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1434  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1435  --without-gcc           don't use gcc
1436  --with-sita             include SITA support
1437  --with-pcap=TYPE        use packet capture TYPE
1438  --without-libnl         disable libnl support [default=yes, on Linux, if
1439                          present]
1440  --with-dag[=DIR]        include Endace DAG support (located in directory
1441                          DIR, if supplied). [default=yes, if present]
1442  --with-dag-includes=IDIR
1443                          Endace DAG include directory, if not DIR/include
1444  --with-dag-libraries=LDIR
1445                          Endace DAG library directory, if not DIR/lib
1446  --with-septel[=DIR]     include Septel support (located in directory DIR, if
1447                          supplied). [default=yes, if present]
1448  --with-snf[=DIR]        include Myricom SNF support (located in directory
1449                          DIR, if supplied). [default=yes, if present]
1450  --with-snf-includes=IDIR
1451                          Myricom SNF include directory, if not DIR/include
1452  --with-snf-libraries=LDIR
1453                          Myricom SNF library directory, if not DIR/lib
1454  --with-turbocap[=DIR]   include Riverbed TurboCap support (located in
1455                          directory DIR, if supplied). [default=yes, if
1456                          present]
1457
1458Some influential environment variables:
1459  CC          C compiler command
1460  CFLAGS      C compiler flags
1461  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462              nonstandard directory <lib dir>
1463  LIBS        libraries to pass to the linker, e.g. -l<library>
1464  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465              you have headers in a nonstandard directory <include dir>
1466  CPP         C preprocessor
1467  YACC        The `Yet Another Compiler Compiler' implementation to use.
1468              Defaults to the first program found out of: `bison -y', `byacc',
1469              `yacc'.
1470  YFLAGS      The list of arguments that will be passed by default to $YACC.
1471              This script will default YFLAGS to the empty string to avoid a
1472              default value of `-d' given by some make applications.
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
1477Report bugs to the package provider.
1478_ACEOF
1479ac_status=$?
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483  # If there are subdirs, report their specific --help.
1484  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485    test -d "$ac_dir" ||
1486      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487      continue
1488    ac_builddir=.
1489
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494  # A ".." for each directory in $ac_dir_suffix.
1495  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496  case $ac_top_builddir_sub in
1497  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499  esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
1505
1506case $srcdir in
1507  .)  # We are building in place.
1508    ac_srcdir=.
1509    ac_top_srcdir=$ac_top_builddir_sub
1510    ac_abs_top_srcdir=$ac_pwd ;;
1511  [\\/]* | ?:[\\/]* )  # Absolute name.
1512    ac_srcdir=$srcdir$ac_dir_suffix;
1513    ac_top_srcdir=$srcdir
1514    ac_abs_top_srcdir=$srcdir ;;
1515  *) # Relative name.
1516    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517    ac_top_srcdir=$ac_top_build_prefix$srcdir
1518    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519esac
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522    cd "$ac_dir" || { ac_status=$?; continue; }
1523    # Check for guested configure.
1524    if test -f "$ac_srcdir/configure.gnu"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527    elif test -f "$ac_srcdir/configure"; then
1528      echo &&
1529      $SHELL "$ac_srcdir/configure" --help=recursive
1530    else
1531      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532    fi || ac_status=$?
1533    cd "$ac_pwd" || { ac_status=$?; break; }
1534  done
1535fi
1536
1537test -n "$ac_init_help" && exit $ac_status
1538if $ac_init_version; then
1539  cat <<\_ACEOF
1540pcap configure 1.9.1
1541generated by GNU Autoconf 2.69
1542
1543Copyright (C) 2012 Free Software Foundation, Inc.
1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546_ACEOF
1547  exit
1548fi
1549
1550## ------------------------ ##
1551## Autoconf initialization. ##
1552## ------------------------ ##
1553
1554# ac_fn_c_try_compile LINENO
1555# --------------------------
1556# Try to compile conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_compile ()
1558{
1559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560  rm -f conftest.$ac_objext
1561  if { { ac_try="$ac_compile"
1562case "(($ac_try" in
1563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564  *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568  (eval "$ac_compile") 2>conftest.err
1569  ac_status=$?
1570  if test -s conftest.err; then
1571    grep -v '^ *+' conftest.err >conftest.er1
1572    cat conftest.er1 >&5
1573    mv -f conftest.er1 conftest.err
1574  fi
1575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576  test $ac_status = 0; } && {
1577	 test -z "$ac_c_werror_flag" ||
1578	 test ! -s conftest.err
1579       } && test -s conftest.$ac_objext; then :
1580  ac_retval=0
1581else
1582  $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585	ac_retval=1
1586fi
1587  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588  as_fn_set_status $ac_retval
1589
1590} # ac_fn_c_try_compile
1591
1592# ac_fn_c_try_link LINENO
1593# -----------------------
1594# Try to link conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_link ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  rm -f conftest.$ac_objext conftest$ac_exeext
1599  if { { ac_try="$ac_link"
1600case "(($ac_try" in
1601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602  *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606  (eval "$ac_link") 2>conftest.err
1607  ac_status=$?
1608  if test -s conftest.err; then
1609    grep -v '^ *+' conftest.err >conftest.er1
1610    cat conftest.er1 >&5
1611    mv -f conftest.er1 conftest.err
1612  fi
1613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614  test $ac_status = 0; } && {
1615	 test -z "$ac_c_werror_flag" ||
1616	 test ! -s conftest.err
1617       } && test -s conftest$ac_exeext && {
1618	 test "$cross_compiling" = yes ||
1619	 test -x conftest$ac_exeext
1620       }; then :
1621  ac_retval=0
1622else
1623  $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
1625
1626	ac_retval=1
1627fi
1628  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630  # interfere with the next link command; also delete a directory that is
1631  # left behind by Apple's compiler.  We do this before executing the actions.
1632  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634  as_fn_set_status $ac_retval
1635
1636} # ac_fn_c_try_link
1637
1638# ac_fn_c_try_cpp LINENO
1639# ----------------------
1640# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_cpp ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  if { { ac_try="$ac_cpp conftest.$ac_ext"
1645case "(($ac_try" in
1646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647  *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652  ac_status=$?
1653  if test -s conftest.err; then
1654    grep -v '^ *+' conftest.err >conftest.er1
1655    cat conftest.er1 >&5
1656    mv -f conftest.er1 conftest.err
1657  fi
1658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659  test $ac_status = 0; } > conftest.i && {
1660	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661	 test ! -s conftest.err
1662       }; then :
1663  ac_retval=0
1664else
1665  $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668    ac_retval=1
1669fi
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671  as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_cpp
1674
1675# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676# -------------------------------------------------------
1677# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678# the include files in INCLUDES and setting the cache variable VAR
1679# accordingly.
1680ac_fn_c_check_header_mongrel ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if eval \${$3+:} false; then :
1684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
1686if eval \${$3+:} false; then :
1687  $as_echo_n "(cached) " >&6
1688fi
1689eval ac_res=\$$3
1690	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691$as_echo "$ac_res" >&6; }
1692else
1693  # Is the header compilable?
1694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695$as_echo_n "checking $2 usability... " >&6; }
1696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h.  */
1698$4
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"; then :
1702  ac_header_compiler=yes
1703else
1704  ac_header_compiler=no
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708$as_echo "$ac_header_compiler" >&6; }
1709
1710# Is the header present?
1711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712$as_echo_n "checking $2 presence... " >&6; }
1713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h.  */
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_cpp "$LINENO"; then :
1718  ac_header_preproc=yes
1719else
1720  ac_header_preproc=no
1721fi
1722rm -f conftest.err conftest.i conftest.$ac_ext
1723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724$as_echo "$ac_header_preproc" >&6; }
1725
1726# So?  What about this header?
1727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728  yes:no: )
1729    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733    ;;
1734  no:yes:* )
1735    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1738$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1739    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1742$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745    ;;
1746esac
1747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if eval \${$3+:} false; then :
1750  $as_echo_n "(cached) " >&6
1751else
1752  eval "$3=\$ac_header_compiler"
1753fi
1754eval ac_res=\$$3
1755	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
1757fi
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760} # ac_fn_c_check_header_mongrel
1761
1762# ac_fn_c_try_run LINENO
1763# ----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765# that executables *can* be run.
1766ac_fn_c_try_run ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_link") 2>&5
1777  ac_status=$?
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780  { { case "(($ac_try" in
1781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782  *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786  (eval "$ac_try") 2>&5
1787  ac_status=$?
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; }; }; then :
1790  ac_retval=0
1791else
1792  $as_echo "$as_me: program exited with status $ac_status" >&5
1793       $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796       ac_retval=$ac_status
1797fi
1798  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800  as_fn_set_status $ac_retval
1801
1802} # ac_fn_c_try_run
1803
1804# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805# -------------------------------------------------------
1806# Tests whether HEADER exists and can be compiled using the include files in
1807# INCLUDES, setting the cache variable VAR accordingly.
1808ac_fn_c_check_header_compile ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if eval \${$3+:} false; then :
1814  $as_echo_n "(cached) " >&6
1815else
1816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818$4
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822  eval "$3=yes"
1823else
1824  eval "$3=no"
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828eval ac_res=\$$3
1829	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
1831  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833} # ac_fn_c_check_header_compile
1834
1835# ac_fn_c_check_func LINENO FUNC VAR
1836# ----------------------------------
1837# Tests whether FUNC exists, setting the cache variable VAR accordingly
1838ac_fn_c_check_func ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval \${$3+:} false; then :
1844  $as_echo_n "(cached) " >&6
1845else
1846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1850#define $2 innocuous_$2
1851
1852/* System header to define __stub macros and hopefully few prototypes,
1853    which can conflict with char $2 (); below.
1854    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855    <limits.h> exists even on freestanding compilers.  */
1856
1857#ifdef __STDC__
1858# include <limits.h>
1859#else
1860# include <assert.h>
1861#endif
1862
1863#undef $2
1864
1865/* Override any GCC internal prototype to avoid an error.
1866   Use char because int might match the return type of a GCC
1867   builtin and then its argument prototype would still apply.  */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873    to always fail with ENOSYS.  Some functions are actually named
1874    something starting with __ and the normal name is an alias.  */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
1878
1879int
1880main ()
1881{
1882return $2 ();
1883  ;
1884  return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_link "$LINENO"; then :
1888  eval "$3=yes"
1889else
1890  eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext \
1893    conftest$ac_exeext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
1898  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900} # ac_fn_c_check_func
1901
1902# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1903# ---------------------------------------------
1904# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1905# accordingly.
1906ac_fn_c_check_decl ()
1907{
1908  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909  as_decl_name=`echo $2|sed 's/ *(.*//'`
1910  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1912$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1913if eval \${$3+:} false; then :
1914  $as_echo_n "(cached) " >&6
1915else
1916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h.  */
1918$4
1919int
1920main ()
1921{
1922#ifndef $as_decl_name
1923#ifdef __cplusplus
1924  (void) $as_decl_use;
1925#else
1926  (void) $as_decl_name;
1927#endif
1928#endif
1929
1930  ;
1931  return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935  eval "$3=yes"
1936else
1937  eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946} # ac_fn_c_check_decl
1947
1948# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1949# -------------------------------------------
1950# Tests whether TYPE exists after having included INCLUDES, setting cache
1951# variable VAR accordingly.
1952ac_fn_c_check_type ()
1953{
1954  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956$as_echo_n "checking for $2... " >&6; }
1957if eval \${$3+:} false; then :
1958  $as_echo_n "(cached) " >&6
1959else
1960  eval "$3=no"
1961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h.  */
1963$4
1964int
1965main ()
1966{
1967if (sizeof ($2))
1968	 return 0;
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976$4
1977int
1978main ()
1979{
1980if (sizeof (($2)))
1981	    return 0;
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_compile "$LINENO"; then :
1987
1988else
1989  eval "$3=yes"
1990fi
1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994fi
1995eval ac_res=\$$3
1996	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997$as_echo "$ac_res" >&6; }
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000} # ac_fn_c_check_type
2001
2002# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2003# ----------------------------------------------------
2004# Tries to find if the field MEMBER exists in type AGGR, after including
2005# INCLUDES, setting cache variable VAR accordingly.
2006ac_fn_c_check_member ()
2007{
2008  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2010$as_echo_n "checking for $2.$3... " >&6; }
2011if eval \${$4+:} false; then :
2012  $as_echo_n "(cached) " >&6
2013else
2014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h.  */
2016$5
2017int
2018main ()
2019{
2020static $2 ac_aggr;
2021if (ac_aggr.$3)
2022return 0;
2023  ;
2024  return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028  eval "$4=yes"
2029else
2030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h.  */
2032$5
2033int
2034main ()
2035{
2036static $2 ac_aggr;
2037if (sizeof ac_aggr.$3)
2038return 0;
2039  ;
2040  return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044  eval "$4=yes"
2045else
2046  eval "$4=no"
2047fi
2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052eval ac_res=\$$4
2053	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057} # ac_fn_c_check_member
2058cat >config.log <<_ACEOF
2059This file contains any messages produced by compilers while
2060running configure, to aid debugging if configure makes a mistake.
2061
2062It was created by pcap $as_me 1.9.1, which was
2063generated by GNU Autoconf 2.69.  Invocation command line was
2064
2065  $ $0 $@
2066
2067_ACEOF
2068exec 5>>config.log
2069{
2070cat <<_ASUNAME
2071## --------- ##
2072## Platform. ##
2073## --------- ##
2074
2075hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2076uname -m = `(uname -m) 2>/dev/null || echo unknown`
2077uname -r = `(uname -r) 2>/dev/null || echo unknown`
2078uname -s = `(uname -s) 2>/dev/null || echo unknown`
2079uname -v = `(uname -v) 2>/dev/null || echo unknown`
2080
2081/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2082/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2083
2084/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2085/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2086/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2087/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2088/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2089/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2090/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2091
2092_ASUNAME
2093
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099    $as_echo "PATH: $as_dir"
2100  done
2101IFS=$as_save_IFS
2102
2103} >&5
2104
2105cat >&5 <<_ACEOF
2106
2107
2108## ----------- ##
2109## Core tests. ##
2110## ----------- ##
2111
2112_ACEOF
2113
2114
2115# Keep a trace of the command line.
2116# Strip out --no-create and --no-recursion so they do not pile up.
2117# Strip out --silent because we don't want to record it for future runs.
2118# Also quote any args containing shell meta-characters.
2119# Make two passes to allow for proper duplicate-argument suppression.
2120ac_configure_args=
2121ac_configure_args0=
2122ac_configure_args1=
2123ac_must_keep_next=false
2124for ac_pass in 1 2
2125do
2126  for ac_arg
2127  do
2128    case $ac_arg in
2129    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2130    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2131    | -silent | --silent | --silen | --sile | --sil)
2132      continue ;;
2133    *\'*)
2134      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2135    esac
2136    case $ac_pass in
2137    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2138    2)
2139      as_fn_append ac_configure_args1 " '$ac_arg'"
2140      if test $ac_must_keep_next = true; then
2141	ac_must_keep_next=false # Got value, back to normal.
2142      else
2143	case $ac_arg in
2144	  *=* | --config-cache | -C | -disable-* | --disable-* \
2145	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2146	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2147	  | -with-* | --with-* | -without-* | --without-* | --x)
2148	    case "$ac_configure_args0 " in
2149	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2150	    esac
2151	    ;;
2152	  -* ) ac_must_keep_next=true ;;
2153	esac
2154      fi
2155      as_fn_append ac_configure_args " '$ac_arg'"
2156      ;;
2157    esac
2158  done
2159done
2160{ ac_configure_args0=; unset ac_configure_args0;}
2161{ ac_configure_args1=; unset ac_configure_args1;}
2162
2163# When interrupted or exit'd, cleanup temporary files, and complete
2164# config.log.  We remove comments because anyway the quotes in there
2165# would cause problems or look ugly.
2166# WARNING: Use '\'' to represent an apostrophe within the trap.
2167# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2168trap 'exit_status=$?
2169  # Save into config.log some information that might help in debugging.
2170  {
2171    echo
2172
2173    $as_echo "## ---------------- ##
2174## Cache variables. ##
2175## ---------------- ##"
2176    echo
2177    # The following way of writing the cache mishandles newlines in values,
2178(
2179  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2180    eval ac_val=\$$ac_var
2181    case $ac_val in #(
2182    *${as_nl}*)
2183      case $ac_var in #(
2184      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2185$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2186      esac
2187      case $ac_var in #(
2188      _ | IFS | as_nl) ;; #(
2189      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2190      *) { eval $ac_var=; unset $ac_var;} ;;
2191      esac ;;
2192    esac
2193  done
2194  (set) 2>&1 |
2195    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2196    *${as_nl}ac_space=\ *)
2197      sed -n \
2198	"s/'\''/'\''\\\\'\'''\''/g;
2199	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2200      ;; #(
2201    *)
2202      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2203      ;;
2204    esac |
2205    sort
2206)
2207    echo
2208
2209    $as_echo "## ----------------- ##
2210## Output variables. ##
2211## ----------------- ##"
2212    echo
2213    for ac_var in $ac_subst_vars
2214    do
2215      eval ac_val=\$$ac_var
2216      case $ac_val in
2217      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218      esac
2219      $as_echo "$ac_var='\''$ac_val'\''"
2220    done | sort
2221    echo
2222
2223    if test -n "$ac_subst_files"; then
2224      $as_echo "## ------------------- ##
2225## File substitutions. ##
2226## ------------------- ##"
2227      echo
2228      for ac_var in $ac_subst_files
2229      do
2230	eval ac_val=\$$ac_var
2231	case $ac_val in
2232	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233	esac
2234	$as_echo "$ac_var='\''$ac_val'\''"
2235      done | sort
2236      echo
2237    fi
2238
2239    if test -s confdefs.h; then
2240      $as_echo "## ----------- ##
2241## confdefs.h. ##
2242## ----------- ##"
2243      echo
2244      cat confdefs.h
2245      echo
2246    fi
2247    test "$ac_signal" != 0 &&
2248      $as_echo "$as_me: caught signal $ac_signal"
2249    $as_echo "$as_me: exit $exit_status"
2250  } >&5
2251  rm -f core *.core core.conftest.* &&
2252    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2253    exit $exit_status
2254' 0
2255for ac_signal in 1 2 13 15; do
2256  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2257done
2258ac_signal=0
2259
2260# confdefs.h avoids OS command line length limits that DEFS can exceed.
2261rm -f -r conftest* confdefs.h
2262
2263$as_echo "/* confdefs.h */" > confdefs.h
2264
2265# Predefined preprocessor variables.
2266
2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_NAME "$PACKAGE_NAME"
2269_ACEOF
2270
2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2273_ACEOF
2274
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_VERSION "$PACKAGE_VERSION"
2277_ACEOF
2278
2279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_STRING "$PACKAGE_STRING"
2281_ACEOF
2282
2283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2285_ACEOF
2286
2287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_URL "$PACKAGE_URL"
2289_ACEOF
2290
2291
2292# Let the site file select an alternate cache file if it wants to.
2293# Prefer an explicitly selected file to automatically selected ones.
2294ac_site_file1=NONE
2295ac_site_file2=NONE
2296if test -n "$CONFIG_SITE"; then
2297  # We do not want a PATH search for config.site.
2298  case $CONFIG_SITE in #((
2299    -*)  ac_site_file1=./$CONFIG_SITE;;
2300    */*) ac_site_file1=$CONFIG_SITE;;
2301    *)   ac_site_file1=./$CONFIG_SITE;;
2302  esac
2303elif test "x$prefix" != xNONE; then
2304  ac_site_file1=$prefix/share/config.site
2305  ac_site_file2=$prefix/etc/config.site
2306else
2307  ac_site_file1=$ac_default_prefix/share/config.site
2308  ac_site_file2=$ac_default_prefix/etc/config.site
2309fi
2310for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2311do
2312  test "x$ac_site_file" = xNONE && continue
2313  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2314    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2315$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2316    sed 's/^/| /' "$ac_site_file" >&5
2317    . "$ac_site_file" \
2318      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320as_fn_error $? "failed to load site script $ac_site_file
2321See \`config.log' for more details" "$LINENO" 5; }
2322  fi
2323done
2324
2325if test -r "$cache_file"; then
2326  # Some versions of bash will fail to source /dev/null (special files
2327  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2328  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2329    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2330$as_echo "$as_me: loading cache $cache_file" >&6;}
2331    case $cache_file in
2332      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2333      *)                      . "./$cache_file";;
2334    esac
2335  fi
2336else
2337  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2338$as_echo "$as_me: creating cache $cache_file" >&6;}
2339  >$cache_file
2340fi
2341
2342# Check that the precious variables saved in the cache have kept the same
2343# value.
2344ac_cache_corrupted=false
2345for ac_var in $ac_precious_vars; do
2346  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2347  eval ac_new_set=\$ac_env_${ac_var}_set
2348  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2349  eval ac_new_val=\$ac_env_${ac_var}_value
2350  case $ac_old_set,$ac_new_set in
2351    set,)
2352      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2353$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2354      ac_cache_corrupted=: ;;
2355    ,set)
2356      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2357$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2358      ac_cache_corrupted=: ;;
2359    ,);;
2360    *)
2361      if test "x$ac_old_val" != "x$ac_new_val"; then
2362	# differences in whitespace do not lead to failure.
2363	ac_old_val_w=`echo x $ac_old_val`
2364	ac_new_val_w=`echo x $ac_new_val`
2365	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2366	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2367$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2368	  ac_cache_corrupted=:
2369	else
2370	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2371$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2372	  eval $ac_var=\$ac_old_val
2373	fi
2374	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2375$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2376	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2377$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2378      fi;;
2379  esac
2380  # Pass precious variables to config.status.
2381  if test "$ac_new_set" = set; then
2382    case $ac_new_val in
2383    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2384    *) ac_arg=$ac_var=$ac_new_val ;;
2385    esac
2386    case " $ac_configure_args " in
2387      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2388      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2389    esac
2390  fi
2391done
2392if $ac_cache_corrupted; then
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2396$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2397  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2398fi
2399## -------------------- ##
2400## Main body of script. ##
2401## -------------------- ##
2402
2403ac_ext=c
2404ac_cpp='$CPP $CPPFLAGS'
2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408
2409
2410
2411
2412
2413ac_aux_dir=
2414for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2415  if test -f "$ac_dir/install-sh"; then
2416    ac_aux_dir=$ac_dir
2417    ac_install_sh="$ac_aux_dir/install-sh -c"
2418    break
2419  elif test -f "$ac_dir/install.sh"; then
2420    ac_aux_dir=$ac_dir
2421    ac_install_sh="$ac_aux_dir/install.sh -c"
2422    break
2423  elif test -f "$ac_dir/shtool"; then
2424    ac_aux_dir=$ac_dir
2425    ac_install_sh="$ac_aux_dir/shtool install -c"
2426    break
2427  fi
2428done
2429if test -z "$ac_aux_dir"; then
2430  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2431fi
2432
2433# These three variables are undocumented and unsupported,
2434# and are intended to be withdrawn in a future Autoconf release.
2435# They can cause serious problems if a builder's source tree is in a directory
2436# whose full name contains unusual characters.
2437ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2438ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2439ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2440
2441
2442# Make sure we can run config.sub.
2443$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2444  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2445
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2447$as_echo_n "checking build system type... " >&6; }
2448if ${ac_cv_build+:} false; then :
2449  $as_echo_n "(cached) " >&6
2450else
2451  ac_build_alias=$build_alias
2452test "x$ac_build_alias" = x &&
2453  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2454test "x$ac_build_alias" = x &&
2455  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2456ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2457  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2458
2459fi
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2461$as_echo "$ac_cv_build" >&6; }
2462case $ac_cv_build in
2463*-*-*) ;;
2464*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2465esac
2466build=$ac_cv_build
2467ac_save_IFS=$IFS; IFS='-'
2468set x $ac_cv_build
2469shift
2470build_cpu=$1
2471build_vendor=$2
2472shift; shift
2473# Remember, the first character of IFS is used to create $*,
2474# except with old shells:
2475build_os=$*
2476IFS=$ac_save_IFS
2477case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2478
2479
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2481$as_echo_n "checking host system type... " >&6; }
2482if ${ac_cv_host+:} false; then :
2483  $as_echo_n "(cached) " >&6
2484else
2485  if test "x$host_alias" = x; then
2486  ac_cv_host=$ac_cv_build
2487else
2488  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2489    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2490fi
2491
2492fi
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2494$as_echo "$ac_cv_host" >&6; }
2495case $ac_cv_host in
2496*-*-*) ;;
2497*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2498esac
2499host=$ac_cv_host
2500ac_save_IFS=$IFS; IFS='-'
2501set x $ac_cv_host
2502shift
2503host_cpu=$1
2504host_vendor=$2
2505shift; shift
2506# Remember, the first character of IFS is used to create $*,
2507# except with old shells:
2508host_os=$*
2509IFS=$ac_save_IFS
2510case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2511
2512
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2514$as_echo_n "checking target system type... " >&6; }
2515if ${ac_cv_target+:} false; then :
2516  $as_echo_n "(cached) " >&6
2517else
2518  if test "x$target_alias" = x; then
2519  ac_cv_target=$ac_cv_host
2520else
2521  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2522    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2523fi
2524
2525fi
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2527$as_echo "$ac_cv_target" >&6; }
2528case $ac_cv_target in
2529*-*-*) ;;
2530*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2531esac
2532target=$ac_cv_target
2533ac_save_IFS=$IFS; IFS='-'
2534set x $ac_cv_target
2535shift
2536target_cpu=$1
2537target_vendor=$2
2538shift; shift
2539# Remember, the first character of IFS is used to create $*,
2540# except with old shells:
2541target_os=$*
2542IFS=$ac_save_IFS
2543case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2544
2545
2546# The aliases save the names the user supplied, while $host etc.
2547# will get canonicalized.
2548test -n "$target_alias" &&
2549  test "$program_prefix$program_suffix$program_transform_name" = \
2550    NONENONEs,x,x, &&
2551  program_prefix=${target_alias}-
2552
2553
2554
2555
2556
2557
2558
2559
2560# Check whether --with-gcc was given.
2561if test "${with_gcc+set}" = set; then :
2562  withval=$with_gcc;
2563fi
2564
2565    V_CCOPT=""
2566    if test "${srcdir}" != "." ; then
2567	    V_CCOPT="-I\$(srcdir)"
2568    fi
2569    if test "${CFLAGS+set}" = set; then
2570	    LBL_CFLAGS="$CFLAGS"
2571    fi
2572    if test -z "$CC" ; then
2573	    case "$host_os" in
2574
2575	    bsdi*)
2576		    # Extract the first word of "shlicc2", so it can be a program name with args.
2577set dummy shlicc2; ac_word=$2
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579$as_echo_n "checking for $ac_word... " >&6; }
2580if ${ac_cv_prog_SHLICC2+:} false; then :
2581  $as_echo_n "(cached) " >&6
2582else
2583  if test -n "$SHLICC2"; then
2584  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589  IFS=$as_save_IFS
2590  test -z "$as_dir" && as_dir=.
2591    for ac_exec_ext in '' $ac_executable_extensions; do
2592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593    ac_cv_prog_SHLICC2="yes"
2594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595    break 2
2596  fi
2597done
2598  done
2599IFS=$as_save_IFS
2600
2601  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2602fi
2603fi
2604SHLICC2=$ac_cv_prog_SHLICC2
2605if test -n "$SHLICC2"; then
2606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2607$as_echo "$SHLICC2" >&6; }
2608else
2609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610$as_echo "no" >&6; }
2611fi
2612
2613
2614		    if test $SHLICC2 = yes ; then
2615			    CC=shlicc2
2616			    export CC
2617		    fi
2618		    ;;
2619	    esac
2620    fi
2621    if test -z "$CC" -a "$with_gcc" = no ; then
2622	    CC=cc
2623	    export CC
2624    fi
2625
2626#
2627# Try to enable as many C99 features as we can.
2628# At minimum, we want C++/C99-style // comments.
2629#
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635if test -n "$ac_tool_prefix"; then
2636  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2637set dummy ${ac_tool_prefix}gcc; ac_word=$2
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if ${ac_cv_prog_CC+:} false; then :
2641  $as_echo_n "(cached) " >&6
2642else
2643  if test -n "$CC"; then
2644  ac_cv_prog_CC="$CC" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649  IFS=$as_save_IFS
2650  test -z "$as_dir" && as_dir=.
2651    for ac_exec_ext in '' $ac_executable_extensions; do
2652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655    break 2
2656  fi
2657done
2658  done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663CC=$ac_cv_prog_CC
2664if test -n "$CC"; then
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2666$as_echo "$CC" >&6; }
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672
2673fi
2674if test -z "$ac_cv_prog_CC"; then
2675  ac_ct_CC=$CC
2676  # Extract the first word of "gcc", so it can be a program name with args.
2677set dummy gcc; ac_word=$2
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
2680if ${ac_cv_prog_ac_ct_CC+:} false; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  if test -n "$ac_ct_CC"; then
2684  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691    for ac_exec_ext in '' $ac_executable_extensions; do
2692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693    ac_cv_prog_ac_ct_CC="gcc"
2694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698  done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704if test -n "$ac_ct_CC"; then
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2706$as_echo "$ac_ct_CC" >&6; }
2707else
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709$as_echo "no" >&6; }
2710fi
2711
2712  if test "x$ac_ct_CC" = x; then
2713    CC=""
2714  else
2715    case $cross_compiling:$ac_tool_warned in
2716yes:)
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2719ac_tool_warned=yes ;;
2720esac
2721    CC=$ac_ct_CC
2722  fi
2723else
2724  CC="$ac_cv_prog_CC"
2725fi
2726
2727if test -z "$CC"; then
2728          if test -n "$ac_tool_prefix"; then
2729    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2730set dummy ${ac_tool_prefix}cc; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if ${ac_cv_prog_CC+:} false; then :
2734  $as_echo_n "(cached) " >&6
2735else
2736  if test -n "$CC"; then
2737  ac_cv_prog_CC="$CC" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746    ac_cv_prog_CC="${ac_tool_prefix}cc"
2747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756CC=$ac_cv_prog_CC
2757if test -n "$CC"; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759$as_echo "$CC" >&6; }
2760else
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766  fi
2767fi
2768if test -z "$CC"; then
2769  # Extract the first word of "cc", so it can be a program name with args.
2770set dummy cc; ac_word=$2
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if ${ac_cv_prog_CC+:} false; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  if test -n "$CC"; then
2777  ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
2779  ac_prog_rejected=no
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785    for ac_exec_ext in '' $ac_executable_extensions; do
2786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788       ac_prog_rejected=yes
2789       continue
2790     fi
2791    ac_cv_prog_CC="cc"
2792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796  done
2797IFS=$as_save_IFS
2798
2799if test $ac_prog_rejected = yes; then
2800  # We found a bogon in the path, so make sure we never use it.
2801  set dummy $ac_cv_prog_CC
2802  shift
2803  if test $# != 0; then
2804    # We chose a different compiler from the bogus one.
2805    # However, it has the same basename, so the bogon will be chosen
2806    # first if we set CC to just the basename; use the full file name.
2807    shift
2808    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2809  fi
2810fi
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816$as_echo "$CC" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823fi
2824if test -z "$CC"; then
2825  if test -n "$ac_tool_prefix"; then
2826  for ac_prog in cl.exe
2827  do
2828    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if ${ac_cv_prog_CC+:} false; then :
2833  $as_echo_n "(cached) " >&6
2834else
2835  if test -n "$CC"; then
2836  ac_cv_prog_CC="$CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843    for ac_exec_ext in '' $ac_executable_extensions; do
2844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850  done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855CC=$ac_cv_prog_CC
2856if test -n "$CC"; then
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858$as_echo "$CC" >&6; }
2859else
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861$as_echo "no" >&6; }
2862fi
2863
2864
2865    test -n "$CC" && break
2866  done
2867fi
2868if test -z "$CC"; then
2869  ac_ct_CC=$CC
2870  for ac_prog in cl.exe
2871do
2872  # Extract the first word of "$ac_prog", so it can be a program name with args.
2873set dummy $ac_prog; ac_word=$2
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if ${ac_cv_prog_ac_ct_CC+:} false; then :
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$ac_ct_CC"; then
2880  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887    for ac_exec_ext in '' $ac_executable_extensions; do
2888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889    ac_cv_prog_ac_ct_CC="$ac_prog"
2890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894  done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900if test -n "$ac_ct_CC"; then
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2902$as_echo "$ac_ct_CC" >&6; }
2903else
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909  test -n "$ac_ct_CC" && break
2910done
2911
2912  if test "x$ac_ct_CC" = x; then
2913    CC=""
2914  else
2915    case $cross_compiling:$ac_tool_warned in
2916yes:)
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919ac_tool_warned=yes ;;
2920esac
2921    CC=$ac_ct_CC
2922  fi
2923fi
2924
2925fi
2926
2927
2928test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930as_fn_error $? "no acceptable C compiler found in \$PATH
2931See \`config.log' for more details" "$LINENO" 5; }
2932
2933# Provide some information about the compiler.
2934$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2935set X $ac_compile
2936ac_compiler=$2
2937for ac_option in --version -v -V -qversion; do
2938  { { ac_try="$ac_compiler $ac_option >&5"
2939case "(($ac_try" in
2940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941  *) ac_try_echo=$ac_try;;
2942esac
2943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2944$as_echo "$ac_try_echo"; } >&5
2945  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2946  ac_status=$?
2947  if test -s conftest.err; then
2948    sed '10a\
2949... rest of stderr output deleted ...
2950         10q' conftest.err >conftest.er1
2951    cat conftest.er1 >&5
2952  fi
2953  rm -f conftest.er1 conftest.err
2954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955  test $ac_status = 0; }
2956done
2957
2958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969ac_clean_files_save=$ac_clean_files
2970ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2971# Try to create an executable without -o first, disregard a.out.
2972# It will help us diagnose broken compilers, and finding out an intuition
2973# of exeext.
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2975$as_echo_n "checking whether the C compiler works... " >&6; }
2976ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2977
2978# The possible output files:
2979ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2980
2981ac_rmfiles=
2982for ac_file in $ac_files
2983do
2984  case $ac_file in
2985    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2986    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2987  esac
2988done
2989rm -f $ac_rmfiles
2990
2991if { { ac_try="$ac_link_default"
2992case "(($ac_try" in
2993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994  *) ac_try_echo=$ac_try;;
2995esac
2996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2997$as_echo "$ac_try_echo"; } >&5
2998  (eval "$ac_link_default") 2>&5
2999  ac_status=$?
3000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001  test $ac_status = 0; }; then :
3002  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3003# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3004# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3005# so that the user can short-circuit this test for compilers unknown to
3006# Autoconf.
3007for ac_file in $ac_files ''
3008do
3009  test -f "$ac_file" || continue
3010  case $ac_file in
3011    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3012	;;
3013    [ab].out )
3014	# We found the default executable, but exeext='' is most
3015	# certainly right.
3016	break;;
3017    *.* )
3018	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3019	then :; else
3020	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021	fi
3022	# We set ac_cv_exeext here because the later test for it is not
3023	# safe: cross compilers may not add the suffix if given an `-o'
3024	# argument, so we may need to know it at that point already.
3025	# Even if this section looks crufty: it has the advantage of
3026	# actually working.
3027	break;;
3028    * )
3029	break;;
3030  esac
3031done
3032test "$ac_cv_exeext" = no && ac_cv_exeext=
3033
3034else
3035  ac_file=''
3036fi
3037if test -z "$ac_file"; then :
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039$as_echo "no" >&6; }
3040$as_echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045as_fn_error 77 "C compiler cannot create executables
3046See \`config.log' for more details" "$LINENO" 5; }
3047else
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3049$as_echo "yes" >&6; }
3050fi
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3052$as_echo_n "checking for C compiler default output file name... " >&6; }
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3054$as_echo "$ac_file" >&6; }
3055ac_exeext=$ac_cv_exeext
3056
3057rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3058ac_clean_files=$ac_clean_files_save
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3060$as_echo_n "checking for suffix of executables... " >&6; }
3061if { { ac_try="$ac_link"
3062case "(($ac_try" in
3063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064  *) ac_try_echo=$ac_try;;
3065esac
3066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067$as_echo "$ac_try_echo"; } >&5
3068  (eval "$ac_link") 2>&5
3069  ac_status=$?
3070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071  test $ac_status = 0; }; then :
3072  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3073# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3074# work properly (i.e., refer to `conftest.exe'), while it won't with
3075# `rm'.
3076for ac_file in conftest.exe conftest conftest.*; do
3077  test -f "$ac_file" || continue
3078  case $ac_file in
3079    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3080    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3081	  break;;
3082    * ) break;;
3083  esac
3084done
3085else
3086  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3089See \`config.log' for more details" "$LINENO" 5; }
3090fi
3091rm -f conftest conftest$ac_cv_exeext
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3093$as_echo "$ac_cv_exeext" >&6; }
3094
3095rm -f conftest.$ac_ext
3096EXEEXT=$ac_cv_exeext
3097ac_exeext=$EXEEXT
3098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099/* end confdefs.h.  */
3100#include <stdio.h>
3101int
3102main ()
3103{
3104FILE *f = fopen ("conftest.out", "w");
3105 return ferror (f) || fclose (f) != 0;
3106
3107  ;
3108  return 0;
3109}
3110_ACEOF
3111ac_clean_files="$ac_clean_files conftest.out"
3112# Check that the compiler produces executables we can run.  If not, either
3113# the compiler is broken, or we cross compile.
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3115$as_echo_n "checking whether we are cross compiling... " >&6; }
3116if test "$cross_compiling" != yes; then
3117  { { ac_try="$ac_link"
3118case "(($ac_try" in
3119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120  *) ac_try_echo=$ac_try;;
3121esac
3122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123$as_echo "$ac_try_echo"; } >&5
3124  (eval "$ac_link") 2>&5
3125  ac_status=$?
3126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127  test $ac_status = 0; }
3128  if { ac_try='./conftest$ac_cv_exeext'
3129  { { case "(($ac_try" in
3130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131  *) ac_try_echo=$ac_try;;
3132esac
3133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134$as_echo "$ac_try_echo"; } >&5
3135  (eval "$ac_try") 2>&5
3136  ac_status=$?
3137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138  test $ac_status = 0; }; }; then
3139    cross_compiling=no
3140  else
3141    if test "$cross_compiling" = maybe; then
3142	cross_compiling=yes
3143    else
3144	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146as_fn_error $? "cannot run C compiled programs.
3147If you meant to cross compile, use \`--host'.
3148See \`config.log' for more details" "$LINENO" 5; }
3149    fi
3150  fi
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3153$as_echo "$cross_compiling" >&6; }
3154
3155rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3156ac_clean_files=$ac_clean_files_save
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3158$as_echo_n "checking for suffix of object files... " >&6; }
3159if ${ac_cv_objext+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h.  */
3164
3165int
3166main ()
3167{
3168
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173rm -f conftest.o conftest.obj
3174if { { ac_try="$ac_compile"
3175case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180$as_echo "$ac_try_echo"; } >&5
3181  (eval "$ac_compile") 2>&5
3182  ac_status=$?
3183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184  test $ac_status = 0; }; then :
3185  for ac_file in conftest.o conftest.obj conftest.*; do
3186  test -f "$ac_file" || continue;
3187  case $ac_file in
3188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3189    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3190       break;;
3191  esac
3192done
3193else
3194  $as_echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
3197{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199as_fn_error $? "cannot compute suffix of object files: cannot compile
3200See \`config.log' for more details" "$LINENO" 5; }
3201fi
3202rm -f conftest.$ac_cv_objext conftest.$ac_ext
3203fi
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3205$as_echo "$ac_cv_objext" >&6; }
3206OBJEXT=$ac_cv_objext
3207ac_objext=$OBJEXT
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3209$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3210if ${ac_cv_c_compiler_gnu+:} false; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219#ifndef __GNUC__
3220       choke me
3221#endif
3222
3223  ;
3224  return 0;
3225}
3226_ACEOF
3227if ac_fn_c_try_compile "$LINENO"; then :
3228  ac_compiler_gnu=yes
3229else
3230  ac_compiler_gnu=no
3231fi
3232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233ac_cv_c_compiler_gnu=$ac_compiler_gnu
3234
3235fi
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3237$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3238if test $ac_compiler_gnu = yes; then
3239  GCC=yes
3240else
3241  GCC=
3242fi
3243ac_test_CFLAGS=${CFLAGS+set}
3244ac_save_CFLAGS=$CFLAGS
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3246$as_echo_n "checking whether $CC accepts -g... " >&6; }
3247if ${ac_cv_prog_cc_g+:} false; then :
3248  $as_echo_n "(cached) " >&6
3249else
3250  ac_save_c_werror_flag=$ac_c_werror_flag
3251   ac_c_werror_flag=yes
3252   ac_cv_prog_cc_g=no
3253   CFLAGS="-g"
3254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255/* end confdefs.h.  */
3256
3257int
3258main ()
3259{
3260
3261  ;
3262  return 0;
3263}
3264_ACEOF
3265if ac_fn_c_try_compile "$LINENO"; then :
3266  ac_cv_prog_cc_g=yes
3267else
3268  CFLAGS=""
3269      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h.  */
3271
3272int
3273main ()
3274{
3275
3276  ;
3277  return 0;
3278}
3279_ACEOF
3280if ac_fn_c_try_compile "$LINENO"; then :
3281
3282else
3283  ac_c_werror_flag=$ac_save_c_werror_flag
3284	 CFLAGS="-g"
3285	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h.  */
3287
3288int
3289main ()
3290{
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296if ac_fn_c_try_compile "$LINENO"; then :
3297  ac_cv_prog_cc_g=yes
3298fi
3299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300fi
3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302fi
3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304   ac_c_werror_flag=$ac_save_c_werror_flag
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3307$as_echo "$ac_cv_prog_cc_g" >&6; }
3308if test "$ac_test_CFLAGS" = set; then
3309  CFLAGS=$ac_save_CFLAGS
3310elif test $ac_cv_prog_cc_g = yes; then
3311  if test "$GCC" = yes; then
3312    CFLAGS="-g -O2"
3313  else
3314    CFLAGS="-g"
3315  fi
3316else
3317  if test "$GCC" = yes; then
3318    CFLAGS="-O2"
3319  else
3320    CFLAGS=
3321  fi
3322fi
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3324$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3325if ${ac_cv_prog_cc_c89+:} false; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  ac_cv_prog_cc_c89=no
3329ac_save_CC=$CC
3330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331/* end confdefs.h.  */
3332#include <stdarg.h>
3333#include <stdio.h>
3334struct stat;
3335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3336struct buf { int x; };
3337FILE * (*rcsopen) (struct buf *, struct stat *, int);
3338static char *e (p, i)
3339     char **p;
3340     int i;
3341{
3342  return p[i];
3343}
3344static char *f (char * (*g) (char **, int), char **p, ...)
3345{
3346  char *s;
3347  va_list v;
3348  va_start (v,p);
3349  s = g (p, va_arg (v,int));
3350  va_end (v);
3351  return s;
3352}
3353
3354/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3355   function prototypes and stuff, but not '\xHH' hex character constants.
3356   These don't provoke an error unfortunately, instead are silently treated
3357   as 'x'.  The following induces an error, until -std is added to get
3358   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3359   array size at least.  It's necessary to write '\x00'==0 to get something
3360   that's true only with -std.  */
3361int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3362
3363/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3364   inside strings and character constants.  */
3365#define FOO(x) 'x'
3366int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3367
3368int test (int i, double x);
3369struct s1 {int (*f) (int a);};
3370struct s2 {int (*f) (double a);};
3371int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3372int argc;
3373char **argv;
3374int
3375main ()
3376{
3377return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3378  ;
3379  return 0;
3380}
3381_ACEOF
3382for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3383	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3384do
3385  CC="$ac_save_CC $ac_arg"
3386  if ac_fn_c_try_compile "$LINENO"; then :
3387  ac_cv_prog_cc_c89=$ac_arg
3388fi
3389rm -f core conftest.err conftest.$ac_objext
3390  test "x$ac_cv_prog_cc_c89" != "xno" && break
3391done
3392rm -f conftest.$ac_ext
3393CC=$ac_save_CC
3394
3395fi
3396# AC_CACHE_VAL
3397case "x$ac_cv_prog_cc_c89" in
3398  x)
3399    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3400$as_echo "none needed" >&6; } ;;
3401  xno)
3402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3403$as_echo "unsupported" >&6; } ;;
3404  *)
3405    CC="$CC $ac_cv_prog_cc_c89"
3406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3407$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3408esac
3409if test "x$ac_cv_prog_cc_c89" != xno; then :
3410
3411fi
3412
3413ac_ext=c
3414ac_cpp='$CPP $CPPFLAGS'
3415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418
3419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3420$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3421if ${ac_cv_prog_cc_c99+:} false; then :
3422  $as_echo_n "(cached) " >&6
3423else
3424  ac_cv_prog_cc_c99=no
3425ac_save_CC=$CC
3426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428#include <stdarg.h>
3429#include <stdbool.h>
3430#include <stdlib.h>
3431#include <wchar.h>
3432#include <stdio.h>
3433
3434// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3435#define debug(...) fprintf (stderr, __VA_ARGS__)
3436#define showlist(...) puts (#__VA_ARGS__)
3437#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3438static void
3439test_varargs_macros (void)
3440{
3441  int x = 1234;
3442  int y = 5678;
3443  debug ("Flag");
3444  debug ("X = %d\n", x);
3445  showlist (The first, second, and third items.);
3446  report (x>y, "x is %d but y is %d", x, y);
3447}
3448
3449// Check long long types.
3450#define BIG64 18446744073709551615ull
3451#define BIG32 4294967295ul
3452#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3453#if !BIG_OK
3454  your preprocessor is broken;
3455#endif
3456#if BIG_OK
3457#else
3458  your preprocessor is broken;
3459#endif
3460static long long int bignum = -9223372036854775807LL;
3461static unsigned long long int ubignum = BIG64;
3462
3463struct incomplete_array
3464{
3465  int datasize;
3466  double data[];
3467};
3468
3469struct named_init {
3470  int number;
3471  const wchar_t *name;
3472  double average;
3473};
3474
3475typedef const char *ccp;
3476
3477static inline int
3478test_restrict (ccp restrict text)
3479{
3480  // See if C++-style comments work.
3481  // Iterate through items via the restricted pointer.
3482  // Also check for declarations in for loops.
3483  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3484    continue;
3485  return 0;
3486}
3487
3488// Check varargs and va_copy.
3489static void
3490test_varargs (const char *format, ...)
3491{
3492  va_list args;
3493  va_start (args, format);
3494  va_list args_copy;
3495  va_copy (args_copy, args);
3496
3497  const char *str;
3498  int number;
3499  float fnumber;
3500
3501  while (*format)
3502    {
3503      switch (*format++)
3504	{
3505	case 's': // string
3506	  str = va_arg (args_copy, const char *);
3507	  break;
3508	case 'd': // int
3509	  number = va_arg (args_copy, int);
3510	  break;
3511	case 'f': // float
3512	  fnumber = va_arg (args_copy, double);
3513	  break;
3514	default:
3515	  break;
3516	}
3517    }
3518  va_end (args_copy);
3519  va_end (args);
3520}
3521
3522int
3523main ()
3524{
3525
3526  // Check bool.
3527  _Bool success = false;
3528
3529  // Check restrict.
3530  if (test_restrict ("String literal") == 0)
3531    success = true;
3532  char *restrict newvar = "Another string";
3533
3534  // Check varargs.
3535  test_varargs ("s, d' f .", "string", 65, 34.234);
3536  test_varargs_macros ();
3537
3538  // Check flexible array members.
3539  struct incomplete_array *ia =
3540    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3541  ia->datasize = 10;
3542  for (int i = 0; i < ia->datasize; ++i)
3543    ia->data[i] = i * 1.234;
3544
3545  // Check named initializers.
3546  struct named_init ni = {
3547    .number = 34,
3548    .name = L"Test wide string",
3549    .average = 543.34343,
3550  };
3551
3552  ni.number = 58;
3553
3554  int dynamic_array[ni.number];
3555  dynamic_array[ni.number - 1] = 543;
3556
3557  // work around unused variable warnings
3558  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3559	  || dynamic_array[ni.number - 1] != 543);
3560
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3566do
3567  CC="$ac_save_CC $ac_arg"
3568  if ac_fn_c_try_compile "$LINENO"; then :
3569  ac_cv_prog_cc_c99=$ac_arg
3570fi
3571rm -f core conftest.err conftest.$ac_objext
3572  test "x$ac_cv_prog_cc_c99" != "xno" && break
3573done
3574rm -f conftest.$ac_ext
3575CC=$ac_save_CC
3576
3577fi
3578# AC_CACHE_VAL
3579case "x$ac_cv_prog_cc_c99" in
3580  x)
3581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3582$as_echo "none needed" >&6; } ;;
3583  xno)
3584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3585$as_echo "unsupported" >&6; } ;;
3586  *)
3587    CC="$CC $ac_cv_prog_cc_c99"
3588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3589$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3590esac
3591if test "x$ac_cv_prog_cc_c99" != xno; then :
3592
3593fi
3594
3595
3596if test "$ac_cv_prog_cc_c99" = "no"; then
3597	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5
3598$as_echo "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;}
3599fi
3600
3601
3602
3603
3604
3605    if test "$GCC" = yes ; then
3606	    #
3607	    # -Werror forces warnings to be errors.
3608	    #
3609	    ac_lbl_cc_force_warning_errors=-Werror
3610
3611	    #
3612	    # Try to have the compiler default to hiding symbols,
3613	    # so that only symbols explicitly exported with
3614	    # PCAP_API will be visible outside (shared) libraries.
3615	    #
3616
3617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3618$as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3619	save_CFLAGS="$CFLAGS"
3620	if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3621	then
3622	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3623	elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3624	then
3625	    CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3626	elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3627	then
3628	    CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3629	else
3630	    CFLAGS="$CFLAGS -fvisibility=hidden"
3631	fi
3632	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634
3635int
3636main ()
3637{
3638return 0
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_compile "$LINENO"; then :
3644
3645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646$as_echo "yes" >&6; }
3647		can_add_to_cflags=yes
3648		#
3649		# The compile supports this; do we have some C code for
3650		# which the warning should *not* appear?
3651		# We test the fourth argument because the third argument
3652		# could contain quotes, breaking the test.
3653		#
3654		if test "x" != "x"
3655		then
3656		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3657		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3658$as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3659		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h.  */
3661
3662_ACEOF
3663if ac_fn_c_try_compile "$LINENO"; then :
3664
3665			#
3666			# Not a problem.
3667			#
3668			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669$as_echo "no" >&6; }
3670
3671else
3672
3673			#
3674			# A problem.
3675			#
3676			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3677$as_echo "yes" >&6; }
3678			can_add_to_cflags=no
3679
3680fi
3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682		fi
3683		CFLAGS="$save_CFLAGS"
3684		if test x"$can_add_to_cflags" = "xyes"
3685		then
3686		    V_CCOPT="$V_CCOPT -fvisibility=hidden"
3687		fi
3688
3689else
3690
3691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692$as_echo "no" >&6; }
3693		CFLAGS="$save_CFLAGS"
3694
3695fi
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697
3698    else
3699	    V_INCLS="$V_INCLS -I/usr/local/include"
3700	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3701
3702	    case "$host_os" in
3703
3704	    darwin*)
3705		    #
3706		    # This is assumed either to be GCC or clang, both
3707		    # of which use -Werror to force warnings to be errors.
3708		    #
3709		    ac_lbl_cc_force_warning_errors=-Werror
3710
3711		    #
3712		    # Try to have the compiler default to hiding symbols,
3713		    # so that only symbols explicitly exported with
3714		    # PCAP_API will be visible outside (shared) libraries.
3715		    #
3716
3717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3718$as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3719	save_CFLAGS="$CFLAGS"
3720	if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3721	then
3722	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3723	elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3724	then
3725	    CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3726	elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3727	then
3728	    CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3729	else
3730	    CFLAGS="$CFLAGS -fvisibility=hidden"
3731	fi
3732	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h.  */
3734
3735int
3736main ()
3737{
3738return 0
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743if ac_fn_c_try_compile "$LINENO"; then :
3744
3745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3746$as_echo "yes" >&6; }
3747		can_add_to_cflags=yes
3748		#
3749		# The compile supports this; do we have some C code for
3750		# which the warning should *not* appear?
3751		# We test the fourth argument because the third argument
3752		# could contain quotes, breaking the test.
3753		#
3754		if test "x" != "x"
3755		then
3756		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3757		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3758$as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3759		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761
3762_ACEOF
3763if ac_fn_c_try_compile "$LINENO"; then :
3764
3765			#
3766			# Not a problem.
3767			#
3768			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769$as_echo "no" >&6; }
3770
3771else
3772
3773			#
3774			# A problem.
3775			#
3776			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777$as_echo "yes" >&6; }
3778			can_add_to_cflags=no
3779
3780fi
3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782		fi
3783		CFLAGS="$save_CFLAGS"
3784		if test x"$can_add_to_cflags" = "xyes"
3785		then
3786		    V_CCOPT="$V_CCOPT -fvisibility=hidden"
3787		fi
3788
3789else
3790
3791		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792$as_echo "no" >&6; }
3793		CFLAGS="$save_CFLAGS"
3794
3795fi
3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797
3798		    ;;
3799
3800	    hpux*)
3801		    #
3802		    # HP C, which is what we presume we're using, doesn't
3803		    # exit with a non-zero exit status if we hand it an
3804		    # invalid -W flag, can't be forced to do so even with
3805		    # +We, and doesn't handle GCC-style -W flags, so we
3806		    # don't want to try using GCC-style -W flags.
3807		    #
3808		    ac_lbl_cc_dont_try_gcc_dashW=yes
3809		    ;;
3810
3811	    irix*)
3812		    #
3813		    # MIPS C, which is what we presume we're using, doesn't
3814		    # necessarily exit with a non-zero exit status if we
3815		    # hand it an invalid -W flag, can't be forced to do
3816		    # so, and doesn't handle GCC-style -W flags, so we
3817		    # don't want to try using GCC-style -W flags.
3818		    #
3819		    ac_lbl_cc_dont_try_gcc_dashW=yes
3820		    #
3821		    # It also, apparently, defaults to "char" being
3822		    # unsigned, unlike most other C implementations;
3823		    # I suppose we could say "signed char" whenever
3824		    # we want to guarantee a signed "char", but let's
3825		    # just force signed chars.
3826		    #
3827		    # -xansi is normally the default, but the
3828		    # configure script was setting it; perhaps -cckr
3829		    # was the default in the Old Days.  (Then again,
3830		    # that would probably be for backwards compatibility
3831		    # in the days when ANSI C was Shiny and New, i.e.
3832		    # 1989 and the early '90's, so maybe we can just
3833		    # drop support for those compilers.)
3834		    #
3835		    # -g is equivalent to -g2, which turns off
3836		    # optimization; we choose -g3, which generates
3837		    # debugging information but doesn't turn off
3838		    # optimization (even if the optimization would
3839		    # cause inaccuracies in debugging).
3840		    #
3841		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
3842		    ;;
3843
3844	    osf*)
3845		    #
3846		    # Presumed to be DEC OSF/1, Digital UNIX, or
3847		    # Tru64 UNIX.
3848		    #
3849		    # The DEC C compiler, which is what we presume we're
3850		    # using, doesn't exit with a non-zero exit status if we
3851		    # hand it an invalid -W flag, can't be forced to do
3852		    # so, and doesn't handle GCC-style -W flags, so we
3853		    # don't want to try using GCC-style -W flags.
3854		    #
3855		    ac_lbl_cc_dont_try_gcc_dashW=yes
3856		    #
3857		    # -g is equivalent to -g2, which turns off
3858		    # optimization; we choose -g3, which generates
3859		    # debugging information but doesn't turn off
3860		    # optimization (even if the optimization would
3861		    # cause inaccuracies in debugging).
3862		    #
3863		    V_CCOPT="$V_CCOPT -g3"
3864		    ;;
3865
3866	    solaris*)
3867		    #
3868		    # Assumed to be Sun C, which requires -errwarn to force
3869		    # warnings to be treated as errors.
3870		    #
3871		    ac_lbl_cc_force_warning_errors=-errwarn
3872
3873		    #
3874		    # Try to have the compiler default to hiding symbols,
3875		    # so that only symbols explicitly exported with
3876		    # PCAP_API will be visible outside (shared) libraries.
3877		    #
3878
3879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3880$as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3881	save_CFLAGS="$CFLAGS"
3882	if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3883	then
3884	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3885	elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3886	then
3887	    CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3888	elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3889	then
3890	    CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3891	else
3892	    CFLAGS="$CFLAGS -xldscope=hidden"
3893	fi
3894	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900return 0
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905if ac_fn_c_try_compile "$LINENO"; then :
3906
3907		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3908$as_echo "yes" >&6; }
3909		can_add_to_cflags=yes
3910		#
3911		# The compile supports this; do we have some C code for
3912		# which the warning should *not* appear?
3913		# We test the fourth argument because the third argument
3914		# could contain quotes, breaking the test.
3915		#
3916		if test "x" != "x"
3917		then
3918		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3919		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
3920$as_echo_n "checking whether -xldscope=hidden ... " >&6; }
3921		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h.  */
3923
3924_ACEOF
3925if ac_fn_c_try_compile "$LINENO"; then :
3926
3927			#
3928			# Not a problem.
3929			#
3930			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931$as_echo "no" >&6; }
3932
3933else
3934
3935			#
3936			# A problem.
3937			#
3938			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939$as_echo "yes" >&6; }
3940			can_add_to_cflags=no
3941
3942fi
3943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944		fi
3945		CFLAGS="$save_CFLAGS"
3946		if test x"$can_add_to_cflags" = "xyes"
3947		then
3948		    V_CCOPT="$V_CCOPT -xldscope=hidden"
3949		fi
3950
3951else
3952
3953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954$as_echo "no" >&6; }
3955		CFLAGS="$save_CFLAGS"
3956
3957fi
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959
3960		    ;;
3961
3962	    ultrix*)
3963		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3964$as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3965		    if ${ac_cv_lbl_cc_const_proto+:} false; then :
3966  $as_echo_n "(cached) " >&6
3967else
3968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h.  */
3970#include <sys/types.h>
3971int
3972main ()
3973{
3974struct a { int b; };
3975			    void c(const struct a *)
3976  ;
3977  return 0;
3978}
3979_ACEOF
3980if ac_fn_c_try_compile "$LINENO"; then :
3981  ac_cv_lbl_cc_const_proto=yes
3982else
3983  ac_cv_lbl_cc_const_proto=no
3984fi
3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986fi
3987
3988		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3989$as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3990		    if test $ac_cv_lbl_cc_const_proto = no ; then
3991
3992$as_echo "#define const /**/" >>confdefs.h
3993
3994		    fi
3995		    ;;
3996	    esac
3997	    V_CCOPT="$V_CCOPT -O"
3998    fi
3999
4000
4001    if test "$GCC" = yes ; then
4002	    #
4003	    # On platforms where we build a shared library:
4004	    #
4005	    #	add options to generate position-independent code,
4006	    #	if necessary (it's the default in AIX and Darwin/macOS);
4007	    #
4008	    #	define option to set the soname of the shared library,
4009	    #	if the OS supports that;
4010	    #
4011	    #	add options to specify, at link time, a directory to
4012	    #	add to the run-time search path, if that's necessary.
4013	    #
4014	    V_SHLIB_CMD="\$(CC)"
4015	    V_SHLIB_OPT="-shared"
4016	    case "$host_os" in
4017
4018	    aix*)
4019		    ;;
4020
4021	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*|midipix*)
4022	    	    #
4023		    # Platforms where the linker is the GNU linker
4024		    # or accepts command-line arguments like
4025		    # those the GNU linker accepts.
4026		    #
4027		    # Some instruction sets require -fPIC on some
4028		    # operating systems.  Check for them.  If you
4029		    # have a combination that requires it, add it
4030		    # here.
4031		    #
4032		    PIC_OPT=-fpic
4033		    case "$host_cpu" in
4034
4035		    sparc64*)
4036			case "$host_os" in
4037
4038			freebsd*|openbsd*|linux*)
4039			    PIC_OPT=-fPIC
4040			    ;;
4041			esac
4042			;;
4043		    esac
4044		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
4045		    V_SONAME_OPT="-Wl,-soname,"
4046		    V_RPATH_OPT="-Wl,-rpath,"
4047		    ;;
4048
4049	    hpux*)
4050		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4051	    	    #
4052		    # XXX - this assumes GCC is using the HP linker,
4053		    # rather than the GNU linker, and that the "+h"
4054		    # option is used on all HP-UX platforms, both .sl
4055		    # and .so.
4056		    #
4057		    V_SONAME_OPT="-Wl,+h,"
4058		    #
4059		    # By default, directories specifed with -L
4060		    # are added to the run-time search path, so
4061		    # we don't add them in pcap-config.
4062		    #
4063		    ;;
4064
4065	    solaris*)
4066		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4067		    #
4068		    # XXX - this assumes GCC is using the Sun linker,
4069		    # rather than the GNU linker.
4070		    #
4071		    V_SONAME_OPT="-Wl,-h,"
4072		    V_RPATH_OPT="-Wl,-R,"
4073		    ;;
4074	    esac
4075    else
4076	    #
4077	    # Set the appropriate compiler flags and, on platforms
4078	    # where we build a shared library:
4079	    #
4080	    #	add options to generate position-independent code,
4081	    #	if necessary (it's the default in Darwin/macOS);
4082	    #
4083	    #	if we generate ".so" shared libraries, define the
4084	    #	appropriate options for building the shared library;
4085	    #
4086	    #	add options to specify, at link time, a directory to
4087	    #	add to the run-time search path, if that's necessary.
4088	    #
4089	    # Note: spaces after V_SONAME_OPT are significant; on
4090	    # some platforms the soname is passed with a GCC-like
4091	    # "-Wl,-soname,{soname}" option, with the soname part
4092	    # of the option, while on other platforms the C compiler
4093	    # driver takes it as a regular option with the soname
4094	    # following the option.  The same applies to V_RPATH_OPT.
4095	    #
4096	    case "$host_os" in
4097
4098	    aix*)
4099		    V_SHLIB_CMD="\$(CC)"
4100		    V_SHLIB_OPT="-G -bnoentry -bexpall"
4101		    ;;
4102
4103	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
4104		    #
4105		    # "cc" is GCC.
4106		    #
4107		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4108		    V_SHLIB_CMD="\$(CC)"
4109		    V_SHLIB_OPT="-shared"
4110		    V_SONAME_OPT="-Wl,-soname,"
4111		    V_RPATH_OPT="-Wl,-rpath,"
4112		    ;;
4113
4114	    hpux*)
4115		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
4116		    V_SHLIB_CMD="\$(LD)"
4117		    V_SHLIB_OPT="-b"
4118		    V_SONAME_OPT="+h "
4119		    #
4120		    # By default, directories specifed with -L
4121		    # are added to the run-time search path, so
4122		    # we don't add them in pcap-config.
4123		    #
4124		    ;;
4125
4126	    osf*)
4127	    	    #
4128		    # Presumed to be DEC OSF/1, Digital UNIX, or
4129		    # Tru64 UNIX.
4130		    #
4131		    V_SHLIB_CMD="\$(CC)"
4132		    V_SHLIB_OPT="-shared"
4133		    V_SONAME_OPT="-soname "
4134		    V_RPATH_OPT="-rpath "
4135		    ;;
4136
4137	    solaris*)
4138		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
4139		    V_SHLIB_CMD="\$(CC)"
4140		    V_SHLIB_OPT="-G"
4141		    V_SONAME_OPT="-h "
4142		    V_RPATH_OPT="-R"
4143		    ;;
4144	    esac
4145    fi
4146
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4148$as_echo_n "checking for inline... " >&6; }
4149    save_CFLAGS="$CFLAGS"
4150    CFLAGS="$V_CCOPT"
4151    if ${ac_cv_lbl_inline+:} false; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154
4155	ac_cv_lbl_inline=""
4156	ac_lbl_cc_inline=no
4157	for ac_lbl_inline in inline __inline__ __inline
4158	do
4159	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161#define inline $ac_lbl_inline
4162		static inline struct iltest *foo(void);
4163		struct iltest {
4164		    int iltest1;
4165		    int iltest2;
4166		};
4167
4168		static inline struct iltest *
4169		foo()
4170		{
4171		    static struct iltest xxx;
4172
4173		    return &xxx;
4174		}
4175int
4176main ()
4177{
4178
4179  ;
4180  return 0;
4181}
4182_ACEOF
4183if ac_fn_c_try_compile "$LINENO"; then :
4184  ac_lbl_cc_inline=yes
4185fi
4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187	    if test "$ac_lbl_cc_inline" = yes ; then
4188		break;
4189	    fi
4190	done
4191	if test "$ac_lbl_cc_inline" = yes ; then
4192	    ac_cv_lbl_inline=$ac_lbl_inline
4193	fi
4194fi
4195
4196    CFLAGS="$save_CFLAGS"
4197    if test ! -z "$ac_cv_lbl_inline" ; then
4198	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4199$as_echo "$ac_cv_lbl_inline" >&6; }
4200    else
4201	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
4203    fi
4204
4205cat >>confdefs.h <<_ACEOF
4206#define inline $ac_cv_lbl_inline
4207_ACEOF
4208
4209
4210#
4211# Try to arrange for large file support.
4212#
4213# Check whether --enable-largefile was given.
4214if test "${enable_largefile+set}" = set; then :
4215  enableval=$enable_largefile;
4216fi
4217
4218if test "$enable_largefile" != no; then
4219
4220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4221$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4222if ${ac_cv_sys_largefile_CC+:} false; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225  ac_cv_sys_largefile_CC=no
4226     if test "$GCC" != yes; then
4227       ac_save_CC=$CC
4228       while :; do
4229	 # IRIX 6.2 and later do not support large files by default,
4230	 # so use the C compiler's -n32 option if that helps.
4231	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232/* end confdefs.h.  */
4233#include <sys/types.h>
4234 /* Check that off_t can represent 2**63 - 1 correctly.
4235    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4236    since some C++ compilers masquerading as C compilers
4237    incorrectly reject 9223372036854775807.  */
4238#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4239  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4240		       && LARGE_OFF_T % 2147483647 == 1)
4241		      ? 1 : -1];
4242int
4243main ()
4244{
4245
4246  ;
4247  return 0;
4248}
4249_ACEOF
4250	 if ac_fn_c_try_compile "$LINENO"; then :
4251  break
4252fi
4253rm -f core conftest.err conftest.$ac_objext
4254	 CC="$CC -n32"
4255	 if ac_fn_c_try_compile "$LINENO"; then :
4256  ac_cv_sys_largefile_CC=' -n32'; break
4257fi
4258rm -f core conftest.err conftest.$ac_objext
4259	 break
4260       done
4261       CC=$ac_save_CC
4262       rm -f conftest.$ac_ext
4263    fi
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4266$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4267  if test "$ac_cv_sys_largefile_CC" != no; then
4268    CC=$CC$ac_cv_sys_largefile_CC
4269  fi
4270
4271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4272$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4273if ${ac_cv_sys_file_offset_bits+:} false; then :
4274  $as_echo_n "(cached) " >&6
4275else
4276  while :; do
4277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279#include <sys/types.h>
4280 /* Check that off_t can represent 2**63 - 1 correctly.
4281    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4282    since some C++ compilers masquerading as C compilers
4283    incorrectly reject 9223372036854775807.  */
4284#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4285  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4286		       && LARGE_OFF_T % 2147483647 == 1)
4287		      ? 1 : -1];
4288int
4289main ()
4290{
4291
4292  ;
4293  return 0;
4294}
4295_ACEOF
4296if ac_fn_c_try_compile "$LINENO"; then :
4297  ac_cv_sys_file_offset_bits=no; break
4298fi
4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h.  */
4302#define _FILE_OFFSET_BITS 64
4303#include <sys/types.h>
4304 /* Check that off_t can represent 2**63 - 1 correctly.
4305    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4306    since some C++ compilers masquerading as C compilers
4307    incorrectly reject 9223372036854775807.  */
4308#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4309  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4310		       && LARGE_OFF_T % 2147483647 == 1)
4311		      ? 1 : -1];
4312int
4313main ()
4314{
4315
4316  ;
4317  return 0;
4318}
4319_ACEOF
4320if ac_fn_c_try_compile "$LINENO"; then :
4321  ac_cv_sys_file_offset_bits=64; break
4322fi
4323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324  ac_cv_sys_file_offset_bits=unknown
4325  break
4326done
4327fi
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4329$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4330case $ac_cv_sys_file_offset_bits in #(
4331  no | unknown) ;;
4332  *)
4333cat >>confdefs.h <<_ACEOF
4334#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4335_ACEOF
4336;;
4337esac
4338rm -rf conftest*
4339  if test $ac_cv_sys_file_offset_bits = unknown; then
4340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4341$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4342if ${ac_cv_sys_large_files+:} false; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  while :; do
4346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h.  */
4348#include <sys/types.h>
4349 /* Check that off_t can represent 2**63 - 1 correctly.
4350    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4351    since some C++ compilers masquerading as C compilers
4352    incorrectly reject 9223372036854775807.  */
4353#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4354  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4355		       && LARGE_OFF_T % 2147483647 == 1)
4356		      ? 1 : -1];
4357int
4358main ()
4359{
4360
4361  ;
4362  return 0;
4363}
4364_ACEOF
4365if ac_fn_c_try_compile "$LINENO"; then :
4366  ac_cv_sys_large_files=no; break
4367fi
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370/* end confdefs.h.  */
4371#define _LARGE_FILES 1
4372#include <sys/types.h>
4373 /* Check that off_t can represent 2**63 - 1 correctly.
4374    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4375    since some C++ compilers masquerading as C compilers
4376    incorrectly reject 9223372036854775807.  */
4377#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4378  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4379		       && LARGE_OFF_T % 2147483647 == 1)
4380		      ? 1 : -1];
4381int
4382main ()
4383{
4384
4385  ;
4386  return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_compile "$LINENO"; then :
4390  ac_cv_sys_large_files=1; break
4391fi
4392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393  ac_cv_sys_large_files=unknown
4394  break
4395done
4396fi
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4398$as_echo "$ac_cv_sys_large_files" >&6; }
4399case $ac_cv_sys_large_files in #(
4400  no | unknown) ;;
4401  *)
4402cat >>confdefs.h <<_ACEOF
4403#define _LARGE_FILES $ac_cv_sys_large_files
4404_ACEOF
4405;;
4406esac
4407rm -rf conftest*
4408  fi
4409
4410
4411fi
4412
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4414$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4415if ${ac_cv_sys_largefile_source+:} false; then :
4416  $as_echo_n "(cached) " >&6
4417else
4418  while :; do
4419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h.  */
4421#include <sys/types.h> /* for off_t */
4422     #include <stdio.h>
4423int
4424main ()
4425{
4426int (*fp) (FILE *, off_t, int) = fseeko;
4427     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4428  ;
4429  return 0;
4430}
4431_ACEOF
4432if ac_fn_c_try_link "$LINENO"; then :
4433  ac_cv_sys_largefile_source=no; break
4434fi
4435rm -f core conftest.err conftest.$ac_objext \
4436    conftest$ac_exeext conftest.$ac_ext
4437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438/* end confdefs.h.  */
4439#define _LARGEFILE_SOURCE 1
4440#include <sys/types.h> /* for off_t */
4441     #include <stdio.h>
4442int
4443main ()
4444{
4445int (*fp) (FILE *, off_t, int) = fseeko;
4446     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4447  ;
4448  return 0;
4449}
4450_ACEOF
4451if ac_fn_c_try_link "$LINENO"; then :
4452  ac_cv_sys_largefile_source=1; break
4453fi
4454rm -f core conftest.err conftest.$ac_objext \
4455    conftest$ac_exeext conftest.$ac_ext
4456  ac_cv_sys_largefile_source=unknown
4457  break
4458done
4459fi
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4461$as_echo "$ac_cv_sys_largefile_source" >&6; }
4462case $ac_cv_sys_largefile_source in #(
4463  no | unknown) ;;
4464  *)
4465cat >>confdefs.h <<_ACEOF
4466#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4467_ACEOF
4468;;
4469esac
4470rm -rf conftest*
4471
4472# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4473# in glibc 2.1.3, but that breaks too many other things.
4474# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4475if test $ac_cv_sys_largefile_source != unknown; then
4476
4477$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4478
4479fi
4480
4481
4482ac_ext=c
4483ac_cpp='$CPP $CPPFLAGS'
4484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4488$as_echo_n "checking how to run the C preprocessor... " >&6; }
4489# On Suns, sometimes $CPP names a directory.
4490if test -n "$CPP" && test -d "$CPP"; then
4491  CPP=
4492fi
4493if test -z "$CPP"; then
4494  if ${ac_cv_prog_CPP+:} false; then :
4495  $as_echo_n "(cached) " >&6
4496else
4497      # Double quotes because CPP needs to be expanded
4498    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4499    do
4500      ac_preproc_ok=false
4501for ac_c_preproc_warn_flag in '' yes
4502do
4503  # Use a header file that comes with gcc, so configuring glibc
4504  # with a fresh cross-compiler works.
4505  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4506  # <limits.h> exists even on freestanding compilers.
4507  # On the NeXT, cc -E runs the code through the compiler's parser,
4508  # not just through cpp. "Syntax error" is here to catch this case.
4509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511#ifdef __STDC__
4512# include <limits.h>
4513#else
4514# include <assert.h>
4515#endif
4516		     Syntax error
4517_ACEOF
4518if ac_fn_c_try_cpp "$LINENO"; then :
4519
4520else
4521  # Broken: fails on valid input.
4522continue
4523fi
4524rm -f conftest.err conftest.i conftest.$ac_ext
4525
4526  # OK, works on sane cases.  Now check whether nonexistent headers
4527  # can be detected and how.
4528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529/* end confdefs.h.  */
4530#include <ac_nonexistent.h>
4531_ACEOF
4532if ac_fn_c_try_cpp "$LINENO"; then :
4533  # Broken: success on invalid input.
4534continue
4535else
4536  # Passes both tests.
4537ac_preproc_ok=:
4538break
4539fi
4540rm -f conftest.err conftest.i conftest.$ac_ext
4541
4542done
4543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4544rm -f conftest.i conftest.err conftest.$ac_ext
4545if $ac_preproc_ok; then :
4546  break
4547fi
4548
4549    done
4550    ac_cv_prog_CPP=$CPP
4551
4552fi
4553  CPP=$ac_cv_prog_CPP
4554else
4555  ac_cv_prog_CPP=$CPP
4556fi
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4558$as_echo "$CPP" >&6; }
4559ac_preproc_ok=false
4560for ac_c_preproc_warn_flag in '' yes
4561do
4562  # Use a header file that comes with gcc, so configuring glibc
4563  # with a fresh cross-compiler works.
4564  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4565  # <limits.h> exists even on freestanding compilers.
4566  # On the NeXT, cc -E runs the code through the compiler's parser,
4567  # not just through cpp. "Syntax error" is here to catch this case.
4568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h.  */
4570#ifdef __STDC__
4571# include <limits.h>
4572#else
4573# include <assert.h>
4574#endif
4575		     Syntax error
4576_ACEOF
4577if ac_fn_c_try_cpp "$LINENO"; then :
4578
4579else
4580  # Broken: fails on valid input.
4581continue
4582fi
4583rm -f conftest.err conftest.i conftest.$ac_ext
4584
4585  # OK, works on sane cases.  Now check whether nonexistent headers
4586  # can be detected and how.
4587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588/* end confdefs.h.  */
4589#include <ac_nonexistent.h>
4590_ACEOF
4591if ac_fn_c_try_cpp "$LINENO"; then :
4592  # Broken: success on invalid input.
4593continue
4594else
4595  # Passes both tests.
4596ac_preproc_ok=:
4597break
4598fi
4599rm -f conftest.err conftest.i conftest.$ac_ext
4600
4601done
4602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603rm -f conftest.i conftest.err conftest.$ac_ext
4604if $ac_preproc_ok; then :
4605
4606else
4607  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4610See \`config.log' for more details" "$LINENO" 5; }
4611fi
4612
4613ac_ext=c
4614ac_cpp='$CPP $CPPFLAGS'
4615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4621$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4622if ${ac_cv_path_GREP+:} false; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  if test -z "$GREP"; then
4626  ac_path_GREP_found=false
4627  # Loop through the user's path and test for each of PROGNAME-LIST
4628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630do
4631  IFS=$as_save_IFS
4632  test -z "$as_dir" && as_dir=.
4633    for ac_prog in grep ggrep; do
4634    for ac_exec_ext in '' $ac_executable_extensions; do
4635      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4636      as_fn_executable_p "$ac_path_GREP" || continue
4637# Check for GNU ac_path_GREP and select it if it is found.
4638  # Check for GNU $ac_path_GREP
4639case `"$ac_path_GREP" --version 2>&1` in
4640*GNU*)
4641  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4642*)
4643  ac_count=0
4644  $as_echo_n 0123456789 >"conftest.in"
4645  while :
4646  do
4647    cat "conftest.in" "conftest.in" >"conftest.tmp"
4648    mv "conftest.tmp" "conftest.in"
4649    cp "conftest.in" "conftest.nl"
4650    $as_echo 'GREP' >> "conftest.nl"
4651    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4652    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4653    as_fn_arith $ac_count + 1 && ac_count=$as_val
4654    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4655      # Best one so far, save it but keep looking for a better one
4656      ac_cv_path_GREP="$ac_path_GREP"
4657      ac_path_GREP_max=$ac_count
4658    fi
4659    # 10*(2^10) chars as input seems more than enough
4660    test $ac_count -gt 10 && break
4661  done
4662  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663esac
4664
4665      $ac_path_GREP_found && break 3
4666    done
4667  done
4668  done
4669IFS=$as_save_IFS
4670  if test -z "$ac_cv_path_GREP"; then
4671    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672  fi
4673else
4674  ac_cv_path_GREP=$GREP
4675fi
4676
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4679$as_echo "$ac_cv_path_GREP" >&6; }
4680 GREP="$ac_cv_path_GREP"
4681
4682
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4684$as_echo_n "checking for egrep... " >&6; }
4685if ${ac_cv_path_EGREP+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4689   then ac_cv_path_EGREP="$GREP -E"
4690   else
4691     if test -z "$EGREP"; then
4692  ac_path_EGREP_found=false
4693  # Loop through the user's path and test for each of PROGNAME-LIST
4694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699    for ac_prog in egrep; do
4700    for ac_exec_ext in '' $ac_executable_extensions; do
4701      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4702      as_fn_executable_p "$ac_path_EGREP" || continue
4703# Check for GNU ac_path_EGREP and select it if it is found.
4704  # Check for GNU $ac_path_EGREP
4705case `"$ac_path_EGREP" --version 2>&1` in
4706*GNU*)
4707  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4708*)
4709  ac_count=0
4710  $as_echo_n 0123456789 >"conftest.in"
4711  while :
4712  do
4713    cat "conftest.in" "conftest.in" >"conftest.tmp"
4714    mv "conftest.tmp" "conftest.in"
4715    cp "conftest.in" "conftest.nl"
4716    $as_echo 'EGREP' >> "conftest.nl"
4717    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719    as_fn_arith $ac_count + 1 && ac_count=$as_val
4720    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4721      # Best one so far, save it but keep looking for a better one
4722      ac_cv_path_EGREP="$ac_path_EGREP"
4723      ac_path_EGREP_max=$ac_count
4724    fi
4725    # 10*(2^10) chars as input seems more than enough
4726    test $ac_count -gt 10 && break
4727  done
4728  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729esac
4730
4731      $ac_path_EGREP_found && break 3
4732    done
4733  done
4734  done
4735IFS=$as_save_IFS
4736  if test -z "$ac_cv_path_EGREP"; then
4737    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4738  fi
4739else
4740  ac_cv_path_EGREP=$EGREP
4741fi
4742
4743   fi
4744fi
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4746$as_echo "$ac_cv_path_EGREP" >&6; }
4747 EGREP="$ac_cv_path_EGREP"
4748
4749
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4751$as_echo_n "checking for ANSI C header files... " >&6; }
4752if ${ac_cv_header_stdc+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h.  */
4757#include <stdlib.h>
4758#include <stdarg.h>
4759#include <string.h>
4760#include <float.h>
4761
4762int
4763main ()
4764{
4765
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770if ac_fn_c_try_compile "$LINENO"; then :
4771  ac_cv_header_stdc=yes
4772else
4773  ac_cv_header_stdc=no
4774fi
4775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776
4777if test $ac_cv_header_stdc = yes; then
4778  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h.  */
4781#include <string.h>
4782
4783_ACEOF
4784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785  $EGREP "memchr" >/dev/null 2>&1; then :
4786
4787else
4788  ac_cv_header_stdc=no
4789fi
4790rm -f conftest*
4791
4792fi
4793
4794if test $ac_cv_header_stdc = yes; then
4795  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797/* end confdefs.h.  */
4798#include <stdlib.h>
4799
4800_ACEOF
4801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4802  $EGREP "free" >/dev/null 2>&1; then :
4803
4804else
4805  ac_cv_header_stdc=no
4806fi
4807rm -f conftest*
4808
4809fi
4810
4811if test $ac_cv_header_stdc = yes; then
4812  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4813  if test "$cross_compiling" = yes; then :
4814  :
4815else
4816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817/* end confdefs.h.  */
4818#include <ctype.h>
4819#include <stdlib.h>
4820#if ((' ' & 0x0FF) == 0x020)
4821# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4822# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4823#else
4824# define ISLOWER(c) \
4825		   (('a' <= (c) && (c) <= 'i') \
4826		     || ('j' <= (c) && (c) <= 'r') \
4827		     || ('s' <= (c) && (c) <= 'z'))
4828# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4829#endif
4830
4831#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4832int
4833main ()
4834{
4835  int i;
4836  for (i = 0; i < 256; i++)
4837    if (XOR (islower (i), ISLOWER (i))
4838	|| toupper (i) != TOUPPER (i))
4839      return 2;
4840  return 0;
4841}
4842_ACEOF
4843if ac_fn_c_try_run "$LINENO"; then :
4844
4845else
4846  ac_cv_header_stdc=no
4847fi
4848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4849  conftest.$ac_objext conftest.beam conftest.$ac_ext
4850fi
4851
4852fi
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4855$as_echo "$ac_cv_header_stdc" >&6; }
4856if test $ac_cv_header_stdc = yes; then
4857
4858$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4859
4860fi
4861
4862# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4863for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4864		  inttypes.h stdint.h unistd.h
4865do :
4866  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4867ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4868"
4869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4870  cat >>confdefs.h <<_ACEOF
4871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4872_ACEOF
4873
4874fi
4875
4876done
4877
4878
4879for ac_header in sys/ioccom.h sys/sockio.h limits.h
4880do :
4881  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4882ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4884  cat >>confdefs.h <<_ACEOF
4885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4886_ACEOF
4887
4888fi
4889
4890done
4891
4892for ac_header in netpacket/packet.h
4893do :
4894  ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4895if test "x$ac_cv_header_netpacket_packet_h" = xyes; then :
4896  cat >>confdefs.h <<_ACEOF
4897#define HAVE_NETPACKET_PACKET_H 1
4898_ACEOF
4899
4900fi
4901
4902done
4903
4904for ac_header in net/pfvar.h
4905do :
4906  ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4907#include <sys/socket.h>
4908#include <net/if.h>
4909"
4910if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
4911  cat >>confdefs.h <<_ACEOF
4912#define HAVE_NET_PFVAR_H 1
4913_ACEOF
4914
4915fi
4916
4917done
4918
4919if test "$ac_cv_header_net_pfvar_h" = yes; then
4920	#
4921	# Check for various PF actions.
4922	#
4923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4924$as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4925	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926/* end confdefs.h.  */
4927#include <sys/types.h>
4928	    #include <sys/socket.h>
4929	    #include <net/if.h>
4930	    #include <net/pfvar.h>
4931int
4932main ()
4933{
4934return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939if ac_fn_c_try_compile "$LINENO"; then :
4940
4941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4942$as_echo "yes" >&6; }
4943
4944$as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4945
4946
4947else
4948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949$as_echo "no" >&6; }
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952fi
4953
4954case "$host_os" in
4955linux*|uclinux*)
4956	for ac_header in linux/sockios.h linux/if_bonding.h
4957do :
4958  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4959ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4960#include <sys/socket.h>
4961#include <linux/if.h>
4962
4963"
4964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4965  cat >>confdefs.h <<_ACEOF
4966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967_ACEOF
4968
4969fi
4970
4971done
4972
4973	;;
4974esac
4975
4976if test "$GCC" = yes ; then
4977	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4978$as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4979	    if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
4980  $as_echo_n "(cached) " >&6
4981else
4982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h.  */
4984/*
4985		     * This generates a "duplicate case value" when fixincludes
4986		     * has not be run.
4987		     */
4988#		include <sys/types.h>
4989#		include <sys/time.h>
4990#		include <sys/ioctl.h>
4991#		ifdef HAVE_SYS_IOCCOM_H
4992#		include <sys/ioccom.h>
4993#		endif
4994int
4995main ()
4996{
4997switch (0) {
4998		    case _IO('A', 1):;
4999		    case _IO('B', 1):;
5000		    }
5001  ;
5002  return 0;
5003}
5004_ACEOF
5005if ac_fn_c_try_compile "$LINENO"; then :
5006  ac_cv_lbl_gcc_fixincludes=yes
5007else
5008  ac_cv_lbl_gcc_fixincludes=no
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011fi
5012
5013	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
5014$as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
5015	    if test $ac_cv_lbl_gcc_fixincludes = no ; then
5016		    # Don't cache failure
5017		    unset ac_cv_lbl_gcc_fixincludes
5018		    as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
5019	    fi
5020    fi
5021
5022for ac_func in strerror
5023do :
5024  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5025if test "x$ac_cv_func_strerror" = xyes; then :
5026  cat >>confdefs.h <<_ACEOF
5027#define HAVE_STRERROR 1
5028_ACEOF
5029
5030fi
5031done
5032
5033ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5034if test "x$ac_cv_func_strerror_r" = xyes; then :
5035
5036	#
5037	# We have strerror_r; if we define _GNU_SOURCE, is it a
5038	# POSIX-compliant strerror_r() or a GNU strerror_r()?
5039	#
5040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r is GNU-style" >&5
5041$as_echo_n "checking whether strerror_r is GNU-style... " >&6; }
5042	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h.  */
5044
5045		#define _GNU_SOURCE
5046#include <string.h>
5047
5048/* Define it GNU-style; that will cause an error if it's not GNU-style */
5049extern char *strerror_r(int, char *, size_t);
5050
5051int
5052main(void)
5053{
5054	return 0;
5055}
5056
5057
5058_ACEOF
5059if ac_fn_c_try_compile "$LINENO"; then :
5060
5061	        # GNU-style
5062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5063$as_echo "yes" >&6; }
5064
5065$as_echo "#define HAVE_GNU_STRERROR_R /**/" >>confdefs.h
5066
5067
5068else
5069
5070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }
5072
5073$as_echo "#define HAVE_POSIX_STRERROR_R /**/" >>confdefs.h
5074
5075
5076fi
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078
5079else
5080
5081	#
5082	# We don't have strerror_r; do we have strerror_s?
5083	#
5084	for ac_func in strerror_s
5085do :
5086  ac_fn_c_check_func "$LINENO" "strerror_s" "ac_cv_func_strerror_s"
5087if test "x$ac_cv_func_strerror_s" = xyes; then :
5088  cat >>confdefs.h <<_ACEOF
5089#define HAVE_STRERROR_S 1
5090_ACEOF
5091
5092fi
5093done
5094
5095
5096fi
5097
5098
5099#
5100# Thanks, IBM, for not providing vsyslog() in AIX!
5101#
5102for ac_func in vsyslog
5103do :
5104  ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5105if test "x$ac_cv_func_vsyslog" = xyes; then :
5106  cat >>confdefs.h <<_ACEOF
5107#define HAVE_VSYSLOG 1
5108_ACEOF
5109
5110fi
5111done
5112
5113
5114#
5115# Either:
5116#
5117#	we have snprintf() and vsnprintf(), and have asprintf() and
5118#	vasprintf();
5119#
5120#	we have snprintf() and vsnprintf(), but don't have asprintf()
5121#	or vasprintf();
5122#
5123#	we have neither snprintf() nor vsnprintf(), and don't have
5124#	asprintf() or vasprintf(), either.
5125#
5126# We assume that if we have asprintf() we have vasprintf(), as well
5127# as snprintf() and vsnprintf(), and that if we have snprintf() we
5128# have vsnprintf().
5129#
5130# For the first case, we don't need any replacement routines.
5131# For the second case, we need replacement asprintf()/vasprintf()
5132# routines.
5133# For the third case, we need replacement snprintf()/vsnprintf() and
5134# asprintf()/vasprintf() routines.
5135#
5136needsnprintf=no
5137for ac_func in vsnprintf snprintf
5138do :
5139  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5140ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5141if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5142  cat >>confdefs.h <<_ACEOF
5143#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5144_ACEOF
5145
5146else
5147  needsnprintf=yes
5148fi
5149done
5150
5151needasprintf=no
5152for ac_func in vasprintf asprintf
5153do :
5154  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5155ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5156if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5157  cat >>confdefs.h <<_ACEOF
5158#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5159_ACEOF
5160
5161else
5162  needasprintf=yes
5163fi
5164done
5165
5166if test $needsnprintf = yes; then
5167	#
5168	# We assume we have none of them; missing/snprintf.c supplies
5169	# all of them.
5170	#
5171	case " $LIBOBJS " in
5172  *" snprintf.$ac_objext "* ) ;;
5173  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5174 ;;
5175esac
5176
5177elif test $needasprintf = yes; then
5178	#
5179	# We assume we have snprintf()/vsnprintf() but lack
5180	# asprintf()/vasprintf(); missing/asprintf.c supplies
5181	# the latter (using vsnprintf()).
5182	#
5183	case " $LIBOBJS " in
5184  *" asprintf.$ac_objext "* ) ;;
5185  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
5186 ;;
5187esac
5188
5189fi
5190
5191needstrlcat=no
5192for ac_func in strlcat
5193do :
5194  ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
5195if test "x$ac_cv_func_strlcat" = xyes; then :
5196  cat >>confdefs.h <<_ACEOF
5197#define HAVE_STRLCAT 1
5198_ACEOF
5199
5200else
5201  needstrlcat=yes
5202fi
5203done
5204
5205if test $needstrlcat = yes; then
5206	case " $LIBOBJS " in
5207  *" strlcat.$ac_objext "* ) ;;
5208  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
5209 ;;
5210esac
5211
5212fi
5213
5214needstrlcpy=no
5215for ac_func in strlcpy
5216do :
5217  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5218if test "x$ac_cv_func_strlcpy" = xyes; then :
5219  cat >>confdefs.h <<_ACEOF
5220#define HAVE_STRLCPY 1
5221_ACEOF
5222
5223else
5224  needstrlcpy=yes
5225fi
5226done
5227
5228if test $needstrlcpy = yes; then
5229	case " $LIBOBJS " in
5230  *" strlcpy.$ac_objext "* ) ;;
5231  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
5232 ;;
5233esac
5234
5235fi
5236
5237needstrtok_r=no
5238for ac_func in strtok_r
5239do :
5240  ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5241if test "x$ac_cv_func_strtok_r" = xyes; then :
5242  cat >>confdefs.h <<_ACEOF
5243#define HAVE_STRTOK_R 1
5244_ACEOF
5245
5246else
5247  needstrtok_r=yes
5248fi
5249done
5250
5251if test $needstrtok_r = yes; then
5252	case " $LIBOBJS " in
5253  *" strtok_r.$ac_objext "* ) ;;
5254  *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
5255 ;;
5256esac
5257
5258fi
5259
5260#
5261# Do we have ffs(), and is it declared in <strings.h>?
5262#
5263for ac_func in ffs
5264do :
5265  ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
5266if test "x$ac_cv_func_ffs" = xyes; then :
5267  cat >>confdefs.h <<_ACEOF
5268#define HAVE_FFS 1
5269_ACEOF
5270
5271fi
5272done
5273
5274if test "$ac_cv_func_ffs" = yes; then
5275	#
5276	# We have ffs(); is it declared in <strings.h>?
5277	#
5278	# This test fails if we don't have <strings.h> or if we do
5279	# but it doesn't declare ffs().
5280	#
5281	ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "
5282#include <strings.h>
5283
5284"
5285if test "x$ac_cv_have_decl_ffs" = xyes; then :
5286
5287
5288$as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
5289
5290
5291fi
5292
5293fi
5294
5295#
5296# Do this before checking for ether_hostton(), as it's a
5297# "getaddrinfo()-ish function".
5298#
5299
5300    #
5301    # Most operating systems have getaddrinfo() in the default searched
5302    # libraries (i.e. libc).  Check there first.
5303    #
5304    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5305if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5306
5307else
5308
5309	#
5310	# Not found in the standard system libraries.
5311	# Try libsocket, which requires libnsl.
5312	#
5313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
5314$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
5315if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  ac_check_lib_save_LIBS=$LIBS
5319LIBS="-lsocket -lnsl $LIBS"
5320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321/* end confdefs.h.  */
5322
5323/* Override any GCC internal prototype to avoid an error.
5324   Use char because int might match the return type of a GCC
5325   builtin and then its argument prototype would still apply.  */
5326#ifdef __cplusplus
5327extern "C"
5328#endif
5329char getaddrinfo ();
5330int
5331main ()
5332{
5333return getaddrinfo ();
5334  ;
5335  return 0;
5336}
5337_ACEOF
5338if ac_fn_c_try_link "$LINENO"; then :
5339  ac_cv_lib_socket_getaddrinfo=yes
5340else
5341  ac_cv_lib_socket_getaddrinfo=no
5342fi
5343rm -f core conftest.err conftest.$ac_objext \
5344    conftest$ac_exeext conftest.$ac_ext
5345LIBS=$ac_check_lib_save_LIBS
5346fi
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5348$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5349if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
5350
5351	    #
5352	    # OK, we found it in libsocket.
5353	    #
5354	    LIBS="-lsocket -lnsl $LIBS"
5355
5356else
5357
5358	    #
5359	    # We didn't find it.
5360	    #
5361	    as_fn_error $? "getaddrinfo is required, but wasn't found" "$LINENO" 5
5362
5363fi
5364
5365
5366	#
5367	# OK, do we have recvmsg() in libxnet?
5368	# We also link with libsocket and libnsl.
5369	#
5370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5371$as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5372if ${ac_cv_lib_xnet_recvmsg+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  ac_check_lib_save_LIBS=$LIBS
5376LIBS="-lxnet -lsocket -lnsl $LIBS"
5377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h.  */
5379
5380/* Override any GCC internal prototype to avoid an error.
5381   Use char because int might match the return type of a GCC
5382   builtin and then its argument prototype would still apply.  */
5383#ifdef __cplusplus
5384extern "C"
5385#endif
5386char recvmsg ();
5387int
5388main ()
5389{
5390return recvmsg ();
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395if ac_fn_c_try_link "$LINENO"; then :
5396  ac_cv_lib_xnet_recvmsg=yes
5397else
5398  ac_cv_lib_xnet_recvmsg=no
5399fi
5400rm -f core conftest.err conftest.$ac_objext \
5401    conftest$ac_exeext conftest.$ac_ext
5402LIBS=$ac_check_lib_save_LIBS
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5405$as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5406if test "x$ac_cv_lib_xnet_recvmsg" = xyes; then :
5407
5408	    #
5409	    # Yes - link with it as well.
5410	    #
5411	    LIBS="-lxnet $LIBS"
5412
5413fi
5414
5415
5416fi
5417
5418    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5420$as_echo_n "checking for library containing putmsg... " >&6; }
5421if ${ac_cv_search_putmsg+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  ac_func_search_save_LIBS=$LIBS
5425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426/* end confdefs.h.  */
5427
5428/* Override any GCC internal prototype to avoid an error.
5429   Use char because int might match the return type of a GCC
5430   builtin and then its argument prototype would still apply.  */
5431#ifdef __cplusplus
5432extern "C"
5433#endif
5434char putmsg ();
5435int
5436main ()
5437{
5438return putmsg ();
5439  ;
5440  return 0;
5441}
5442_ACEOF
5443for ac_lib in '' str; do
5444  if test -z "$ac_lib"; then
5445    ac_res="none required"
5446  else
5447    ac_res=-l$ac_lib
5448    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5449  fi
5450  if ac_fn_c_try_link "$LINENO"; then :
5451  ac_cv_search_putmsg=$ac_res
5452fi
5453rm -f core conftest.err conftest.$ac_objext \
5454    conftest$ac_exeext
5455  if ${ac_cv_search_putmsg+:} false; then :
5456  break
5457fi
5458done
5459if ${ac_cv_search_putmsg+:} false; then :
5460
5461else
5462  ac_cv_search_putmsg=no
5463fi
5464rm conftest.$ac_ext
5465LIBS=$ac_func_search_save_LIBS
5466fi
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5468$as_echo "$ac_cv_search_putmsg" >&6; }
5469ac_res=$ac_cv_search_putmsg
5470if test "$ac_res" != no; then :
5471  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5472
5473fi
5474
5475
5476
5477#
5478# Check for reentrant versions of getnetbyname_r(), as provided by
5479# Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5480# If we don't find one, we just use getnetbyname(), which uses
5481# thread-specific data on many platforms, but doesn't use it on
5482# NetBSD or OpenBSD, and may not use it on older versions of other
5483# platforms.
5484#
5485# Only do the check if we have a declaration of getnetbyname_r();
5486# without it, we can't check which API it has.  (We assume that
5487# if there's a declaration, it has a prototype, so that the API
5488# can be checked.)
5489#
5490ac_fn_c_check_decl "$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5491"
5492if test "x$ac_cv_have_decl_getnetbyname_r" = xyes; then :
5493
5494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5495$as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5496	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h.  */
5498#include <netdb.h>
5499int
5500main ()
5501{
5502
5503		struct netent netent_buf;
5504		char buf[1024];
5505		struct netent *resultp;
5506		int h_errnoval;
5507
5508		return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5509
5510  ;
5511  return 0;
5512}
5513_ACEOF
5514if ac_fn_c_try_link "$LINENO"; then :
5515
5516		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5517$as_echo "yes" >&6; }
5518
5519$as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5520
5521
5522else
5523
5524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525$as_echo "no" >&6; }
5526
5527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5528$as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5529		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531#include <netdb.h>
5532int
5533main ()
5534{
5535
5536			struct netent netent_buf;
5537			char buf[1024];
5538
5539			return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5540
5541  ;
5542  return 0;
5543}
5544_ACEOF
5545if ac_fn_c_try_link "$LINENO"; then :
5546
5547			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5548$as_echo "yes" >&6; }
5549
5550$as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5551
5552
5553else
5554
5555			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }
5557
5558			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5559$as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5560			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h.  */
5562#include <netdb.h>
5563int
5564main ()
5565{
5566
5567				struct netent netent_buf;
5568				struct netent_data net_data;
5569
5570				return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5571
5572  ;
5573  return 0;
5574}
5575_ACEOF
5576if ac_fn_c_try_link "$LINENO"; then :
5577
5578				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5579$as_echo "yes" >&6; }
5580
5581$as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5582
5583
5584else
5585
5586				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588
5589fi
5590rm -f core conftest.err conftest.$ac_objext \
5591    conftest$ac_exeext conftest.$ac_ext
5592
5593fi
5594rm -f core conftest.err conftest.$ac_objext \
5595    conftest$ac_exeext conftest.$ac_ext
5596
5597fi
5598rm -f core conftest.err conftest.$ac_objext \
5599    conftest$ac_exeext conftest.$ac_ext
5600
5601fi
5602
5603
5604#
5605# Check for reentrant versions of getprotobyname_r(), as provided by
5606# Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5607# If we don't find one, we just use getprotobyname(), which uses
5608# thread-specific data on many platforms, but doesn't use it on
5609# NetBSD or OpenBSD, and may not use it on older versions of other
5610# platforms.
5611#
5612# Only do the check if we have a declaration of getprotobyname_r();
5613# without it, we can't check which API it has.  (We assume that
5614# if there's a declaration, it has a prototype, so that the API
5615# can be checked.)
5616#
5617ac_fn_c_check_decl "$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
5618"
5619if test "x$ac_cv_have_decl_getprotobyname_r" = xyes; then :
5620
5621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
5622$as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
5623	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h.  */
5625#include <netdb.h>
5626int
5627main ()
5628{
5629
5630		struct protoent protoent_buf;
5631		char buf[1024];
5632		struct protoent *resultp;
5633
5634		return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
5635
5636  ;
5637  return 0;
5638}
5639_ACEOF
5640if ac_fn_c_try_link "$LINENO"; then :
5641
5642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643$as_echo "yes" >&6; }
5644
5645$as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
5646
5647
5648else
5649
5650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651$as_echo "no" >&6; }
5652
5653		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
5654$as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
5655		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h.  */
5657#include <netdb.h>
5658int
5659main ()
5660{
5661
5662			struct protoent protoent_buf;
5663			char buf[1024];
5664
5665			return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
5666
5667  ;
5668  return 0;
5669}
5670_ACEOF
5671if ac_fn_c_try_link "$LINENO"; then :
5672
5673			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5674$as_echo "yes" >&6; }
5675
5676$as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
5677
5678
5679else
5680
5681			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
5683
5684			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
5685$as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
5686			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h.  */
5688#include <netdb.h>
5689int
5690main ()
5691{
5692
5693				struct protoent protoent_buf;
5694				struct protoent_data proto_data;
5695
5696				return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
5697
5698  ;
5699  return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_link "$LINENO"; then :
5703
5704				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5705$as_echo "yes" >&6; }
5706
5707$as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
5708
5709
5710else
5711
5712				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714
5715fi
5716rm -f core conftest.err conftest.$ac_objext \
5717    conftest$ac_exeext conftest.$ac_ext
5718
5719fi
5720rm -f core conftest.err conftest.$ac_objext \
5721    conftest$ac_exeext conftest.$ac_ext
5722
5723fi
5724rm -f core conftest.err conftest.$ac_objext \
5725    conftest$ac_exeext conftest.$ac_ext
5726
5727fi
5728
5729
5730#
5731# You are in a twisty little maze of UN*Xes, all different.
5732# Some might not have ether_hostton().
5733# Some might have it and declare it in <net/ethernet.h>.
5734# Some might have it and declare it in <netinet/ether.h>
5735# Some might have it and declare it in <sys/ethernet.h>.
5736# Some might have it and declare it in <arpa/inet.h>.
5737# Some might have it and declare it in <netinet/if_ether.h>.
5738# Some might have it and not declare it in any header file.
5739#
5740# Before you is a C compiler.
5741#
5742for ac_func in ether_hostton
5743do :
5744  ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5745if test "x$ac_cv_func_ether_hostton" = xyes; then :
5746  cat >>confdefs.h <<_ACEOF
5747#define HAVE_ETHER_HOSTTON 1
5748_ACEOF
5749
5750fi
5751done
5752
5753if test "$ac_cv_func_ether_hostton" = yes; then
5754	#
5755	# OK, we have ether_hostton().  Is it declared in <net/ethernet.h>?
5756	#
5757	# This test fails if we don't have <net/ethernet.h> or if we do
5758	# but it doesn't declare ether_hostton().
5759	#
5760	ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5761#include <net/ethernet.h>
5762
5763"
5764if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5765
5766
5767$as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5768
5769
5770fi
5771
5772	#
5773	# Did that succeed?
5774	#
5775	if test "$ac_cv_have_decl_ether_hostton" != yes; then
5776		#
5777		# No, how about <netinet/ether.h>, as on Linux?
5778		#
5779		# This test fails if we don't have <netinet/ether.h>
5780		# or if we do but it doesn't declare ether_hostton().
5781		#
5782		# Unset ac_cv_have_decl_ether_hostton so we don't
5783		# treat the previous failure as a cached value and
5784		# suppress the next test.
5785		#
5786		unset ac_cv_have_decl_ether_hostton
5787		ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5788#include <netinet/ether.h>
5789
5790"
5791if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5792
5793
5794$as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5795
5796
5797fi
5798
5799	fi
5800	#
5801	# Did that succeed?
5802	#
5803	if test "$ac_cv_have_decl_ether_hostton" != yes; then
5804		#
5805		# No, how about <sys/ethernet.h>, as on Solaris 10
5806		# and later?
5807		#
5808		# This test fails if we don't have <sys/ethernet.h>
5809		# or if we do but it doesn't declare ether_hostton().
5810		#
5811		# Unset ac_cv_have_decl_ether_hostton so we don't
5812		# treat the previous failure as a cached value and
5813		# suppress the next test.
5814		#
5815		unset ac_cv_have_decl_ether_hostton
5816		ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5817#include <sys/ethernet.h>
5818
5819"
5820if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5821
5822
5823$as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5824
5825
5826fi
5827
5828	fi
5829	#
5830	# Did that succeed?
5831	#
5832	if test "$ac_cv_have_decl_ether_hostton" != yes; then
5833		#
5834		# No, how about <arpa/inet.h>, as in AIX?
5835		#
5836		# This test fails if we don't have <arpa/inet.h>
5837		# (if we have ether_hostton(), we should have
5838		# networking, and if we have networking, we should
5839		# have <arapa/inet.h>) or if we do but it doesn't
5840		# declare ether_hostton().
5841		#
5842		# Unset ac_cv_have_decl_ether_hostton so we don't
5843		# treat the previous failure as a cached value and
5844		# suppress the next test.
5845		#
5846		unset ac_cv_have_decl_ether_hostton
5847		ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5848#include <arpa/inet.h>
5849
5850"
5851if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5852
5853
5854$as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5855
5856
5857fi
5858
5859	fi
5860	#
5861	# Did that succeed?
5862	#
5863	if test "$ac_cv_have_decl_ether_hostton" != yes; then
5864		#
5865		# No, how about <netinet/if_ether.h>?
5866		# On some platforms, it requires <net/if.h> and
5867		# <netinet/in.h>, and we always include it with
5868		# both of them, so test it with both of them.
5869		#
5870		# This test fails if we don't have <netinet/if_ether.h>
5871		# and the headers we include before it, or if we do but
5872		# <netinet/if_ether.h> doesn't declare ether_hostton().
5873		#
5874		# Unset ac_cv_have_decl_ether_hostton so we don't
5875		# treat the previous failure as a cached value and
5876		# suppress the next test.
5877		#
5878		unset ac_cv_have_decl_ether_hostton
5879		ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5880#include <sys/types.h>
5881#include <sys/socket.h>
5882#include <net/if.h>
5883#include <netinet/in.h>
5884#include <netinet/if_ether.h>
5885
5886"
5887if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5888
5889
5890$as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5891
5892
5893fi
5894
5895	fi
5896	#
5897	# After all that, is ether_hostton() declared?
5898	#
5899	if test "$ac_cv_have_decl_ether_hostton" = yes; then
5900		#
5901		# Yes.
5902		#
5903
5904$as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5905
5906        else
5907		#
5908		# No, we'll have to declare it ourselves.
5909		# Do we have "struct ether_addr" if we include
5910		# <netinet/if_ether.h>?
5911		#
5912		ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5913			#include <sys/types.h>
5914			#include <sys/socket.h>
5915			#include <net/if.h>
5916			#include <netinet/in.h>
5917			#include <netinet/if_ether.h>
5918
5919"
5920if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
5921
5922cat >>confdefs.h <<_ACEOF
5923#define HAVE_STRUCT_ETHER_ADDR 1
5924_ACEOF
5925
5926
5927fi
5928
5929	fi
5930fi
5931
5932#
5933# For various things that might use pthreads.
5934#
5935ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5936if test "x$ac_cv_header_pthread_h" = xyes; then :
5937
5938	#
5939	# OK, we have pthread.h.  Do we have pthread_create in the
5940	# system libraries?
5941	#
5942	ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5943if test "x$ac_cv_func_pthread_create" = xyes; then :
5944
5945		#
5946		# Yes.
5947		#
5948		ac_lbl_have_pthreads="found"
5949
5950else
5951
5952		#
5953		# No - do we have it in -lpthreads?
5954		#
5955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5956$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5957if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
5958  $as_echo_n "(cached) " >&6
5959else
5960  ac_check_lib_save_LIBS=$LIBS
5961LIBS="-lpthreads  $LIBS"
5962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h.  */
5964
5965/* Override any GCC internal prototype to avoid an error.
5966   Use char because int might match the return type of a GCC
5967   builtin and then its argument prototype would still apply.  */
5968#ifdef __cplusplus
5969extern "C"
5970#endif
5971char pthread_create ();
5972int
5973main ()
5974{
5975return pthread_create ();
5976  ;
5977  return 0;
5978}
5979_ACEOF
5980if ac_fn_c_try_link "$LINENO"; then :
5981  ac_cv_lib_pthreads_pthread_create=yes
5982else
5983  ac_cv_lib_pthreads_pthread_create=no
5984fi
5985rm -f core conftest.err conftest.$ac_objext \
5986    conftest$ac_exeext conftest.$ac_ext
5987LIBS=$ac_check_lib_save_LIBS
5988fi
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5990$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5991if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
5992
5993			#
5994			# Yes - add -lpthreads.
5995			#
5996			ac_lbl_have_pthreads="found"
5997			PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
5998
5999else
6000
6001			#
6002			# No - do we have it in -lpthread?
6003			#
6004			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6005$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6006if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  ac_check_lib_save_LIBS=$LIBS
6010LIBS="-lpthread  $LIBS"
6011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h.  */
6013
6014/* Override any GCC internal prototype to avoid an error.
6015   Use char because int might match the return type of a GCC
6016   builtin and then its argument prototype would still apply.  */
6017#ifdef __cplusplus
6018extern "C"
6019#endif
6020char pthread_create ();
6021int
6022main ()
6023{
6024return pthread_create ();
6025  ;
6026  return 0;
6027}
6028_ACEOF
6029if ac_fn_c_try_link "$LINENO"; then :
6030  ac_cv_lib_pthread_pthread_create=yes
6031else
6032  ac_cv_lib_pthread_pthread_create=no
6033fi
6034rm -f core conftest.err conftest.$ac_objext \
6035    conftest$ac_exeext conftest.$ac_ext
6036LIBS=$ac_check_lib_save_LIBS
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6039$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6040if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6041
6042				#
6043				# Yes - add -lpthread.
6044				#
6045                                ac_lbl_have_pthreads="found"
6046				PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
6047
6048else
6049
6050				#
6051				# No.
6052				#
6053				ac_lbl_have_pthreads="not found"
6054
6055fi
6056
6057
6058fi
6059
6060
6061fi
6062
6063
6064else
6065
6066	#
6067	# We didn't find pthread.h.
6068	#
6069	ac_lbl_have_pthreads="not found"
6070
6071
6072fi
6073
6074
6075
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
6077$as_echo_n "checking if --disable-protochain option is specified... " >&6; }
6078# Check whether --enable-protochain was given.
6079if test "${enable_protochain+set}" = set; then :
6080  enableval=$enable_protochain;
6081fi
6082
6083case "x$enable_protochain" in
6084xyes)	enable_protochain=enabled	;;
6085xno)	enable_protochain=disabled	;;
6086x)	enable_protochain=enabled	;;
6087esac
6088
6089if test "$enable_protochain" = "disabled"; then
6090
6091$as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
6092
6093fi
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
6095$as_echo "${enable_protochain}" >&6; }
6096
6097#
6098# valgrindtest directly uses the native capture mechanism, but
6099# only tests with BPF and PF_PACKET sockets; only enable it if
6100# we have BPF or PF_PACKET sockets.
6101#
6102VALGRINDTEST_SRC=
6103
6104#
6105# SITA support is mutually exclusive with native capture support;
6106# "--with-sita" selects SITA support.
6107#
6108
6109# Check whether --with-sita was given.
6110if test "${with_sita+set}" = set; then :
6111  withval=$with_sita;
6112	if test ! "x$withval" = "xno" ; then
6113
6114$as_echo "#define SITA 1" >>confdefs.h
6115
6116		{ $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
6117$as_echo "$as_me: Enabling SITA ACN support" >&6;}
6118		V_PCAP=sita
6119	fi
6120
6121else
6122
6123
6124# Check whether --with-pcap was given.
6125if test "${with_pcap+set}" = set; then :
6126  withval=$with_pcap;
6127fi
6128
6129if test ! -z "$with_pcap" ; then
6130	V_PCAP="$withval"
6131else
6132	#
6133	# Check for a bunch of headers for various packet
6134	# capture mechanisms.
6135	#
6136	for ac_header in net/bpf.h
6137do :
6138  ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6139if test "x$ac_cv_header_net_bpf_h" = xyes; then :
6140  cat >>confdefs.h <<_ACEOF
6141#define HAVE_NET_BPF_H 1
6142_ACEOF
6143
6144fi
6145
6146done
6147
6148	if test "$ac_cv_header_net_bpf_h" = yes; then
6149		#
6150		# Does it define BIOCSETIF?
6151		# I.e., is it a header for an LBL/BSD-style capture
6152		# mechanism, or is it just a header for a BPF filter
6153		# engine?  Some versions of Arch Linux, for example,
6154		# have a net/bpf.h that doesn't define BIOCSETIF;
6155		# as it's a Linux, it should use packet sockets,
6156		# instead.
6157		#
6158		# We need:
6159		#
6160		#  sys/types.h, because FreeBSD 10's net/bpf.h
6161		#  requires that various BSD-style integer types
6162		#  be defined;
6163		#
6164		#  sys/time.h, because AIX 5.2 and 5.3's net/bpf.h
6165		#  doesn't include it but does use struct timeval
6166		#  in ioctl definitions;
6167		#
6168		#  sys/ioctl.h and, if we have it, sys/ioccom.h,
6169		#  because net/bpf.h defines ioctls;
6170		#
6171		#  net/if.h, because it defines some structures
6172		#  used in ioctls defined by net/bpf.h;
6173		#
6174		#  sys/socket.h, because OpenBSD 5.9's net/bpf.h
6175		#  defines some structure fields as being
6176		#  struct sockaddrs;
6177		#
6178		# and net/bpf.h doesn't necessarily include all
6179		# of those headers itself.
6180		#
6181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
6182$as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
6183		if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false; then :
6184  $as_echo_n "(cached) " >&6
6185else
6186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187/* end confdefs.h.  */
6188
6189#include <sys/types.h>
6190#include <sys/time.h>
6191#include <sys/ioctl.h>
6192#include <sys/socket.h>
6193#ifdef HAVE_SYS_IOCCOM_H
6194#include <sys/ioccom.h>
6195#endif
6196#include <net/bpf.h>
6197#include <net/if.h>
6198
6199int
6200main ()
6201{
6202u_int i = BIOCSETIF;
6203  ;
6204  return 0;
6205}
6206_ACEOF
6207if ac_fn_c_try_compile "$LINENO"; then :
6208  ac_cv_lbl_bpf_h_defines_biocsetif=yes
6209else
6210  ac_cv_lbl_bpf_h_defines_biocsetif=no
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213fi
6214
6215		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
6216$as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
6217	fi
6218	for ac_header in net/pfilt.h net/enet.h
6219do :
6220  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6222if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6223  cat >>confdefs.h <<_ACEOF
6224#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6225_ACEOF
6226
6227fi
6228
6229done
6230
6231	for ac_header in net/nit.h sys/net/nit.h
6232do :
6233  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6234ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6235if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6236  cat >>confdefs.h <<_ACEOF
6237#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6238_ACEOF
6239
6240fi
6241
6242done
6243
6244	for ac_header in linux/socket.h net/raw.h sys/dlpi.h
6245do :
6246  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6247ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6248if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6249  cat >>confdefs.h <<_ACEOF
6250#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6251_ACEOF
6252
6253fi
6254
6255done
6256
6257
6258	if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
6259		#
6260		# BPF.
6261		# Check this before DLPI, so that we pick BPF on
6262		# Solaris 11 and later.
6263		#
6264		V_PCAP=bpf
6265
6266		#
6267		# We have BPF, so build valgrindtest with "make test"
6268		# on macOS and FreeBSD (add your OS once there's a
6269		# valgrind for it).
6270		#
6271		case "$host_os" in
6272
6273		freebsd*|darwin*|linux*)
6274			VALGRINDTEST_SRC=valgrindtest.c
6275			;;
6276		esac
6277	elif test "$ac_cv_header_linux_socket_h" = yes; then
6278		#
6279		# No prizes for guessing this one.
6280		#
6281		V_PCAP=linux
6282
6283		#
6284		# XXX - this won't work with older kernels that have
6285		# SOCK_PACKET sockets but not PF_PACKET sockets.
6286		#
6287		VALGRINDTEST_SRC=valgrindtest.c
6288	elif test "$ac_cv_header_net_pfilt_h" = yes; then
6289	        #
6290	        # DEC OSF/1, Digital UNIX, Tru64 UNIX
6291        	#
6292		V_PCAP=pf
6293	elif test "$ac_cv_header_net_enet_h" = yes; then
6294		#
6295		# Stanford Enetfilter.
6296		#
6297		V_PCAP=enet
6298	elif test "$ac_cv_header_net_nit_h" = yes; then
6299		#
6300		# SunOS 4.x STREAMS NIT.
6301		#
6302		V_PCAP=snit
6303	elif test "$ac_cv_header_sys_net_nit_h" = yes; then
6304		#
6305		# Pre-SunOS 4.x non-STREAMS NIT.
6306		#
6307		V_PCAP=nit
6308	elif test "$ac_cv_header_net_raw_h" = yes; then
6309		#
6310		# IRIX snoop.
6311		#
6312		V_PCAP=snoop
6313	elif test "$ac_cv_header_sys_dlpi_h" = yes; then
6314		#
6315		# DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
6316		#
6317		V_PCAP=dlpi
6318	else
6319		#
6320		# Nothing we support.
6321		#
6322		V_PCAP=null
6323		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6324$as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6325		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6326$as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6327	fi
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6330$as_echo_n "checking packet capture type... " >&6; }
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6332$as_echo "$V_PCAP" >&6; }
6333
6334
6335#
6336# Do capture-mechanism-dependent tests.
6337#
6338case "$V_PCAP" in
6339dlpi)
6340	#
6341	# Needed for common functions used by pcap-[dlpi,libdlpi].c
6342	#
6343 	SSRC="dlpisubs.c"
6344
6345	#
6346	# Checks for some header files.
6347	#
6348	for ac_header in sys/bufmod.h sys/dlpi_ext.h
6349do :
6350  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6352if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6353  cat >>confdefs.h <<_ACEOF
6354#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6355_ACEOF
6356
6357fi
6358
6359done
6360
6361
6362	#
6363	# Checks to see if Solaris has the public libdlpi(3LIB) library.
6364	# Note: The existence of /usr/include/libdlpi.h does not mean it is the
6365	# public libdlpi(3LIB) version. Before libdlpi was made public, a
6366	# private version also existed, which did not have the same APIs.
6367	# Due to a gcc bug, the default search path for 32-bit libraries does
6368	# not include /lib, we add it explicitly here.
6369	# [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6370	# Also, due to the bug above applications that link to libpcap with
6371	# libdlpi will have to add "-L/lib" option to "configure".
6372	#
6373	saved_ldflags=$LDFLAGS
6374	LDFLAGS="$LIBS -L/lib"
6375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6376$as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6377if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
6378  $as_echo_n "(cached) " >&6
6379else
6380  ac_check_lib_save_LIBS=$LIBS
6381LIBS="-ldlpi  $LIBS"
6382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h.  */
6384
6385/* Override any GCC internal prototype to avoid an error.
6386   Use char because int might match the return type of a GCC
6387   builtin and then its argument prototype would still apply.  */
6388#ifdef __cplusplus
6389extern "C"
6390#endif
6391char dlpi_walk ();
6392int
6393main ()
6394{
6395return dlpi_walk ();
6396  ;
6397  return 0;
6398}
6399_ACEOF
6400if ac_fn_c_try_link "$LINENO"; then :
6401  ac_cv_lib_dlpi_dlpi_walk=yes
6402else
6403  ac_cv_lib_dlpi_dlpi_walk=no
6404fi
6405rm -f core conftest.err conftest.$ac_objext \
6406    conftest$ac_exeext conftest.$ac_ext
6407LIBS=$ac_check_lib_save_LIBS
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6410$as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6411if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
6412
6413			LIBS="-ldlpi $LIBS"
6414			V_PCAP=libdlpi
6415
6416$as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6417
6418
6419else
6420  V_PCAP=dlpi
6421fi
6422
6423	LDFLAGS=$saved_ldflags
6424
6425	#
6426	# Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6427	# versions of DLPI.
6428	#
6429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6430$as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6431	if ${ac_cv_sys_dlpi_usable+:} false; then :
6432  $as_echo_n "(cached) " >&6
6433else
6434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h.  */
6436
6437			#include <sys/types.h>
6438			#include <sys/time.h>
6439			#include <sys/dlpi.h>
6440
6441int
6442main ()
6443{
6444int i = DL_PROMISC_PHYS;
6445  ;
6446  return 0;
6447}
6448_ACEOF
6449if ac_fn_c_try_compile "$LINENO"; then :
6450  ac_cv_sys_dlpi_usable=yes
6451else
6452  ac_cv_sys_dlpi_usable=no
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455fi
6456
6457	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6458$as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6459	if test $ac_cv_sys_dlpi_usable = no ; then
6460		as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6461	fi
6462
6463	#
6464	# Check to see if Solaris has the dl_passive_req_t struct defined
6465	# in <sys/dlpi.h>.
6466	# This check is for DLPI support for passive modes.
6467	# See dlpi(7P) for more details.
6468	#
6469	ac_fn_c_check_type "$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6470		#include <sys/types.h>
6471		#include <sys/dlpi.h>
6472
6473"
6474if test "x$ac_cv_type_dl_passive_req_t" = xyes; then :
6475
6476cat >>confdefs.h <<_ACEOF
6477#define HAVE_DL_PASSIVE_REQ_T 1
6478_ACEOF
6479
6480
6481fi
6482
6483	;;
6484
6485linux)
6486	#
6487	# Do we have the wireless extensions?
6488	#
6489	for ac_header in linux/wireless.h
6490do :
6491  ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6492#include <sys/socket.h>
6493#include <linux/if.h>
6494#include <linux/types.h>
6495
6496"
6497if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
6498  cat >>confdefs.h <<_ACEOF
6499#define HAVE_LINUX_WIRELESS_H 1
6500_ACEOF
6501
6502fi
6503
6504done
6505
6506
6507	#
6508	# Do we have libnl?
6509	#
6510
6511# Check whether --with-libnl was given.
6512if test "${with_libnl+set}" = set; then :
6513  withval=$with_libnl; with_libnl=$withval
6514else
6515  with_libnl=if_available
6516fi
6517
6518
6519	if test x$with_libnl != xno ; then
6520		have_any_nl="no"
6521
6522                incdir=-I/usr/include/libnl3
6523                libnldir=
6524                case "$with_libnl" in
6525
6526                yes|if_available)
6527                  ;;
6528
6529                *)
6530                  if test -d $withval; then
6531                    libnldir=-L${withval}/lib/.libs
6532                    incdir=-I${withval}/include
6533                  fi
6534                  ;;
6535                esac
6536
6537		#
6538		# Try libnl 3.x first.
6539		#
6540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
6541$as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
6542if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
6543  $as_echo_n "(cached) " >&6
6544else
6545  ac_check_lib_save_LIBS=$LIBS
6546LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3  $LIBS"
6547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549
6550/* Override any GCC internal prototype to avoid an error.
6551   Use char because int might match the return type of a GCC
6552   builtin and then its argument prototype would still apply.  */
6553#ifdef __cplusplus
6554extern "C"
6555#endif
6556char nl_socket_alloc ();
6557int
6558main ()
6559{
6560return nl_socket_alloc ();
6561  ;
6562  return 0;
6563}
6564_ACEOF
6565if ac_fn_c_try_link "$LINENO"; then :
6566  ac_cv_lib_nl_3_nl_socket_alloc=yes
6567else
6568  ac_cv_lib_nl_3_nl_socket_alloc=no
6569fi
6570rm -f core conftest.err conftest.$ac_objext \
6571    conftest$ac_exeext conftest.$ac_ext
6572LIBS=$ac_check_lib_save_LIBS
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
6575$as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
6576if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
6577
6578			#
6579			# Yes, we have libnl 3.x.
6580			#
6581			LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6582
6583$as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6584
6585
6586$as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
6587
6588
6589$as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6590
6591
6592$as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6593
6594			V_INCLS="$V_INCLS ${incdir}"
6595			have_any_nl="yes"
6596
6597fi
6598
6599
6600		if test x$have_any_nl = xno ; then
6601			#
6602			# Try libnl 2.x
6603			#
6604			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
6605$as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
6606if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  ac_check_lib_save_LIBS=$LIBS
6610LIBS="-lnl  $LIBS"
6611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612/* end confdefs.h.  */
6613
6614/* Override any GCC internal prototype to avoid an error.
6615   Use char because int might match the return type of a GCC
6616   builtin and then its argument prototype would still apply.  */
6617#ifdef __cplusplus
6618extern "C"
6619#endif
6620char nl_socket_alloc ();
6621int
6622main ()
6623{
6624return nl_socket_alloc ();
6625  ;
6626  return 0;
6627}
6628_ACEOF
6629if ac_fn_c_try_link "$LINENO"; then :
6630  ac_cv_lib_nl_nl_socket_alloc=yes
6631else
6632  ac_cv_lib_nl_nl_socket_alloc=no
6633fi
6634rm -f core conftest.err conftest.$ac_objext \
6635    conftest$ac_exeext conftest.$ac_ext
6636LIBS=$ac_check_lib_save_LIBS
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6639$as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6640if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
6641
6642				#
6643				# Yes, we have libnl 2.x.
6644				#
6645				LIBS="${libnldir} -lnl-genl -lnl $LIBS"
6646
6647$as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6648
6649
6650$as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6651
6652
6653$as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6654
6655
6656$as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6657
6658				have_any_nl="yes"
6659
6660fi
6661
6662		fi
6663
6664		if test x$have_any_nl = xno ; then
6665			#
6666			# No, we don't; do we have libnl 1.x?
6667			#
6668			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6669$as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6670if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  ac_check_lib_save_LIBS=$LIBS
6674LIBS="-lnl  $LIBS"
6675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h.  */
6677
6678/* Override any GCC internal prototype to avoid an error.
6679   Use char because int might match the return type of a GCC
6680   builtin and then its argument prototype would still apply.  */
6681#ifdef __cplusplus
6682extern "C"
6683#endif
6684char nl_handle_alloc ();
6685int
6686main ()
6687{
6688return nl_handle_alloc ();
6689  ;
6690  return 0;
6691}
6692_ACEOF
6693if ac_fn_c_try_link "$LINENO"; then :
6694  ac_cv_lib_nl_nl_handle_alloc=yes
6695else
6696  ac_cv_lib_nl_nl_handle_alloc=no
6697fi
6698rm -f core conftest.err conftest.$ac_objext \
6699    conftest$ac_exeext conftest.$ac_ext
6700LIBS=$ac_check_lib_save_LIBS
6701fi
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6703$as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
6704if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then :
6705
6706				#
6707				# Yes.
6708				#
6709				LIBS="${libnldir} -lnl $LIBS"
6710
6711$as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6712
6713				have_any_nl="yes"
6714
6715fi
6716
6717		fi
6718
6719		if test x$have_any_nl = xno ; then
6720			#
6721			# No, we don't have libnl at all.
6722			#
6723			if test x$with_libnl = xyes ; then
6724				as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
6725			fi
6726		fi
6727	fi
6728
6729	for ac_header in linux/ethtool.h
6730do :
6731  ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
6732$ac_includes_default
6733#include <linux/types.h>
6734
6735"
6736if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
6737  cat >>confdefs.h <<_ACEOF
6738#define HAVE_LINUX_ETHTOOL_H 1
6739_ACEOF
6740
6741fi
6742
6743done
6744
6745
6746	#
6747	# Check to see if struct tpacket_stats is defined in
6748	# <linux/if_packet.h>.  If so, then pcap-linux.c can use this
6749	# to report proper statistics.
6750	#
6751	# -Scott Barron
6752	#
6753	ac_fn_c_check_type "$LINENO" "struct tpacket_stats" "ac_cv_type_struct_tpacket_stats" "
6754		#include <linux/if_packet.h>
6755
6756"
6757if test "x$ac_cv_type_struct_tpacket_stats" = xyes; then :
6758
6759cat >>confdefs.h <<_ACEOF
6760#define HAVE_STRUCT_TPACKET_STATS 1
6761_ACEOF
6762
6763
6764fi
6765
6766
6767	#
6768	# Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
6769	#
6770	# NOTE: any failure means we conclude that it doesn't have that
6771	# member, so if we don't have tpacket_auxdata, we conclude it
6772	# doesn't have that member (which is OK, as either we won't be
6773	# using code that would use that member, or we wouldn't compile
6774	# in any case).
6775	ac_fn_c_check_member "$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
6776		#include <sys/types.h>
6777		#include <linux/if_packet.h>
6778
6779"
6780if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes; then :
6781
6782cat >>confdefs.h <<_ACEOF
6783#define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
6784_ACEOF
6785
6786
6787fi
6788
6789	;;
6790
6791bpf)
6792	#
6793	# Check whether we have the *BSD-style ioctls.
6794	#
6795	for ac_header in net/if_media.h
6796do :
6797  ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6798if test "x$ac_cv_header_net_if_media_h" = xyes; then :
6799  cat >>confdefs.h <<_ACEOF
6800#define HAVE_NET_IF_MEDIA_H 1
6801_ACEOF
6802
6803fi
6804
6805done
6806
6807
6808	#
6809	# Check whether we have struct BPF_TIMEVAL.
6810	#
6811	ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6812		#include <sys/types.h>
6813		#include <sys/ioctl.h>
6814		#ifdef HAVE_SYS_IOCCOM_H
6815		#include <sys/ioccom.h>
6816		#endif
6817		#include <net/bpf.h>
6818
6819"
6820if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then :
6821
6822cat >>confdefs.h <<_ACEOF
6823#define HAVE_STRUCT_BPF_TIMEVAL 1
6824_ACEOF
6825
6826
6827fi
6828
6829	;;
6830
6831dag)
6832	#
6833	# --with-pcap=dag is the only way to get here, and it means
6834	# "DAG support but nothing else"
6835	#
6836	V_DEFS="$V_DEFS -DDAG_ONLY"
6837	xxx_only=yes
6838	;;
6839
6840septel)
6841	#
6842	# --with-pcap=septel is the only way to get here, and it means
6843	# "Septel support but nothing else"
6844	#
6845	V_DEFS="$V_DEFS -DSEPTEL_ONLY"
6846	xxx_only=yes
6847	;;
6848
6849snf)
6850	#
6851	# --with-pcap=snf is the only way to get here, and it means
6852	# "SNF support but nothing else"
6853	#
6854	V_DEFS="$V_DEFS -DSNF_ONLY"
6855	xxx_only=yes
6856	;;
6857
6858null)
6859	;;
6860
6861*)
6862	as_fn_error $? "$V_PCAP is not a valid pcap type" "$LINENO" 5
6863	;;
6864esac
6865
6866if test "$V_PCAP" != null
6867then
6868	ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6869if test "x$ac_cv_func_getifaddrs" = xyes; then :
6870
6871		#
6872		# We have "getifaddrs()"; make sure we have <ifaddrs.h>
6873		# as well, just in case some platform is really weird.
6874		#
6875		ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6876if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6877
6878		    #
6879		    # We have the header, so we use "getifaddrs()" to
6880		    # get the list of interfaces.
6881		    #
6882		    V_FINDALLDEVS=fad-getad.c
6883
6884else
6885
6886		    #
6887		    # We don't have the header - give up.
6888		    # XXX - we could also fall back on some other
6889		    # mechanism, but, for now, this'll catch this
6890		    # problem so that we can at least try to figure
6891		    # out something to do on systems with "getifaddrs()"
6892		    # but without "ifaddrs.h", if there is something
6893		    # we can do on those systems.
6894		    #
6895		    as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6896
6897fi
6898
6899
6900
6901else
6902
6903		#
6904		# Well, we don't have "getifaddrs()", at least not with the
6905		# libraries with which we've decided we need to link
6906		# libpcap with, so we have to use some other mechanism.
6907		#
6908		# Note that this may happen on Solaris, which has
6909		# getifaddrs(), but in -lsocket, not in -lxnet, so we
6910		# won't find it if we link with -lxnet, which we want
6911		# to do for other reasons.
6912		#
6913		# For now, we use either the SIOCGIFCONF ioctl or the
6914		# SIOCGLIFCONF ioctl, preferring the latter if we have
6915		# it; the latter is a Solarisism that first appeared
6916		# in Solaris 8.  (Solaris's getifaddrs() appears to
6917		# be built atop SIOCGLIFCONF; using it directly
6918		# avoids a not-all-that-useful middleman.)
6919		#
6920		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6921$as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6922		if ${ac_cv_lbl_have_siocglifconf+:} false; then :
6923  $as_echo_n "(cached) " >&6
6924else
6925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926/* end confdefs.h.  */
6927#include <sys/param.h>
6928			#include <sys/file.h>
6929			#include <sys/ioctl.h>
6930			#include <sys/socket.h>
6931			#include <sys/sockio.h>
6932int
6933main ()
6934{
6935ioctl(0, SIOCGLIFCONF, (char *)0);
6936  ;
6937  return 0;
6938}
6939_ACEOF
6940if ac_fn_c_try_compile "$LINENO"; then :
6941  ac_cv_lbl_have_siocglifconf=yes
6942else
6943  ac_cv_lbl_have_siocglifconf=no
6944fi
6945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946fi
6947
6948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6949$as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6950		if test $ac_cv_lbl_have_siocglifconf = yes ; then
6951			V_FINDALLDEVS=fad-glifc.c
6952		else
6953			V_FINDALLDEVS=fad-gifc.c
6954		fi
6955
6956fi
6957
6958fi
6959
6960fi
6961
6962
6963case "$host_os" in
6964linux*)
6965	for ac_header in linux/net_tstamp.h
6966do :
6967  ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
6968if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
6969  cat >>confdefs.h <<_ACEOF
6970#define HAVE_LINUX_NET_TSTAMP_H 1
6971_ACEOF
6972
6973fi
6974
6975done
6976
6977	;;
6978*)
6979	{ $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
6980$as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
6981	;;
6982esac
6983
6984# Check whether --enable-packet-ring was given.
6985if test "${enable_packet_ring+set}" = set; then :
6986  enableval=$enable_packet_ring;
6987else
6988  enable_packet_ring=yes
6989fi
6990
6991
6992if test "x$enable_packet_ring" != "xno" ; then
6993
6994$as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
6995
6996
6997fi
6998
6999#
7000# Check for socklen_t.
7001#
7002ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
7003	#include <sys/types.h>
7004	#include <sys/socket.h>
7005
7006"
7007if test "x$ac_cv_type_socklen_t" = xyes; then :
7008
7009cat >>confdefs.h <<_ACEOF
7010#define HAVE_SOCKLEN_T 1
7011_ACEOF
7012
7013
7014fi
7015
7016
7017# Check whether --enable-ipv6 was given.
7018if test "${enable_ipv6+set}" = set; then :
7019  enableval=$enable_ipv6;
7020else
7021  enable_ipv6=yes
7022fi
7023
7024if test "$enable_ipv6" != "no"; then
7025	#
7026	# We've already made sure we have getaddrinfo above in
7027	# AC_LBL_LIBRARY_NET.
7028	#
7029
7030$as_echo "#define INET6 1" >>confdefs.h
7031
7032fi
7033
7034# Check for Endace DAG card support.
7035
7036# Check whether --with-dag was given.
7037if test "${with_dag+set}" = set; then :
7038  withval=$with_dag;
7039	if test "$withval" = no
7040	then
7041		# User doesn't want DAG support.
7042		want_dag=no
7043	elif test "$withval" = yes
7044	then
7045		# User wants DAG support but hasn't specified a directory.
7046		want_dag=yes
7047	else
7048		# User wants DAG support and has specified a directory, so use the provided value.
7049		want_dag=yes
7050		dag_root=$withval
7051	fi
7052
7053else
7054
7055	if test "$V_PCAP" = dag; then
7056		# User requested DAG-only libpcap, so we'd better have
7057		# the DAG API.
7058		want_dag=yes
7059	elif test "xxx_only" = yes; then
7060		# User requested something-else-only pcap, so they don't
7061		# want DAG support.
7062		want_dag=no
7063	else
7064		#
7065		# Use DAG API if present, otherwise don't
7066		#
7067		want_dag=ifpresent
7068	fi
7069
7070fi
7071
7072
7073
7074# Check whether --with-dag-includes was given.
7075if test "${with_dag_includes+set}" = set; then :
7076  withval=$with_dag_includes;
7077	# User wants DAG support and has specified a header directory, so use the provided value.
7078	want_dag=yes
7079	dag_include_dir=$withval
7080
7081fi
7082
7083
7084
7085# Check whether --with-dag-libraries was given.
7086if test "${with_dag_libraries+set}" = set; then :
7087  withval=$with_dag_libraries;
7088	# User wants DAG support and has specified a library directory, so use the provided value.
7089	want_dag=yes
7090	dag_lib_dir=$withval
7091
7092fi
7093
7094
7095if test "$want_dag" != no; then
7096
7097	# If necessary, set default paths for DAG API headers and libraries.
7098	if test -z "$dag_root"; then
7099		dag_root=/usr/local
7100	fi
7101
7102	if test -z "$dag_include_dir"; then
7103		dag_include_dir="$dag_root/include"
7104	fi
7105
7106	if test -z "$dag_lib_dir"; then
7107		dag_lib_dir="$dag_root/lib"
7108	fi
7109
7110	V_INCLS="$V_INCLS -I$dag_include_dir"
7111
7112	for ac_header in dagapi.h
7113do :
7114  ac_fn_c_check_header_mongrel "$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
7115if test "x$ac_cv_header_dagapi_h" = xyes; then :
7116  cat >>confdefs.h <<_ACEOF
7117#define HAVE_DAGAPI_H 1
7118_ACEOF
7119
7120fi
7121
7122done
7123
7124
7125	if test "$ac_cv_header_dagapi_h" = yes; then
7126
7127		if test $V_PCAP != dag ; then
7128			 SSRC="$SSRC pcap-dag.c"
7129		fi
7130
7131		# Check for various DAG API functions.
7132		# Don't need to save and restore LIBS to prevent -ldag being
7133		# included if there's a found-action (arg 3).
7134		saved_ldflags=$LDFLAGS
7135		LDFLAGS="-L$dag_lib_dir"
7136		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
7137$as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
7138if ${ac_cv_lib_dag_dag_attach_stream+:} false; then :
7139  $as_echo_n "(cached) " >&6
7140else
7141  ac_check_lib_save_LIBS=$LIBS
7142LIBS="-ldag  $LIBS"
7143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144/* end confdefs.h.  */
7145
7146/* Override any GCC internal prototype to avoid an error.
7147   Use char because int might match the return type of a GCC
7148   builtin and then its argument prototype would still apply.  */
7149#ifdef __cplusplus
7150extern "C"
7151#endif
7152char dag_attach_stream ();
7153int
7154main ()
7155{
7156return dag_attach_stream ();
7157  ;
7158  return 0;
7159}
7160_ACEOF
7161if ac_fn_c_try_link "$LINENO"; then :
7162  ac_cv_lib_dag_dag_attach_stream=yes
7163else
7164  ac_cv_lib_dag_dag_attach_stream=no
7165fi
7166rm -f core conftest.err conftest.$ac_objext \
7167    conftest$ac_exeext conftest.$ac_ext
7168LIBS=$ac_check_lib_save_LIBS
7169fi
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
7171$as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
7172if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then :
7173  cat >>confdefs.h <<_ACEOF
7174#define HAVE_LIBDAG 1
7175_ACEOF
7176
7177  LIBS="-ldag $LIBS"
7178
7179else
7180  as_fn_error $? "DAG library lacks streams support" "$LINENO" 5
7181fi
7182
7183		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
7184$as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
7185if ${ac_cv_lib_dag_dag_attach_stream64+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  ac_check_lib_save_LIBS=$LIBS
7189LIBS="-ldag  $LIBS"
7190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h.  */
7192
7193/* Override any GCC internal prototype to avoid an error.
7194   Use char because int might match the return type of a GCC
7195   builtin and then its argument prototype would still apply.  */
7196#ifdef __cplusplus
7197extern "C"
7198#endif
7199char dag_attach_stream64 ();
7200int
7201main ()
7202{
7203return dag_attach_stream64 ();
7204  ;
7205  return 0;
7206}
7207_ACEOF
7208if ac_fn_c_try_link "$LINENO"; then :
7209  ac_cv_lib_dag_dag_attach_stream64=yes
7210else
7211  ac_cv_lib_dag_dag_attach_stream64=no
7212fi
7213rm -f core conftest.err conftest.$ac_objext \
7214    conftest$ac_exeext conftest.$ac_ext
7215LIBS=$ac_check_lib_save_LIBS
7216fi
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
7218$as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
7219if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes; then :
7220  dag_large_streams="1"
7221else
7222  dag_large_streams="0"
7223fi
7224
7225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
7226$as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
7227if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  ac_check_lib_save_LIBS=$LIBS
7231LIBS="-ldag  $LIBS"
7232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233/* end confdefs.h.  */
7234
7235/* Override any GCC internal prototype to avoid an error.
7236   Use char because int might match the return type of a GCC
7237   builtin and then its argument prototype would still apply.  */
7238#ifdef __cplusplus
7239extern "C"
7240#endif
7241char dag_get_erf_types ();
7242int
7243main ()
7244{
7245return dag_get_erf_types ();
7246  ;
7247  return 0;
7248}
7249_ACEOF
7250if ac_fn_c_try_link "$LINENO"; then :
7251  ac_cv_lib_dag_dag_get_erf_types=yes
7252else
7253  ac_cv_lib_dag_dag_get_erf_types=no
7254fi
7255rm -f core conftest.err conftest.$ac_objext \
7256    conftest$ac_exeext conftest.$ac_ext
7257LIBS=$ac_check_lib_save_LIBS
7258fi
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
7260$as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
7261if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then :
7262
7263
7264$as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
7265
7266fi
7267
7268		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
7269$as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
7270if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  ac_check_lib_save_LIBS=$LIBS
7274LIBS="-ldag  $LIBS"
7275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276/* end confdefs.h.  */
7277
7278/* Override any GCC internal prototype to avoid an error.
7279   Use char because int might match the return type of a GCC
7280   builtin and then its argument prototype would still apply.  */
7281#ifdef __cplusplus
7282extern "C"
7283#endif
7284char dag_get_stream_erf_types ();
7285int
7286main ()
7287{
7288return dag_get_stream_erf_types ();
7289  ;
7290  return 0;
7291}
7292_ACEOF
7293if ac_fn_c_try_link "$LINENO"; then :
7294  ac_cv_lib_dag_dag_get_stream_erf_types=yes
7295else
7296  ac_cv_lib_dag_dag_get_stream_erf_types=no
7297fi
7298rm -f core conftest.err conftest.$ac_objext \
7299    conftest$ac_exeext conftest.$ac_ext
7300LIBS=$ac_check_lib_save_LIBS
7301fi
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
7303$as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
7304if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then :
7305
7306
7307$as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
7308
7309fi
7310
7311
7312		LDFLAGS=$saved_ldflags
7313
7314		#
7315		# We assume that if we have libdag we have libdagconf,
7316		# as they're installed at the same time from the same
7317		# package.
7318		#
7319		LIBS="$LIBS -ldag -ldagconf"
7320		LDFLAGS="$LDFLAGS -L$dag_lib_dir"
7321
7322		if test "$dag_large_streams" = 1; then
7323
7324$as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
7325
7326			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
7327$as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
7328if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then :
7329  $as_echo_n "(cached) " >&6
7330else
7331  ac_check_lib_save_LIBS=$LIBS
7332LIBS="-lvdag  $LIBS"
7333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h.  */
7335
7336/* Override any GCC internal prototype to avoid an error.
7337   Use char because int might match the return type of a GCC
7338   builtin and then its argument prototype would still apply.  */
7339#ifdef __cplusplus
7340extern "C"
7341#endif
7342char vdag_set_device_info ();
7343int
7344main ()
7345{
7346return vdag_set_device_info ();
7347  ;
7348  return 0;
7349}
7350_ACEOF
7351if ac_fn_c_try_link "$LINENO"; then :
7352  ac_cv_lib_vdag_vdag_set_device_info=yes
7353else
7354  ac_cv_lib_vdag_vdag_set_device_info=no
7355fi
7356rm -f core conftest.err conftest.$ac_objext \
7357    conftest$ac_exeext conftest.$ac_ext
7358LIBS=$ac_check_lib_save_LIBS
7359fi
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
7361$as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
7362if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then :
7363  ac_dag_have_vdag="1"
7364else
7365  ac_dag_have_vdag="0"
7366fi
7367
7368			if test "$ac_dag_have_vdag" = 1; then
7369
7370$as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
7371
7372				if test "$ac_lbl_have_pthreads" != "found"; then
7373					as_fn_error $? "DAG requires pthreads, but we didn't find them" "$LINENO" 5
7374				fi
7375				LIBS="$LIBS $PTHREAD_LIBS"
7376			fi
7377		fi
7378
7379
7380$as_echo "#define HAVE_DAG_API 1" >>confdefs.h
7381
7382	else
7383
7384		if test "$V_PCAP" = dag; then
7385			# User requested "dag" capture type but we couldn't
7386			# find the DAG API support.
7387			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
7388		fi
7389
7390		if test "$want_dag" = yes; then
7391	        	# User wanted DAG support but we couldn't find it.
7392			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
7393		fi
7394	fi
7395fi
7396
7397
7398# Check whether --with-septel was given.
7399if test "${with_septel+set}" = set; then :
7400  withval=$with_septel;
7401	if test "$withval" = no
7402	then
7403		want_septel=no
7404	elif test "$withval" = yes
7405	then
7406		want_septel=yes
7407		septel_root=
7408	else
7409		want_septel=yes
7410		septel_root=$withval
7411	fi
7412
7413else
7414
7415	if test "$V_PCAP" = septel; then
7416		# User requested Septel-only libpcap, so we'd better have
7417		# the Septel API.
7418		want_septel=yes
7419	elif test "xxx_only" = yes; then
7420		# User requested something-else-only pcap, so they don't
7421		# want Septel support.
7422		want_septel=no
7423	else
7424		#
7425		# Use Septel API if present, otherwise don't
7426		#
7427		want_septel=ifpresent
7428	fi
7429
7430fi
7431
7432
7433ac_cv_lbl_septel_api=no
7434if test "$with_septel" != no; then
7435
7436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
7437$as_echo_n "checking whether we have Septel API headers... " >&6; }
7438
7439	# If necessary, set default paths for Septel API headers and libraries.
7440	if test -z "$septel_root"; then
7441		septel_root=$srcdir/../septel
7442	fi
7443
7444	septel_tools_dir="$septel_root"
7445	septel_include_dir="$septel_root/INC"
7446
7447	if test -r "$septel_include_dir/msg.h"; then
7448		ac_cv_lbl_septel_api=yes
7449	fi
7450
7451	if test "$ac_cv_lbl_septel_api" = yes; then
7452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
7453$as_echo "yes ($septel_include_dir)" >&6; }
7454
7455		V_INCLS="$V_INCLS -I$septel_include_dir"
7456		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"
7457		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"
7458
7459		if test "$V_PCAP" != septel ; then
7460			 SSRC="$SSRC pcap-septel.c"
7461		fi
7462
7463
7464$as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
7465
7466	else
7467		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468$as_echo "no" >&6; }
7469
7470		if test "$V_PCAP" = septel; then
7471			# User requested "septel" capture type but
7472			# we couldn't find the Septel API support.
7473			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
7474		fi
7475
7476		if test "$want_septel" = yes; then
7477	        	# User wanted Septel support but we couldn't find it.
7478			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
7479		fi
7480	fi
7481fi
7482
7483# Check for Myricom SNF support.
7484
7485# Check whether --with-snf was given.
7486if test "${with_snf+set}" = set; then :
7487  withval=$with_snf;
7488	if test "$withval" = no
7489	then
7490		# User explicitly doesn't want SNF
7491		want_snf=no
7492	elif test "$withval" = yes
7493	then
7494		# User wants SNF support but hasn't specified a directory.
7495		want_snf=yes
7496	else
7497		# User wants SNF support with a specified directory.
7498		want_snf=yes
7499		snf_root=$withval
7500	fi
7501
7502else
7503
7504	if test "$V_PCAP" = snf; then
7505		# User requested Sniffer-only libpcap, so we'd better have
7506		# the Sniffer API.
7507		want_snf=yes
7508	elif test "xxx_only" = yes; then
7509		# User requested something-else-only pcap, so they don't
7510		# want SNF support.
7511		want_snf=no
7512	else
7513		#
7514		# Use Sniffer API if present, otherwise don't
7515		#
7516		want_snf=ifpresent
7517	fi
7518
7519fi
7520
7521
7522
7523# Check whether --with-snf-includes was given.
7524if test "${with_snf_includes+set}" = set; then :
7525  withval=$with_snf_includes;
7526	# User wants SNF with specific header directory
7527	want_snf=yes
7528	snf_include_dir=$withval
7529
7530fi
7531
7532
7533
7534# Check whether --with-snf-libraries was given.
7535if test "${with_snf_libraries+set}" = set; then :
7536  withval=$with_snf_libraries;
7537	# User wants SNF with specific lib directory
7538	want_snf=yes
7539	snf_lib_dir=$withval
7540
7541fi
7542
7543
7544ac_cv_lbl_snf_api=no
7545if test "$with_snf" != no; then
7546
7547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
7548$as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
7549
7550	# If necessary, set default paths for Sniffer headers and libraries.
7551	if test -z "$snf_root"; then
7552		snf_root=/opt/snf
7553	fi
7554
7555	if test -z "$snf_include_dir"; then
7556		snf_include_dir="$snf_root/include"
7557	fi
7558
7559	if test -z "$snf_lib_dir"; then
7560		snf_lib_dir="$snf_root/lib"
7561	fi
7562
7563	if test -f "$snf_include_dir/snf.h"; then
7564		# We found a header; make sure we can link with the library
7565		saved_ldflags=$LDFLAGS
7566		LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7567		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7568$as_echo_n "checking for snf_init in -lsnf... " >&6; }
7569if ${ac_cv_lib_snf_snf_init+:} false; then :
7570  $as_echo_n "(cached) " >&6
7571else
7572  ac_check_lib_save_LIBS=$LIBS
7573LIBS="-lsnf  $LIBS"
7574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576
7577/* Override any GCC internal prototype to avoid an error.
7578   Use char because int might match the return type of a GCC
7579   builtin and then its argument prototype would still apply.  */
7580#ifdef __cplusplus
7581extern "C"
7582#endif
7583char snf_init ();
7584int
7585main ()
7586{
7587return snf_init ();
7588  ;
7589  return 0;
7590}
7591_ACEOF
7592if ac_fn_c_try_link "$LINENO"; then :
7593  ac_cv_lib_snf_snf_init=yes
7594else
7595  ac_cv_lib_snf_snf_init=no
7596fi
7597rm -f core conftest.err conftest.$ac_objext \
7598    conftest$ac_exeext conftest.$ac_ext
7599LIBS=$ac_check_lib_save_LIBS
7600fi
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7602$as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7603if test "x$ac_cv_lib_snf_snf_init" = xyes; then :
7604  ac_cv_lbl_snf_api="yes"
7605fi
7606
7607		LDFLAGS="$saved_ldflags"
7608		if test "$ac_cv_lbl_snf_api" = no; then
7609			as_fn_error $? "SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7610		fi
7611	fi
7612
7613	if test "$ac_cv_lbl_snf_api" = yes; then
7614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7615$as_echo "yes ($snf_root)" >&6; }
7616
7617		V_INCLS="$V_INCLS -I$snf_include_dir"
7618		LIBS="$LIBS -lsnf"
7619		LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7620
7621		if test "$V_PCAP" != snf ; then
7622			SSRC="$SSRC pcap-snf.c"
7623		fi
7624
7625
7626$as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7627
7628	else
7629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630$as_echo "no" >&6; }
7631
7632		if test "$want_snf" = yes; then
7633			# User requested "snf" capture type but
7634			# we couldn't find the Sniffer API support.
7635			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
7636		fi
7637
7638		if test "$want_snf" = yes; then
7639			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
7640		fi
7641	fi
7642fi
7643
7644# Check for Riverbed TurboCap support.
7645
7646# Check whether --with-turbocap was given.
7647if test "${with_turbocap+set}" = set; then :
7648  withval=$with_turbocap;
7649	if test "$withval" = no
7650	then
7651		# User explicitly doesn't want TurboCap
7652		want_turbocap=no
7653	elif test "$withval" = yes
7654	then
7655		# User wants TurboCap support but hasn't specified a directory.
7656		want_turbocap=yes
7657	else
7658		# User wants TurboCap support with a specified directory.
7659		want_turbocap=yes
7660		turbocap_root=$withval
7661	fi
7662
7663else
7664
7665	if test "xxx_only" = yes; then
7666		# User requested something-else-only pcap, so they don't
7667		# want TurboCap support.
7668		want_turbocap=no
7669	else
7670		#
7671		# Use TurboCap API if present, otherwise don't
7672		#
7673		want_turbocap=ifpresent
7674	fi
7675
7676fi
7677
7678
7679ac_cv_lbl_turbocap_api=no
7680if test "$want_turbocap" != no; then
7681
7682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
7683$as_echo_n "checking whether TurboCap is supported... " >&6; }
7684
7685	save_CFLAGS="$CFLAGS"
7686	save_LIBS="$LIBS"
7687	if test ! -z "$turbocap_root"; then
7688		TURBOCAP_CFLAGS="-I$turbocap_root/include"
7689		TURBOCAP_LIBS="-L$turbocap_root/lib"
7690		CFLAGS="$CFLAGS $TURBOCAP_CFLAGS"
7691	fi
7692
7693	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694/* end confdefs.h.  */
7695
7696	    #include <TcApi.h>
7697
7698int
7699main ()
7700{
7701
7702	    TC_INSTANCE a; TC_PORT b; TC_BOARD c;
7703	    TC_INSTANCE i;
7704	    (void)TcInstanceCreateByName("foo", &i);
7705
7706  ;
7707  return 0;
7708}
7709_ACEOF
7710if ac_fn_c_try_compile "$LINENO"; then :
7711  ac_cv_lbl_turbocap_api=yes
7712fi
7713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714
7715	CFLAGS="$save_CFLAGS"
7716	if test $ac_cv_lbl_turbocap_api = yes; then
7717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7718$as_echo "yes" >&6; }
7719
7720		SSRC="$SSRC pcap-tc.c"
7721		V_INCLS="$V_INCLS $TURBOCAP_CFLAGS"
7722		LIBS="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
7723
7724
7725$as_echo "#define HAVE_TC_API 1" >>confdefs.h
7726
7727	else
7728		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
7730
7731		if test "$want_turbocap" = yes; then
7732	        	# User wanted Turbo support but we couldn't find it.
7733			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
7734		fi
7735	fi
7736fi
7737
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7739$as_echo_n "checking whether to enable remote packet capture... " >&6; }
7740# Check whether --enable-remote was given.
7741if test "${enable_remote+set}" = set; then :
7742  enableval=$enable_remote;
7743else
7744  enableval=no
7745fi
7746
7747case "$enableval" in
7748yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7749$as_echo "yes" >&6; }
7750	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7751$as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7752	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7753$as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7754	#
7755	# rpcapd requires pthreads on UN*X.
7756	#
7757	if test "$ac_lbl_have_pthreads" != "found"; then
7758		as_fn_error $? "rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
7759	fi
7760	#
7761	# It also requires crypt().
7762	# Do we have it in the system libraries?
7763	#
7764	ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7765if test "x$ac_cv_func_crypt" = xyes; then :
7766
7767else
7768
7769		#
7770		# No.  Do we have it in -lcrypt?
7771		#
7772		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7773$as_echo_n "checking for crypt in -lcrypt... " >&6; }
7774if ${ac_cv_lib_crypt_crypt+:} false; then :
7775  $as_echo_n "(cached) " >&6
7776else
7777  ac_check_lib_save_LIBS=$LIBS
7778LIBS="-lcrypt  $LIBS"
7779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781
7782/* Override any GCC internal prototype to avoid an error.
7783   Use char because int might match the return type of a GCC
7784   builtin and then its argument prototype would still apply.  */
7785#ifdef __cplusplus
7786extern "C"
7787#endif
7788char crypt ();
7789int
7790main ()
7791{
7792return crypt ();
7793  ;
7794  return 0;
7795}
7796_ACEOF
7797if ac_fn_c_try_link "$LINENO"; then :
7798  ac_cv_lib_crypt_crypt=yes
7799else
7800  ac_cv_lib_crypt_crypt=no
7801fi
7802rm -f core conftest.err conftest.$ac_objext \
7803    conftest$ac_exeext conftest.$ac_ext
7804LIBS=$ac_check_lib_save_LIBS
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7807$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7808if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7809
7810			#
7811			# Yes; add -lcrypt to the libraries for rpcapd.
7812			#
7813			RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt"
7814
7815else
7816
7817			as_fn_error $? "rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
7818
7819fi
7820
7821
7822fi
7823
7824
7825	#
7826	# OK, we have crypt().  Do we have getspnam()?
7827	#
7828	for ac_func in getspnam
7829do :
7830  ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7831if test "x$ac_cv_func_getspnam" = xyes; then :
7832  cat >>confdefs.h <<_ACEOF
7833#define HAVE_GETSPNAM 1
7834_ACEOF
7835
7836fi
7837done
7838
7839
7840	#
7841	# Check for various members of struct msghdr.
7842	#
7843	ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
7844		#include \"ftmacros.h\"
7845		#include <sys/socket.h>
7846
7847"
7848if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
7849
7850cat >>confdefs.h <<_ACEOF
7851#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
7852_ACEOF
7853
7854
7855fi
7856
7857	ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
7858		#include \"ftmacros.h\"
7859		#include <sys/socket.h>
7860
7861"
7862if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes; then :
7863
7864cat >>confdefs.h <<_ACEOF
7865#define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
7866_ACEOF
7867
7868
7869fi
7870
7871
7872
7873$as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
7874
7875	SSRC="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
7876	BUILD_RPCAPD=build-rpcapd
7877	INSTALL_RPCAPD=install-rpcapd
7878	;;
7879*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
7881	;;
7882esac
7883
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
7885$as_echo_n "checking whether to build optimizer debugging code... " >&6; }
7886# Check whether --enable-optimizer-dbg was given.
7887if test "${enable_optimizer_dbg+set}" = set; then :
7888  enableval=$enable_optimizer_dbg;
7889fi
7890
7891if test "$enable_optimizer_dbg" = "yes"; then
7892
7893$as_echo "#define BDEBUG 1" >>confdefs.h
7894
7895fi
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
7897$as_echo "${enable_optimizer_dbg-no}" >&6; }
7898
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
7900$as_echo_n "checking whether to build parser debugging code... " >&6; }
7901# Check whether --enable-yydebug was given.
7902if test "${enable_yydebug+set}" = set; then :
7903  enableval=$enable_yydebug;
7904fi
7905
7906if test "$enable_yydebug" = "yes"; then
7907
7908$as_echo "#define YYDEBUG 1" >>confdefs.h
7909
7910fi
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
7912$as_echo "${enable_yydebug-no}" >&6; }
7913
7914#
7915# Look for {f}lex.
7916#
7917for ac_prog in flex lex
7918do
7919  # Extract the first word of "$ac_prog", so it can be a program name with args.
7920set dummy $ac_prog; ac_word=$2
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922$as_echo_n "checking for $ac_word... " >&6; }
7923if ${ac_cv_prog_LEX+:} false; then :
7924  $as_echo_n "(cached) " >&6
7925else
7926  if test -n "$LEX"; then
7927  ac_cv_prog_LEX="$LEX" # Let the user override the test.
7928else
7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930for as_dir in $PATH
7931do
7932  IFS=$as_save_IFS
7933  test -z "$as_dir" && as_dir=.
7934    for ac_exec_ext in '' $ac_executable_extensions; do
7935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936    ac_cv_prog_LEX="$ac_prog"
7937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938    break 2
7939  fi
7940done
7941  done
7942IFS=$as_save_IFS
7943
7944fi
7945fi
7946LEX=$ac_cv_prog_LEX
7947if test -n "$LEX"; then
7948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7949$as_echo "$LEX" >&6; }
7950else
7951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952$as_echo "no" >&6; }
7953fi
7954
7955
7956  test -n "$LEX" && break
7957done
7958test -n "$LEX" || LEX=":"
7959
7960if test "x$LEX" != "x:"; then
7961  cat >conftest.l <<_ACEOF
7962%%
7963a { ECHO; }
7964b { REJECT; }
7965c { yymore (); }
7966d { yyless (1); }
7967e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
7968    yyless ((input () != 0)); }
7969f { unput (yytext[0]); }
7970. { BEGIN INITIAL; }
7971%%
7972#ifdef YYTEXT_POINTER
7973extern char *yytext;
7974#endif
7975int
7976main (void)
7977{
7978  return ! yylex () + ! yywrap ();
7979}
7980_ACEOF
7981{ { ac_try="$LEX conftest.l"
7982case "(($ac_try" in
7983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984  *) ac_try_echo=$ac_try;;
7985esac
7986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7987$as_echo "$ac_try_echo"; } >&5
7988  (eval "$LEX conftest.l") 2>&5
7989  ac_status=$?
7990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991  test $ac_status = 0; }
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7993$as_echo_n "checking lex output file root... " >&6; }
7994if ${ac_cv_prog_lex_root+:} false; then :
7995  $as_echo_n "(cached) " >&6
7996else
7997
7998if test -f lex.yy.c; then
7999  ac_cv_prog_lex_root=lex.yy
8000elif test -f lexyy.c; then
8001  ac_cv_prog_lex_root=lexyy
8002else
8003  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
8004fi
8005fi
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
8007$as_echo "$ac_cv_prog_lex_root" >&6; }
8008LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8009
8010if test -z "${LEXLIB+set}"; then
8011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
8012$as_echo_n "checking lex library... " >&6; }
8013if ${ac_cv_lib_lex+:} false; then :
8014  $as_echo_n "(cached) " >&6
8015else
8016
8017    ac_save_LIBS=$LIBS
8018    ac_cv_lib_lex='none needed'
8019    for ac_lib in '' -lfl -ll; do
8020      LIBS="$ac_lib $ac_save_LIBS"
8021      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022/* end confdefs.h.  */
8023`cat $LEX_OUTPUT_ROOT.c`
8024_ACEOF
8025if ac_fn_c_try_link "$LINENO"; then :
8026  ac_cv_lib_lex=$ac_lib
8027fi
8028rm -f core conftest.err conftest.$ac_objext \
8029    conftest$ac_exeext conftest.$ac_ext
8030      test "$ac_cv_lib_lex" != 'none needed' && break
8031    done
8032    LIBS=$ac_save_LIBS
8033
8034fi
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
8036$as_echo "$ac_cv_lib_lex" >&6; }
8037  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
8038fi
8039
8040
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
8042$as_echo_n "checking whether yytext is a pointer... " >&6; }
8043if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  # POSIX says lex can declare yytext either as a pointer or an array; the
8047# default is implementation-dependent.  Figure out which it is, since
8048# not all implementations provide the %pointer and %array declarations.
8049ac_cv_prog_lex_yytext_pointer=no
8050ac_save_LIBS=$LIBS
8051LIBS="$LEXLIB $ac_save_LIBS"
8052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054
8055  #define YYTEXT_POINTER 1
8056`cat $LEX_OUTPUT_ROOT.c`
8057_ACEOF
8058if ac_fn_c_try_link "$LINENO"; then :
8059  ac_cv_prog_lex_yytext_pointer=yes
8060fi
8061rm -f core conftest.err conftest.$ac_objext \
8062    conftest$ac_exeext conftest.$ac_ext
8063LIBS=$ac_save_LIBS
8064
8065fi
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
8067$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
8068if test $ac_cv_prog_lex_yytext_pointer = yes; then
8069
8070$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
8071
8072fi
8073rm -f conftest.l $LEX_OUTPUT_ROOT.c
8074
8075fi
8076if test "$LEX" = ":"; then
8077	as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
8078fi
8079
8080#
8081# Make sure {f}lex supports the -P, --header-file, and --nounput flags
8082# and supports processing our scanner.l.
8083#
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
8085$as_echo_n "checking for capable lex... " >&6; }
8086if ${tcpdump_cv_capable_lex+:} false; then :
8087  $as_echo_n "(cached) " >&6
8088else
8089  if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
8090	    tcpdump_cv_capable_lex=yes
8091	else
8092	    tcpdump_cv_capable_lex=insufficient
8093	fi
8094fi
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
8096$as_echo "$tcpdump_cv_capable_lex" >&6; }
8097if test $tcpdump_cv_capable_lex = insufficient ; then
8098	as_fn_error $? "$LEX is insufficient to compile libpcap.
8099 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
8100fi
8101
8102#
8103# Look for yacc/bison/byacc.
8104#
8105for ac_prog in 'bison -y' byacc
8106do
8107  # Extract the first word of "$ac_prog", so it can be a program name with args.
8108set dummy $ac_prog; ac_word=$2
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110$as_echo_n "checking for $ac_word... " >&6; }
8111if ${ac_cv_prog_YACC+:} false; then :
8112  $as_echo_n "(cached) " >&6
8113else
8114  if test -n "$YACC"; then
8115  ac_cv_prog_YACC="$YACC" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120  IFS=$as_save_IFS
8121  test -z "$as_dir" && as_dir=.
8122    for ac_exec_ext in '' $ac_executable_extensions; do
8123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124    ac_cv_prog_YACC="$ac_prog"
8125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126    break 2
8127  fi
8128done
8129  done
8130IFS=$as_save_IFS
8131
8132fi
8133fi
8134YACC=$ac_cv_prog_YACC
8135if test -n "$YACC"; then
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8137$as_echo "$YACC" >&6; }
8138else
8139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140$as_echo "no" >&6; }
8141fi
8142
8143
8144  test -n "$YACC" && break
8145done
8146test -n "$YACC" || YACC="yacc"
8147
8148
8149#
8150# Make sure it supports the -p flag and supports processing our
8151# grammar.y.
8152#
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
8154$as_echo_n "checking for capable yacc/bison... " >&6; }
8155if ${tcpdump_cv_capable_yacc+:} false; then :
8156  $as_echo_n "(cached) " >&6
8157else
8158  if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
8159	    tcpdump_cv_capable_yacc=yes
8160	else
8161	    tcpdump_cv_capable_yacc=insufficient
8162	fi
8163fi
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
8165$as_echo "$tcpdump_cv_capable_yacc" >&6; }
8166if test $tcpdump_cv_capable_yacc = insufficient ; then
8167	as_fn_error $? "$YACC is insufficient to compile libpcap.
8168 libpcap requires Bison, a newer version of Berkeley YACC with support
8169 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
8170fi
8171
8172#
8173# Do various checks for various OSes and versions of those OSes.
8174#
8175# Assume, by default, no support for shared libraries and V7/BSD
8176# convention for man pages (devices in section 4, file formats in
8177# section 5, miscellaneous info in section 7, administrative commands
8178# and daemons in section 8).  Individual cases can override this.
8179#
8180DYEXT="none"
8181MAN_DEVICES=4
8182MAN_FILE_FORMATS=5
8183MAN_MISC_INFO=7
8184MAN_ADMIN_COMMANDS=8
8185case "$host_os" in
8186
8187aix*)
8188
8189$as_echo "#define _SUN 1" >>confdefs.h
8190
8191
8192	#
8193	# AIX makes it fun to build shared and static libraries,
8194	# because they're *both* ".a" archive libraries.  We
8195	# build the static library for the benefit of the traditional
8196	# scheme of building libpcap and tcpdump in subdirectories of
8197	# the same directory, with tcpdump statically linked with the
8198	# libpcap in question, but we also build a shared library as
8199	# "libpcap.shareda" and install *it*, rather than the static
8200	# library, as "libpcap.a".
8201	#
8202	DYEXT="shareda"
8203
8204	case "$V_PCAP" in
8205
8206	dlpi)
8207		#
8208		# If we're using DLPI, applications will need to
8209		# use /lib/pse.exp if present, as we use the
8210		# STREAMS routines.
8211		#
8212		pseexe="/lib/pse.exp"
8213		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
8214$as_echo_n "checking for $pseexe... " >&6; }
8215		if test -f $pseexe ; then
8216			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8217$as_echo "yes" >&6; }
8218			LIBS="-I:$pseexe"
8219		fi
8220		;;
8221
8222	bpf)
8223		#
8224		# If we're using BPF, we need "-lodm" and "-lcfg", as
8225		# we use them to load the BPF module.
8226		#
8227		LIBS="-lodm -lcfg"
8228		;;
8229	esac
8230	;;
8231
8232darwin*)
8233	DYEXT="dylib"
8234	V_CCOPT="$V_CCOPT -fno-common"
8235	# Check whether --enable-universal was given.
8236if test "${enable_universal+set}" = set; then :
8237  enableval=$enable_universal;
8238fi
8239
8240	if test "$enable_universal" != "no"; then
8241		case "$host_os" in
8242
8243		darwin[0-7].*)
8244			#
8245			# Pre-Tiger.  Build only for 32-bit PowerPC; no
8246			# need for any special compiler or linker flags.
8247			#
8248			;;
8249
8250		darwin8.[0123]|darwin8.[0123].*)
8251			#
8252			# Tiger, prior to Intel support.  Build
8253			# libraries and executables for 32-bit PowerPC
8254			# and 64-bit PowerPC, with 32-bit PowerPC first.
8255			# (I'm guessing that's what Apple does.)
8256			#
8257			# (The double brackets are needed because
8258			# autotools/m4 use brackets as a quoting
8259			# character; the double brackets turn into
8260			# single brackets in the generated configure
8261			# file.)
8262			#
8263			V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
8264			V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
8265			V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
8266			V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
8267			;;
8268
8269		darwin8.[456]|darwin.[456].*)
8270			#
8271			# Tiger, subsequent to Intel support but prior
8272			# to x86-64 support.  Build libraries and
8273			# executables for 32-bit PowerPC, 64-bit
8274			# PowerPC, and 32-bit x86, with 32-bit PowerPC
8275			# first.  (I'm guessing that's what Apple does.)
8276			#
8277			# (The double brackets are needed because
8278			# autotools/m4 use brackets as a quoting
8279			# character; the double brackets turn into
8280			# single brackets in the generated configure
8281			# file.)
8282			#
8283			V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8284			V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8285			V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8286			V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8287			;;
8288
8289		darwin8.*)
8290			#
8291			# All other Tiger, so subsequent to x86-64
8292			# support.  Build libraries and executables for
8293			# 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
8294			# and x86-64, with 32-bit PowerPC first.  (I'm
8295			# guessing that's what Apple does.)
8296			#
8297			V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8298			V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8299			V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8300			V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8301			;;
8302
8303		darwin9.*)
8304			#
8305			# Leopard.  Build libraries for 32-bit PowerPC,
8306			# 64-bit PowerPC, 32-bit x86, and x86-64, with
8307			# 32-bit PowerPC first, and build executables
8308			# for 32-bit x86 and 32-bit PowerPC, with 32-bit
8309			# x86 first.  (That's what Apple does.)
8310			#
8311			V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8312			V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8313			V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
8314			V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
8315			;;
8316
8317		darwin10.*)
8318			#
8319			# Snow Leopard.  Build libraries for x86-64,
8320			# 32-bit x86, and 32-bit PowerPC, with x86-64
8321			# first, and build executables for x86-64 and
8322			# 32-bit x86, with x86-64 first.  (That's what
8323			# Apple does, even though Snow Leopard doesn't
8324			# run on PPC, so PPC libpcap runs under Rosetta,
8325			# and Rosetta doesn't support BPF ioctls, so PPC
8326			# programs can't do live captures.)
8327			#
8328			V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
8329			V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
8330			V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
8331			V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
8332			;;
8333
8334		darwin*)
8335			#
8336			# Post-Snow Leopard.  Build libraries for x86-64
8337			# and 32-bit x86, with x86-64 first, and build
8338			# executables only for x86-64.  (That's what
8339			# Apple does.)  This requires no special flags
8340			# for programs.
8341			# XXX - update if and when Apple drops support
8342			# for 32-bit x86 code and if and when Apple adds
8343			# ARM-based Macs.  (You're on your own for iOS
8344			# etc.)
8345			#
8346			# XXX - check whether we *can* build for
8347			# i386 and, if not, suggest that the user
8348			# install the /usr/include headers if they
8349			# want to build fat.
8350			#
8351			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building for 32-bit x86 is supported" >&5
8352$as_echo_n "checking whether building for 32-bit x86 is supported... " >&6; }
8353			save_CFLAGS="$CFLAGS"
8354			CFLAGS="$CFLAGS -arch i386"
8355			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356/* end confdefs.h.  */
8357
8358int
8359main ()
8360{
8361return 0;
8362  ;
8363  return 0;
8364}
8365_ACEOF
8366if ac_fn_c_try_compile "$LINENO"; then :
8367
8368				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8369$as_echo "yes" >&6; }
8370				V_LIB_CCOPT_FAT="-arch x86_64 -arch i386"
8371				V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386"
8372
8373else
8374
8375				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
8377				V_LIB_CCOPT_FAT="-arch x86_64"
8378				V_LIB_LDFLAGS_FAT="-arch x86_64"
8379				case "$host_os" in
8380
8381				darwin18.*)
8382					#
8383					# Mojave; you need to install the
8384					# /usr/include headers to get
8385					# 32-bit x86 builds to work.
8386					#
8387					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after that, installing the /usr/include headers from the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package" >&5
8388$as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after that, installing the /usr/include headers from the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package" >&2;}
8389					;;
8390
8391				*)
8392					#
8393					# Pre-Mojave; the command-line
8394					# tools should be sufficient to
8395					# enable 32-bit x86 builds.
8396					#
8397					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&5
8398$as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&2;}
8399					;;
8400				esac
8401
8402fi
8403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404			CFLAGS="$save_CFLAGS"
8405			;;
8406		esac
8407	fi
8408	;;
8409
8410hpux9*)
8411
8412$as_echo "#define HAVE_HPUX9 1" >>confdefs.h
8413
8414
8415	#
8416	# Use System V conventions for man pages.
8417	#
8418	MAN_ADMIN_COMMANDS=1m
8419	MAN_FILE_FORMATS=4
8420	MAN_MISC_INFO=5
8421	;;
8422
8423hpux10.0*)
8424
8425	#
8426	# Use System V conventions for man pages.
8427	#
8428	MAN_ADMIN_COMMANDS=1m
8429	MAN_FILE_FORMATS=4
8430	MAN_MISC_INFO=5
8431	;;
8432
8433hpux10.1*)
8434
8435	#
8436	# Use System V conventions for man pages.
8437	#
8438	MAN_ADMIN_COMMANDS=1m
8439	MAN_FILE_FORMATS=4
8440	MAN_MISC_INFO=5
8441	;;
8442
8443hpux*)
8444
8445$as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
8446
8447	if test "`uname -m`" = "ia64"; then
8448		DYEXT="so"
8449	else
8450		DYEXT="sl"
8451	fi
8452
8453	#
8454	# "-b" builds a shared library; "+h" sets the soname.
8455	#
8456	SHLIB_OPT="-b"
8457	SONAME_OPT="+h"
8458
8459	#
8460	# Use System V conventions for man pages.
8461	#
8462	MAN_FILE_FORMATS=4
8463	MAN_MISC_INFO=5
8464	;;
8465
8466irix*)
8467	#
8468	# Use IRIX conventions for man pages; they're the same as the
8469	# System V conventions, except that they use section 8 for
8470	# administrative commands and daemons.
8471	#
8472	MAN_FILE_FORMATS=4
8473	MAN_MISC_INFO=5
8474	;;
8475
8476linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*|midipix*)
8477	DYEXT="so"
8478
8479	#
8480	# Compiler assumed to be GCC; run-time linker may require a -R
8481	# flag.
8482	#
8483	if test "$libdir" != "/usr/lib"; then
8484		V_RFLAGS=-Wl,-R$libdir
8485	fi
8486	;;
8487
8488osf*)
8489	DYEXT="so"
8490
8491	#
8492	# DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
8493	# Use Tru64 UNIX conventions for man pages; they're the same as
8494	# the System V conventions except that they use section 8 for
8495	# administrative commands and daemons.
8496	#
8497	MAN_FILE_FORMATS=4
8498	MAN_MISC_INFO=5
8499	MAN_DEVICES=7
8500	;;
8501
8502sinix*)
8503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
8504$as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
8505	if ${ac_cv_cc_sinix_defined+:} false; then :
8506  $as_echo_n "(cached) " >&6
8507else
8508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h.  */
8510
8511int
8512main ()
8513{
8514int i = sinix;
8515  ;
8516  return 0;
8517}
8518_ACEOF
8519if ac_fn_c_try_compile "$LINENO"; then :
8520  ac_cv_cc_sinix_defined=yes
8521else
8522  ac_cv_cc_sinix_defined=no
8523fi
8524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525fi
8526
8527	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
8528$as_echo "$ac_cv_cc_sinix_defined" >&6; }
8529	    if test $ac_cv_cc_sinix_defined = no ; then
8530
8531$as_echo "#define sinix 1" >>confdefs.h
8532
8533	    fi
8534	;;
8535
8536solaris*)
8537
8538$as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
8539
8540
8541	DYEXT="so"
8542
8543	#
8544	# Make sure errno is thread-safe, in case we're called in
8545	# a multithreaded program.  We don't guarantee that two
8546	# threads can use the *same* pcap_t safely, but the
8547	# current version does guarantee that you can use different
8548	# pcap_t's in different threads, and even that pcap_compile()
8549	# is thread-safe (it wasn't thread-safe in some older versions).
8550	#
8551	V_CCOPT="$V_CCOPT -D_TS_ERRNO"
8552
8553	case "`uname -r`" in
8554
8555	5.12)
8556		;;
8557
8558	*)
8559		#
8560		# Use System V conventions for man pages.
8561		#
8562		MAN_ADMIN_COMMANDS=1m
8563		MAN_FILE_FORMATS=4
8564		MAN_MISC_INFO=5
8565		MAN_DEVICES=7D
8566	esac
8567	;;
8568esac
8569
8570# Check whether --enable-shared was given.
8571if test "${enable_shared+set}" = set; then :
8572  enableval=$enable_shared;
8573fi
8574
8575test "x$enable_shared" = "xno" && DYEXT="none"
8576
8577if test -n "$ac_tool_prefix"; then
8578  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8579set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; }
8582if ${ac_cv_prog_RANLIB+:} false; then :
8583  $as_echo_n "(cached) " >&6
8584else
8585  if test -n "$RANLIB"; then
8586  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8587else
8588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589for as_dir in $PATH
8590do
8591  IFS=$as_save_IFS
8592  test -z "$as_dir" && as_dir=.
8593    for ac_exec_ext in '' $ac_executable_extensions; do
8594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8595    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597    break 2
8598  fi
8599done
8600  done
8601IFS=$as_save_IFS
8602
8603fi
8604fi
8605RANLIB=$ac_cv_prog_RANLIB
8606if test -n "$RANLIB"; then
8607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8608$as_echo "$RANLIB" >&6; }
8609else
8610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611$as_echo "no" >&6; }
8612fi
8613
8614
8615fi
8616if test -z "$ac_cv_prog_RANLIB"; then
8617  ac_ct_RANLIB=$RANLIB
8618  # Extract the first word of "ranlib", so it can be a program name with args.
8619set dummy ranlib; ac_word=$2
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
8622if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8623  $as_echo_n "(cached) " >&6
8624else
8625  if test -n "$ac_ct_RANLIB"; then
8626  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8627else
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631  IFS=$as_save_IFS
8632  test -z "$as_dir" && as_dir=.
8633    for ac_exec_ext in '' $ac_executable_extensions; do
8634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635    ac_cv_prog_ac_ct_RANLIB="ranlib"
8636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637    break 2
8638  fi
8639done
8640  done
8641IFS=$as_save_IFS
8642
8643fi
8644fi
8645ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8646if test -n "$ac_ct_RANLIB"; then
8647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8648$as_echo "$ac_ct_RANLIB" >&6; }
8649else
8650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651$as_echo "no" >&6; }
8652fi
8653
8654  if test "x$ac_ct_RANLIB" = x; then
8655    RANLIB=":"
8656  else
8657    case $cross_compiling:$ac_tool_warned in
8658yes:)
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8661ac_tool_warned=yes ;;
8662esac
8663    RANLIB=$ac_ct_RANLIB
8664  fi
8665else
8666  RANLIB="$ac_cv_prog_RANLIB"
8667fi
8668
8669if test -n "$ac_tool_prefix"; then
8670  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8671set dummy ${ac_tool_prefix}ar; ac_word=$2
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673$as_echo_n "checking for $ac_word... " >&6; }
8674if ${ac_cv_prog_AR+:} false; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677  if test -n "$AR"; then
8678  ac_cv_prog_AR="$AR" # Let the user override the test.
8679else
8680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681for as_dir in $PATH
8682do
8683  IFS=$as_save_IFS
8684  test -z "$as_dir" && as_dir=.
8685    for ac_exec_ext in '' $ac_executable_extensions; do
8686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8687    ac_cv_prog_AR="${ac_tool_prefix}ar"
8688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689    break 2
8690  fi
8691done
8692  done
8693IFS=$as_save_IFS
8694
8695fi
8696fi
8697AR=$ac_cv_prog_AR
8698if test -n "$AR"; then
8699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8700$as_echo "$AR" >&6; }
8701else
8702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703$as_echo "no" >&6; }
8704fi
8705
8706
8707fi
8708if test -z "$ac_cv_prog_AR"; then
8709  ac_ct_AR=$AR
8710  # Extract the first word of "ar", so it can be a program name with args.
8711set dummy ar; ac_word=$2
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713$as_echo_n "checking for $ac_word... " >&6; }
8714if ${ac_cv_prog_ac_ct_AR+:} false; then :
8715  $as_echo_n "(cached) " >&6
8716else
8717  if test -n "$ac_ct_AR"; then
8718  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8719else
8720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721for as_dir in $PATH
8722do
8723  IFS=$as_save_IFS
8724  test -z "$as_dir" && as_dir=.
8725    for ac_exec_ext in '' $ac_executable_extensions; do
8726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727    ac_cv_prog_ac_ct_AR="ar"
8728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8729    break 2
8730  fi
8731done
8732  done
8733IFS=$as_save_IFS
8734
8735fi
8736fi
8737ac_ct_AR=$ac_cv_prog_ac_ct_AR
8738if test -n "$ac_ct_AR"; then
8739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8740$as_echo "$ac_ct_AR" >&6; }
8741else
8742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743$as_echo "no" >&6; }
8744fi
8745
8746  if test "x$ac_ct_AR" = x; then
8747    AR=""
8748  else
8749    case $cross_compiling:$ac_tool_warned in
8750yes:)
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8753ac_tool_warned=yes ;;
8754esac
8755    AR=$ac_ct_AR
8756  fi
8757else
8758  AR="$ac_cv_prog_AR"
8759fi
8760
8761
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8763$as_echo_n "checking whether ln -s works... " >&6; }
8764LN_S=$as_ln_s
8765if test "$LN_S" = "ln -s"; then
8766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8767$as_echo "yes" >&6; }
8768else
8769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8770$as_echo "no, using $LN_S" >&6; }
8771fi
8772
8773
8774
8775rm -f os-proto.h
8776    if test "${LBL_CFLAGS+set}" = set; then
8777	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8778    fi
8779    if test -f .devel ; then
8780	    #
8781	    # Skip all the warning option stuff on some compilers.
8782	    #
8783	    if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
8784
8785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
8786$as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
8787	save_CFLAGS="$CFLAGS"
8788	CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
8789	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790/* end confdefs.h.  */
8791
8792int
8793main ()
8794{
8795return 0
8796  ;
8797  return 0;
8798}
8799_ACEOF
8800if ac_fn_c_try_compile "$LINENO"; then :
8801
8802		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803$as_echo "no" >&6; }
8804		#
8805		# We're assuming this is clang, where
8806		# -Werror=unknown-warning-option is the appropriate
8807		# option to force the compiler to fail.
8808		#
8809		ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
8810
8811else
8812
8813		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8814$as_echo "yes" >&6; }
8815
8816fi
8817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818	CFLAGS="$save_CFLAGS"
8819
8820
8821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
8822$as_echo_n "checking whether the compiler supports the -W option... " >&6; }
8823	save_CFLAGS="$CFLAGS"
8824	if expr "x-W" : "x-W.*" >/dev/null
8825	then
8826	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
8827	elif expr "x-W" : "x-f.*" >/dev/null
8828	then
8829	    CFLAGS="$CFLAGS -Werror -W"
8830	elif expr "x-W" : "x-m.*" >/dev/null
8831	then
8832	    CFLAGS="$CFLAGS -Werror -W"
8833	else
8834	    CFLAGS="$CFLAGS -W"
8835	fi
8836	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837/* end confdefs.h.  */
8838
8839int
8840main ()
8841{
8842return 0
8843  ;
8844  return 0;
8845}
8846_ACEOF
8847if ac_fn_c_try_compile "$LINENO"; then :
8848
8849		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8850$as_echo "yes" >&6; }
8851		can_add_to_cflags=yes
8852		#
8853		# The compile supports this; do we have some C code for
8854		# which the warning should *not* appear?
8855		# We test the fourth argument because the third argument
8856		# could contain quotes, breaking the test.
8857		#
8858		if test "x" != "x"
8859		then
8860		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8861		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5
8862$as_echo_n "checking whether -W ... " >&6; }
8863		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864/* end confdefs.h.  */
8865
8866_ACEOF
8867if ac_fn_c_try_compile "$LINENO"; then :
8868
8869			#
8870			# Not a problem.
8871			#
8872			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873$as_echo "no" >&6; }
8874
8875else
8876
8877			#
8878			# A problem.
8879			#
8880			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8881$as_echo "yes" >&6; }
8882			can_add_to_cflags=no
8883
8884fi
8885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886		fi
8887		CFLAGS="$save_CFLAGS"
8888		if test x"$can_add_to_cflags" = "xyes"
8889		then
8890		    V_CCOPT="$V_CCOPT -W"
8891		fi
8892
8893else
8894
8895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896$as_echo "no" >&6; }
8897		CFLAGS="$save_CFLAGS"
8898
8899fi
8900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901
8902
8903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
8904$as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
8905	save_CFLAGS="$CFLAGS"
8906	if expr "x-Wall" : "x-W.*" >/dev/null
8907	then
8908	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
8909	elif expr "x-Wall" : "x-f.*" >/dev/null
8910	then
8911	    CFLAGS="$CFLAGS -Werror -Wall"
8912	elif expr "x-Wall" : "x-m.*" >/dev/null
8913	then
8914	    CFLAGS="$CFLAGS -Werror -Wall"
8915	else
8916	    CFLAGS="$CFLAGS -Wall"
8917	fi
8918	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h.  */
8920
8921int
8922main ()
8923{
8924return 0
8925  ;
8926  return 0;
8927}
8928_ACEOF
8929if ac_fn_c_try_compile "$LINENO"; then :
8930
8931		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8932$as_echo "yes" >&6; }
8933		can_add_to_cflags=yes
8934		#
8935		# The compile supports this; do we have some C code for
8936		# which the warning should *not* appear?
8937		# We test the fourth argument because the third argument
8938		# could contain quotes, breaking the test.
8939		#
8940		if test "x" != "x"
8941		then
8942		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8943		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
8944$as_echo_n "checking whether -Wall ... " >&6; }
8945		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946/* end confdefs.h.  */
8947
8948_ACEOF
8949if ac_fn_c_try_compile "$LINENO"; then :
8950
8951			#
8952			# Not a problem.
8953			#
8954			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955$as_echo "no" >&6; }
8956
8957else
8958
8959			#
8960			# A problem.
8961			#
8962			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8963$as_echo "yes" >&6; }
8964			can_add_to_cflags=no
8965
8966fi
8967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968		fi
8969		CFLAGS="$save_CFLAGS"
8970		if test x"$can_add_to_cflags" = "xyes"
8971		then
8972		    V_CCOPT="$V_CCOPT -Wall"
8973		fi
8974
8975else
8976
8977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978$as_echo "no" >&6; }
8979		CFLAGS="$save_CFLAGS"
8980
8981fi
8982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983
8984
8985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
8986$as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
8987	save_CFLAGS="$CFLAGS"
8988	if expr "x-Wcomma" : "x-W.*" >/dev/null
8989	then
8990	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma"
8991	elif expr "x-Wcomma" : "x-f.*" >/dev/null
8992	then
8993	    CFLAGS="$CFLAGS -Werror -Wcomma"
8994	elif expr "x-Wcomma" : "x-m.*" >/dev/null
8995	then
8996	    CFLAGS="$CFLAGS -Werror -Wcomma"
8997	else
8998	    CFLAGS="$CFLAGS -Wcomma"
8999	fi
9000	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002
9003int
9004main ()
9005{
9006return 0
9007  ;
9008  return 0;
9009}
9010_ACEOF
9011if ac_fn_c_try_compile "$LINENO"; then :
9012
9013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9014$as_echo "yes" >&6; }
9015		can_add_to_cflags=yes
9016		#
9017		# The compile supports this; do we have some C code for
9018		# which the warning should *not* appear?
9019		# We test the fourth argument because the third argument
9020		# could contain quotes, breaking the test.
9021		#
9022		if test "x" != "x"
9023		then
9024		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9025		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
9026$as_echo_n "checking whether -Wcomma ... " >&6; }
9027		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028/* end confdefs.h.  */
9029
9030_ACEOF
9031if ac_fn_c_try_compile "$LINENO"; then :
9032
9033			#
9034			# Not a problem.
9035			#
9036			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037$as_echo "no" >&6; }
9038
9039else
9040
9041			#
9042			# A problem.
9043			#
9044			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9045$as_echo "yes" >&6; }
9046			can_add_to_cflags=no
9047
9048fi
9049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050		fi
9051		CFLAGS="$save_CFLAGS"
9052		if test x"$can_add_to_cflags" = "xyes"
9053		then
9054		    V_CCOPT="$V_CCOPT -Wcomma"
9055		fi
9056
9057else
9058
9059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060$as_echo "no" >&6; }
9061		CFLAGS="$save_CFLAGS"
9062
9063fi
9064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065
9066
9067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
9068$as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
9069	save_CFLAGS="$CFLAGS"
9070	if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
9071	then
9072	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
9073	elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
9074	then
9075	    CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
9076	elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
9077	then
9078	    CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
9079	else
9080	    CFLAGS="$CFLAGS -Wdeclaration-after-statement"
9081	fi
9082	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h.  */
9084
9085int
9086main ()
9087{
9088return 0
9089  ;
9090  return 0;
9091}
9092_ACEOF
9093if ac_fn_c_try_compile "$LINENO"; then :
9094
9095		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9096$as_echo "yes" >&6; }
9097		can_add_to_cflags=yes
9098		#
9099		# The compile supports this; do we have some C code for
9100		# which the warning should *not* appear?
9101		# We test the fourth argument because the third argument
9102		# could contain quotes, breaking the test.
9103		#
9104		if test "x" != "x"
9105		then
9106		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9107		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdeclaration-after-statement " >&5
9108$as_echo_n "checking whether -Wdeclaration-after-statement ... " >&6; }
9109		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110/* end confdefs.h.  */
9111
9112_ACEOF
9113if ac_fn_c_try_compile "$LINENO"; then :
9114
9115			#
9116			# Not a problem.
9117			#
9118			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119$as_echo "no" >&6; }
9120
9121else
9122
9123			#
9124			# A problem.
9125			#
9126			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9127$as_echo "yes" >&6; }
9128			can_add_to_cflags=no
9129
9130fi
9131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9132		fi
9133		CFLAGS="$save_CFLAGS"
9134		if test x"$can_add_to_cflags" = "xyes"
9135		then
9136		    V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
9137		fi
9138
9139else
9140
9141		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142$as_echo "no" >&6; }
9143		CFLAGS="$save_CFLAGS"
9144
9145fi
9146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147
9148
9149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
9150$as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
9151	save_CFLAGS="$CFLAGS"
9152	if expr "x-Wdocumentation" : "x-W.*" >/dev/null
9153	then
9154	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation"
9155	elif expr "x-Wdocumentation" : "x-f.*" >/dev/null
9156	then
9157	    CFLAGS="$CFLAGS -Werror -Wdocumentation"
9158	elif expr "x-Wdocumentation" : "x-m.*" >/dev/null
9159	then
9160	    CFLAGS="$CFLAGS -Werror -Wdocumentation"
9161	else
9162	    CFLAGS="$CFLAGS -Wdocumentation"
9163	fi
9164	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h.  */
9166
9167int
9168main ()
9169{
9170return 0
9171  ;
9172  return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_compile "$LINENO"; then :
9176
9177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9178$as_echo "yes" >&6; }
9179		can_add_to_cflags=yes
9180		#
9181		# The compile supports this; do we have some C code for
9182		# which the warning should *not* appear?
9183		# We test the fourth argument because the third argument
9184		# could contain quotes, breaking the test.
9185		#
9186		if test "x" != "x"
9187		then
9188		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9189		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
9190$as_echo_n "checking whether -Wdocumentation ... " >&6; }
9191		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193
9194_ACEOF
9195if ac_fn_c_try_compile "$LINENO"; then :
9196
9197			#
9198			# Not a problem.
9199			#
9200			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201$as_echo "no" >&6; }
9202
9203else
9204
9205			#
9206			# A problem.
9207			#
9208			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9209$as_echo "yes" >&6; }
9210			can_add_to_cflags=no
9211
9212fi
9213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214		fi
9215		CFLAGS="$save_CFLAGS"
9216		if test x"$can_add_to_cflags" = "xyes"
9217		then
9218		    V_CCOPT="$V_CCOPT -Wdocumentation"
9219		fi
9220
9221else
9222
9223		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224$as_echo "no" >&6; }
9225		CFLAGS="$save_CFLAGS"
9226
9227fi
9228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229
9230
9231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
9232$as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
9233	save_CFLAGS="$CFLAGS"
9234	if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null
9235	then
9236	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral"
9237	elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null
9238	then
9239	    CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9240	elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null
9241	then
9242	    CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9243	else
9244	    CFLAGS="$CFLAGS -Wformat-nonliteral"
9245	fi
9246	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247/* end confdefs.h.  */
9248
9249int
9250main ()
9251{
9252return 0
9253  ;
9254  return 0;
9255}
9256_ACEOF
9257if ac_fn_c_try_compile "$LINENO"; then :
9258
9259		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9260$as_echo "yes" >&6; }
9261		can_add_to_cflags=yes
9262		#
9263		# The compile supports this; do we have some C code for
9264		# which the warning should *not* appear?
9265		# We test the fourth argument because the third argument
9266		# could contain quotes, breaking the test.
9267		#
9268		if test "x" != "x"
9269		then
9270		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9271		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
9272$as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
9273		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274/* end confdefs.h.  */
9275
9276_ACEOF
9277if ac_fn_c_try_compile "$LINENO"; then :
9278
9279			#
9280			# Not a problem.
9281			#
9282			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283$as_echo "no" >&6; }
9284
9285else
9286
9287			#
9288			# A problem.
9289			#
9290			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9291$as_echo "yes" >&6; }
9292			can_add_to_cflags=no
9293
9294fi
9295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296		fi
9297		CFLAGS="$save_CFLAGS"
9298		if test x"$can_add_to_cflags" = "xyes"
9299		then
9300		    V_CCOPT="$V_CCOPT -Wformat-nonliteral"
9301		fi
9302
9303else
9304
9305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306$as_echo "no" >&6; }
9307		CFLAGS="$save_CFLAGS"
9308
9309fi
9310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311
9312
9313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
9314$as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
9315	save_CFLAGS="$CFLAGS"
9316	if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null
9317	then
9318	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn"
9319	elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null
9320	then
9321	    CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9322	elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null
9323	then
9324	    CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9325	else
9326	    CFLAGS="$CFLAGS -Wmissing-noreturn"
9327	fi
9328	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329/* end confdefs.h.  */
9330
9331int
9332main ()
9333{
9334return 0
9335  ;
9336  return 0;
9337}
9338_ACEOF
9339if ac_fn_c_try_compile "$LINENO"; then :
9340
9341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9342$as_echo "yes" >&6; }
9343		can_add_to_cflags=yes
9344		#
9345		# The compile supports this; do we have some C code for
9346		# which the warning should *not* appear?
9347		# We test the fourth argument because the third argument
9348		# could contain quotes, breaking the test.
9349		#
9350		if test "x" != "x"
9351		then
9352		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9353		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
9354$as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
9355		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356/* end confdefs.h.  */
9357
9358_ACEOF
9359if ac_fn_c_try_compile "$LINENO"; then :
9360
9361			#
9362			# Not a problem.
9363			#
9364			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365$as_echo "no" >&6; }
9366
9367else
9368
9369			#
9370			# A problem.
9371			#
9372			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9373$as_echo "yes" >&6; }
9374			can_add_to_cflags=no
9375
9376fi
9377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378		fi
9379		CFLAGS="$save_CFLAGS"
9380		if test x"$can_add_to_cflags" = "xyes"
9381		then
9382		    V_CCOPT="$V_CCOPT -Wmissing-noreturn"
9383		fi
9384
9385else
9386
9387		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388$as_echo "no" >&6; }
9389		CFLAGS="$save_CFLAGS"
9390
9391fi
9392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9393
9394
9395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
9396$as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
9397	save_CFLAGS="$CFLAGS"
9398	if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
9399	then
9400	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
9401	elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
9402	then
9403	    CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9404	elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
9405	then
9406	    CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9407	else
9408	    CFLAGS="$CFLAGS -Wmissing-prototypes"
9409	fi
9410	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411/* end confdefs.h.  */
9412
9413int
9414main ()
9415{
9416return 0
9417  ;
9418  return 0;
9419}
9420_ACEOF
9421if ac_fn_c_try_compile "$LINENO"; then :
9422
9423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9424$as_echo "yes" >&6; }
9425		can_add_to_cflags=yes
9426		#
9427		# The compile supports this; do we have some C code for
9428		# which the warning should *not* appear?
9429		# We test the fourth argument because the third argument
9430		# could contain quotes, breaking the test.
9431		#
9432		if test "x" != "x"
9433		then
9434		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9435		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
9436$as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
9437		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439
9440_ACEOF
9441if ac_fn_c_try_compile "$LINENO"; then :
9442
9443			#
9444			# Not a problem.
9445			#
9446			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447$as_echo "no" >&6; }
9448
9449else
9450
9451			#
9452			# A problem.
9453			#
9454			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9455$as_echo "yes" >&6; }
9456			can_add_to_cflags=no
9457
9458fi
9459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460		fi
9461		CFLAGS="$save_CFLAGS"
9462		if test x"$can_add_to_cflags" = "xyes"
9463		then
9464		    V_CCOPT="$V_CCOPT -Wmissing-prototypes"
9465		fi
9466
9467else
9468
9469		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470$as_echo "no" >&6; }
9471		CFLAGS="$save_CFLAGS"
9472
9473fi
9474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475
9476
9477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
9478$as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
9479	save_CFLAGS="$CFLAGS"
9480	if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null
9481	then
9482	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations"
9483	elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null
9484	then
9485	    CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9486	elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null
9487	then
9488	    CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9489	else
9490	    CFLAGS="$CFLAGS -Wmissing-variable-declarations"
9491	fi
9492	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493/* end confdefs.h.  */
9494
9495int
9496main ()
9497{
9498return 0
9499  ;
9500  return 0;
9501}
9502_ACEOF
9503if ac_fn_c_try_compile "$LINENO"; then :
9504
9505		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9506$as_echo "yes" >&6; }
9507		can_add_to_cflags=yes
9508		#
9509		# The compile supports this; do we have some C code for
9510		# which the warning should *not* appear?
9511		# We test the fourth argument because the third argument
9512		# could contain quotes, breaking the test.
9513		#
9514		if test "x" != "x"
9515		then
9516		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9517		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
9518$as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
9519		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520/* end confdefs.h.  */
9521
9522_ACEOF
9523if ac_fn_c_try_compile "$LINENO"; then :
9524
9525			#
9526			# Not a problem.
9527			#
9528			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529$as_echo "no" >&6; }
9530
9531else
9532
9533			#
9534			# A problem.
9535			#
9536			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9537$as_echo "yes" >&6; }
9538			can_add_to_cflags=no
9539
9540fi
9541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542		fi
9543		CFLAGS="$save_CFLAGS"
9544		if test x"$can_add_to_cflags" = "xyes"
9545		then
9546		    V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
9547		fi
9548
9549else
9550
9551		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552$as_echo "no" >&6; }
9553		CFLAGS="$save_CFLAGS"
9554
9555fi
9556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557
9558
9559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
9560$as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
9561	save_CFLAGS="$CFLAGS"
9562	if expr "x-Wshadow" : "x-W.*" >/dev/null
9563	then
9564	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
9565	elif expr "x-Wshadow" : "x-f.*" >/dev/null
9566	then
9567	    CFLAGS="$CFLAGS -Werror -Wshadow"
9568	elif expr "x-Wshadow" : "x-m.*" >/dev/null
9569	then
9570	    CFLAGS="$CFLAGS -Werror -Wshadow"
9571	else
9572	    CFLAGS="$CFLAGS -Wshadow"
9573	fi
9574	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575/* end confdefs.h.  */
9576
9577int
9578main ()
9579{
9580return 0
9581  ;
9582  return 0;
9583}
9584_ACEOF
9585if ac_fn_c_try_compile "$LINENO"; then :
9586
9587		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9588$as_echo "yes" >&6; }
9589		can_add_to_cflags=yes
9590		#
9591		# The compile supports this; do we have some C code for
9592		# which the warning should *not* appear?
9593		# We test the fourth argument because the third argument
9594		# could contain quotes, breaking the test.
9595		#
9596		if test "x" != "x"
9597		then
9598		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9599		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
9600$as_echo_n "checking whether -Wshadow ... " >&6; }
9601		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602/* end confdefs.h.  */
9603
9604_ACEOF
9605if ac_fn_c_try_compile "$LINENO"; then :
9606
9607			#
9608			# Not a problem.
9609			#
9610			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
9612
9613else
9614
9615			#
9616			# A problem.
9617			#
9618			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9619$as_echo "yes" >&6; }
9620			can_add_to_cflags=no
9621
9622fi
9623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624		fi
9625		CFLAGS="$save_CFLAGS"
9626		if test x"$can_add_to_cflags" = "xyes"
9627		then
9628		    V_CCOPT="$V_CCOPT -Wshadow"
9629		fi
9630
9631else
9632
9633		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634$as_echo "no" >&6; }
9635		CFLAGS="$save_CFLAGS"
9636
9637fi
9638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639
9640
9641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
9642$as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
9643	save_CFLAGS="$CFLAGS"
9644	if expr "x-Wsign-compare" : "x-W.*" >/dev/null
9645	then
9646	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
9647	elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
9648	then
9649	    CFLAGS="$CFLAGS -Werror -Wsign-compare"
9650	elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
9651	then
9652	    CFLAGS="$CFLAGS -Werror -Wsign-compare"
9653	else
9654	    CFLAGS="$CFLAGS -Wsign-compare"
9655	fi
9656	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h.  */
9658
9659int
9660main ()
9661{
9662return 0
9663  ;
9664  return 0;
9665}
9666_ACEOF
9667if ac_fn_c_try_compile "$LINENO"; then :
9668
9669		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9670$as_echo "yes" >&6; }
9671		can_add_to_cflags=yes
9672		#
9673		# The compile supports this; do we have some C code for
9674		# which the warning should *not* appear?
9675		# We test the fourth argument because the third argument
9676		# could contain quotes, breaking the test.
9677		#
9678		if test "x" != "x"
9679		then
9680		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9681		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
9682$as_echo_n "checking whether -Wsign-compare ... " >&6; }
9683		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684/* end confdefs.h.  */
9685
9686_ACEOF
9687if ac_fn_c_try_compile "$LINENO"; then :
9688
9689			#
9690			# Not a problem.
9691			#
9692			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693$as_echo "no" >&6; }
9694
9695else
9696
9697			#
9698			# A problem.
9699			#
9700			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9701$as_echo "yes" >&6; }
9702			can_add_to_cflags=no
9703
9704fi
9705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706		fi
9707		CFLAGS="$save_CFLAGS"
9708		if test x"$can_add_to_cflags" = "xyes"
9709		then
9710		    V_CCOPT="$V_CCOPT -Wsign-compare"
9711		fi
9712
9713else
9714
9715		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9716$as_echo "no" >&6; }
9717		CFLAGS="$save_CFLAGS"
9718
9719fi
9720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721
9722
9723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
9724$as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
9725	save_CFLAGS="$CFLAGS"
9726	if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
9727	then
9728	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
9729	elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
9730	then
9731	    CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9732	elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
9733	then
9734	    CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9735	else
9736	    CFLAGS="$CFLAGS -Wstrict-prototypes"
9737	fi
9738	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h.  */
9740
9741int
9742main ()
9743{
9744return 0
9745  ;
9746  return 0;
9747}
9748_ACEOF
9749if ac_fn_c_try_compile "$LINENO"; then :
9750
9751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9752$as_echo "yes" >&6; }
9753		can_add_to_cflags=yes
9754		#
9755		# The compile supports this; do we have some C code for
9756		# which the warning should *not* appear?
9757		# We test the fourth argument because the third argument
9758		# could contain quotes, breaking the test.
9759		#
9760		if test "x" != "x"
9761		then
9762		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9763		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
9764$as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
9765		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766/* end confdefs.h.  */
9767
9768_ACEOF
9769if ac_fn_c_try_compile "$LINENO"; then :
9770
9771			#
9772			# Not a problem.
9773			#
9774			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775$as_echo "no" >&6; }
9776
9777else
9778
9779			#
9780			# A problem.
9781			#
9782			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9783$as_echo "yes" >&6; }
9784			can_add_to_cflags=no
9785
9786fi
9787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788		fi
9789		CFLAGS="$save_CFLAGS"
9790		if test x"$can_add_to_cflags" = "xyes"
9791		then
9792		    V_CCOPT="$V_CCOPT -Wstrict-prototypes"
9793		fi
9794
9795else
9796
9797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798$as_echo "no" >&6; }
9799		CFLAGS="$save_CFLAGS"
9800
9801fi
9802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803
9804
9805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
9806$as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
9807	save_CFLAGS="$CFLAGS"
9808	if expr "x-Wunused-parameter" : "x-W.*" >/dev/null
9809	then
9810	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter"
9811	elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null
9812	then
9813	    CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9814	elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null
9815	then
9816	    CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9817	else
9818	    CFLAGS="$CFLAGS -Wunused-parameter"
9819	fi
9820	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h.  */
9822
9823int
9824main ()
9825{
9826return 0
9827  ;
9828  return 0;
9829}
9830_ACEOF
9831if ac_fn_c_try_compile "$LINENO"; then :
9832
9833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9834$as_echo "yes" >&6; }
9835		can_add_to_cflags=yes
9836		#
9837		# The compile supports this; do we have some C code for
9838		# which the warning should *not* appear?
9839		# We test the fourth argument because the third argument
9840		# could contain quotes, breaking the test.
9841		#
9842		if test "x" != "x"
9843		then
9844		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9845		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
9846$as_echo_n "checking whether -Wunused-parameter ... " >&6; }
9847		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848/* end confdefs.h.  */
9849
9850_ACEOF
9851if ac_fn_c_try_compile "$LINENO"; then :
9852
9853			#
9854			# Not a problem.
9855			#
9856			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857$as_echo "no" >&6; }
9858
9859else
9860
9861			#
9862			# A problem.
9863			#
9864			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9865$as_echo "yes" >&6; }
9866			can_add_to_cflags=no
9867
9868fi
9869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870		fi
9871		CFLAGS="$save_CFLAGS"
9872		if test x"$can_add_to_cflags" = "xyes"
9873		then
9874		    V_CCOPT="$V_CCOPT -Wunused-parameter"
9875		fi
9876
9877else
9878
9879		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880$as_echo "no" >&6; }
9881		CFLAGS="$save_CFLAGS"
9882
9883fi
9884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885
9886
9887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
9888$as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
9889	save_CFLAGS="$CFLAGS"
9890	if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
9891	then
9892	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
9893	elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
9894	then
9895	    CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9896	elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
9897	then
9898	    CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9899	else
9900	    CFLAGS="$CFLAGS -Wused-but-marked-unused"
9901	fi
9902	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903/* end confdefs.h.  */
9904
9905int
9906main ()
9907{
9908return 0
9909  ;
9910  return 0;
9911}
9912_ACEOF
9913if ac_fn_c_try_compile "$LINENO"; then :
9914
9915		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9916$as_echo "yes" >&6; }
9917		can_add_to_cflags=yes
9918		#
9919		# The compile supports this; do we have some C code for
9920		# which the warning should *not* appear?
9921		# We test the fourth argument because the third argument
9922		# could contain quotes, breaking the test.
9923		#
9924		if test "x" != "x"
9925		then
9926		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9927		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
9928$as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
9929		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930/* end confdefs.h.  */
9931
9932_ACEOF
9933if ac_fn_c_try_compile "$LINENO"; then :
9934
9935			#
9936			# Not a problem.
9937			#
9938			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939$as_echo "no" >&6; }
9940
9941else
9942
9943			#
9944			# A problem.
9945			#
9946			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9947$as_echo "yes" >&6; }
9948			can_add_to_cflags=no
9949
9950fi
9951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952		fi
9953		CFLAGS="$save_CFLAGS"
9954		if test x"$can_add_to_cflags" = "xyes"
9955		then
9956		    V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
9957		fi
9958
9959else
9960
9961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962$as_echo "no" >&6; }
9963		CFLAGS="$save_CFLAGS"
9964
9965fi
9966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967
9968		    # Warns about safeguards added in case the enums are
9969		    # extended
9970		    # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
9971		    #
9972		    # This can cause problems with ntohs(), ntohl(),
9973		    # htons(), and htonl() on some platforms, such
9974		    # as OpenBSD 6.3 with Clang 5.0.1.  I guess the
9975		    # problem is that the macro that ultimately does
9976		    # the byte-swapping involves a conditional
9977		    # expression that tests whether the value being
9978		    # swapped is a compile-time constant or not,
9979		    # using __builtin_constant_p(), and, depending
9980		    # on whether it is, does a compile-time swap or
9981		    # a run-time swap; perhaps the compiler always
9982		    # considers one of the two results of the
9983		    # conditional expressin is never evaluated,
9984		    # because the conditional check is done at
9985		    # compile time, and thus always says "that
9986		    # expression is never executed".
9987		    #
9988		    # (Perhaps there should be a way of flagging
9989		    # an expression that you *want* evaluated at
9990		    # compile time, so that the compiler 1) warns
9991		    # if it *can't* be evaluated at compile time
9992		    # and 2) *doesn't* warn that the true or false
9993		    # branch will never be reached.)
9994		    #
9995
9996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
9997$as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
9998	save_CFLAGS="$CFLAGS"
9999	if expr "x-Wunreachable-code" : "x-W.*" >/dev/null
10000	then
10001	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code"
10002	elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null
10003	then
10004	    CFLAGS="$CFLAGS -Werror -Wunreachable-code"
10005	elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null
10006	then
10007	    CFLAGS="$CFLAGS -Werror -Wunreachable-code"
10008	else
10009	    CFLAGS="$CFLAGS -Wunreachable-code"
10010	fi
10011	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013
10014int
10015main ()
10016{
10017return 0
10018  ;
10019  return 0;
10020}
10021_ACEOF
10022if ac_fn_c_try_compile "$LINENO"; then :
10023
10024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10025$as_echo "yes" >&6; }
10026		can_add_to_cflags=yes
10027		#
10028		# The compile supports this; do we have some C code for
10029		# which the warning should *not* appear?
10030		# We test the fourth argument because the third argument
10031		# could contain quotes, breaking the test.
10032		#
10033		if test "xgenerates warnings from ntohs()" != "x"
10034		then
10035		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10036		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5
10037$as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
10038		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040#include <arpa/inet.h>
10041
10042unsigned short
10043testme(unsigned short a)
10044{
10045	return ntohs(a);
10046}
10047
10048_ACEOF
10049if ac_fn_c_try_compile "$LINENO"; then :
10050
10051			#
10052			# Not a problem.
10053			#
10054			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055$as_echo "no" >&6; }
10056
10057else
10058
10059			#
10060			# A problem.
10061			#
10062			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10063$as_echo "yes" >&6; }
10064			can_add_to_cflags=no
10065
10066fi
10067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068		fi
10069		CFLAGS="$save_CFLAGS"
10070		if test x"$can_add_to_cflags" = "xyes"
10071		then
10072		    V_CCOPT="$V_CCOPT -Wunreachable-code"
10073		fi
10074
10075else
10076
10077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078$as_echo "no" >&6; }
10079		CFLAGS="$save_CFLAGS"
10080
10081fi
10082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083
10084	    fi
10085
10086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
10087$as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
10088	if test "$GCC" = yes ; then
10089		#
10090		# GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
10091		# though it's not); we assume that, in this case, the flag
10092		# would be -M.
10093		#
10094		ac_lbl_dependency_flag="-M"
10095	else
10096		#
10097		# Not GCC or a compiler deemed to be GCC; what platform is
10098		# this?  (We're assuming that if the compiler isn't GCC
10099		# it's the compiler from the vendor of the OS; that won't
10100		# necessarily be true for x86 platforms, where it might be
10101		# the Intel C compiler.)
10102		#
10103		case "$host_os" in
10104
10105		irix*|osf*|darwin*)
10106			#
10107			# MIPS C for IRIX, DEC C, and clang all use -M.
10108			#
10109			ac_lbl_dependency_flag="-M"
10110			;;
10111
10112		solaris*)
10113			#
10114			# Sun C uses -xM.
10115			#
10116			ac_lbl_dependency_flag="-xM"
10117			;;
10118
10119		hpux*)
10120			#
10121			# HP's older C compilers don't support this.
10122			# HP's newer C compilers support this with
10123			# either +M or +Make; the older compilers
10124			# interpret +M as something completely
10125			# different, so we use +Make so we don't
10126			# think it works with the older compilers.
10127			#
10128			ac_lbl_dependency_flag="+Make"
10129			;;
10130
10131		*)
10132			#
10133			# Not one of the above; assume no support for
10134			# generating dependencies.
10135			#
10136			ac_lbl_dependency_flag=""
10137			;;
10138		esac
10139	fi
10140
10141	#
10142	# Is ac_lbl_dependency_flag defined and, if so, does the compiler
10143	# complain about it?
10144	#
10145	# Note: clang doesn't seem to exit with an error status when handed
10146	# an unknown non-warning error, even if you pass it
10147	# -Werror=unknown-warning-option.  However, it always supports
10148	# -M, so the fact that this test always succeeds with clang
10149	# isn't an issue.
10150	#
10151	if test ! -z "$ac_lbl_dependency_flag"; then
10152		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154int main(void) { return 0; }
10155_ACEOF
10156		if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
10157  (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
10158  ac_status=$?
10159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10160  test $ac_status = 0; }; then
10161			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
10162$as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
10163			DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
10164			MKDEP='${srcdir}/mkdep'
10165		else
10166			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167$as_echo "no" >&6; }
10168			#
10169			# We can't run mkdep, so have "make depend" do
10170			# nothing.
10171			#
10172			MKDEP='${srcdir}/nomkdep'
10173		fi
10174		rm -rf conftest*
10175	else
10176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177$as_echo "no" >&6; }
10178		#
10179		# We can't run mkdep, so have "make depend" do
10180		# nothing.
10181		#
10182		MKDEP='${srcdir}/nomkdep'
10183	fi
10184
10185
10186
10187	    #
10188	    # We used to set -n32 for IRIX 6 when not using GCC (presumed
10189	    # to mean that we're using MIPS C or MIPSpro C); it specified
10190	    # the "new" faster 32-bit ABI, introduced in IRIX 6.2.  I'm
10191	    # not sure why that would be something to do *only* with a
10192	    # .devel file; why should the ABI for which we produce code
10193	    # depend on .devel?
10194	    #
10195	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10196	    name="lbl/os-$os.h"
10197	    if test -f $name ; then
10198		    ln -s $name os-proto.h
10199
10200$as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
10201
10202	    else
10203		    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
10204$as_echo "$as_me: WARNING: can't find $name" >&2;}
10205	    fi
10206    fi
10207
10208#
10209# Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
10210#
10211ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
10212	#include <sys/types.h>
10213	#include <sys/socket.h>
10214
10215"
10216if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10217
10218cat >>confdefs.h <<_ACEOF
10219#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10220_ACEOF
10221
10222
10223fi
10224
10225
10226#
10227# Check to see if there's a sockaddr_storage structure.
10228#
10229ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10230	#include <sys/types.h>
10231	#include <sys/socket.h>
10232
10233"
10234if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10235
10236cat >>confdefs.h <<_ACEOF
10237#define HAVE_STRUCT_SOCKADDR_STORAGE 1
10238_ACEOF
10239
10240
10241fi
10242
10243
10244#
10245# Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
10246# dl_module_id_1 member.
10247#
10248# NOTE: any failure means we conclude that it doesn't have that member,
10249# so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
10250# have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
10251# it doesn't have that member (which is OK, as either we won't be
10252# using code that would use that member, or we wouldn't compile in
10253# any case).
10254#
10255ac_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" "
10256	#include <sys/types.h>
10257	#include <sys/dlpi.h>
10258	#include <sys/dlpi_ext.h>
10259
10260"
10261if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
10262
10263cat >>confdefs.h <<_ACEOF
10264#define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10265_ACEOF
10266
10267
10268fi
10269
10270
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
10272$as_echo_n "checking if unaligned accesses fail... " >&6; }
10273    if ${ac_cv_lbl_unaligned_fail+:} false; then :
10274  $as_echo_n "(cached) " >&6
10275else
10276  case "$host_cpu" in
10277
10278	#
10279	# These are CPU types where:
10280	#
10281	#	the CPU faults on an unaligned access, but at least some
10282	#	OSes that support that CPU catch the fault and simulate
10283	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10284	#	the simulation is slow, so we don't want to use it;
10285	#
10286	#	the CPU, I infer (from the old
10287	#
10288	# XXX: should also check that they don't do weird things (like on arm)
10289	#
10290	#	comment) doesn't fault on unaligned accesses, but doesn't
10291	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
10292	#
10293	#	for whatever reason, the test program doesn't work
10294	#	(this has been claimed to be the case for several of those
10295	#	CPUs - I don't know what the problem is; the problem
10296	#	was reported as "the test program dumps core" for SuperH,
10297	#	but that's what the test program is *supposed* to do -
10298	#	it dumps core before it writes anything, so the test
10299	#	for an empty output file should find an empty output
10300	#	file and conclude that unaligned accesses don't work).
10301	#
10302	# This run-time test won't work if you're cross-compiling, so
10303	# in order to support cross-compiling for a particular CPU,
10304	# we have to wire in the list of CPU types anyway, as far as
10305	# I know, so perhaps we should just have a set of CPUs on
10306	# which we know it doesn't work, a set of CPUs on which we
10307	# know it does work, and have the script just fail on other
10308	# cpu types and update it when such a failure occurs.
10309	#
10310	alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10311		ac_cv_lbl_unaligned_fail=yes
10312		;;
10313
10314	*)
10315		cat >conftest.c <<EOF
10316#		include <sys/types.h>
10317#		include <sys/wait.h>
10318#		include <stdio.h>
10319		unsigned char a[5] = { 1, 2, 3, 4, 5 };
10320		main() {
10321		unsigned int i;
10322		pid_t pid;
10323		int status;
10324		/* avoid "core dumped" message */
10325		pid = fork();
10326		if (pid <  0)
10327			exit(2);
10328		if (pid > 0) {
10329			/* parent */
10330			pid = waitpid(pid, &status, 0);
10331			if (pid < 0)
10332				exit(3);
10333			exit(!WIFEXITED(status));
10334		}
10335		/* child */
10336		i = *(unsigned int *)&a[1];
10337		printf("%d\n", i);
10338		exit(0);
10339		}
10340EOF
10341		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10342		    conftest.c $LIBS >/dev/null 2>&1
10343		if test ! -x conftest ; then
10344						ac_cv_lbl_unaligned_fail=yes
10345		else
10346			./conftest >conftest.out
10347			if test ! -s conftest.out ; then
10348				ac_cv_lbl_unaligned_fail=yes
10349			else
10350				ac_cv_lbl_unaligned_fail=no
10351			fi
10352		fi
10353		rm -f -r conftest* core core.conftest
10354		;;
10355	esac
10356fi
10357
10358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
10359$as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
10360    if test $ac_cv_lbl_unaligned_fail = yes ; then
10361
10362$as_echo "#define LBL_ALIGN 1" >>confdefs.h
10363
10364    fi
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396# Check whether --enable-usb was given.
10397if test "${enable_usb+set}" = set; then :
10398  enableval=$enable_usb;
10399else
10400  enable_usb=yes
10401fi
10402
10403
10404if test "xxx_only" = yes; then
10405	# User requested something-else-only pcap, so they don't
10406	# want USB support.
10407	enable_usb=no
10408fi
10409
10410if test "x$enable_usb" != "xno" ; then
10411      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
10412$as_echo_n "checking for USB sniffing support... " >&6; }
10413   case "$host_os" in
10414   linux*)
10415
10416$as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
10417
10418	USB_SRC=pcap-usb-linux.c
10419	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10420$as_echo "yes" >&6; }
10421	ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10422	if test $? -ne 0 ; then
10423	  ac_usb_dev_name="usbmon"
10424	fi
10425
10426cat >>confdefs.h <<_ACEOF
10427#define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10428_ACEOF
10429
10430	{ $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10431$as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10432	#
10433	# Do we have a version of <linux/compiler.h> available?
10434	# If so, we might need it for <linux/usbdevice_fs.h>.
10435	#
10436	for ac_header in linux/compiler.h
10437do :
10438  ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
10439if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
10440  cat >>confdefs.h <<_ACEOF
10441#define HAVE_LINUX_COMPILER_H 1
10442_ACEOF
10443
10444fi
10445
10446done
10447
10448	if test "$ac_cv_header_linux_compiler_h" = yes; then
10449	  #
10450	  # Yes - include it when testing for <linux/usbdevice_fs.h>.
10451	  #
10452	  for ac_header in linux/usbdevice_fs.h
10453do :
10454  ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
10455"
10456if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10457  cat >>confdefs.h <<_ACEOF
10458#define HAVE_LINUX_USBDEVICE_FS_H 1
10459_ACEOF
10460
10461fi
10462
10463done
10464
10465	else
10466	  for ac_header in linux/usbdevice_fs.h
10467do :
10468  ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
10469if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10470  cat >>confdefs.h <<_ACEOF
10471#define HAVE_LINUX_USBDEVICE_FS_H 1
10472_ACEOF
10473
10474fi
10475
10476done
10477
10478	fi
10479	if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10480	  #
10481	  # OK, does it define bRequestType?  Older versions of the kernel
10482	  # define fields with names like "requesttype, "request", and
10483	  # "value", rather than "bRequestType", "bRequest", and
10484	  # "wValue".
10485	  #
10486	  ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
10487		  $ac_includes_default
10488		  #ifdef HAVE_LINUX_COMPILER_H
10489		  #include <linux/compiler.h>
10490		  #endif
10491		  #include <linux/usbdevice_fs.h>
10492
10493"
10494if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
10495
10496cat >>confdefs.h <<_ACEOF
10497#define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10498_ACEOF
10499
10500
10501fi
10502
10503	fi
10504	;;
10505    freebsd*)
10506	#
10507	# This just uses BPF in FreeBSD 8.4 and later; we don't need
10508	# to check for anything special for capturing.
10509	#
10510	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
10511$as_echo "yes, in FreeBSD 8.4 and later" >&6; }
10512	;;
10513
10514    *)
10515	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516$as_echo "no" >&6; }
10517	;;
10518esac
10519fi
10520
10521
10522
10523if test "xxx_only" != yes; then
10524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
10525$as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
10526	case "$host_os" in
10527	linux*)
10528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10529$as_echo "yes" >&6; }
10530		#
10531		# Life's too short to deal with trying to get this to compile
10532		# if you don't get the right types defined with
10533		# __KERNEL_STRICT_NAMES getting defined by some other include.
10534		#
10535		# Check whether the includes Just Work.  If not, don't turn on
10536		# netfilter support.
10537		#
10538		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
10539$as_echo_n "checking whether we can compile the netfilter support... " >&6; }
10540		if ${ac_cv_netfilter_can_compile+:} false; then :
10541  $as_echo_n "(cached) " >&6
10542else
10543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545
10546$ac_includes_default
10547#include <sys/socket.h>
10548#include <netinet/in.h>
10549#include <linux/types.h>
10550
10551#include <linux/netlink.h>
10552#include <linux/netfilter.h>
10553#include <linux/netfilter/nfnetlink.h>
10554#include <linux/netfilter/nfnetlink_log.h>
10555#include <linux/netfilter/nfnetlink_queue.h>
10556int
10557main ()
10558{
10559
10560  ;
10561  return 0;
10562}
10563_ACEOF
10564if ac_fn_c_try_compile "$LINENO"; then :
10565  ac_cv_netfilter_can_compile=yes
10566else
10567  ac_cv_netfilter_can_compile=no
10568fi
10569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570fi
10571
10572		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
10573$as_echo "$ac_cv_netfilter_can_compile" >&6; }
10574		if test $ac_cv_netfilter_can_compile = yes ; then
10575
10576$as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
10577
10578		  NETFILTER_SRC=pcap-netfilter-linux.c
10579		fi
10580		;;
10581	*)
10582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583$as_echo "no" >&6; }
10584		;;
10585	esac
10586fi
10587
10588
10589
10590# Check whether --enable-netmap was given.
10591if test "${enable_netmap+set}" = set; then :
10592  enableval=$enable_netmap;
10593else
10594  enable_netmap=yes
10595fi
10596
10597
10598if test "x$enable_netmap" != "xno" ; then
10599	#
10600	# Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
10601	# defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
10602	# is defined, for example, as it includes a non-existent malloc.h
10603	# header.
10604	#
10605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
10606$as_echo_n "checking whether we can compile the netmap support... " >&6; }
10607	if ${ac_cv_net_netmap_user_can_compile+:} false; then :
10608  $as_echo_n "(cached) " >&6
10609else
10610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611/* end confdefs.h.  */
10612
10613$ac_includes_default
10614#define NETMAP_WITH_LIBS
10615#include <net/netmap_user.h>
10616int
10617main ()
10618{
10619
10620  ;
10621  return 0;
10622}
10623_ACEOF
10624if ac_fn_c_try_compile "$LINENO"; then :
10625  ac_cv_net_netmap_user_can_compile=yes
10626else
10627  ac_cv_net_netmap_user_can_compile=no
10628fi
10629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10630fi
10631
10632	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
10633$as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
10634	if test $ac_cv_net_netmap_user_can_compile = yes ; then
10635
10636$as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
10637
10638	    NETMAP_SRC=pcap-netmap.c
10639	fi
10640
10641
10642fi
10643
10644
10645# Check whether --enable-bluetooth was given.
10646if test "${enable_bluetooth+set}" = set; then :
10647  enableval=$enable_bluetooth;
10648else
10649  enable_bluetooth=ifsupportavailable
10650fi
10651
10652
10653if test "xxx_only" = yes; then
10654	# User requested something-else-only pcap, so they don't
10655	# want Bluetooth support.
10656	enable_bluetooth=no
10657fi
10658
10659if test "x$enable_bluetooth" != "xno" ; then
10660		case "$host_os" in
10661	linux*)
10662		ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
10663if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
10664
10665			#
10666			# We have bluetooth.h, so we support Bluetooth
10667			# sniffing.
10668			#
10669
10670$as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
10671
10672			BT_SRC=pcap-bt-linux.c
10673			{ $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
10674$as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
10675			ac_lbl_bluetooth_available=yes
10676
10677			#
10678			# OK, does struct sockaddr_hci have an hci_channel
10679			# member?
10680			#
10681			ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
10682				#include <bluetooth/bluetooth.h>
10683				#include <bluetooth/hci.h>
10684
10685"
10686if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
10687
10688cat >>confdefs.h <<_ACEOF
10689#define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
10690_ACEOF
10691
10692
10693				#
10694				# Yes; is HCI_CHANNEL_MONITOR defined?
10695				#
10696				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
10697$as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
10698				if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
10699  $as_echo_n "(cached) " >&6
10700else
10701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h.  */
10703
10704					    #include <bluetooth/bluetooth.h>
10705					    #include <bluetooth/hci.h>
10706
10707int
10708main ()
10709{
10710
10711					    u_int i = HCI_CHANNEL_MONITOR;
10712
10713  ;
10714  return 0;
10715}
10716_ACEOF
10717if ac_fn_c_try_compile "$LINENO"; then :
10718
10719					    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720$as_echo "yes" >&6; }
10721
10722$as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
10723
10724					    BT_MONITOR_SRC=pcap-bt-monitor-linux.c
10725
10726else
10727
10728					    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729$as_echo "no" >&6; }
10730
10731fi
10732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733fi
10734
10735
10736fi
10737
10738
10739else
10740
10741			#
10742			# We don't have bluetooth.h, so we don't support
10743			# Bluetooth sniffing.
10744			#
10745			if test "x$enable_bluetooth" = "xyes" ; then
10746				as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
10747			else
10748				{ $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10749$as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10750			fi
10751
10752fi
10753
10754
10755		;;
10756	*)
10757		if test "x$enable_bluetooth" = "xyes" ; then
10758			as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
10759		else
10760			{ $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
10761$as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10762		fi
10763		;;
10764	esac
10765
10766
10767
10768fi
10769
10770# Check whether --enable-dbus was given.
10771if test "${enable_dbus+set}" = set; then :
10772  enableval=$enable_dbus;
10773else
10774  enable_dbus=ifavailable
10775fi
10776
10777
10778if test "xxx_only" = yes; then
10779	# User requested something-else-only pcap, so they don't
10780	# want D-Bus support.
10781	enable_dbus=no
10782fi
10783
10784if test "x$enable_dbus" != "xno"; then
10785	if test "x$enable_dbus" = "xyes"; then
10786		case "$host_os" in
10787
10788		darwin*)
10789			#
10790			# We don't support D-Bus sniffing on macOS; see
10791			#
10792			# https://bugs.freedesktop.org/show_bug.cgi?id=74029
10793			#
10794			# The user requested it, so fail.
10795			#
10796			as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
10797		esac
10798	else
10799		case "$host_os" in
10800
10801		darwin*)
10802			#
10803			# We don't support D-Bus sniffing on macOS; see
10804			#
10805			# https://bugs.freedesktop.org/show_bug.cgi?id=74029
10806			#
10807			# The user dind't explicitly request it, so just
10808			# silently refuse to enable it.
10809			#
10810			enable_dbus="no"
10811			;;
10812		esac
10813	fi
10814fi
10815
10816if test "x$enable_dbus" != "xno"; then
10817	# Extract the first word of "pkg-config", so it can be a program name with args.
10818set dummy pkg-config; ac_word=$2
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820$as_echo_n "checking for $ac_word... " >&6; }
10821if ${ac_cv_prog_PKGCONFIG+:} false; then :
10822  $as_echo_n "(cached) " >&6
10823else
10824  if test -n "$PKGCONFIG"; then
10825  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
10826else
10827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828for as_dir in $PATH
10829do
10830  IFS=$as_save_IFS
10831  test -z "$as_dir" && as_dir=.
10832    for ac_exec_ext in '' $ac_executable_extensions; do
10833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10834    ac_cv_prog_PKGCONFIG="pkg-config"
10835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836    break 2
10837  fi
10838done
10839  done
10840IFS=$as_save_IFS
10841
10842  test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
10843fi
10844fi
10845PKGCONFIG=$ac_cv_prog_PKGCONFIG
10846if test -n "$PKGCONFIG"; then
10847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10848$as_echo "$PKGCONFIG" >&6; }
10849else
10850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851$as_echo "no" >&6; }
10852fi
10853
10854
10855	if test "x$PKGCONFIG" != "xno"; then
10856		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
10857$as_echo_n "checking for D-Bus... " >&6; }
10858		if "$PKGCONFIG" dbus-1; then
10859			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10860$as_echo "yes" >&6; }
10861			DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
10862			DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
10863			save_CFLAGS="$CFLAGS"
10864			save_LIBS="$LIBS"
10865			CFLAGS="$CFLAGS $DBUS_CFLAGS"
10866			LIBS="$LIBS $DBUS_LIBS"
10867			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
10868$as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
10869			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870/* end confdefs.h.  */
10871#include <string.h>
10872
10873			     #include <time.h>
10874			     #include <sys/time.h>
10875
10876			     #include <dbus/dbus.h>
10877int
10878main ()
10879{
10880return dbus_connection_read_write(NULL, 0);
10881  ;
10882  return 0;
10883}
10884_ACEOF
10885if ac_fn_c_try_link "$LINENO"; then :
10886
10887				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10888$as_echo "yes" >&6; }
10889
10890$as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
10891
10892				DBUS_SRC=pcap-dbus.c
10893				V_INCLS="$V_INCLS $DBUS_CFLAGS"
10894
10895else
10896
10897				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898$as_echo "no" >&6; }
10899				if test "x$enable_dbus" = "xyes"; then
10900				    as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
10901				fi
10902				LIBS="$save_LIBS"
10903
10904fi
10905rm -f core conftest.err conftest.$ac_objext \
10906    conftest$ac_exeext conftest.$ac_ext
10907			CFLAGS="$save_CFLAGS"
10908		else
10909			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910$as_echo "no" >&6; }
10911			if test "x$enable_dbus" = "xyes"; then
10912				as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
10913			fi
10914		fi
10915	fi
10916
10917
10918fi
10919
10920# Check whether --enable-rdma was given.
10921if test "${enable_rdma+set}" = set; then :
10922  enableval=$enable_rdma;
10923else
10924  enable_rdma=ifavailable
10925fi
10926
10927
10928if test "xxx_only" = yes; then
10929	# User requested something-else-only pcap, so they don't
10930	# want RDMA support.
10931	enable_rdma=no
10932fi
10933
10934if test "x$enable_rdma" != "xno"; then
10935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
10936$as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
10937if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
10938  $as_echo_n "(cached) " >&6
10939else
10940  ac_check_lib_save_LIBS=$LIBS
10941LIBS="-libverbs  $LIBS"
10942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943/* end confdefs.h.  */
10944
10945/* Override any GCC internal prototype to avoid an error.
10946   Use char because int might match the return type of a GCC
10947   builtin and then its argument prototype would still apply.  */
10948#ifdef __cplusplus
10949extern "C"
10950#endif
10951char ibv_get_device_list ();
10952int
10953main ()
10954{
10955return ibv_get_device_list ();
10956  ;
10957  return 0;
10958}
10959_ACEOF
10960if ac_fn_c_try_link "$LINENO"; then :
10961  ac_cv_lib_ibverbs_ibv_get_device_list=yes
10962else
10963  ac_cv_lib_ibverbs_ibv_get_device_list=no
10964fi
10965rm -f core conftest.err conftest.$ac_objext \
10966    conftest$ac_exeext conftest.$ac_ext
10967LIBS=$ac_check_lib_save_LIBS
10968fi
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
10970$as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
10971if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
10972
10973		ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
10974if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
10975
10976			#
10977			# ibv_create_flow may be defined as a static inline
10978			# function in infiniband/verbs.h, so we can't
10979			# use AC_CHECK_LIB.
10980			#
10981			# Too bad autoconf has no AC_SYMBOL_EXISTS()
10982			# macro that works like CMake's check_symbol_exists()
10983			# function, to check do a compile check like
10984			# this (they do a clever trick to avoid having
10985			# to know the function's signature).
10986			#
10987			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
10988$as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
10989			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990/* end confdefs.h.  */
10991
10992					#include <infiniband/verbs.h>
10993
10994int
10995main ()
10996{
10997
10998					(void) ibv_create_flow((struct ibv_qp *) NULL,
10999							       (struct ibv_flow_attr *) NULL);
11000
11001  ;
11002  return 0;
11003}
11004_ACEOF
11005if ac_fn_c_try_link "$LINENO"; then :
11006
11007					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11008$as_echo "yes" >&6; }
11009
11010$as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
11011
11012					RDMA_SRC=pcap-rdmasniff.c
11013					LIBS="-libverbs $LIBS"
11014
11015else
11016
11017					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018$as_echo "no" >&6; }
11019
11020
11021fi
11022rm -f core conftest.err conftest.$ac_objext \
11023    conftest$ac_exeext conftest.$ac_ext
11024
11025fi
11026
11027
11028
11029fi
11030
11031
11032
11033fi
11034
11035# Find a good install program.  We prefer a C program (faster),
11036# so one script is as good as another.  But avoid the broken or
11037# incompatible versions:
11038# SysV /etc/install, /usr/sbin/install
11039# SunOS /usr/etc/install
11040# IRIX /sbin/install
11041# AIX /bin/install
11042# AmigaOS /C/install, which installs bootblocks on floppy discs
11043# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11044# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11045# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11046# OS/2's system install, which has a completely different semantic
11047# ./install, which can be erroneously created by make from ./install.sh.
11048# Reject install programs that cannot install multiple files.
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11050$as_echo_n "checking for a BSD-compatible install... " >&6; }
11051if test -z "$INSTALL"; then
11052if ${ac_cv_path_install+:} false; then :
11053  $as_echo_n "(cached) " >&6
11054else
11055  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056for as_dir in $PATH
11057do
11058  IFS=$as_save_IFS
11059  test -z "$as_dir" && as_dir=.
11060    # Account for people who put trailing slashes in PATH elements.
11061case $as_dir/ in #((
11062  ./ | .// | /[cC]/* | \
11063  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11064  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11065  /usr/ucb/* ) ;;
11066  *)
11067    # OSF1 and SCO ODT 3.0 have their own names for install.
11068    # Don't use installbsd from OSF since it installs stuff as root
11069    # by default.
11070    for ac_prog in ginstall scoinst install; do
11071      for ac_exec_ext in '' $ac_executable_extensions; do
11072	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11073	  if test $ac_prog = install &&
11074	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11075	    # AIX install.  It has an incompatible calling convention.
11076	    :
11077	  elif test $ac_prog = install &&
11078	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11079	    # program-specific install script used by HP pwplus--don't use.
11080	    :
11081	  else
11082	    rm -rf conftest.one conftest.two conftest.dir
11083	    echo one > conftest.one
11084	    echo two > conftest.two
11085	    mkdir conftest.dir
11086	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11087	      test -s conftest.one && test -s conftest.two &&
11088	      test -s conftest.dir/conftest.one &&
11089	      test -s conftest.dir/conftest.two
11090	    then
11091	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11092	      break 3
11093	    fi
11094	  fi
11095	fi
11096      done
11097    done
11098    ;;
11099esac
11100
11101  done
11102IFS=$as_save_IFS
11103
11104rm -rf conftest.one conftest.two conftest.dir
11105
11106fi
11107  if test "${ac_cv_path_install+set}" = set; then
11108    INSTALL=$ac_cv_path_install
11109  else
11110    # As a last resort, use the slow shell script.  Don't cache a
11111    # value for INSTALL within a source directory, because that will
11112    # break other packages using the cache if that directory is
11113    # removed, or if the value is a relative name.
11114    INSTALL=$ac_install_sh
11115  fi
11116fi
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11118$as_echo "$INSTALL" >&6; }
11119
11120# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11121# It thinks the first close brace ends the variable substitution.
11122test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11123
11124test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11125
11126test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11127
11128
11129ac_config_headers="$ac_config_headers config.h"
11130
11131
11132ac_config_commands="$ac_config_commands default-1"
11133
11134ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_immediate_mode.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile rpcapd/rpcapd.manadmin rpcapd/rpcapd-config.manfile testprogs/Makefile"
11135
11136cat >confcache <<\_ACEOF
11137# This file is a shell script that caches the results of configure
11138# tests run on this system so they can be shared between configure
11139# scripts and configure runs, see configure's option --config-cache.
11140# It is not useful on other systems.  If it contains results you don't
11141# want to keep, you may remove or edit it.
11142#
11143# config.status only pays attention to the cache file if you give it
11144# the --recheck option to rerun configure.
11145#
11146# `ac_cv_env_foo' variables (set or unset) will be overridden when
11147# loading this file, other *unset* `ac_cv_foo' will be assigned the
11148# following values.
11149
11150_ACEOF
11151
11152# The following way of writing the cache mishandles newlines in values,
11153# but we know of no workaround that is simple, portable, and efficient.
11154# So, we kill variables containing newlines.
11155# Ultrix sh set writes to stderr and can't be redirected directly,
11156# and sets the high bit in the cache file unless we assign to the vars.
11157(
11158  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11159    eval ac_val=\$$ac_var
11160    case $ac_val in #(
11161    *${as_nl}*)
11162      case $ac_var in #(
11163      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11164$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11165      esac
11166      case $ac_var in #(
11167      _ | IFS | as_nl) ;; #(
11168      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11169      *) { eval $ac_var=; unset $ac_var;} ;;
11170      esac ;;
11171    esac
11172  done
11173
11174  (set) 2>&1 |
11175    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11176    *${as_nl}ac_space=\ *)
11177      # `set' does not quote correctly, so add quotes: double-quote
11178      # substitution turns \\\\ into \\, and sed turns \\ into \.
11179      sed -n \
11180	"s/'/'\\\\''/g;
11181	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11182      ;; #(
11183    *)
11184      # `set' quotes correctly as required by POSIX, so do not add quotes.
11185      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11186      ;;
11187    esac |
11188    sort
11189) |
11190  sed '
11191     /^ac_cv_env_/b end
11192     t clear
11193     :clear
11194     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11195     t end
11196     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11197     :end' >>confcache
11198if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11199  if test -w "$cache_file"; then
11200    if test "x$cache_file" != "x/dev/null"; then
11201      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11202$as_echo "$as_me: updating cache $cache_file" >&6;}
11203      if test ! -f "$cache_file" || test -h "$cache_file"; then
11204	cat confcache >"$cache_file"
11205      else
11206        case $cache_file in #(
11207        */* | ?:*)
11208	  mv -f confcache "$cache_file"$$ &&
11209	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11210        *)
11211	  mv -f confcache "$cache_file" ;;
11212	esac
11213      fi
11214    fi
11215  else
11216    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11217$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11218  fi
11219fi
11220rm -f confcache
11221
11222test "x$prefix" = xNONE && prefix=$ac_default_prefix
11223# Let make expand exec_prefix.
11224test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11225
11226DEFS=-DHAVE_CONFIG_H
11227
11228ac_libobjs=
11229ac_ltlibobjs=
11230U=
11231for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11232  # 1. Remove the extension, and $U if already installed.
11233  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11234  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11235  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11236  #    will be set to the directory where LIBOBJS objects are built.
11237  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11238  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11239done
11240LIBOBJS=$ac_libobjs
11241
11242LTLIBOBJS=$ac_ltlibobjs
11243
11244
11245
11246: "${CONFIG_STATUS=./config.status}"
11247ac_write_fail=0
11248ac_clean_files_save=$ac_clean_files
11249ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11251$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11252as_write_fail=0
11253cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11254#! $SHELL
11255# Generated by $as_me.
11256# Run this file to recreate the current configuration.
11257# Compiler output produced by configure, useful for debugging
11258# configure, is in config.log if it exists.
11259
11260debug=false
11261ac_cs_recheck=false
11262ac_cs_silent=false
11263
11264SHELL=\${CONFIG_SHELL-$SHELL}
11265export SHELL
11266_ASEOF
11267cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11268## -------------------- ##
11269## M4sh Initialization. ##
11270## -------------------- ##
11271
11272# Be more Bourne compatible
11273DUALCASE=1; export DUALCASE # for MKS sh
11274if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11275  emulate sh
11276  NULLCMD=:
11277  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11278  # is contrary to our usage.  Disable this feature.
11279  alias -g '${1+"$@"}'='"$@"'
11280  setopt NO_GLOB_SUBST
11281else
11282  case `(set -o) 2>/dev/null` in #(
11283  *posix*) :
11284    set -o posix ;; #(
11285  *) :
11286     ;;
11287esac
11288fi
11289
11290
11291as_nl='
11292'
11293export as_nl
11294# Printing a long string crashes Solaris 7 /usr/bin/printf.
11295as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11296as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11297as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11298# Prefer a ksh shell builtin over an external printf program on Solaris,
11299# but without wasting forks for bash or zsh.
11300if test -z "$BASH_VERSION$ZSH_VERSION" \
11301    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11302  as_echo='print -r --'
11303  as_echo_n='print -rn --'
11304elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11305  as_echo='printf %s\n'
11306  as_echo_n='printf %s'
11307else
11308  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11309    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11310    as_echo_n='/usr/ucb/echo -n'
11311  else
11312    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11313    as_echo_n_body='eval
11314      arg=$1;
11315      case $arg in #(
11316      *"$as_nl"*)
11317	expr "X$arg" : "X\\(.*\\)$as_nl";
11318	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11319      esac;
11320      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11321    '
11322    export as_echo_n_body
11323    as_echo_n='sh -c $as_echo_n_body as_echo'
11324  fi
11325  export as_echo_body
11326  as_echo='sh -c $as_echo_body as_echo'
11327fi
11328
11329# The user is always right.
11330if test "${PATH_SEPARATOR+set}" != set; then
11331  PATH_SEPARATOR=:
11332  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11333    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11334      PATH_SEPARATOR=';'
11335  }
11336fi
11337
11338
11339# IFS
11340# We need space, tab and new line, in precisely that order.  Quoting is
11341# there to prevent editors from complaining about space-tab.
11342# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11343# splitting by setting IFS to empty value.)
11344IFS=" ""	$as_nl"
11345
11346# Find who we are.  Look in the path if we contain no directory separator.
11347as_myself=
11348case $0 in #((
11349  *[\\/]* ) as_myself=$0 ;;
11350  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351for as_dir in $PATH
11352do
11353  IFS=$as_save_IFS
11354  test -z "$as_dir" && as_dir=.
11355    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11356  done
11357IFS=$as_save_IFS
11358
11359     ;;
11360esac
11361# We did not find ourselves, most probably we were run as `sh COMMAND'
11362# in which case we are not to be found in the path.
11363if test "x$as_myself" = x; then
11364  as_myself=$0
11365fi
11366if test ! -f "$as_myself"; then
11367  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11368  exit 1
11369fi
11370
11371# Unset variables that we do not need and which cause bugs (e.g. in
11372# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11373# suppresses any "Segmentation fault" message there.  '((' could
11374# trigger a bug in pdksh 5.2.14.
11375for as_var in BASH_ENV ENV MAIL MAILPATH
11376do eval test x\${$as_var+set} = xset \
11377  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11378done
11379PS1='$ '
11380PS2='> '
11381PS4='+ '
11382
11383# NLS nuisances.
11384LC_ALL=C
11385export LC_ALL
11386LANGUAGE=C
11387export LANGUAGE
11388
11389# CDPATH.
11390(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11391
11392
11393# as_fn_error STATUS ERROR [LINENO LOG_FD]
11394# ----------------------------------------
11395# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11396# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11397# script with STATUS, using 1 if that was 0.
11398as_fn_error ()
11399{
11400  as_status=$1; test $as_status -eq 0 && as_status=1
11401  if test "$4"; then
11402    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11403    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11404  fi
11405  $as_echo "$as_me: error: $2" >&2
11406  as_fn_exit $as_status
11407} # as_fn_error
11408
11409
11410# as_fn_set_status STATUS
11411# -----------------------
11412# Set $? to STATUS, without forking.
11413as_fn_set_status ()
11414{
11415  return $1
11416} # as_fn_set_status
11417
11418# as_fn_exit STATUS
11419# -----------------
11420# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11421as_fn_exit ()
11422{
11423  set +e
11424  as_fn_set_status $1
11425  exit $1
11426} # as_fn_exit
11427
11428# as_fn_unset VAR
11429# ---------------
11430# Portably unset VAR.
11431as_fn_unset ()
11432{
11433  { eval $1=; unset $1;}
11434}
11435as_unset=as_fn_unset
11436# as_fn_append VAR VALUE
11437# ----------------------
11438# Append the text in VALUE to the end of the definition contained in VAR. Take
11439# advantage of any shell optimizations that allow amortized linear growth over
11440# repeated appends, instead of the typical quadratic growth present in naive
11441# implementations.
11442if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11443  eval 'as_fn_append ()
11444  {
11445    eval $1+=\$2
11446  }'
11447else
11448  as_fn_append ()
11449  {
11450    eval $1=\$$1\$2
11451  }
11452fi # as_fn_append
11453
11454# as_fn_arith ARG...
11455# ------------------
11456# Perform arithmetic evaluation on the ARGs, and store the result in the
11457# global $as_val. Take advantage of shells that can avoid forks. The arguments
11458# must be portable across $(()) and expr.
11459if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11460  eval 'as_fn_arith ()
11461  {
11462    as_val=$(( $* ))
11463  }'
11464else
11465  as_fn_arith ()
11466  {
11467    as_val=`expr "$@" || test $? -eq 1`
11468  }
11469fi # as_fn_arith
11470
11471
11472if expr a : '\(a\)' >/dev/null 2>&1 &&
11473   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11474  as_expr=expr
11475else
11476  as_expr=false
11477fi
11478
11479if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11480  as_basename=basename
11481else
11482  as_basename=false
11483fi
11484
11485if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11486  as_dirname=dirname
11487else
11488  as_dirname=false
11489fi
11490
11491as_me=`$as_basename -- "$0" ||
11492$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11493	 X"$0" : 'X\(//\)$' \| \
11494	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11495$as_echo X/"$0" |
11496    sed '/^.*\/\([^/][^/]*\)\/*$/{
11497	    s//\1/
11498	    q
11499	  }
11500	  /^X\/\(\/\/\)$/{
11501	    s//\1/
11502	    q
11503	  }
11504	  /^X\/\(\/\).*/{
11505	    s//\1/
11506	    q
11507	  }
11508	  s/.*/./; q'`
11509
11510# Avoid depending upon Character Ranges.
11511as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11512as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11513as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11514as_cr_digits='0123456789'
11515as_cr_alnum=$as_cr_Letters$as_cr_digits
11516
11517ECHO_C= ECHO_N= ECHO_T=
11518case `echo -n x` in #(((((
11519-n*)
11520  case `echo 'xy\c'` in
11521  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11522  xy)  ECHO_C='\c';;
11523  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11524       ECHO_T='	';;
11525  esac;;
11526*)
11527  ECHO_N='-n';;
11528esac
11529
11530rm -f conf$$ conf$$.exe conf$$.file
11531if test -d conf$$.dir; then
11532  rm -f conf$$.dir/conf$$.file
11533else
11534  rm -f conf$$.dir
11535  mkdir conf$$.dir 2>/dev/null
11536fi
11537if (echo >conf$$.file) 2>/dev/null; then
11538  if ln -s conf$$.file conf$$ 2>/dev/null; then
11539    as_ln_s='ln -s'
11540    # ... but there are two gotchas:
11541    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11542    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11543    # In both cases, we have to default to `cp -pR'.
11544    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11545      as_ln_s='cp -pR'
11546  elif ln conf$$.file conf$$ 2>/dev/null; then
11547    as_ln_s=ln
11548  else
11549    as_ln_s='cp -pR'
11550  fi
11551else
11552  as_ln_s='cp -pR'
11553fi
11554rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11555rmdir conf$$.dir 2>/dev/null
11556
11557
11558# as_fn_mkdir_p
11559# -------------
11560# Create "$as_dir" as a directory, including parents if necessary.
11561as_fn_mkdir_p ()
11562{
11563
11564  case $as_dir in #(
11565  -*) as_dir=./$as_dir;;
11566  esac
11567  test -d "$as_dir" || eval $as_mkdir_p || {
11568    as_dirs=
11569    while :; do
11570      case $as_dir in #(
11571      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11572      *) as_qdir=$as_dir;;
11573      esac
11574      as_dirs="'$as_qdir' $as_dirs"
11575      as_dir=`$as_dirname -- "$as_dir" ||
11576$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11577	 X"$as_dir" : 'X\(//\)[^/]' \| \
11578	 X"$as_dir" : 'X\(//\)$' \| \
11579	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11580$as_echo X"$as_dir" |
11581    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11582	    s//\1/
11583	    q
11584	  }
11585	  /^X\(\/\/\)[^/].*/{
11586	    s//\1/
11587	    q
11588	  }
11589	  /^X\(\/\/\)$/{
11590	    s//\1/
11591	    q
11592	  }
11593	  /^X\(\/\).*/{
11594	    s//\1/
11595	    q
11596	  }
11597	  s/.*/./; q'`
11598      test -d "$as_dir" && break
11599    done
11600    test -z "$as_dirs" || eval "mkdir $as_dirs"
11601  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11602
11603
11604} # as_fn_mkdir_p
11605if mkdir -p . 2>/dev/null; then
11606  as_mkdir_p='mkdir -p "$as_dir"'
11607else
11608  test -d ./-p && rmdir ./-p
11609  as_mkdir_p=false
11610fi
11611
11612
11613# as_fn_executable_p FILE
11614# -----------------------
11615# Test if FILE is an executable regular file.
11616as_fn_executable_p ()
11617{
11618  test -f "$1" && test -x "$1"
11619} # as_fn_executable_p
11620as_test_x='test -x'
11621as_executable_p=as_fn_executable_p
11622
11623# Sed expression to map a string onto a valid CPP name.
11624as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11625
11626# Sed expression to map a string onto a valid variable name.
11627as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11628
11629
11630exec 6>&1
11631## ----------------------------------- ##
11632## Main body of $CONFIG_STATUS script. ##
11633## ----------------------------------- ##
11634_ASEOF
11635test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11636
11637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11638# Save the log message, to keep $0 and so on meaningful, and to
11639# report actual input values of CONFIG_FILES etc. instead of their
11640# values after options handling.
11641ac_log="
11642This file was extended by pcap $as_me 1.9.1, which was
11643generated by GNU Autoconf 2.69.  Invocation command line was
11644
11645  CONFIG_FILES    = $CONFIG_FILES
11646  CONFIG_HEADERS  = $CONFIG_HEADERS
11647  CONFIG_LINKS    = $CONFIG_LINKS
11648  CONFIG_COMMANDS = $CONFIG_COMMANDS
11649  $ $0 $@
11650
11651on `(hostname || uname -n) 2>/dev/null | sed 1q`
11652"
11653
11654_ACEOF
11655
11656case $ac_config_files in *"
11657"*) set x $ac_config_files; shift; ac_config_files=$*;;
11658esac
11659
11660case $ac_config_headers in *"
11661"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11662esac
11663
11664
11665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11666# Files that config.status was made for.
11667config_files="$ac_config_files"
11668config_headers="$ac_config_headers"
11669config_commands="$ac_config_commands"
11670
11671_ACEOF
11672
11673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11674ac_cs_usage="\
11675\`$as_me' instantiates files and other configuration actions
11676from templates according to the current configuration.  Unless the files
11677and actions are specified as TAGs, all are instantiated by default.
11678
11679Usage: $0 [OPTION]... [TAG]...
11680
11681  -h, --help       print this help, then exit
11682  -V, --version    print version number and configuration settings, then exit
11683      --config     print configuration, then exit
11684  -q, --quiet, --silent
11685                   do not print progress messages
11686  -d, --debug      don't remove temporary files
11687      --recheck    update $as_me by reconfiguring in the same conditions
11688      --file=FILE[:TEMPLATE]
11689                   instantiate the configuration file FILE
11690      --header=FILE[:TEMPLATE]
11691                   instantiate the configuration header FILE
11692
11693Configuration files:
11694$config_files
11695
11696Configuration headers:
11697$config_headers
11698
11699Configuration commands:
11700$config_commands
11701
11702Report bugs to the package provider."
11703
11704_ACEOF
11705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11706ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11707ac_cs_version="\\
11708pcap config.status 1.9.1
11709configured by $0, generated by GNU Autoconf 2.69,
11710  with options \\"\$ac_cs_config\\"
11711
11712Copyright (C) 2012 Free Software Foundation, Inc.
11713This config.status script is free software; the Free Software Foundation
11714gives unlimited permission to copy, distribute and modify it."
11715
11716ac_pwd='$ac_pwd'
11717srcdir='$srcdir'
11718INSTALL='$INSTALL'
11719test -n "\$AWK" || AWK=awk
11720_ACEOF
11721
11722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11723# The default lists apply if the user does not specify any file.
11724ac_need_defaults=:
11725while test $# != 0
11726do
11727  case $1 in
11728  --*=?*)
11729    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11730    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11731    ac_shift=:
11732    ;;
11733  --*=)
11734    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11735    ac_optarg=
11736    ac_shift=:
11737    ;;
11738  *)
11739    ac_option=$1
11740    ac_optarg=$2
11741    ac_shift=shift
11742    ;;
11743  esac
11744
11745  case $ac_option in
11746  # Handling of the options.
11747  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11748    ac_cs_recheck=: ;;
11749  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11750    $as_echo "$ac_cs_version"; exit ;;
11751  --config | --confi | --conf | --con | --co | --c )
11752    $as_echo "$ac_cs_config"; exit ;;
11753  --debug | --debu | --deb | --de | --d | -d )
11754    debug=: ;;
11755  --file | --fil | --fi | --f )
11756    $ac_shift
11757    case $ac_optarg in
11758    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11759    '') as_fn_error $? "missing file argument" ;;
11760    esac
11761    as_fn_append CONFIG_FILES " '$ac_optarg'"
11762    ac_need_defaults=false;;
11763  --header | --heade | --head | --hea )
11764    $ac_shift
11765    case $ac_optarg in
11766    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11767    esac
11768    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11769    ac_need_defaults=false;;
11770  --he | --h)
11771    # Conflict between --help and --header
11772    as_fn_error $? "ambiguous option: \`$1'
11773Try \`$0 --help' for more information.";;
11774  --help | --hel | -h )
11775    $as_echo "$ac_cs_usage"; exit ;;
11776  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11777  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11778    ac_cs_silent=: ;;
11779
11780  # This is an error.
11781  -*) as_fn_error $? "unrecognized option: \`$1'
11782Try \`$0 --help' for more information." ;;
11783
11784  *) as_fn_append ac_config_targets " $1"
11785     ac_need_defaults=false ;;
11786
11787  esac
11788  shift
11789done
11790
11791ac_configure_extra_args=
11792
11793if $ac_cs_silent; then
11794  exec 6>/dev/null
11795  ac_configure_extra_args="$ac_configure_extra_args --silent"
11796fi
11797
11798_ACEOF
11799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11800if \$ac_cs_recheck; then
11801  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11802  shift
11803  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11804  CONFIG_SHELL='$SHELL'
11805  export CONFIG_SHELL
11806  exec "\$@"
11807fi
11808
11809_ACEOF
11810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11811exec 5>>config.log
11812{
11813  echo
11814  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11815## Running $as_me. ##
11816_ASBOX
11817  $as_echo "$ac_log"
11818} >&5
11819
11820_ACEOF
11821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11822#
11823# INIT-COMMANDS
11824#
11825
11826
11827_ACEOF
11828
11829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11830
11831# Handling of arguments.
11832for ac_config_target in $ac_config_targets
11833do
11834  case $ac_config_target in
11835    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11836    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11837    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11838    "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
11839    "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
11840    "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11841    "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
11842    "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
11843    "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
11844    "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
11845    "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11846    "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
11847    "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11848    "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11849    "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11850    "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11851    "pcap_set_immediate_mode.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_immediate_mode.3pcap" ;;
11852    "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
11853    "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11854    "rpcapd/Makefile") CONFIG_FILES="$CONFIG_FILES rpcapd/Makefile" ;;
11855    "rpcapd/rpcapd.manadmin") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
11856    "rpcapd/rpcapd-config.manfile") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd-config.manfile" ;;
11857    "testprogs/Makefile") CONFIG_FILES="$CONFIG_FILES testprogs/Makefile" ;;
11858
11859  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11860  esac
11861done
11862
11863
11864# If the user did not use the arguments to specify the items to instantiate,
11865# then the envvar interface is used.  Set only those that are not.
11866# We use the long form for the default assignment because of an extremely
11867# bizarre bug on SunOS 4.1.3.
11868if $ac_need_defaults; then
11869  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11870  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11871  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11872fi
11873
11874# Have a temporary directory for convenience.  Make it in the build tree
11875# simply because there is no reason against having it here, and in addition,
11876# creating and moving files from /tmp can sometimes cause problems.
11877# Hook for its removal unless debugging.
11878# Note that there is a small window in which the directory will not be cleaned:
11879# after its creation but before its name has been assigned to `$tmp'.
11880$debug ||
11881{
11882  tmp= ac_tmp=
11883  trap 'exit_status=$?
11884  : "${ac_tmp:=$tmp}"
11885  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11886' 0
11887  trap 'as_fn_exit 1' 1 2 13 15
11888}
11889# Create a (secure) tmp directory for tmp files.
11890
11891{
11892  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11893  test -d "$tmp"
11894}  ||
11895{
11896  tmp=./conf$$-$RANDOM
11897  (umask 077 && mkdir "$tmp")
11898} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11899ac_tmp=$tmp
11900
11901# Set up the scripts for CONFIG_FILES section.
11902# No need to generate them if there are no CONFIG_FILES.
11903# This happens for instance with `./config.status config.h'.
11904if test -n "$CONFIG_FILES"; then
11905
11906
11907ac_cr=`echo X | tr X '\015'`
11908# On cygwin, bash can eat \r inside `` if the user requested igncr.
11909# But we know of no other shell where ac_cr would be empty at this
11910# point, so we can use a bashism as a fallback.
11911if test "x$ac_cr" = x; then
11912  eval ac_cr=\$\'\\r\'
11913fi
11914ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11915if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11916  ac_cs_awk_cr='\\r'
11917else
11918  ac_cs_awk_cr=$ac_cr
11919fi
11920
11921echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11922_ACEOF
11923
11924
11925{
11926  echo "cat >conf$$subs.awk <<_ACEOF" &&
11927  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11928  echo "_ACEOF"
11929} >conf$$subs.sh ||
11930  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11931ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11932ac_delim='%!_!# '
11933for ac_last_try in false false false false false :; do
11934  . ./conf$$subs.sh ||
11935    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11936
11937  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11938  if test $ac_delim_n = $ac_delim_num; then
11939    break
11940  elif $ac_last_try; then
11941    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11942  else
11943    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11944  fi
11945done
11946rm -f conf$$subs.sh
11947
11948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11949cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11950_ACEOF
11951sed -n '
11952h
11953s/^/S["/; s/!.*/"]=/
11954p
11955g
11956s/^[^!]*!//
11957:repl
11958t repl
11959s/'"$ac_delim"'$//
11960t delim
11961:nl
11962h
11963s/\(.\{148\}\)..*/\1/
11964t more1
11965s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11966p
11967n
11968b repl
11969:more1
11970s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11971p
11972g
11973s/.\{148\}//
11974t nl
11975:delim
11976h
11977s/\(.\{148\}\)..*/\1/
11978t more2
11979s/["\\]/\\&/g; s/^/"/; s/$/"/
11980p
11981b
11982:more2
11983s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11984p
11985g
11986s/.\{148\}//
11987t delim
11988' <conf$$subs.awk | sed '
11989/^[^""]/{
11990  N
11991  s/\n//
11992}
11993' >>$CONFIG_STATUS || ac_write_fail=1
11994rm -f conf$$subs.awk
11995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11996_ACAWK
11997cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11998  for (key in S) S_is_set[key] = 1
11999  FS = ""
12000
12001}
12002{
12003  line = $ 0
12004  nfields = split(line, field, "@")
12005  substed = 0
12006  len = length(field[1])
12007  for (i = 2; i < nfields; i++) {
12008    key = field[i]
12009    keylen = length(key)
12010    if (S_is_set[key]) {
12011      value = S[key]
12012      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12013      len += length(value) + length(field[++i])
12014      substed = 1
12015    } else
12016      len += 1 + keylen
12017  }
12018
12019  print line
12020}
12021
12022_ACAWK
12023_ACEOF
12024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12025if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12026  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12027else
12028  cat
12029fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12030  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12031_ACEOF
12032
12033# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12034# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12035# trailing colons and then remove the whole line if VPATH becomes empty
12036# (actually we leave an empty line to preserve line numbers).
12037if test "x$srcdir" = x.; then
12038  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12039h
12040s///
12041s/^/:/
12042s/[	 ]*$/:/
12043s/:\$(srcdir):/:/g
12044s/:\${srcdir}:/:/g
12045s/:@srcdir@:/:/g
12046s/^:*//
12047s/:*$//
12048x
12049s/\(=[	 ]*\).*/\1/
12050G
12051s/\n//
12052s/^[^=]*=[	 ]*$//
12053}'
12054fi
12055
12056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12057fi # test -n "$CONFIG_FILES"
12058
12059# Set up the scripts for CONFIG_HEADERS section.
12060# No need to generate them if there are no CONFIG_HEADERS.
12061# This happens for instance with `./config.status Makefile'.
12062if test -n "$CONFIG_HEADERS"; then
12063cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12064BEGIN {
12065_ACEOF
12066
12067# Transform confdefs.h into an awk script `defines.awk', embedded as
12068# here-document in config.status, that substitutes the proper values into
12069# config.h.in to produce config.h.
12070
12071# Create a delimiter string that does not exist in confdefs.h, to ease
12072# handling of long lines.
12073ac_delim='%!_!# '
12074for ac_last_try in false false :; do
12075  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12076  if test -z "$ac_tt"; then
12077    break
12078  elif $ac_last_try; then
12079    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12080  else
12081    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12082  fi
12083done
12084
12085# For the awk script, D is an array of macro values keyed by name,
12086# likewise P contains macro parameters if any.  Preserve backslash
12087# newline sequences.
12088
12089ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12090sed -n '
12091s/.\{148\}/&'"$ac_delim"'/g
12092t rset
12093:rset
12094s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12095t def
12096d
12097:def
12098s/\\$//
12099t bsnl
12100s/["\\]/\\&/g
12101s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12102D["\1"]=" \3"/p
12103s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12104d
12105:bsnl
12106s/["\\]/\\&/g
12107s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12108D["\1"]=" \3\\\\\\n"\\/p
12109t cont
12110s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12111t cont
12112d
12113:cont
12114n
12115s/.\{148\}/&'"$ac_delim"'/g
12116t clear
12117:clear
12118s/\\$//
12119t bsnlc
12120s/["\\]/\\&/g; s/^/"/; s/$/"/p
12121d
12122:bsnlc
12123s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12124b cont
12125' <confdefs.h | sed '
12126s/'"$ac_delim"'/"\\\
12127"/g' >>$CONFIG_STATUS || ac_write_fail=1
12128
12129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12130  for (key in D) D_is_set[key] = 1
12131  FS = ""
12132}
12133/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12134  line = \$ 0
12135  split(line, arg, " ")
12136  if (arg[1] == "#") {
12137    defundef = arg[2]
12138    mac1 = arg[3]
12139  } else {
12140    defundef = substr(arg[1], 2)
12141    mac1 = arg[2]
12142  }
12143  split(mac1, mac2, "(") #)
12144  macro = mac2[1]
12145  prefix = substr(line, 1, index(line, defundef) - 1)
12146  if (D_is_set[macro]) {
12147    # Preserve the white space surrounding the "#".
12148    print prefix "define", macro P[macro] D[macro]
12149    next
12150  } else {
12151    # Replace #undef with comments.  This is necessary, for example,
12152    # in the case of _POSIX_SOURCE, which is predefined and required
12153    # on some systems where configure will not decide to define it.
12154    if (defundef == "undef") {
12155      print "/*", prefix defundef, macro, "*/"
12156      next
12157    }
12158  }
12159}
12160{ print }
12161_ACAWK
12162_ACEOF
12163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12164  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12165fi # test -n "$CONFIG_HEADERS"
12166
12167
12168eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12169shift
12170for ac_tag
12171do
12172  case $ac_tag in
12173  :[FHLC]) ac_mode=$ac_tag; continue;;
12174  esac
12175  case $ac_mode$ac_tag in
12176  :[FHL]*:*);;
12177  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12178  :[FH]-) ac_tag=-:-;;
12179  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12180  esac
12181  ac_save_IFS=$IFS
12182  IFS=:
12183  set x $ac_tag
12184  IFS=$ac_save_IFS
12185  shift
12186  ac_file=$1
12187  shift
12188
12189  case $ac_mode in
12190  :L) ac_source=$1;;
12191  :[FH])
12192    ac_file_inputs=
12193    for ac_f
12194    do
12195      case $ac_f in
12196      -) ac_f="$ac_tmp/stdin";;
12197      *) # Look for the file first in the build tree, then in the source tree
12198	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12199	 # because $ac_f cannot contain `:'.
12200	 test -f "$ac_f" ||
12201	   case $ac_f in
12202	   [\\/$]*) false;;
12203	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12204	   esac ||
12205	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12206      esac
12207      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12208      as_fn_append ac_file_inputs " '$ac_f'"
12209    done
12210
12211    # Let's still pretend it is `configure' which instantiates (i.e., don't
12212    # use $as_me), people would be surprised to read:
12213    #    /* config.h.  Generated by config.status.  */
12214    configure_input='Generated from '`
12215	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12216	`' by configure.'
12217    if test x"$ac_file" != x-; then
12218      configure_input="$ac_file.  $configure_input"
12219      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12220$as_echo "$as_me: creating $ac_file" >&6;}
12221    fi
12222    # Neutralize special characters interpreted by sed in replacement strings.
12223    case $configure_input in #(
12224    *\&* | *\|* | *\\* )
12225       ac_sed_conf_input=`$as_echo "$configure_input" |
12226       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12227    *) ac_sed_conf_input=$configure_input;;
12228    esac
12229
12230    case $ac_tag in
12231    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12232      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12233    esac
12234    ;;
12235  esac
12236
12237  ac_dir=`$as_dirname -- "$ac_file" ||
12238$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12239	 X"$ac_file" : 'X\(//\)[^/]' \| \
12240	 X"$ac_file" : 'X\(//\)$' \| \
12241	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12242$as_echo X"$ac_file" |
12243    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12244	    s//\1/
12245	    q
12246	  }
12247	  /^X\(\/\/\)[^/].*/{
12248	    s//\1/
12249	    q
12250	  }
12251	  /^X\(\/\/\)$/{
12252	    s//\1/
12253	    q
12254	  }
12255	  /^X\(\/\).*/{
12256	    s//\1/
12257	    q
12258	  }
12259	  s/.*/./; q'`
12260  as_dir="$ac_dir"; as_fn_mkdir_p
12261  ac_builddir=.
12262
12263case "$ac_dir" in
12264.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12265*)
12266  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12267  # A ".." for each directory in $ac_dir_suffix.
12268  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12269  case $ac_top_builddir_sub in
12270  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12271  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12272  esac ;;
12273esac
12274ac_abs_top_builddir=$ac_pwd
12275ac_abs_builddir=$ac_pwd$ac_dir_suffix
12276# for backward compatibility:
12277ac_top_builddir=$ac_top_build_prefix
12278
12279case $srcdir in
12280  .)  # We are building in place.
12281    ac_srcdir=.
12282    ac_top_srcdir=$ac_top_builddir_sub
12283    ac_abs_top_srcdir=$ac_pwd ;;
12284  [\\/]* | ?:[\\/]* )  # Absolute name.
12285    ac_srcdir=$srcdir$ac_dir_suffix;
12286    ac_top_srcdir=$srcdir
12287    ac_abs_top_srcdir=$srcdir ;;
12288  *) # Relative name.
12289    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12290    ac_top_srcdir=$ac_top_build_prefix$srcdir
12291    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12292esac
12293ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12294
12295
12296  case $ac_mode in
12297  :F)
12298  #
12299  # CONFIG_FILE
12300  #
12301
12302  case $INSTALL in
12303  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12304  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12305  esac
12306_ACEOF
12307
12308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12309# If the template does not know about datarootdir, expand it.
12310# FIXME: This hack should be removed a few years after 2.60.
12311ac_datarootdir_hack=; ac_datarootdir_seen=
12312ac_sed_dataroot='
12313/datarootdir/ {
12314  p
12315  q
12316}
12317/@datadir@/p
12318/@docdir@/p
12319/@infodir@/p
12320/@localedir@/p
12321/@mandir@/p'
12322case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12323*datarootdir*) ac_datarootdir_seen=yes;;
12324*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12326$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12327_ACEOF
12328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12329  ac_datarootdir_hack='
12330  s&@datadir@&$datadir&g
12331  s&@docdir@&$docdir&g
12332  s&@infodir@&$infodir&g
12333  s&@localedir@&$localedir&g
12334  s&@mandir@&$mandir&g
12335  s&\\\${datarootdir}&$datarootdir&g' ;;
12336esac
12337_ACEOF
12338
12339# Neutralize VPATH when `$srcdir' = `.'.
12340# Shell code in configure.ac might set extrasub.
12341# FIXME: do we really want to maintain this feature?
12342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12343ac_sed_extra="$ac_vpsub
12344$extrasub
12345_ACEOF
12346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12347:t
12348/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12349s|@configure_input@|$ac_sed_conf_input|;t t
12350s&@top_builddir@&$ac_top_builddir_sub&;t t
12351s&@top_build_prefix@&$ac_top_build_prefix&;t t
12352s&@srcdir@&$ac_srcdir&;t t
12353s&@abs_srcdir@&$ac_abs_srcdir&;t t
12354s&@top_srcdir@&$ac_top_srcdir&;t t
12355s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12356s&@builddir@&$ac_builddir&;t t
12357s&@abs_builddir@&$ac_abs_builddir&;t t
12358s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12359s&@INSTALL@&$ac_INSTALL&;t t
12360$ac_datarootdir_hack
12361"
12362eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12363  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12364
12365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12366  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12367  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12368      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12369  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12370which seems to be undefined.  Please make sure it is defined" >&5
12371$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12372which seems to be undefined.  Please make sure it is defined" >&2;}
12373
12374  rm -f "$ac_tmp/stdin"
12375  case $ac_file in
12376  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12377  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12378  esac \
12379  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12380 ;;
12381  :H)
12382  #
12383  # CONFIG_HEADER
12384  #
12385  if test x"$ac_file" != x-; then
12386    {
12387      $as_echo "/* $configure_input  */" \
12388      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12389    } >"$ac_tmp/config.h" \
12390      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12391    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12392      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12393$as_echo "$as_me: $ac_file is unchanged" >&6;}
12394    else
12395      rm -f "$ac_file"
12396      mv "$ac_tmp/config.h" "$ac_file" \
12397	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12398    fi
12399  else
12400    $as_echo "/* $configure_input  */" \
12401      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12402      || as_fn_error $? "could not create -" "$LINENO" 5
12403  fi
12404 ;;
12405
12406  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12407$as_echo "$as_me: executing $ac_file commands" >&6;}
12408 ;;
12409  esac
12410
12411
12412  case $ac_file$ac_mode in
12413    "default-1":C) if test -f .devel; then
12414	echo timestamp > stamp-h
12415	cat $srcdir/Makefile-devel-adds >> Makefile
12416	make depend
12417fi ;;
12418
12419  esac
12420done # for ac_tag
12421
12422
12423as_fn_exit 0
12424_ACEOF
12425ac_clean_files=$ac_clean_files_save
12426
12427test $ac_write_fail = 0 ||
12428  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12429
12430
12431# configure is writing to config.log, and then calls config.status.
12432# config.status does its own redirection, appending to config.log.
12433# Unfortunately, on DOS this fails, as config.log is still kept open
12434# by configure, so config.status won't be able to write to it; its
12435# output is simply discarded.  So we exec the FD to /dev/null,
12436# effectively closing config.log, so it can be properly (re)opened and
12437# appended to by config.status.  When coming back to configure, we
12438# need to make the FD available again.
12439if test "$no_create" != yes; then
12440  ac_cs_success=:
12441  ac_config_status_args=
12442  test "$silent" = yes &&
12443    ac_config_status_args="$ac_config_status_args --quiet"
12444  exec 5>/dev/null
12445  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12446  exec 5>>config.log
12447  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12448  # would make configure fail if this is the last instruction.
12449  $ac_cs_success || as_fn_exit 1
12450fi
12451if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12452  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12453$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12454fi
12455
12456exit 0
12457