117680Spst#! /bin/sh
2214478Srpaulo# From configure.in Revision: 1.204 .
3127668Sbms# Guess values for system-dependent variables and create Makefiles.
4251158Sdelphij# Generated by GNU Autoconf 2.68.
5111726Sfenner#
6251158Sdelphij#
7172683Smlaier# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8251158Sdelphij# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9251158Sdelphij# Foundation, Inc.
10251158Sdelphij#
11251158Sdelphij#
12127668Sbms# This configure script is free software; the Free Software Foundation
13127668Sbms# gives unlimited permission to copy, distribute and modify it.
14251158Sdelphij## -------------------- ##
15251158Sdelphij## M4sh Initialization. ##
16251158Sdelphij## -------------------- ##
1775115Sfenner
18172683Smlaier# Be more Bourne compatible
19172683SmlaierDUALCASE=1; export DUALCASE # for MKS sh
20251158Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21127668Sbms  emulate sh
22127668Sbms  NULLCMD=:
23251158Sdelphij  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24127668Sbms  # is contrary to our usage.  Disable this feature.
25127668Sbms  alias -g '${1+"$@"}'='"$@"'
26172683Smlaier  setopt NO_GLOB_SUBST
27172683Smlaierelse
28251158Sdelphij  case `(set -o) 2>/dev/null` in #(
29251158Sdelphij  *posix*) :
30251158Sdelphij    set -o posix ;; #(
31251158Sdelphij  *) :
32251158Sdelphij     ;;
33172683Smlaieresac
34127668Sbmsfi
3575115Sfenner
36172683Smlaier
37251158Sdelphijas_nl='
38251158Sdelphij'
39251158Sdelphijexport as_nl
40251158Sdelphij# Printing a long string crashes Solaris 7 /usr/bin/printf.
41251158Sdelphijas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42251158Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43251158Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44251158Sdelphij# Prefer a ksh shell builtin over an external printf program on Solaris,
45251158Sdelphij# but without wasting forks for bash or zsh.
46251158Sdelphijif test -z "$BASH_VERSION$ZSH_VERSION" \
47251158Sdelphij    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48251158Sdelphij  as_echo='print -r --'
49251158Sdelphij  as_echo_n='print -rn --'
50251158Sdelphijelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51251158Sdelphij  as_echo='printf %s\n'
52251158Sdelphij  as_echo_n='printf %s'
53251158Sdelphijelse
54251158Sdelphij  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55251158Sdelphij    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56251158Sdelphij    as_echo_n='/usr/ucb/echo -n'
57172683Smlaier  else
58251158Sdelphij    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59251158Sdelphij    as_echo_n_body='eval
60251158Sdelphij      arg=$1;
61251158Sdelphij      case $arg in #(
62251158Sdelphij      *"$as_nl"*)
63251158Sdelphij	expr "X$arg" : "X\\(.*\\)$as_nl";
64251158Sdelphij	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65251158Sdelphij      esac;
66251158Sdelphij      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67251158Sdelphij    '
68251158Sdelphij    export as_echo_n_body
69251158Sdelphij    as_echo_n='sh -c $as_echo_n_body as_echo'
70172683Smlaier  fi
71251158Sdelphij  export as_echo_body
72251158Sdelphij  as_echo='sh -c $as_echo_body as_echo'
73172683Smlaierfi
74172683Smlaier
75251158Sdelphij# The user is always right.
76251158Sdelphijif test "${PATH_SEPARATOR+set}" != set; then
77251158Sdelphij  PATH_SEPARATOR=:
78251158Sdelphij  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79251158Sdelphij    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80251158Sdelphij      PATH_SEPARATOR=';'
81251158Sdelphij  }
82127668Sbmsfi
8375115Sfenner
8475115Sfenner
85172683Smlaier# IFS
86172683Smlaier# We need space, tab and new line, in precisely that order.  Quoting is
87172683Smlaier# there to prevent editors from complaining about space-tab.
88172683Smlaier# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89172683Smlaier# splitting by setting IFS to empty value.)
90172683SmlaierIFS=" ""	$as_nl"
91172683Smlaier
92172683Smlaier# Find who we are.  Look in the path if we contain no directory separator.
93251158Sdelphijas_myself=
94251158Sdelphijcase $0 in #((
95172683Smlaier  *[\\/]* ) as_myself=$0 ;;
96172683Smlaier  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97172683Smlaierfor as_dir in $PATH
98172683Smlaierdo
99172683Smlaier  IFS=$as_save_IFS
100172683Smlaier  test -z "$as_dir" && as_dir=.
101251158Sdelphij    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102251158Sdelphij  done
103172683SmlaierIFS=$as_save_IFS
104172683Smlaier
105172683Smlaier     ;;
106172683Smlaieresac
107172683Smlaier# We did not find ourselves, most probably we were run as `sh COMMAND'
108172683Smlaier# in which case we are not to be found in the path.
109172683Smlaierif test "x$as_myself" = x; then
110172683Smlaier  as_myself=$0
111172683Smlaierfi
112172683Smlaierif test ! -f "$as_myself"; then
113251158Sdelphij  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114251158Sdelphij  exit 1
115172683Smlaierfi
116172683Smlaier
117251158Sdelphij# Unset variables that we do not need and which cause bugs (e.g. in
118251158Sdelphij# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119251158Sdelphij# suppresses any "Segmentation fault" message there.  '((' could
120251158Sdelphij# trigger a bug in pdksh 5.2.14.
121251158Sdelphijfor as_var in BASH_ENV ENV MAIL MAILPATH
122251158Sdelphijdo eval test x\${$as_var+set} = xset \
123251158Sdelphij  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124172683Smlaierdone
125127668SbmsPS1='$ '
126127668SbmsPS2='> '
127127668SbmsPS4='+ '
12875115Sfenner
129127668Sbms# NLS nuisances.
130251158SdelphijLC_ALL=C
131251158Sdelphijexport LC_ALL
132251158SdelphijLANGUAGE=C
133251158Sdelphijexport LANGUAGE
13475115Sfenner
135172683Smlaier# CDPATH.
136251158Sdelphij(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13775115Sfenner
138172683Smlaierif test "x$CONFIG_SHELL" = x; then
139251158Sdelphij  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140251158Sdelphij  emulate sh
141251158Sdelphij  NULLCMD=:
142251158Sdelphij  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143251158Sdelphij  # is contrary to our usage.  Disable this feature.
144251158Sdelphij  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145251158Sdelphij  setopt NO_GLOB_SUBST
146172683Smlaierelse
147251158Sdelphij  case \`(set -o) 2>/dev/null\` in #(
148251158Sdelphij  *posix*) :
149251158Sdelphij    set -o posix ;; #(
150251158Sdelphij  *) :
151251158Sdelphij     ;;
152251158Sdelphijesac
153127668Sbmsfi
154251158Sdelphij"
155251158Sdelphij  as_required="as_fn_return () { (exit \$1); }
156251158Sdelphijas_fn_success () { as_fn_return 0; }
157251158Sdelphijas_fn_failure () { as_fn_return 1; }
158251158Sdelphijas_fn_ret_success () { return 0; }
159251158Sdelphijas_fn_ret_failure () { return 1; }
16075115Sfenner
161172683Smlaierexitcode=0
162251158Sdelphijas_fn_success || { exitcode=1; echo as_fn_success failed.; }
163251158Sdelphijas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164251158Sdelphijas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165251158Sdelphijas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166251158Sdelphijif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
16775115Sfenner
168172683Smlaierelse
169251158Sdelphij  exitcode=1; echo positional parameters were not saved.
170172683Smlaierfi
171251158Sdelphijtest x\$exitcode = x0 || exit 1"
172251158Sdelphij  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173251158Sdelphij  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174251158Sdelphij  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175251158Sdelphij  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176251158Sdelphijtest \$(( 1 + 1 )) = 2 || exit 1"
177251158Sdelphij  if (eval "$as_required") 2>/dev/null; then :
178251158Sdelphij  as_have_required=yes
179172683Smlaierelse
180251158Sdelphij  as_have_required=no
181172683Smlaierfi
182251158Sdelphij  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183172683Smlaier
184172683Smlaierelse
185251158Sdelphij  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186251158Sdelphijas_found=false
187127668Sbmsfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188127668Sbmsdo
189127668Sbms  IFS=$as_save_IFS
190127668Sbms  test -z "$as_dir" && as_dir=.
191251158Sdelphij  as_found=:
192251158Sdelphij  case $as_dir in #(
193127668Sbms	 /*)
194172683Smlaier	   for as_base in sh bash ksh sh5; do
195251158Sdelphij	     # Try only shells that exist, to save several forks.
196251158Sdelphij	     as_shell=$as_dir/$as_base
197251158Sdelphij	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198251158Sdelphij		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199251158Sdelphij  CONFIG_SHELL=$as_shell as_have_required=yes
200251158Sdelphij		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201251158Sdelphij  break 2
202251158Sdelphijfi
203251158Sdelphijfi
204172683Smlaier	   done;;
205172683Smlaier       esac
206251158Sdelphij  as_found=false
207172683Smlaierdone
208251158Sdelphij$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209251158Sdelphij	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210251158Sdelphij  CONFIG_SHELL=$SHELL as_have_required=yes
211251158Sdelphijfi; }
212172683SmlaierIFS=$as_save_IFS
213172683Smlaier
214172683Smlaier
215251158Sdelphij      if test "x$CONFIG_SHELL" != x; then :
216251158Sdelphij  # We cannot yet assume a decent shell, so we have to provide a
217251158Sdelphij	# neutralization value for shells without unset; and this also
218251158Sdelphij	# works around shells that cannot unset nonexistent variables.
219251158Sdelphij	# Preserve -v and -x to the replacement shell.
220251158Sdelphij	BASH_ENV=/dev/null
221251158Sdelphij	ENV=/dev/null
222251158Sdelphij	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223251158Sdelphij	export CONFIG_SHELL
224251158Sdelphij	case $- in # ((((
225251158Sdelphij	  *v*x* | *x*v* ) as_opts=-vx ;;
226251158Sdelphij	  *v* ) as_opts=-v ;;
227251158Sdelphij	  *x* ) as_opts=-x ;;
228251158Sdelphij	  * ) as_opts= ;;
229251158Sdelphij	esac
230251158Sdelphij	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
231172683Smlaierfi
232172683Smlaier
233251158Sdelphij    if test x$as_have_required = xno; then :
234251158Sdelphij  $as_echo "$0: This script requires a shell more modern than all"
235251158Sdelphij  $as_echo "$0: the shells that I found on your system."
236251158Sdelphij  if test x${ZSH_VERSION+set} = xset ; then
237251158Sdelphij    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
238251158Sdelphij    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239251158Sdelphij  else
240251158Sdelphij    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
241251158Sdelphij$0: including any error possibly output before this
242251158Sdelphij$0: message. Then install a modern shell, or manually run
243251158Sdelphij$0: the script under such a shell if you do have one."
244251158Sdelphij  fi
245251158Sdelphij  exit 1
246172683Smlaierfi
247172683Smlaierfi
248172683Smlaierfi
249251158SdelphijSHELL=${CONFIG_SHELL-/bin/sh}
250251158Sdelphijexport SHELL
251251158Sdelphij# Unset more variables known to interfere with behavior of common tools.
252251158SdelphijCLICOLOR_FORCE= GREP_OPTIONS=
253251158Sdelphijunset CLICOLOR_FORCE GREP_OPTIONS
254172683Smlaier
255251158Sdelphij## --------------------- ##
256251158Sdelphij## M4sh Shell Functions. ##
257251158Sdelphij## --------------------- ##
258251158Sdelphij# as_fn_unset VAR
259251158Sdelphij# ---------------
260251158Sdelphij# Portably unset VAR.
261251158Sdelphijas_fn_unset ()
262251158Sdelphij{
263251158Sdelphij  { eval $1=; unset $1;}
264251158Sdelphij}
265251158Sdelphijas_unset=as_fn_unset
266172683Smlaier
267251158Sdelphij# as_fn_set_status STATUS
268251158Sdelphij# -----------------------
269251158Sdelphij# Set $? to STATUS, without forking.
270251158Sdelphijas_fn_set_status ()
271251158Sdelphij{
272251158Sdelphij  return $1
273251158Sdelphij} # as_fn_set_status
274172683Smlaier
275251158Sdelphij# as_fn_exit STATUS
276251158Sdelphij# -----------------
277251158Sdelphij# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278251158Sdelphijas_fn_exit ()
279251158Sdelphij{
280251158Sdelphij  set +e
281251158Sdelphij  as_fn_set_status $1
282251158Sdelphij  exit $1
283251158Sdelphij} # as_fn_exit
284172683Smlaier
285251158Sdelphij# as_fn_mkdir_p
286251158Sdelphij# -------------
287251158Sdelphij# Create "$as_dir" as a directory, including parents if necessary.
288251158Sdelphijas_fn_mkdir_p ()
289251158Sdelphij{
290172683Smlaier
291251158Sdelphij  case $as_dir in #(
292251158Sdelphij  -*) as_dir=./$as_dir;;
293251158Sdelphij  esac
294251158Sdelphij  test -d "$as_dir" || eval $as_mkdir_p || {
295251158Sdelphij    as_dirs=
296251158Sdelphij    while :; do
297251158Sdelphij      case $as_dir in #(
298251158Sdelphij      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299251158Sdelphij      *) as_qdir=$as_dir;;
300251158Sdelphij      esac
301251158Sdelphij      as_dirs="'$as_qdir' $as_dirs"
302251158Sdelphij      as_dir=`$as_dirname -- "$as_dir" ||
303251158Sdelphij$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304251158Sdelphij	 X"$as_dir" : 'X\(//\)[^/]' \| \
305251158Sdelphij	 X"$as_dir" : 'X\(//\)$' \| \
306251158Sdelphij	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307251158Sdelphij$as_echo X"$as_dir" |
308251158Sdelphij    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309251158Sdelphij	    s//\1/
310251158Sdelphij	    q
311251158Sdelphij	  }
312251158Sdelphij	  /^X\(\/\/\)[^/].*/{
313251158Sdelphij	    s//\1/
314251158Sdelphij	    q
315251158Sdelphij	  }
316251158Sdelphij	  /^X\(\/\/\)$/{
317251158Sdelphij	    s//\1/
318251158Sdelphij	    q
319251158Sdelphij	  }
320251158Sdelphij	  /^X\(\/\).*/{
321251158Sdelphij	    s//\1/
322251158Sdelphij	    q
323251158Sdelphij	  }
324251158Sdelphij	  s/.*/./; q'`
325251158Sdelphij      test -d "$as_dir" && break
326251158Sdelphij    done
327251158Sdelphij    test -z "$as_dirs" || eval "mkdir $as_dirs"
328251158Sdelphij  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32975115Sfenner
330172683Smlaier
331251158Sdelphij} # as_fn_mkdir_p
332251158Sdelphij# as_fn_append VAR VALUE
333251158Sdelphij# ----------------------
334251158Sdelphij# Append the text in VALUE to the end of the definition contained in VAR. Take
335251158Sdelphij# advantage of any shell optimizations that allow amortized linear growth over
336251158Sdelphij# repeated appends, instead of the typical quadratic growth present in naive
337251158Sdelphij# implementations.
338251158Sdelphijif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339251158Sdelphij  eval 'as_fn_append ()
340251158Sdelphij  {
341251158Sdelphij    eval $1+=\$2
342251158Sdelphij  }'
343251158Sdelphijelse
344251158Sdelphij  as_fn_append ()
345251158Sdelphij  {
346251158Sdelphij    eval $1=\$$1\$2
347251158Sdelphij  }
348251158Sdelphijfi # as_fn_append
349172683Smlaier
350251158Sdelphij# as_fn_arith ARG...
351251158Sdelphij# ------------------
352251158Sdelphij# Perform arithmetic evaluation on the ARGs, and store the result in the
353251158Sdelphij# global $as_val. Take advantage of shells that can avoid forks. The arguments
354251158Sdelphij# must be portable across $(()) and expr.
355251158Sdelphijif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356251158Sdelphij  eval 'as_fn_arith ()
357251158Sdelphij  {
358251158Sdelphij    as_val=$(( $* ))
359251158Sdelphij  }'
360251158Sdelphijelse
361251158Sdelphij  as_fn_arith ()
362251158Sdelphij  {
363251158Sdelphij    as_val=`expr "$@" || test $? -eq 1`
364251158Sdelphij  }
365251158Sdelphijfi # as_fn_arith
366172683Smlaier
367172683Smlaier
368251158Sdelphij# as_fn_error STATUS ERROR [LINENO LOG_FD]
369251158Sdelphij# ----------------------------------------
370251158Sdelphij# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371251158Sdelphij# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372251158Sdelphij# script with STATUS, using 1 if that was 0.
373251158Sdelphijas_fn_error ()
374251158Sdelphij{
375251158Sdelphij  as_status=$1; test $as_status -eq 0 && as_status=1
376251158Sdelphij  if test "$4"; then
377251158Sdelphij    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379251158Sdelphij  fi
380251158Sdelphij  $as_echo "$as_me: error: $2" >&2
381251158Sdelphij  as_fn_exit $as_status
382251158Sdelphij} # as_fn_error
383172683Smlaier
384251158Sdelphijif expr a : '\(a\)' >/dev/null 2>&1 &&
385251158Sdelphij   test "X`expr 00001 : '.*\(...\)'`" = X001; then
386251158Sdelphij  as_expr=expr
387172683Smlaierelse
388251158Sdelphij  as_expr=false
389172683Smlaierfi
390172683Smlaier
391251158Sdelphijif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392251158Sdelphij  as_basename=basename
393172683Smlaierelse
394251158Sdelphij  as_basename=false
395172683Smlaierfi
396172683Smlaier
397251158Sdelphijif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398251158Sdelphij  as_dirname=dirname
399172683Smlaierelse
400251158Sdelphij  as_dirname=false
401172683Smlaierfi
402172683Smlaier
403251158Sdelphijas_me=`$as_basename -- "$0" ||
404251158Sdelphij$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405251158Sdelphij	 X"$0" : 'X\(//\)$' \| \
406251158Sdelphij	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407251158Sdelphij$as_echo X/"$0" |
408251158Sdelphij    sed '/^.*\/\([^/][^/]*\)\/*$/{
409251158Sdelphij	    s//\1/
410251158Sdelphij	    q
411251158Sdelphij	  }
412251158Sdelphij	  /^X\/\(\/\/\)$/{
413251158Sdelphij	    s//\1/
414251158Sdelphij	    q
415251158Sdelphij	  }
416251158Sdelphij	  /^X\/\(\/\).*/{
417251158Sdelphij	    s//\1/
418251158Sdelphij	    q
419251158Sdelphij	  }
420251158Sdelphij	  s/.*/./; q'`
421172683Smlaier
422251158Sdelphij# Avoid depending upon Character Ranges.
423251158Sdelphijas_cr_letters='abcdefghijklmnopqrstuvwxyz'
424251158Sdelphijas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425251158Sdelphijas_cr_Letters=$as_cr_letters$as_cr_LETTERS
426251158Sdelphijas_cr_digits='0123456789'
427251158Sdelphijas_cr_alnum=$as_cr_Letters$as_cr_digits
428172683Smlaier
429172683Smlaier
430251158Sdelphij  as_lineno_1=$LINENO as_lineno_1a=$LINENO
431251158Sdelphij  as_lineno_2=$LINENO as_lineno_2a=$LINENO
432251158Sdelphij  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433251158Sdelphij  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434251158Sdelphij  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
435172683Smlaier  sed -n '
436172683Smlaier    p
437172683Smlaier    /[$]LINENO/=
438172683Smlaier  ' <$as_myself |
439127668Sbms    sed '
440172683Smlaier      s/[$]LINENO.*/&-/
441172683Smlaier      t lineno
442172683Smlaier      b
443172683Smlaier      :lineno
444127668Sbms      N
445172683Smlaier      :loop
446172683Smlaier      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447127668Sbms      t loop
448172683Smlaier      s/-\n.*//
449127668Sbms    ' >$as_me.lineno &&
450172683Smlaier  chmod +x "$as_me.lineno" ||
451251158Sdelphij    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
45275115Sfenner
453127668Sbms  # Don't try to exec as it changes $[0], causing all sort of problems
454127668Sbms  # (the dirname of $[0] is not the place where we might find the
455172683Smlaier  # original and so on.  Autoconf is especially sensitive to this).
456172683Smlaier  . "./$as_me.lineno"
457127668Sbms  # Exit status is that of the last command.
458127668Sbms  exit
459127668Sbms}
46075115Sfenner
461172683SmlaierECHO_C= ECHO_N= ECHO_T=
462251158Sdelphijcase `echo -n x` in #(((((
463172683Smlaier-n*)
464251158Sdelphij  case `echo 'xy\c'` in
465172683Smlaier  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
466251158Sdelphij  xy)  ECHO_C='\c';;
467251158Sdelphij  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
468251158Sdelphij       ECHO_T='	';;
469172683Smlaier  esac;;
470172683Smlaier*)
471172683Smlaier  ECHO_N='-n';;
472127668Sbmsesac
47375115Sfenner
474127668Sbmsrm -f conf$$ conf$$.exe conf$$.file
475172683Smlaierif test -d conf$$.dir; then
476172683Smlaier  rm -f conf$$.dir/conf$$.file
477172683Smlaierelse
478172683Smlaier  rm -f conf$$.dir
479251158Sdelphij  mkdir conf$$.dir 2>/dev/null
480172683Smlaierfi
481251158Sdelphijif (echo >conf$$.file) 2>/dev/null; then
482251158Sdelphij  if ln -s conf$$.file conf$$ 2>/dev/null; then
483251158Sdelphij    as_ln_s='ln -s'
484251158Sdelphij    # ... but there are two gotchas:
485251158Sdelphij    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486251158Sdelphij    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487251158Sdelphij    # In both cases, we have to default to `cp -p'.
488251158Sdelphij    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489251158Sdelphij      as_ln_s='cp -p'
490251158Sdelphij  elif ln conf$$.file conf$$ 2>/dev/null; then
491251158Sdelphij    as_ln_s=ln
492251158Sdelphij  else
493127668Sbms    as_ln_s='cp -p'
494251158Sdelphij  fi
495127668Sbmselse
496127668Sbms  as_ln_s='cp -p'
497127668Sbmsfi
498172683Smlaierrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499172683Smlaierrmdir conf$$.dir 2>/dev/null
50075115Sfenner
501127668Sbmsif mkdir -p . 2>/dev/null; then
502251158Sdelphij  as_mkdir_p='mkdir -p "$as_dir"'
503127668Sbmselse
504172683Smlaier  test -d ./-p && rmdir ./-p
505127668Sbms  as_mkdir_p=false
506127668Sbmsfi
50775115Sfenner
508172683Smlaierif test -x / >/dev/null 2>&1; then
509172683Smlaier  as_test_x='test -x'
510172683Smlaierelse
511172683Smlaier  if ls -dL / >/dev/null 2>&1; then
512172683Smlaier    as_ls_L_option=L
513172683Smlaier  else
514172683Smlaier    as_ls_L_option=
515172683Smlaier  fi
516172683Smlaier  as_test_x='
517172683Smlaier    eval sh -c '\''
518172683Smlaier      if test -d "$1"; then
519251158Sdelphij	test -d "$1/.";
520172683Smlaier      else
521251158Sdelphij	case $1 in #(
522251158Sdelphij	-*)set "./$1";;
523172683Smlaier	esac;
524251158Sdelphij	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525172683Smlaier	???[sx]*):;;*)false;;esac;fi
526172683Smlaier    '\'' sh
527172683Smlaier  '
528172683Smlaierfi
529172683Smlaieras_executable_p=$as_test_x
53075115Sfenner
531127668Sbms# Sed expression to map a string onto a valid CPP name.
532172683Smlaieras_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53375115Sfenner
534127668Sbms# Sed expression to map a string onto a valid variable name.
535172683Smlaieras_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53675115Sfenner
53775115Sfenner
538251158Sdelphijtest -n "$DJDIR" || exec 7<&0 </dev/null
539251158Sdelphijexec 6>&1
54075115Sfenner
541127668Sbms# Name of the host.
542251158Sdelphij# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
543127668Sbms# so uname gets run too.
544127668Sbmsac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
54575115Sfenner
546127668Sbms#
547127668Sbms# Initializations.
548127668Sbms#
549127668Sbmsac_default_prefix=/usr/local
550172683Smlaierac_clean_files=
551127668Sbmsac_config_libobj_dir=.
552172683SmlaierLIBOBJS=
553127668Sbmscross_compiling=no
554127668Sbmssubdirs=
555127668SbmsMFLAGS=
556127668SbmsMAKEFLAGS=
55775115Sfenner
558127668Sbms# Identity of this package.
559127668SbmsPACKAGE_NAME=
560127668SbmsPACKAGE_TARNAME=
561127668SbmsPACKAGE_VERSION=
562127668SbmsPACKAGE_STRING=
563127668SbmsPACKAGE_BUGREPORT=
564251158SdelphijPACKAGE_URL=
56575115Sfenner
566127668Sbmsac_unique_file="tcpdump.c"
567127668Sbms# Factoring default headers for most tests.
568127668Sbmsac_includes_default="\
569127668Sbms#include <stdio.h>
570172683Smlaier#ifdef HAVE_SYS_TYPES_H
571127668Sbms# include <sys/types.h>
572127668Sbms#endif
573172683Smlaier#ifdef HAVE_SYS_STAT_H
574127668Sbms# include <sys/stat.h>
575127668Sbms#endif
576172683Smlaier#ifdef STDC_HEADERS
577127668Sbms# include <stdlib.h>
578127668Sbms# include <stddef.h>
579127668Sbms#else
580172683Smlaier# ifdef HAVE_STDLIB_H
581127668Sbms#  include <stdlib.h>
582127668Sbms# endif
583127668Sbms#endif
584172683Smlaier#ifdef HAVE_STRING_H
585172683Smlaier# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586127668Sbms#  include <memory.h>
587127668Sbms# endif
588127668Sbms# include <string.h>
589127668Sbms#endif
590172683Smlaier#ifdef HAVE_STRINGS_H
591127668Sbms# include <strings.h>
592127668Sbms#endif
593172683Smlaier#ifdef HAVE_INTTYPES_H
594127668Sbms# include <inttypes.h>
595127668Sbms#endif
596172683Smlaier#ifdef HAVE_STDINT_H
597172683Smlaier# include <stdint.h>
598172683Smlaier#endif
599172683Smlaier#ifdef HAVE_UNISTD_H
600127668Sbms# include <unistd.h>
601127668Sbms#endif"
60275115Sfenner
603251158Sdelphijac_subst_vars='LTLIBOBJS
604251158SdelphijINSTALL_DATA
605251158SdelphijINSTALL_SCRIPT
606251158SdelphijINSTALL_PROGRAM
607251158SdelphijMAN_MISC_INFO
608251158SdelphijMAN_FILE_FORMATS
609251158SdelphijLOCALSRC
610251158SdelphijV_PCAPDEP
611251158SdelphijV_INCLS
612251158SdelphijV_GROUP
613251158SdelphijV_DEFS
614251158SdelphijV_CCOPT
615251158SdelphijRANLIB
616251158SdelphijPCAP_CONFIG
617251158SdelphijLIBOBJS
618251158SdelphijEGREP
619251158SdelphijGREP
620251158SdelphijCPP
621251158SdelphijOBJEXT
622251158SdelphijEXEEXT
623251158Sdelphijac_ct_CC
624251158SdelphijCPPFLAGS
625251158SdelphijLDFLAGS
626251158SdelphijCFLAGS
627251158SdelphijCC
628251158SdelphijSHLICC2
629251158Sdelphijhost_os
630251158Sdelphijhost_vendor
631251158Sdelphijhost_cpu
632251158Sdelphijhost
633251158Sdelphijbuild_os
634251158Sdelphijbuild_vendor
635251158Sdelphijbuild_cpu
636251158Sdelphijbuild
637251158Sdelphijtarget_alias
638251158Sdelphijhost_alias
639251158Sdelphijbuild_alias
640251158SdelphijLIBS
641251158SdelphijECHO_T
642251158SdelphijECHO_N
643251158SdelphijECHO_C
644251158SdelphijDEFS
645251158Sdelphijmandir
646251158Sdelphijlocaledir
647251158Sdelphijlibdir
648251158Sdelphijpsdir
649251158Sdelphijpdfdir
650251158Sdelphijdvidir
651251158Sdelphijhtmldir
652251158Sdelphijinfodir
653251158Sdelphijdocdir
654251158Sdelphijoldincludedir
655251158Sdelphijincludedir
656251158Sdelphijlocalstatedir
657251158Sdelphijsharedstatedir
658251158Sdelphijsysconfdir
659251158Sdelphijdatadir
660251158Sdelphijdatarootdir
661251158Sdelphijlibexecdir
662251158Sdelphijsbindir
663251158Sdelphijbindir
664251158Sdelphijprogram_transform_name
665251158Sdelphijprefix
666251158Sdelphijexec_prefix
667251158SdelphijPACKAGE_URL
668251158SdelphijPACKAGE_BUGREPORT
669251158SdelphijPACKAGE_STRING
670251158SdelphijPACKAGE_VERSION
671251158SdelphijPACKAGE_TARNAME
672251158SdelphijPACKAGE_NAME
673172683SmlaierPATH_SEPARATOR
674251158SdelphijSHELL'
675127668Sbmsac_subst_files=''
676251158Sdelphijac_user_opts='
677251158Sdelphijenable_option_checking
678251158Sdelphijwith_gcc
679251158Sdelphijenable_universal
680251158Sdelphijwith_smi
681251158Sdelphijenable_smb
682251158Sdelphijwith_user
683251158Sdelphijwith_chroot
684251158Sdelphijenable_ipv6
685251158Sdelphijwith_crypto
686251158Sdelphij'
687172683Smlaier      ac_precious_vars='build_alias
688172683Smlaierhost_alias
689172683Smlaiertarget_alias
690172683SmlaierCC
691172683SmlaierCFLAGS
692172683SmlaierLDFLAGS
693172683SmlaierLIBS
694172683SmlaierCPPFLAGS
695172683SmlaierCPP'
69675115Sfenner
697172683Smlaier
69817680Spst# Initialize some variables set by options.
699127668Sbmsac_init_help=
700127668Sbmsac_init_version=false
701251158Sdelphijac_unrecognized_opts=
702251158Sdelphijac_unrecognized_sep=
70317680Spst# The variables have the same names as the options, with
70417680Spst# dashes changed to underlines.
705127668Sbmscache_file=/dev/null
70617680Spstexec_prefix=NONE
70717680Spstno_create=
70817680Spstno_recursion=
70917680Spstprefix=NONE
71017680Spstprogram_prefix=NONE
71117680Spstprogram_suffix=NONE
71217680Spstprogram_transform_name=s,x,x,
71317680Spstsilent=
71417680Spstsite=
71517680Spstsrcdir=
71617680Spstverbose=
71717680Spstx_includes=NONE
71817680Spstx_libraries=NONE
719127668Sbms
720127668Sbms# Installation directory options.
721127668Sbms# These are left unexpanded so users can "make install exec_prefix=/foo"
722127668Sbms# and all the variables that are supposed to be based on exec_prefix
723127668Sbms# by default will actually change.
724127668Sbms# Use braces instead of parens because sh, perl, etc. also accept them.
725172683Smlaier# (The list follows the same order as the GNU Coding Standards.)
72617680Spstbindir='${exec_prefix}/bin'
72717680Spstsbindir='${exec_prefix}/sbin'
72817680Spstlibexecdir='${exec_prefix}/libexec'
729172683Smlaierdatarootdir='${prefix}/share'
730172683Smlaierdatadir='${datarootdir}'
73117680Spstsysconfdir='${prefix}/etc'
73217680Spstsharedstatedir='${prefix}/com'
73317680Spstlocalstatedir='${prefix}/var'
73417680Spstincludedir='${prefix}/include'
73517680Spstoldincludedir='/usr/include'
736172683Smlaierdocdir='${datarootdir}/doc/${PACKAGE}'
737172683Smlaierinfodir='${datarootdir}/info'
738172683Smlaierhtmldir='${docdir}'
739172683Smlaierdvidir='${docdir}'
740172683Smlaierpdfdir='${docdir}'
741172683Smlaierpsdir='${docdir}'
742172683Smlaierlibdir='${exec_prefix}/lib'
743172683Smlaierlocaledir='${datarootdir}/locale'
744172683Smlaiermandir='${datarootdir}/man'
74517680Spst
74617680Spstac_prev=
747172683Smlaierac_dashdash=
74817680Spstfor ac_option
74917680Spstdo
75017680Spst  # If the previous option needs an argument, assign it.
75117680Spst  if test -n "$ac_prev"; then
752172683Smlaier    eval $ac_prev=\$ac_option
75317680Spst    ac_prev=
75417680Spst    continue
75517680Spst  fi
75617680Spst
757172683Smlaier  case $ac_option in
758251158Sdelphij  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759251158Sdelphij  *=)   ac_optarg= ;;
760251158Sdelphij  *)    ac_optarg=yes ;;
761172683Smlaier  esac
76217680Spst
76317680Spst  # Accept the important Cygnus configure options, so we can diagnose typos.
76417680Spst
765172683Smlaier  case $ac_dashdash$ac_option in
766172683Smlaier  --)
767172683Smlaier    ac_dashdash=yes ;;
76817680Spst
76917680Spst  -bindir | --bindir | --bindi | --bind | --bin | --bi)
77017680Spst    ac_prev=bindir ;;
77117680Spst  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772127668Sbms    bindir=$ac_optarg ;;
77317680Spst
77417680Spst  -build | --build | --buil | --bui | --bu)
775127668Sbms    ac_prev=build_alias ;;
77617680Spst  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777127668Sbms    build_alias=$ac_optarg ;;
77817680Spst
77917680Spst  -cache-file | --cache-file | --cache-fil | --cache-fi \
78017680Spst  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
78117680Spst    ac_prev=cache_file ;;
78217680Spst  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
78317680Spst  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784127668Sbms    cache_file=$ac_optarg ;;
78517680Spst
786127668Sbms  --config-cache | -C)
787127668Sbms    cache_file=config.cache ;;
788127668Sbms
789172683Smlaier  -datadir | --datadir | --datadi | --datad)
79017680Spst    ac_prev=datadir ;;
791172683Smlaier  -datadir=* | --datadir=* | --datadi=* | --datad=*)
792127668Sbms    datadir=$ac_optarg ;;
79317680Spst
794172683Smlaier  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795172683Smlaier  | --dataroo | --dataro | --datar)
796172683Smlaier    ac_prev=datarootdir ;;
797172683Smlaier  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798172683Smlaier  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799172683Smlaier    datarootdir=$ac_optarg ;;
800172683Smlaier
80117680Spst  -disable-* | --disable-*)
802251158Sdelphij    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
80317680Spst    # Reject names that are not valid shell variable names.
804251158Sdelphij    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
805251158Sdelphij      as_fn_error $? "invalid feature name: $ac_useropt"
806251158Sdelphij    ac_useropt_orig=$ac_useropt
807251158Sdelphij    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
808251158Sdelphij    case $ac_user_opts in
809251158Sdelphij      *"
810251158Sdelphij"enable_$ac_useropt"
811251158Sdelphij"*) ;;
812251158Sdelphij      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
813251158Sdelphij	 ac_unrecognized_sep=', ';;
814251158Sdelphij    esac
815251158Sdelphij    eval enable_$ac_useropt=no ;;
81617680Spst
817172683Smlaier  -docdir | --docdir | --docdi | --doc | --do)
818172683Smlaier    ac_prev=docdir ;;
819172683Smlaier  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820172683Smlaier    docdir=$ac_optarg ;;
821172683Smlaier
822172683Smlaier  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823172683Smlaier    ac_prev=dvidir ;;
824172683Smlaier  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825172683Smlaier    dvidir=$ac_optarg ;;
826172683Smlaier
82717680Spst  -enable-* | --enable-*)
828251158Sdelphij    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
82917680Spst    # Reject names that are not valid shell variable names.
830251158Sdelphij    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831251158Sdelphij      as_fn_error $? "invalid feature name: $ac_useropt"
832251158Sdelphij    ac_useropt_orig=$ac_useropt
833251158Sdelphij    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834251158Sdelphij    case $ac_user_opts in
835251158Sdelphij      *"
836251158Sdelphij"enable_$ac_useropt"
837251158Sdelphij"*) ;;
838251158Sdelphij      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
839251158Sdelphij	 ac_unrecognized_sep=', ';;
840251158Sdelphij    esac
841251158Sdelphij    eval enable_$ac_useropt=\$ac_optarg ;;
84217680Spst
84317680Spst  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
84417680Spst  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
84517680Spst  | --exec | --exe | --ex)
84617680Spst    ac_prev=exec_prefix ;;
84717680Spst  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
84817680Spst  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
84917680Spst  | --exec=* | --exe=* | --ex=*)
850127668Sbms    exec_prefix=$ac_optarg ;;
85117680Spst
85217680Spst  -gas | --gas | --ga | --g)
85317680Spst    # Obsolete; use --with-gas.
85417680Spst    with_gas=yes ;;
85517680Spst
856127668Sbms  -help | --help | --hel | --he | -h)
857127668Sbms    ac_init_help=long ;;
858127668Sbms  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
859127668Sbms    ac_init_help=recursive ;;
860127668Sbms  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
861127668Sbms    ac_init_help=short ;;
86217680Spst
86317680Spst  -host | --host | --hos | --ho)
864127668Sbms    ac_prev=host_alias ;;
86517680Spst  -host=* | --host=* | --hos=* | --ho=*)
866127668Sbms    host_alias=$ac_optarg ;;
86717680Spst
868172683Smlaier  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
869172683Smlaier    ac_prev=htmldir ;;
870172683Smlaier  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
871172683Smlaier  | --ht=*)
872172683Smlaier    htmldir=$ac_optarg ;;
873172683Smlaier
87417680Spst  -includedir | --includedir | --includedi | --included | --include \
87517680Spst  | --includ | --inclu | --incl | --inc)
87617680Spst    ac_prev=includedir ;;
87717680Spst  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
87817680Spst  | --includ=* | --inclu=* | --incl=* | --inc=*)
879127668Sbms    includedir=$ac_optarg ;;
88017680Spst
88117680Spst  -infodir | --infodir | --infodi | --infod | --info | --inf)
88217680Spst    ac_prev=infodir ;;
88317680Spst  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
884127668Sbms    infodir=$ac_optarg ;;
88517680Spst
88617680Spst  -libdir | --libdir | --libdi | --libd)
88717680Spst    ac_prev=libdir ;;
88817680Spst  -libdir=* | --libdir=* | --libdi=* | --libd=*)
889127668Sbms    libdir=$ac_optarg ;;
89017680Spst
89117680Spst  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
89217680Spst  | --libexe | --libex | --libe)
89317680Spst    ac_prev=libexecdir ;;
89417680Spst  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
89517680Spst  | --libexe=* | --libex=* | --libe=*)
896127668Sbms    libexecdir=$ac_optarg ;;
89717680Spst
898172683Smlaier  -localedir | --localedir | --localedi | --localed | --locale)
899172683Smlaier    ac_prev=localedir ;;
900172683Smlaier  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901172683Smlaier    localedir=$ac_optarg ;;
902172683Smlaier
90317680Spst  -localstatedir | --localstatedir | --localstatedi | --localstated \
904172683Smlaier  | --localstate | --localstat | --localsta | --localst | --locals)
90517680Spst    ac_prev=localstatedir ;;
90617680Spst  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
907172683Smlaier  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
908127668Sbms    localstatedir=$ac_optarg ;;
90917680Spst
91017680Spst  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
91117680Spst    ac_prev=mandir ;;
91217680Spst  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913127668Sbms    mandir=$ac_optarg ;;
91417680Spst
91517680Spst  -nfp | --nfp | --nf)
91617680Spst    # Obsolete; use --without-fp.
91717680Spst    with_fp=no ;;
91817680Spst
91917680Spst  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
920127668Sbms  | --no-cr | --no-c | -n)
92117680Spst    no_create=yes ;;
92217680Spst
92317680Spst  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
92417680Spst  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
92517680Spst    no_recursion=yes ;;
92617680Spst
92717680Spst  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
92817680Spst  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
92917680Spst  | --oldin | --oldi | --old | --ol | --o)
93017680Spst    ac_prev=oldincludedir ;;
93117680Spst  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
93217680Spst  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
93317680Spst  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
934127668Sbms    oldincludedir=$ac_optarg ;;
93517680Spst
93617680Spst  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
93717680Spst    ac_prev=prefix ;;
93817680Spst  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939127668Sbms    prefix=$ac_optarg ;;
94017680Spst
94117680Spst  -program-prefix | --program-prefix | --program-prefi | --program-pref \
94217680Spst  | --program-pre | --program-pr | --program-p)
94317680Spst    ac_prev=program_prefix ;;
94417680Spst  -program-prefix=* | --program-prefix=* | --program-prefi=* \
94517680Spst  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
946127668Sbms    program_prefix=$ac_optarg ;;
94717680Spst
94817680Spst  -program-suffix | --program-suffix | --program-suffi | --program-suff \
94917680Spst  | --program-suf | --program-su | --program-s)
95017680Spst    ac_prev=program_suffix ;;
95117680Spst  -program-suffix=* | --program-suffix=* | --program-suffi=* \
95217680Spst  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
953127668Sbms    program_suffix=$ac_optarg ;;
95417680Spst
95517680Spst  -program-transform-name | --program-transform-name \
95617680Spst  | --program-transform-nam | --program-transform-na \
95717680Spst  | --program-transform-n | --program-transform- \
95817680Spst  | --program-transform | --program-transfor \
95917680Spst  | --program-transfo | --program-transf \
96017680Spst  | --program-trans | --program-tran \
96117680Spst  | --progr-tra | --program-tr | --program-t)
96217680Spst    ac_prev=program_transform_name ;;
96317680Spst  -program-transform-name=* | --program-transform-name=* \
96417680Spst  | --program-transform-nam=* | --program-transform-na=* \
96517680Spst  | --program-transform-n=* | --program-transform-=* \
96617680Spst  | --program-transform=* | --program-transfor=* \
96717680Spst  | --program-transfo=* | --program-transf=* \
96817680Spst  | --program-trans=* | --program-tran=* \
96917680Spst  | --progr-tra=* | --program-tr=* | --program-t=*)
970127668Sbms    program_transform_name=$ac_optarg ;;
97117680Spst
972172683Smlaier  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
973172683Smlaier    ac_prev=pdfdir ;;
974172683Smlaier  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975172683Smlaier    pdfdir=$ac_optarg ;;
976172683Smlaier
977172683Smlaier  -psdir | --psdir | --psdi | --psd | --ps)
978172683Smlaier    ac_prev=psdir ;;
979172683Smlaier  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980172683Smlaier    psdir=$ac_optarg ;;
981172683Smlaier
98217680Spst  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
98317680Spst  | -silent | --silent | --silen | --sile | --sil)
98417680Spst    silent=yes ;;
98517680Spst
98617680Spst  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
98717680Spst    ac_prev=sbindir ;;
98817680Spst  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
98917680Spst  | --sbi=* | --sb=*)
990127668Sbms    sbindir=$ac_optarg ;;
99117680Spst
99217680Spst  -sharedstatedir | --sharedstatedir | --sharedstatedi \
99317680Spst  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
99417680Spst  | --sharedst | --shareds | --shared | --share | --shar \
99517680Spst  | --sha | --sh)
99617680Spst    ac_prev=sharedstatedir ;;
99717680Spst  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
99817680Spst  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
99917680Spst  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
100017680Spst  | --sha=* | --sh=*)
1001127668Sbms    sharedstatedir=$ac_optarg ;;
100217680Spst
100317680Spst  -site | --site | --sit)
100417680Spst    ac_prev=site ;;
100517680Spst  -site=* | --site=* | --sit=*)
1006127668Sbms    site=$ac_optarg ;;
100717680Spst
100817680Spst  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
100917680Spst    ac_prev=srcdir ;;
101017680Spst  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1011127668Sbms    srcdir=$ac_optarg ;;
101217680Spst
101317680Spst  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
101417680Spst  | --syscon | --sysco | --sysc | --sys | --sy)
101517680Spst    ac_prev=sysconfdir ;;
101617680Spst  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
101717680Spst  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1018127668Sbms    sysconfdir=$ac_optarg ;;
101917680Spst
102017680Spst  -target | --target | --targe | --targ | --tar | --ta | --t)
1021127668Sbms    ac_prev=target_alias ;;
102217680Spst  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1023127668Sbms    target_alias=$ac_optarg ;;
102417680Spst
102517680Spst  -v | -verbose | --verbose | --verbos | --verbo | --verb)
102617680Spst    verbose=yes ;;
102717680Spst
1028127668Sbms  -version | --version | --versio | --versi | --vers | -V)
1029127668Sbms    ac_init_version=: ;;
103017680Spst
103117680Spst  -with-* | --with-*)
1032251158Sdelphij    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
103317680Spst    # Reject names that are not valid shell variable names.
1034251158Sdelphij    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035251158Sdelphij      as_fn_error $? "invalid package name: $ac_useropt"
1036251158Sdelphij    ac_useropt_orig=$ac_useropt
1037251158Sdelphij    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038251158Sdelphij    case $ac_user_opts in
1039251158Sdelphij      *"
1040251158Sdelphij"with_$ac_useropt"
1041251158Sdelphij"*) ;;
1042251158Sdelphij      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1043251158Sdelphij	 ac_unrecognized_sep=', ';;
1044251158Sdelphij    esac
1045251158Sdelphij    eval with_$ac_useropt=\$ac_optarg ;;
104617680Spst
104717680Spst  -without-* | --without-*)
1048251158Sdelphij    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
104917680Spst    # Reject names that are not valid shell variable names.
1050251158Sdelphij    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051251158Sdelphij      as_fn_error $? "invalid package name: $ac_useropt"
1052251158Sdelphij    ac_useropt_orig=$ac_useropt
1053251158Sdelphij    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054251158Sdelphij    case $ac_user_opts in
1055251158Sdelphij      *"
1056251158Sdelphij"with_$ac_useropt"
1057251158Sdelphij"*) ;;
1058251158Sdelphij      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1059251158Sdelphij	 ac_unrecognized_sep=', ';;
1060251158Sdelphij    esac
1061251158Sdelphij    eval with_$ac_useropt=no ;;
106217680Spst
106317680Spst  --x)
106417680Spst    # Obsolete; use --with-x.
106517680Spst    with_x=yes ;;
106617680Spst
106717680Spst  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
106817680Spst  | --x-incl | --x-inc | --x-in | --x-i)
106917680Spst    ac_prev=x_includes ;;
107017680Spst  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
107117680Spst  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1072127668Sbms    x_includes=$ac_optarg ;;
107317680Spst
107417680Spst  -x-libraries | --x-libraries | --x-librarie | --x-librari \
107517680Spst  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
107617680Spst    ac_prev=x_libraries ;;
107717680Spst  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
107817680Spst  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1079127668Sbms    x_libraries=$ac_optarg ;;
108017680Spst
1081251158Sdelphij  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1082251158SdelphijTry \`$0 --help' for more information"
108317680Spst    ;;
108417680Spst
1085127668Sbms  *=*)
1086127668Sbms    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1087127668Sbms    # Reject names that are not valid shell variable names.
1088251158Sdelphij    case $ac_envvar in #(
1089251158Sdelphij      '' | [0-9]* | *[!_$as_cr_alnum]* )
1090251158Sdelphij      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1091251158Sdelphij    esac
1092172683Smlaier    eval $ac_envvar=\$ac_optarg
1093127668Sbms    export $ac_envvar ;;
1094127668Sbms
109517680Spst  *)
1096127668Sbms    # FIXME: should be removed in autoconf 3.0.
1097251158Sdelphij    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098127668Sbms    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099251158Sdelphij      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100251158Sdelphij    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
110117680Spst    ;;
110217680Spst
110317680Spst  esac
110417680Spstdone
110517680Spst
110617680Spstif test -n "$ac_prev"; then
1107127668Sbms  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1108251158Sdelphij  as_fn_error $? "missing argument to $ac_option"
110917680Spstfi
111017680Spst
1111251158Sdelphijif test -n "$ac_unrecognized_opts"; then
1112251158Sdelphij  case $enable_option_checking in
1113251158Sdelphij    no) ;;
1114251158Sdelphij    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1115251158Sdelphij    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1116251158Sdelphij  esac
1117251158Sdelphijfi
1118251158Sdelphij
1119251158Sdelphij# Check all directory arguments for consistency.
1120172683Smlaierfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121172683Smlaier		datadir sysconfdir sharedstatedir localstatedir includedir \
1122172683Smlaier		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123172683Smlaier		libdir localedir mandir
1124127668Sbmsdo
1125172683Smlaier  eval ac_val=\$$ac_var
1126251158Sdelphij  # Remove trailing slashes.
1127127668Sbms  case $ac_val in
1128251158Sdelphij    */ )
1129251158Sdelphij      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1130251158Sdelphij      eval $ac_var=\$ac_val;;
1131251158Sdelphij  esac
1132251158Sdelphij  # Be sure to have absolute directory names.
1133251158Sdelphij  case $ac_val in
1134172683Smlaier    [\\/$]* | ?:[\\/]* )  continue;;
1135172683Smlaier    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136127668Sbms  esac
1137251158Sdelphij  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1138127668Sbmsdone
113917680Spst
1140127668Sbms# There might be people who depend on the old broken behavior: `$host'
1141127668Sbms# used to hold the argument of --host etc.
1142127668Sbms# FIXME: To remove some day.
1143127668Sbmsbuild=$build_alias
1144127668Sbmshost=$host_alias
1145127668Sbmstarget=$target_alias
114617680Spst
1147127668Sbms# FIXME: To remove some day.
1148127668Sbmsif test "x$host_alias" != x; then
1149127668Sbms  if test "x$build_alias" = x; then
1150127668Sbms    cross_compiling=maybe
1151251158Sdelphij    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1152251158Sdelphij    If a cross compiler is detected then cross compile mode will be used" >&2
1153127668Sbms  elif test "x$build_alias" != "x$host_alias"; then
1154127668Sbms    cross_compiling=yes
1155127668Sbms  fi
1156127668Sbmsfi
115717680Spst
1158127668Sbmsac_tool_prefix=
1159127668Sbmstest -n "$host_alias" && ac_tool_prefix=$host_alias-
116017680Spst
1161127668Sbmstest "$silent" = yes && exec 6>/dev/null
1162127668Sbms
1163127668Sbms
1164172683Smlaierac_pwd=`pwd` && test -n "$ac_pwd" &&
1165172683Smlaierac_ls_di=`ls -di .` &&
1166172683Smlaierac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1167251158Sdelphij  as_fn_error $? "working directory cannot be determined"
1168172683Smlaiertest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169251158Sdelphij  as_fn_error $? "pwd does not report name of working directory"
1170172683Smlaier
1171172683Smlaier
117217680Spst# Find the source files, if location was not specified.
117317680Spstif test -z "$srcdir"; then
117417680Spst  ac_srcdir_defaulted=yes
1175172683Smlaier  # Try the directory containing this script, then the parent directory.
1176251158Sdelphij  ac_confdir=`$as_dirname -- "$as_myself" ||
1177251158Sdelphij$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178251158Sdelphij	 X"$as_myself" : 'X\(//\)[^/]' \| \
1179251158Sdelphij	 X"$as_myself" : 'X\(//\)$' \| \
1180251158Sdelphij	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1181251158Sdelphij$as_echo X"$as_myself" |
1182172683Smlaier    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1183172683Smlaier	    s//\1/
1184172683Smlaier	    q
1185172683Smlaier	  }
1186172683Smlaier	  /^X\(\/\/\)[^/].*/{
1187172683Smlaier	    s//\1/
1188172683Smlaier	    q
1189172683Smlaier	  }
1190172683Smlaier	  /^X\(\/\/\)$/{
1191172683Smlaier	    s//\1/
1192172683Smlaier	    q
1193172683Smlaier	  }
1194172683Smlaier	  /^X\(\/\).*/{
1195172683Smlaier	    s//\1/
1196172683Smlaier	    q
1197172683Smlaier	  }
1198172683Smlaier	  s/.*/./; q'`
119917680Spst  srcdir=$ac_confdir
1200172683Smlaier  if test ! -r "$srcdir/$ac_unique_file"; then
120117680Spst    srcdir=..
120217680Spst  fi
120317680Spstelse
120417680Spst  ac_srcdir_defaulted=no
120517680Spstfi
1206172683Smlaierif test ! -r "$srcdir/$ac_unique_file"; then
1207172683Smlaier  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1208251158Sdelphij  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1209172683Smlaierfi
1210172683Smlaierac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1211172683Smlaierac_abs_confdir=`(
1212251158Sdelphij	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1213172683Smlaier	pwd)`
1214172683Smlaier# When building in place, set srcdir=.
1215172683Smlaierif test "$ac_abs_confdir" = "$ac_pwd"; then
1216172683Smlaier  srcdir=.
121717680Spstfi
1218172683Smlaier# Remove unnecessary trailing slashes from srcdir.
1219172683Smlaier# Double slashes in file names in object file debugging info
1220172683Smlaier# mess up M-x gdb in Emacs.
1221172683Smlaiercase $srcdir in
1222172683Smlaier*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223172683Smlaieresac
1224172683Smlaierfor ac_var in $ac_precious_vars; do
1225172683Smlaier  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226172683Smlaier  eval ac_env_${ac_var}_value=\$${ac_var}
1227172683Smlaier  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228172683Smlaier  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229172683Smlaierdone
123017680Spst
1231127668Sbms#
1232127668Sbms# Report the --help message.
1233127668Sbms#
1234127668Sbmsif test "$ac_init_help" = "long"; then
1235127668Sbms  # Omit some internal or obsolete options to make the list less imposing.
1236127668Sbms  # This message is too long to be a string in the A/UX 3.1 sh.
1237127668Sbms  cat <<_ACEOF
1238127668Sbms\`configure' configures this package to adapt to many kinds of systems.
1239127668Sbms
1240127668SbmsUsage: $0 [OPTION]... [VAR=VALUE]...
1241127668Sbms
1242127668SbmsTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1243127668SbmsVAR=VALUE.  See below for descriptions of some of the useful variables.
1244127668Sbms
1245127668SbmsDefaults for the options are specified in brackets.
1246127668Sbms
1247127668SbmsConfiguration:
1248127668Sbms  -h, --help              display this help and exit
1249127668Sbms      --help=short        display options specific to this package
1250127668Sbms      --help=recursive    display the short help of all the included packages
1251127668Sbms  -V, --version           display version information and exit
1252251158Sdelphij  -q, --quiet, --silent   do not print \`checking ...' messages
1253127668Sbms      --cache-file=FILE   cache test results in FILE [disabled]
1254127668Sbms  -C, --config-cache      alias for \`--cache-file=config.cache'
1255127668Sbms  -n, --no-create         do not create output files
1256127668Sbms      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1257127668Sbms
1258127668SbmsInstallation directories:
1259127668Sbms  --prefix=PREFIX         install architecture-independent files in PREFIX
1260251158Sdelphij                          [$ac_default_prefix]
1261127668Sbms  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1262251158Sdelphij                          [PREFIX]
1263127668Sbms
1264127668SbmsBy default, \`make install' will install all the files in
1265127668Sbms\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1266127668Sbmsan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267127668Sbmsfor instance \`--prefix=\$HOME'.
1268127668Sbms
1269127668SbmsFor better control, use the options below.
1270127668Sbms
1271127668SbmsFine tuning of the installation directories:
1272251158Sdelphij  --bindir=DIR            user executables [EPREFIX/bin]
1273251158Sdelphij  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1274251158Sdelphij  --libexecdir=DIR        program executables [EPREFIX/libexec]
1275251158Sdelphij  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1276251158Sdelphij  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1277251158Sdelphij  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1278251158Sdelphij  --libdir=DIR            object code libraries [EPREFIX/lib]
1279251158Sdelphij  --includedir=DIR        C header files [PREFIX/include]
1280251158Sdelphij  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1281251158Sdelphij  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1282251158Sdelphij  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1283251158Sdelphij  --infodir=DIR           info documentation [DATAROOTDIR/info]
1284251158Sdelphij  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1285251158Sdelphij  --mandir=DIR            man documentation [DATAROOTDIR/man]
1286251158Sdelphij  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1287251158Sdelphij  --htmldir=DIR           html documentation [DOCDIR]
1288251158Sdelphij  --dvidir=DIR            dvi documentation [DOCDIR]
1289251158Sdelphij  --pdfdir=DIR            pdf documentation [DOCDIR]
1290251158Sdelphij  --psdir=DIR             ps documentation [DOCDIR]
1291127668Sbms_ACEOF
1292127668Sbms
1293127668Sbms  cat <<\_ACEOF
1294127668Sbms
1295127668SbmsSystem types:
1296127668Sbms  --build=BUILD     configure for building on BUILD [guessed]
1297127668Sbms  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1298127668Sbms_ACEOF
1299127668Sbmsfi
1300127668Sbms
1301127668Sbmsif test -n "$ac_init_help"; then
1302127668Sbms
1303127668Sbms  cat <<\_ACEOF
1304127668Sbms
1305127668SbmsOptional Features:
1306251158Sdelphij  --disable-option-checking  ignore unrecognized --enable/--with options
1307127668Sbms  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1308127668Sbms  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1309235530Sdelphij  --disable-universal     don't build universal on OS X
1310127668Sbms  --enable-smb            enable possibly-buggy SMB printer default=yes
1311127668Sbms  --disable-smb           disable possibly-buggy SMB printer
1312127668Sbms  --enable-ipv6           enable ipv6 (with ipv4) support
1313127668Sbms  --disable-ipv6          disable ipv6 support
1314127668Sbms
1315127668SbmsOptional Packages:
1316127668Sbms  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1317127668Sbms  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1318127668Sbms  --without-gcc           don't use gcc
1319214478Srpaulo  --with-smi              link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1320214478Srpaulo  --without-smi           don't link with libsmi
1321146773Ssam  --with-user=USERNAME    drop privileges by default to USERNAME
1322146773Ssam  --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1323251158Sdelphij  --with-crypto           use OpenSSL libcrypto [default=yes, if available]
1324127668Sbms
1325127668SbmsSome influential environment variables:
1326127668Sbms  CC          C compiler command
1327127668Sbms  CFLAGS      C compiler flags
1328127668Sbms  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1329127668Sbms              nonstandard directory <lib dir>
1330172683Smlaier  LIBS        libraries to pass to the linker, e.g. -l<library>
1331251158Sdelphij  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1332172683Smlaier              you have headers in a nonstandard directory <include dir>
1333127668Sbms  CPP         C preprocessor
1334127668Sbms
1335127668SbmsUse these variables to override the choices made by `configure' or to help
1336127668Sbmsit to find libraries and programs with nonstandard names/locations.
1337127668Sbms
1338251158SdelphijReport bugs to the package provider.
1339127668Sbms_ACEOF
1340172683Smlaierac_status=$?
1341127668Sbmsfi
1342127668Sbms
1343127668Sbmsif test "$ac_init_help" = "recursive"; then
1344127668Sbms  # If there are subdirs, report their specific --help.
1345127668Sbms  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346251158Sdelphij    test -d "$ac_dir" ||
1347251158Sdelphij      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1348251158Sdelphij      continue
1349127668Sbms    ac_builddir=.
1350127668Sbms
1351172683Smlaiercase "$ac_dir" in
1352172683Smlaier.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353172683Smlaier*)
1354251158Sdelphij  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1355172683Smlaier  # A ".." for each directory in $ac_dir_suffix.
1356251158Sdelphij  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1357172683Smlaier  case $ac_top_builddir_sub in
1358172683Smlaier  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359172683Smlaier  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360172683Smlaier  esac ;;
1361172683Smlaieresac
1362172683Smlaierac_abs_top_builddir=$ac_pwd
1363172683Smlaierac_abs_builddir=$ac_pwd$ac_dir_suffix
1364172683Smlaier# for backward compatibility:
1365172683Smlaierac_top_builddir=$ac_top_build_prefix
1366127668Sbms
1367127668Sbmscase $srcdir in
1368172683Smlaier  .)  # We are building in place.
1369127668Sbms    ac_srcdir=.
1370172683Smlaier    ac_top_srcdir=$ac_top_builddir_sub
1371172683Smlaier    ac_abs_top_srcdir=$ac_pwd ;;
1372172683Smlaier  [\\/]* | ?:[\\/]* )  # Absolute name.
1373127668Sbms    ac_srcdir=$srcdir$ac_dir_suffix;
1374172683Smlaier    ac_top_srcdir=$srcdir
1375172683Smlaier    ac_abs_top_srcdir=$srcdir ;;
1376172683Smlaier  *) # Relative name.
1377172683Smlaier    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378172683Smlaier    ac_top_srcdir=$ac_top_build_prefix$srcdir
1379172683Smlaier    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380127668Sbmsesac
1381172683Smlaierac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382127668Sbms
1383172683Smlaier    cd "$ac_dir" || { ac_status=$?; continue; }
1384172683Smlaier    # Check for guested configure.
1385172683Smlaier    if test -f "$ac_srcdir/configure.gnu"; then
1386172683Smlaier      echo &&
1387172683Smlaier      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388172683Smlaier    elif test -f "$ac_srcdir/configure"; then
1389172683Smlaier      echo &&
1390172683Smlaier      $SHELL "$ac_srcdir/configure" --help=recursive
1391127668Sbms    else
1392251158Sdelphij      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393172683Smlaier    fi || ac_status=$?
1394172683Smlaier    cd "$ac_pwd" || { ac_status=$?; break; }
1395127668Sbms  done
1396127668Sbmsfi
1397127668Sbms
1398172683Smlaiertest -n "$ac_init_help" && exit $ac_status
1399127668Sbmsif $ac_init_version; then
1400127668Sbms  cat <<\_ACEOF
1401172683Smlaierconfigure
1402251158Sdelphijgenerated by GNU Autoconf 2.68
1403127668Sbms
1404251158SdelphijCopyright (C) 2010 Free Software Foundation, Inc.
1405127668SbmsThis configure script is free software; the Free Software Foundation
1406127668Sbmsgives unlimited permission to copy, distribute and modify it.
1407127668Sbms_ACEOF
1408172683Smlaier  exit
1409127668Sbmsfi
1410251158Sdelphij
1411251158Sdelphij## ------------------------ ##
1412251158Sdelphij## Autoconf initialization. ##
1413251158Sdelphij## ------------------------ ##
1414251158Sdelphij
1415251158Sdelphij# ac_fn_c_try_compile LINENO
1416251158Sdelphij# --------------------------
1417251158Sdelphij# Try to compile conftest.$ac_ext, and return whether this succeeded.
1418251158Sdelphijac_fn_c_try_compile ()
1419251158Sdelphij{
1420251158Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1421251158Sdelphij  rm -f conftest.$ac_objext
1422251158Sdelphij  if { { ac_try="$ac_compile"
1423251158Sdelphijcase "(($ac_try" in
1424251158Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425251158Sdelphij  *) ac_try_echo=$ac_try;;
1426251158Sdelphijesac
1427251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428251158Sdelphij$as_echo "$ac_try_echo"; } >&5
1429251158Sdelphij  (eval "$ac_compile") 2>conftest.err
1430251158Sdelphij  ac_status=$?
1431251158Sdelphij  if test -s conftest.err; then
1432251158Sdelphij    grep -v '^ *+' conftest.err >conftest.er1
1433251158Sdelphij    cat conftest.er1 >&5
1434251158Sdelphij    mv -f conftest.er1 conftest.err
1435251158Sdelphij  fi
1436251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437251158Sdelphij  test $ac_status = 0; } && {
1438251158Sdelphij	 test -z "$ac_c_werror_flag" ||
1439251158Sdelphij	 test ! -s conftest.err
1440251158Sdelphij       } && test -s conftest.$ac_objext; then :
1441251158Sdelphij  ac_retval=0
1442251158Sdelphijelse
1443251158Sdelphij  $as_echo "$as_me: failed program was:" >&5
1444251158Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
1445251158Sdelphij
1446251158Sdelphij	ac_retval=1
1447251158Sdelphijfi
1448251158Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1449251158Sdelphij  as_fn_set_status $ac_retval
1450251158Sdelphij
1451251158Sdelphij} # ac_fn_c_try_compile
1452251158Sdelphij
1453251158Sdelphij# ac_fn_c_try_cpp LINENO
1454251158Sdelphij# ----------------------
1455251158Sdelphij# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1456251158Sdelphijac_fn_c_try_cpp ()
1457251158Sdelphij{
1458251158Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459251158Sdelphij  if { { ac_try="$ac_cpp conftest.$ac_ext"
1460251158Sdelphijcase "(($ac_try" in
1461251158Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1462251158Sdelphij  *) ac_try_echo=$ac_try;;
1463251158Sdelphijesac
1464251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465251158Sdelphij$as_echo "$ac_try_echo"; } >&5
1466251158Sdelphij  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1467251158Sdelphij  ac_status=$?
1468251158Sdelphij  if test -s conftest.err; then
1469251158Sdelphij    grep -v '^ *+' conftest.err >conftest.er1
1470251158Sdelphij    cat conftest.er1 >&5
1471251158Sdelphij    mv -f conftest.er1 conftest.err
1472251158Sdelphij  fi
1473251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474251158Sdelphij  test $ac_status = 0; } > conftest.i && {
1475251158Sdelphij	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1476251158Sdelphij	 test ! -s conftest.err
1477251158Sdelphij       }; then :
1478251158Sdelphij  ac_retval=0
1479251158Sdelphijelse
1480251158Sdelphij  $as_echo "$as_me: failed program was:" >&5
1481251158Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
1482251158Sdelphij
1483251158Sdelphij    ac_retval=1
1484251158Sdelphijfi
1485251158Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1486251158Sdelphij  as_fn_set_status $ac_retval
1487251158Sdelphij
1488251158Sdelphij} # ac_fn_c_try_cpp
1489251158Sdelphij
1490251158Sdelphij# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1491251158Sdelphij# -------------------------------------------------------
1492251158Sdelphij# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1493251158Sdelphij# the include files in INCLUDES and setting the cache variable VAR
1494251158Sdelphij# accordingly.
1495251158Sdelphijac_fn_c_check_header_mongrel ()
1496251158Sdelphij{
1497251158Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498251158Sdelphij  if eval \${$3+:} false; then :
1499251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1500251158Sdelphij$as_echo_n "checking for $2... " >&6; }
1501251158Sdelphijif eval \${$3+:} false; then :
1502251158Sdelphij  $as_echo_n "(cached) " >&6
1503251158Sdelphijfi
1504251158Sdelphijeval ac_res=\$$3
1505251158Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1506251158Sdelphij$as_echo "$ac_res" >&6; }
1507251158Sdelphijelse
1508251158Sdelphij  # Is the header compilable?
1509251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1510251158Sdelphij$as_echo_n "checking $2 usability... " >&6; }
1511251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1512251158Sdelphij/* end confdefs.h.  */
1513251158Sdelphij$4
1514251158Sdelphij#include <$2>
1515251158Sdelphij_ACEOF
1516251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
1517251158Sdelphij  ac_header_compiler=yes
1518251158Sdelphijelse
1519251158Sdelphij  ac_header_compiler=no
1520251158Sdelphijfi
1521251158Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1522251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1523251158Sdelphij$as_echo "$ac_header_compiler" >&6; }
1524251158Sdelphij
1525251158Sdelphij# Is the header present?
1526251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1527251158Sdelphij$as_echo_n "checking $2 presence... " >&6; }
1528251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1529251158Sdelphij/* end confdefs.h.  */
1530251158Sdelphij#include <$2>
1531251158Sdelphij_ACEOF
1532251158Sdelphijif ac_fn_c_try_cpp "$LINENO"; then :
1533251158Sdelphij  ac_header_preproc=yes
1534251158Sdelphijelse
1535251158Sdelphij  ac_header_preproc=no
1536251158Sdelphijfi
1537251158Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext
1538251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1539251158Sdelphij$as_echo "$ac_header_preproc" >&6; }
1540251158Sdelphij
1541251158Sdelphij# So?  What about this header?
1542251158Sdelphijcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1543251158Sdelphij  yes:no: )
1544251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1545251158Sdelphij$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1546251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1547251158Sdelphij$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1548251158Sdelphij    ;;
1549251158Sdelphij  no:yes:* )
1550251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1551251158Sdelphij$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1552251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1553251158Sdelphij$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1554251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1555251158Sdelphij$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1556251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1557251158Sdelphij$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1558251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1559251158Sdelphij$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1560251158Sdelphij    ;;
1561251158Sdelphijesac
1562251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563251158Sdelphij$as_echo_n "checking for $2... " >&6; }
1564251158Sdelphijif eval \${$3+:} false; then :
1565251158Sdelphij  $as_echo_n "(cached) " >&6
1566251158Sdelphijelse
1567251158Sdelphij  eval "$3=\$ac_header_compiler"
1568251158Sdelphijfi
1569251158Sdelphijeval ac_res=\$$3
1570251158Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571251158Sdelphij$as_echo "$ac_res" >&6; }
1572251158Sdelphijfi
1573251158Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574251158Sdelphij
1575251158Sdelphij} # ac_fn_c_check_header_mongrel
1576251158Sdelphij
1577251158Sdelphij# ac_fn_c_try_run LINENO
1578251158Sdelphij# ----------------------
1579251158Sdelphij# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1580251158Sdelphij# that executables *can* be run.
1581251158Sdelphijac_fn_c_try_run ()
1582251158Sdelphij{
1583251158Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584251158Sdelphij  if { { ac_try="$ac_link"
1585251158Sdelphijcase "(($ac_try" in
1586251158Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587251158Sdelphij  *) ac_try_echo=$ac_try;;
1588251158Sdelphijesac
1589251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590251158Sdelphij$as_echo "$ac_try_echo"; } >&5
1591251158Sdelphij  (eval "$ac_link") 2>&5
1592251158Sdelphij  ac_status=$?
1593251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594251158Sdelphij  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1595251158Sdelphij  { { case "(($ac_try" in
1596251158Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597251158Sdelphij  *) ac_try_echo=$ac_try;;
1598251158Sdelphijesac
1599251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600251158Sdelphij$as_echo "$ac_try_echo"; } >&5
1601251158Sdelphij  (eval "$ac_try") 2>&5
1602251158Sdelphij  ac_status=$?
1603251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604251158Sdelphij  test $ac_status = 0; }; }; then :
1605251158Sdelphij  ac_retval=0
1606251158Sdelphijelse
1607251158Sdelphij  $as_echo "$as_me: program exited with status $ac_status" >&5
1608251158Sdelphij       $as_echo "$as_me: failed program was:" >&5
1609251158Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
1610251158Sdelphij
1611251158Sdelphij       ac_retval=$ac_status
1612251158Sdelphijfi
1613251158Sdelphij  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614251158Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615251158Sdelphij  as_fn_set_status $ac_retval
1616251158Sdelphij
1617251158Sdelphij} # ac_fn_c_try_run
1618251158Sdelphij
1619251158Sdelphij# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1620251158Sdelphij# -------------------------------------------------------
1621251158Sdelphij# Tests whether HEADER exists and can be compiled using the include files in
1622251158Sdelphij# INCLUDES, setting the cache variable VAR accordingly.
1623251158Sdelphijac_fn_c_check_header_compile ()
1624251158Sdelphij{
1625251158Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627251158Sdelphij$as_echo_n "checking for $2... " >&6; }
1628251158Sdelphijif eval \${$3+:} false; then :
1629251158Sdelphij  $as_echo_n "(cached) " >&6
1630251158Sdelphijelse
1631251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632251158Sdelphij/* end confdefs.h.  */
1633251158Sdelphij$4
1634251158Sdelphij#include <$2>
1635251158Sdelphij_ACEOF
1636251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
1637251158Sdelphij  eval "$3=yes"
1638251158Sdelphijelse
1639251158Sdelphij  eval "$3=no"
1640251158Sdelphijfi
1641251158Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642251158Sdelphijfi
1643251158Sdelphijeval ac_res=\$$3
1644251158Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645251158Sdelphij$as_echo "$ac_res" >&6; }
1646251158Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647251158Sdelphij
1648251158Sdelphij} # ac_fn_c_check_header_compile
1649251158Sdelphij
1650251158Sdelphij# ac_fn_c_try_link LINENO
1651251158Sdelphij# -----------------------
1652251158Sdelphij# Try to link conftest.$ac_ext, and return whether this succeeded.
1653251158Sdelphijac_fn_c_try_link ()
1654251158Sdelphij{
1655251158Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656251158Sdelphij  rm -f conftest.$ac_objext conftest$ac_exeext
1657251158Sdelphij  if { { ac_try="$ac_link"
1658251158Sdelphijcase "(($ac_try" in
1659251158Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660251158Sdelphij  *) ac_try_echo=$ac_try;;
1661251158Sdelphijesac
1662251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663251158Sdelphij$as_echo "$ac_try_echo"; } >&5
1664251158Sdelphij  (eval "$ac_link") 2>conftest.err
1665251158Sdelphij  ac_status=$?
1666251158Sdelphij  if test -s conftest.err; then
1667251158Sdelphij    grep -v '^ *+' conftest.err >conftest.er1
1668251158Sdelphij    cat conftest.er1 >&5
1669251158Sdelphij    mv -f conftest.er1 conftest.err
1670251158Sdelphij  fi
1671251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672251158Sdelphij  test $ac_status = 0; } && {
1673251158Sdelphij	 test -z "$ac_c_werror_flag" ||
1674251158Sdelphij	 test ! -s conftest.err
1675251158Sdelphij       } && test -s conftest$ac_exeext && {
1676251158Sdelphij	 test "$cross_compiling" = yes ||
1677251158Sdelphij	 $as_test_x conftest$ac_exeext
1678251158Sdelphij       }; then :
1679251158Sdelphij  ac_retval=0
1680251158Sdelphijelse
1681251158Sdelphij  $as_echo "$as_me: failed program was:" >&5
1682251158Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
1683251158Sdelphij
1684251158Sdelphij	ac_retval=1
1685251158Sdelphijfi
1686251158Sdelphij  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687251158Sdelphij  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688251158Sdelphij  # interfere with the next link command; also delete a directory that is
1689251158Sdelphij  # left behind by Apple's compiler.  We do this before executing the actions.
1690251158Sdelphij  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691251158Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692251158Sdelphij  as_fn_set_status $ac_retval
1693251158Sdelphij
1694251158Sdelphij} # ac_fn_c_try_link
1695251158Sdelphij
1696251158Sdelphij# ac_fn_c_check_func LINENO FUNC VAR
1697251158Sdelphij# ----------------------------------
1698251158Sdelphij# Tests whether FUNC exists, setting the cache variable VAR accordingly
1699251158Sdelphijac_fn_c_check_func ()
1700251158Sdelphij{
1701251158Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703251158Sdelphij$as_echo_n "checking for $2... " >&6; }
1704251158Sdelphijif eval \${$3+:} false; then :
1705251158Sdelphij  $as_echo_n "(cached) " >&6
1706251158Sdelphijelse
1707251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708251158Sdelphij/* end confdefs.h.  */
1709251158Sdelphij/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1710251158Sdelphij   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1711251158Sdelphij#define $2 innocuous_$2
1712251158Sdelphij
1713251158Sdelphij/* System header to define __stub macros and hopefully few prototypes,
1714251158Sdelphij    which can conflict with char $2 (); below.
1715251158Sdelphij    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1716251158Sdelphij    <limits.h> exists even on freestanding compilers.  */
1717251158Sdelphij
1718251158Sdelphij#ifdef __STDC__
1719251158Sdelphij# include <limits.h>
1720251158Sdelphij#else
1721251158Sdelphij# include <assert.h>
1722251158Sdelphij#endif
1723251158Sdelphij
1724251158Sdelphij#undef $2
1725251158Sdelphij
1726251158Sdelphij/* Override any GCC internal prototype to avoid an error.
1727251158Sdelphij   Use char because int might match the return type of a GCC
1728251158Sdelphij   builtin and then its argument prototype would still apply.  */
1729251158Sdelphij#ifdef __cplusplus
1730251158Sdelphijextern "C"
1731251158Sdelphij#endif
1732251158Sdelphijchar $2 ();
1733251158Sdelphij/* The GNU C library defines this for functions which it implements
1734251158Sdelphij    to always fail with ENOSYS.  Some functions are actually named
1735251158Sdelphij    something starting with __ and the normal name is an alias.  */
1736251158Sdelphij#if defined __stub_$2 || defined __stub___$2
1737251158Sdelphijchoke me
1738251158Sdelphij#endif
1739251158Sdelphij
1740251158Sdelphijint
1741251158Sdelphijmain ()
1742251158Sdelphij{
1743251158Sdelphijreturn $2 ();
1744251158Sdelphij  ;
1745251158Sdelphij  return 0;
1746251158Sdelphij}
1747251158Sdelphij_ACEOF
1748251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
1749251158Sdelphij  eval "$3=yes"
1750251158Sdelphijelse
1751251158Sdelphij  eval "$3=no"
1752251158Sdelphijfi
1753251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
1754251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
1755251158Sdelphijfi
1756251158Sdelphijeval ac_res=\$$3
1757251158Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758251158Sdelphij$as_echo "$ac_res" >&6; }
1759251158Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760251158Sdelphij
1761251158Sdelphij} # ac_fn_c_check_func
1762251158Sdelphij
1763251158Sdelphij# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1764251158Sdelphij# ---------------------------------------------
1765251158Sdelphij# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1766251158Sdelphij# accordingly.
1767251158Sdelphijac_fn_c_check_decl ()
1768251158Sdelphij{
1769251158Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770251158Sdelphij  as_decl_name=`echo $2|sed 's/ *(.*//'`
1771251158Sdelphij  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1772251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1773251158Sdelphij$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1774251158Sdelphijif eval \${$3+:} false; then :
1775251158Sdelphij  $as_echo_n "(cached) " >&6
1776251158Sdelphijelse
1777251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778251158Sdelphij/* end confdefs.h.  */
1779251158Sdelphij$4
1780251158Sdelphijint
1781251158Sdelphijmain ()
1782251158Sdelphij{
1783251158Sdelphij#ifndef $as_decl_name
1784251158Sdelphij#ifdef __cplusplus
1785251158Sdelphij  (void) $as_decl_use;
1786251158Sdelphij#else
1787251158Sdelphij  (void) $as_decl_name;
1788251158Sdelphij#endif
1789251158Sdelphij#endif
1790251158Sdelphij
1791251158Sdelphij  ;
1792251158Sdelphij  return 0;
1793251158Sdelphij}
1794251158Sdelphij_ACEOF
1795251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
1796251158Sdelphij  eval "$3=yes"
1797251158Sdelphijelse
1798251158Sdelphij  eval "$3=no"
1799251158Sdelphijfi
1800251158Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801251158Sdelphijfi
1802251158Sdelphijeval ac_res=\$$3
1803251158Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804251158Sdelphij$as_echo "$ac_res" >&6; }
1805251158Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806251158Sdelphij
1807251158Sdelphij} # ac_fn_c_check_decl
1808251158Sdelphij
1809251158Sdelphij# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1810251158Sdelphij# -------------------------------------------
1811251158Sdelphij# Tests whether TYPE exists after having included INCLUDES, setting cache
1812251158Sdelphij# variable VAR accordingly.
1813251158Sdelphijac_fn_c_check_type ()
1814251158Sdelphij{
1815251158Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817251158Sdelphij$as_echo_n "checking for $2... " >&6; }
1818251158Sdelphijif eval \${$3+:} false; then :
1819251158Sdelphij  $as_echo_n "(cached) " >&6
1820251158Sdelphijelse
1821251158Sdelphij  eval "$3=no"
1822251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823251158Sdelphij/* end confdefs.h.  */
1824251158Sdelphij$4
1825251158Sdelphijint
1826251158Sdelphijmain ()
1827251158Sdelphij{
1828251158Sdelphijif (sizeof ($2))
1829251158Sdelphij	 return 0;
1830251158Sdelphij  ;
1831251158Sdelphij  return 0;
1832251158Sdelphij}
1833251158Sdelphij_ACEOF
1834251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
1835251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836251158Sdelphij/* end confdefs.h.  */
1837251158Sdelphij$4
1838251158Sdelphijint
1839251158Sdelphijmain ()
1840251158Sdelphij{
1841251158Sdelphijif (sizeof (($2)))
1842251158Sdelphij	    return 0;
1843251158Sdelphij  ;
1844251158Sdelphij  return 0;
1845251158Sdelphij}
1846251158Sdelphij_ACEOF
1847251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
1848251158Sdelphij
1849251158Sdelphijelse
1850251158Sdelphij  eval "$3=yes"
1851251158Sdelphijfi
1852251158Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853251158Sdelphijfi
1854251158Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855251158Sdelphijfi
1856251158Sdelphijeval ac_res=\$$3
1857251158Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858251158Sdelphij$as_echo "$ac_res" >&6; }
1859251158Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860251158Sdelphij
1861251158Sdelphij} # ac_fn_c_check_type
1862172683Smlaiercat >config.log <<_ACEOF
1863127668SbmsThis file contains any messages produced by compilers while
1864127668Sbmsrunning configure, to aid debugging if configure makes a mistake.
1865127668Sbms
1866127668SbmsIt was created by $as_me, which was
1867251158Sdelphijgenerated by GNU Autoconf 2.68.  Invocation command line was
1868127668Sbms
1869127668Sbms  $ $0 $@
1870127668Sbms
1871127668Sbms_ACEOF
1872172683Smlaierexec 5>>config.log
1873127668Sbms{
1874127668Sbmscat <<_ASUNAME
1875127668Sbms## --------- ##
1876127668Sbms## Platform. ##
1877127668Sbms## --------- ##
1878127668Sbms
1879127668Sbmshostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1880127668Sbmsuname -m = `(uname -m) 2>/dev/null || echo unknown`
1881127668Sbmsuname -r = `(uname -r) 2>/dev/null || echo unknown`
1882127668Sbmsuname -s = `(uname -s) 2>/dev/null || echo unknown`
1883127668Sbmsuname -v = `(uname -v) 2>/dev/null || echo unknown`
1884127668Sbms
1885127668Sbms/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1886127668Sbms/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1887127668Sbms
1888127668Sbms/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1889127668Sbms/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1890127668Sbms/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1891172683Smlaier/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1892127668Sbms/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1893127668Sbms/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1894127668Sbms/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1895127668Sbms
1896127668Sbms_ASUNAME
1897127668Sbms
1898127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899127668Sbmsfor as_dir in $PATH
1900127668Sbmsdo
1901127668Sbms  IFS=$as_save_IFS
1902127668Sbms  test -z "$as_dir" && as_dir=.
1903251158Sdelphij    $as_echo "PATH: $as_dir"
1904251158Sdelphij  done
1905172683SmlaierIFS=$as_save_IFS
1906127668Sbms
1907127668Sbms} >&5
1908127668Sbms
1909127668Sbmscat >&5 <<_ACEOF
1910127668Sbms
1911127668Sbms
1912127668Sbms## ----------- ##
1913127668Sbms## Core tests. ##
1914127668Sbms## ----------- ##
1915127668Sbms
1916127668Sbms_ACEOF
1917127668Sbms
1918127668Sbms
1919127668Sbms# Keep a trace of the command line.
1920127668Sbms# Strip out --no-create and --no-recursion so they do not pile up.
1921127668Sbms# Strip out --silent because we don't want to record it for future runs.
1922127668Sbms# Also quote any args containing shell meta-characters.
1923127668Sbms# Make two passes to allow for proper duplicate-argument suppression.
1924127668Sbmsac_configure_args=
1925127668Sbmsac_configure_args0=
1926127668Sbmsac_configure_args1=
1927127668Sbmsac_must_keep_next=false
1928127668Sbmsfor ac_pass in 1 2
1929127668Sbmsdo
1930127668Sbms  for ac_arg
1931127668Sbms  do
1932127668Sbms    case $ac_arg in
1933127668Sbms    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1934127668Sbms    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1935127668Sbms    | -silent | --silent | --silen | --sile | --sil)
1936127668Sbms      continue ;;
1937172683Smlaier    *\'*)
1938251158Sdelphij      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1939127668Sbms    esac
1940127668Sbms    case $ac_pass in
1941251158Sdelphij    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1942127668Sbms    2)
1943251158Sdelphij      as_fn_append ac_configure_args1 " '$ac_arg'"
1944127668Sbms      if test $ac_must_keep_next = true; then
1945172683Smlaier	ac_must_keep_next=false # Got value, back to normal.
1946127668Sbms      else
1947172683Smlaier	case $ac_arg in
1948172683Smlaier	  *=* | --config-cache | -C | -disable-* | --disable-* \
1949172683Smlaier	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1950172683Smlaier	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1951172683Smlaier	  | -with-* | --with-* | -without-* | --without-* | --x)
1952172683Smlaier	    case "$ac_configure_args0 " in
1953172683Smlaier	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1954172683Smlaier	    esac
1955172683Smlaier	    ;;
1956172683Smlaier	  -* ) ac_must_keep_next=true ;;
1957172683Smlaier	esac
1958127668Sbms      fi
1959251158Sdelphij      as_fn_append ac_configure_args " '$ac_arg'"
1960127668Sbms      ;;
1961127668Sbms    esac
1962127668Sbms  done
1963127668Sbmsdone
1964251158Sdelphij{ ac_configure_args0=; unset ac_configure_args0;}
1965251158Sdelphij{ ac_configure_args1=; unset ac_configure_args1;}
1966127668Sbms
1967127668Sbms# When interrupted or exit'd, cleanup temporary files, and complete
1968127668Sbms# config.log.  We remove comments because anyway the quotes in there
1969127668Sbms# would cause problems or look ugly.
1970172683Smlaier# WARNING: Use '\'' to represent an apostrophe within the trap.
1971172683Smlaier# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1972127668Sbmstrap 'exit_status=$?
1973127668Sbms  # Save into config.log some information that might help in debugging.
1974127668Sbms  {
1975127668Sbms    echo
1976127668Sbms
1977251158Sdelphij    $as_echo "## ---------------- ##
1978127668Sbms## Cache variables. ##
1979251158Sdelphij## ---------------- ##"
1980127668Sbms    echo
1981127668Sbms    # The following way of writing the cache mishandles newlines in values,
1982172683Smlaier(
1983172683Smlaier  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1984172683Smlaier    eval ac_val=\$$ac_var
1985172683Smlaier    case $ac_val in #(
1986172683Smlaier    *${as_nl}*)
1987172683Smlaier      case $ac_var in #(
1988251158Sdelphij      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1989251158Sdelphij$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1990172683Smlaier      esac
1991172683Smlaier      case $ac_var in #(
1992172683Smlaier      _ | IFS | as_nl) ;; #(
1993251158Sdelphij      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1994251158Sdelphij      *) { eval $ac_var=; unset $ac_var;} ;;
1995172683Smlaier      esac ;;
1996172683Smlaier    esac
1997172683Smlaier  done
1998127668Sbms  (set) 2>&1 |
1999172683Smlaier    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2000172683Smlaier    *${as_nl}ac_space=\ *)
2001127668Sbms      sed -n \
2002172683Smlaier	"s/'\''/'\''\\\\'\'''\''/g;
2003172683Smlaier	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2004172683Smlaier      ;; #(
2005127668Sbms    *)
2006172683Smlaier      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2007127668Sbms      ;;
2008172683Smlaier    esac |
2009172683Smlaier    sort
2010172683Smlaier)
2011127668Sbms    echo
2012127668Sbms
2013251158Sdelphij    $as_echo "## ----------------- ##
2014127668Sbms## Output variables. ##
2015251158Sdelphij## ----------------- ##"
2016127668Sbms    echo
2017127668Sbms    for ac_var in $ac_subst_vars
2018127668Sbms    do
2019172683Smlaier      eval ac_val=\$$ac_var
2020172683Smlaier      case $ac_val in
2021251158Sdelphij      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022172683Smlaier      esac
2023251158Sdelphij      $as_echo "$ac_var='\''$ac_val'\''"
2024127668Sbms    done | sort
2025127668Sbms    echo
2026127668Sbms
2027127668Sbms    if test -n "$ac_subst_files"; then
2028251158Sdelphij      $as_echo "## ------------------- ##
2029172683Smlaier## File substitutions. ##
2030251158Sdelphij## ------------------- ##"
2031127668Sbms      echo
2032127668Sbms      for ac_var in $ac_subst_files
2033127668Sbms      do
2034172683Smlaier	eval ac_val=\$$ac_var
2035172683Smlaier	case $ac_val in
2036251158Sdelphij	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037172683Smlaier	esac
2038251158Sdelphij	$as_echo "$ac_var='\''$ac_val'\''"
2039127668Sbms      done | sort
2040127668Sbms      echo
2041127668Sbms    fi
2042127668Sbms
2043127668Sbms    if test -s confdefs.h; then
2044251158Sdelphij      $as_echo "## ----------- ##
2045127668Sbms## confdefs.h. ##
2046251158Sdelphij## ----------- ##"
2047127668Sbms      echo
2048172683Smlaier      cat confdefs.h
2049127668Sbms      echo
2050127668Sbms    fi
2051127668Sbms    test "$ac_signal" != 0 &&
2052251158Sdelphij      $as_echo "$as_me: caught signal $ac_signal"
2053251158Sdelphij    $as_echo "$as_me: exit $exit_status"
2054127668Sbms  } >&5
2055172683Smlaier  rm -f core *.core core.conftest.* &&
2056172683Smlaier    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2057127668Sbms    exit $exit_status
2058172683Smlaier' 0
2059127668Sbmsfor ac_signal in 1 2 13 15; do
2060251158Sdelphij  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2061127668Sbmsdone
2062127668Sbmsac_signal=0
2063127668Sbms
2064127668Sbms# confdefs.h avoids OS command line length limits that DEFS can exceed.
2065172683Smlaierrm -f -r conftest* confdefs.h
2066127668Sbms
2067251158Sdelphij$as_echo "/* confdefs.h */" > confdefs.h
2068251158Sdelphij
2069127668Sbms# Predefined preprocessor variables.
2070127668Sbms
2071127668Sbmscat >>confdefs.h <<_ACEOF
2072127668Sbms#define PACKAGE_NAME "$PACKAGE_NAME"
2073127668Sbms_ACEOF
2074127668Sbms
2075127668Sbmscat >>confdefs.h <<_ACEOF
2076127668Sbms#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2077127668Sbms_ACEOF
2078127668Sbms
2079127668Sbmscat >>confdefs.h <<_ACEOF
2080127668Sbms#define PACKAGE_VERSION "$PACKAGE_VERSION"
2081127668Sbms_ACEOF
2082127668Sbms
2083127668Sbmscat >>confdefs.h <<_ACEOF
2084127668Sbms#define PACKAGE_STRING "$PACKAGE_STRING"
2085127668Sbms_ACEOF
2086127668Sbms
2087127668Sbmscat >>confdefs.h <<_ACEOF
2088127668Sbms#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2089127668Sbms_ACEOF
2090127668Sbms
2091251158Sdelphijcat >>confdefs.h <<_ACEOF
2092251158Sdelphij#define PACKAGE_URL "$PACKAGE_URL"
2093251158Sdelphij_ACEOF
2094127668Sbms
2095251158Sdelphij
2096127668Sbms# Let the site file select an alternate cache file if it wants to.
2097251158Sdelphij# Prefer an explicitly selected file to automatically selected ones.
2098251158Sdelphijac_site_file1=NONE
2099251158Sdelphijac_site_file2=NONE
2100172683Smlaierif test -n "$CONFIG_SITE"; then
2101251158Sdelphij  # We do not want a PATH search for config.site.
2102251158Sdelphij  case $CONFIG_SITE in #((
2103251158Sdelphij    -*)  ac_site_file1=./$CONFIG_SITE;;
2104251158Sdelphij    */*) ac_site_file1=$CONFIG_SITE;;
2105251158Sdelphij    *)   ac_site_file1=./$CONFIG_SITE;;
2106251158Sdelphij  esac
2107172683Smlaierelif test "x$prefix" != xNONE; then
2108251158Sdelphij  ac_site_file1=$prefix/share/config.site
2109251158Sdelphij  ac_site_file2=$prefix/etc/config.site
2110172683Smlaierelse
2111251158Sdelphij  ac_site_file1=$ac_default_prefix/share/config.site
2112251158Sdelphij  ac_site_file2=$ac_default_prefix/etc/config.site
211317680Spstfi
2114251158Sdelphijfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2115172683Smlaierdo
2116251158Sdelphij  test "x$ac_site_file" = xNONE && continue
2117251158Sdelphij  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2118251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2119251158Sdelphij$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2120127668Sbms    sed 's/^/| /' "$ac_site_file" >&5
2121251158Sdelphij    . "$ac_site_file" \
2122251158Sdelphij      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2123251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2124251158Sdelphijas_fn_error $? "failed to load site script $ac_site_file
2125251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
212617680Spst  fi
212717680Spstdone
212817680Spst
212917680Spstif test -r "$cache_file"; then
2130251158Sdelphij  # Some versions of bash will fail to source /dev/null (special files
2131251158Sdelphij  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2132251158Sdelphij  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2133251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2134251158Sdelphij$as_echo "$as_me: loading cache $cache_file" >&6;}
2135127668Sbms    case $cache_file in
2136172683Smlaier      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2137172683Smlaier      *)                      . "./$cache_file";;
2138127668Sbms    esac
2139127668Sbms  fi
214017680Spstelse
2141251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2142251158Sdelphij$as_echo "$as_me: creating cache $cache_file" >&6;}
2143127668Sbms  >$cache_file
214417680Spstfi
214517680Spst
2146127668Sbms# Check that the precious variables saved in the cache have kept the same
2147127668Sbms# value.
2148127668Sbmsac_cache_corrupted=false
2149172683Smlaierfor ac_var in $ac_precious_vars; do
2150127668Sbms  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2151127668Sbms  eval ac_new_set=\$ac_env_${ac_var}_set
2152172683Smlaier  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2153172683Smlaier  eval ac_new_val=\$ac_env_${ac_var}_value
2154127668Sbms  case $ac_old_set,$ac_new_set in
2155127668Sbms    set,)
2156251158Sdelphij      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2157251158Sdelphij$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2158127668Sbms      ac_cache_corrupted=: ;;
2159127668Sbms    ,set)
2160251158Sdelphij      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2161251158Sdelphij$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2162127668Sbms      ac_cache_corrupted=: ;;
2163127668Sbms    ,);;
2164127668Sbms    *)
2165127668Sbms      if test "x$ac_old_val" != "x$ac_new_val"; then
2166251158Sdelphij	# differences in whitespace do not lead to failure.
2167251158Sdelphij	ac_old_val_w=`echo x $ac_old_val`
2168251158Sdelphij	ac_new_val_w=`echo x $ac_new_val`
2169251158Sdelphij	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2170251158Sdelphij	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2171251158Sdelphij$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2172251158Sdelphij	  ac_cache_corrupted=:
2173251158Sdelphij	else
2174251158Sdelphij	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2175251158Sdelphij$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2176251158Sdelphij	  eval $ac_var=\$ac_old_val
2177251158Sdelphij	fi
2178251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2179251158Sdelphij$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2180251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2181251158Sdelphij$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2182127668Sbms      fi;;
2183127668Sbms  esac
2184127668Sbms  # Pass precious variables to config.status.
2185127668Sbms  if test "$ac_new_set" = set; then
2186127668Sbms    case $ac_new_val in
2187251158Sdelphij    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2188127668Sbms    *) ac_arg=$ac_var=$ac_new_val ;;
2189127668Sbms    esac
2190127668Sbms    case " $ac_configure_args " in
2191127668Sbms      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2192251158Sdelphij      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2193127668Sbms    esac
2194127668Sbms  fi
2195127668Sbmsdone
2196127668Sbmsif $ac_cache_corrupted; then
2197251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2200251158Sdelphij$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2201251158Sdelphij  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2202127668Sbmsfi
2203251158Sdelphij## -------------------- ##
2204251158Sdelphij## Main body of script. ##
2205251158Sdelphij## -------------------- ##
2206127668Sbms
2207172683Smlaierac_ext=c
2208172683Smlaierac_cpp='$CPP $CPPFLAGS'
2209172683Smlaierac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210172683Smlaierac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211172683Smlaierac_compiler_gnu=$ac_cv_c_compiler_gnu
2212127668Sbms
2213127668Sbms
2214127668Sbms
221517680Spstac_aux_dir=
2216172683Smlaierfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2217172683Smlaier  if test -f "$ac_dir/install-sh"; then
221817680Spst    ac_aux_dir=$ac_dir
221917680Spst    ac_install_sh="$ac_aux_dir/install-sh -c"
222017680Spst    break
2221172683Smlaier  elif test -f "$ac_dir/install.sh"; then
222217680Spst    ac_aux_dir=$ac_dir
222317680Spst    ac_install_sh="$ac_aux_dir/install.sh -c"
222417680Spst    break
2225172683Smlaier  elif test -f "$ac_dir/shtool"; then
2226127668Sbms    ac_aux_dir=$ac_dir
2227127668Sbms    ac_install_sh="$ac_aux_dir/shtool install -c"
2228127668Sbms    break
222917680Spst  fi
223017680Spstdone
223117680Spstif test -z "$ac_aux_dir"; then
2232251158Sdelphij  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
223317680Spstfi
223417680Spst
2235172683Smlaier# These three variables are undocumented and unsupported,
2236172683Smlaier# and are intended to be withdrawn in a future Autoconf release.
2237172683Smlaier# They can cause serious problems if a builder's source tree is in a directory
2238172683Smlaier# whose full name contains unusual characters.
2239172683Smlaierac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2240172683Smlaierac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2241172683Smlaierac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2242172683Smlaier
2243172683Smlaier
2244127668Sbms# Make sure we can run config.sub.
2245172683Smlaier$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2246251158Sdelphij  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
224717680Spst
2248251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2249251158Sdelphij$as_echo_n "checking build system type... " >&6; }
2250251158Sdelphijif ${ac_cv_build+:} false; then :
2251251158Sdelphij  $as_echo_n "(cached) " >&6
2252127668Sbmselse
2253172683Smlaier  ac_build_alias=$build_alias
2254172683Smlaiertest "x$ac_build_alias" = x &&
2255172683Smlaier  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2256172683Smlaiertest "x$ac_build_alias" = x &&
2257251158Sdelphij  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2258172683Smlaierac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2259251158Sdelphij  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2260127668Sbms
226117680Spstfi
2262251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2263251158Sdelphij$as_echo "$ac_cv_build" >&6; }
2264172683Smlaiercase $ac_cv_build in
2265172683Smlaier*-*-*) ;;
2266251158Sdelphij*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2267172683Smlaieresac
2268127668Sbmsbuild=$ac_cv_build
2269172683Smlaierac_save_IFS=$IFS; IFS='-'
2270172683Smlaierset x $ac_cv_build
2271172683Smlaiershift
2272172683Smlaierbuild_cpu=$1
2273172683Smlaierbuild_vendor=$2
2274172683Smlaiershift; shift
2275172683Smlaier# Remember, the first character of IFS is used to create $*,
2276172683Smlaier# except with old shells:
2277172683Smlaierbuild_os=$*
2278172683SmlaierIFS=$ac_save_IFS
2279172683Smlaiercase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
228017680Spst
228117680Spst
2282251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2283251158Sdelphij$as_echo_n "checking host system type... " >&6; }
2284251158Sdelphijif ${ac_cv_host+:} false; then :
2285251158Sdelphij  $as_echo_n "(cached) " >&6
2286127668Sbmselse
2287172683Smlaier  if test "x$host_alias" = x; then
2288172683Smlaier  ac_cv_host=$ac_cv_build
2289172683Smlaierelse
2290172683Smlaier  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2291251158Sdelphij    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2292172683Smlaierfi
229317680Spst
2294127668Sbmsfi
2295251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2296251158Sdelphij$as_echo "$ac_cv_host" >&6; }
2297172683Smlaiercase $ac_cv_host in
2298172683Smlaier*-*-*) ;;
2299251158Sdelphij*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2300172683Smlaieresac
2301127668Sbmshost=$ac_cv_host
2302172683Smlaierac_save_IFS=$IFS; IFS='-'
2303172683Smlaierset x $ac_cv_host
2304172683Smlaiershift
2305172683Smlaierhost_cpu=$1
2306172683Smlaierhost_vendor=$2
2307172683Smlaiershift; shift
2308172683Smlaier# Remember, the first character of IFS is used to create $*,
2309172683Smlaier# except with old shells:
2310172683Smlaierhost_os=$*
2311172683SmlaierIFS=$ac_save_IFS
2312172683Smlaiercase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
231317680Spst
231417680Spst
231517680Spst
2316127668Sbms
2317127668Sbms
2318127668Sbms
2319127668Sbms
2320127668Sbms
2321214478Srpaulo
2322172683Smlaier# Check whether --with-gcc was given.
2323251158Sdelphijif test "${with_gcc+set}" = set; then :
2324172683Smlaier  withval=$with_gcc;
2325172683Smlaierfi
232639297Sfenner
232739297Sfenner    V_CCOPT="-O"
232817680Spst    V_INCLS=""
232939297Sfenner    if test "${srcdir}" != "." ; then
2330235530Sdelphij	    V_INCLS="-I$srcdir"
233139297Sfenner    fi
233226180Sfenner    if test "${CFLAGS+set}" = set; then
233326180Sfenner	    LBL_CFLAGS="$CFLAGS"
233426180Sfenner    fi
233517680Spst    if test -z "$CC" ; then
233698524Sfenner	    case "$host_os" in
233717680Spst
233817680Spst	    bsdi*)
233917680Spst		    # Extract the first word of "shlicc2", so it can be a program name with args.
234017680Spstset dummy shlicc2; ac_word=$2
2341251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2342251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2343251158Sdelphijif ${ac_cv_prog_SHLICC2+:} false; then :
2344251158Sdelphij  $as_echo_n "(cached) " >&6
234517680Spstelse
234617680Spst  if test -n "$SHLICC2"; then
234717680Spst  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
234817680Spstelse
2349127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350127668Sbmsfor as_dir in $PATH
2351127668Sbmsdo
2352127668Sbms  IFS=$as_save_IFS
2353127668Sbms  test -z "$as_dir" && as_dir=.
2354251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2355172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356127668Sbms    ac_cv_prog_SHLICC2="yes"
2357251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2358127668Sbms    break 2
2359127668Sbms  fi
2360127668Sbmsdone
2361251158Sdelphij  done
2362172683SmlaierIFS=$as_save_IFS
2363127668Sbms
236417680Spst  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
236517680Spstfi
236617680Spstfi
2367127668SbmsSHLICC2=$ac_cv_prog_SHLICC2
236817680Spstif test -n "$SHLICC2"; then
2369251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2370251158Sdelphij$as_echo "$SHLICC2" >&6; }
237117680Spstelse
2372251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2373251158Sdelphij$as_echo "no" >&6; }
237417680Spstfi
237517680Spst
2376172683Smlaier
237717680Spst		    if test $SHLICC2 = yes ; then
237817680Spst			    CC=shlicc2
237917680Spst			    export CC
238017680Spst		    fi
238117680Spst		    ;;
238217680Spst	    esac
238317680Spst    fi
238439297Sfenner    if test -z "$CC" -a "$with_gcc" = no ; then
238539297Sfenner	    CC=cc
238639297Sfenner	    export CC
238739297Sfenner    fi
2388214478Srpaulo
2389214478Srpauloac_ext=c
2390127668Sbmsac_cpp='$CPP $CPPFLAGS'
2391127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
2394127668Sbmsif test -n "$ac_tool_prefix"; then
2395127668Sbms  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2396127668Sbmsset dummy ${ac_tool_prefix}gcc; ac_word=$2
2397251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2398251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2399251158Sdelphijif ${ac_cv_prog_CC+:} false; then :
2400251158Sdelphij  $as_echo_n "(cached) " >&6
2401127668Sbmselse
2402127668Sbms  if test -n "$CC"; then
2403127668Sbms  ac_cv_prog_CC="$CC" # Let the user override the test.
2404127668Sbmselse
2405127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406127668Sbmsfor as_dir in $PATH
2407127668Sbmsdo
2408127668Sbms  IFS=$as_save_IFS
2409127668Sbms  test -z "$as_dir" && as_dir=.
2410251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2411172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412127668Sbms    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2413251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414127668Sbms    break 2
2415127668Sbms  fi
2416127668Sbmsdone
2417251158Sdelphij  done
2418172683SmlaierIFS=$as_save_IFS
2419127668Sbms
2420127668Sbmsfi
2421127668Sbmsfi
2422127668SbmsCC=$ac_cv_prog_CC
2423127668Sbmsif test -n "$CC"; then
2424251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2425251158Sdelphij$as_echo "$CC" >&6; }
2426127668Sbmselse
2427251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2428251158Sdelphij$as_echo "no" >&6; }
2429127668Sbmsfi
2430127668Sbms
2431172683Smlaier
2432127668Sbmsfi
2433127668Sbmsif test -z "$ac_cv_prog_CC"; then
2434127668Sbms  ac_ct_CC=$CC
2435127668Sbms  # Extract the first word of "gcc", so it can be a program name with args.
243617680Spstset dummy gcc; ac_word=$2
2437251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2439251158Sdelphijif ${ac_cv_prog_ac_ct_CC+:} false; then :
2440251158Sdelphij  $as_echo_n "(cached) " >&6
244117680Spstelse
2442127668Sbms  if test -n "$ac_ct_CC"; then
2443127668Sbms  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2444127668Sbmselse
2445127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446127668Sbmsfor as_dir in $PATH
2447127668Sbmsdo
2448127668Sbms  IFS=$as_save_IFS
2449127668Sbms  test -z "$as_dir" && as_dir=.
2450251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2451172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452127668Sbms    ac_cv_prog_ac_ct_CC="gcc"
2453251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454127668Sbms    break 2
2455127668Sbms  fi
2456127668Sbmsdone
2457251158Sdelphij  done
2458172683SmlaierIFS=$as_save_IFS
2459127668Sbms
2460127668Sbmsfi
2461127668Sbmsfi
2462127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC
2463127668Sbmsif test -n "$ac_ct_CC"; then
2464251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2465251158Sdelphij$as_echo "$ac_ct_CC" >&6; }
2466127668Sbmselse
2467251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468251158Sdelphij$as_echo "no" >&6; }
2469127668Sbmsfi
2470127668Sbms
2471172683Smlaier  if test "x$ac_ct_CC" = x; then
2472172683Smlaier    CC=""
2473172683Smlaier  else
2474172683Smlaier    case $cross_compiling:$ac_tool_warned in
2475172683Smlaieryes:)
2476251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2477251158Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2478172683Smlaierac_tool_warned=yes ;;
2479172683Smlaieresac
2480172683Smlaier    CC=$ac_ct_CC
2481172683Smlaier  fi
2482127668Sbmselse
2483127668Sbms  CC="$ac_cv_prog_CC"
2484127668Sbmsfi
2485127668Sbms
2486127668Sbmsif test -z "$CC"; then
2487172683Smlaier          if test -n "$ac_tool_prefix"; then
2488172683Smlaier    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2489127668Sbmsset dummy ${ac_tool_prefix}cc; ac_word=$2
2490251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2491251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2492251158Sdelphijif ${ac_cv_prog_CC+:} false; then :
2493251158Sdelphij  $as_echo_n "(cached) " >&6
2494127668Sbmselse
249517680Spst  if test -n "$CC"; then
249617680Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
249717680Spstelse
2498127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499127668Sbmsfor as_dir in $PATH
2500127668Sbmsdo
2501127668Sbms  IFS=$as_save_IFS
2502127668Sbms  test -z "$as_dir" && as_dir=.
2503251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2504172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505127668Sbms    ac_cv_prog_CC="${ac_tool_prefix}cc"
2506251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507127668Sbms    break 2
2508127668Sbms  fi
2509127668Sbmsdone
2510251158Sdelphij  done
2511172683SmlaierIFS=$as_save_IFS
2512127668Sbms
251317680Spstfi
251417680Spstfi
2515127668SbmsCC=$ac_cv_prog_CC
251617680Spstif test -n "$CC"; then
2517251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2518251158Sdelphij$as_echo "$CC" >&6; }
251917680Spstelse
2520251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521251158Sdelphij$as_echo "no" >&6; }
252217680Spstfi
252317680Spst
2524172683Smlaier
2525127668Sbms  fi
2526127668Sbmsfi
252717680Spstif test -z "$CC"; then
252817680Spst  # Extract the first word of "cc", so it can be a program name with args.
252917680Spstset dummy cc; ac_word=$2
2530251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2532251158Sdelphijif ${ac_cv_prog_CC+:} false; then :
2533251158Sdelphij  $as_echo_n "(cached) " >&6
253417680Spstelse
253517680Spst  if test -n "$CC"; then
253617680Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
253717680Spstelse
253817680Spst  ac_prog_rejected=no
2539127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540127668Sbmsfor as_dir in $PATH
2541127668Sbmsdo
2542127668Sbms  IFS=$as_save_IFS
2543127668Sbms  test -z "$as_dir" && as_dir=.
2544251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2545172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546127668Sbms    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547127668Sbms       ac_prog_rejected=yes
2548127668Sbms       continue
2549127668Sbms     fi
2550127668Sbms    ac_cv_prog_CC="cc"
2551251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552127668Sbms    break 2
2553127668Sbms  fi
2554127668Sbmsdone
2555251158Sdelphij  done
2556172683SmlaierIFS=$as_save_IFS
2557127668Sbms
255817680Spstif test $ac_prog_rejected = yes; then
255917680Spst  # We found a bogon in the path, so make sure we never use it.
256017680Spst  set dummy $ac_cv_prog_CC
256117680Spst  shift
2562127668Sbms  if test $# != 0; then
256317680Spst    # We chose a different compiler from the bogus one.
256417680Spst    # However, it has the same basename, so the bogon will be chosen
256517680Spst    # first if we set CC to just the basename; use the full file name.
256617680Spst    shift
2567127668Sbms    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
256817680Spst  fi
256917680Spstfi
257017680Spstfi
257117680Spstfi
2572127668SbmsCC=$ac_cv_prog_CC
257317680Spstif test -n "$CC"; then
2574251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2575251158Sdelphij$as_echo "$CC" >&6; }
257617680Spstelse
2577251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578251158Sdelphij$as_echo "no" >&6; }
257917680Spstfi
258017680Spst
2581172683Smlaier
2582127668Sbmsfi
2583127668Sbmsif test -z "$CC"; then
2584127668Sbms  if test -n "$ac_tool_prefix"; then
2585172683Smlaier  for ac_prog in cl.exe
2586127668Sbms  do
2587127668Sbms    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588127668Sbmsset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2589251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2591251158Sdelphijif ${ac_cv_prog_CC+:} false; then :
2592251158Sdelphij  $as_echo_n "(cached) " >&6
259356893Sfennerelse
259456893Sfenner  if test -n "$CC"; then
259556893Sfenner  ac_cv_prog_CC="$CC" # Let the user override the test.
259656893Sfennerelse
2597127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598127668Sbmsfor as_dir in $PATH
2599127668Sbmsdo
2600127668Sbms  IFS=$as_save_IFS
2601127668Sbms  test -z "$as_dir" && as_dir=.
2602251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2603172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604127668Sbms    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2605251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606127668Sbms    break 2
2607127668Sbms  fi
2608127668Sbmsdone
2609251158Sdelphij  done
2610172683SmlaierIFS=$as_save_IFS
2611127668Sbms
261256893Sfennerfi
261356893Sfennerfi
2614127668SbmsCC=$ac_cv_prog_CC
261556893Sfennerif test -n "$CC"; then
2616251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2617251158Sdelphij$as_echo "$CC" >&6; }
261856893Sfennerelse
2619251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620251158Sdelphij$as_echo "no" >&6; }
262156893Sfennerfi
2622127668Sbms
2623172683Smlaier
2624127668Sbms    test -n "$CC" && break
2625127668Sbms  done
2626127668Sbmsfi
2627127668Sbmsif test -z "$CC"; then
2628127668Sbms  ac_ct_CC=$CC
2629172683Smlaier  for ac_prog in cl.exe
2630127668Sbmsdo
2631127668Sbms  # Extract the first word of "$ac_prog", so it can be a program name with args.
2632127668Sbmsset dummy $ac_prog; ac_word=$2
2633251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2635251158Sdelphijif ${ac_cv_prog_ac_ct_CC+:} false; then :
2636251158Sdelphij  $as_echo_n "(cached) " >&6
2637127668Sbmselse
2638127668Sbms  if test -n "$ac_ct_CC"; then
2639127668Sbms  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2640127668Sbmselse
2641127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642127668Sbmsfor as_dir in $PATH
2643127668Sbmsdo
2644127668Sbms  IFS=$as_save_IFS
2645127668Sbms  test -z "$as_dir" && as_dir=.
2646251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2647172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648127668Sbms    ac_cv_prog_ac_ct_CC="$ac_prog"
2649251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650127668Sbms    break 2
265156893Sfenner  fi
2652127668Sbmsdone
2653251158Sdelphij  done
2654172683SmlaierIFS=$as_save_IFS
2655127668Sbms
265617680Spstfi
2657127668Sbmsfi
2658127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC
2659127668Sbmsif test -n "$ac_ct_CC"; then
2660251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2661251158Sdelphij$as_echo "$ac_ct_CC" >&6; }
2662127668Sbmselse
2663251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664251158Sdelphij$as_echo "no" >&6; }
2665127668Sbmsfi
266617680Spst
2667172683Smlaier
2668127668Sbms  test -n "$ac_ct_CC" && break
2669127668Sbmsdone
267026180Sfenner
2671172683Smlaier  if test "x$ac_ct_CC" = x; then
2672172683Smlaier    CC=""
2673172683Smlaier  else
2674172683Smlaier    case $cross_compiling:$ac_tool_warned in
2675172683Smlaieryes:)
2676251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2677251158Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2678172683Smlaierac_tool_warned=yes ;;
2679172683Smlaieresac
2680172683Smlaier    CC=$ac_ct_CC
2681172683Smlaier  fi
2682127668Sbmsfi
268326180Sfenner
2684127668Sbmsfi
268556893Sfenner
268656893Sfenner
2687251158Sdelphijtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2688251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2689251158Sdelphijas_fn_error $? "no acceptable C compiler found in \$PATH
2690251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
2691127668Sbms
2692127668Sbms# Provide some information about the compiler.
2693251158Sdelphij$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2694251158Sdelphijset X $ac_compile
2695251158Sdelphijac_compiler=$2
2696251158Sdelphijfor ac_option in --version -v -V -qversion; do
2697251158Sdelphij  { { ac_try="$ac_compiler $ac_option >&5"
2698172683Smlaiercase "(($ac_try" in
2699172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700172683Smlaier  *) ac_try_echo=$ac_try;;
2701172683Smlaieresac
2702251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2703251158Sdelphij$as_echo "$ac_try_echo"; } >&5
2704251158Sdelphij  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2705127668Sbms  ac_status=$?
2706251158Sdelphij  if test -s conftest.err; then
2707251158Sdelphij    sed '10a\
2708251158Sdelphij... rest of stderr output deleted ...
2709251158Sdelphij         10q' conftest.err >conftest.er1
2710251158Sdelphij    cat conftest.er1 >&5
2711251158Sdelphij  fi
2712251158Sdelphij  rm -f conftest.er1 conftest.err
2713251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714251158Sdelphij  test $ac_status = 0; }
2715251158Sdelphijdone
2716127668Sbms
2717251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718127668Sbms/* end confdefs.h.  */
2719127668Sbms
2720127668Sbmsint
2721127668Sbmsmain ()
2722127668Sbms{
2723127668Sbms
2724127668Sbms  ;
2725127668Sbms  return 0;
2726127668Sbms}
2727127668Sbms_ACEOF
2728127668Sbmsac_clean_files_save=$ac_clean_files
2729251158Sdelphijac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2730127668Sbms# Try to create an executable without -o first, disregard a.out.
2731127668Sbms# It will help us diagnose broken compilers, and finding out an intuition
2732127668Sbms# of exeext.
2733251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2734251158Sdelphij$as_echo_n "checking whether the C compiler works... " >&6; }
2735251158Sdelphijac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2736251158Sdelphij
2737251158Sdelphij# The possible output files:
2738251158Sdelphijac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2739251158Sdelphij
2740172683Smlaierac_rmfiles=
2741172683Smlaierfor ac_file in $ac_files
2742172683Smlaierdo
2743172683Smlaier  case $ac_file in
2744251158Sdelphij    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2745172683Smlaier    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2746172683Smlaier  esac
2747172683Smlaierdone
2748172683Smlaierrm -f $ac_rmfiles
2749172683Smlaier
2750251158Sdelphijif { { ac_try="$ac_link_default"
2751172683Smlaiercase "(($ac_try" in
2752172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753172683Smlaier  *) ac_try_echo=$ac_try;;
2754172683Smlaieresac
2755251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2756251158Sdelphij$as_echo "$ac_try_echo"; } >&5
2757172683Smlaier  (eval "$ac_link_default") 2>&5
2758127668Sbms  ac_status=$?
2759251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2760251158Sdelphij  test $ac_status = 0; }; then :
2761172683Smlaier  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2762172683Smlaier# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2763172683Smlaier# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2764172683Smlaier# so that the user can short-circuit this test for compilers unknown to
2765172683Smlaier# Autoconf.
2766172683Smlaierfor ac_file in $ac_files ''
2767127668Sbmsdo
2768127668Sbms  test -f "$ac_file" || continue
2769127668Sbms  case $ac_file in
2770251158Sdelphij    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2771172683Smlaier	;;
2772127668Sbms    [ab].out )
2773172683Smlaier	# We found the default executable, but exeext='' is most
2774172683Smlaier	# certainly right.
2775172683Smlaier	break;;
2776127668Sbms    *.* )
2777251158Sdelphij	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2778172683Smlaier	then :; else
2779172683Smlaier	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2780172683Smlaier	fi
2781172683Smlaier	# We set ac_cv_exeext here because the later test for it is not
2782172683Smlaier	# safe: cross compilers may not add the suffix if given an `-o'
2783172683Smlaier	# argument, so we may need to know it at that point already.
2784172683Smlaier	# Even if this section looks crufty: it has the advantage of
2785172683Smlaier	# actually working.
2786172683Smlaier	break;;
2787127668Sbms    * )
2788172683Smlaier	break;;
2789127668Sbms  esac
2790127668Sbmsdone
2791172683Smlaiertest "$ac_cv_exeext" = no && ac_cv_exeext=
2792172683Smlaier
2793127668Sbmselse
2794172683Smlaier  ac_file=''
2795172683Smlaierfi
2796251158Sdelphijif test -z "$ac_file"; then :
2797251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798251158Sdelphij$as_echo "no" >&6; }
2799251158Sdelphij$as_echo "$as_me: failed program was:" >&5
2800127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2801127668Sbms
2802251158Sdelphij{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2803251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804251158Sdelphijas_fn_error 77 "C compiler cannot create executables
2805251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
2806251158Sdelphijelse
2807251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2808251158Sdelphij$as_echo "yes" >&6; }
2809127668Sbmsfi
2810251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2811251158Sdelphij$as_echo_n "checking for C compiler default output file name... " >&6; }
2812251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2813251158Sdelphij$as_echo "$ac_file" >&6; }
2814127668Sbmsac_exeext=$ac_cv_exeext
2815127668Sbms
2816251158Sdelphijrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2817127668Sbmsac_clean_files=$ac_clean_files_save
2818251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2819251158Sdelphij$as_echo_n "checking for suffix of executables... " >&6; }
2820251158Sdelphijif { { ac_try="$ac_link"
2821172683Smlaiercase "(($ac_try" in
2822172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823172683Smlaier  *) ac_try_echo=$ac_try;;
2824172683Smlaieresac
2825251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2826251158Sdelphij$as_echo "$ac_try_echo"; } >&5
2827172683Smlaier  (eval "$ac_link") 2>&5
2828127668Sbms  ac_status=$?
2829251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2830251158Sdelphij  test $ac_status = 0; }; then :
2831127668Sbms  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2832127668Sbms# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2833127668Sbms# work properly (i.e., refer to `conftest.exe'), while it won't with
2834127668Sbms# `rm'.
2835127668Sbmsfor ac_file in conftest.exe conftest conftest.*; do
2836127668Sbms  test -f "$ac_file" || continue
2837127668Sbms  case $ac_file in
2838251158Sdelphij    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2839127668Sbms    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840172683Smlaier	  break;;
2841127668Sbms    * ) break;;
2842127668Sbms  esac
2843127668Sbmsdone
2844127668Sbmselse
2845251158Sdelphij  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2846251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847251158Sdelphijas_fn_error $? "cannot compute suffix of executables: cannot compile and link
2848251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
284926180Sfennerfi
2850251158Sdelphijrm -f conftest conftest$ac_cv_exeext
2851251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2852251158Sdelphij$as_echo "$ac_cv_exeext" >&6; }
285326180Sfenner
2854127668Sbmsrm -f conftest.$ac_ext
2855127668SbmsEXEEXT=$ac_cv_exeext
2856127668Sbmsac_exeext=$EXEEXT
2857251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858251158Sdelphij/* end confdefs.h.  */
2859251158Sdelphij#include <stdio.h>
2860251158Sdelphijint
2861251158Sdelphijmain ()
2862251158Sdelphij{
2863251158SdelphijFILE *f = fopen ("conftest.out", "w");
2864251158Sdelphij return ferror (f) || fclose (f) != 0;
2865251158Sdelphij
2866251158Sdelphij  ;
2867251158Sdelphij  return 0;
2868251158Sdelphij}
2869251158Sdelphij_ACEOF
2870251158Sdelphijac_clean_files="$ac_clean_files conftest.out"
2871251158Sdelphij# Check that the compiler produces executables we can run.  If not, either
2872251158Sdelphij# the compiler is broken, or we cross compile.
2873251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2874251158Sdelphij$as_echo_n "checking whether we are cross compiling... " >&6; }
2875251158Sdelphijif test "$cross_compiling" != yes; then
2876251158Sdelphij  { { ac_try="$ac_link"
2877251158Sdelphijcase "(($ac_try" in
2878251158Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879251158Sdelphij  *) ac_try_echo=$ac_try;;
2880251158Sdelphijesac
2881251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882251158Sdelphij$as_echo "$ac_try_echo"; } >&5
2883251158Sdelphij  (eval "$ac_link") 2>&5
2884251158Sdelphij  ac_status=$?
2885251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886251158Sdelphij  test $ac_status = 0; }
2887251158Sdelphij  if { ac_try='./conftest$ac_cv_exeext'
2888251158Sdelphij  { { case "(($ac_try" in
2889251158Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890251158Sdelphij  *) ac_try_echo=$ac_try;;
2891251158Sdelphijesac
2892251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893251158Sdelphij$as_echo "$ac_try_echo"; } >&5
2894251158Sdelphij  (eval "$ac_try") 2>&5
2895251158Sdelphij  ac_status=$?
2896251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897251158Sdelphij  test $ac_status = 0; }; }; then
2898251158Sdelphij    cross_compiling=no
2899251158Sdelphij  else
2900251158Sdelphij    if test "$cross_compiling" = maybe; then
2901251158Sdelphij	cross_compiling=yes
2902251158Sdelphij    else
2903251158Sdelphij	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2904251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2905251158Sdelphijas_fn_error $? "cannot run C compiled programs.
2906251158SdelphijIf you meant to cross compile, use \`--host'.
2907251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
2908251158Sdelphij    fi
2909251158Sdelphij  fi
2910251158Sdelphijfi
2911251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2912251158Sdelphij$as_echo "$cross_compiling" >&6; }
2913251158Sdelphij
2914251158Sdelphijrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2915251158Sdelphijac_clean_files=$ac_clean_files_save
2916251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2917251158Sdelphij$as_echo_n "checking for suffix of object files... " >&6; }
2918251158Sdelphijif ${ac_cv_objext+:} false; then :
2919251158Sdelphij  $as_echo_n "(cached) " >&6
292017680Spstelse
2921251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922127668Sbms/* end confdefs.h.  */
2923127668Sbms
2924127668Sbmsint
2925127668Sbmsmain ()
2926127668Sbms{
2927127668Sbms
2928127668Sbms  ;
2929127668Sbms  return 0;
2930127668Sbms}
2931127668Sbms_ACEOF
2932127668Sbmsrm -f conftest.o conftest.obj
2933251158Sdelphijif { { ac_try="$ac_compile"
2934172683Smlaiercase "(($ac_try" in
2935172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936172683Smlaier  *) ac_try_echo=$ac_try;;
2937172683Smlaieresac
2938251158Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939251158Sdelphij$as_echo "$ac_try_echo"; } >&5
2940172683Smlaier  (eval "$ac_compile") 2>&5
2941127668Sbms  ac_status=$?
2942251158Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943251158Sdelphij  test $ac_status = 0; }; then :
2944172683Smlaier  for ac_file in conftest.o conftest.obj conftest.*; do
2945172683Smlaier  test -f "$ac_file" || continue;
2946127668Sbms  case $ac_file in
2947251158Sdelphij    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2948127668Sbms    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2949127668Sbms       break;;
2950127668Sbms  esac
2951127668Sbmsdone
295217680Spstelse
2953251158Sdelphij  $as_echo "$as_me: failed program was:" >&5
2954127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2955127668Sbms
2956251158Sdelphij{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958251158Sdelphijas_fn_error $? "cannot compute suffix of object files: cannot compile
2959251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
296017680Spstfi
2961127668Sbmsrm -f conftest.$ac_cv_objext conftest.$ac_ext
296217680Spstfi
2963251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2964251158Sdelphij$as_echo "$ac_cv_objext" >&6; }
2965127668SbmsOBJEXT=$ac_cv_objext
2966127668Sbmsac_objext=$OBJEXT
2967251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2968251158Sdelphij$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2969251158Sdelphijif ${ac_cv_c_compiler_gnu+:} false; then :
2970251158Sdelphij  $as_echo_n "(cached) " >&6
2971127668Sbmselse
2972251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973127668Sbms/* end confdefs.h.  */
297417680Spst
2975127668Sbmsint
2976127668Sbmsmain ()
2977127668Sbms{
2978127668Sbms#ifndef __GNUC__
2979127668Sbms       choke me
2980127668Sbms#endif
298126180Sfenner
2982127668Sbms  ;
2983127668Sbms  return 0;
2984127668Sbms}
2985127668Sbms_ACEOF
2986251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
2987127668Sbms  ac_compiler_gnu=yes
298856893Sfennerelse
2989251158Sdelphij  ac_compiler_gnu=no
299056893Sfennerfi
2991172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992127668Sbmsac_cv_c_compiler_gnu=$ac_compiler_gnu
299356893Sfenner
2994127668Sbmsfi
2995251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2996251158Sdelphij$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2997251158Sdelphijif test $ac_compiler_gnu = yes; then
2998251158Sdelphij  GCC=yes
2999251158Sdelphijelse
3000251158Sdelphij  GCC=
3001251158Sdelphijfi
3002127668Sbmsac_test_CFLAGS=${CFLAGS+set}
3003127668Sbmsac_save_CFLAGS=$CFLAGS
3004251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3005251158Sdelphij$as_echo_n "checking whether $CC accepts -g... " >&6; }
3006251158Sdelphijif ${ac_cv_prog_cc_g+:} false; then :
3007251158Sdelphij  $as_echo_n "(cached) " >&6
300817680Spstelse
3009172683Smlaier  ac_save_c_werror_flag=$ac_c_werror_flag
3010172683Smlaier   ac_c_werror_flag=yes
3011172683Smlaier   ac_cv_prog_cc_g=no
3012172683Smlaier   CFLAGS="-g"
3013251158Sdelphij   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014127668Sbms/* end confdefs.h.  */
3015127668Sbms
3016127668Sbmsint
3017127668Sbmsmain ()
3018127668Sbms{
3019127668Sbms
3020127668Sbms  ;
3021127668Sbms  return 0;
3022127668Sbms}
3023127668Sbms_ACEOF
3024251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
3025172683Smlaier  ac_cv_prog_cc_g=yes
3026172683Smlaierelse
3027251158Sdelphij  CFLAGS=""
3028251158Sdelphij      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029172683Smlaier/* end confdefs.h.  */
3030172683Smlaier
3031172683Smlaierint
3032172683Smlaiermain ()
3033172683Smlaier{
3034172683Smlaier
3035172683Smlaier  ;
3036172683Smlaier  return 0;
3037172683Smlaier}
3038172683Smlaier_ACEOF
3039251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
3040251158Sdelphij
3041172683Smlaierelse
3042251158Sdelphij  ac_c_werror_flag=$ac_save_c_werror_flag
3043172683Smlaier	 CFLAGS="-g"
3044251158Sdelphij	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045172683Smlaier/* end confdefs.h.  */
3046172683Smlaier
3047172683Smlaierint
3048172683Smlaiermain ()
3049172683Smlaier{
3050172683Smlaier
3051172683Smlaier  ;
3052172683Smlaier  return 0;
3053172683Smlaier}
3054172683Smlaier_ACEOF
3055251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
305626180Sfenner  ac_cv_prog_cc_g=yes
305717680Spstfi
3058172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059127668Sbmsfi
3060172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061172683Smlaierfi
3062172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063172683Smlaier   ac_c_werror_flag=$ac_save_c_werror_flag
3064172683Smlaierfi
3065251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3066251158Sdelphij$as_echo "$ac_cv_prog_cc_g" >&6; }
306756893Sfennerif test "$ac_test_CFLAGS" = set; then
3068127668Sbms  CFLAGS=$ac_save_CFLAGS
306956893Sfennerelif test $ac_cv_prog_cc_g = yes; then
307056893Sfenner  if test "$GCC" = yes; then
307126180Sfenner    CFLAGS="-g -O2"
307226180Sfenner  else
307356893Sfenner    CFLAGS="-g"
307456893Sfenner  fi
307556893Sfennerelse
307656893Sfenner  if test "$GCC" = yes; then
307726180Sfenner    CFLAGS="-O2"
307856893Sfenner  else
307956893Sfenner    CFLAGS=
308017680Spst  fi
308117680Spstfi
3082251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3083251158Sdelphij$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3084251158Sdelphijif ${ac_cv_prog_cc_c89+:} false; then :
3085251158Sdelphij  $as_echo_n "(cached) " >&6
3086127668Sbmselse
3087172683Smlaier  ac_cv_prog_cc_c89=no
3088127668Sbmsac_save_CC=$CC
3089251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090127668Sbms/* end confdefs.h.  */
3091127668Sbms#include <stdarg.h>
3092127668Sbms#include <stdio.h>
3093127668Sbms#include <sys/types.h>
3094127668Sbms#include <sys/stat.h>
3095127668Sbms/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3096127668Sbmsstruct buf { int x; };
3097127668SbmsFILE * (*rcsopen) (struct buf *, struct stat *, int);
3098127668Sbmsstatic char *e (p, i)
3099127668Sbms     char **p;
3100127668Sbms     int i;
3101127668Sbms{
3102127668Sbms  return p[i];
3103127668Sbms}
3104127668Sbmsstatic char *f (char * (*g) (char **, int), char **p, ...)
3105127668Sbms{
3106127668Sbms  char *s;
3107127668Sbms  va_list v;
3108127668Sbms  va_start (v,p);
3109127668Sbms  s = g (p, va_arg (v,int));
3110127668Sbms  va_end (v);
3111127668Sbms  return s;
3112127668Sbms}
3113172683Smlaier
3114172683Smlaier/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3115172683Smlaier   function prototypes and stuff, but not '\xHH' hex character constants.
3116172683Smlaier   These don't provoke an error unfortunately, instead are silently treated
3117172683Smlaier   as 'x'.  The following induces an error, until -std is added to get
3118172683Smlaier   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3119172683Smlaier   array size at least.  It's necessary to write '\x00'==0 to get something
3120172683Smlaier   that's true only with -std.  */
3121172683Smlaierint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3122172683Smlaier
3123172683Smlaier/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3124172683Smlaier   inside strings and character constants.  */
3125172683Smlaier#define FOO(x) 'x'
3126172683Smlaierint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3127172683Smlaier
3128127668Sbmsint test (int i, double x);
3129127668Sbmsstruct s1 {int (*f) (int a);};
3130127668Sbmsstruct s2 {int (*f) (double a);};
3131127668Sbmsint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3132127668Sbmsint argc;
3133127668Sbmschar **argv;
3134127668Sbmsint
3135127668Sbmsmain ()
3136127668Sbms{
3137127668Sbmsreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3138127668Sbms  ;
3139127668Sbms  return 0;
3140127668Sbms}
3141127668Sbms_ACEOF
3142172683Smlaierfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3143172683Smlaier	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3144127668Sbmsdo
3145127668Sbms  CC="$ac_save_CC $ac_arg"
3146251158Sdelphij  if ac_fn_c_try_compile "$LINENO"; then :
3147172683Smlaier  ac_cv_prog_cc_c89=$ac_arg
3148127668Sbmsfi
3149172683Smlaierrm -f core conftest.err conftest.$ac_objext
3150172683Smlaier  test "x$ac_cv_prog_cc_c89" != "xno" && break
3151127668Sbmsdone
3152172683Smlaierrm -f conftest.$ac_ext
3153127668SbmsCC=$ac_save_CC
3154127668Sbms
3155127668Sbmsfi
3156172683Smlaier# AC_CACHE_VAL
3157172683Smlaiercase "x$ac_cv_prog_cc_c89" in
3158172683Smlaier  x)
3159251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3160251158Sdelphij$as_echo "none needed" >&6; } ;;
3161172683Smlaier  xno)
3162251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3163251158Sdelphij$as_echo "unsupported" >&6; } ;;
3164127668Sbms  *)
3165172683Smlaier    CC="$CC $ac_cv_prog_cc_c89"
3166251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3167251158Sdelphij$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3168127668Sbmsesac
3169251158Sdelphijif test "x$ac_cv_prog_cc_c89" != xno; then :
3170127668Sbms
3171251158Sdelphijfi
3172127668Sbms
3173127668Sbmsac_ext=c
3174127668Sbmsac_cpp='$CPP $CPPFLAGS'
3175127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
3178127668Sbms
3179214478Srpaulo
3180214478Srpaulo
3181214478Srpaulo
3182214478Srpaulo
318339297Sfenner    if test "$GCC" = yes ; then
318417680Spst	    if test "$SHLICC2" = yes ; then
318539297Sfenner		    ac_cv_lbl_gcc_vers=2
318639297Sfenner		    V_CCOPT="-O2"
318717680Spst	    else
3188251158Sdelphij		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
3189251158Sdelphij$as_echo_n "checking gcc version... " >&6; }
3190251158Sdelphij		    if ${ac_cv_lbl_gcc_vers+:} false; then :
3191251158Sdelphij  $as_echo_n "(cached) " >&6
319217680Spstelse
319339297Sfenner  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
319439297Sfenner			    sed -e '/^gcc version /!d' \
319539297Sfenner				-e 's/^gcc version //' \
319639297Sfenner				-e 's/ .*//' -e 's/^[^0-9]*//' \
319739297Sfenner				-e 's/\..*//'`
319817680Spstfi
319917680Spst
3200251158Sdelphij		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_vers" >&5
3201251158Sdelphij$as_echo "$ac_cv_lbl_gcc_vers" >&6; }
320239297Sfenner		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
320339297Sfenner			    V_CCOPT="-O2"
320417680Spst		    fi
320517680Spst	    fi
320617680Spst    else
3207251158Sdelphij	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that $CC handles ansi prototypes" >&5
3208251158Sdelphij$as_echo_n "checking that $CC handles ansi prototypes... " >&6; }
3209251158Sdelphij	    if ${ac_cv_lbl_cc_ansi_prototypes+:} false; then :
3210251158Sdelphij  $as_echo_n "(cached) " >&6
321117680Spstelse
3212127668Sbms
3213251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214127668Sbms/* end confdefs.h.  */
321517680Spst#include <sys/types.h>
3216127668Sbmsint
3217127668Sbmsmain ()
3218127668Sbms{
321917680Spstint frob(int, char *)
3220127668Sbms  ;
3221127668Sbms  return 0;
3222127668Sbms}
3223127668Sbms_ACEOF
3224251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
322539297Sfenner  ac_cv_lbl_cc_ansi_prototypes=yes
322617680Spstelse
3227251158Sdelphij  ac_cv_lbl_cc_ansi_prototypes=no
322817680Spstfi
3229172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
323017680Spstfi
323117680Spst
3232251158Sdelphij	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
3233251158Sdelphij$as_echo "$ac_cv_lbl_cc_ansi_prototypes" >&6; }
323439297Sfenner	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
323598524Sfenner		    case "$host_os" in
323617680Spst
323717680Spst		    hpux*)
3238251158Sdelphij			    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3239251158Sdelphij$as_echo_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... " >&6; }
324017680Spst			    savedcflags="$CFLAGS"
324117680Spst			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3242251158Sdelphij			    if ${ac_cv_lbl_cc_hpux_cc_aa+:} false; then :
3243251158Sdelphij  $as_echo_n "(cached) " >&6
324417680Spstelse
3245251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246127668Sbms/* end confdefs.h.  */
324717680Spst#include <sys/types.h>
3248127668Sbmsint
3249127668Sbmsmain ()
3250127668Sbms{
325117680Spstint frob(int, char *)
3252127668Sbms  ;
3253127668Sbms  return 0;
3254127668Sbms}
3255127668Sbms_ACEOF
3256251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
325739297Sfenner  ac_cv_lbl_cc_hpux_cc_aa=yes
325817680Spstelse
3259251158Sdelphij  ac_cv_lbl_cc_hpux_cc_aa=no
326017680Spstfi
3261172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
326217680Spstfi
326317680Spst
3264251158Sdelphij			    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3265251158Sdelphij$as_echo "$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
326639297Sfenner			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3267251158Sdelphij				    as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
326817680Spst			    fi
326917680Spst			    CFLAGS="$savedcflags"
327017680Spst			    V_CCOPT="-Aa $V_CCOPT"
3271214478Srpaulo
3272251158Sdelphij$as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
327317680Spst
327417680Spst			    ;;
327517680Spst
3276214478Srpaulo		    osf*)
3277251158Sdelphij			    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3278251158Sdelphij$as_echo_n "checking for ansi mode in DEC compiler ($CC -std1)... " >&6; }
3279214478Srpaulo			    savedcflags="$CFLAGS"
3280214478Srpaulo			    CFLAGS="-std1"
3281251158Sdelphij			    if ${ac_cv_lbl_cc_osf1_cc_std1+:} false; then :
3282251158Sdelphij  $as_echo_n "(cached) " >&6
3283214478Srpauloelse
3284251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285214478Srpaulo/* end confdefs.h.  */
3286214478Srpaulo#include <sys/types.h>
3287214478Srpauloint
3288214478Srpaulomain ()
3289214478Srpaulo{
3290214478Srpauloint frob(int, char *)
3291214478Srpaulo  ;
3292214478Srpaulo  return 0;
3293214478Srpaulo}
3294214478Srpaulo_ACEOF
3295251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
3296214478Srpaulo  ac_cv_lbl_cc_osf1_cc_std1=yes
3297214478Srpauloelse
3298251158Sdelphij  ac_cv_lbl_cc_osf1_cc_std1=no
3299214478Srpaulofi
3300214478Srpaulorm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301214478Srpaulofi
3302214478Srpaulo
3303251158Sdelphij			    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3304251158Sdelphij$as_echo "$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3305214478Srpaulo			    if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3306251158Sdelphij				    as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3307214478Srpaulo			    fi
3308214478Srpaulo			    CFLAGS="$savedcflags"
3309214478Srpaulo			    V_CCOPT="-std1 $V_CCOPT"
3310214478Srpaulo			    ;;
3311214478Srpaulo
331217680Spst		    *)
3313251158Sdelphij			    as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
331417680Spst			    ;;
331517680Spst		    esac
331617680Spst	    fi
331739297Sfenner	    V_INCLS="$V_INCLS -I/usr/local/include"
331839297Sfenner	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
331917680Spst
332098524Sfenner	    case "$host_os" in
332117680Spst
332217680Spst	    irix*)
332398524Sfenner		    V_CCOPT="$V_CCOPT -xansi -signed -O"
332417680Spst		    ;;
332517680Spst
332617680Spst	    osf*)
3327214478Srpaulo	    	    #
3328214478Srpaulo		    # Presumed to be DEC OSF/1, Digital UNIX, or
3329214478Srpaulo		    # Tru64 UNIX.
3330214478Srpaulo		    #
3331214478Srpaulo		    V_CCOPT="$V_CCOPT -O"
333217680Spst		    ;;
333317680Spst
333417680Spst	    ultrix*)
3335251158Sdelphij		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3336251158Sdelphij$as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3337251158Sdelphij		    if ${ac_cv_lbl_cc_const_proto+:} false; then :
3338251158Sdelphij  $as_echo_n "(cached) " >&6
333917680Spstelse
3340251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341127668Sbms/* end confdefs.h.  */
334217680Spst#include <sys/types.h>
3343127668Sbmsint
3344127668Sbmsmain ()
3345127668Sbms{
334617680Spststruct a { int b; };
334717680Spst			    void c(const struct a *)
3348127668Sbms  ;
3349127668Sbms  return 0;
3350127668Sbms}
3351127668Sbms_ACEOF
3352251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
335339297Sfenner  ac_cv_lbl_cc_const_proto=yes
335417680Spstelse
3355251158Sdelphij  ac_cv_lbl_cc_const_proto=no
335617680Spstfi
3357172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
335817680Spstfi
335917680Spst
3360251158Sdelphij		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3361251158Sdelphij$as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
336239297Sfenner		    if test $ac_cv_lbl_cc_const_proto = no ; then
3363214478Srpaulo
3364251158Sdelphij$as_echo "#define const /**/" >>confdefs.h
336517680Spst
336617680Spst		    fi
336717680Spst		    ;;
336817680Spst	    esac
336917680Spst    fi
337017680Spst
3371251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3372251158Sdelphij$as_echo_n "checking for inline... " >&6; }
3373214478Srpaulo    save_CFLAGS="$CFLAGS"
3374214478Srpaulo    CFLAGS="$V_CCOPT"
3375251158Sdelphij    if ${ac_cv_lbl_inline+:} false; then :
3376251158Sdelphij  $as_echo_n "(cached) " >&6
337756893Sfennerelse
3378127668Sbms
3379111726Sfenner	ac_cv_lbl_inline=""
3380111726Sfenner	ac_lbl_cc_inline=no
3381111726Sfenner	for ac_lbl_inline in inline __inline__ __inline
3382111726Sfenner	do
3383251158Sdelphij	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384127668Sbms/* end confdefs.h.  */
3385111726Sfenner#define inline $ac_lbl_inline
3386111726Sfenner		static inline struct iltest *foo(void);
3387111726Sfenner		struct iltest {
3388111726Sfenner		    int iltest1;
3389111726Sfenner		    int iltest2;
3390111726Sfenner		};
339117680Spst
3392111726Sfenner		static inline struct iltest *
3393111726Sfenner		foo()
3394111726Sfenner		{
3395111726Sfenner		    static struct iltest xxx;
3396111726Sfenner
3397111726Sfenner		    return &xxx;
3398111726Sfenner		}
3399127668Sbmsint
3400127668Sbmsmain ()
3401127668Sbms{
3402111726Sfenner
3403127668Sbms  ;
3404127668Sbms  return 0;
3405127668Sbms}
3406127668Sbms_ACEOF
3407251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
3408111726Sfenner  ac_lbl_cc_inline=yes
340956893Sfennerfi
3410172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411111726Sfenner	    if test "$ac_lbl_cc_inline" = yes ; then
3412111726Sfenner		break;
3413111726Sfenner	    fi
3414111726Sfenner	done
3415111726Sfenner	if test "$ac_lbl_cc_inline" = yes ; then
3416111726Sfenner	    ac_cv_lbl_inline=$ac_lbl_inline
3417111726Sfenner	fi
341856893Sfennerfi
341956893Sfenner
3420214478Srpaulo    CFLAGS="$save_CFLAGS"
3421111726Sfenner    if test ! -z "$ac_cv_lbl_inline" ; then
3422251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3423251158Sdelphij$as_echo "$ac_cv_lbl_inline" >&6; }
3424111726Sfenner    else
3425251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426251158Sdelphij$as_echo "no" >&6; }
3427111726Sfenner    fi
3428127668Sbms
3429127668Sbmscat >>confdefs.h <<_ACEOF
3430111726Sfenner#define inline $ac_cv_lbl_inline
3431127668Sbms_ACEOF
343256893Sfenner
343356893Sfenner
3434251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3435251158Sdelphij$as_echo_n "checking for __attribute__... " >&6; }
3436251158Sdelphijif ${ac_cv___attribute__+:} false; then :
3437251158Sdelphij  $as_echo_n "(cached) " >&6
343875115Sfennerelse
343975115Sfenner
3440251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441127668Sbms/* end confdefs.h.  */
3442127668Sbms
3443251158Sdelphij
344475115Sfenner#include <stdlib.h>
344575115Sfenner
344675115Sfennerstatic void foo(void) __attribute__ ((noreturn));
344775115Sfenner
344875115Sfennerstatic void
344975115Sfennerfoo(void)
345075115Sfenner{
345175115Sfenner  exit(1);
345275115Sfenner}
345375115Sfenner
3454147899Ssamint
3455147899Ssammain(int argc, char **argv)
3456147899Ssam{
3457147899Ssam  foo();
3458127668Sbms}
3459147899Ssam
3460127668Sbms_ACEOF
3461251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
346275115Sfenner  ac_cv___attribute__=yes
346375115Sfennerelse
3464251158Sdelphij  ac_cv___attribute__=no
346575115Sfennerfi
3466172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
346775115Sfennerfi
346875115Sfenner
346975115Sfennerif test "$ac_cv___attribute__" = "yes"; then
3470127668Sbms
3471251158Sdelphij$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
347275115Sfenner
3473127668Sbms  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3474127668Sbmselse
3475127668Sbms  V_DEFS="$V_DEFS -D_U_=\"\""
347675115Sfennerfi
3477251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3478251158Sdelphij$as_echo "$ac_cv___attribute__" >&6; }
347975115Sfenner
3480214478Srpauloif test "$ac_cv___attribute__" = "yes"; then
3481214478Srpaulo
3482251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be applied to function pointers" >&5
3483251158Sdelphij$as_echo_n "checking whether __attribute__((format)) can be applied to function pointers... " >&6; }
3484251158Sdelphijif ${ac_cv___attribute___format_function_pointer+:} false; then :
3485251158Sdelphij  $as_echo_n "(cached) " >&6
3486214478Srpauloelse
3487214478Srpaulo
3488251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489214478Srpaulo/* end confdefs.h.  */
3490214478Srpaulo
3491251158Sdelphij
3492214478Srpaulo#include <stdlib.h>
3493214478Srpaulo
3494214478Srpauloextern int (*foo)(const char *fmt, ...)
3495214478Srpaulo		  __attribute__ ((format (printf, 1, 2)));
3496214478Srpaulo
3497214478Srpauloint
3498214478Srpaulomain(int argc, char **argv)
3499214478Srpaulo{
3500214478Srpaulo  (*foo)("%s", "test");
3501214478Srpaulo}
3502214478Srpaulo
3503214478Srpaulo_ACEOF
3504251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
3505214478Srpaulo  ac_cv___attribute___format_function_pointer=yes
3506214478Srpauloelse
3507251158Sdelphij  ac_cv___attribute___format_function_pointer=no
3508214478Srpaulofi
3509214478Srpaulorm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510214478Srpaulofi
3511214478Srpaulo
3512214478Srpauloif test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3513214478Srpaulo
3514251158Sdelphij$as_echo "#define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1" >>confdefs.h
3515214478Srpaulo
3516214478Srpaulofi
3517251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format_function_pointer" >&5
3518251158Sdelphij$as_echo "$ac_cv___attribute___format_function_pointer" >&6; }
3519214478Srpaulo
3520214478Srpaulofi
3521127668Sbmsac_ext=c
3522127668Sbmsac_cpp='$CPP $CPPFLAGS'
3523127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
3526251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3527251158Sdelphij$as_echo_n "checking how to run the C preprocessor... " >&6; }
352817680Spst# On Suns, sometimes $CPP names a directory.
352917680Spstif test -n "$CPP" && test -d "$CPP"; then
353017680Spst  CPP=
353117680Spstfi
353217680Spstif test -z "$CPP"; then
3533251158Sdelphij  if ${ac_cv_prog_CPP+:} false; then :
3534251158Sdelphij  $as_echo_n "(cached) " >&6
353517680Spstelse
3536127668Sbms      # Double quotes because CPP needs to be expanded
3537127668Sbms    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3538127668Sbms    do
3539127668Sbms      ac_preproc_ok=false
3540127668Sbmsfor ac_c_preproc_warn_flag in '' yes
3541127668Sbmsdo
3542127668Sbms  # Use a header file that comes with gcc, so configuring glibc
3543127668Sbms  # with a fresh cross-compiler works.
3544127668Sbms  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545127668Sbms  # <limits.h> exists even on freestanding compilers.
354617680Spst  # On the NeXT, cc -E runs the code through the compiler's parser,
3547127668Sbms  # not just through cpp. "Syntax error" is here to catch this case.
3548251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549127668Sbms/* end confdefs.h.  */
3550127668Sbms#ifdef __STDC__
3551127668Sbms# include <limits.h>
3552127668Sbms#else
3553127668Sbms# include <assert.h>
3554127668Sbms#endif
3555172683Smlaier		     Syntax error
3556127668Sbms_ACEOF
3557251158Sdelphijif ac_fn_c_try_cpp "$LINENO"; then :
3558251158Sdelphij
355917680Spstelse
3560127668Sbms  # Broken: fails on valid input.
3561127668Sbmscontinue
3562127668Sbmsfi
3563251158Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext
3564172683Smlaier
3565172683Smlaier  # OK, works on sane cases.  Now check whether nonexistent headers
3566127668Sbms  # can be detected and how.
3567251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568127668Sbms/* end confdefs.h.  */
3569127668Sbms#include <ac_nonexistent.h>
3570127668Sbms_ACEOF
3571251158Sdelphijif ac_fn_c_try_cpp "$LINENO"; then :
3572127668Sbms  # Broken: success on invalid input.
3573127668Sbmscontinue
3574127668Sbmselse
3575127668Sbms  # Passes both tests.
3576127668Sbmsac_preproc_ok=:
3577127668Sbmsbreak
3578127668Sbmsfi
3579251158Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext
3580172683Smlaier
3581127668Sbmsdone
3582127668Sbms# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583251158Sdelphijrm -f conftest.i conftest.err conftest.$ac_ext
3584251158Sdelphijif $ac_preproc_ok; then :
3585127668Sbms  break
3586127668Sbmsfi
3587127668Sbms
3588127668Sbms    done
3589127668Sbms    ac_cv_prog_CPP=$CPP
3590127668Sbms
3591127668Sbmsfi
3592127668Sbms  CPP=$ac_cv_prog_CPP
3593127668Sbmselse
3594127668Sbms  ac_cv_prog_CPP=$CPP
3595127668Sbmsfi
3596251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3597251158Sdelphij$as_echo "$CPP" >&6; }
3598127668Sbmsac_preproc_ok=false
3599127668Sbmsfor ac_c_preproc_warn_flag in '' yes
3600127668Sbmsdo
3601127668Sbms  # Use a header file that comes with gcc, so configuring glibc
3602127668Sbms  # with a fresh cross-compiler works.
3603127668Sbms  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604127668Sbms  # <limits.h> exists even on freestanding compilers.
3605127668Sbms  # On the NeXT, cc -E runs the code through the compiler's parser,
3606127668Sbms  # not just through cpp. "Syntax error" is here to catch this case.
3607251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608127668Sbms/* end confdefs.h.  */
3609127668Sbms#ifdef __STDC__
3610127668Sbms# include <limits.h>
3611127668Sbms#else
3612127668Sbms# include <assert.h>
3613127668Sbms#endif
3614172683Smlaier		     Syntax error
3615127668Sbms_ACEOF
3616251158Sdelphijif ac_fn_c_try_cpp "$LINENO"; then :
3617251158Sdelphij
361817680Spstelse
3619127668Sbms  # Broken: fails on valid input.
3620127668Sbmscontinue
3621127668Sbmsfi
3622251158Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext
3623172683Smlaier
3624172683Smlaier  # OK, works on sane cases.  Now check whether nonexistent headers
3625127668Sbms  # can be detected and how.
3626251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627127668Sbms/* end confdefs.h.  */
3628127668Sbms#include <ac_nonexistent.h>
3629127668Sbms_ACEOF
3630251158Sdelphijif ac_fn_c_try_cpp "$LINENO"; then :
3631127668Sbms  # Broken: success on invalid input.
3632127668Sbmscontinue
3633127668Sbmselse
3634127668Sbms  # Passes both tests.
3635127668Sbmsac_preproc_ok=:
3636127668Sbmsbreak
3637127668Sbmsfi
3638251158Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext
3639172683Smlaier
3640127668Sbmsdone
3641127668Sbms# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3642251158Sdelphijrm -f conftest.i conftest.err conftest.$ac_ext
3643251158Sdelphijif $ac_preproc_ok; then :
3644251158Sdelphij
364556893Sfennerelse
3646251158Sdelphij  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648251158Sdelphijas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3649251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
365017680Spstfi
3651127668Sbms
3652127668Sbmsac_ext=c
3653127668Sbmsac_cpp='$CPP $CPPFLAGS'
3654127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
3657127668Sbms
3658127668Sbms
3659251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3660251158Sdelphij$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3661251158Sdelphijif ${ac_cv_path_GREP+:} false; then :
3662251158Sdelphij  $as_echo_n "(cached) " >&6
3663127668Sbmselse
3664251158Sdelphij  if test -z "$GREP"; then
3665172683Smlaier  ac_path_GREP_found=false
3666251158Sdelphij  # Loop through the user's path and test for each of PROGNAME-LIST
3667251158Sdelphij  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668172683Smlaierfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3669172683Smlaierdo
3670172683Smlaier  IFS=$as_save_IFS
3671172683Smlaier  test -z "$as_dir" && as_dir=.
3672251158Sdelphij    for ac_prog in grep ggrep; do
3673251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
3674251158Sdelphij      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3675251158Sdelphij      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3676251158Sdelphij# Check for GNU ac_path_GREP and select it if it is found.
3677172683Smlaier  # Check for GNU $ac_path_GREP
3678172683Smlaiercase `"$ac_path_GREP" --version 2>&1` in
3679172683Smlaier*GNU*)
3680172683Smlaier  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3681172683Smlaier*)
3682172683Smlaier  ac_count=0
3683251158Sdelphij  $as_echo_n 0123456789 >"conftest.in"
3684172683Smlaier  while :
3685172683Smlaier  do
3686172683Smlaier    cat "conftest.in" "conftest.in" >"conftest.tmp"
3687172683Smlaier    mv "conftest.tmp" "conftest.in"
3688172683Smlaier    cp "conftest.in" "conftest.nl"
3689251158Sdelphij    $as_echo 'GREP' >> "conftest.nl"
3690172683Smlaier    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3691172683Smlaier    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3692251158Sdelphij    as_fn_arith $ac_count + 1 && ac_count=$as_val
3693172683Smlaier    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3694172683Smlaier      # Best one so far, save it but keep looking for a better one
3695172683Smlaier      ac_cv_path_GREP="$ac_path_GREP"
3696172683Smlaier      ac_path_GREP_max=$ac_count
3697127668Sbms    fi
3698172683Smlaier    # 10*(2^10) chars as input seems more than enough
3699172683Smlaier    test $ac_count -gt 10 && break
3700172683Smlaier  done
3701172683Smlaier  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3702172683Smlaieresac
3703172683Smlaier
3704251158Sdelphij      $ac_path_GREP_found && break 3
3705251158Sdelphij    done
3706172683Smlaier  done
3707251158Sdelphij  done
3708172683SmlaierIFS=$as_save_IFS
3709251158Sdelphij  if test -z "$ac_cv_path_GREP"; then
3710251158Sdelphij    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3711251158Sdelphij  fi
3712172683Smlaierelse
3713172683Smlaier  ac_cv_path_GREP=$GREP
3714172683Smlaierfi
3715172683Smlaier
3716172683Smlaierfi
3717251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3718251158Sdelphij$as_echo "$ac_cv_path_GREP" >&6; }
3719172683Smlaier GREP="$ac_cv_path_GREP"
3720172683Smlaier
3721172683Smlaier
3722251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3723251158Sdelphij$as_echo_n "checking for egrep... " >&6; }
3724251158Sdelphijif ${ac_cv_path_EGREP+:} false; then :
3725251158Sdelphij  $as_echo_n "(cached) " >&6
3726172683Smlaierelse
3727172683Smlaier  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3728172683Smlaier   then ac_cv_path_EGREP="$GREP -E"
3729172683Smlaier   else
3730251158Sdelphij     if test -z "$EGREP"; then
3731172683Smlaier  ac_path_EGREP_found=false
3732251158Sdelphij  # Loop through the user's path and test for each of PROGNAME-LIST
3733251158Sdelphij  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734172683Smlaierfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3735172683Smlaierdo
3736172683Smlaier  IFS=$as_save_IFS
3737172683Smlaier  test -z "$as_dir" && as_dir=.
3738251158Sdelphij    for ac_prog in egrep; do
3739251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
3740251158Sdelphij      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3741251158Sdelphij      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3742251158Sdelphij# Check for GNU ac_path_EGREP and select it if it is found.
3743172683Smlaier  # Check for GNU $ac_path_EGREP
3744172683Smlaiercase `"$ac_path_EGREP" --version 2>&1` in
3745172683Smlaier*GNU*)
3746172683Smlaier  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3747172683Smlaier*)
3748172683Smlaier  ac_count=0
3749251158Sdelphij  $as_echo_n 0123456789 >"conftest.in"
3750172683Smlaier  while :
3751172683Smlaier  do
3752172683Smlaier    cat "conftest.in" "conftest.in" >"conftest.tmp"
3753172683Smlaier    mv "conftest.tmp" "conftest.in"
3754172683Smlaier    cp "conftest.in" "conftest.nl"
3755251158Sdelphij    $as_echo 'EGREP' >> "conftest.nl"
3756172683Smlaier    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3757172683Smlaier    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3758251158Sdelphij    as_fn_arith $ac_count + 1 && ac_count=$as_val
3759172683Smlaier    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3760172683Smlaier      # Best one so far, save it but keep looking for a better one
3761172683Smlaier      ac_cv_path_EGREP="$ac_path_EGREP"
3762172683Smlaier      ac_path_EGREP_max=$ac_count
3763172683Smlaier    fi
3764172683Smlaier    # 10*(2^10) chars as input seems more than enough
3765172683Smlaier    test $ac_count -gt 10 && break
3766172683Smlaier  done
3767172683Smlaier  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3768172683Smlaieresac
3769172683Smlaier
3770251158Sdelphij      $ac_path_EGREP_found && break 3
3771251158Sdelphij    done
3772172683Smlaier  done
3773251158Sdelphij  done
3774172683SmlaierIFS=$as_save_IFS
3775251158Sdelphij  if test -z "$ac_cv_path_EGREP"; then
3776251158Sdelphij    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3777251158Sdelphij  fi
3778172683Smlaierelse
3779172683Smlaier  ac_cv_path_EGREP=$EGREP
3780172683Smlaierfi
3781172683Smlaier
3782172683Smlaier   fi
3783172683Smlaierfi
3784251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3785251158Sdelphij$as_echo "$ac_cv_path_EGREP" >&6; }
3786172683Smlaier EGREP="$ac_cv_path_EGREP"
3787172683Smlaier
3788172683Smlaier
3789251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3790251158Sdelphij$as_echo_n "checking for ANSI C header files... " >&6; }
3791251158Sdelphijif ${ac_cv_header_stdc+:} false; then :
3792251158Sdelphij  $as_echo_n "(cached) " >&6
3793127668Sbmselse
3794251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795127668Sbms/* end confdefs.h.  */
3796127668Sbms#include <stdlib.h>
3797127668Sbms#include <stdarg.h>
3798127668Sbms#include <string.h>
3799127668Sbms#include <float.h>
3800127668Sbms
3801127668Sbmsint
3802127668Sbmsmain ()
3803127668Sbms{
3804127668Sbms
3805127668Sbms  ;
3806127668Sbms  return 0;
3807127668Sbms}
3808127668Sbms_ACEOF
3809251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
3810127668Sbms  ac_cv_header_stdc=yes
3811127668Sbmselse
3812251158Sdelphij  ac_cv_header_stdc=no
3813127668Sbmsfi
3814172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815172683Smlaier
3816127668Sbmsif test $ac_cv_header_stdc = yes; then
3817127668Sbms  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3818251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819127668Sbms/* end confdefs.h.  */
3820127668Sbms#include <string.h>
3821127668Sbms
3822127668Sbms_ACEOF
3823127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3824251158Sdelphij  $EGREP "memchr" >/dev/null 2>&1; then :
3825251158Sdelphij
3826127668Sbmselse
3827127668Sbms  ac_cv_header_stdc=no
3828127668Sbmsfi
3829251158Sdelphijrm -f conftest*
3830127668Sbms
383156893Sfennerfi
3832127668Sbms
3833127668Sbmsif test $ac_cv_header_stdc = yes; then
3834127668Sbms  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3835251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836127668Sbms/* end confdefs.h.  */
3837127668Sbms#include <stdlib.h>
3838127668Sbms
3839127668Sbms_ACEOF
3840127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841251158Sdelphij  $EGREP "free" >/dev/null 2>&1; then :
3842251158Sdelphij
3843127668Sbmselse
3844127668Sbms  ac_cv_header_stdc=no
3845127668Sbmsfi
3846251158Sdelphijrm -f conftest*
3847127668Sbms
384817680Spstfi
3849127668Sbms
3850127668Sbmsif test $ac_cv_header_stdc = yes; then
3851127668Sbms  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3852251158Sdelphij  if test "$cross_compiling" = yes; then :
3853127668Sbms  :
385417680Spstelse
3855251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856127668Sbms/* end confdefs.h.  */
3857127668Sbms#include <ctype.h>
3858172683Smlaier#include <stdlib.h>
3859127668Sbms#if ((' ' & 0x0FF) == 0x020)
3860127668Sbms# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3861127668Sbms# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3862127668Sbms#else
3863127668Sbms# define ISLOWER(c) \
3864172683Smlaier		   (('a' <= (c) && (c) <= 'i') \
3865172683Smlaier		     || ('j' <= (c) && (c) <= 'r') \
3866172683Smlaier		     || ('s' <= (c) && (c) <= 'z'))
3867127668Sbms# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3868127668Sbms#endif
3869127668Sbms
3870127668Sbms#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3871127668Sbmsint
3872127668Sbmsmain ()
3873127668Sbms{
3874127668Sbms  int i;
3875127668Sbms  for (i = 0; i < 256; i++)
3876127668Sbms    if (XOR (islower (i), ISLOWER (i))
3877172683Smlaier	|| toupper (i) != TOUPPER (i))
3878172683Smlaier      return 2;
3879172683Smlaier  return 0;
3880127668Sbms}
3881127668Sbms_ACEOF
3882251158Sdelphijif ac_fn_c_try_run "$LINENO"; then :
3883251158Sdelphij
3884127668Sbmselse
3885251158Sdelphij  ac_cv_header_stdc=no
388617680Spstfi
3887251158Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3888251158Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
3889127668Sbmsfi
3890172683Smlaier
3891127668Sbmsfi
3892127668Sbmsfi
3893251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3894251158Sdelphij$as_echo "$ac_cv_header_stdc" >&6; }
3895127668Sbmsif test $ac_cv_header_stdc = yes; then
389617680Spst
3897251158Sdelphij$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3898127668Sbms
3899127668Sbmsfi
3900127668Sbms
3901127668Sbms# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3902127668Sbmsfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3903172683Smlaier		  inttypes.h stdint.h unistd.h
3904251158Sdelphijdo :
3905251158Sdelphij  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3906251158Sdelphijac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3907251158Sdelphij"
3908251158Sdelphijif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3909127668Sbms  cat >>confdefs.h <<_ACEOF
3910251158Sdelphij#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3911127668Sbms_ACEOF
3912127668Sbms
3913127668Sbmsfi
3914127668Sbms
3915127668Sbmsdone
3916127668Sbms
3917127668Sbms
3918235530Sdelphijfor ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h
3919251158Sdelphijdo :
3920251158Sdelphij  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3921251158Sdelphijac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3922251158Sdelphijif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3923127668Sbms  cat >>confdefs.h <<_ACEOF
3924251158Sdelphij#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3925127668Sbms_ACEOF
3926127668Sbms
3927127668Sbmsfi
3928127668Sbms
392917680Spstdone
393017680Spst
3931172683Smlaierfor ac_header in net/pfvar.h
3932251158Sdelphijdo :
3933251158Sdelphij  ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
3934127668Sbms#include <sys/socket.h>
3935172683Smlaier#include <net/if.h>
3936251158Sdelphij"
3937251158Sdelphijif test "x$ac_cv_header_net_pfvar_h" = xyes; then :
3938172683Smlaier  cat >>confdefs.h <<_ACEOF
3939251158Sdelphij#define HAVE_NET_PFVAR_H 1
3940172683Smlaier_ACEOF
3941172683Smlaier
3942172683Smlaierfi
3943172683Smlaier
3944172683Smlaierdone
3945172683Smlaier
3946190207Srpauloif test "$ac_cv_header_net_pfvar_h" = yes; then
3947172683Smlaier	LOCALSRC="print-pflog.c $LOCALSRC"
3948172683Smlaierfi
3949172683Smlaierfor ac_header in netinet/if_ether.h
3950251158Sdelphijdo :
3951251158Sdelphij  ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
3952172683Smlaier#include <sys/socket.h>
3953251158Sdelphij"
3954251158Sdelphijif test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
3955127668Sbms  cat >>confdefs.h <<_ACEOF
3956251158Sdelphij#define HAVE_NETINET_IF_ETHER_H 1
3957127668Sbms_ACEOF
3958127668Sbms
3959127668Sbmsfi
3960127668Sbms
3961127668Sbmsdone
3962127668Sbms
3963146773Ssamif test "$ac_cv_header_netinet_if_ether_h" != yes; then
3964146773Ssam	#
3965146773Ssam	# The simple test didn't work.
3966146773Ssam	# Do we need to include <net/if.h> first?
3967146773Ssam	# Unset ac_cv_header_netinet_if_ether_h so we don't
3968146773Ssam	# treat the previous failure as a cached value and
3969146773Ssam	# suppress the next test.
3970146773Ssam	#
3971251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
3972251158Sdelphij$as_echo "$as_me: Rechecking with some additional includes" >&6;}
3973146773Ssam	unset ac_cv_header_netinet_if_ether_h
3974251158Sdelphij	for ac_header in netinet/if_ether.h
3975251158Sdelphijdo :
3976251158Sdelphij  ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
3977146773Ssam#include <sys/socket.h>
3978146773Ssam#include <netinet/in.h>
3979146773Ssamstruct mbuf;
3980146773Ssamstruct rtentry;
3981146773Ssam#include <net/if.h>
3982251158Sdelphij"
3983251158Sdelphijif test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
3984146773Ssam  cat >>confdefs.h <<_ACEOF
3985251158Sdelphij#define HAVE_NETINET_IF_ETHER_H 1
3986146773Ssam_ACEOF
3987146773Ssam
3988146773Ssamfi
3989146773Ssam
3990146773Ssamdone
3991146773Ssam
3992146773Ssamfi
3993146773Ssam
3994251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
3995251158Sdelphij$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
3996251158Sdelphijif ${ac_cv_header_time+:} false; then :
3997251158Sdelphij  $as_echo_n "(cached) " >&6
3998127668Sbmselse
3999251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000127668Sbms/* end confdefs.h.  */
4001127668Sbms#include <sys/types.h>
400217680Spst#include <sys/time.h>
400317680Spst#include <time.h>
4004127668Sbms
4005127668Sbmsint
4006127668Sbmsmain ()
4007127668Sbms{
4008127668Sbmsif ((struct tm *) 0)
4009127668Sbmsreturn 0;
4010127668Sbms  ;
4011127668Sbms  return 0;
4012127668Sbms}
4013127668Sbms_ACEOF
4014251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
401517680Spst  ac_cv_header_time=yes
401617680Spstelse
4017251158Sdelphij  ac_cv_header_time=no
401817680Spstfi
4019172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
402017680Spstfi
4021251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4022251158Sdelphij$as_echo "$ac_cv_header_time" >&6; }
4023127668Sbmsif test $ac_cv_header_time = yes; then
402417680Spst
4025251158Sdelphij$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
402617680Spst
402717680Spstfi
402817680Spst
402917680Spst
403098524Sfennercase "$host_os" in
403139297Sfenner
4032235530Sdelphijdarwin*)
4033235530Sdelphij	# Check whether --enable-universal was given.
4034251158Sdelphijif test "${enable_universal+set}" = set; then :
4035235530Sdelphij  enableval=$enable_universal;
4036235530Sdelphijfi
4037235530Sdelphij
4038235530Sdelphij	if test "$enable_universal" != "no"; then
4039235530Sdelphij		case "$host_os" in
4040235530Sdelphij
4041235530Sdelphij		darwin9.*)
4042235530Sdelphij			#
4043235530Sdelphij			# Leopard.  Build for x86 and 32-bit PowerPC, with
4044235530Sdelphij			# x86 first.  (That's what Apple does.)
4045235530Sdelphij			#
4046235530Sdelphij			V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
4047235530Sdelphij			LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
4048235530Sdelphij			;;
4049235530Sdelphij
4050235530Sdelphij		darwin10.*)
4051235530Sdelphij			#
4052235530Sdelphij			# Snow Leopard.  Build for x86-64 and x86, with
4053235530Sdelphij			# x86-64 first.  (That's what Apple does.)
4054235530Sdelphij			#
4055235530Sdelphij			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
4056235530Sdelphij			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
4057235530Sdelphij			;;
4058235530Sdelphij		esac
4059235530Sdelphij	fi
4060235530Sdelphij	;;
4061235530Sdelphij
406239297Sfennerlinux*)
4063251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Linux kernel version" >&5
4064251158Sdelphij$as_echo_n "checking Linux kernel version... " >&6; }
406575115Sfenner 	if test "$cross_compiling" = yes; then
4066251158Sdelphij 		if ${ac_cv_linux_vers+:} false; then :
4067251158Sdelphij  $as_echo_n "(cached) " >&6
406839297Sfennerelse
406975115Sfenner  ac_cv_linux_vers=unknown
407075115Sfennerfi
407175115Sfenner
407275115Sfenner 	else
4073251158Sdelphij 		if ${ac_cv_linux_vers+:} false; then :
4074251158Sdelphij  $as_echo_n "(cached) " >&6
407575115Sfennerelse
407639297Sfenner  ac_cv_linux_vers=`uname -r 2>&1 | \
407775115Sfenner 			sed -n -e '$s/.* //' -e '$s/\..*//p'`
407839297Sfennerfi
407939297Sfenner
408075115Sfenner 	fi
4081251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_vers" >&5
4082251158Sdelphij$as_echo "$ac_cv_linux_vers" >&6; }
408375115Sfenner 	if test $ac_cv_linux_vers = unknown ; then
4084251158Sdelphij 		as_fn_error $? "cannot determine linux version when cross-compiling" "$LINENO" 5
408575115Sfenner 	fi
408639297Sfenner	if test $ac_cv_linux_vers -lt 2 ; then
4087251158Sdelphij		as_fn_error $? "version 2 or higher required; see the INSTALL doc for more info" "$LINENO" 5
408839297Sfenner	fi
408939297Sfenner	;;
409039297Sfenner
409139297Sfenner*)
409239297Sfenner	;;
409339297Sfenneresac
409439297Sfenner
409556893Sfenner
4096127668Sbms
4097214478Srpaulo# Check whether --with-smi was given.
4098251158Sdelphijif test "${with_smi+set}" = set; then :
4099214478Srpaulo  withval=$with_smi;
4100214478Srpauloelse
4101214478Srpaulo  with_smi=yes
4102214478Srpaulofi
4103214478Srpaulo
4104214478Srpaulo
4105214478Srpauloif test "x$with_smi" != "xno" ; then
4106127668Sbmsfor ac_header in smi.h
4107251158Sdelphijdo :
4108251158Sdelphij  ac_fn_c_check_header_mongrel "$LINENO" "smi.h" "ac_cv_header_smi_h" "$ac_includes_default"
4109251158Sdelphijif test "x$ac_cv_header_smi_h" = xyes; then :
4110127668Sbms  cat >>confdefs.h <<_ACEOF
4111251158Sdelphij#define HAVE_SMI_H 1
4112127668Sbms_ACEOF
4113127668Sbms
4114127668Sbmsfi
4115127668Sbms
411656893Sfennerdone
411756893Sfenner
4118251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smiInit in -lsmi" >&5
4119251158Sdelphij$as_echo_n "checking for smiInit in -lsmi... " >&6; }
4120251158Sdelphijif ${ac_cv_lib_smi_smiInit+:} false; then :
4121251158Sdelphij  $as_echo_n "(cached) " >&6
412256893Sfennerelse
4123127668Sbms  ac_check_lib_save_LIBS=$LIBS
412456893SfennerLIBS="-lsmi  $LIBS"
4125251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126127668Sbms/* end confdefs.h.  */
4127127668Sbms
4128172683Smlaier/* Override any GCC internal prototype to avoid an error.
4129172683Smlaier   Use char because int might match the return type of a GCC
4130172683Smlaier   builtin and then its argument prototype would still apply.  */
4131127668Sbms#ifdef __cplusplus
4132127668Sbmsextern "C"
4133127668Sbms#endif
4134127668Sbmschar smiInit ();
4135127668Sbmsint
4136127668Sbmsmain ()
4137127668Sbms{
4138172683Smlaierreturn smiInit ();
4139127668Sbms  ;
4140127668Sbms  return 0;
4141127668Sbms}
4142127668Sbms_ACEOF
4143251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4144127668Sbms  ac_cv_lib_smi_smiInit=yes
414556893Sfennerelse
4146251158Sdelphij  ac_cv_lib_smi_smiInit=no
414756893Sfennerfi
4148251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
4149251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
4150127668SbmsLIBS=$ac_check_lib_save_LIBS
4151127668Sbmsfi
4152251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smi_smiInit" >&5
4153251158Sdelphij$as_echo "$ac_cv_lib_smi_smiInit" >&6; }
4154251158Sdelphijif test "x$ac_cv_lib_smi_smiInit" = xyes; then :
4155127668Sbms  cat >>confdefs.h <<_ACEOF
4156127668Sbms#define HAVE_LIBSMI 1
4157127668Sbms_ACEOF
415856893Sfenner
415956893Sfenner  LIBS="-lsmi $LIBS"
416056893Sfenner
416156893Sfennerfi
416256893Sfenner
416398524Sfennerif test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
416498524Sfennerthen
4165251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libsmi" >&5
4166251158Sdelphij$as_echo_n "checking whether to enable libsmi... " >&6; }
4167251158Sdelphij        if test "$cross_compiling" = yes; then :
4168251158Sdelphij   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not when cross-compiling" >&5
4169251158Sdelphij$as_echo "not when cross-compiling" >&6; }
417075115Sfenner  libsmi=no
417175115Sfenner
417256893Sfennerelse
4173251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174127668Sbms/* end confdefs.h.  */
417556893Sfenner /* libsmi available check */
417656893Sfenner#include <smi.h>
417756893Sfennermain()
417856893Sfenner{
417975115Sfenner  int current, revision, age, n;
418075115Sfenner  const int required = 2;
4181127668Sbms  if (smiInit(""))
418256893Sfenner    exit(1);
418375115Sfenner  if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
418475115Sfenner    exit(2);
418575115Sfenner  n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
418675115Sfenner  if (n != 3)
418775115Sfenner    exit(3);
418875115Sfenner  if (required < current - age || required > current)
418975115Sfenner    exit(4);
419075115Sfenner  exit(0);
419156893Sfenner}
419256893Sfenner
4193127668Sbms_ACEOF
4194251158Sdelphijif ac_fn_c_try_run "$LINENO"; then :
4195251158Sdelphij   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4196251158Sdelphij$as_echo "yes" >&6; }
4197251158Sdelphij  $as_echo "#define LIBSMI 1" >>confdefs.h
419856893Sfenner
419956893Sfenner  libsmi=yes
420056893Sfennerelse
4201251158Sdelphij   case $? in
4202251158Sdelphij  1) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - smiInit failed" >&5
4203251158Sdelphij$as_echo "no - smiInit failed" >&6; } ;;
4204251158Sdelphij  2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - header/library version mismatch" >&5
4205251158Sdelphij$as_echo "no - header/library version mismatch" >&6; } ;;
4206251158Sdelphij  3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - can't determine library version" >&5
4207251158Sdelphij$as_echo "no - can't determine library version" >&6; } ;;
4208251158Sdelphij  4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - too old" >&5
4209251158Sdelphij$as_echo "no - too old" >&6; } ;;
4210251158Sdelphij  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211251158Sdelphij$as_echo "no" >&6; } ;;
421298524Sfenner  esac
421356893Sfenner  libsmi=no
421456893Sfennerfi
4215251158Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4216251158Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
421756893Sfennerfi
4218172683Smlaier
421998524Sfennerfi
4220214478Srpaulofi
422156893Sfenner
4222251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the possibly-buggy SMB printer" >&5
4223251158Sdelphij$as_echo_n "checking whether to enable the possibly-buggy SMB printer... " >&6; }
4224172683Smlaier# Check whether --enable-smb was given.
4225251158Sdelphijif test "${enable_smb+set}" = set; then :
4226172683Smlaier  enableval=$enable_smb;
422798524Sfennerelse
422898524Sfenner  enableval=yes
4229172683Smlaierfi
4230172683Smlaier
423198524Sfennercase "$enableval" in
4232251158Sdelphijyes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4233251158Sdelphij$as_echo "yes" >&6; }
4234251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4235251158Sdelphij$as_echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4236251158Sdelphij	$as_echo "#define TCPDUMP_DO_SMB 1" >>confdefs.h
423798524Sfenner
423898524Sfenner	LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
423998524Sfenner	;;
4240251158Sdelphij*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241251158Sdelphij$as_echo "no" >&6; }
424298524Sfenner	;;
424398524Sfenneresac
424498524Sfenner
4245146773Ssam
4246172683Smlaier# Check whether --with-user was given.
4247251158Sdelphijif test "${with_user+set}" = set; then :
4248172683Smlaier  withval=$with_user;
4249172683Smlaierfi
4250146773Ssam
4251251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to drop root privileges by default" >&5
4252251158Sdelphij$as_echo_n "checking whether to drop root privileges by default... " >&6; }
4253146773Ssamif test ! -z "$with_user" ; then
4254146773Ssam        cat >>confdefs.h <<_ACEOF
4255146773Ssam#define WITH_USER "$withval"
4256146773Ssam_ACEOF
4257146773Ssam
4258251158Sdelphij       { $as_echo "$as_me:${as_lineno-$LINENO}: result: to \"$withval\"" >&5
4259251158Sdelphij$as_echo "to \"$withval\"" >&6; }
4260146773Ssamelse
4261251158Sdelphij       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262251158Sdelphij$as_echo "no" >&6; }
4263146773Ssamfi
4264146773Ssam
4265146773Ssam
4266172683Smlaier# Check whether --with-chroot was given.
4267251158Sdelphijif test "${with_chroot+set}" = set; then :
4268172683Smlaier  withval=$with_chroot;
4269172683Smlaierfi
4270146773Ssam
4271251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to chroot" >&5
4272251158Sdelphij$as_echo_n "checking whether to chroot... " >&6; }
4273214478Srpauloif test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4274146773Ssam        cat >>confdefs.h <<_ACEOF
4275146773Ssam#define WITH_CHROOT "$withval"
4276146773Ssam_ACEOF
4277146773Ssam
4278251158Sdelphij       { $as_echo "$as_me:${as_lineno-$LINENO}: result: to \"$withval\"" >&5
4279251158Sdelphij$as_echo "to \"$withval\"" >&6; }
4280146773Ssamelse
4281251158Sdelphij       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282251158Sdelphij$as_echo "no" >&6; }
4283146773Ssamfi
4284146773Ssam
4285251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
4286251158Sdelphij$as_echo_n "checking whether to enable ipv6... " >&6; }
4287172683Smlaier# Check whether --enable-ipv6 was given.
4288251158Sdelphijif test "${enable_ipv6+set}" = set; then :
4289172683Smlaier  enableval=$enable_ipv6;  case "$enableval" in
4290251158Sdelphijyes)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4291251158Sdelphij$as_echo "yes" >&6; }
4292235530Sdelphij       LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
4293251158Sdelphij       $as_echo "#define INET6 1" >>confdefs.h
429456893Sfenner
429556893Sfenner       ipv6=yes
429656893Sfenner       ;;
429756893Sfenner*)
4298251158Sdelphij       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299251158Sdelphij$as_echo "no" >&6; }
430056893Sfenner       ipv6=no
430156893Sfenner       ;;
4302127668Sbms  esac
430356893Sfennerelse
4304251158Sdelphij  if test "$cross_compiling" = yes; then :
4305251158Sdelphij   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306251158Sdelphij$as_echo "no" >&6; }
430756893Sfenner  ipv6=no
430856893Sfenner
430956893Sfennerelse
4310251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311127668Sbms/* end confdefs.h.  */
431256893Sfenner /* AF_INET6 available check */
431356893Sfenner#include <sys/types.h>
431456893Sfenner#include <sys/socket.h>
431556893Sfennermain()
431656893Sfenner{
431756893Sfenner if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
431856893Sfenner   exit(1);
431956893Sfenner else
432056893Sfenner   exit(0);
432156893Sfenner}
432256893Sfenner
4323127668Sbms_ACEOF
4324251158Sdelphijif ac_fn_c_try_run "$LINENO"; then :
4325251158Sdelphij   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326251158Sdelphij$as_echo "yes" >&6; }
4327235530Sdelphij  LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
4328251158Sdelphij  $as_echo "#define INET6 1" >>confdefs.h
432956893Sfenner
433056893Sfenner  ipv6=yes
433156893Sfennerelse
4332251158Sdelphij   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333251158Sdelphij$as_echo "no" >&6; }
433456893Sfenner  ipv6=no
433556893Sfennerfi
4336251158Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4337251158Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
433856893Sfennerfi
433956893Sfenner
4340172683Smlaierfi
4341172683Smlaier
4342172683Smlaier
434356893Sfenneripv6type=unknown
434456893Sfenneripv6lib=none
434556893Sfenneripv6trylibc=no
434656893Sfenner
434756893Sfennerif test "$ipv6" = "yes"; then
4348251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
4349251158Sdelphij$as_echo_n "checking ipv6 stack type... " >&6; }
435056893Sfenner	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
435156893Sfenner		case $i in
435256893Sfenner		inria)
4353251158Sdelphij						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354127668Sbms/* end confdefs.h.  */
435556893Sfenner#include <netinet/in.h>
435656893Sfenner#ifdef IPV6_INRIA_VERSION
435756893Sfenneryes
435856893Sfenner#endif
4359127668Sbms_ACEOF
436056893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4361251158Sdelphij  $EGREP "yes" >/dev/null 2>&1; then :
436256893Sfenner  ipv6type=$i;
436356893Sfenner				CFLAGS="-DINET6 $CFLAGS"
436456893Sfennerfi
4365251158Sdelphijrm -f conftest*
436656893Sfenner
436756893Sfenner			;;
436856893Sfenner		kame)
4369251158Sdelphij						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370127668Sbms/* end confdefs.h.  */
437156893Sfenner#include <netinet/in.h>
437256893Sfenner#ifdef __KAME__
437356893Sfenneryes
437456893Sfenner#endif
4375127668Sbms_ACEOF
437656893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377251158Sdelphij  $EGREP "yes" >/dev/null 2>&1; then :
437856893Sfenner  ipv6type=$i;
437956893Sfenner				ipv6lib=inet6;
438056893Sfenner				ipv6libdir=/usr/local/v6/lib;
438156893Sfenner				ipv6trylibc=yes;
438256893Sfenner				CFLAGS="-DINET6 $CFLAGS"
438356893Sfennerfi
4384251158Sdelphijrm -f conftest*
438556893Sfenner
438656893Sfenner			;;
438756893Sfenner		linux-glibc)
4388251158Sdelphij						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389127668Sbms/* end confdefs.h.  */
439056893Sfenner#include <features.h>
439156893Sfenner#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
439256893Sfenneryes
439356893Sfenner#endif
4394127668Sbms_ACEOF
439556893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4396251158Sdelphij  $EGREP "yes" >/dev/null 2>&1; then :
439756893Sfenner  ipv6type=$i;
439856893Sfenner				CFLAGS="-DINET6 $CFLAGS"
439956893Sfennerfi
4400251158Sdelphijrm -f conftest*
440156893Sfenner
440256893Sfenner			;;
440356893Sfenner		linux-libinet6)
4404127668Sbms																		if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
440556893Sfenner				ipv6type=$i
440656893Sfenner				ipv6lib=inet6
440756893Sfenner				ipv6libdir=/usr/inet6/lib
440856893Sfenner				ipv6trylibc=yes;
440956893Sfenner				CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
441056893Sfenner			fi
441156893Sfenner			;;
441256893Sfenner		toshiba)
4413251158Sdelphij			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414127668Sbms/* end confdefs.h.  */
441556893Sfenner#include <sys/param.h>
441656893Sfenner#ifdef _TOSHIBA_INET6
441756893Sfenneryes
441856893Sfenner#endif
4419127668Sbms_ACEOF
442056893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4421251158Sdelphij  $EGREP "yes" >/dev/null 2>&1; then :
442256893Sfenner  ipv6type=$i;
442356893Sfenner				ipv6lib=inet6;
442456893Sfenner				ipv6libdir=/usr/local/v6/lib;
442556893Sfenner				CFLAGS="-DINET6 $CFLAGS"
442656893Sfennerfi
4427251158Sdelphijrm -f conftest*
442856893Sfenner
442956893Sfenner			;;
443056893Sfenner		v6d)
4431251158Sdelphij			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432127668Sbms/* end confdefs.h.  */
443356893Sfenner#include </usr/local/v6/include/sys/v6config.h>
443456893Sfenner#ifdef __V6D__
443556893Sfenneryes
443656893Sfenner#endif
4437127668Sbms_ACEOF
443856893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439251158Sdelphij  $EGREP "yes" >/dev/null 2>&1; then :
444056893Sfenner  ipv6type=$i;
444156893Sfenner				ipv6lib=v6;
444256893Sfenner				ipv6libdir=/usr/local/v6/lib;
444356893Sfenner				CFLAGS="-I/usr/local/v6/include $CFLAGS"
444456893Sfennerfi
4445251158Sdelphijrm -f conftest*
444656893Sfenner
444756893Sfenner			;;
444856893Sfenner		zeta)
4449251158Sdelphij			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450127668Sbms/* end confdefs.h.  */
445156893Sfenner#include <sys/param.h>
445256893Sfenner#ifdef _ZETA_MINAMI_INET6
445356893Sfenneryes
445456893Sfenner#endif
4455127668Sbms_ACEOF
445656893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4457251158Sdelphij  $EGREP "yes" >/dev/null 2>&1; then :
445856893Sfenner  ipv6type=$i;
445956893Sfenner				ipv6lib=inet6;
446056893Sfenner				ipv6libdir=/usr/local/v6/lib;
446156893Sfenner				CFLAGS="-DINET6 $CFLAGS"
446256893Sfennerfi
4463251158Sdelphijrm -f conftest*
446456893Sfenner
446556893Sfenner			;;
446656893Sfenner		esac
446756893Sfenner		if test "$ipv6type" != "unknown"; then
446856893Sfenner			break
446956893Sfenner		fi
447056893Sfenner	done
4471251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
4472251158Sdelphij$as_echo "$ipv6type" >&6; }
447356893Sfennerfi
447456893Sfenner
447556893Sfennerif test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
447656893Sfenner	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
447756893Sfenner		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
447856893Sfenner		echo "You have $ipv6lib library, using it"
447956893Sfenner	else
448056893Sfenner		if test "$ipv6trylibc" = "yes"; then
448156893Sfenner			echo "You do not have $ipv6lib library, using libc"
448256893Sfenner		else
448356893Sfenner			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
448456893Sfenner			echo "You need to fetch lib$ipv6lib.a from appropriate"
448556893Sfenner			echo 'ipv6 kit and compile beforehand.'
448656893Sfenner			exit 1
448756893Sfenner		fi
448856893Sfenner	fi
448956893Sfennerfi
449056893Sfenner
449156893Sfenner
449256893Sfennerif test "$ipv6" = "yes"; then
4493127668Sbms	#
4494127668Sbms	# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4495127668Sbms	# function in libc; there are "ngetaddrinfo()" and
4496127668Sbms	# "ogetaddrinfo()" functions, and <netdb.h> #defines
4497127668Sbms	# "getaddrinfo" to be either "ngetaddrinfo" or
4498127668Sbms	# "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4499127668Sbms	# or _XOPEN_SOURCE_EXTENDED are defined or not.
4500127668Sbms	#
4501127668Sbms	# So this test doesn't work on Tru64 5.1, and possibly
4502127668Sbms	# on other 5.x releases.  This causes the configure
4503127668Sbms	# script to become confused, and results in libpcap
4504127668Sbms	# being unbuildable.
4505127668Sbms	#
4506251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
4507251158Sdelphij$as_echo_n "checking for library containing getaddrinfo... " >&6; }
4508251158Sdelphijif ${ac_cv_search_getaddrinfo+:} false; then :
4509251158Sdelphij  $as_echo_n "(cached) " >&6
451056893Sfennerelse
4511127668Sbms  ac_func_search_save_LIBS=$LIBS
4512251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513127668Sbms/* end confdefs.h.  */
4514127668Sbms
4515172683Smlaier/* Override any GCC internal prototype to avoid an error.
4516172683Smlaier   Use char because int might match the return type of a GCC
4517172683Smlaier   builtin and then its argument prototype would still apply.  */
4518127668Sbms#ifdef __cplusplus
4519127668Sbmsextern "C"
4520127668Sbms#endif
4521127668Sbmschar getaddrinfo ();
4522127668Sbmsint
4523127668Sbmsmain ()
4524127668Sbms{
4525172683Smlaierreturn getaddrinfo ();
4526127668Sbms  ;
4527127668Sbms  return 0;
4528127668Sbms}
4529127668Sbms_ACEOF
4530172683Smlaierfor ac_lib in '' socket; do
4531172683Smlaier  if test -z "$ac_lib"; then
4532172683Smlaier    ac_res="none required"
4533172683Smlaier  else
4534172683Smlaier    ac_res=-l$ac_lib
4535172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4536172683Smlaier  fi
4537251158Sdelphij  if ac_fn_c_try_link "$LINENO"; then :
4538172683Smlaier  ac_cv_search_getaddrinfo=$ac_res
453975115Sfennerfi
4540251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
4541251158Sdelphij    conftest$ac_exeext
4542251158Sdelphij  if ${ac_cv_search_getaddrinfo+:} false; then :
4543172683Smlaier  break
4544172683Smlaierfi
4545172683Smlaierdone
4546251158Sdelphijif ${ac_cv_search_getaddrinfo+:} false; then :
4547251158Sdelphij
454856893Sfennerelse
4549172683Smlaier  ac_cv_search_getaddrinfo=no
455056893Sfennerfi
4551172683Smlaierrm conftest.$ac_ext
4552127668SbmsLIBS=$ac_func_search_save_LIBS
4553127668Sbmsfi
4554251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
4555251158Sdelphij$as_echo "$ac_cv_search_getaddrinfo" >&6; }
4556172683Smlaierac_res=$ac_cv_search_getaddrinfo
4557251158Sdelphijif test "$ac_res" != no; then :
4558172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4559251158Sdelphij  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
4560251158Sdelphij$as_echo_n "checking getaddrinfo bug... " >&6; }
4561251158Sdelphij	if ${td_cv_buggygetaddrinfo+:} false; then :
4562251158Sdelphij  $as_echo_n "(cached) " >&6
456356893Sfennerelse
4564251158Sdelphij  if test "$cross_compiling" = yes; then :
4565127668Sbms  td_cv_buggygetaddrinfo=yes
4566127668Sbmselse
4567251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568127668Sbms/* end confdefs.h.  */
456956893Sfenner
457056893Sfenner#include <sys/types.h>
457156893Sfenner#include <netdb.h>
457256893Sfenner#include <string.h>
457356893Sfenner#include <sys/socket.h>
457456893Sfenner#include <netinet/in.h>
457556893Sfenner
457656893Sfennermain()
457756893Sfenner{
457856893Sfenner  int passive, gaierr, inet4 = 0, inet6 = 0;
457956893Sfenner  struct addrinfo hints, *ai, *aitop;
458056893Sfenner  char straddr[INET6_ADDRSTRLEN], strport[16];
458156893Sfenner
458256893Sfenner  for (passive = 0; passive <= 1; passive++) {
458356893Sfenner    memset(&hints, 0, sizeof(hints));
458456893Sfenner    hints.ai_family = AF_UNSPEC;
458556893Sfenner    hints.ai_flags = passive ? AI_PASSIVE : 0;
458656893Sfenner    hints.ai_socktype = SOCK_STREAM;
4587127668Sbms    hints.ai_protocol = IPPROTO_TCP;
458856893Sfenner    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
458956893Sfenner      (void)gai_strerror(gaierr);
459056893Sfenner      goto bad;
459156893Sfenner    }
459256893Sfenner    for (ai = aitop; ai; ai = ai->ai_next) {
459356893Sfenner      if (ai->ai_addr == NULL ||
459456893Sfenner          ai->ai_addrlen == 0 ||
459556893Sfenner          getnameinfo(ai->ai_addr, ai->ai_addrlen,
459656893Sfenner                      straddr, sizeof(straddr), strport, sizeof(strport),
459756893Sfenner                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
459856893Sfenner        goto bad;
459956893Sfenner      }
460056893Sfenner      switch (ai->ai_family) {
460156893Sfenner      case AF_INET:
460256893Sfenner        if (strcmp(strport, "54321") != 0) {
460356893Sfenner          goto bad;
460456893Sfenner        }
460556893Sfenner        if (passive) {
460656893Sfenner          if (strcmp(straddr, "0.0.0.0") != 0) {
460756893Sfenner            goto bad;
460856893Sfenner          }
460956893Sfenner        } else {
461056893Sfenner          if (strcmp(straddr, "127.0.0.1") != 0) {
461156893Sfenner            goto bad;
461256893Sfenner          }
461356893Sfenner        }
461456893Sfenner        inet4++;
461556893Sfenner        break;
461656893Sfenner      case AF_INET6:
461756893Sfenner        if (strcmp(strport, "54321") != 0) {
461856893Sfenner          goto bad;
461956893Sfenner        }
462056893Sfenner        if (passive) {
462156893Sfenner          if (strcmp(straddr, "::") != 0) {
462256893Sfenner            goto bad;
462356893Sfenner          }
462456893Sfenner        } else {
462556893Sfenner          if (strcmp(straddr, "::1") != 0) {
462656893Sfenner            goto bad;
462756893Sfenner          }
462856893Sfenner        }
462956893Sfenner        inet6++;
463056893Sfenner        break;
463156893Sfenner      case AF_UNSPEC:
463256893Sfenner        goto bad;
463356893Sfenner        break;
463456893Sfenner#ifdef AF_UNIX
463556893Sfenner      case AF_UNIX:
463656893Sfenner#else
463756893Sfenner#ifdef AF_LOCAL
463856893Sfenner      case AF_LOCAL:
463956893Sfenner#endif
464056893Sfenner#endif
464156893Sfenner      default:
464256893Sfenner        /* another family support? */
464356893Sfenner        break;
464456893Sfenner      }
464556893Sfenner    }
464656893Sfenner  }
464756893Sfenner
464856893Sfenner  /* supported family should be 2, unsupported family should be 0 */
464956893Sfenner  if (!(inet4 == 0 || inet4 == 2))
465056893Sfenner    goto bad;
465156893Sfenner  if (!(inet6 == 0 || inet6 == 2))
465256893Sfenner    goto bad;
465356893Sfenner
465456893Sfenner  if (aitop)
465556893Sfenner    freeaddrinfo(aitop);
465656893Sfenner  exit(0);
465756893Sfenner
465856893Sfenner bad:
465956893Sfenner  if (aitop)
466056893Sfenner    freeaddrinfo(aitop);
466156893Sfenner  exit(1);
466256893Sfenner}
466356893Sfenner
4664127668Sbms_ACEOF
4665251158Sdelphijif ac_fn_c_try_run "$LINENO"; then :
4666127668Sbms  td_cv_buggygetaddrinfo=no
466756893Sfennerelse
4668251158Sdelphij  td_cv_buggygetaddrinfo=yes
466956893Sfennerfi
4670251158Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4671251158Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
467256893Sfennerfi
4673172683Smlaier
467456893Sfennerfi
467556893Sfenner
4676127668Sbms	if test "$td_cv_buggygetaddrinfo" = no; then
4677251158Sdelphij		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5
4678251158Sdelphij$as_echo "good" >&6; }
4679127668Sbms	else
4680251158Sdelphij		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
4681251158Sdelphij$as_echo "buggy" >&6; }
4682127668Sbms	fi
4683127668Sbms
4684127668Sbms	if test "$td_cv_buggygetaddrinfo" = "yes"; then
4685127668Sbms		#
4686127668Sbms		# XXX - it doesn't appear that "ipv6type" can ever be
4687127668Sbms		# set to "linux".  Should this be testing for
4688127668Sbms		# "linux-glibc", or for that *or* "linux-libinet6"?
4689127668Sbms		# If the latter, note that "linux-libinet6" is also
4690127668Sbms		# the type given to some non-Linux OSes.
4691127668Sbms		#
469256893Sfenner		if test "$ipv6type" != "linux"; then
469356893Sfenner			echo 'Fatal: You must get working getaddrinfo() function.'
469456893Sfenner			echo '       or you can specify "--disable-ipv6"'.
469556893Sfenner			exit 1
469656893Sfenner		else
469756893Sfenner			echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4698127668Sbms			echo '         Better upgrade your system library to newest version'
469956893Sfenner			echo '         of GNU C library (aka glibc).'
470056893Sfenner		fi
470156893Sfenner	fi
4702127668Sbms
4703127668Sbmsfi
4704127668Sbms
4705251158Sdelphij	ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
4706251158Sdelphijif test "x$ac_cv_func_getnameinfo" = xyes; then :
4707251158Sdelphij  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
4708127668Sbms
470956893Sfennerelse
4710172683Smlaier  case " $LIBOBJS " in
4711251158Sdelphij  *" getnameinfo.$ac_objext "* ) ;;
4712251158Sdelphij  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
4713172683Smlaier ;;
4714172683Smlaieresac
4715172683Smlaier
471656893Sfennerfi
471756893Sfenner
471856893Sfenner
471956893Sfennerfi
4720127668Sbms
4721251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4722251158Sdelphij$as_echo_n "checking for dnet_htoa declaration in netdnet/dnetdb.h... " >&6; }
4723251158Sdelphijif ${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+:} false; then :
4724251158Sdelphij  $as_echo_n "(cached) " >&6
472575115Sfennerelse
4726251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727127668Sbms/* end confdefs.h.  */
4728127668Sbms#include <netdnet/dnetdb.h>
4729127668Sbms
4730127668Sbms_ACEOF
4731127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732251158Sdelphij  $EGREP "dnet_htoa" >/dev/null 2>&1; then :
4733127668Sbms  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
473456893Sfennerelse
4735127668Sbms  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4736127668Sbmsfi
4737251158Sdelphijrm -f conftest*
473856893Sfenner
4739127668Sbmsfi
4740251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4741251158Sdelphij$as_echo "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
4742127668Sbmsif test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4743251158Sdelphij	$as_echo "#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1" >>confdefs.h
474456893Sfenner
4745127668Sbmsfi
474656893Sfenner
4747127668Sbms
4748251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
4749251158Sdelphij$as_echo_n "checking for addrinfo... " >&6; }
4750251158Sdelphij	if ${ac_cv_addrinfo+:} false; then :
4751251158Sdelphij  $as_echo_n "(cached) " >&6
475256893Sfennerelse
4753251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754127668Sbms/* end confdefs.h.  */
475556893Sfenner
475656893Sfenner#		include <netdb.h>
4757127668Sbmsint
4758127668Sbmsmain ()
4759127668Sbms{
476056893Sfennerstruct addrinfo a
4761127668Sbms  ;
4762127668Sbms  return 0;
4763127668Sbms}
4764127668Sbms_ACEOF
4765251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
476656893Sfenner  ac_cv_addrinfo=yes
476756893Sfennerelse
4768251158Sdelphij  ac_cv_addrinfo=no
476956893Sfennerfi
4770172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
477156893Sfennerfi
477256893Sfenner
4773251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_addrinfo" >&5
4774251158Sdelphij$as_echo "$ac_cv_addrinfo" >&6; }
477556893Sfenner	if test $ac_cv_addrinfo = yes; then
4776251158Sdelphij		$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
477756893Sfenner
477856893Sfenner	else
4779251158Sdelphij		$as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h
478056893Sfenner
478156893Sfenner	fi
478256893Sfenner
478356893Sfennerif test "$ac_cv_addrinfo" = no; then
478456893Sfenner	missing_includes=yes
478556893Sfennerfi
478656893Sfenner
478756893Sfenner
4788251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NI_MAXSERV" >&5
4789251158Sdelphij$as_echo_n "checking for NI_MAXSERV... " >&6; }
4790251158Sdelphij	if ${ac_cv_maxserv+:} false; then :
4791251158Sdelphij  $as_echo_n "(cached) " >&6
479256893Sfennerelse
4793251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794127668Sbms/* end confdefs.h.  */
479556893Sfenner#include <netdb.h>
479656893Sfenner#ifdef NI_MAXSERV
479756893Sfenneryes
479856893Sfenner#endif
4799127668Sbms_ACEOF
480056893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4801251158Sdelphij  $EGREP "yes" >/dev/null 2>&1; then :
480256893Sfenner  ac_cv_maxserv=yes
480356893Sfennerelse
480456893Sfenner  ac_cv_maxserv=no
480556893Sfennerfi
4806251158Sdelphijrm -f conftest*
480756893Sfenner
480856893Sfennerfi
480956893Sfenner
4810251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_maxserv" >&5
4811251158Sdelphij$as_echo "$ac_cv_maxserv" >&6; }
481256893Sfenner	if test $ac_cv_maxserv != yes; then
4813251158Sdelphij		$as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h
481456893Sfenner
481556893Sfenner	fi
481656893Sfenner
481756893Sfennerif test "$ac_cv_maxserv" = no; then
481856893Sfenner	missing_includes=yes
481956893Sfennerfi
482056893Sfenner
482156893Sfenner
4822251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NI_NAMEREQD" >&5
4823251158Sdelphij$as_echo_n "checking for NI_NAMEREQD... " >&6; }
4824251158Sdelphij	if ${ac_cv_namereqd+:} false; then :
4825251158Sdelphij  $as_echo_n "(cached) " >&6
482656893Sfennerelse
4827251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828127668Sbms/* end confdefs.h.  */
482956893Sfenner#include <netdb.h>
483056893Sfenner#ifdef NI_NOFQDN
483156893Sfenneryes
483256893Sfenner#endif
4833127668Sbms_ACEOF
483456893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4835251158Sdelphij  $EGREP "yes" >/dev/null 2>&1; then :
483656893Sfenner  ac_cv_namereqd=yes
483756893Sfennerelse
483856893Sfenner  ac_cv_namereqd=no
483956893Sfennerfi
4840251158Sdelphijrm -f conftest*
484156893Sfenner
484256893Sfennerfi
484356893Sfenner
4844251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namereqd" >&5
4845251158Sdelphij$as_echo "$ac_cv_namereqd" >&6; }
484656893Sfenner	if test $ac_cv_namereqd != yes; then
4847251158Sdelphij		$as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h
484856893Sfenner
484956893Sfenner	fi
485056893Sfenner
485156893Sfennerif test "$ac_cv_namereqd" = no; then
485256893Sfenner	missing_includes=yes
485356893Sfennerfi
485456893Sfenner
485556893Sfenner
4856251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
4857251158Sdelphij$as_echo_n "checking for sockaddr_storage... " >&6; }
4858251158Sdelphij	if ${ac_cv_sa_storage+:} false; then :
4859251158Sdelphij  $as_echo_n "(cached) " >&6
486056893Sfennerelse
4861251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862127668Sbms/* end confdefs.h.  */
486356893Sfenner
486456893Sfenner#		include <sys/types.h>
486556893Sfenner#		include <sys/socket.h>
4866127668Sbmsint
4867127668Sbmsmain ()
4868127668Sbms{
486956893Sfennerstruct sockaddr_storage s
4870127668Sbms  ;
4871127668Sbms  return 0;
4872127668Sbms}
4873127668Sbms_ACEOF
4874251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
487556893Sfenner  ac_cv_sa_storage=yes
487656893Sfennerelse
4877251158Sdelphij  ac_cv_sa_storage=no
487856893Sfennerfi
4879172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
488056893Sfennerfi
488156893Sfenner
4882251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sa_storage" >&5
4883251158Sdelphij$as_echo "$ac_cv_sa_storage" >&6; }
488456893Sfenner	if test $ac_cv_sa_storage = yes; then
4885251158Sdelphij		$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
488656893Sfenner
488756893Sfenner	fi
488856893Sfenner
488956893Sfennerif test "$ac_cv_sa_storage" = no; then
489056893Sfenner	missing_includes=yes
489156893Sfennerfi
489256893Sfenner
4893251158Sdelphijac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
4894251158Sdelphijif test "x$ac_cv_func_vfprintf" = xyes; then :
4895251158Sdelphij  $as_echo "#define HAVE_VFPRINTF 1" >>confdefs.h
489656893Sfenner
4897251158Sdelphijelse
4898251158Sdelphij  case " $LIBOBJS " in
4899251158Sdelphij  *" vfprintf.$ac_objext "* ) ;;
4900251158Sdelphij  *) LIBOBJS="$LIBOBJS vfprintf.$ac_objext"
4901251158Sdelphij ;;
4902251158Sdelphijesac
490356893Sfenner
4904251158Sdelphijfi
4905127668Sbms
4906251158Sdelphijac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
4907251158Sdelphijif test "x$ac_cv_func_strcasecmp" = xyes; then :
4908251158Sdelphij  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
4909172683Smlaier
491017680Spstelse
4911251158Sdelphij  case " $LIBOBJS " in
4912251158Sdelphij  *" strcasecmp.$ac_objext "* ) ;;
4913251158Sdelphij  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
4914251158Sdelphij ;;
4915251158Sdelphijesac
4916172683Smlaier
4917251158Sdelphijfi
4918172683Smlaier
4919251158Sdelphijac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
4920251158Sdelphijif test "x$ac_cv_func_strlcat" = xyes; then :
4921251158Sdelphij  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
4922172683Smlaier
4923251158Sdelphijelse
4924251158Sdelphij  case " $LIBOBJS " in
4925251158Sdelphij  *" strlcat.$ac_objext "* ) ;;
4926251158Sdelphij  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
4927251158Sdelphij ;;
4928172683Smlaieresac
492917680Spst
4930127668Sbmsfi
4931172683Smlaier
4932251158Sdelphijac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
4933251158Sdelphijif test "x$ac_cv_func_strlcpy" = xyes; then :
4934251158Sdelphij  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
4935127668Sbms
4936127668Sbmselse
4937172683Smlaier  case " $LIBOBJS " in
4938251158Sdelphij  *" strlcpy.$ac_objext "* ) ;;
4939251158Sdelphij  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
4940172683Smlaier ;;
4941172683Smlaieresac
4942172683Smlaier
4943127668Sbmsfi
4944127668Sbms
4945251158Sdelphijac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
4946251158Sdelphijif test "x$ac_cv_func_strdup" = xyes; then :
4947251158Sdelphij  $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
4948127668Sbms
4949251158Sdelphijelse
4950251158Sdelphij  case " $LIBOBJS " in
4951251158Sdelphij  *" strdup.$ac_objext "* ) ;;
4952251158Sdelphij  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
4953251158Sdelphij ;;
4954251158Sdelphijesac
4955127668Sbms
4956251158Sdelphijfi
4957235530Sdelphij
4958251158Sdelphijac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
4959251158Sdelphijif test "x$ac_cv_func_strsep" = xyes; then :
4960251158Sdelphij  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
4961235530Sdelphij
4962127668Sbmselse
4963251158Sdelphij  case " $LIBOBJS " in
4964251158Sdelphij  *" strsep.$ac_objext "* ) ;;
4965251158Sdelphij  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
4966251158Sdelphij ;;
4967172683Smlaieresac
4968127668Sbms
496917680Spstfi
4970172683Smlaier
4971251158Sdelphij
4972251158Sdelphijfor ac_func in fork vfork strftime
4973251158Sdelphijdo :
4974251158Sdelphij  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4975251158Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4976251158Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4977127668Sbms  cat >>confdefs.h <<_ACEOF
4978251158Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4979127668Sbms_ACEOF
498017680Spst
498117680Spstfi
498217680Spstdone
498317680Spst
4984146773Ssamfor ac_func in setlinebuf alarm
4985251158Sdelphijdo :
4986251158Sdelphij  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4987251158Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4988251158Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4989127668Sbms  cat >>confdefs.h <<_ACEOF
4990251158Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4991127668Sbms_ACEOF
499275115Sfenner
499375115Sfennerfi
499475115Sfennerdone
499575115Sfenner
499675115Sfenner
499775115Sfennerneedsnprintf=no
499875115Sfennerfor ac_func in vsnprintf snprintf
4999251158Sdelphijdo :
5000251158Sdelphij  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5001251158Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5002251158Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5003127668Sbms  cat >>confdefs.h <<_ACEOF
5004251158Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5005127668Sbms_ACEOF
500675115Sfenner
500775115Sfennerelse
5008127668Sbms  needsnprintf=yes
500975115Sfennerfi
501075115Sfennerdone
501175115Sfenner
501275115Sfennerif test $needsnprintf = yes; then
5013172683Smlaier	case " $LIBOBJS " in
5014172683Smlaier  *" snprintf.$ac_objext "* ) ;;
5015172683Smlaier  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5016172683Smlaier ;;
5017172683Smlaieresac
5018172683Smlaier
501975115Sfennerfi
502075115Sfenner
502126180Sfenner
5022251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5023251158Sdelphij$as_echo_n "checking return type of signal handlers... " >&6; }
5024251158Sdelphijif ${ac_cv_type_signal+:} false; then :
5025251158Sdelphij  $as_echo_n "(cached) " >&6
502617680Spstelse
5027251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028127668Sbms/* end confdefs.h.  */
502939297Sfenner#include <sys/types.h>
503039297Sfenner#include <signal.h>
503139297Sfenner
5032127668Sbmsint
5033127668Sbmsmain ()
5034127668Sbms{
5035172683Smlaierreturn *(signal (0, 0)) (0) == 1;
5036127668Sbms  ;
5037127668Sbms  return 0;
5038127668Sbms}
5039127668Sbms_ACEOF
5040251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
5041172683Smlaier  ac_cv_type_signal=int
504239297Sfennerelse
5043251158Sdelphij  ac_cv_type_signal=void
504439297Sfennerfi
5045172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
504639297Sfennerfi
5047251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5048251158Sdelphij$as_echo "$ac_cv_type_signal" >&6; }
504939297Sfenner
5050127668Sbmscat >>confdefs.h <<_ACEOF
505139297Sfenner#define RETSIGTYPE $ac_cv_type_signal
5052127668Sbms_ACEOF
505339297Sfenner
505439297Sfenner
505539297Sfenner    if test "$ac_cv_type_signal" = void ; then
5056214478Srpaulo
5057251158Sdelphij$as_echo "#define RETSIGVAL /**/" >>confdefs.h
505839297Sfenner
505939297Sfenner    else
5060214478Srpaulo
5061251158Sdelphij$as_echo "#define RETSIGVAL (0)" >>confdefs.h
506239297Sfenner
506339297Sfenner    fi
506498524Sfenner    case "$host_os" in
506539297Sfenner
506639297Sfenner    irix*)
5067214478Srpaulo
5068251158Sdelphij$as_echo "#define _BSD_SIGNALS 1" >>confdefs.h
506939297Sfenner
507039297Sfenner	    ;;
507139297Sfenner
507239297Sfenner    *)
5073251158Sdelphij	    	    for ac_func in sigaction
5074251158Sdelphijdo :
5075251158Sdelphij  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5076251158Sdelphijif test "x$ac_cv_func_sigaction" = xyes; then :
5077127668Sbms  cat >>confdefs.h <<_ACEOF
5078251158Sdelphij#define HAVE_SIGACTION 1
5079127668Sbms_ACEOF
508039297Sfenner
508139297Sfennerfi
508239297Sfennerdone
508339297Sfenner
5084127668Sbms	    if test $ac_cv_func_sigaction = no ; then
5085251158Sdelphij		    for ac_func in sigset
5086251158Sdelphijdo :
5087251158Sdelphij  ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5088251158Sdelphijif test "x$ac_cv_func_sigset" = xyes; then :
5089127668Sbms  cat >>confdefs.h <<_ACEOF
5090251158Sdelphij#define HAVE_SIGSET 1
5091127668Sbms_ACEOF
509239297Sfenner
509339297Sfennerfi
509439297Sfennerdone
509539297Sfenner
509639297Sfenner	    fi
509739297Sfenner	    ;;
509839297Sfenner    esac
509939297Sfenner
5100251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dnet_htoa" >&5
5101251158Sdelphij$as_echo_n "checking for library containing dnet_htoa... " >&6; }
5102251158Sdelphijif ${ac_cv_search_dnet_htoa+:} false; then :
5103251158Sdelphij  $as_echo_n "(cached) " >&6
510439297Sfennerelse
5105127668Sbms  ac_func_search_save_LIBS=$LIBS
5106251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107127668Sbms/* end confdefs.h.  */
5108127668Sbms
5109172683Smlaier/* Override any GCC internal prototype to avoid an error.
5110172683Smlaier   Use char because int might match the return type of a GCC
5111172683Smlaier   builtin and then its argument prototype would still apply.  */
5112127668Sbms#ifdef __cplusplus
5113127668Sbmsextern "C"
5114127668Sbms#endif
5115127668Sbmschar dnet_htoa ();
5116127668Sbmsint
5117127668Sbmsmain ()
5118127668Sbms{
5119172683Smlaierreturn dnet_htoa ();
5120127668Sbms  ;
5121127668Sbms  return 0;
5122127668Sbms}
5123127668Sbms_ACEOF
5124172683Smlaierfor ac_lib in '' dnet; do
5125172683Smlaier  if test -z "$ac_lib"; then
5126172683Smlaier    ac_res="none required"
5127172683Smlaier  else
5128172683Smlaier    ac_res=-l$ac_lib
5129172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5130172683Smlaier  fi
5131251158Sdelphij  if ac_fn_c_try_link "$LINENO"; then :
5132172683Smlaier  ac_cv_search_dnet_htoa=$ac_res
5133127668Sbmsfi
5134251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
5135251158Sdelphij    conftest$ac_exeext
5136251158Sdelphij  if ${ac_cv_search_dnet_htoa+:} false; then :
5137172683Smlaier  break
5138172683Smlaierfi
5139172683Smlaierdone
5140251158Sdelphijif ${ac_cv_search_dnet_htoa+:} false; then :
5141251158Sdelphij
514239297Sfennerelse
5143172683Smlaier  ac_cv_search_dnet_htoa=no
514439297Sfennerfi
5145172683Smlaierrm conftest.$ac_ext
5146127668SbmsLIBS=$ac_func_search_save_LIBS
5147127668Sbmsfi
5148251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dnet_htoa" >&5
5149251158Sdelphij$as_echo "$ac_cv_search_dnet_htoa" >&6; }
5150172683Smlaierac_res=$ac_cv_search_dnet_htoa
5151251158Sdelphijif test "$ac_res" != no; then :
5152172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5153251158Sdelphij  $as_echo "#define HAVE_DNET_HTOA 1" >>confdefs.h
515498524Sfenner
515539297Sfennerfi
515639297Sfenner
515798524Sfenner
5158251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrpc" >&5
5159251158Sdelphij$as_echo_n "checking for main in -lrpc... " >&6; }
5160251158Sdelphijif ${ac_cv_lib_rpc_main+:} false; then :
5161251158Sdelphij  $as_echo_n "(cached) " >&6
516239297Sfennerelse
5163127668Sbms  ac_check_lib_save_LIBS=$LIBS
516498524SfennerLIBS="-lrpc  $LIBS"
5165251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166127668Sbms/* end confdefs.h.  */
516717680Spst
5168127668Sbms
5169127668Sbmsint
5170127668Sbmsmain ()
5171127668Sbms{
5172172683Smlaierreturn main ();
5173127668Sbms  ;
5174127668Sbms  return 0;
5175127668Sbms}
5176127668Sbms_ACEOF
5177251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5178127668Sbms  ac_cv_lib_rpc_main=yes
517917680Spstelse
5180251158Sdelphij  ac_cv_lib_rpc_main=no
518117680Spstfi
5182251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
5183251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
5184127668SbmsLIBS=$ac_check_lib_save_LIBS
5185127668Sbmsfi
5186251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_main" >&5
5187251158Sdelphij$as_echo "$ac_cv_lib_rpc_main" >&6; }
5188251158Sdelphijif test "x$ac_cv_lib_rpc_main" = xyes; then :
5189127668Sbms  cat >>confdefs.h <<_ACEOF
5190127668Sbms#define HAVE_LIBRPC 1
5191127668Sbms_ACEOF
519217680Spst
519398524Sfenner  LIBS="-lrpc $LIBS"
519417680Spst
519598524Sfennerfi
519698524Sfenner
5197251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrpcbynumber" >&5
5198251158Sdelphij$as_echo_n "checking for library containing getrpcbynumber... " >&6; }
5199251158Sdelphijif ${ac_cv_search_getrpcbynumber+:} false; then :
5200251158Sdelphij  $as_echo_n "(cached) " >&6
520139297Sfennerelse
5202127668Sbms  ac_func_search_save_LIBS=$LIBS
5203251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204127668Sbms/* end confdefs.h.  */
5205127668Sbms
5206172683Smlaier/* Override any GCC internal prototype to avoid an error.
5207172683Smlaier   Use char because int might match the return type of a GCC
5208172683Smlaier   builtin and then its argument prototype would still apply.  */
5209127668Sbms#ifdef __cplusplus
5210127668Sbmsextern "C"
5211127668Sbms#endif
5212127668Sbmschar getrpcbynumber ();
5213127668Sbmsint
5214127668Sbmsmain ()
5215127668Sbms{
5216172683Smlaierreturn getrpcbynumber ();
5217127668Sbms  ;
5218127668Sbms  return 0;
5219127668Sbms}
5220127668Sbms_ACEOF
5221172683Smlaierfor ac_lib in '' nsl; do
5222172683Smlaier  if test -z "$ac_lib"; then
5223172683Smlaier    ac_res="none required"
5224172683Smlaier  else
5225172683Smlaier    ac_res=-l$ac_lib
5226172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5227172683Smlaier  fi
5228251158Sdelphij  if ac_fn_c_try_link "$LINENO"; then :
5229172683Smlaier  ac_cv_search_getrpcbynumber=$ac_res
523098524Sfennerfi
5231251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
5232251158Sdelphij    conftest$ac_exeext
5233251158Sdelphij  if ${ac_cv_search_getrpcbynumber+:} false; then :
5234172683Smlaier  break
5235172683Smlaierfi
5236172683Smlaierdone
5237251158Sdelphijif ${ac_cv_search_getrpcbynumber+:} false; then :
5238251158Sdelphij
523998524Sfennerelse
5240172683Smlaier  ac_cv_search_getrpcbynumber=no
524117680Spstfi
5242172683Smlaierrm conftest.$ac_ext
5243127668SbmsLIBS=$ac_func_search_save_LIBS
5244127668Sbmsfi
5245251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrpcbynumber" >&5
5246251158Sdelphij$as_echo "$ac_cv_search_getrpcbynumber" >&6; }
5247172683Smlaierac_res=$ac_cv_search_getrpcbynumber
5248251158Sdelphijif test "$ac_res" != no; then :
5249172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5250251158Sdelphij  $as_echo "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h
525117680Spst
525239297Sfennerfi
525339297Sfenner
525439297Sfenner
525598524Sfenner
5256127668Sbms
525798524Sfenner    # Most operating systems have gethostbyname() in the default searched
525898524Sfenner    # libraries (i.e. libc):
525998524Sfenner    # Some OSes (eg. Solaris) place it in libnsl
526098524Sfenner    # Some strange OSes (SINIX) have it in libsocket:
5261251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5262251158Sdelphij$as_echo_n "checking for library containing gethostbyname... " >&6; }
5263251158Sdelphijif ${ac_cv_search_gethostbyname+:} false; then :
5264251158Sdelphij  $as_echo_n "(cached) " >&6
526539297Sfennerelse
5266127668Sbms  ac_func_search_save_LIBS=$LIBS
5267251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268127668Sbms/* end confdefs.h.  */
5269127668Sbms
5270172683Smlaier/* Override any GCC internal prototype to avoid an error.
5271172683Smlaier   Use char because int might match the return type of a GCC
5272172683Smlaier   builtin and then its argument prototype would still apply.  */
5273127668Sbms#ifdef __cplusplus
5274127668Sbmsextern "C"
5275127668Sbms#endif
5276127668Sbmschar gethostbyname ();
5277127668Sbmsint
5278127668Sbmsmain ()
5279127668Sbms{
5280172683Smlaierreturn gethostbyname ();
5281127668Sbms  ;
5282127668Sbms  return 0;
5283127668Sbms}
5284127668Sbms_ACEOF
5285172683Smlaierfor ac_lib in '' nsl socket resolv; do
5286172683Smlaier  if test -z "$ac_lib"; then
5287172683Smlaier    ac_res="none required"
5288172683Smlaier  else
5289172683Smlaier    ac_res=-l$ac_lib
5290172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5291172683Smlaier  fi
5292251158Sdelphij  if ac_fn_c_try_link "$LINENO"; then :
5293172683Smlaier  ac_cv_search_gethostbyname=$ac_res
529498524Sfennerfi
5295251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
5296251158Sdelphij    conftest$ac_exeext
5297251158Sdelphij  if ${ac_cv_search_gethostbyname+:} false; then :
5298172683Smlaier  break
5299172683Smlaierfi
5300172683Smlaierdone
5301251158Sdelphijif ${ac_cv_search_gethostbyname+:} false; then :
5302251158Sdelphij
530398524Sfennerelse
5304172683Smlaier  ac_cv_search_gethostbyname=no
530539297Sfennerfi
5306172683Smlaierrm conftest.$ac_ext
5307127668SbmsLIBS=$ac_func_search_save_LIBS
5308127668Sbmsfi
5309251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5310251158Sdelphij$as_echo "$ac_cv_search_gethostbyname" >&6; }
5311172683Smlaierac_res=$ac_cv_search_gethostbyname
5312251158Sdelphijif test "$ac_res" != no; then :
5313172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
531439297Sfenner
531539297Sfennerfi
5316127668Sbms
531798524Sfenner    # Unfortunately libsocket sometimes depends on libnsl and
531898524Sfenner    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
531998524Sfenner    if test "$ac_cv_search_gethostbyname" = "no"
532098524Sfenner    then
5321251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
5322251158Sdelphij$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
5323251158Sdelphijif ${ac_cv_lib_socket_gethostbyname+:} false; then :
5324251158Sdelphij  $as_echo_n "(cached) " >&6
532517680Spstelse
5326127668Sbms  ac_check_lib_save_LIBS=$LIBS
532798524SfennerLIBS="-lsocket -lnsl $LIBS"
5328251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329127668Sbms/* end confdefs.h.  */
5330127668Sbms
5331172683Smlaier/* Override any GCC internal prototype to avoid an error.
5332172683Smlaier   Use char because int might match the return type of a GCC
5333172683Smlaier   builtin and then its argument prototype would still apply.  */
5334127668Sbms#ifdef __cplusplus
5335127668Sbmsextern "C"
5336127668Sbms#endif
5337127668Sbmschar gethostbyname ();
5338127668Sbmsint
5339127668Sbmsmain ()
5340127668Sbms{
5341172683Smlaierreturn gethostbyname ();
5342127668Sbms  ;
5343127668Sbms  return 0;
5344127668Sbms}
5345127668Sbms_ACEOF
5346251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5347127668Sbms  ac_cv_lib_socket_gethostbyname=yes
534817680Spstelse
5349251158Sdelphij  ac_cv_lib_socket_gethostbyname=no
535017680Spstfi
5351251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
5352251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
5353127668SbmsLIBS=$ac_check_lib_save_LIBS
5354127668Sbmsfi
5355251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
5356251158Sdelphij$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
5357251158Sdelphijif test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
535898524Sfenner  LIBS="-lsocket -lnsl $LIBS"
535917680Spstfi
536017680Spst
536198524Sfenner    fi
5362251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5363251158Sdelphij$as_echo_n "checking for library containing socket... " >&6; }
5364251158Sdelphijif ${ac_cv_search_socket+:} false; then :
5365251158Sdelphij  $as_echo_n "(cached) " >&6
536639297Sfennerelse
5367127668Sbms  ac_func_search_save_LIBS=$LIBS
5368251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369127668Sbms/* end confdefs.h.  */
5370127668Sbms
5371172683Smlaier/* Override any GCC internal prototype to avoid an error.
5372172683Smlaier   Use char because int might match the return type of a GCC
5373172683Smlaier   builtin and then its argument prototype would still apply.  */
5374127668Sbms#ifdef __cplusplus
5375127668Sbmsextern "C"
5376127668Sbms#endif
5377127668Sbmschar socket ();
5378127668Sbmsint
5379127668Sbmsmain ()
5380127668Sbms{
5381172683Smlaierreturn socket ();
5382127668Sbms  ;
5383127668Sbms  return 0;
5384127668Sbms}
5385127668Sbms_ACEOF
5386172683Smlaierfor ac_lib in '' socket; do
5387172683Smlaier  if test -z "$ac_lib"; then
5388172683Smlaier    ac_res="none required"
5389172683Smlaier  else
5390172683Smlaier    ac_res=-l$ac_lib
5391172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5392172683Smlaier  fi
5393251158Sdelphij  if ac_fn_c_try_link "$LINENO"; then :
5394172683Smlaier  ac_cv_search_socket=$ac_res
539539297Sfennerfi
5396251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
5397251158Sdelphij    conftest$ac_exeext
5398251158Sdelphij  if ${ac_cv_search_socket+:} false; then :
5399172683Smlaier  break
5400172683Smlaierfi
5401172683Smlaierdone
5402251158Sdelphijif ${ac_cv_search_socket+:} false; then :
5403251158Sdelphij
540417680Spstelse
5405172683Smlaier  ac_cv_search_socket=no
540617680Spstfi
5407172683Smlaierrm conftest.$ac_ext
5408127668SbmsLIBS=$ac_func_search_save_LIBS
5409127668Sbmsfi
5410251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5411251158Sdelphij$as_echo "$ac_cv_search_socket" >&6; }
5412172683Smlaierac_res=$ac_cv_search_socket
5413251158Sdelphijif test "$ac_res" != no; then :
5414172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
541517680Spst
541639297Sfennerelse
5417251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5418251158Sdelphij$as_echo_n "checking for socket in -lsocket... " >&6; }
5419251158Sdelphijif ${ac_cv_lib_socket_socket+:} false; then :
5420251158Sdelphij  $as_echo_n "(cached) " >&6
5421127668Sbmselse
5422127668Sbms  ac_check_lib_save_LIBS=$LIBS
542339297SfennerLIBS="-lsocket -lnsl $LIBS"
5424251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425127668Sbms/* end confdefs.h.  */
5426127668Sbms
5427172683Smlaier/* Override any GCC internal prototype to avoid an error.
5428172683Smlaier   Use char because int might match the return type of a GCC
5429172683Smlaier   builtin and then its argument prototype would still apply.  */
5430127668Sbms#ifdef __cplusplus
5431127668Sbmsextern "C"
5432127668Sbms#endif
5433127668Sbmschar socket ();
5434127668Sbmsint
5435127668Sbmsmain ()
5436127668Sbms{
5437172683Smlaierreturn socket ();
5438127668Sbms  ;
5439127668Sbms  return 0;
5440127668Sbms}
5441127668Sbms_ACEOF
5442251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5443127668Sbms  ac_cv_lib_socket_socket=yes
544439297Sfennerelse
5445251158Sdelphij  ac_cv_lib_socket_socket=no
544639297Sfennerfi
5447251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
5448251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
5449127668SbmsLIBS=$ac_check_lib_save_LIBS
5450127668Sbmsfi
5451251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5452251158Sdelphij$as_echo "$ac_cv_lib_socket_socket" >&6; }
5453251158Sdelphijif test "x$ac_cv_lib_socket_socket" = xyes; then :
545439297Sfenner  LIBS="-lsocket -lnsl $LIBS"
545539297Sfennerfi
545617680Spst
545739297Sfennerfi
5458127668Sbms
545939297Sfenner    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5460251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5461251158Sdelphij$as_echo_n "checking for library containing putmsg... " >&6; }
5462251158Sdelphijif ${ac_cv_search_putmsg+:} false; then :
5463251158Sdelphij  $as_echo_n "(cached) " >&6
546439297Sfennerelse
5465127668Sbms  ac_func_search_save_LIBS=$LIBS
5466251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467127668Sbms/* end confdefs.h.  */
5468127668Sbms
5469172683Smlaier/* Override any GCC internal prototype to avoid an error.
5470172683Smlaier   Use char because int might match the return type of a GCC
5471172683Smlaier   builtin and then its argument prototype would still apply.  */
5472127668Sbms#ifdef __cplusplus
5473127668Sbmsextern "C"
5474127668Sbms#endif
5475127668Sbmschar putmsg ();
5476127668Sbmsint
5477127668Sbmsmain ()
5478127668Sbms{
5479172683Smlaierreturn putmsg ();
5480127668Sbms  ;
5481127668Sbms  return 0;
5482127668Sbms}
5483127668Sbms_ACEOF
5484172683Smlaierfor ac_lib in '' str; do
5485172683Smlaier  if test -z "$ac_lib"; then
5486172683Smlaier    ac_res="none required"
5487172683Smlaier  else
5488172683Smlaier    ac_res=-l$ac_lib
5489172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5490172683Smlaier  fi
5491251158Sdelphij  if ac_fn_c_try_link "$LINENO"; then :
5492172683Smlaier  ac_cv_search_putmsg=$ac_res
549339297Sfennerfi
5494251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
5495251158Sdelphij    conftest$ac_exeext
5496251158Sdelphij  if ${ac_cv_search_putmsg+:} false; then :
5497172683Smlaier  break
5498172683Smlaierfi
5499172683Smlaierdone
5500251158Sdelphijif ${ac_cv_search_putmsg+:} false; then :
5501251158Sdelphij
550239297Sfennerelse
5503172683Smlaier  ac_cv_search_putmsg=no
550439297Sfennerfi
5505172683Smlaierrm conftest.$ac_ext
5506127668SbmsLIBS=$ac_func_search_save_LIBS
5507127668Sbmsfi
5508251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5509251158Sdelphij$as_echo "$ac_cv_search_putmsg" >&6; }
5510172683Smlaierac_res=$ac_cv_search_putmsg
5511251158Sdelphijif test "$ac_res" != no; then :
5512172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
551339297Sfenner
551498524Sfennerfi
551539297Sfenner
5516127668Sbms
5517127668Sbms
551839297Sfenner                LBL_LIBS="$LIBS"
551939297Sfenner    pfopen=/usr/examples/packetfilter/pfopen.c
552017680Spst    if test -f $pfopen ; then
5521251158Sdelphij	    for ac_func in pfopen
5522251158Sdelphijdo :
5523251158Sdelphij  ac_fn_c_check_func "$LINENO" "pfopen" "ac_cv_func_pfopen"
5524251158Sdelphijif test "x$ac_cv_func_pfopen" = xyes; then :
5525127668Sbms  cat >>confdefs.h <<_ACEOF
5526251158Sdelphij#define HAVE_PFOPEN 1
5527127668Sbms_ACEOF
552817680Spst
552917680Spstfi
553017680Spstdone
553117680Spst
553217680Spst	    if test $ac_cv_func_pfopen = "no" ; then
5533251158Sdelphij		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5
5534251158Sdelphij$as_echo "Using $pfopen" >&6; }
553517680Spst		    LIBS="$LIBS $pfopen"
553617680Spst	    fi
553717680Spst    fi
5538251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5
5539251158Sdelphij$as_echo_n "checking for local pcap library... " >&6; }
554017680Spst    libpcap=FAIL
554126180Sfenner    lastdir=FAIL
5542127668Sbms    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
5543214478Srpaulo	egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
5544127668Sbms    for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
5545214478Srpaulo	    basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
5546214478Srpaulo	        sed -e 's/-PRE-GIT$//' `
554726180Sfenner	    if test $lastdir = $basedir ; then
554826180Sfenner		    		    continue;
554926180Sfenner	    fi
555026180Sfenner	    lastdir=$dir
555156893Sfenner	    if test -r $dir/libpcap.a ; then
555217680Spst		    libpcap=$dir/libpcap.a
555317680Spst		    d=$dir
555417680Spst		    	    fi
555517680Spst    done
555617680Spst    if test $libpcap = FAIL ; then
5557251158Sdelphij	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5558251158Sdelphij$as_echo "not found" >&6; }
5559214478Srpaulo
5560214478Srpaulo	    #
5561214478Srpaulo	    # Look for pcap-config.
5562214478Srpaulo	    #
5563235530Sdelphij	    if test -n "$ac_tool_prefix"; then
5564235530Sdelphij  # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
5565235530Sdelphijset dummy ${ac_tool_prefix}pcap-config; ac_word=$2
5566251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
5568251158Sdelphijif ${ac_cv_path_PCAP_CONFIG+:} false; then :
5569251158Sdelphij  $as_echo_n "(cached) " >&6
5570214478Srpauloelse
5571214478Srpaulo  case $PCAP_CONFIG in
5572214478Srpaulo  [\\/]* | ?:[\\/]*)
5573214478Srpaulo  ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
5574214478Srpaulo  ;;
5575214478Srpaulo  *)
5576214478Srpaulo  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577214478Srpaulofor as_dir in $PATH
5578214478Srpaulodo
5579214478Srpaulo  IFS=$as_save_IFS
5580214478Srpaulo  test -z "$as_dir" && as_dir=.
5581251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
5582214478Srpaulo  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583214478Srpaulo    ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5584251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585214478Srpaulo    break 2
5586214478Srpaulo  fi
5587214478Srpaulodone
5588251158Sdelphij  done
5589214478SrpauloIFS=$as_save_IFS
5590214478Srpaulo
5591214478Srpaulo  ;;
5592214478Srpauloesac
5593214478Srpaulofi
5594214478SrpauloPCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
5595214478Srpauloif test -n "$PCAP_CONFIG"; then
5596251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
5597251158Sdelphij$as_echo "$PCAP_CONFIG" >&6; }
5598214478Srpauloelse
5599251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600251158Sdelphij$as_echo "no" >&6; }
5601214478Srpaulofi
5602214478Srpaulo
5603214478Srpaulo
5604235530Sdelphijfi
5605235530Sdelphijif test -z "$ac_cv_path_PCAP_CONFIG"; then
5606235530Sdelphij  ac_pt_PCAP_CONFIG=$PCAP_CONFIG
5607235530Sdelphij  # Extract the first word of "pcap-config", so it can be a program name with args.
5608235530Sdelphijset dummy pcap-config; ac_word=$2
5609251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
5611251158Sdelphijif ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
5612251158Sdelphij  $as_echo_n "(cached) " >&6
5613235530Sdelphijelse
5614235530Sdelphij  case $ac_pt_PCAP_CONFIG in
5615235530Sdelphij  [\\/]* | ?:[\\/]*)
5616235530Sdelphij  ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
5617235530Sdelphij  ;;
5618235530Sdelphij  *)
5619235530Sdelphij  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620235530Sdelphijfor as_dir in $PATH
5621235530Sdelphijdo
5622235530Sdelphij  IFS=$as_save_IFS
5623235530Sdelphij  test -z "$as_dir" && as_dir=.
5624251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
5625235530Sdelphij  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626235530Sdelphij    ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5627251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628235530Sdelphij    break 2
5629235530Sdelphij  fi
5630235530Sdelphijdone
5631251158Sdelphij  done
5632235530SdelphijIFS=$as_save_IFS
5633235530Sdelphij
5634235530Sdelphij  ;;
5635235530Sdelphijesac
5636235530Sdelphijfi
5637235530Sdelphijac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
5638235530Sdelphijif test -n "$ac_pt_PCAP_CONFIG"; then
5639251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
5640251158Sdelphij$as_echo "$ac_pt_PCAP_CONFIG" >&6; }
5641235530Sdelphijelse
5642251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643251158Sdelphij$as_echo "no" >&6; }
5644235530Sdelphijfi
5645235530Sdelphij
5646235530Sdelphij  if test "x$ac_pt_PCAP_CONFIG" = x; then
5647235530Sdelphij    PCAP_CONFIG=""
5648235530Sdelphij  else
5649235530Sdelphij    case $cross_compiling:$ac_tool_warned in
5650235530Sdelphijyes:)
5651251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5652251158Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5653235530Sdelphijac_tool_warned=yes ;;
5654235530Sdelphijesac
5655235530Sdelphij    PCAP_CONFIG=$ac_pt_PCAP_CONFIG
5656235530Sdelphij  fi
5657235530Sdelphijelse
5658235530Sdelphij  PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
5659235530Sdelphijfi
5660235530Sdelphij
5661214478Srpaulo	    if test -n "$PCAP_CONFIG" ; then
5662214478Srpaulo		#
5663214478Srpaulo		# Found - use it to get the include flags for
5664214478Srpaulo		# libpcap and the flags to link with libpcap.
5665214478Srpaulo		#
5666235530Sdelphij		# Please read section 11.6 "Shell Substitutions"
5667235530Sdelphij		# in the autoconf manual before doing anything
5668235530Sdelphij		# to this that involves quoting.  Especially note
5669235530Sdelphij		# the statement "There is just no portable way to use
5670235530Sdelphij		# double-quoted strings inside double-quoted back-quoted
5671235530Sdelphij		# expressions (pfew!)."
5672235530Sdelphij		#
5673235530Sdelphij		cflags=`"$PCAP_CONFIG" --cflags`
5674235530Sdelphij		V_INCLS="$cflags $V_INCLS"
5675235530Sdelphij		libpcap=`"$PCAP_CONFIG" --libs`
5676214478Srpaulo	    else
5677214478Srpaulo		#
5678214478Srpaulo		# Not found; look for pcap.
5679214478Srpaulo		#
5680251158Sdelphij		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcap" >&5
5681251158Sdelphij$as_echo_n "checking for main in -lpcap... " >&6; }
5682251158Sdelphijif ${ac_cv_lib_pcap_main+:} false; then :
5683251158Sdelphij  $as_echo_n "(cached) " >&6
568417680Spstelse
5685127668Sbms  ac_check_lib_save_LIBS=$LIBS
568617680SpstLIBS="-lpcap  $LIBS"
5687251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688127668Sbms/* end confdefs.h.  */
568917680Spst
5690127668Sbms
5691127668Sbmsint
5692127668Sbmsmain ()
5693127668Sbms{
5694172683Smlaierreturn main ();
5695127668Sbms  ;
5696127668Sbms  return 0;
5697127668Sbms}
5698127668Sbms_ACEOF
5699251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5700127668Sbms  ac_cv_lib_pcap_main=yes
570117680Spstelse
5702251158Sdelphij  ac_cv_lib_pcap_main=no
570317680Spstfi
5704251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
5705251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
5706127668SbmsLIBS=$ac_check_lib_save_LIBS
5707127668Sbmsfi
5708251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_main" >&5
5709251158Sdelphij$as_echo "$ac_cv_lib_pcap_main" >&6; }
5710251158Sdelphijif test "x$ac_cv_lib_pcap_main" = xyes; then :
571117680Spst  libpcap="-lpcap"
571217680Spstfi
571317680Spst
5714214478Srpaulo		if test $libpcap = FAIL ; then
5715251158Sdelphij		    as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
5716214478Srpaulo		fi
5717251158Sdelphij																																								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5
5718251158Sdelphij$as_echo_n "checking for extraneous pcap header directories... " >&6; }
5719214478Srpaulo		if test \( ! -r /usr/local/include/pcap.h \) -a \
5720127668Sbms			\( ! -r /usr/include/pcap.h \); then
5721214478Srpaulo		    if test -r /usr/local/include/pcap/pcap.h; then
5722214478Srpaulo			d="/usr/local/include/pcap"
5723214478Srpaulo		    elif test -r /usr/include/pcap/pcap.h; then
5724214478Srpaulo			d="/usr/include/pcap"
5725214478Srpaulo		    fi
5726127668Sbms		fi
5727214478Srpaulo		if test -z "$d" ; then
5728251158Sdelphij		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5729251158Sdelphij$as_echo "not found" >&6; }
5730214478Srpaulo		else
5731214478Srpaulo		    V_INCLS="-I$d $V_INCLS"
5732251158Sdelphij		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5
5733251158Sdelphij$as_echo "found -- -I$d added" >&6; }
5734214478Srpaulo		fi
5735127668Sbms	    fi
573617680Spst    else
573717680Spst	    V_PCAPDEP=$libpcap
573898524Sfenner	    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
573998524Sfenner    	 		egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
574056893Sfenner	    if test -r $d/pcap.h; then
574175115Sfenner		    V_INCLS="-I$d $V_INCLS"
574298524Sfenner	    elif test -r $places/pcap.h; then
574398524Sfenner		    V_INCLS="-I$places $V_INCLS"
574456893Sfenner	    else
5745251158Sdelphij                    as_fn_error see INSTALL "cannot find pcap.h" "$LINENO" 5
574656893Sfenner 	    fi
5747251158Sdelphij	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5
5748251158Sdelphij$as_echo "$libpcap" >&6; }
5749214478Srpaulo	    # Extract the first word of "pcap-config", so it can be a program name with args.
5750214478Srpauloset dummy pcap-config; ac_word=$2
5751251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
5753251158Sdelphijif ${ac_cv_path_PCAP_CONFIG+:} false; then :
5754251158Sdelphij  $as_echo_n "(cached) " >&6
5755214478Srpauloelse
5756214478Srpaulo  case $PCAP_CONFIG in
5757214478Srpaulo  [\\/]* | ?:[\\/]*)
5758214478Srpaulo  ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
5759214478Srpaulo  ;;
5760214478Srpaulo  *)
5761214478Srpaulo  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762214478Srpaulofor as_dir in $d
5763214478Srpaulodo
5764214478Srpaulo  IFS=$as_save_IFS
5765214478Srpaulo  test -z "$as_dir" && as_dir=.
5766251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
5767214478Srpaulo  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768214478Srpaulo    ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5769251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770214478Srpaulo    break 2
5771214478Srpaulo  fi
5772214478Srpaulodone
5773251158Sdelphij  done
5774214478SrpauloIFS=$as_save_IFS
5775214478Srpaulo
5776214478Srpaulo  ;;
5777214478Srpauloesac
5778214478Srpaulofi
5779214478SrpauloPCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
5780214478Srpauloif test -n "$PCAP_CONFIG"; then
5781251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
5782251158Sdelphij$as_echo "$PCAP_CONFIG" >&6; }
5783214478Srpauloelse
5784251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785251158Sdelphij$as_echo "no" >&6; }
5786214478Srpaulofi
5787214478Srpaulo
5788214478Srpaulo
5789214478Srpaulo	    if test -n "$PCAP_CONFIG"; then
5790214478Srpaulo		#
5791214478Srpaulo		# The libpcap directory has a pcap-config script.
5792214478Srpaulo		# Use it to get any additioal libraries needed
5793214478Srpaulo		# to link with the libpcap archive library in
5794235530Sdelphij		# that directory.
5795214478Srpaulo		#
5796235530Sdelphij		# Please read section 11.6 "Shell Substitutions"
5797235530Sdelphij		# in the autoconf manual before doing anything
5798235530Sdelphij		# to this that involves quoting.  Especially note
5799235530Sdelphij		# the statement "There is just no portable way to use
5800235530Sdelphij		# double-quoted strings inside double-quoted back-quoted
5801235530Sdelphij		# expressions (pfew!)."
5802235530Sdelphij		#
5803235530Sdelphij		additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
5804235530Sdelphij		libpcap="$libpcap $additional_libs"
5805214478Srpaulo	    fi
580617680Spst    fi
580717680Spst    LIBS="$libpcap $LIBS"
5808214478Srpaulo    if ! test -n "$PCAP_CONFIG" ; then
5809214478Srpaulo	#
5810214478Srpaulo	# We don't have pcap-config; find out any additional link flags
5811214478Srpaulo	# we need.  (If we have pcap-config, we assume it tells us what
5812214478Srpaulo	# we need.)
5813214478Srpaulo	#
5814214478Srpaulo	case "$host_os" in
581517680Spst
5816214478Srpaulo	aix*)
5817214478Srpaulo	    #
5818214478Srpaulo	    # If libpcap is DLPI-based, we have to use /lib/pse.exp if
5819214478Srpaulo	    # present, as we use the STREAMS routines.
5820214478Srpaulo	    #
5821214478Srpaulo	    # (XXX - true only if we're linking with a static libpcap?)
5822214478Srpaulo	    #
582339297Sfenner	    pseexe="/lib/pse.exp"
5824251158Sdelphij	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
5825251158Sdelphij$as_echo_n "checking for $pseexe... " >&6; }
582639297Sfenner	    if test -f $pseexe ; then
5827251158Sdelphij		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5828251158Sdelphij$as_echo "yes" >&6; }
582939297Sfenner		    LIBS="$LIBS -I:$pseexe"
583039297Sfenner	    fi
5831214478Srpaulo
5832127668Sbms	    #
5833214478Srpaulo	    # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
5834214478Srpaulo	    # we use them to load the BPF module.
5835127668Sbms	    #
5836214478Srpaulo	    # (XXX - true only if we're linking with a static libpcap?)
5837214478Srpaulo	    #
5838127668Sbms	    LIBS="$LIBS -lodm -lcfg"
583939297Sfenner	    ;;
5840214478Srpaulo	esac
5841214478Srpaulo    fi
584239297Sfenner
5843251158Sdelphij                                    ac_fn_c_check_func "$LINENO" "pcap_loop" "ac_cv_func_pcap_loop"
5844251158Sdelphijif test "x$ac_cv_func_pcap_loop" = xyes; then :
5845235530Sdelphij
5846235530Sdelphijelse
5847235530Sdelphij
5848251158Sdelphij	    as_fn_error $? "Report this to tcpdump-workers@lists.tcpdump.org, and include the
5849241235Sdelphijconfig.log file in your report.  If you have downloaded libpcap from
5850241235Sdelphijtcpdump.org, and built it yourself, please also include the config.log
5851241235Sdelphijfile from the libpcap source directory, the Makefile from the libpcap
5852241235Sdelphijsource directory, and the output of the make process for libpcap, as
5853241235Sdelphijthis could be a problem with the libpcap that was built, and we will
5854241235Sdelphijnot be able to determine why this is happening, and thus will not be
5855241235Sdelphijable to fix it, without that information, as we have not been able to
5856251158Sdelphijreproduce this problem ourselves." "$LINENO" 5
5857235530Sdelphij
5858235530Sdelphijfi
5859235530Sdelphij
5860235530Sdelphij
5861251158Sdelphij                        ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks"
5862251158Sdelphijif test "x$ac_cv_func_pcap_list_datalinks" = xyes; then :
5863251158Sdelphij  $as_echo "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h
5864172683Smlaier
5865127668Sbmselse
5866127668Sbms
5867172683Smlaier	    case " $LIBOBJS " in
5868172683Smlaier  *" datalinks.$ac_objext "* ) ;;
5869172683Smlaier  *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
5870172683Smlaier ;;
5871172683Smlaieresac
5872147899Ssam
5873172683Smlaier
5874127668Sbmsfi
5875127668Sbms
5876251158Sdelphij    ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink"
5877251158Sdelphijif test "x$ac_cv_func_pcap_set_datalink" = xyes; then :
5878251158Sdelphij  $as_echo "#define HAVE_PCAP_SET_DATALINK 1" >>confdefs.h
5879172683Smlaier
5880127668Sbmsfi
5881172683Smlaier
5882251158Sdelphij    ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val"
5883251158Sdelphijif test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes; then :
5884127668Sbms
5885251158Sdelphij	    $as_echo "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h
5886127668Sbms
5887251158Sdelphij	    ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description"
5888251158Sdelphijif test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes; then :
5889251158Sdelphij  $as_echo "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h
5890172683Smlaier
5891127668Sbmselse
5892127668Sbms
5893172683Smlaier		    case " $LIBOBJS " in
5894172683Smlaier  *" dlnames.$ac_objext "* ) ;;
5895172683Smlaier  *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
5896172683Smlaier ;;
5897172683Smlaieresac
5898147899Ssam
5899172683Smlaier
5900127668Sbmsfi
5901127668Sbms
5902127668Sbms
5903127668Sbmselse
5904147899Ssam
5905172683Smlaier	    case " $LIBOBJS " in
5906172683Smlaier  *" dlnames.$ac_objext "* ) ;;
5907172683Smlaier  *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
5908172683Smlaier ;;
5909172683Smlaieresac
5910147899Ssam
5911172683Smlaier
5912127668Sbmsfi
5913127668Sbms
5914127668Sbms
5915251158Sdelphij                        for ac_func in pcap_breakloop
5916251158Sdelphijdo :
5917251158Sdelphij  ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop"
5918251158Sdelphijif test "x$ac_cv_func_pcap_breakloop" = xyes; then :
5919127668Sbms  cat >>confdefs.h <<_ACEOF
5920251158Sdelphij#define HAVE_PCAP_BREAKLOOP 1
5921127668Sbms_ACEOF
5922127668Sbms
5923127668Sbmsfi
5924127668Sbmsdone
5925127668Sbms
5926127668Sbms
5927251158Sdelphij                ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell"
5928251158Sdelphijif test "x$ac_cv_func_pcap_dump_ftell" = xyes; then :
5929251158Sdelphij  $as_echo "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h
5930172683Smlaier
5931147899Ssamelse
5932147899Ssam
5933172683Smlaier	    case " $LIBOBJS " in
5934172683Smlaier  *" pcap_dump_ftell.$ac_objext "* ) ;;
5935172683Smlaier  *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
5936172683Smlaier ;;
5937172683Smlaieresac
5938147899Ssam
5939172683Smlaier
5940147899Ssamfi
5941147899Ssam
5942147899Ssam
5943147899Ssam
5944127668Sbms#
5945127668Sbms# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
5946127668Sbms# libraries (e.g., "-lsocket -lnsl" on Solaris).
5947127668Sbms#
5948127668Sbms# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
5949127668Sbms# use AC_CHECK_FUNC which doesn't let us specify the right #includes
5950127668Sbms# to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
5951127668Sbms# resolver, and the way it defines inet_{ntop,pton} is rather strange;
5952127668Sbms# it does not ship with a libc symbol "inet_ntop()", it ships with
5953127668Sbms# "_inet_ntop()", and has a #define macro in one of the system headers
5954127668Sbms# to rename it.
5955127668Sbms#
5956251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
5957251158Sdelphij$as_echo_n "checking for inet_ntop... " >&6; }
5958251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959127668Sbms/* end confdefs.h.  */
5960127668Sbms#include <sys/types.h>
5961127668Sbms#include <sys/socket.h>
5962127668Sbms#include <netinet/in.h>
5963127668Sbms#include <arpa/inet.h>
5964127668Sbmsint
5965127668Sbmsmain ()
5966127668Sbms{
5967127668Sbmschar src[4], dst[128];
5968127668Sbmsinet_ntop(AF_INET, src, dst, sizeof(dst));
5969127668Sbms  ;
5970127668Sbms  return 0;
5971127668Sbms}
5972127668Sbms_ACEOF
5973251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5974251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5975251158Sdelphij$as_echo "yes" >&6; }
5976127668Sbmselse
5977251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978251158Sdelphij$as_echo "no" >&6; }
5979172683Smlaier	case " $LIBOBJS " in
5980172683Smlaier  *" inet_ntop.$ac_objext "* ) ;;
5981172683Smlaier  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
5982172683Smlaier ;;
5983172683Smlaieresac
5984172683Smlaier
5985127668Sbmsfi
5986251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
5987251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
5988251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
5989251158Sdelphij$as_echo_n "checking for inet_pton... " >&6; }
5990251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991127668Sbms/* end confdefs.h.  */
5992127668Sbms#include <sys/types.h>
5993127668Sbms#include <sys/socket.h>
5994127668Sbms#include <netinet/in.h>
5995127668Sbms#include <arpa/inet.h>
5996127668Sbmsint
5997127668Sbmsmain ()
5998127668Sbms{
5999127668Sbmschar src[128], dst[4];
6000127668Sbmsinet_pton(AF_INET, src, dst);
6001127668Sbms  ;
6002127668Sbms  return 0;
6003127668Sbms}
6004127668Sbms_ACEOF
6005251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
6006251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6007251158Sdelphij$as_echo "yes" >&6; }
6008127668Sbmselse
6009251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010251158Sdelphij$as_echo "no" >&6; }
6011172683Smlaier	case " $LIBOBJS " in
6012172683Smlaier  *" inet_pton.$ac_objext "* ) ;;
6013172683Smlaier  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
6014172683Smlaier ;;
6015172683Smlaieresac
6016172683Smlaier
6017127668Sbmsfi
6018251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
6019251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
6020251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
6021251158Sdelphij$as_echo_n "checking for inet_aton... " >&6; }
6022251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023127668Sbms/* end confdefs.h.  */
6024127668Sbms#include <sys/types.h>
6025127668Sbms#include <netinet/in.h>
6026127668Sbms#include <arpa/inet.h>
6027127668Sbmsint
6028127668Sbmsmain ()
6029127668Sbms{
6030127668Sbmschar src[128];
6031127668Sbmsstruct in_addr dst;
6032127668Sbmsinet_aton(src, &dst);
6033127668Sbms  ;
6034127668Sbms  return 0;
6035127668Sbms}
6036127668Sbms_ACEOF
6037251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
6038251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6039251158Sdelphij$as_echo "yes" >&6; }
6040127668Sbmselse
6041251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042251158Sdelphij$as_echo "no" >&6; }
6043172683Smlaier	case " $LIBOBJS " in
6044172683Smlaier  *" inet_aton.$ac_objext "* ) ;;
6045172683Smlaier  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
6046172683Smlaier ;;
6047172683Smlaieresac
6048172683Smlaier
6049127668Sbmsfi
6050251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
6051251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
6052127668Sbms
6053146773Ssam#
6054146773Ssam# Check for these after AC_LBL_LIBPCAP, for the same reason.
6055146773Ssam#
6056146773Ssam# You are in a twisty little maze of UN*Xes, all different.
6057146773Ssam# Some might not have ether_ntohost().
6058146773Ssam# Some might have it, but not declare it in any header file.
6059146773Ssam# Some might have it, but declare it in <netinet/if_ether.h>.
6060146773Ssam# Some might have it, but declare it in <netinet/ether.h>
6061146773Ssam# (And some might have it but document it as something declared in
6062146773Ssam# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6063146773Ssam#
6064146773Ssam# Before you is a C compiler.
6065146773Ssam#
6066146773Ssamfor ac_func in ether_ntohost
6067251158Sdelphijdo :
6068251158Sdelphij  ac_fn_c_check_func "$LINENO" "ether_ntohost" "ac_cv_func_ether_ntohost"
6069251158Sdelphijif test "x$ac_cv_func_ether_ntohost" = xyes; then :
6070146773Ssam  cat >>confdefs.h <<_ACEOF
6071251158Sdelphij#define HAVE_ETHER_NTOHOST 1
6072146773Ssam_ACEOF
6073146773Ssam
6074251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy ether_ntohost" >&5
6075251158Sdelphij$as_echo_n "checking for buggy ether_ntohost... " >&6; }
6076251158Sdelphijif ${ac_cv_buggy_ether_ntohost+:} false; then :
6077251158Sdelphij  $as_echo_n "(cached) " >&6
6078146773Ssamelse
6079146773Ssam
6080251158Sdelphij	if test "$cross_compiling" = yes; then :
6081146773Ssam  ac_cv_buggy_ether_ntohost="not while cross-compiling"
6082146773Ssamelse
6083251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084146773Ssam/* end confdefs.h.  */
6085146773Ssam
6086146773Ssam		#include <netdb.h>
6087146773Ssam		#include <sys/types.h>
6088146773Ssam		#include <sys/param.h>
6089146773Ssam		#include <sys/socket.h>
6090146773Ssam
6091146773Ssam		int
6092146773Ssam		main(int argc, char **argv)
6093146773Ssam		{
6094146773Ssam			u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
6095146773Ssam			char name[MAXHOSTNAMELEN];
6096146773Ssam
6097146773Ssam			ether_ntohost(name, (struct ether_addr *)ea);
6098146773Ssam			exit(0);
6099146773Ssam		}
6100146773Ssam
6101146773Ssam_ACEOF
6102251158Sdelphijif ac_fn_c_try_run "$LINENO"; then :
6103146773Ssam  ac_cv_buggy_ether_ntohost=no
6104146773Ssamelse
6105251158Sdelphij  ac_cv_buggy_ether_ntohost=yes
6106146773Ssamfi
6107251158Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6108251158Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
6109146773Ssamfi
6110172683Smlaier
6111146773Ssamfi
6112251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_ether_ntohost" >&5
6113251158Sdelphij$as_echo "$ac_cv_buggy_ether_ntohost" >&6; }
6114146773Ssam    if test "$ac_cv_buggy_ether_ntohost" = "no"; then
6115251158Sdelphij	$as_echo "#define USE_ETHER_NTOHOST 1" >>confdefs.h
6116146773Ssam
6117146773Ssam    fi
6118146773Ssam
6119146773Ssamfi
6120146773Ssamdone
6121146773Ssam
6122146773Ssamif test "$ac_cv_func_ether_ntohost" = yes -a \
6123146773Ssam    "$ac_cv_buggy_ether_ntohost" = "no"; then
6124146773Ssam	#
6125146773Ssam	# OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
6126146773Ssam	#
6127146773Ssam	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6128146773Ssam		#
6129146773Ssam		# Yes.  Does it declare ether_ntohost()?
6130146773Ssam		#
6131251158Sdelphij		ac_fn_c_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
6132146773Ssam#include <sys/types.h>
6133146773Ssam#include <sys/socket.h>
6134146773Ssam#include <netinet/in.h>
6135147899Ssam#include <arpa/inet.h>
6136146773Ssamstruct mbuf;
6137146773Ssamstruct rtentry;
6138146773Ssam#include <net/if.h>
6139146773Ssam#include <netinet/if_ether.h>
6140146773Ssam
6141251158Sdelphij"
6142251158Sdelphijif test "x$ac_cv_have_decl_ether_ntohost" = xyes; then :
6143146773Ssam
6144146773Ssam
6145251158Sdelphij$as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
6146146773Ssam
6147172683Smlaier
6148146773Ssamfi
6149146773Ssam
6150146773Ssam	fi
6151146773Ssam	#
6152146773Ssam	# Did that succeed?
6153146773Ssam	#
6154146773Ssam	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
6155146773Ssam		#
6156146773Ssam		# No, how about <netinet/ether.h>, as on Linux?
6157146773Ssam		#
6158251158Sdelphij		for ac_header in netinet/ether.h
6159251158Sdelphijdo :
6160251158Sdelphij  ac_fn_c_check_header_mongrel "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
6161251158Sdelphijif test "x$ac_cv_header_netinet_ether_h" = xyes; then :
6162146773Ssam  cat >>confdefs.h <<_ACEOF
6163251158Sdelphij#define HAVE_NETINET_ETHER_H 1
6164146773Ssam_ACEOF
6165146773Ssam
6166146773Ssamfi
6167146773Ssam
6168146773Ssamdone
6169146773Ssam
6170146773Ssam		if test "$ac_cv_header_netinet_ether_h" = yes; then
6171146773Ssam			#
6172146773Ssam			# We have it - does it declare ether_ntohost()?
6173146773Ssam			# Unset ac_cv_have_decl_ether_ntohost so we don't
6174146773Ssam			# treat the previous failure as a cached value and
6175146773Ssam			# suppress the next test.
6176146773Ssam			#
6177146773Ssam			unset ac_cv_have_decl_ether_ntohost
6178251158Sdelphij			ac_fn_c_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
6179146773Ssam#include <netinet/ether.h>
6180146773Ssam
6181251158Sdelphij"
6182251158Sdelphijif test "x$ac_cv_have_decl_ether_ntohost" = xyes; then :
6183146773Ssam
6184146773Ssam
6185251158Sdelphij$as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
6186146773Ssam
6187172683Smlaier
6188146773Ssamfi
6189146773Ssam
6190147899Ssam		fi
6191147899Ssam	fi
6192147899Ssam	#
6193147899Ssam	# Is ether_ntohost() declared?
6194147899Ssam	#
6195147899Ssam	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
6196147899Ssam		#
6197147899Ssam		# No, we'll have to declare it ourselves.
6198147899Ssam		# Do we have "struct ether_addr"?
6199147899Ssam		#
6200251158Sdelphij		ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
6201147899Ssam#include <sys/types.h>
6202147899Ssam#include <sys/socket.h>
6203147899Ssam#include <netinet/in.h>
6204147899Ssam#include <arpa/inet.h>
6205147899Ssamstruct mbuf;
6206147899Ssamstruct rtentry;
6207147899Ssam#include <net/if.h>
6208147899Ssam#include <netinet/if_ether.h>
6209146773Ssam
6210251158Sdelphij"
6211251158Sdelphijif test "x$ac_cv_type_struct_ether_addr" = xyes; then :
6212147899Ssam
6213147899Ssamcat >>confdefs.h <<_ACEOF
6214147899Ssam#define HAVE_STRUCT_ETHER_ADDR 1
6215146773Ssam_ACEOF
6216146773Ssam
6217146773Ssam
6218146773Ssamfi
6219146773Ssam
6220146773Ssam
6221251158Sdelphij$as_echo "#define HAVE_DECL_ETHER_NTOHOST 0" >>confdefs.h
6222147899Ssam
6223147899Ssam	else
6224147899Ssam
6225251158Sdelphij$as_echo "#define HAVE_DECL_ETHER_NTOHOST 1" >>confdefs.h
6226147899Ssam
6227146773Ssam	fi
6228146773Ssamfi
6229146773Ssam
6230190207Srpaulo# libdlpi is needed for Solaris 11 and later.
6231251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6232251158Sdelphij$as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6233251158Sdelphijif ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
6234251158Sdelphij  $as_echo_n "(cached) " >&6
6235190207Srpauloelse
6236190207Srpaulo  ac_check_lib_save_LIBS=$LIBS
6237190207SrpauloLIBS="-ldlpi -L/lib $LIBS"
6238251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239190207Srpaulo/* end confdefs.h.  */
6240146773Ssam
6241190207Srpaulo/* Override any GCC internal prototype to avoid an error.
6242190207Srpaulo   Use char because int might match the return type of a GCC
6243190207Srpaulo   builtin and then its argument prototype would still apply.  */
6244190207Srpaulo#ifdef __cplusplus
6245190207Srpauloextern "C"
6246190207Srpaulo#endif
6247190207Srpaulochar dlpi_walk ();
6248190207Srpauloint
6249190207Srpaulomain ()
6250190207Srpaulo{
6251190207Srpauloreturn dlpi_walk ();
6252190207Srpaulo  ;
6253190207Srpaulo  return 0;
6254190207Srpaulo}
6255190207Srpaulo_ACEOF
6256251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
6257190207Srpaulo  ac_cv_lib_dlpi_dlpi_walk=yes
6258190207Srpauloelse
6259251158Sdelphij  ac_cv_lib_dlpi_dlpi_walk=no
6260190207Srpaulofi
6261251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
6262251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
6263190207SrpauloLIBS=$ac_check_lib_save_LIBS
6264190207Srpaulofi
6265251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6266251158Sdelphij$as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6267251158Sdelphijif test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
6268190207Srpaulo  LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
6269190207Srpaulofi
6270190207Srpaulo
6271190207Srpaulo
6272190207Srpaulo
6273251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has sa_len member" >&5
6274251158Sdelphij$as_echo_n "checking if sockaddr struct has sa_len member... " >&6; }
6275251158Sdelphij	if ${ac_cv_sockaddr_has_sa_len+:} false; then :
6276251158Sdelphij  $as_echo_n "(cached) " >&6
6277127668Sbmselse
6278251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279127668Sbms/* end confdefs.h.  */
6280127668Sbms
6281127668Sbms#		include <sys/types.h>
6282127668Sbms#		include <sys/socket.h>
6283127668Sbmsint
6284127668Sbmsmain ()
6285127668Sbms{
6286127668Sbmsu_int i = sizeof(((struct sockaddr *)0)->sa_len)
6287127668Sbms  ;
6288127668Sbms  return 0;
6289127668Sbms}
6290127668Sbms_ACEOF
6291251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
6292127668Sbms  ac_cv_sockaddr_has_sa_len=yes
6293127668Sbmselse
6294251158Sdelphij  ac_cv_sockaddr_has_sa_len=no
6295127668Sbmsfi
6296172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297127668Sbmsfi
6298127668Sbms
6299251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_has_sa_len" >&5
6300251158Sdelphij$as_echo "$ac_cv_sockaddr_has_sa_len" >&6; }
6301127668Sbms		if test $ac_cv_sockaddr_has_sa_len = yes ; then
6302251158Sdelphij			$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
6303127668Sbms
6304127668Sbms	fi
6305127668Sbms
6306127668Sbmsif test "$ac_cv_sockaddr_has_sa_len" = no; then
6307127668Sbms	missing_includes=yes
6308127668Sbmsfi
6309127668Sbms
6310190207Srpaulo#
6311190207Srpaulo# Do we have the new open API?  Check for pcap_create, and assume that,
6312235530Sdelphij# if we do, we also have pcap_activate() and the other new routines
6313235530Sdelphij# introduced in libpcap 1.0.0.
6314235530Sdelphij#
6315190207Srpaulofor ac_func in pcap_create
6316251158Sdelphijdo :
6317251158Sdelphij  ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create"
6318251158Sdelphijif test "x$ac_cv_func_pcap_create" = xyes; then :
6319190207Srpaulo  cat >>confdefs.h <<_ACEOF
6320251158Sdelphij#define HAVE_PCAP_CREATE 1
6321190207Srpaulo_ACEOF
6322190207Srpaulo
6323190207Srpaulofi
6324190207Srpaulodone
6325190207Srpaulo
6326235530Sdelphijif test $ac_cv_func_pcap_create = "yes" ; then
6327235530Sdelphij	#
6328235530Sdelphij	# OK, do we have pcap_set_tstamp_type?  If so, assume we have
6329235530Sdelphij	# pcap_list_tstamp_types and pcap_free_tstamp_types as well.
6330235530Sdelphij	#
6331251158Sdelphij	for ac_func in pcap_set_tstamp_type
6332251158Sdelphijdo :
6333251158Sdelphij  ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_type" "ac_cv_func_pcap_set_tstamp_type"
6334251158Sdelphijif test "x$ac_cv_func_pcap_set_tstamp_type" = xyes; then :
6335235530Sdelphij  cat >>confdefs.h <<_ACEOF
6336251158Sdelphij#define HAVE_PCAP_SET_TSTAMP_TYPE 1
6337235530Sdelphij_ACEOF
6338235530Sdelphij
6339235530Sdelphijfi
6340235530Sdelphijdone
6341235530Sdelphij
6342235530Sdelphijfi
6343235530Sdelphij
6344127668Sbmsfor ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
6345251158Sdelphijdo :
6346251158Sdelphij  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6347251158Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6348251158Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6349127668Sbms  cat >>confdefs.h <<_ACEOF
6350251158Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6351127668Sbms_ACEOF
635275115Sfenner
6353127668Sbmsfi
6354127668Sbmsdone
6355127668Sbms
6356127668Sbmsif test $ac_cv_func_pcap_findalldevs = "yes" ; then
6357241235Sdelphij    savedcppflags="$CPPFLAGS"
6358190207Srpaulo    CPPFLAGS="$CPPFLAGS $V_INCLS"
6359251158Sdelphij    ac_fn_c_check_type "$LINENO" "pcap_if_t" "ac_cv_type_pcap_if_t" "#include <pcap.h>
6360251158Sdelphij"
6361251158Sdelphijif test "x$ac_cv_type_pcap_if_t" = xyes; then :
6362127668Sbms
6363127668Sbmscat >>confdefs.h <<_ACEOF
6364127668Sbms#define HAVE_PCAP_IF_T 1
6365127668Sbms_ACEOF
6366127668Sbms
6367127668Sbms
6368127668Sbmsfi
6369127668Sbms
6370190207Srpaulo    CPPFLAGS="$savedcppflags"
6371127668Sbmsfi
6372146773Ssam
6373127668Sbmsif test $ac_cv_func_pcap_lib_version = "no" ; then
6374251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_version is defined by libpcap" >&5
6375251158Sdelphij$as_echo_n "checking whether pcap_version is defined by libpcap... " >&6; }
6376251158Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377127668Sbms/* end confdefs.h.  */
6378127668Sbms
6379127668Sbmsint
6380127668Sbmsmain ()
6381127668Sbms{
6382127668Sbms
6383127668Sbms	extern char pcap_version[];
6384127668Sbms
6385146773Ssam	return (int)pcap_version;
6386127668Sbms
6387127668Sbms  ;
6388127668Sbms  return 0;
6389127668Sbms}
6390127668Sbms_ACEOF
6391251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
6392127668Sbms  ac_lbl_cv_pcap_version_defined=yes
6393127668Sbmselse
6394251158Sdelphij  ac_lbl_cv_pcap_version_defined=no
6395127668Sbmsfi
6396251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
6397251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
6398127668Sbms    if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
6399251158Sdelphij    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6400251158Sdelphij$as_echo "yes" >&6; }
6401251158Sdelphij	$as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
6402127668Sbms
6403127668Sbms    else
6404251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405251158Sdelphij$as_echo "no" >&6; }
6406127668Sbms    fi
6407127668Sbmsfi
6408251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5
6409251158Sdelphij$as_echo_n "checking whether pcap_debug is defined by libpcap... " >&6; }
6410251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411127668Sbms/* end confdefs.h.  */
6412127668Sbms
6413127668Sbmsint
6414127668Sbmsmain ()
6415127668Sbms{
6416127668Sbms
6417127668Sbms	extern int pcap_debug;
6418127668Sbms
6419127668Sbms	return pcap_debug;
6420127668Sbms
6421127668Sbms  ;
6422127668Sbms  return 0;
6423127668Sbms}
6424127668Sbms_ACEOF
6425251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
6426127668Sbms  ac_lbl_cv_pcap_debug_defined=yes
6427127668Sbmselse
6428251158Sdelphij  ac_lbl_cv_pcap_debug_defined=no
6429127668Sbmsfi
6430251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
6431251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
6432127668Sbmsif test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
6433251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6434251158Sdelphij$as_echo "yes" >&6; }
6435251158Sdelphij	$as_echo "#define HAVE_PCAP_DEBUG 1" >>confdefs.h
6436127668Sbms
6437127668Sbmselse
6438251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439251158Sdelphij$as_echo "no" >&6; }
6440127668Sbms	#
6441127668Sbms	# OK, what about "yydebug"?
6442127668Sbms	#
6443251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5
6444251158Sdelphij$as_echo_n "checking whether yydebug is defined by libpcap... " >&6; }
6445251158Sdelphij	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446127668Sbms/* end confdefs.h.  */
6447127668Sbms
6448127668Sbmsint
6449127668Sbmsmain ()
6450127668Sbms{
6451127668Sbms
6452127668Sbms		extern int yydebug;
6453127668Sbms
6454127668Sbms		return yydebug;
6455127668Sbms
6456127668Sbms  ;
6457127668Sbms  return 0;
6458127668Sbms}
6459127668Sbms_ACEOF
6460251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
6461127668Sbms  ac_lbl_cv_yydebug_defined=yes
6462127668Sbmselse
6463251158Sdelphij  ac_lbl_cv_yydebug_defined=no
6464127668Sbmsfi
6465251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
6466251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
6467127668Sbms	if test "$ac_lbl_cv_yydebug_defined" = yes ; then
6468251158Sdelphij		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6469251158Sdelphij$as_echo "yes" >&6; }
6470251158Sdelphij		$as_echo "#define HAVE_YYDEBUG 1" >>confdefs.h
6471127668Sbms
6472127668Sbms	else
6473251158Sdelphij		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474251158Sdelphij$as_echo "no" >&6; }
6475127668Sbms	fi
6476127668Sbmsfi
6477251158Sdelphijac_fn_c_check_func "$LINENO" "bpf_dump" "ac_cv_func_bpf_dump"
6478251158Sdelphijif test "x$ac_cv_func_bpf_dump" = xyes; then :
6479251158Sdelphij  $as_echo "#define HAVE_BPF_DUMP 1" >>confdefs.h
6480127668Sbms
6481127668Sbmselse
6482172683Smlaier  case " $LIBOBJS " in
6483251158Sdelphij  *" bpf_dump.$ac_objext "* ) ;;
6484251158Sdelphij  *) LIBOBJS="$LIBOBJS bpf_dump.$ac_objext"
6485172683Smlaier ;;
6486172683Smlaieresac
6487172683Smlaier
6488127668Sbmsfi
648975115Sfenner
6490127668Sbms
649117680SpstV_GROUP=0
649239297Sfennerif test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
649339297Sfenner	V_GROUP=wheel
649439297Sfennerfi
6495214478Srpaulo#
6496214478Srpaulo# Assume V7/BSD convention for man pages (file formats in section 5,
6497214478Srpaulo# miscellaneous info in section 7).
6498214478Srpaulo#
6499214478SrpauloMAN_FILE_FORMATS=5
6500214478SrpauloMAN_MISC_INFO=7
650198524Sfennercase "$host_os" in
650217680Spst
650317680Spstaix*)
6504235530Sdelphij
6505251158Sdelphij$as_echo "#define _SUN 1" >>confdefs.h
650617680Spst
650717680Spst	;;
650817680Spst
6509214478Srpaulohpux*)
6510214478Srpaulo	#
6511214478Srpaulo	# Use System V conventions for man pages.
6512214478Srpaulo	#
6513214478Srpaulo	MAN_FILE_FORMATS=4
6514214478Srpaulo	MAN_MISC_INFO=5
6515214478Srpaulo	;;
6516214478Srpaulo
651717680Spstirix*)
651817680Spst	V_GROUP=sys
6519214478Srpaulo
6520214478Srpaulo	#
6521214478Srpaulo	# Use System V conventions for man pages.
6522214478Srpaulo	#
6523214478Srpaulo	MAN_FILE_FORMATS=4
6524214478Srpaulo	MAN_MISC_INFO=5
652517680Spst	;;
652617680Spst
652717680Spstosf*)
652817680Spst	V_GROUP=system
6529214478Srpaulo
6530214478Srpaulo	#
6531214478Srpaulo	# Use System V conventions for man pages.
6532214478Srpaulo	#
6533214478Srpaulo	MAN_FILE_FORMATS=4
6534214478Srpaulo	MAN_MISC_INFO=5
653517680Spst	;;
653617680Spst
653717680Spstsolaris*)
653817680Spst	V_GROUP=sys
6539214478Srpaulo
6540214478Srpaulo	#
6541214478Srpaulo	# Use System V conventions for man pages.
6542214478Srpaulo	#
6543214478Srpaulo	MAN_FILE_FORMATS=4
6544214478Srpaulo	MAN_MISC_INFO=5
654517680Spst	;;
654617680Spstesac
654717680Spst
654817680Spstif test -f /dev/bpf0 ; then
654917680Spst	V_GROUP=bpf
655017680Spstfi
655117680Spst
6552147899Ssamfor ac_header in sys/bitypes.h
6553251158Sdelphijdo :
6554251158Sdelphij  ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
6555251158Sdelphijif test "x$ac_cv_header_sys_bitypes_h" = xyes; then :
6556147899Ssam  cat >>confdefs.h <<_ACEOF
6557251158Sdelphij#define HAVE_SYS_BITYPES_H 1
6558147899Ssam_ACEOF
6559147899Ssam
6560147899Ssamfi
6561147899Ssam
6562147899Ssamdone
6563147899Ssam
6564147899Ssam
6565251158Sdelphijac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
6566214478Srpaulo#ifdef HAVE_SYS_BITYPES_H
6567214478Srpaulo#include <sys/bitypes.h>
6568214478Srpaulo#endif
6569251158Sdelphij"
6570251158Sdelphijif test "x$ac_cv_type_int8_t" = xyes; then :
6571214478Srpaulo
6572127668Sbmselse
6573127668Sbms
6574251158Sdelphij$as_echo "#define int8_t signed char" >>confdefs.h
6575172683Smlaier
6576127668Sbmsfi
6577127668Sbms
6578251158Sdelphijac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
6579147899Ssam#ifdef HAVE_SYS_BITYPES_H
6580147899Ssam#include <sys/bitypes.h>
6581147899Ssam#endif
6582251158Sdelphij"
6583251158Sdelphijif test "x$ac_cv_type_u_int8_t" = xyes; then :
6584127668Sbms
658556893Sfennerelse
6586127668Sbms
6587251158Sdelphij$as_echo "#define u_int8_t unsigned char" >>confdefs.h
6588172683Smlaier
658956893Sfennerfi
659056893Sfenner
6591251158Sdelphijac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
6592251158Sdelphijif test "x$ac_cv_type_int16_t" = xyes; then :
659356893Sfenner
659456893Sfennerelse
6595127668Sbms
6596251158Sdelphij$as_echo "#define int16_t short" >>confdefs.h
6597172683Smlaier
6598214478Srpaulo	$ac_includes_default
6599214478Srpaulo#ifdef HAVE_SYS_BITYPES_H
6600214478Srpaulo#include <sys/bitypes.h>
6601214478Srpaulo#endif
6602147899Ssamfi
6603147899Ssam
6604251158Sdelphijac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
6605147899Ssam#ifdef HAVE_SYS_BITYPES_H
6606147899Ssam#include <sys/bitypes.h>
6607147899Ssam#endif
6608251158Sdelphij"
6609251158Sdelphijif test "x$ac_cv_type_u_int16_t" = xyes; then :
661056893Sfenner
661156893Sfennerelse
6612127668Sbms
6613251158Sdelphij$as_echo "#define u_int16_t unsigned short" >>confdefs.h
6614172683Smlaier
661556893Sfennerfi
661656893Sfenner
6617251158Sdelphijac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
6618214478Srpaulo#ifdef HAVE_SYS_BITYPES_H
6619214478Srpaulo#include <sys/bitypes.h>
6620214478Srpaulo#endif
6621251158Sdelphij"
6622251158Sdelphijif test "x$ac_cv_type_int32_t" = xyes; then :
6623214478Srpaulo
662417680Spstelse
6625127668Sbms
6626251158Sdelphij$as_echo "#define int32_t int" >>confdefs.h
6627172683Smlaier
662817680Spstfi
662917680Spst
6630251158Sdelphijac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
6631147899Ssam#ifdef HAVE_SYS_BITYPES_H
6632147899Ssam#include <sys/bitypes.h>
6633147899Ssam#endif
6634251158Sdelphij"
6635251158Sdelphijif test "x$ac_cv_type_u_int32_t" = xyes; then :
663617680Spst
663717680Spstelse
6638127668Sbms
6639251158Sdelphij$as_echo "#define u_int32_t unsigned int" >>confdefs.h
6640172683Smlaier
664117680Spstfi
664217680Spst
6643251158Sdelphijac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
6644214478Srpaulo#ifdef HAVE_SYS_BITYPES_H
6645214478Srpaulo#include <sys/bitypes.h>
6646214478Srpaulo#endif
6647251158Sdelphij"
6648251158Sdelphijif test "x$ac_cv_type_int64_t" = xyes; then :
6649214478Srpaulo
6650146773Ssamelse
6651146773Ssam
6652251158Sdelphij$as_echo "#define int64_t long long" >>confdefs.h
6653172683Smlaier
6654146773Ssamfi
6655146773Ssam
6656251158Sdelphijac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
6657147899Ssam#ifdef HAVE_SYS_BITYPES_H
6658147899Ssam#include <sys/bitypes.h>
6659147899Ssam#endif
6660251158Sdelphij"
6661251158Sdelphijif test "x$ac_cv_type_u_int64_t" = xyes; then :
6662146773Ssam
6663146773Ssamelse
6664146773Ssam
6665251158Sdelphij$as_echo "#define u_int64_t unsigned long long" >>confdefs.h
6666172683Smlaier
6667146773Ssamfi
6668146773Ssam
6669146773Ssam
6670146773Ssam#
6671146773Ssam# We can't just check for <inttypes.h> - some systems have one that
6672146773Ssam# doesn't define all the PRI[doxu]64 macros.
6673146773Ssam#
6674146773Ssamfor ac_header in inttypes.h
6675251158Sdelphijdo :
6676251158Sdelphij  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6677251158Sdelphijif test "x$ac_cv_header_inttypes_h" = xyes; then :
6678146773Ssam  cat >>confdefs.h <<_ACEOF
6679251158Sdelphij#define HAVE_INTTYPES_H 1
6680146773Ssam_ACEOF
6681146773Ssam
6682146773Ssam    #
6683146773Ssam    # OK, we have inttypes.h, but does it define those macros?
6684146773Ssam    #
6685251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
6686251158Sdelphij$as_echo_n "checking whether inttypes.h defines the PRI[doxu]64 macros... " >&6; }
6687251158Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688146773Ssam/* end confdefs.h.  */
6689146773Ssam
6690251158Sdelphij
6691146773Ssam	    #include <inttypes.h>
6692146773Ssam	    #include <stdio.h>
6693146773Ssam	    #include <sys/types.h>
6694147899Ssam	    #ifdef HAVE_SYS_BITYPES_H
6695147899Ssam	    #include <sys/bitypes.h>
6696147899Ssam	    #endif
6697146773Ssam
6698146773Ssam	    main()
6699146773Ssam	    {
6700146773Ssam	      printf("%" PRId64 "\n", (u_int64_t)1);
6701146773Ssam	      printf("%" PRIo64 "\n", (u_int64_t)1);
6702146773Ssam	      printf("%" PRIx64 "\n", (u_int64_t)1);
6703146773Ssam	      printf("%" PRIu64 "\n", (u_int64_t)1);
6704146773Ssam	    }
6705146773Ssam
6706146773Ssam
6707146773Ssam_ACEOF
6708251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
6709146773Ssam
6710251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6711251158Sdelphij$as_echo "yes" >&6; }
6712146773Ssam	ac_lbl_inttypes_h_defines_formats=yes
6713146773Ssam
6714146773Ssamelse
6715146773Ssam
6716251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717251158Sdelphij$as_echo "no" >&6; }
6718146773Ssam	ac_lbl_inttypes_h_defines_formats=no
6719146773Ssam
6720146773Ssamfi
6721172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722172683Smlaier
6723146773Ssamelse
6724146773Ssam
6725146773Ssam    #
6726146773Ssam    # We don't have inttypes.h, so it obviously can't define those
6727146773Ssam    # macros.
6728146773Ssam    #
6729146773Ssam    ac_lbl_inttypes_h_defines_formats=no
6730146773Ssam
6731146773Ssamfi
6732146773Ssam
6733146773Ssamdone
6734146773Ssam
6735147899Ssamif test "$ac_lbl_inttypes_h_defines_formats" = no; then
6736147899Ssam
6737251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %lx can be used to format 64-bit integers" >&5
6738251158Sdelphij$as_echo_n "checking whether %lx can be used to format 64-bit integers... " >&6; }
6739251158Sdelphij    if test "$cross_compiling" = yes; then :
6740251158Sdelphij  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6741251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6742251158Sdelphijas_fn_error $? "cannot run test program while cross compiling
6743251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
6744147899Ssamelse
6745251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746147899Ssam/* end confdefs.h.  */
6747146773Ssam
6748251158Sdelphij
6749147899Ssam#	    ifdef HAVE_INTTYPES_H
6750147899Ssam	    #include <inttypes.h>
6751147899Ssam#	    endif
6752147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
6753147899Ssam            #include <sys/bitypes.h>
6754147899Ssam#	    endif
6755147899Ssam	    #include <stdio.h>
6756147899Ssam	    #include <sys/types.h>
6757147899Ssam
6758147899Ssam	    main()
6759147899Ssam	    {
6760147899Ssam	      u_int64_t t = 1;
6761147899Ssam	      char strbuf[16+1];
6762147899Ssam	      sprintf(strbuf, "%016lx", t << 32);
6763147899Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
6764147899Ssam		exit(0);
6765147899Ssam	      else
6766147899Ssam		exit(1);
6767147899Ssam	    }
6768147899Ssam
6769147899Ssam
6770147899Ssam_ACEOF
6771251158Sdelphijif ac_fn_c_try_run "$LINENO"; then :
6772147899Ssam
6773251158Sdelphij	$as_echo "#define PRId64 \"ld\"" >>confdefs.h
6774147899Ssam
6775251158Sdelphij	$as_echo "#define PRIo64 \"lo\"" >>confdefs.h
6776147899Ssam
6777251158Sdelphij	$as_echo "#define PRIx64 \"lx\"" >>confdefs.h
6778147899Ssam
6779251158Sdelphij	$as_echo "#define PRIu64 \"lu\"" >>confdefs.h
6780147899Ssam
6781251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6782251158Sdelphij$as_echo "yes" >&6; }
6783147899Ssam
6784146773Ssamelse
6785146773Ssam
6786251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787251158Sdelphij$as_echo "no" >&6; }
6788147899Ssam
6789147899Ssam
6790251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %llx can be used to format 64-bit integers" >&5
6791251158Sdelphij$as_echo_n "checking whether %llx can be used to format 64-bit integers... " >&6; }
6792251158Sdelphij    if test "$cross_compiling" = yes; then :
6793251158Sdelphij  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6794251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6795251158Sdelphijas_fn_error $? "cannot run test program while cross compiling
6796251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
6797146773Ssamelse
6798251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799146773Ssam/* end confdefs.h.  */
6800146773Ssam
6801251158Sdelphij
6802146773Ssam#	    ifdef HAVE_INTTYPES_H
6803146773Ssam	    #include <inttypes.h>
6804146773Ssam#	    endif
6805147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
6806147899Ssam            #include <sys/bitypes.h>
6807147899Ssam#	    endif
6808146773Ssam	    #include <stdio.h>
6809146773Ssam	    #include <sys/types.h>
6810146773Ssam
6811146773Ssam	    main()
6812146773Ssam	    {
6813146773Ssam	      u_int64_t t = 1;
6814146773Ssam	      char strbuf[16+1];
6815146773Ssam	      sprintf(strbuf, "%016llx", t << 32);
6816146773Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
6817146773Ssam		exit(0);
6818146773Ssam	      else
6819146773Ssam		exit(1);
6820146773Ssam	    }
6821146773Ssam
6822146773Ssam
6823146773Ssam_ACEOF
6824251158Sdelphijif ac_fn_c_try_run "$LINENO"; then :
6825146773Ssam
6826251158Sdelphij	$as_echo "#define PRId64 \"lld\"" >>confdefs.h
6827146773Ssam
6828251158Sdelphij	$as_echo "#define PRIo64 \"llo\"" >>confdefs.h
6829146773Ssam
6830251158Sdelphij	$as_echo "#define PRIx64 \"llx\"" >>confdefs.h
6831146773Ssam
6832251158Sdelphij	$as_echo "#define PRIu64 \"llu\"" >>confdefs.h
6833146773Ssam
6834251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6835251158Sdelphij$as_echo "yes" >&6; }
6836146773Ssam
6837146773Ssamelse
6838146773Ssam
6839251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840251158Sdelphij$as_echo "no" >&6; }
6841146773Ssam
6842146773Ssam
6843251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %Lx can be used to format 64-bit integers" >&5
6844251158Sdelphij$as_echo_n "checking whether %Lx can be used to format 64-bit integers... " >&6; }
6845251158Sdelphij    if test "$cross_compiling" = yes; then :
6846251158Sdelphij  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6847251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6848251158Sdelphijas_fn_error $? "cannot run test program while cross compiling
6849251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
6850146773Ssamelse
6851251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852146773Ssam/* end confdefs.h.  */
6853146773Ssam
6854251158Sdelphij
6855146773Ssam#	    ifdef HAVE_INTTYPES_H
6856146773Ssam	    #include <inttypes.h>
6857146773Ssam#	    endif
6858147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
6859147899Ssam            #include <sys/bitypes.h>
6860147899Ssam#	    endif
6861146773Ssam	    #include <stdio.h>
6862146773Ssam	    #include <sys/types.h>
6863146773Ssam
6864146773Ssam	    main()
6865146773Ssam	    {
6866146773Ssam	      u_int64_t t = 1;
6867146773Ssam	      char strbuf[16+1];
6868146773Ssam	      sprintf(strbuf, "%016Lx", t << 32);
6869146773Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
6870146773Ssam		exit(0);
6871146773Ssam	      else
6872146773Ssam		exit(1);
6873146773Ssam	    }
6874146773Ssam
6875146773Ssam
6876146773Ssam_ACEOF
6877251158Sdelphijif ac_fn_c_try_run "$LINENO"; then :
6878146773Ssam
6879251158Sdelphij	$as_echo "#define PRId64 \"Ld\"" >>confdefs.h
6880146773Ssam
6881251158Sdelphij	$as_echo "#define PRIo64 \"Lo\"" >>confdefs.h
6882146773Ssam
6883251158Sdelphij	$as_echo "#define PRIx64 \"Lx\"" >>confdefs.h
6884146773Ssam
6885251158Sdelphij	$as_echo "#define PRIu64 \"Lu\"" >>confdefs.h
6886146773Ssam
6887251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6888251158Sdelphij$as_echo "yes" >&6; }
6889146773Ssam
6890146773Ssamelse
6891146773Ssam
6892251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893251158Sdelphij$as_echo "no" >&6; }
6894146773Ssam
6895146773Ssam
6896251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %qx can be used to format 64-bit integers" >&5
6897251158Sdelphij$as_echo_n "checking whether %qx can be used to format 64-bit integers... " >&6; }
6898251158Sdelphij    if test "$cross_compiling" = yes; then :
6899251158Sdelphij  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6900251158Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6901251158Sdelphijas_fn_error $? "cannot run test program while cross compiling
6902251158SdelphijSee \`config.log' for more details" "$LINENO" 5; }
6903146773Ssamelse
6904251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905146773Ssam/* end confdefs.h.  */
6906146773Ssam
6907251158Sdelphij
6908146773Ssam#	    ifdef HAVE_INTTYPES_H
6909146773Ssam	    #include <inttypes.h>
6910146773Ssam#	    endif
6911147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
6912147899Ssam            #include <sys/bitypes.h>
6913147899Ssam#	    endif
6914146773Ssam	    #include <stdio.h>
6915146773Ssam	    #include <sys/types.h>
6916146773Ssam
6917146773Ssam	    main()
6918146773Ssam	    {
6919146773Ssam	      u_int64_t t = 1;
6920146773Ssam	      char strbuf[16+1];
6921146773Ssam	      sprintf(strbuf, "%016qx", t << 32);
6922146773Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
6923146773Ssam		exit(0);
6924146773Ssam	      else
6925146773Ssam		exit(1);
6926146773Ssam	    }
6927146773Ssam
6928146773Ssam
6929146773Ssam_ACEOF
6930251158Sdelphijif ac_fn_c_try_run "$LINENO"; then :
6931146773Ssam
6932251158Sdelphij	$as_echo "#define PRId64 \"qd\"" >>confdefs.h
6933146773Ssam
6934251158Sdelphij	$as_echo "#define PRIo64 \"qo\"" >>confdefs.h
6935146773Ssam
6936251158Sdelphij	$as_echo "#define PRIx64 \"qx\"" >>confdefs.h
6937146773Ssam
6938251158Sdelphij	$as_echo "#define PRIu64 \"qu\"" >>confdefs.h
6939146773Ssam
6940251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6941251158Sdelphij$as_echo "yes" >&6; }
6942146773Ssam
6943146773Ssamelse
6944146773Ssam
6945251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946251158Sdelphij$as_echo "no" >&6; }
6947146773Ssam
6948251158Sdelphij	          as_fn_error $? "neither %llx nor %Lx nor %qx worked on a 64-bit integer" "$LINENO" 5
6949146773Ssam
6950146773Ssam
6951146773Ssamfi
6952251158Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6953251158Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
6954146773Ssamfi
6955146773Ssam
6956146773Ssam
6957146773Ssam
6958172683Smlaier
6959146773Ssamfi
6960251158Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6961251158Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
6962146773Ssamfi
6963146773Ssam
6964146773Ssam
6965146773Ssam
6966172683Smlaier
6967146773Ssamfi
6968251158Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6969251158Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
6970146773Ssamfi
6971146773Ssam
6972147899Ssam
6973147899Ssam
6974172683Smlaier
6975146773Ssamfi
6976251158Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6977251158Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
6978147899Ssamfi
6979146773Ssam
6980172683Smlaier
6981147899Ssamfi
6982147899Ssam
6983235530Sdelphij#
6984235530Sdelphij# Check for some headers introduced in later versions of libpcap
6985235530Sdelphij# and used by some printers.
6986235530Sdelphij#
6987235530Sdelphij# Those headers use the {u_}intN_t types, so we must do this after
6988235530Sdelphij# we check for what's needed to get them defined.
6989235530Sdelphij#
6990235530Sdelphijsavedcppflags="$CPPFLAGS"
6991235530SdelphijCPPFLAGS="$CPPFLAGS $V_INCLS"
6992235530Sdelphijfor ac_header in pcap/bluetooth.h
6993251158Sdelphijdo :
6994251158Sdelphij  ac_fn_c_check_header_compile "$LINENO" "pcap/bluetooth.h" "ac_cv_header_pcap_bluetooth_h" "#include <tcpdump-stdinc.h>
6995251158Sdelphij"
6996251158Sdelphijif test "x$ac_cv_header_pcap_bluetooth_h" = xyes; then :
6997235530Sdelphij  cat >>confdefs.h <<_ACEOF
6998251158Sdelphij#define HAVE_PCAP_BLUETOOTH_H 1
6999235530Sdelphij_ACEOF
7000235530Sdelphij
7001235530Sdelphijfi
7002235530Sdelphij
7003235530Sdelphijdone
7004235530Sdelphij
7005235530Sdelphijfor ac_header in pcap/usb.h
7006251158Sdelphijdo :
7007251158Sdelphij  ac_fn_c_check_header_compile "$LINENO" "pcap/usb.h" "ac_cv_header_pcap_usb_h" "#include <tcpdump-stdinc.h>
7008251158Sdelphij"
7009251158Sdelphijif test "x$ac_cv_header_pcap_usb_h" = xyes; then :
7010235530Sdelphij  cat >>confdefs.h <<_ACEOF
7011251158Sdelphij#define HAVE_PCAP_USB_H 1
7012235530Sdelphij_ACEOF
7013235530Sdelphij
7014235530Sdelphijfi
7015235530Sdelphij
7016235530Sdelphijdone
7017235530Sdelphij
7018235530SdelphijCPPFLAGS="$savedcppflags"
7019235530Sdelphij
7020190207Srpauloif test -n "$ac_tool_prefix"; then
7021190207Srpaulo  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7022190207Srpauloset dummy ${ac_tool_prefix}ranlib; ac_word=$2
7023251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
7025251158Sdelphijif ${ac_cv_prog_RANLIB+:} false; then :
7026251158Sdelphij  $as_echo_n "(cached) " >&6
7027190207Srpauloelse
7028190207Srpaulo  if test -n "$RANLIB"; then
7029190207Srpaulo  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7030190207Srpauloelse
7031190207Srpauloas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032190207Srpaulofor as_dir in $PATH
7033190207Srpaulodo
7034190207Srpaulo  IFS=$as_save_IFS
7035190207Srpaulo  test -z "$as_dir" && as_dir=.
7036251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
7037190207Srpaulo  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038190207Srpaulo    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7039251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040190207Srpaulo    break 2
7041190207Srpaulo  fi
7042190207Srpaulodone
7043251158Sdelphij  done
7044190207SrpauloIFS=$as_save_IFS
7045190207Srpaulo
7046190207Srpaulofi
7047190207Srpaulofi
7048190207SrpauloRANLIB=$ac_cv_prog_RANLIB
7049190207Srpauloif test -n "$RANLIB"; then
7050251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7051251158Sdelphij$as_echo "$RANLIB" >&6; }
7052190207Srpauloelse
7053251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054251158Sdelphij$as_echo "no" >&6; }
7055190207Srpaulofi
7056190207Srpaulo
7057190207Srpaulo
7058190207Srpaulofi
7059190207Srpauloif test -z "$ac_cv_prog_RANLIB"; then
7060190207Srpaulo  ac_ct_RANLIB=$RANLIB
7061190207Srpaulo  # Extract the first word of "ranlib", so it can be a program name with args.
7062190207Srpauloset dummy ranlib; ac_word=$2
7063251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064251158Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
7065251158Sdelphijif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7066251158Sdelphij  $as_echo_n "(cached) " >&6
7067190207Srpauloelse
7068190207Srpaulo  if test -n "$ac_ct_RANLIB"; then
7069190207Srpaulo  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7070190207Srpauloelse
7071190207Srpauloas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072190207Srpaulofor as_dir in $PATH
7073190207Srpaulodo
7074190207Srpaulo  IFS=$as_save_IFS
7075190207Srpaulo  test -z "$as_dir" && as_dir=.
7076251158Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
7077190207Srpaulo  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078190207Srpaulo    ac_cv_prog_ac_ct_RANLIB="ranlib"
7079251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080190207Srpaulo    break 2
7081190207Srpaulo  fi
7082190207Srpaulodone
7083251158Sdelphij  done
7084190207SrpauloIFS=$as_save_IFS
7085190207Srpaulo
7086190207Srpaulofi
7087190207Srpaulofi
7088190207Srpauloac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7089190207Srpauloif test -n "$ac_ct_RANLIB"; then
7090251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7091251158Sdelphij$as_echo "$ac_ct_RANLIB" >&6; }
7092190207Srpauloelse
7093251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094251158Sdelphij$as_echo "no" >&6; }
7095190207Srpaulofi
7096190207Srpaulo
7097190207Srpaulo  if test "x$ac_ct_RANLIB" = x; then
7098190207Srpaulo    RANLIB=":"
7099190207Srpaulo  else
7100190207Srpaulo    case $cross_compiling:$ac_tool_warned in
7101190207Srpauloyes:)
7102251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103251158Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7104190207Srpauloac_tool_warned=yes ;;
7105190207Srpauloesac
7106190207Srpaulo    RANLIB=$ac_ct_RANLIB
7107190207Srpaulo  fi
7108190207Srpauloelse
7109190207Srpaulo  RANLIB="$ac_cv_prog_RANLIB"
7110190207Srpaulofi
7111190207Srpaulo
7112190207Srpaulo
711326180Sfennerrm -f os-proto.h
711426180Sfenner    if test "${LBL_CFLAGS+set}" = set; then
711526180Sfenner	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
711626180Sfenner    fi
711739297Sfenner    if test -f .devel ; then
711839297Sfenner	    if test "$GCC" = yes ; then
711939297Sfenner		    if test "${LBL_CFLAGS+set}" != set; then
712039297Sfenner			    if test "$ac_cv_prog_cc_g" = yes ; then
712139297Sfenner				    V_CCOPT="-g $V_CCOPT"
712239297Sfenner			    fi
712339297Sfenner			    V_CCOPT="$V_CCOPT -Wall"
712439297Sfenner			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
7125172683Smlaier				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
712639297Sfenner			    fi
712726180Sfenner		    fi
712839297Sfenner	    else
712998524Sfenner		    case "$host_os" in
713039297Sfenner
713139297Sfenner		    irix6*)
713239297Sfenner			    V_CCOPT="$V_CCOPT -n32"
713339297Sfenner			    ;;
713439297Sfenner
713539297Sfenner		    *)
713639297Sfenner			    ;;
713739297Sfenner		    esac
713826180Sfenner	    fi
713998524Sfenner	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
714026180Sfenner	    name="lbl/os-$os.h"
714126180Sfenner	    if test -f $name ; then
714226180Sfenner		    ln -s $name os-proto.h
7143214478Srpaulo
7144251158Sdelphij$as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
714526180Sfenner
714626180Sfenner	    else
7147251158Sdelphij		    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
7148251158Sdelphij$as_echo "$as_me: WARNING: can't find $name" >&2;}
714926180Sfenner	    fi
715026180Sfenner    fi
715126180Sfenner
7152251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
7153251158Sdelphij$as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
7154251158Sdelphij    if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
7155251158Sdelphij  $as_echo_n "(cached) " >&6
715617680Spstelse
7157251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158127668Sbms/* end confdefs.h.  */
715917680Spst
716017680Spst#	include <sys/types.h>
716117680Spst#	include <sys/socket.h>
7162127668Sbmsint
7163127668Sbmsmain ()
7164127668Sbms{
716517680Spstu_int i = sizeof(((struct sockaddr *)0)->sa_len)
7166127668Sbms  ;
7167127668Sbms  return 0;
7168127668Sbms}
7169127668Sbms_ACEOF
7170251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
717139297Sfenner  ac_cv_lbl_sockaddr_has_sa_len=yes
717217680Spstelse
7173251158Sdelphij  ac_cv_lbl_sockaddr_has_sa_len=no
717417680Spstfi
7175172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
717617680Spstfi
717717680Spst
7178251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7179251158Sdelphij$as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
718039297Sfenner    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7181214478Srpaulo
7182251158Sdelphij$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
718317680Spst
718417680Spst    fi
718517680Spst
7186251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
7187251158Sdelphij$as_echo_n "checking if unaligned accesses fail... " >&6; }
7188251158Sdelphij    if ${ac_cv_lbl_unaligned_fail+:} false; then :
7189251158Sdelphij  $as_echo_n "(cached) " >&6
719017680Spstelse
719198524Sfenner  case "$host_cpu" in
719217680Spst
7193127668Sbms	#
7194127668Sbms	# These are CPU types where:
7195127668Sbms	#
7196127668Sbms	#	the CPU faults on an unaligned access, but at least some
7197127668Sbms	#	OSes that support that CPU catch the fault and simulate
7198127668Sbms	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7199127668Sbms	#	the simulation is slow, so we don't want to use it;
7200127668Sbms	#
7201127668Sbms	#	the CPU, I infer (from the old
7202127668Sbms	#
720375115Sfenner	# XXX: should also check that they don't do weird things (like on arm)
7204127668Sbms	#
7205127668Sbms	#	comment) doesn't fault on unaligned accesses, but doesn't
7206127668Sbms	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
7207127668Sbms	#
7208127668Sbms	#	for whatever reason, the test program doesn't work
7209127668Sbms	#	(this has been claimed to be the case for several of those
7210127668Sbms	#	CPUs - I don't know what the problem is; the problem
7211127668Sbms	#	was reported as "the test program dumps core" for SuperH,
7212127668Sbms	#	but that's what the test program is *supposed* to do -
7213127668Sbms	#	it dumps core before it writes anything, so the test
7214127668Sbms	#	for an empty output file should find an empty output
7215127668Sbms	#	file and conclude that unaligned accesses don't work).
7216127668Sbms	#
7217127668Sbms	# This run-time test won't work if you're cross-compiling, so
7218127668Sbms	# in order to support cross-compiling for a particular CPU,
7219127668Sbms	# we have to wire in the list of CPU types anyway, as far as
7220127668Sbms	# I know, so perhaps we should just have a set of CPUs on
7221127668Sbms	# which we know it doesn't work, a set of CPUs on which we
7222127668Sbms	# know it does work, and have the script just fail on other
7223127668Sbms	# cpu types and update it when such a failure occurs.
7224127668Sbms	#
7225190207Srpaulo	alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
722639297Sfenner		ac_cv_lbl_unaligned_fail=yes
722717680Spst		;;
722817680Spst
722917680Spst	*)
723017680Spst		cat >conftest.c <<EOF
723117680Spst#		include <sys/types.h>
723217680Spst#		include <sys/wait.h>
723317680Spst#		include <stdio.h>
723417680Spst		unsigned char a[5] = { 1, 2, 3, 4, 5 };
723517680Spst		main() {
723617680Spst		unsigned int i;
723717680Spst		pid_t pid;
723817680Spst		int status;
723917680Spst		/* avoid "core dumped" message */
724017680Spst		pid = fork();
724117680Spst		if (pid <  0)
724217680Spst			exit(2);
724317680Spst		if (pid > 0) {
724417680Spst			/* parent */
724517680Spst			pid = waitpid(pid, &status, 0);
724617680Spst			if (pid < 0)
724717680Spst				exit(3);
724817680Spst			exit(!WIFEXITED(status));
724917680Spst		}
725017680Spst		/* child */
725126180Sfenner		i = *(unsigned int *)&a[1];
725217680Spst		printf("%d\n", i);
725317680Spst		exit(0);
725417680Spst		}
725517680SpstEOF
725617680Spst		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
725717680Spst		    conftest.c $LIBS >/dev/null 2>&1
725817680Spst		if test ! -x conftest ; then
725939297Sfenner						ac_cv_lbl_unaligned_fail=yes
726017680Spst		else
726117680Spst			./conftest >conftest.out
726217680Spst			if test ! -s conftest.out ; then
726339297Sfenner				ac_cv_lbl_unaligned_fail=yes
726417680Spst			else
726539297Sfenner				ac_cv_lbl_unaligned_fail=no
726617680Spst			fi
726717680Spst		fi
7268214478Srpaulo		rm -f -r conftest* core core.conftest
726917680Spst		;;
727017680Spst	esac
727117680Spstfi
727217680Spst
7273251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
7274251158Sdelphij$as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
727539297Sfenner    if test $ac_cv_lbl_unaligned_fail = yes ; then
7276214478Srpaulo
7277251158Sdelphij$as_echo "#define LBL_ALIGN 1" >>confdefs.h
727817680Spst
727917680Spst    fi
728017680Spst
728156893Sfenner
7282251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5
7283251158Sdelphij$as_echo_n "checking for h_errno... " >&6; }
7284251158Sdelphij	if ${ac_cv_var_h_errno+:} false; then :
7285251158Sdelphij  $as_echo_n "(cached) " >&6
728639297Sfennerelse
7287251158Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288127668Sbms/* end confdefs.h.  */
728956893Sfenner
729056893Sfenner#		include <sys/types.h>
729156893Sfenner#		include <netdb.h>
7292127668Sbmsint
7293127668Sbmsmain ()
7294127668Sbms{
729556893Sfennerint foo = h_errno;
7296127668Sbms  ;
7297127668Sbms  return 0;
7298127668Sbms}
7299127668Sbms_ACEOF
7300251158Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
730156893Sfenner  ac_cv_var_h_errno=yes
730256893Sfennerelse
7303251158Sdelphij  ac_cv_var_h_errno=no
730439297Sfennerfi
7305172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
730656893Sfennerfi
730739297Sfenner
7308251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_h_errno" >&5
7309251158Sdelphij$as_echo "$ac_cv_var_h_errno" >&6; }
731056893Sfenner	if test "$ac_cv_var_h_errno" = "yes"; then
7311251158Sdelphij		$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
731256893Sfenner
731356893Sfenner	fi
731456893Sfenner
731556893Sfenner
7316251158Sdelphij# Check for OpenSSL libcrypto
7317251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL libcrypto" >&5
7318251158Sdelphij$as_echo_n "checking whether to use OpenSSL libcrypto... " >&6; }
7319190207Srpaulo# Specify location for both includes and libraries.
7320251158Sdelphijwant_libcrypto=ifavailable
7321127668Sbms
7322172683Smlaier# Check whether --with-crypto was given.
7323251158Sdelphijif test "${with_crypto+set}" = set; then :
7324172683Smlaier  withval=$with_crypto;
7325190207Srpaulo	if test $withval = no
7326190207Srpaulo	then
7327190207Srpaulo		want_libcrypto=no
7328251158Sdelphij		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329251158Sdelphij$as_echo "no" >&6; }
7330190207Srpaulo	elif test $withval = yes
7331190207Srpaulo	then
7332190207Srpaulo		want_libcrypto=yes
7333251158Sdelphij		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7334251158Sdelphij$as_echo "yes" >&6; }
7335190207Srpaulo	fi
7336190207Srpaulo
733775115Sfennerelse
7338127668Sbms
7339190207Srpaulo	#
7340190207Srpaulo	# Use libcrypto if it's present, otherwise don't.
7341190207Srpaulo	#
7342190207Srpaulo	want_libcrypto=ifavailable
7343251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5
7344251158Sdelphij$as_echo "yes, if available" >&6; }
7345146773Ssam
7346162017Ssamfi
7347146773Ssam
7348190207Srpauloif test "$want_libcrypto" != "no"; then
7349251158Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5
7350251158Sdelphij$as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
7351251158Sdelphijif ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then :
7352251158Sdelphij  $as_echo_n "(cached) " >&6
735356893Sfennerelse
7354127668Sbms  ac_check_lib_save_LIBS=$LIBS
735556893SfennerLIBS="-lcrypto  $LIBS"
7356251158Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357127668Sbms/* end confdefs.h.  */
7358127668Sbms
7359172683Smlaier/* Override any GCC internal prototype to avoid an error.
7360172683Smlaier   Use char because int might match the return type of a GCC
7361172683Smlaier   builtin and then its argument prototype would still apply.  */
7362127668Sbms#ifdef __cplusplus
7363127668Sbmsextern "C"
7364127668Sbms#endif
7365146773Ssamchar DES_cbc_encrypt ();
7366127668Sbmsint
7367127668Sbmsmain ()
7368127668Sbms{
7369172683Smlaierreturn DES_cbc_encrypt ();
7370127668Sbms  ;
7371127668Sbms  return 0;
7372127668Sbms}
7373127668Sbms_ACEOF
7374251158Sdelphijif ac_fn_c_try_link "$LINENO"; then :
7375146773Ssam  ac_cv_lib_crypto_DES_cbc_encrypt=yes
737656893Sfennerelse
7377251158Sdelphij  ac_cv_lib_crypto_DES_cbc_encrypt=no
737856893Sfennerfi
7379251158Sdelphijrm -f core conftest.err conftest.$ac_objext \
7380251158Sdelphij    conftest$ac_exeext conftest.$ac_ext
7381127668SbmsLIBS=$ac_check_lib_save_LIBS
7382127668Sbmsfi
7383251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
7384251158Sdelphij$as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
7385251158Sdelphijif test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then :
7386127668Sbms  cat >>confdefs.h <<_ACEOF
7387127668Sbms#define HAVE_LIBCRYPTO 1
7388127668Sbms_ACEOF
738956893Sfenner
739056893Sfenner  LIBS="-lcrypto $LIBS"
739156893Sfenner
739256893Sfennerfi
739356893Sfenner
7394251158Sdelphij	for ac_header in openssl/evp.h
7395251158Sdelphijdo :
7396251158Sdelphij  ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
7397251158Sdelphijif test "x$ac_cv_header_openssl_evp_h" = xyes; then :
7398127668Sbms  cat >>confdefs.h <<_ACEOF
7399251158Sdelphij#define HAVE_OPENSSL_EVP_H 1
7400127668Sbms_ACEOF
7401127668Sbms
740256893Sfennerfi
740356893Sfenner
7404127668Sbmsdone
740556893Sfenner
740656893Sfennerfi
740756893Sfenner
7408146773Ssamif test "$missing_includes" = "yes"; then
7409235530Sdelphij	CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
7410235530Sdelphij	V_INCLS="$V_INCLS -I$srcdir/missing"
7411146773Ssamfi
741217680Spst
741317680Spst
741417680Spst
741517680Spst
741617680Spst
741756893Sfenner
741875115Sfenner
7419146773Ssam
7420214478Srpaulo
7421214478Srpaulo
742217680Spst# Find a good install program.  We prefer a C program (faster),
742317680Spst# so one script is as good as another.  But avoid the broken or
742417680Spst# incompatible versions:
742517680Spst# SysV /etc/install, /usr/sbin/install
742617680Spst# SunOS /usr/etc/install
742717680Spst# IRIX /sbin/install
742817680Spst# AIX /bin/install
7429127668Sbms# AmigaOS /C/install, which installs bootblocks on floppy discs
743056893Sfenner# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
743117680Spst# AFS /usr/afsws/bin/install, which mishandles nonexistent args
743217680Spst# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7433172683Smlaier# OS/2's system install, which has a completely different semantic
743417680Spst# ./install, which can be erroneously created by make from ./install.sh.
7435251158Sdelphij# Reject install programs that cannot install multiple files.
7436251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7437251158Sdelphij$as_echo_n "checking for a BSD-compatible install... " >&6; }
743817680Spstif test -z "$INSTALL"; then
7439251158Sdelphijif ${ac_cv_path_install+:} false; then :
7440251158Sdelphij  $as_echo_n "(cached) " >&6
744117680Spstelse
7442127668Sbms  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443127668Sbmsfor as_dir in $PATH
7444127668Sbmsdo
7445127668Sbms  IFS=$as_save_IFS
7446127668Sbms  test -z "$as_dir" && as_dir=.
7447251158Sdelphij    # Account for people who put trailing slashes in PATH elements.
7448251158Sdelphijcase $as_dir/ in #((
7449251158Sdelphij  ./ | .// | /[cC]/* | \
7450127668Sbms  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7451251158Sdelphij  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7452127668Sbms  /usr/ucb/* ) ;;
7453127668Sbms  *)
7454127668Sbms    # OSF1 and SCO ODT 3.0 have their own names for install.
7455127668Sbms    # Don't use installbsd from OSF since it installs stuff as root
7456127668Sbms    # by default.
7457127668Sbms    for ac_prog in ginstall scoinst install; do
7458127668Sbms      for ac_exec_ext in '' $ac_executable_extensions; do
7459172683Smlaier	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7460172683Smlaier	  if test $ac_prog = install &&
7461172683Smlaier	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7462172683Smlaier	    # AIX install.  It has an incompatible calling convention.
7463172683Smlaier	    :
7464172683Smlaier	  elif test $ac_prog = install &&
7465172683Smlaier	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7466172683Smlaier	    # program-specific install script used by HP pwplus--don't use.
7467172683Smlaier	    :
7468172683Smlaier	  else
7469251158Sdelphij	    rm -rf conftest.one conftest.two conftest.dir
7470251158Sdelphij	    echo one > conftest.one
7471251158Sdelphij	    echo two > conftest.two
7472251158Sdelphij	    mkdir conftest.dir
7473251158Sdelphij	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7474251158Sdelphij	      test -s conftest.one && test -s conftest.two &&
7475251158Sdelphij	      test -s conftest.dir/conftest.one &&
7476251158Sdelphij	      test -s conftest.dir/conftest.two
7477251158Sdelphij	    then
7478251158Sdelphij	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7479251158Sdelphij	      break 3
7480251158Sdelphij	    fi
7481172683Smlaier	  fi
7482172683Smlaier	fi
748317680Spst      done
7484127668Sbms    done
7485127668Sbms    ;;
7486127668Sbmsesac
7487251158Sdelphij
7488251158Sdelphij  done
7489172683SmlaierIFS=$as_save_IFS
749017680Spst
7491251158Sdelphijrm -rf conftest.one conftest.two conftest.dir
7492127668Sbms
749317680Spstfi
749417680Spst  if test "${ac_cv_path_install+set}" = set; then
7495127668Sbms    INSTALL=$ac_cv_path_install
749617680Spst  else
7497172683Smlaier    # As a last resort, use the slow shell script.  Don't cache a
7498172683Smlaier    # value for INSTALL within a source directory, because that will
749917680Spst    # break other packages using the cache if that directory is
7500172683Smlaier    # removed, or if the value is a relative name.
7501127668Sbms    INSTALL=$ac_install_sh
750217680Spst  fi
750317680Spstfi
7504251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7505251158Sdelphij$as_echo "$INSTALL" >&6; }
750617680Spst
750717680Spst# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
750817680Spst# It thinks the first close brace ends the variable substitution.
750917680Spsttest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
751017680Spst
7511127668Sbmstest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
751256893Sfenner
751317680Spsttest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
751417680Spst
751517680Spst
7516172683Smlaierac_config_headers="$ac_config_headers config.h"
751756893Sfenner
751856893Sfenner
7519172683Smlaierac_config_commands="$ac_config_commands default-1"
752075115Sfenner
7521214478Srpauloac_config_files="$ac_config_files Makefile tcpdump.1"
7522172683Smlaier
7523127668Sbmscat >confcache <<\_ACEOF
752417680Spst# This file is a shell script that caches the results of configure
752517680Spst# tests run on this system so they can be shared between configure
7526127668Sbms# scripts and configure runs, see configure's option --config-cache.
7527127668Sbms# It is not useful on other systems.  If it contains results you don't
7528127668Sbms# want to keep, you may remove or edit it.
752917680Spst#
7530127668Sbms# config.status only pays attention to the cache file if you give it
7531127668Sbms# the --recheck option to rerun configure.
753217680Spst#
7533127668Sbms# `ac_cv_env_foo' variables (set or unset) will be overridden when
7534127668Sbms# loading this file, other *unset* `ac_cv_foo' will be assigned the
7535127668Sbms# following values.
7536127668Sbms
7537127668Sbms_ACEOF
7538127668Sbms
753926180Sfenner# The following way of writing the cache mishandles newlines in values,
754026180Sfenner# but we know of no workaround that is simple, portable, and efficient.
7541172683Smlaier# So, we kill variables containing newlines.
754217680Spst# Ultrix sh set writes to stderr and can't be redirected directly,
754317680Spst# and sets the high bit in the cache file unless we assign to the vars.
7544172683Smlaier(
7545172683Smlaier  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7546172683Smlaier    eval ac_val=\$$ac_var
7547172683Smlaier    case $ac_val in #(
7548172683Smlaier    *${as_nl}*)
7549172683Smlaier      case $ac_var in #(
7550251158Sdelphij      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7551251158Sdelphij$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7552172683Smlaier      esac
7553172683Smlaier      case $ac_var in #(
7554172683Smlaier      _ | IFS | as_nl) ;; #(
7555251158Sdelphij      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7556251158Sdelphij      *) { eval $ac_var=; unset $ac_var;} ;;
7557172683Smlaier      esac ;;
7558172683Smlaier    esac
7559172683Smlaier  done
7560172683Smlaier
7561127668Sbms  (set) 2>&1 |
7562172683Smlaier    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7563172683Smlaier    *${as_nl}ac_space=\ *)
7564251158Sdelphij      # `set' does not quote correctly, so add quotes: double-quote
7565251158Sdelphij      # substitution turns \\\\ into \\, and sed turns \\ into \.
7566127668Sbms      sed -n \
7567172683Smlaier	"s/'/'\\\\''/g;
7568172683Smlaier	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7569172683Smlaier      ;; #(
7570127668Sbms    *)
7571127668Sbms      # `set' quotes correctly as required by POSIX, so do not add quotes.
7572172683Smlaier      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7573127668Sbms      ;;
7574172683Smlaier    esac |
7575172683Smlaier    sort
7576172683Smlaier) |
7577127668Sbms  sed '
7578172683Smlaier     /^ac_cv_env_/b end
7579127668Sbms     t clear
7580172683Smlaier     :clear
7581127668Sbms     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7582127668Sbms     t end
7583172683Smlaier     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7584172683Smlaier     :end' >>confcache
7585172683Smlaierif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7586172683Smlaier  if test -w "$cache_file"; then
7587251158Sdelphij    if test "x$cache_file" != "x/dev/null"; then
7588251158Sdelphij      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7589251158Sdelphij$as_echo "$as_me: updating cache $cache_file" >&6;}
7590251158Sdelphij      if test ! -f "$cache_file" || test -h "$cache_file"; then
7591251158Sdelphij	cat confcache >"$cache_file"
7592251158Sdelphij      else
7593251158Sdelphij        case $cache_file in #(
7594251158Sdelphij        */* | ?:*)
7595251158Sdelphij	  mv -f confcache "$cache_file"$$ &&
7596251158Sdelphij	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7597251158Sdelphij        *)
7598251158Sdelphij	  mv -f confcache "$cache_file" ;;
7599251158Sdelphij	esac
7600251158Sdelphij      fi
7601251158Sdelphij    fi
760217680Spst  else
7603251158Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7604251158Sdelphij$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
760517680Spst  fi
760617680Spstfi
760717680Spstrm -f confcache
760817680Spst
760917680Spsttest "x$prefix" = xNONE && prefix=$ac_default_prefix
761017680Spst# Let make expand exec_prefix.
761117680Spsttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
761217680Spst
761356893SfennerDEFS=-DHAVE_CONFIG_H
761417680Spst
7615127668Sbmsac_libobjs=
7616127668Sbmsac_ltlibobjs=
7617251158SdelphijU=
7618127668Sbmsfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7619127668Sbms  # 1. Remove the extension, and $U if already installed.
7620172683Smlaier  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7621251158Sdelphij  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7622172683Smlaier  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7623172683Smlaier  #    will be set to the directory where LIBOBJS objects are built.
7624251158Sdelphij  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7625251158Sdelphij  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7626127668Sbmsdone
7627127668SbmsLIBOBJS=$ac_libobjs
7628127668Sbms
7629127668SbmsLTLIBOBJS=$ac_ltlibobjs
7630127668Sbms
7631127668Sbms
7632127668Sbms
7633251158Sdelphij: "${CONFIG_STATUS=./config.status}"
7634251158Sdelphijac_write_fail=0
7635127668Sbmsac_clean_files_save=$ac_clean_files
7636127668Sbmsac_clean_files="$ac_clean_files $CONFIG_STATUS"
7637251158Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7638251158Sdelphij$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7639251158Sdelphijas_write_fail=0
7640251158Sdelphijcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7641127668Sbms#! $SHELL
7642127668Sbms# Generated by $as_me.
764317680Spst# Run this file to recreate the current configuration.
764417680Spst# Compiler output produced by configure, useful for debugging
7645127668Sbms# configure, is in config.log if it exists.
764617680Spst
7647127668Sbmsdebug=false
7648127668Sbmsac_cs_recheck=false
7649127668Sbmsac_cs_silent=false
7650251158Sdelphij
7651127668SbmsSHELL=\${CONFIG_SHELL-$SHELL}
7652251158Sdelphijexport SHELL
7653251158Sdelphij_ASEOF
7654251158Sdelphijcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7655251158Sdelphij## -------------------- ##
7656251158Sdelphij## M4sh Initialization. ##
7657251158Sdelphij## -------------------- ##
7658127668Sbms
7659172683Smlaier# Be more Bourne compatible
7660172683SmlaierDUALCASE=1; export DUALCASE # for MKS sh
7661251158Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7662127668Sbms  emulate sh
7663127668Sbms  NULLCMD=:
7664251158Sdelphij  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7665127668Sbms  # is contrary to our usage.  Disable this feature.
7666127668Sbms  alias -g '${1+"$@"}'='"$@"'
7667172683Smlaier  setopt NO_GLOB_SUBST
7668172683Smlaierelse
7669251158Sdelphij  case `(set -o) 2>/dev/null` in #(
7670251158Sdelphij  *posix*) :
7671251158Sdelphij    set -o posix ;; #(
7672251158Sdelphij  *) :
7673251158Sdelphij     ;;
7674172683Smlaieresac
7675127668Sbmsfi
7676127668Sbms
7677172683Smlaier
7678251158Sdelphijas_nl='
7679251158Sdelphij'
7680251158Sdelphijexport as_nl
7681251158Sdelphij# Printing a long string crashes Solaris 7 /usr/bin/printf.
7682251158Sdelphijas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7683251158Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7684251158Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7685251158Sdelphij# Prefer a ksh shell builtin over an external printf program on Solaris,
7686251158Sdelphij# but without wasting forks for bash or zsh.
7687251158Sdelphijif test -z "$BASH_VERSION$ZSH_VERSION" \
7688251158Sdelphij    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7689251158Sdelphij  as_echo='print -r --'
7690251158Sdelphij  as_echo_n='print -rn --'
7691251158Sdelphijelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7692251158Sdelphij  as_echo='printf %s\n'
7693251158Sdelphij  as_echo_n='printf %s'
7694251158Sdelphijelse
7695251158Sdelphij  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7696251158Sdelphij    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7697251158Sdelphij    as_echo_n='/usr/ucb/echo -n'
7698172683Smlaier  else
7699251158Sdelphij    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7700251158Sdelphij    as_echo_n_body='eval
7701251158Sdelphij      arg=$1;
7702251158Sdelphij      case $arg in #(
7703251158Sdelphij      *"$as_nl"*)
7704251158Sdelphij	expr "X$arg" : "X\\(.*\\)$as_nl";
7705251158Sdelphij	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7706251158Sdelphij      esac;
7707251158Sdelphij      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7708251158Sdelphij    '
7709251158Sdelphij    export as_echo_n_body
7710251158Sdelphij    as_echo_n='sh -c $as_echo_n_body as_echo'
7711172683Smlaier  fi
7712251158Sdelphij  export as_echo_body
7713251158Sdelphij  as_echo='sh -c $as_echo_body as_echo'
7714172683Smlaierfi
7715172683Smlaier
7716251158Sdelphij# The user is always right.
7717251158Sdelphijif test "${PATH_SEPARATOR+set}" != set; then
7718251158Sdelphij  PATH_SEPARATOR=:
7719251158Sdelphij  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7720251158Sdelphij    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7721251158Sdelphij      PATH_SEPARATOR=';'
7722251158Sdelphij  }
7723127668Sbmsfi
7724127668Sbms
7725127668Sbms
7726172683Smlaier# IFS
7727172683Smlaier# We need space, tab and new line, in precisely that order.  Quoting is
7728172683Smlaier# there to prevent editors from complaining about space-tab.
7729172683Smlaier# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7730172683Smlaier# splitting by setting IFS to empty value.)
7731172683SmlaierIFS=" ""	$as_nl"
7732172683Smlaier
7733172683Smlaier# Find who we are.  Look in the path if we contain no directory separator.
7734251158Sdelphijas_myself=
7735251158Sdelphijcase $0 in #((
7736172683Smlaier  *[\\/]* ) as_myself=$0 ;;
7737172683Smlaier  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738172683Smlaierfor as_dir in $PATH
7739172683Smlaierdo
7740172683Smlaier  IFS=$as_save_IFS
7741172683Smlaier  test -z "$as_dir" && as_dir=.
7742251158Sdelphij    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7743251158Sdelphij  done
7744172683SmlaierIFS=$as_save_IFS
7745172683Smlaier
7746172683Smlaier     ;;
7747172683Smlaieresac
7748172683Smlaier# We did not find ourselves, most probably we were run as `sh COMMAND'
7749172683Smlaier# in which case we are not to be found in the path.
7750172683Smlaierif test "x$as_myself" = x; then
7751172683Smlaier  as_myself=$0
7752172683Smlaierfi
7753172683Smlaierif test ! -f "$as_myself"; then
7754251158Sdelphij  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7755251158Sdelphij  exit 1
7756172683Smlaierfi
7757172683Smlaier
7758251158Sdelphij# Unset variables that we do not need and which cause bugs (e.g. in
7759251158Sdelphij# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7760251158Sdelphij# suppresses any "Segmentation fault" message there.  '((' could
7761251158Sdelphij# trigger a bug in pdksh 5.2.14.
7762251158Sdelphijfor as_var in BASH_ENV ENV MAIL MAILPATH
7763251158Sdelphijdo eval test x\${$as_var+set} = xset \
7764251158Sdelphij  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7765172683Smlaierdone
7766127668SbmsPS1='$ '
7767127668SbmsPS2='> '
7768127668SbmsPS4='+ '
7769127668Sbms
7770127668Sbms# NLS nuisances.
7771251158SdelphijLC_ALL=C
7772251158Sdelphijexport LC_ALL
7773251158SdelphijLANGUAGE=C
7774251158Sdelphijexport LANGUAGE
7775251158Sdelphij
7776251158Sdelphij# CDPATH.
7777251158Sdelphij(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7778251158Sdelphij
7779251158Sdelphij
7780251158Sdelphij# as_fn_error STATUS ERROR [LINENO LOG_FD]
7781251158Sdelphij# ----------------------------------------
7782251158Sdelphij# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7783251158Sdelphij# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7784251158Sdelphij# script with STATUS, using 1 if that was 0.
7785251158Sdelphijas_fn_error ()
7786251158Sdelphij{
7787251158Sdelphij  as_status=$1; test $as_status -eq 0 && as_status=1
7788251158Sdelphij  if test "$4"; then
7789251158Sdelphij    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7790251158Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7791127668Sbms  fi
7792251158Sdelphij  $as_echo "$as_me: error: $2" >&2
7793251158Sdelphij  as_fn_exit $as_status
7794251158Sdelphij} # as_fn_error
779517680Spst
7796251158Sdelphij
7797251158Sdelphij# as_fn_set_status STATUS
7798251158Sdelphij# -----------------------
7799251158Sdelphij# Set $? to STATUS, without forking.
7800251158Sdelphijas_fn_set_status ()
7801251158Sdelphij{
7802251158Sdelphij  return $1
7803251158Sdelphij} # as_fn_set_status
7804251158Sdelphij
7805251158Sdelphij# as_fn_exit STATUS
7806251158Sdelphij# -----------------
7807251158Sdelphij# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7808251158Sdelphijas_fn_exit ()
7809251158Sdelphij{
7810251158Sdelphij  set +e
7811251158Sdelphij  as_fn_set_status $1
7812251158Sdelphij  exit $1
7813251158Sdelphij} # as_fn_exit
7814251158Sdelphij
7815251158Sdelphij# as_fn_unset VAR
7816251158Sdelphij# ---------------
7817251158Sdelphij# Portably unset VAR.
7818251158Sdelphijas_fn_unset ()
7819251158Sdelphij{
7820251158Sdelphij  { eval $1=; unset $1;}
7821251158Sdelphij}
7822251158Sdelphijas_unset=as_fn_unset
7823251158Sdelphij# as_fn_append VAR VALUE
7824251158Sdelphij# ----------------------
7825251158Sdelphij# Append the text in VALUE to the end of the definition contained in VAR. Take
7826251158Sdelphij# advantage of any shell optimizations that allow amortized linear growth over
7827251158Sdelphij# repeated appends, instead of the typical quadratic growth present in naive
7828251158Sdelphij# implementations.
7829251158Sdelphijif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7830251158Sdelphij  eval 'as_fn_append ()
7831251158Sdelphij  {
7832251158Sdelphij    eval $1+=\$2
7833251158Sdelphij  }'
7834251158Sdelphijelse
7835251158Sdelphij  as_fn_append ()
7836251158Sdelphij  {
7837251158Sdelphij    eval $1=\$$1\$2
7838251158Sdelphij  }
7839251158Sdelphijfi # as_fn_append
7840251158Sdelphij
7841251158Sdelphij# as_fn_arith ARG...
7842251158Sdelphij# ------------------
7843251158Sdelphij# Perform arithmetic evaluation on the ARGs, and store the result in the
7844251158Sdelphij# global $as_val. Take advantage of shells that can avoid forks. The arguments
7845251158Sdelphij# must be portable across $(()) and expr.
7846251158Sdelphijif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7847251158Sdelphij  eval 'as_fn_arith ()
7848251158Sdelphij  {
7849251158Sdelphij    as_val=$(( $* ))
7850251158Sdelphij  }'
7851251158Sdelphijelse
7852251158Sdelphij  as_fn_arith ()
7853251158Sdelphij  {
7854251158Sdelphij    as_val=`expr "$@" || test $? -eq 1`
7855251158Sdelphij  }
7856251158Sdelphijfi # as_fn_arith
7857251158Sdelphij
7858251158Sdelphij
7859172683Smlaierif expr a : '\(a\)' >/dev/null 2>&1 &&
7860172683Smlaier   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7861127668Sbms  as_expr=expr
7862127668Sbmselse
7863127668Sbms  as_expr=false
7864127668Sbmsfi
786517680Spst
7866172683Smlaierif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7867127668Sbms  as_basename=basename
7868127668Sbmselse
7869127668Sbms  as_basename=false
7870127668Sbmsfi
787117680Spst
7872251158Sdelphijif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7873251158Sdelphij  as_dirname=dirname
7874251158Sdelphijelse
7875251158Sdelphij  as_dirname=false
7876251158Sdelphijfi
787717680Spst
7878172683Smlaieras_me=`$as_basename -- "$0" ||
7879127668Sbms$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7880127668Sbms	 X"$0" : 'X\(//\)$' \| \
7881172683Smlaier	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7882251158Sdelphij$as_echo X/"$0" |
7883172683Smlaier    sed '/^.*\/\([^/][^/]*\)\/*$/{
7884172683Smlaier	    s//\1/
7885172683Smlaier	    q
7886172683Smlaier	  }
7887172683Smlaier	  /^X\/\(\/\/\)$/{
7888172683Smlaier	    s//\1/
7889172683Smlaier	    q
7890172683Smlaier	  }
7891172683Smlaier	  /^X\/\(\/\).*/{
7892172683Smlaier	    s//\1/
7893172683Smlaier	    q
7894172683Smlaier	  }
7895172683Smlaier	  s/.*/./; q'`
789626180Sfenner
7897251158Sdelphij# Avoid depending upon Character Ranges.
7898251158Sdelphijas_cr_letters='abcdefghijklmnopqrstuvwxyz'
7899251158Sdelphijas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7900251158Sdelphijas_cr_Letters=$as_cr_letters$as_cr_LETTERS
7901251158Sdelphijas_cr_digits='0123456789'
7902251158Sdelphijas_cr_alnum=$as_cr_Letters$as_cr_digits
790326180Sfenner
7904172683SmlaierECHO_C= ECHO_N= ECHO_T=
7905251158Sdelphijcase `echo -n x` in #(((((
7906172683Smlaier-n*)
7907251158Sdelphij  case `echo 'xy\c'` in
7908172683Smlaier  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7909251158Sdelphij  xy)  ECHO_C='\c';;
7910251158Sdelphij  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7911251158Sdelphij       ECHO_T='	';;
7912172683Smlaier  esac;;
7913172683Smlaier*)
7914172683Smlaier  ECHO_N='-n';;
7915127668Sbmsesac
7916127668Sbms
7917127668Sbmsrm -f conf$$ conf$$.exe conf$$.file
7918172683Smlaierif test -d conf$$.dir; then
7919172683Smlaier  rm -f conf$$.dir/conf$$.file
7920172683Smlaierelse
7921172683Smlaier  rm -f conf$$.dir
7922251158Sdelphij  mkdir conf$$.dir 2>/dev/null
7923172683Smlaierfi
7924251158Sdelphijif (echo >conf$$.file) 2>/dev/null; then
7925251158Sdelphij  if ln -s conf$$.file conf$$ 2>/dev/null; then
7926251158Sdelphij    as_ln_s='ln -s'
7927251158Sdelphij    # ... but there are two gotchas:
7928251158Sdelphij    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7929251158Sdelphij    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7930251158Sdelphij    # In both cases, we have to default to `cp -p'.
7931251158Sdelphij    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7932251158Sdelphij      as_ln_s='cp -p'
7933251158Sdelphij  elif ln conf$$.file conf$$ 2>/dev/null; then
7934251158Sdelphij    as_ln_s=ln
7935251158Sdelphij  else
7936127668Sbms    as_ln_s='cp -p'
7937251158Sdelphij  fi
7938127668Sbmselse
7939127668Sbms  as_ln_s='cp -p'
7940127668Sbmsfi
7941172683Smlaierrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7942172683Smlaierrmdir conf$$.dir 2>/dev/null
7943127668Sbms
7944251158Sdelphij
7945251158Sdelphij# as_fn_mkdir_p
7946251158Sdelphij# -------------
7947251158Sdelphij# Create "$as_dir" as a directory, including parents if necessary.
7948251158Sdelphijas_fn_mkdir_p ()
7949251158Sdelphij{
7950251158Sdelphij
7951251158Sdelphij  case $as_dir in #(
7952251158Sdelphij  -*) as_dir=./$as_dir;;
7953251158Sdelphij  esac
7954251158Sdelphij  test -d "$as_dir" || eval $as_mkdir_p || {
7955251158Sdelphij    as_dirs=
7956251158Sdelphij    while :; do
7957251158Sdelphij      case $as_dir in #(
7958251158Sdelphij      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7959251158Sdelphij      *) as_qdir=$as_dir;;
7960251158Sdelphij      esac
7961251158Sdelphij      as_dirs="'$as_qdir' $as_dirs"
7962251158Sdelphij      as_dir=`$as_dirname -- "$as_dir" ||
7963251158Sdelphij$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7964251158Sdelphij	 X"$as_dir" : 'X\(//\)[^/]' \| \
7965251158Sdelphij	 X"$as_dir" : 'X\(//\)$' \| \
7966251158Sdelphij	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7967251158Sdelphij$as_echo X"$as_dir" |
7968251158Sdelphij    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7969251158Sdelphij	    s//\1/
7970251158Sdelphij	    q
7971251158Sdelphij	  }
7972251158Sdelphij	  /^X\(\/\/\)[^/].*/{
7973251158Sdelphij	    s//\1/
7974251158Sdelphij	    q
7975251158Sdelphij	  }
7976251158Sdelphij	  /^X\(\/\/\)$/{
7977251158Sdelphij	    s//\1/
7978251158Sdelphij	    q
7979251158Sdelphij	  }
7980251158Sdelphij	  /^X\(\/\).*/{
7981251158Sdelphij	    s//\1/
7982251158Sdelphij	    q
7983251158Sdelphij	  }
7984251158Sdelphij	  s/.*/./; q'`
7985251158Sdelphij      test -d "$as_dir" && break
7986251158Sdelphij    done
7987251158Sdelphij    test -z "$as_dirs" || eval "mkdir $as_dirs"
7988251158Sdelphij  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7989251158Sdelphij
7990251158Sdelphij
7991251158Sdelphij} # as_fn_mkdir_p
7992127668Sbmsif mkdir -p . 2>/dev/null; then
7993251158Sdelphij  as_mkdir_p='mkdir -p "$as_dir"'
7994127668Sbmselse
7995172683Smlaier  test -d ./-p && rmdir ./-p
7996127668Sbms  as_mkdir_p=false
7997127668Sbmsfi
7998127668Sbms
7999172683Smlaierif test -x / >/dev/null 2>&1; then
8000172683Smlaier  as_test_x='test -x'
8001172683Smlaierelse
8002172683Smlaier  if ls -dL / >/dev/null 2>&1; then
8003172683Smlaier    as_ls_L_option=L
8004172683Smlaier  else
8005172683Smlaier    as_ls_L_option=
8006172683Smlaier  fi
8007172683Smlaier  as_test_x='
8008172683Smlaier    eval sh -c '\''
8009172683Smlaier      if test -d "$1"; then
8010251158Sdelphij	test -d "$1/.";
8011172683Smlaier      else
8012251158Sdelphij	case $1 in #(
8013251158Sdelphij	-*)set "./$1";;
8014172683Smlaier	esac;
8015251158Sdelphij	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8016172683Smlaier	???[sx]*):;;*)false;;esac;fi
8017172683Smlaier    '\'' sh
8018172683Smlaier  '
8019172683Smlaierfi
8020172683Smlaieras_executable_p=$as_test_x
8021127668Sbms
8022127668Sbms# Sed expression to map a string onto a valid CPP name.
8023172683Smlaieras_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8024127668Sbms
8025127668Sbms# Sed expression to map a string onto a valid variable name.
8026172683Smlaieras_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8027127668Sbms
8028127668Sbms
8029127668Sbmsexec 6>&1
8030251158Sdelphij## ----------------------------------- ##
8031251158Sdelphij## Main body of $CONFIG_STATUS script. ##
8032251158Sdelphij## ----------------------------------- ##
8033251158Sdelphij_ASEOF
8034251158Sdelphijtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8035127668Sbms
8036251158Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8037251158Sdelphij# Save the log message, to keep $0 and so on meaningful, and to
8038127668Sbms# report actual input values of CONFIG_FILES etc. instead of their
8039172683Smlaier# values after options handling.
8040172683Smlaierac_log="
8041127668SbmsThis file was extended by $as_me, which was
8042251158Sdelphijgenerated by GNU Autoconf 2.68.  Invocation command line was
8043127668Sbms
8044127668Sbms  CONFIG_FILES    = $CONFIG_FILES
8045127668Sbms  CONFIG_HEADERS  = $CONFIG_HEADERS
8046127668Sbms  CONFIG_LINKS    = $CONFIG_LINKS
8047127668Sbms  CONFIG_COMMANDS = $CONFIG_COMMANDS
8048127668Sbms  $ $0 $@
8049127668Sbms
8050172683Smlaieron `(hostname || uname -n) 2>/dev/null | sed 1q`
8051172683Smlaier"
8052172683Smlaier
8053127668Sbms_ACEOF
8054127668Sbms
8055251158Sdelphijcase $ac_config_files in *"
8056251158Sdelphij"*) set x $ac_config_files; shift; ac_config_files=$*;;
8057251158Sdelphijesac
8058251158Sdelphij
8059251158Sdelphijcase $ac_config_headers in *"
8060251158Sdelphij"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8061251158Sdelphijesac
8062251158Sdelphij
8063251158Sdelphij
8064251158Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8065127668Sbms# Files that config.status was made for.
8066172683Smlaierconfig_files="$ac_config_files"
8067172683Smlaierconfig_headers="$ac_config_headers"
8068172683Smlaierconfig_commands="$ac_config_commands"
8069127668Sbms
8070172683Smlaier_ACEOF
8071127668Sbms
8072251158Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8073127668Sbmsac_cs_usage="\
8074251158Sdelphij\`$as_me' instantiates files and other configuration actions
8075251158Sdelphijfrom templates according to the current configuration.  Unless the files
8076251158Sdelphijand actions are specified as TAGs, all are instantiated by default.
8077127668Sbms
8078251158SdelphijUsage: $0 [OPTION]... [TAG]...
8079127668Sbms
8080127668Sbms  -h, --help       print this help, then exit
8081172683Smlaier  -V, --version    print version number and configuration settings, then exit
8082251158Sdelphij      --config     print configuration, then exit
8083251158Sdelphij  -q, --quiet, --silent
8084251158Sdelphij                   do not print progress messages
8085127668Sbms  -d, --debug      don't remove temporary files
8086127668Sbms      --recheck    update $as_me by reconfiguring in the same conditions
8087251158Sdelphij      --file=FILE[:TEMPLATE]
8088251158Sdelphij                   instantiate the configuration file FILE
8089251158Sdelphij      --header=FILE[:TEMPLATE]
8090251158Sdelphij                   instantiate the configuration header FILE
8091127668Sbms
8092127668SbmsConfiguration files:
8093127668Sbms$config_files
8094127668Sbms
8095127668SbmsConfiguration headers:
8096127668Sbms$config_headers
8097127668Sbms
8098127668SbmsConfiguration commands:
8099127668Sbms$config_commands
8100127668Sbms
8101251158SdelphijReport bugs to the package provider."
8102172683Smlaier
8103127668Sbms_ACEOF
8104251158Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8105251158Sdelphijac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8106127668Sbmsac_cs_version="\\
8107127668Sbmsconfig.status
8108251158Sdelphijconfigured by $0, generated by GNU Autoconf 2.68,
8109251158Sdelphij  with options \\"\$ac_cs_config\\"
8110127668Sbms
8111251158SdelphijCopyright (C) 2010 Free Software Foundation, Inc.
8112127668SbmsThis config.status script is free software; the Free Software Foundation
8113127668Sbmsgives unlimited permission to copy, distribute and modify it."
8114172683Smlaier
8115172683Smlaierac_pwd='$ac_pwd'
8116172683Smlaiersrcdir='$srcdir'
8117172683SmlaierINSTALL='$INSTALL'
8118251158Sdelphijtest -n "\$AWK" || AWK=awk
8119127668Sbms_ACEOF
8120127668Sbms
8121251158Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8122251158Sdelphij# The default lists apply if the user does not specify any file.
8123127668Sbmsac_need_defaults=:
8124127668Sbmswhile test $# != 0
8125127668Sbmsdo
8126127668Sbms  case $1 in
8127251158Sdelphij  --*=?*)
8128172683Smlaier    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8129172683Smlaier    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8130127668Sbms    ac_shift=:
8131127668Sbms    ;;
8132251158Sdelphij  --*=)
8133251158Sdelphij    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8134251158Sdelphij    ac_optarg=
8135251158Sdelphij    ac_shift=:
8136251158Sdelphij    ;;
8137172683Smlaier  *)
8138127668Sbms    ac_option=$1
8139127668Sbms    ac_optarg=$2
8140127668Sbms    ac_shift=shift
8141127668Sbms    ;;
8142127668Sbms  esac
8143127668Sbms
8144127668Sbms  case $ac_option in
8145127668Sbms  # Handling of the options.
8146127668Sbms  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8147127668Sbms    ac_cs_recheck=: ;;
8148172683Smlaier  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8149251158Sdelphij    $as_echo "$ac_cs_version"; exit ;;
8150251158Sdelphij  --config | --confi | --conf | --con | --co | --c )
8151251158Sdelphij    $as_echo "$ac_cs_config"; exit ;;
8152172683Smlaier  --debug | --debu | --deb | --de | --d | -d )
8153127668Sbms    debug=: ;;
8154127668Sbms  --file | --fil | --fi | --f )
8155127668Sbms    $ac_shift
8156251158Sdelphij    case $ac_optarg in
8157251158Sdelphij    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8158251158Sdelphij    '') as_fn_error $? "missing file argument" ;;
8159251158Sdelphij    esac
8160251158Sdelphij    as_fn_append CONFIG_FILES " '$ac_optarg'"
8161127668Sbms    ac_need_defaults=false;;
8162127668Sbms  --header | --heade | --head | --hea )
8163127668Sbms    $ac_shift
8164251158Sdelphij    case $ac_optarg in
8165251158Sdelphij    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8166251158Sdelphij    esac
8167251158Sdelphij    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8168127668Sbms    ac_need_defaults=false;;
8169172683Smlaier  --he | --h)
8170172683Smlaier    # Conflict between --help and --header
8171251158Sdelphij    as_fn_error $? "ambiguous option: \`$1'
8172251158SdelphijTry \`$0 --help' for more information.";;
8173172683Smlaier  --help | --hel | -h )
8174251158Sdelphij    $as_echo "$ac_cs_usage"; exit ;;
8175127668Sbms  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8176127668Sbms  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8177127668Sbms    ac_cs_silent=: ;;
8178127668Sbms
8179127668Sbms  # This is an error.
8180251158Sdelphij  -*) as_fn_error $? "unrecognized option: \`$1'
8181251158SdelphijTry \`$0 --help' for more information." ;;
8182127668Sbms
8183251158Sdelphij  *) as_fn_append ac_config_targets " $1"
8184172683Smlaier     ac_need_defaults=false ;;
8185127668Sbms
8186127668Sbms  esac
8187127668Sbms  shift
818826180Sfennerdone
8189127668Sbms
8190127668Sbmsac_configure_extra_args=
8191127668Sbms
8192127668Sbmsif $ac_cs_silent; then
8193127668Sbms  exec 6>/dev/null
8194127668Sbms  ac_configure_extra_args="$ac_configure_extra_args --silent"
819526180Sfennerfi
819626180Sfenner
8197127668Sbms_ACEOF
8198251158Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8199127668Sbmsif \$ac_cs_recheck; then
8200251158Sdelphij  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8201251158Sdelphij  shift
8202251158Sdelphij  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8203251158Sdelphij  CONFIG_SHELL='$SHELL'
8204172683Smlaier  export CONFIG_SHELL
8205251158Sdelphij  exec "\$@"
8206127668Sbmsfi
820717680Spst
8208127668Sbms_ACEOF
8209251158Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8210172683Smlaierexec 5>>config.log
8211172683Smlaier{
8212172683Smlaier  echo
8213172683Smlaier  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8214172683Smlaier## Running $as_me. ##
8215172683Smlaier_ASBOX
8216251158Sdelphij  $as_echo "$ac_log"
8217172683Smlaier} >&5
8218127668Sbms
8219172683Smlaier_ACEOF
8220251158Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8221127668Sbms#
8222172683Smlaier# INIT-COMMANDS
8223127668Sbms#
8224127668Sbms
8225127668Sbms
8226127668Sbms_ACEOF
8227127668Sbms
8228251158Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8229127668Sbms
8230172683Smlaier# Handling of arguments.
8231127668Sbmsfor ac_config_target in $ac_config_targets
8232127668Sbmsdo
8233172683Smlaier  case $ac_config_target in
8234172683Smlaier    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8235172683Smlaier    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8236172683Smlaier    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8237214478Srpaulo    "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
8238172683Smlaier
8239251158Sdelphij  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
824017680Spst  esac
8241127668Sbmsdone
824217680Spst
8243172683Smlaier
8244127668Sbms# If the user did not use the arguments to specify the items to instantiate,
8245127668Sbms# then the envvar interface is used.  Set only those that are not.
8246127668Sbms# We use the long form for the default assignment because of an extremely
8247127668Sbms# bizarre bug on SunOS 4.1.3.
8248127668Sbmsif $ac_need_defaults; then
8249127668Sbms  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8250127668Sbms  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8251127668Sbms  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8252127668Sbmsfi
825317680Spst
8254127668Sbms# Have a temporary directory for convenience.  Make it in the build tree
8255172683Smlaier# simply because there is no reason against having it here, and in addition,
8256127668Sbms# creating and moving files from /tmp can sometimes cause problems.
8257172683Smlaier# Hook for its removal unless debugging.
8258172683Smlaier# Note that there is a small window in which the directory will not be cleaned:
8259172683Smlaier# after its creation but before its name has been assigned to `$tmp'.
8260127668Sbms$debug ||
8261127668Sbms{
8262251158Sdelphij  tmp= ac_tmp=
8263172683Smlaier  trap 'exit_status=$?
8264251158Sdelphij  : "${ac_tmp:=$tmp}"
8265251158Sdelphij  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8266172683Smlaier' 0
8267251158Sdelphij  trap 'as_fn_exit 1' 1 2 13 15
8268127668Sbms}
8269127668Sbms# Create a (secure) tmp directory for tmp files.
8270127668Sbms
8271127668Sbms{
8272172683Smlaier  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8273251158Sdelphij  test -d "$tmp"
8274127668Sbms}  ||
8275127668Sbms{
8276172683Smlaier  tmp=./conf$$-$RANDOM
8277172683Smlaier  (umask 077 && mkdir "$tmp")
8278251158Sdelphij} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8279251158Sdelphijac_tmp=$tmp
8280127668Sbms
8281251158Sdelphij# Set up the scripts for CONFIG_FILES section.
8282251158Sdelphij# No need to generate them if there are no CONFIG_FILES.
8283251158Sdelphij# This happens for instance with `./config.status config.h'.
8284172683Smlaierif test -n "$CONFIG_FILES"; then
8285127668Sbms
8286251158Sdelphij
8287251158Sdelphijac_cr=`echo X | tr X '\015'`
8288251158Sdelphij# On cygwin, bash can eat \r inside `` if the user requested igncr.
8289251158Sdelphij# But we know of no other shell where ac_cr would be empty at this
8290251158Sdelphij# point, so we can use a bashism as a fallback.
8291251158Sdelphijif test "x$ac_cr" = x; then
8292251158Sdelphij  eval ac_cr=\$\'\\r\'
8293251158Sdelphijfi
8294251158Sdelphijac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8295251158Sdelphijif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8296251158Sdelphij  ac_cs_awk_cr='\\r'
8297251158Sdelphijelse
8298251158Sdelphij  ac_cs_awk_cr=$ac_cr
8299251158Sdelphijfi
8300251158Sdelphij
8301251158Sdelphijecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8302127668Sbms_ACEOF
8303127668Sbms
8304172683Smlaier
8305251158Sdelphij{
8306251158Sdelphij  echo "cat >conf$$subs.awk <<_ACEOF" &&
8307251158Sdelphij  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8308251158Sdelphij  echo "_ACEOF"
8309251158Sdelphij} >conf$$subs.sh ||
8310251158Sdelphij  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8311251158Sdelphijac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8312172683Smlaierac_delim='%!_!# '
8313172683Smlaierfor ac_last_try in false false false false false :; do
8314251158Sdelphij  . ./conf$$subs.sh ||
8315251158Sdelphij    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8316172683Smlaier
8317251158Sdelphij  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8318251158Sdelphij  if test $ac_delim_n = $ac_delim_num; then
8319172683Smlaier    break
8320172683Smlaier  elif $ac_last_try; then
8321251158Sdelphij    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8322172683Smlaier  else
8323172683Smlaier    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
832417680Spst  fi
8325172683Smlaierdone
8326251158Sdelphijrm -f conf$$subs.sh
832717680Spst
8328251158Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8329251158Sdelphijcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8330251158Sdelphij_ACEOF
8331251158Sdelphijsed -n '
8332251158Sdelphijh
8333251158Sdelphijs/^/S["/; s/!.*/"]=/
8334251158Sdelphijp
8335251158Sdelphijg
8336251158Sdelphijs/^[^!]*!//
8337251158Sdelphij:repl
8338251158Sdelphijt repl
8339251158Sdelphijs/'"$ac_delim"'$//
8340251158Sdelphijt delim
8341251158Sdelphij:nl
8342251158Sdelphijh
8343251158Sdelphijs/\(.\{148\}\)..*/\1/
8344251158Sdelphijt more1
8345251158Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8346251158Sdelphijp
8347251158Sdelphijn
8348251158Sdelphijb repl
8349251158Sdelphij:more1
8350251158Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"\\/
8351251158Sdelphijp
8352251158Sdelphijg
8353251158Sdelphijs/.\{148\}//
8354251158Sdelphijt nl
8355251158Sdelphij:delim
8356251158Sdelphijh
8357251158Sdelphijs/\(.\{148\}\)..*/\1/
8358251158Sdelphijt more2
8359251158Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"/
8360251158Sdelphijp
8361251158Sdelphijb
8362251158Sdelphij:more2
8363251158Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"\\/
8364251158Sdelphijp
8365251158Sdelphijg
8366251158Sdelphijs/.\{148\}//
8367251158Sdelphijt delim
8368251158Sdelphij' <conf$$subs.awk | sed '
8369251158Sdelphij/^[^""]/{
8370251158Sdelphij  N
8371251158Sdelphij  s/\n//
8372251158Sdelphij}
8373251158Sdelphij' >>$CONFIG_STATUS || ac_write_fail=1
8374251158Sdelphijrm -f conf$$subs.awk
8375251158Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8376251158Sdelphij_ACAWK
8377251158Sdelphijcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8378251158Sdelphij  for (key in S) S_is_set[key] = 1
8379251158Sdelphij  FS = ""
8380172683Smlaier
8381251158Sdelphij}
8382251158Sdelphij{
8383251158Sdelphij  line = $ 0
8384251158Sdelphij  nfields = split(line, field, "@")
8385251158Sdelphij  substed = 0
8386251158Sdelphij  len = length(field[1])
8387251158Sdelphij  for (i = 2; i < nfields; i++) {
8388251158Sdelphij    key = field[i]
8389251158Sdelphij    keylen = length(key)
8390251158Sdelphij    if (S_is_set[key]) {
8391251158Sdelphij      value = S[key]
8392251158Sdelphij      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8393251158Sdelphij      len += length(value) + length(field[++i])
8394251158Sdelphij      substed = 1
8395251158Sdelphij    } else
8396251158Sdelphij      len += 1 + keylen
8397251158Sdelphij  }
8398251158Sdelphij
8399251158Sdelphij  print line
8400251158Sdelphij}
8401251158Sdelphij
8402251158Sdelphij_ACAWK
8403127668Sbms_ACEOF
8404251158Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8405251158Sdelphijif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8406251158Sdelphij  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8407251158Sdelphijelse
8408251158Sdelphij  cat
8409251158Sdelphijfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8410251158Sdelphij  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8411172683Smlaier_ACEOF
8412172683Smlaier
8413251158Sdelphij# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8414251158Sdelphij# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8415172683Smlaier# trailing colons and then remove the whole line if VPATH becomes empty
8416172683Smlaier# (actually we leave an empty line to preserve line numbers).
8417172683Smlaierif test "x$srcdir" = x.; then
8418251158Sdelphij  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8419251158Sdelphijh
8420251158Sdelphijs///
8421251158Sdelphijs/^/:/
8422251158Sdelphijs/[	 ]*$/:/
8423251158Sdelphijs/:\$(srcdir):/:/g
8424251158Sdelphijs/:\${srcdir}:/:/g
8425251158Sdelphijs/:@srcdir@:/:/g
8426251158Sdelphijs/^:*//
8427172683Smlaiers/:*$//
8428251158Sdelphijx
8429251158Sdelphijs/\(=[	 ]*\).*/\1/
8430251158SdelphijG
8431251158Sdelphijs/\n//
8432172683Smlaiers/^[^=]*=[	 ]*$//
8433172683Smlaier}'
8434172683Smlaierfi
8435172683Smlaier
8436251158Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8437172683Smlaierfi # test -n "$CONFIG_FILES"
8438172683Smlaier
8439251158Sdelphij# Set up the scripts for CONFIG_HEADERS section.
8440251158Sdelphij# No need to generate them if there are no CONFIG_HEADERS.
8441251158Sdelphij# This happens for instance with `./config.status Makefile'.
8442251158Sdelphijif test -n "$CONFIG_HEADERS"; then
8443251158Sdelphijcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8444251158SdelphijBEGIN {
8445251158Sdelphij_ACEOF
8446172683Smlaier
8447251158Sdelphij# Transform confdefs.h into an awk script `defines.awk', embedded as
8448251158Sdelphij# here-document in config.status, that substitutes the proper values into
8449251158Sdelphij# config.h.in to produce config.h.
8450251158Sdelphij
8451251158Sdelphij# Create a delimiter string that does not exist in confdefs.h, to ease
8452251158Sdelphij# handling of long lines.
8453251158Sdelphijac_delim='%!_!# '
8454251158Sdelphijfor ac_last_try in false false :; do
8455251158Sdelphij  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8456251158Sdelphij  if test -z "$ac_tt"; then
8457251158Sdelphij    break
8458251158Sdelphij  elif $ac_last_try; then
8459251158Sdelphij    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8460251158Sdelphij  else
8461251158Sdelphij    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8462251158Sdelphij  fi
8463251158Sdelphijdone
8464251158Sdelphij
8465251158Sdelphij# For the awk script, D is an array of macro values keyed by name,
8466251158Sdelphij# likewise P contains macro parameters if any.  Preserve backslash
8467251158Sdelphij# newline sequences.
8468251158Sdelphij
8469251158Sdelphijac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8470251158Sdelphijsed -n '
8471251158Sdelphijs/.\{148\}/&'"$ac_delim"'/g
8472251158Sdelphijt rset
8473251158Sdelphij:rset
8474251158Sdelphijs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
8475251158Sdelphijt def
8476251158Sdelphijd
8477251158Sdelphij:def
8478251158Sdelphijs/\\$//
8479251158Sdelphijt bsnl
8480251158Sdelphijs/["\\]/\\&/g
8481251158Sdelphijs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8482251158SdelphijD["\1"]=" \3"/p
8483251158Sdelphijs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
8484251158Sdelphijd
8485251158Sdelphij:bsnl
8486251158Sdelphijs/["\\]/\\&/g
8487251158Sdelphijs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8488251158SdelphijD["\1"]=" \3\\\\\\n"\\/p
8489251158Sdelphijt cont
8490251158Sdelphijs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8491251158Sdelphijt cont
8492251158Sdelphijd
8493251158Sdelphij:cont
8494251158Sdelphijn
8495251158Sdelphijs/.\{148\}/&'"$ac_delim"'/g
8496251158Sdelphijt clear
8497251158Sdelphij:clear
8498251158Sdelphijs/\\$//
8499251158Sdelphijt bsnlc
8500251158Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"/p
8501251158Sdelphijd
8502251158Sdelphij:bsnlc
8503251158Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8504251158Sdelphijb cont
8505251158Sdelphij' <confdefs.h | sed '
8506251158Sdelphijs/'"$ac_delim"'/"\\\
8507251158Sdelphij"/g' >>$CONFIG_STATUS || ac_write_fail=1
8508251158Sdelphij
8509251158Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8510251158Sdelphij  for (key in D) D_is_set[key] = 1
8511251158Sdelphij  FS = ""
8512251158Sdelphij}
8513251158Sdelphij/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8514251158Sdelphij  line = \$ 0
8515251158Sdelphij  split(line, arg, " ")
8516251158Sdelphij  if (arg[1] == "#") {
8517251158Sdelphij    defundef = arg[2]
8518251158Sdelphij    mac1 = arg[3]
8519251158Sdelphij  } else {
8520251158Sdelphij    defundef = substr(arg[1], 2)
8521251158Sdelphij    mac1 = arg[2]
8522251158Sdelphij  }
8523251158Sdelphij  split(mac1, mac2, "(") #)
8524251158Sdelphij  macro = mac2[1]
8525251158Sdelphij  prefix = substr(line, 1, index(line, defundef) - 1)
8526251158Sdelphij  if (D_is_set[macro]) {
8527251158Sdelphij    # Preserve the white space surrounding the "#".
8528251158Sdelphij    print prefix "define", macro P[macro] D[macro]
8529251158Sdelphij    next
8530251158Sdelphij  } else {
8531251158Sdelphij    # Replace #undef with comments.  This is necessary, for example,
8532251158Sdelphij    # in the case of _POSIX_SOURCE, which is predefined and required
8533251158Sdelphij    # on some systems where configure will not decide to define it.
8534251158Sdelphij    if (defundef == "undef") {
8535251158Sdelphij      print "/*", prefix defundef, macro, "*/"
8536251158Sdelphij      next
8537251158Sdelphij    }
8538251158Sdelphij  }
8539251158Sdelphij}
8540251158Sdelphij{ print }
8541251158Sdelphij_ACAWK
8542251158Sdelphij_ACEOF
8543251158Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8544251158Sdelphij  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8545251158Sdelphijfi # test -n "$CONFIG_HEADERS"
8546251158Sdelphij
8547251158Sdelphij
8548251158Sdelphijeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8549251158Sdelphijshift
8550251158Sdelphijfor ac_tag
8551172683Smlaierdo
8552172683Smlaier  case $ac_tag in
8553172683Smlaier  :[FHLC]) ac_mode=$ac_tag; continue;;
855417680Spst  esac
8555172683Smlaier  case $ac_mode$ac_tag in
8556172683Smlaier  :[FHL]*:*);;
8557251158Sdelphij  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8558172683Smlaier  :[FH]-) ac_tag=-:-;;
8559172683Smlaier  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8560172683Smlaier  esac
8561172683Smlaier  ac_save_IFS=$IFS
8562172683Smlaier  IFS=:
8563172683Smlaier  set x $ac_tag
8564172683Smlaier  IFS=$ac_save_IFS
8565172683Smlaier  shift
8566172683Smlaier  ac_file=$1
8567172683Smlaier  shift
856817680Spst
8569172683Smlaier  case $ac_mode in
8570172683Smlaier  :L) ac_source=$1;;
8571172683Smlaier  :[FH])
8572172683Smlaier    ac_file_inputs=
8573172683Smlaier    for ac_f
8574172683Smlaier    do
8575172683Smlaier      case $ac_f in
8576251158Sdelphij      -) ac_f="$ac_tmp/stdin";;
8577172683Smlaier      *) # Look for the file first in the build tree, then in the source tree
8578172683Smlaier	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8579172683Smlaier	 # because $ac_f cannot contain `:'.
8580172683Smlaier	 test -f "$ac_f" ||
8581172683Smlaier	   case $ac_f in
8582172683Smlaier	   [\\/$]*) false;;
8583172683Smlaier	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8584172683Smlaier	   esac ||
8585251158Sdelphij	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8586172683Smlaier      esac
8587251158Sdelphij      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8588251158Sdelphij      as_fn_append ac_file_inputs " '$ac_f'"
8589172683Smlaier    done
8590172683Smlaier
8591172683Smlaier    # Let's still pretend it is `configure' which instantiates (i.e., don't
8592172683Smlaier    # use $as_me), people would be surprised to read:
8593172683Smlaier    #    /* config.h.  Generated by config.status.  */
8594251158Sdelphij    configure_input='Generated from '`
8595251158Sdelphij	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8596251158Sdelphij	`' by configure.'
8597172683Smlaier    if test x"$ac_file" != x-; then
8598172683Smlaier      configure_input="$ac_file.  $configure_input"
8599251158Sdelphij      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8600251158Sdelphij$as_echo "$as_me: creating $ac_file" >&6;}
8601172683Smlaier    fi
8602251158Sdelphij    # Neutralize special characters interpreted by sed in replacement strings.
8603251158Sdelphij    case $configure_input in #(
8604251158Sdelphij    *\&* | *\|* | *\\* )
8605251158Sdelphij       ac_sed_conf_input=`$as_echo "$configure_input" |
8606251158Sdelphij       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8607251158Sdelphij    *) ac_sed_conf_input=$configure_input;;
8608251158Sdelphij    esac
8609172683Smlaier
8610172683Smlaier    case $ac_tag in
8611251158Sdelphij    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8612251158Sdelphij      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8613172683Smlaier    esac
8614172683Smlaier    ;;
8615172683Smlaier  esac
8616172683Smlaier
8617172683Smlaier  ac_dir=`$as_dirname -- "$ac_file" ||
8618127668Sbms$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8619172683Smlaier	 X"$ac_file" : 'X\(//\)[^/]' \| \
8620172683Smlaier	 X"$ac_file" : 'X\(//\)$' \| \
8621172683Smlaier	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8622251158Sdelphij$as_echo X"$ac_file" |
8623172683Smlaier    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8624172683Smlaier	    s//\1/
8625172683Smlaier	    q
8626172683Smlaier	  }
8627172683Smlaier	  /^X\(\/\/\)[^/].*/{
8628172683Smlaier	    s//\1/
8629172683Smlaier	    q
8630172683Smlaier	  }
8631172683Smlaier	  /^X\(\/\/\)$/{
8632172683Smlaier	    s//\1/
8633172683Smlaier	    q
8634172683Smlaier	  }
8635172683Smlaier	  /^X\(\/\).*/{
8636172683Smlaier	    s//\1/
8637172683Smlaier	    q
8638172683Smlaier	  }
8639172683Smlaier	  s/.*/./; q'`
8640251158Sdelphij  as_dir="$ac_dir"; as_fn_mkdir_p
8641127668Sbms  ac_builddir=.
8642127668Sbms
8643172683Smlaiercase "$ac_dir" in
8644172683Smlaier.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8645172683Smlaier*)
8646251158Sdelphij  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8647172683Smlaier  # A ".." for each directory in $ac_dir_suffix.
8648251158Sdelphij  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8649172683Smlaier  case $ac_top_builddir_sub in
8650172683Smlaier  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8651172683Smlaier  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8652172683Smlaier  esac ;;
8653172683Smlaieresac
8654172683Smlaierac_abs_top_builddir=$ac_pwd
8655172683Smlaierac_abs_builddir=$ac_pwd$ac_dir_suffix
8656172683Smlaier# for backward compatibility:
8657172683Smlaierac_top_builddir=$ac_top_build_prefix
8658127668Sbms
8659127668Sbmscase $srcdir in
8660172683Smlaier  .)  # We are building in place.
8661127668Sbms    ac_srcdir=.
8662172683Smlaier    ac_top_srcdir=$ac_top_builddir_sub
8663172683Smlaier    ac_abs_top_srcdir=$ac_pwd ;;
8664172683Smlaier  [\\/]* | ?:[\\/]* )  # Absolute name.
8665127668Sbms    ac_srcdir=$srcdir$ac_dir_suffix;
8666172683Smlaier    ac_top_srcdir=$srcdir
8667172683Smlaier    ac_abs_top_srcdir=$srcdir ;;
8668172683Smlaier  *) # Relative name.
8669172683Smlaier    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8670172683Smlaier    ac_top_srcdir=$ac_top_build_prefix$srcdir
8671172683Smlaier    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8672127668Sbmsesac
8673172683Smlaierac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8674127668Sbms
8675127668Sbms
8676172683Smlaier  case $ac_mode in
8677172683Smlaier  :F)
8678172683Smlaier  #
8679172683Smlaier  # CONFIG_FILE
8680172683Smlaier  #
8681172683Smlaier
8682127668Sbms  case $INSTALL in
8683127668Sbms  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8684172683Smlaier  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
868517680Spst  esac
8686172683Smlaier_ACEOF
868726180Sfenner
8688251158Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8689172683Smlaier# If the template does not know about datarootdir, expand it.
8690172683Smlaier# FIXME: This hack should be removed a few years after 2.60.
8691172683Smlaierac_datarootdir_hack=; ac_datarootdir_seen=
8692251158Sdelphijac_sed_dataroot='
8693251158Sdelphij/datarootdir/ {
8694172683Smlaier  p
8695172683Smlaier  q
8696172683Smlaier}
8697172683Smlaier/@datadir@/p
8698172683Smlaier/@docdir@/p
8699172683Smlaier/@infodir@/p
8700172683Smlaier/@localedir@/p
8701251158Sdelphij/@mandir@/p'
8702251158Sdelphijcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8703172683Smlaier*datarootdir*) ac_datarootdir_seen=yes;;
8704172683Smlaier*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8705251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8706251158Sdelphij$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8707127668Sbms_ACEOF
8708251158Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8709172683Smlaier  ac_datarootdir_hack='
8710172683Smlaier  s&@datadir@&$datadir&g
8711172683Smlaier  s&@docdir@&$docdir&g
8712172683Smlaier  s&@infodir@&$infodir&g
8713172683Smlaier  s&@localedir@&$localedir&g
8714172683Smlaier  s&@mandir@&$mandir&g
8715251158Sdelphij  s&\\\${datarootdir}&$datarootdir&g' ;;
8716172683Smlaieresac
8717172683Smlaier_ACEOF
8718172683Smlaier
8719172683Smlaier# Neutralize VPATH when `$srcdir' = `.'.
8720172683Smlaier# Shell code in configure.ac might set extrasub.
8721172683Smlaier# FIXME: do we really want to maintain this feature?
8722251158Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8723251158Sdelphijac_sed_extra="$ac_vpsub
8724127668Sbms$extrasub
8725127668Sbms_ACEOF
8726251158Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8727127668Sbms:t
8728127668Sbms/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8729251158Sdelphijs|@configure_input@|$ac_sed_conf_input|;t t
8730172683Smlaiers&@top_builddir@&$ac_top_builddir_sub&;t t
8731251158Sdelphijs&@top_build_prefix@&$ac_top_build_prefix&;t t
8732172683Smlaiers&@srcdir@&$ac_srcdir&;t t
8733172683Smlaiers&@abs_srcdir@&$ac_abs_srcdir&;t t
8734172683Smlaiers&@top_srcdir@&$ac_top_srcdir&;t t
8735172683Smlaiers&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8736172683Smlaiers&@builddir@&$ac_builddir&;t t
8737172683Smlaiers&@abs_builddir@&$ac_abs_builddir&;t t
8738172683Smlaiers&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8739172683Smlaiers&@INSTALL@&$ac_INSTALL&;t t
8740172683Smlaier$ac_datarootdir_hack
8741251158Sdelphij"
8742251158Sdelphijeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8743251158Sdelphij  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8744127668Sbms
8745172683Smlaiertest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8746251158Sdelphij  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8747251158Sdelphij  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8748251158Sdelphij      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8749251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8750251158Sdelphijwhich seems to be undefined.  Please make sure it is defined" >&5
8751251158Sdelphij$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8752251158Sdelphijwhich seems to be undefined.  Please make sure it is defined" >&2;}
8753127668Sbms
8754251158Sdelphij  rm -f "$ac_tmp/stdin"
8755127668Sbms  case $ac_file in
8756251158Sdelphij  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8757251158Sdelphij  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8758251158Sdelphij  esac \
8759251158Sdelphij  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8760172683Smlaier ;;
8761172683Smlaier  :H)
8762172683Smlaier  #
8763172683Smlaier  # CONFIG_HEADER
8764172683Smlaier  #
8765127668Sbms  if test x"$ac_file" != x-; then
8766251158Sdelphij    {
8767251158Sdelphij      $as_echo "/* $configure_input  */" \
8768251158Sdelphij      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8769251158Sdelphij    } >"$ac_tmp/config.h" \
8770251158Sdelphij      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8771251158Sdelphij    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8772251158Sdelphij      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8773251158Sdelphij$as_echo "$as_me: $ac_file is unchanged" >&6;}
8774127668Sbms    else
8775251158Sdelphij      rm -f "$ac_file"
8776251158Sdelphij      mv "$ac_tmp/config.h" "$ac_file" \
8777251158Sdelphij	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
877856893Sfenner    fi
8779127668Sbms  else
8780251158Sdelphij    $as_echo "/* $configure_input  */" \
8781251158Sdelphij      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8782251158Sdelphij      || as_fn_error $? "could not create -" "$LINENO" 5
878356893Sfenner  fi
8784172683Smlaier ;;
878517680Spst
8786251158Sdelphij  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8787251158Sdelphij$as_echo "$as_me: executing $ac_file commands" >&6;}
8788172683Smlaier ;;
8789172683Smlaier  esac
879056893Sfenner
879175115Sfenner
8792172683Smlaier  case $ac_file$ac_mode in
8793172683Smlaier    "default-1":C) if test -f .devel; then
879475115Sfenner	echo timestamp > stamp-h
879575115Sfenner	cat Makefile-devel-adds >> Makefile
879675115Sfenner	make depend
8797127668Sbmsfi ;;
8798172683Smlaier
8799127668Sbms  esac
8800172683Smlaierdone # for ac_tag
880156893Sfenner
8802127668Sbms
8803251158Sdelphijas_fn_exit 0
8804127668Sbms_ACEOF
8805127668Sbmsac_clean_files=$ac_clean_files_save
880617680Spst
8807251158Sdelphijtest $ac_write_fail = 0 ||
8808251158Sdelphij  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8809127668Sbms
8810251158Sdelphij
8811127668Sbms# configure is writing to config.log, and then calls config.status.
8812127668Sbms# config.status does its own redirection, appending to config.log.
8813127668Sbms# Unfortunately, on DOS this fails, as config.log is still kept open
8814127668Sbms# by configure, so config.status won't be able to write to it; its
8815127668Sbms# output is simply discarded.  So we exec the FD to /dev/null,
8816127668Sbms# effectively closing config.log, so it can be properly (re)opened and
8817127668Sbms# appended to by config.status.  When coming back to configure, we
8818127668Sbms# need to make the FD available again.
8819127668Sbmsif test "$no_create" != yes; then
8820127668Sbms  ac_cs_success=:
8821127668Sbms  ac_config_status_args=
8822127668Sbms  test "$silent" = yes &&
8823127668Sbms    ac_config_status_args="$ac_config_status_args --quiet"
8824127668Sbms  exec 5>/dev/null
8825127668Sbms  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8826127668Sbms  exec 5>>config.log
8827127668Sbms  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8828127668Sbms  # would make configure fail if this is the last instruction.
8829251158Sdelphij  $ac_cs_success || as_fn_exit 1
8830127668Sbmsfi
8831251158Sdelphijif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8832251158Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8833251158Sdelphij$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8834251158Sdelphijfi
8835127668Sbms
883617680Spstexit 0
8837