configure revision 147899
117680Spst#! /bin/sh
2147899Ssam# From configure.in Revision: 1.188.2.6 .
3127668Sbms# Guess values for system-dependent variables and create Makefiles.
4127668Sbms# Generated by GNU Autoconf 2.57.
5111726Sfenner#
6127668Sbms# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7127668Sbms# Free Software Foundation, Inc.
8127668Sbms# This configure script is free software; the Free Software Foundation
9127668Sbms# gives unlimited permission to copy, distribute and modify it.
10127668Sbms## --------------------- ##
11127668Sbms## M4sh Initialization.  ##
12127668Sbms## --------------------- ##
1375115Sfenner
14127668Sbms# Be Bourne compatible
15127668Sbmsif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16127668Sbms  emulate sh
17127668Sbms  NULLCMD=:
18127668Sbms  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19127668Sbms  # is contrary to our usage.  Disable this feature.
20127668Sbms  alias -g '${1+"$@"}'='"$@"'
21127668Sbmselif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22127668Sbms  set -o posix
23127668Sbmsfi
2475115Sfenner
25127668Sbms# Support unset when possible.
26127668Sbmsif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27127668Sbms  as_unset=unset
28127668Sbmselse
29127668Sbms  as_unset=false
30127668Sbmsfi
3175115Sfenner
3275115Sfenner
33127668Sbms# Work around bugs in pre-3.0 UWIN ksh.
34127668Sbms$as_unset ENV MAIL MAILPATH
35127668SbmsPS1='$ '
36127668SbmsPS2='> '
37127668SbmsPS4='+ '
3875115Sfenner
39127668Sbms# NLS nuisances.
40127668Sbmsfor as_var in \
41127668Sbms  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42127668Sbms  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43127668Sbms  LC_TELEPHONE LC_TIME
44127668Sbmsdo
45127668Sbms  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46127668Sbms    eval $as_var=C; export $as_var
47127668Sbms  else
48127668Sbms    $as_unset $as_var
49127668Sbms  fi
50127668Sbmsdone
5175115Sfenner
52127668Sbms# Required to use basename.
53127668Sbmsif expr a : '\(a\)' >/dev/null 2>&1; then
54127668Sbms  as_expr=expr
55127668Sbmselse
56127668Sbms  as_expr=false
57127668Sbmsfi
5875115Sfenner
59127668Sbmsif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60127668Sbms  as_basename=basename
61127668Sbmselse
62127668Sbms  as_basename=false
63127668Sbmsfi
6475115Sfenner
6575115Sfenner
66127668Sbms# Name of the executable.
67127668Sbmsas_me=`$as_basename "$0" ||
68127668Sbms$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69127668Sbms	 X"$0" : 'X\(//\)$' \| \
70127668Sbms	 X"$0" : 'X\(/\)$' \| \
71127668Sbms	 .     : '\(.\)' 2>/dev/null ||
72127668Sbmsecho X/"$0" |
73127668Sbms    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74127668Sbms  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
75127668Sbms  	  /^X\/\(\/\).*/{ s//\1/; q; }
76127668Sbms  	  s/.*/./; q'`
7775115Sfenner
7875115Sfenner
79127668Sbms# PATH needs CR, and LINENO needs CR and PATH.
80127668Sbms# Avoid depending upon Character Ranges.
81127668Sbmsas_cr_letters='abcdefghijklmnopqrstuvwxyz'
82127668Sbmsas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83127668Sbmsas_cr_Letters=$as_cr_letters$as_cr_LETTERS
84127668Sbmsas_cr_digits='0123456789'
85127668Sbmsas_cr_alnum=$as_cr_Letters$as_cr_digits
8675115Sfenner
87127668Sbms# The user is always right.
88127668Sbmsif test "${PATH_SEPARATOR+set}" != set; then
89127668Sbms  echo "#! /bin/sh" >conf$$.sh
90127668Sbms  echo  "exit 0"   >>conf$$.sh
91127668Sbms  chmod +x conf$$.sh
92127668Sbms  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93127668Sbms    PATH_SEPARATOR=';'
94127668Sbms  else
95127668Sbms    PATH_SEPARATOR=:
96127668Sbms  fi
97127668Sbms  rm -f conf$$.sh
98127668Sbmsfi
9975115Sfenner
10075115Sfenner
101127668Sbms  as_lineno_1=$LINENO
102127668Sbms  as_lineno_2=$LINENO
103127668Sbms  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104127668Sbms  test "x$as_lineno_1" != "x$as_lineno_2" &&
105127668Sbms  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106127668Sbms  # Find who we are.  Look in the path if we contain no path at all
107127668Sbms  # relative or not.
108127668Sbms  case $0 in
109127668Sbms    *[\\/]* ) as_myself=$0 ;;
110127668Sbms    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111127668Sbmsfor as_dir in $PATH
112127668Sbmsdo
113127668Sbms  IFS=$as_save_IFS
114127668Sbms  test -z "$as_dir" && as_dir=.
115127668Sbms  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116127668Sbmsdone
11775115Sfenner
118127668Sbms       ;;
119127668Sbms  esac
120127668Sbms  # We did not find ourselves, most probably we were run as `sh COMMAND'
121127668Sbms  # in which case we are not to be found in the path.
122127668Sbms  if test "x$as_myself" = x; then
123127668Sbms    as_myself=$0
124127668Sbms  fi
125127668Sbms  if test ! -f "$as_myself"; then
126127668Sbms    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127127668Sbms   { (exit 1); exit 1; }; }
128127668Sbms  fi
129127668Sbms  case $CONFIG_SHELL in
130127668Sbms  '')
131127668Sbms    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132127668Sbmsfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133127668Sbmsdo
134127668Sbms  IFS=$as_save_IFS
135127668Sbms  test -z "$as_dir" && as_dir=.
136127668Sbms  for as_base in sh bash ksh sh5; do
137127668Sbms	 case $as_dir in
138127668Sbms	 /*)
139127668Sbms	   if ("$as_dir/$as_base" -c '
140127668Sbms  as_lineno_1=$LINENO
141127668Sbms  as_lineno_2=$LINENO
142127668Sbms  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143127668Sbms  test "x$as_lineno_1" != "x$as_lineno_2" &&
144127668Sbms  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145127668Sbms	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146127668Sbms	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147127668Sbms	     CONFIG_SHELL=$as_dir/$as_base
148127668Sbms	     export CONFIG_SHELL
149127668Sbms	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150127668Sbms	   fi;;
151127668Sbms	 esac
152127668Sbms       done
153127668Sbmsdone
154127668Sbms;;
155127668Sbms  esac
15675115Sfenner
157127668Sbms  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158127668Sbms  # uniformly replaced by the line number.  The first 'sed' inserts a
159127668Sbms  # line-number line before each line; the second 'sed' does the real
160127668Sbms  # work.  The second script uses 'N' to pair each line-number line
161127668Sbms  # with the numbered line, and appends trailing '-' during
162127668Sbms  # substitution so that $LINENO is not a special case at line end.
163127668Sbms  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164127668Sbms  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165127668Sbms  sed '=' <$as_myself |
166127668Sbms    sed '
167127668Sbms      N
168127668Sbms      s,$,-,
169127668Sbms      : loop
170127668Sbms      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171127668Sbms      t loop
172127668Sbms      s,-$,,
173127668Sbms      s,^['$as_cr_digits']*\n,,
174127668Sbms    ' >$as_me.lineno &&
175127668Sbms  chmod +x $as_me.lineno ||
176127668Sbms    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177127668Sbms   { (exit 1); exit 1; }; }
17875115Sfenner
179127668Sbms  # Don't try to exec as it changes $[0], causing all sort of problems
180127668Sbms  # (the dirname of $[0] is not the place where we might find the
181127668Sbms  # original and so on.  Autoconf is especially sensible to this).
182127668Sbms  . ./$as_me.lineno
183127668Sbms  # Exit status is that of the last command.
184127668Sbms  exit
185127668Sbms}
18675115Sfenner
18775115Sfenner
188127668Sbmscase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189127668Sbms  *c*,-n*) ECHO_N= ECHO_C='
190127668Sbms' ECHO_T='	' ;;
191127668Sbms  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192127668Sbms  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193127668Sbmsesac
19475115Sfenner
195127668Sbmsif expr a : '\(a\)' >/dev/null 2>&1; then
196127668Sbms  as_expr=expr
197127668Sbmselse
198127668Sbms  as_expr=false
199127668Sbmsfi
20075115Sfenner
201127668Sbmsrm -f conf$$ conf$$.exe conf$$.file
202127668Sbmsecho >conf$$.file
203127668Sbmsif ln -s conf$$.file conf$$ 2>/dev/null; then
204127668Sbms  # We could just check for DJGPP; but this test a) works b) is more generic
205127668Sbms  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206127668Sbms  if test -f conf$$.exe; then
207127668Sbms    # Don't use ln at all; we don't have any links
208127668Sbms    as_ln_s='cp -p'
209127668Sbms  else
210127668Sbms    as_ln_s='ln -s'
211127668Sbms  fi
212127668Sbmselif ln conf$$.file conf$$ 2>/dev/null; then
213127668Sbms  as_ln_s=ln
214127668Sbmselse
215127668Sbms  as_ln_s='cp -p'
216127668Sbmsfi
217127668Sbmsrm -f conf$$ conf$$.exe conf$$.file
21875115Sfenner
219127668Sbmsif mkdir -p . 2>/dev/null; then
220127668Sbms  as_mkdir_p=:
221127668Sbmselse
222127668Sbms  as_mkdir_p=false
223127668Sbmsfi
22475115Sfenner
225127668Sbmsas_executable_p="test -f"
22675115Sfenner
227127668Sbms# Sed expression to map a string onto a valid CPP name.
228127668Sbmsas_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22975115Sfenner
230127668Sbms# Sed expression to map a string onto a valid variable name.
231127668Sbmsas_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23275115Sfenner
23375115Sfenner
234127668Sbms# IFS
235127668Sbms# We need space, tab and new line, in precisely that order.
236127668Sbmsas_nl='
237127668Sbms'
238127668SbmsIFS=" 	$as_nl"
23975115Sfenner
240127668Sbms# CDPATH.
241127668Sbms$as_unset CDPATH
24275115Sfenner
24375115Sfenner
244127668Sbms# Name of the host.
245127668Sbms# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246127668Sbms# so uname gets run too.
247127668Sbmsac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
24875115Sfenner
249127668Sbmsexec 6>&1
25075115Sfenner
251127668Sbms#
252127668Sbms# Initializations.
253127668Sbms#
254127668Sbmsac_default_prefix=/usr/local
255127668Sbmsac_config_libobj_dir=.
256127668Sbmscross_compiling=no
257127668Sbmssubdirs=
258127668SbmsMFLAGS=
259127668SbmsMAKEFLAGS=
260127668SbmsSHELL=${CONFIG_SHELL-/bin/sh}
26175115Sfenner
262127668Sbms# Maximum number of lines to put in a shell here document.
263127668Sbms# This variable seems obsolete.  It should probably be removed, and
264127668Sbms# only ac_max_sed_lines should be used.
265127668Sbms: ${ac_max_here_lines=38}
26675115Sfenner
267127668Sbms# Identity of this package.
268127668SbmsPACKAGE_NAME=
269127668SbmsPACKAGE_TARNAME=
270127668SbmsPACKAGE_VERSION=
271127668SbmsPACKAGE_STRING=
272127668SbmsPACKAGE_BUGREPORT=
27375115Sfenner
274127668Sbmsac_unique_file="tcpdump.c"
275127668Sbms# Factoring default headers for most tests.
276127668Sbmsac_includes_default="\
277127668Sbms#include <stdio.h>
278127668Sbms#if HAVE_SYS_TYPES_H
279127668Sbms# include <sys/types.h>
280127668Sbms#endif
281127668Sbms#if HAVE_SYS_STAT_H
282127668Sbms# include <sys/stat.h>
283127668Sbms#endif
284127668Sbms#if STDC_HEADERS
285127668Sbms# include <stdlib.h>
286127668Sbms# include <stddef.h>
287127668Sbms#else
288127668Sbms# if HAVE_STDLIB_H
289127668Sbms#  include <stdlib.h>
290127668Sbms# endif
291127668Sbms#endif
292127668Sbms#if HAVE_STRING_H
293127668Sbms# if !STDC_HEADERS && HAVE_MEMORY_H
294127668Sbms#  include <memory.h>
295127668Sbms# endif
296127668Sbms# include <string.h>
297127668Sbms#endif
298127668Sbms#if HAVE_STRINGS_H
299127668Sbms# include <strings.h>
300127668Sbms#endif
301127668Sbms#if HAVE_INTTYPES_H
302127668Sbms# include <inttypes.h>
303127668Sbms#else
304127668Sbms# if HAVE_STDINT_H
305127668Sbms#  include <stdint.h>
306127668Sbms# endif
307127668Sbms#endif
308127668Sbms#if HAVE_UNISTD_H
309127668Sbms# include <unistd.h>
310127668Sbms#endif"
31175115Sfenner
312127668Sbmsac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
313127668Sbmsac_subst_files=''
31475115Sfenner
31517680Spst# Initialize some variables set by options.
316127668Sbmsac_init_help=
317127668Sbmsac_init_version=false
31817680Spst# The variables have the same names as the options, with
31917680Spst# dashes changed to underlines.
320127668Sbmscache_file=/dev/null
32117680Spstexec_prefix=NONE
32217680Spstno_create=
32317680Spstno_recursion=
32417680Spstprefix=NONE
32517680Spstprogram_prefix=NONE
32617680Spstprogram_suffix=NONE
32717680Spstprogram_transform_name=s,x,x,
32817680Spstsilent=
32917680Spstsite=
33017680Spstsrcdir=
33117680Spstverbose=
33217680Spstx_includes=NONE
33317680Spstx_libraries=NONE
334127668Sbms
335127668Sbms# Installation directory options.
336127668Sbms# These are left unexpanded so users can "make install exec_prefix=/foo"
337127668Sbms# and all the variables that are supposed to be based on exec_prefix
338127668Sbms# by default will actually change.
339127668Sbms# Use braces instead of parens because sh, perl, etc. also accept them.
34017680Spstbindir='${exec_prefix}/bin'
34117680Spstsbindir='${exec_prefix}/sbin'
34217680Spstlibexecdir='${exec_prefix}/libexec'
34317680Spstdatadir='${prefix}/share'
34417680Spstsysconfdir='${prefix}/etc'
34517680Spstsharedstatedir='${prefix}/com'
34617680Spstlocalstatedir='${prefix}/var'
34717680Spstlibdir='${exec_prefix}/lib'
34817680Spstincludedir='${prefix}/include'
34917680Spstoldincludedir='/usr/include'
35017680Spstinfodir='${prefix}/info'
35117680Spstmandir='${prefix}/man'
35217680Spst
35317680Spstac_prev=
35417680Spstfor ac_option
35517680Spstdo
35617680Spst  # If the previous option needs an argument, assign it.
35717680Spst  if test -n "$ac_prev"; then
35817680Spst    eval "$ac_prev=\$ac_option"
35917680Spst    ac_prev=
36017680Spst    continue
36117680Spst  fi
36217680Spst
363127668Sbms  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
36417680Spst
36517680Spst  # Accept the important Cygnus configure options, so we can diagnose typos.
36617680Spst
367127668Sbms  case $ac_option in
36817680Spst
36917680Spst  -bindir | --bindir | --bindi | --bind | --bin | --bi)
37017680Spst    ac_prev=bindir ;;
37117680Spst  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372127668Sbms    bindir=$ac_optarg ;;
37317680Spst
37417680Spst  -build | --build | --buil | --bui | --bu)
375127668Sbms    ac_prev=build_alias ;;
37617680Spst  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377127668Sbms    build_alias=$ac_optarg ;;
37817680Spst
37917680Spst  -cache-file | --cache-file | --cache-fil | --cache-fi \
38017680Spst  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
38117680Spst    ac_prev=cache_file ;;
38217680Spst  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
38317680Spst  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384127668Sbms    cache_file=$ac_optarg ;;
38517680Spst
386127668Sbms  --config-cache | -C)
387127668Sbms    cache_file=config.cache ;;
388127668Sbms
38917680Spst  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
39017680Spst    ac_prev=datadir ;;
39117680Spst  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
39217680Spst  | --da=*)
393127668Sbms    datadir=$ac_optarg ;;
39417680Spst
39517680Spst  -disable-* | --disable-*)
396127668Sbms    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
39717680Spst    # Reject names that are not valid shell variable names.
398127668Sbms    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399127668Sbms      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400127668Sbms   { (exit 1); exit 1; }; }
401127668Sbms    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402127668Sbms    eval "enable_$ac_feature=no" ;;
40317680Spst
40417680Spst  -enable-* | --enable-*)
405127668Sbms    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
40617680Spst    # Reject names that are not valid shell variable names.
407127668Sbms    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408127668Sbms      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409127668Sbms   { (exit 1); exit 1; }; }
410127668Sbms    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411127668Sbms    case $ac_option in
412127668Sbms      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
41317680Spst      *) ac_optarg=yes ;;
41417680Spst    esac
415127668Sbms    eval "enable_$ac_feature='$ac_optarg'" ;;
41617680Spst
41717680Spst  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
41817680Spst  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
41917680Spst  | --exec | --exe | --ex)
42017680Spst    ac_prev=exec_prefix ;;
42117680Spst  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
42217680Spst  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
42317680Spst  | --exec=* | --exe=* | --ex=*)
424127668Sbms    exec_prefix=$ac_optarg ;;
42517680Spst
42617680Spst  -gas | --gas | --ga | --g)
42717680Spst    # Obsolete; use --with-gas.
42817680Spst    with_gas=yes ;;
42917680Spst
430127668Sbms  -help | --help | --hel | --he | -h)
431127668Sbms    ac_init_help=long ;;
432127668Sbms  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433127668Sbms    ac_init_help=recursive ;;
434127668Sbms  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435127668Sbms    ac_init_help=short ;;
43617680Spst
43717680Spst  -host | --host | --hos | --ho)
438127668Sbms    ac_prev=host_alias ;;
43917680Spst  -host=* | --host=* | --hos=* | --ho=*)
440127668Sbms    host_alias=$ac_optarg ;;
44117680Spst
44217680Spst  -includedir | --includedir | --includedi | --included | --include \
44317680Spst  | --includ | --inclu | --incl | --inc)
44417680Spst    ac_prev=includedir ;;
44517680Spst  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
44617680Spst  | --includ=* | --inclu=* | --incl=* | --inc=*)
447127668Sbms    includedir=$ac_optarg ;;
44817680Spst
44917680Spst  -infodir | --infodir | --infodi | --infod | --info | --inf)
45017680Spst    ac_prev=infodir ;;
45117680Spst  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452127668Sbms    infodir=$ac_optarg ;;
45317680Spst
45417680Spst  -libdir | --libdir | --libdi | --libd)
45517680Spst    ac_prev=libdir ;;
45617680Spst  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457127668Sbms    libdir=$ac_optarg ;;
45817680Spst
45917680Spst  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
46017680Spst  | --libexe | --libex | --libe)
46117680Spst    ac_prev=libexecdir ;;
46217680Spst  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
46317680Spst  | --libexe=* | --libex=* | --libe=*)
464127668Sbms    libexecdir=$ac_optarg ;;
46517680Spst
46617680Spst  -localstatedir | --localstatedir | --localstatedi | --localstated \
46717680Spst  | --localstate | --localstat | --localsta | --localst \
46817680Spst  | --locals | --local | --loca | --loc | --lo)
46917680Spst    ac_prev=localstatedir ;;
47017680Spst  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
47117680Spst  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
47217680Spst  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473127668Sbms    localstatedir=$ac_optarg ;;
47417680Spst
47517680Spst  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
47617680Spst    ac_prev=mandir ;;
47717680Spst  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478127668Sbms    mandir=$ac_optarg ;;
47917680Spst
48017680Spst  -nfp | --nfp | --nf)
48117680Spst    # Obsolete; use --without-fp.
48217680Spst    with_fp=no ;;
48317680Spst
48417680Spst  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485127668Sbms  | --no-cr | --no-c | -n)
48617680Spst    no_create=yes ;;
48717680Spst
48817680Spst  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
48917680Spst  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
49017680Spst    no_recursion=yes ;;
49117680Spst
49217680Spst  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
49317680Spst  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
49417680Spst  | --oldin | --oldi | --old | --ol | --o)
49517680Spst    ac_prev=oldincludedir ;;
49617680Spst  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
49717680Spst  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
49817680Spst  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499127668Sbms    oldincludedir=$ac_optarg ;;
50017680Spst
50117680Spst  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50217680Spst    ac_prev=prefix ;;
50317680Spst  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504127668Sbms    prefix=$ac_optarg ;;
50517680Spst
50617680Spst  -program-prefix | --program-prefix | --program-prefi | --program-pref \
50717680Spst  | --program-pre | --program-pr | --program-p)
50817680Spst    ac_prev=program_prefix ;;
50917680Spst  -program-prefix=* | --program-prefix=* | --program-prefi=* \
51017680Spst  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511127668Sbms    program_prefix=$ac_optarg ;;
51217680Spst
51317680Spst  -program-suffix | --program-suffix | --program-suffi | --program-suff \
51417680Spst  | --program-suf | --program-su | --program-s)
51517680Spst    ac_prev=program_suffix ;;
51617680Spst  -program-suffix=* | --program-suffix=* | --program-suffi=* \
51717680Spst  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518127668Sbms    program_suffix=$ac_optarg ;;
51917680Spst
52017680Spst  -program-transform-name | --program-transform-name \
52117680Spst  | --program-transform-nam | --program-transform-na \
52217680Spst  | --program-transform-n | --program-transform- \
52317680Spst  | --program-transform | --program-transfor \
52417680Spst  | --program-transfo | --program-transf \
52517680Spst  | --program-trans | --program-tran \
52617680Spst  | --progr-tra | --program-tr | --program-t)
52717680Spst    ac_prev=program_transform_name ;;
52817680Spst  -program-transform-name=* | --program-transform-name=* \
52917680Spst  | --program-transform-nam=* | --program-transform-na=* \
53017680Spst  | --program-transform-n=* | --program-transform-=* \
53117680Spst  | --program-transform=* | --program-transfor=* \
53217680Spst  | --program-transfo=* | --program-transf=* \
53317680Spst  | --program-trans=* | --program-tran=* \
53417680Spst  | --progr-tra=* | --program-tr=* | --program-t=*)
535127668Sbms    program_transform_name=$ac_optarg ;;
53617680Spst
53717680Spst  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53817680Spst  | -silent | --silent | --silen | --sile | --sil)
53917680Spst    silent=yes ;;
54017680Spst
54117680Spst  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
54217680Spst    ac_prev=sbindir ;;
54317680Spst  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
54417680Spst  | --sbi=* | --sb=*)
545127668Sbms    sbindir=$ac_optarg ;;
54617680Spst
54717680Spst  -sharedstatedir | --sharedstatedir | --sharedstatedi \
54817680Spst  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
54917680Spst  | --sharedst | --shareds | --shared | --share | --shar \
55017680Spst  | --sha | --sh)
55117680Spst    ac_prev=sharedstatedir ;;
55217680Spst  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
55317680Spst  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
55417680Spst  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
55517680Spst  | --sha=* | --sh=*)
556127668Sbms    sharedstatedir=$ac_optarg ;;
55717680Spst
55817680Spst  -site | --site | --sit)
55917680Spst    ac_prev=site ;;
56017680Spst  -site=* | --site=* | --sit=*)
561127668Sbms    site=$ac_optarg ;;
56217680Spst
56317680Spst  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
56417680Spst    ac_prev=srcdir ;;
56517680Spst  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566127668Sbms    srcdir=$ac_optarg ;;
56717680Spst
56817680Spst  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
56917680Spst  | --syscon | --sysco | --sysc | --sys | --sy)
57017680Spst    ac_prev=sysconfdir ;;
57117680Spst  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
57217680Spst  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573127668Sbms    sysconfdir=$ac_optarg ;;
57417680Spst
57517680Spst  -target | --target | --targe | --targ | --tar | --ta | --t)
576127668Sbms    ac_prev=target_alias ;;
57717680Spst  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578127668Sbms    target_alias=$ac_optarg ;;
57917680Spst
58017680Spst  -v | -verbose | --verbose | --verbos | --verbo | --verb)
58117680Spst    verbose=yes ;;
58217680Spst
583127668Sbms  -version | --version | --versio | --versi | --vers | -V)
584127668Sbms    ac_init_version=: ;;
58517680Spst
58617680Spst  -with-* | --with-*)
587127668Sbms    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
58817680Spst    # Reject names that are not valid shell variable names.
589127668Sbms    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590127668Sbms      { echo "$as_me: error: invalid package name: $ac_package" >&2
591127668Sbms   { (exit 1); exit 1; }; }
59217680Spst    ac_package=`echo $ac_package| sed 's/-/_/g'`
593127668Sbms    case $ac_option in
594127668Sbms      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
59517680Spst      *) ac_optarg=yes ;;
59617680Spst    esac
597127668Sbms    eval "with_$ac_package='$ac_optarg'" ;;
59817680Spst
59917680Spst  -without-* | --without-*)
600127668Sbms    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
60117680Spst    # Reject names that are not valid shell variable names.
602127668Sbms    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603127668Sbms      { echo "$as_me: error: invalid package name: $ac_package" >&2
604127668Sbms   { (exit 1); exit 1; }; }
605127668Sbms    ac_package=`echo $ac_package | sed 's/-/_/g'`
606127668Sbms    eval "with_$ac_package=no" ;;
60717680Spst
60817680Spst  --x)
60917680Spst    # Obsolete; use --with-x.
61017680Spst    with_x=yes ;;
61117680Spst
61217680Spst  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
61317680Spst  | --x-incl | --x-inc | --x-in | --x-i)
61417680Spst    ac_prev=x_includes ;;
61517680Spst  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
61617680Spst  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617127668Sbms    x_includes=$ac_optarg ;;
61817680Spst
61917680Spst  -x-libraries | --x-libraries | --x-librarie | --x-librari \
62017680Spst  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
62117680Spst    ac_prev=x_libraries ;;
62217680Spst  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
62317680Spst  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624127668Sbms    x_libraries=$ac_optarg ;;
62517680Spst
626127668Sbms  -*) { echo "$as_me: error: unrecognized option: $ac_option
627127668SbmsTry \`$0 --help' for more information." >&2
628127668Sbms   { (exit 1); exit 1; }; }
62917680Spst    ;;
63017680Spst
631127668Sbms  *=*)
632127668Sbms    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633127668Sbms    # Reject names that are not valid shell variable names.
634127668Sbms    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635127668Sbms      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636127668Sbms   { (exit 1); exit 1; }; }
637127668Sbms    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638127668Sbms    eval "$ac_envvar='$ac_optarg'"
639127668Sbms    export $ac_envvar ;;
640127668Sbms
64117680Spst  *)
642127668Sbms    # FIXME: should be removed in autoconf 3.0.
643127668Sbms    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644127668Sbms    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645127668Sbms      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646127668Sbms    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
64717680Spst    ;;
64817680Spst
64917680Spst  esac
65017680Spstdone
65117680Spst
65217680Spstif test -n "$ac_prev"; then
653127668Sbms  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654127668Sbms  { echo "$as_me: error: missing argument to $ac_option" >&2
655127668Sbms   { (exit 1); exit 1; }; }
65617680Spstfi
65717680Spst
658127668Sbms# Be sure to have absolute paths.
659127668Sbmsfor ac_var in exec_prefix prefix
660127668Sbmsdo
661127668Sbms  eval ac_val=$`echo $ac_var`
662127668Sbms  case $ac_val in
663127668Sbms    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664127668Sbms    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665127668Sbms   { (exit 1); exit 1; }; };;
666127668Sbms  esac
667127668Sbmsdone
66817680Spst
669127668Sbms# Be sure to have absolute paths.
670127668Sbmsfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671127668Sbms              localstatedir libdir includedir oldincludedir infodir mandir
67217680Spstdo
673127668Sbms  eval ac_val=$`echo $ac_var`
674127668Sbms  case $ac_val in
675127668Sbms    [\\/$]* | ?:[\\/]* ) ;;
676127668Sbms    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677127668Sbms   { (exit 1); exit 1; }; };;
67817680Spst  esac
67917680Spstdone
68017680Spst
681127668Sbms# There might be people who depend on the old broken behavior: `$host'
682127668Sbms# used to hold the argument of --host etc.
683127668Sbms# FIXME: To remove some day.
684127668Sbmsbuild=$build_alias
685127668Sbmshost=$host_alias
686127668Sbmstarget=$target_alias
68717680Spst
688127668Sbms# FIXME: To remove some day.
689127668Sbmsif test "x$host_alias" != x; then
690127668Sbms  if test "x$build_alias" = x; then
691127668Sbms    cross_compiling=maybe
692127668Sbms    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693127668Sbms    If a cross compiler is detected then cross compile mode will be used." >&2
694127668Sbms  elif test "x$build_alias" != "x$host_alias"; then
695127668Sbms    cross_compiling=yes
696127668Sbms  fi
697127668Sbmsfi
69817680Spst
699127668Sbmsac_tool_prefix=
700127668Sbmstest -n "$host_alias" && ac_tool_prefix=$host_alias-
70117680Spst
702127668Sbmstest "$silent" = yes && exec 6>/dev/null
703127668Sbms
704127668Sbms
70517680Spst# Find the source files, if location was not specified.
70617680Spstif test -z "$srcdir"; then
70717680Spst  ac_srcdir_defaulted=yes
70817680Spst  # Try the directory containing this script, then its parent.
709127668Sbms  ac_confdir=`(dirname "$0") 2>/dev/null ||
710127668Sbms$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711127668Sbms         X"$0" : 'X\(//\)[^/]' \| \
712127668Sbms         X"$0" : 'X\(//\)$' \| \
713127668Sbms         X"$0" : 'X\(/\)' \| \
714127668Sbms         .     : '\(.\)' 2>/dev/null ||
715127668Sbmsecho X"$0" |
716127668Sbms    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717127668Sbms  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718127668Sbms  	  /^X\(\/\/\)$/{ s//\1/; q; }
719127668Sbms  	  /^X\(\/\).*/{ s//\1/; q; }
720127668Sbms  	  s/.*/./; q'`
72117680Spst  srcdir=$ac_confdir
72217680Spst  if test ! -r $srcdir/$ac_unique_file; then
72317680Spst    srcdir=..
72417680Spst  fi
72517680Spstelse
72617680Spst  ac_srcdir_defaulted=no
72717680Spstfi
72817680Spstif test ! -r $srcdir/$ac_unique_file; then
72917680Spst  if test "$ac_srcdir_defaulted" = yes; then
730127668Sbms    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731127668Sbms   { (exit 1); exit 1; }; }
73217680Spst  else
733127668Sbms    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734127668Sbms   { (exit 1); exit 1; }; }
73517680Spst  fi
73617680Spstfi
737127668Sbms(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738127668Sbms  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739127668Sbms   { (exit 1); exit 1; }; }
740127668Sbmssrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741127668Sbmsac_env_build_alias_set=${build_alias+set}
742127668Sbmsac_env_build_alias_value=$build_alias
743127668Sbmsac_cv_env_build_alias_set=${build_alias+set}
744127668Sbmsac_cv_env_build_alias_value=$build_alias
745127668Sbmsac_env_host_alias_set=${host_alias+set}
746127668Sbmsac_env_host_alias_value=$host_alias
747127668Sbmsac_cv_env_host_alias_set=${host_alias+set}
748127668Sbmsac_cv_env_host_alias_value=$host_alias
749127668Sbmsac_env_target_alias_set=${target_alias+set}
750127668Sbmsac_env_target_alias_value=$target_alias
751127668Sbmsac_cv_env_target_alias_set=${target_alias+set}
752127668Sbmsac_cv_env_target_alias_value=$target_alias
753127668Sbmsac_env_CC_set=${CC+set}
754127668Sbmsac_env_CC_value=$CC
755127668Sbmsac_cv_env_CC_set=${CC+set}
756127668Sbmsac_cv_env_CC_value=$CC
757127668Sbmsac_env_CFLAGS_set=${CFLAGS+set}
758127668Sbmsac_env_CFLAGS_value=$CFLAGS
759127668Sbmsac_cv_env_CFLAGS_set=${CFLAGS+set}
760127668Sbmsac_cv_env_CFLAGS_value=$CFLAGS
761127668Sbmsac_env_LDFLAGS_set=${LDFLAGS+set}
762127668Sbmsac_env_LDFLAGS_value=$LDFLAGS
763127668Sbmsac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764127668Sbmsac_cv_env_LDFLAGS_value=$LDFLAGS
765127668Sbmsac_env_CPPFLAGS_set=${CPPFLAGS+set}
766127668Sbmsac_env_CPPFLAGS_value=$CPPFLAGS
767127668Sbmsac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768127668Sbmsac_cv_env_CPPFLAGS_value=$CPPFLAGS
769127668Sbmsac_env_CPP_set=${CPP+set}
770127668Sbmsac_env_CPP_value=$CPP
771127668Sbmsac_cv_env_CPP_set=${CPP+set}
772127668Sbmsac_cv_env_CPP_value=$CPP
77317680Spst
774127668Sbms#
775127668Sbms# Report the --help message.
776127668Sbms#
777127668Sbmsif test "$ac_init_help" = "long"; then
778127668Sbms  # Omit some internal or obsolete options to make the list less imposing.
779127668Sbms  # This message is too long to be a string in the A/UX 3.1 sh.
780127668Sbms  cat <<_ACEOF
781127668Sbms\`configure' configures this package to adapt to many kinds of systems.
782127668Sbms
783127668SbmsUsage: $0 [OPTION]... [VAR=VALUE]...
784127668Sbms
785127668SbmsTo assign environment variables (e.g., CC, CFLAGS...), specify them as
786127668SbmsVAR=VALUE.  See below for descriptions of some of the useful variables.
787127668Sbms
788127668SbmsDefaults for the options are specified in brackets.
789127668Sbms
790127668SbmsConfiguration:
791127668Sbms  -h, --help              display this help and exit
792127668Sbms      --help=short        display options specific to this package
793127668Sbms      --help=recursive    display the short help of all the included packages
794127668Sbms  -V, --version           display version information and exit
795127668Sbms  -q, --quiet, --silent   do not print \`checking...' messages
796127668Sbms      --cache-file=FILE   cache test results in FILE [disabled]
797127668Sbms  -C, --config-cache      alias for \`--cache-file=config.cache'
798127668Sbms  -n, --no-create         do not create output files
799127668Sbms      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800127668Sbms
801127668Sbms_ACEOF
802127668Sbms
803127668Sbms  cat <<_ACEOF
804127668SbmsInstallation directories:
805127668Sbms  --prefix=PREFIX         install architecture-independent files in PREFIX
806127668Sbms                          [$ac_default_prefix]
807127668Sbms  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808127668Sbms                          [PREFIX]
809127668Sbms
810127668SbmsBy default, \`make install' will install all the files in
811127668Sbms\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812127668Sbmsan installation prefix other than \`$ac_default_prefix' using \`--prefix',
813127668Sbmsfor instance \`--prefix=\$HOME'.
814127668Sbms
815127668SbmsFor better control, use the options below.
816127668Sbms
817127668SbmsFine tuning of the installation directories:
818127668Sbms  --bindir=DIR           user executables [EPREFIX/bin]
819127668Sbms  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820127668Sbms  --libexecdir=DIR       program executables [EPREFIX/libexec]
821127668Sbms  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822127668Sbms  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823127668Sbms  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824127668Sbms  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825127668Sbms  --libdir=DIR           object code libraries [EPREFIX/lib]
826127668Sbms  --includedir=DIR       C header files [PREFIX/include]
827127668Sbms  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828127668Sbms  --infodir=DIR          info documentation [PREFIX/info]
829127668Sbms  --mandir=DIR           man documentation [PREFIX/man]
830127668Sbms_ACEOF
831127668Sbms
832127668Sbms  cat <<\_ACEOF
833127668Sbms
834127668SbmsSystem types:
835127668Sbms  --build=BUILD     configure for building on BUILD [guessed]
836127668Sbms  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837127668Sbms_ACEOF
838127668Sbmsfi
839127668Sbms
840127668Sbmsif test -n "$ac_init_help"; then
841127668Sbms
842127668Sbms  cat <<\_ACEOF
843127668Sbms
844127668SbmsOptional Features:
845127668Sbms  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846127668Sbms  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847127668Sbms  --enable-smb            enable possibly-buggy SMB printer default=yes
848127668Sbms  --disable-smb           disable possibly-buggy SMB printer
849127668Sbms  --enable-ipv6           enable ipv6 (with ipv4) support
850127668Sbms  --disable-ipv6          disable ipv6 support
851127668Sbms
852127668SbmsOptional Packages:
853127668Sbms  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
854127668Sbms  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
855127668Sbms  --without-gcc           don't use gcc
856146773Ssam  --with-user=USERNAME    drop privileges by default to USERNAME
857146773Ssam  --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
858127668Sbms  --without-crypto        disable crypto support
859127668Sbms
860127668SbmsSome influential environment variables:
861127668Sbms  CC          C compiler command
862127668Sbms  CFLAGS      C compiler flags
863127668Sbms  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
864127668Sbms              nonstandard directory <lib dir>
865127668Sbms  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
866127668Sbms              headers in a nonstandard directory <include dir>
867127668Sbms  CPP         C preprocessor
868127668Sbms
869127668SbmsUse these variables to override the choices made by `configure' or to help
870127668Sbmsit to find libraries and programs with nonstandard names/locations.
871127668Sbms
872127668Sbms_ACEOF
873127668Sbmsfi
874127668Sbms
875127668Sbmsif test "$ac_init_help" = "recursive"; then
876127668Sbms  # If there are subdirs, report their specific --help.
877127668Sbms  ac_popdir=`pwd`
878127668Sbms  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879127668Sbms    test -d $ac_dir || continue
880127668Sbms    ac_builddir=.
881127668Sbms
882127668Sbmsif test "$ac_dir" != .; then
883127668Sbms  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884127668Sbms  # A "../" for each directory in $ac_dir_suffix.
885127668Sbms  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886127668Sbmselse
887127668Sbms  ac_dir_suffix= ac_top_builddir=
888127668Sbmsfi
889127668Sbms
890127668Sbmscase $srcdir in
891127668Sbms  .)  # No --srcdir option.  We are building in place.
892127668Sbms    ac_srcdir=.
893127668Sbms    if test -z "$ac_top_builddir"; then
894127668Sbms       ac_top_srcdir=.
895127668Sbms    else
896127668Sbms       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897127668Sbms    fi ;;
898127668Sbms  [\\/]* | ?:[\\/]* )  # Absolute path.
899127668Sbms    ac_srcdir=$srcdir$ac_dir_suffix;
900127668Sbms    ac_top_srcdir=$srcdir ;;
901127668Sbms  *) # Relative path.
902127668Sbms    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903127668Sbms    ac_top_srcdir=$ac_top_builddir$srcdir ;;
904127668Sbmsesac
905127668Sbms# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906127668Sbms# absolute.
907127668Sbmsac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908127668Sbmsac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909127668Sbmsac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910127668Sbmsac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911127668Sbms
912127668Sbms    cd $ac_dir
913127668Sbms    # Check for guested configure; otherwise get Cygnus style configure.
914127668Sbms    if test -f $ac_srcdir/configure.gnu; then
915127668Sbms      echo
916127668Sbms      $SHELL $ac_srcdir/configure.gnu  --help=recursive
917127668Sbms    elif test -f $ac_srcdir/configure; then
918127668Sbms      echo
919127668Sbms      $SHELL $ac_srcdir/configure  --help=recursive
920127668Sbms    elif test -f $ac_srcdir/configure.ac ||
921127668Sbms           test -f $ac_srcdir/configure.in; then
922127668Sbms      echo
923127668Sbms      $ac_configure --help
924127668Sbms    else
925127668Sbms      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926127668Sbms    fi
927127668Sbms    cd $ac_popdir
928127668Sbms  done
929127668Sbmsfi
930127668Sbms
931127668Sbmstest -n "$ac_init_help" && exit 0
932127668Sbmsif $ac_init_version; then
933127668Sbms  cat <<\_ACEOF
934127668Sbms
935127668SbmsCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936127668SbmsFree Software Foundation, Inc.
937127668SbmsThis configure script is free software; the Free Software Foundation
938127668Sbmsgives unlimited permission to copy, distribute and modify it.
939127668Sbms_ACEOF
940127668Sbms  exit 0
941127668Sbmsfi
942127668Sbmsexec 5>config.log
943127668Sbmscat >&5 <<_ACEOF
944127668SbmsThis file contains any messages produced by compilers while
945127668Sbmsrunning configure, to aid debugging if configure makes a mistake.
946127668Sbms
947127668SbmsIt was created by $as_me, which was
948127668Sbmsgenerated by GNU Autoconf 2.57.  Invocation command line was
949127668Sbms
950127668Sbms  $ $0 $@
951127668Sbms
952127668Sbms_ACEOF
953127668Sbms{
954127668Sbmscat <<_ASUNAME
955127668Sbms## --------- ##
956127668Sbms## Platform. ##
957127668Sbms## --------- ##
958127668Sbms
959127668Sbmshostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960127668Sbmsuname -m = `(uname -m) 2>/dev/null || echo unknown`
961127668Sbmsuname -r = `(uname -r) 2>/dev/null || echo unknown`
962127668Sbmsuname -s = `(uname -s) 2>/dev/null || echo unknown`
963127668Sbmsuname -v = `(uname -v) 2>/dev/null || echo unknown`
964127668Sbms
965127668Sbms/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966127668Sbms/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
967127668Sbms
968127668Sbms/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
969127668Sbms/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
970127668Sbms/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971127668Sbmshostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
972127668Sbms/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
973127668Sbms/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
974127668Sbms/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
975127668Sbms
976127668Sbms_ASUNAME
977127668Sbms
978127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979127668Sbmsfor as_dir in $PATH
980127668Sbmsdo
981127668Sbms  IFS=$as_save_IFS
982127668Sbms  test -z "$as_dir" && as_dir=.
983127668Sbms  echo "PATH: $as_dir"
984127668Sbmsdone
985127668Sbms
986127668Sbms} >&5
987127668Sbms
988127668Sbmscat >&5 <<_ACEOF
989127668Sbms
990127668Sbms
991127668Sbms## ----------- ##
992127668Sbms## Core tests. ##
993127668Sbms## ----------- ##
994127668Sbms
995127668Sbms_ACEOF
996127668Sbms
997127668Sbms
998127668Sbms# Keep a trace of the command line.
999127668Sbms# Strip out --no-create and --no-recursion so they do not pile up.
1000127668Sbms# Strip out --silent because we don't want to record it for future runs.
1001127668Sbms# Also quote any args containing shell meta-characters.
1002127668Sbms# Make two passes to allow for proper duplicate-argument suppression.
1003127668Sbmsac_configure_args=
1004127668Sbmsac_configure_args0=
1005127668Sbmsac_configure_args1=
1006127668Sbmsac_sep=
1007127668Sbmsac_must_keep_next=false
1008127668Sbmsfor ac_pass in 1 2
1009127668Sbmsdo
1010127668Sbms  for ac_arg
1011127668Sbms  do
1012127668Sbms    case $ac_arg in
1013127668Sbms    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1014127668Sbms    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015127668Sbms    | -silent | --silent | --silen | --sile | --sil)
1016127668Sbms      continue ;;
1017127668Sbms    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018127668Sbms      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019127668Sbms    esac
1020127668Sbms    case $ac_pass in
1021127668Sbms    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022127668Sbms    2)
1023127668Sbms      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1024127668Sbms      if test $ac_must_keep_next = true; then
1025127668Sbms        ac_must_keep_next=false # Got value, back to normal.
1026127668Sbms      else
1027127668Sbms        case $ac_arg in
1028127668Sbms          *=* | --config-cache | -C | -disable-* | --disable-* \
1029127668Sbms          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1030127668Sbms          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1031127668Sbms          | -with-* | --with-* | -without-* | --without-* | --x)
1032127668Sbms            case "$ac_configure_args0 " in
1033127668Sbms              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034127668Sbms            esac
1035127668Sbms            ;;
1036127668Sbms          -* ) ac_must_keep_next=true ;;
1037127668Sbms        esac
1038127668Sbms      fi
1039127668Sbms      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040127668Sbms      # Get rid of the leading space.
1041127668Sbms      ac_sep=" "
1042127668Sbms      ;;
1043127668Sbms    esac
1044127668Sbms  done
1045127668Sbmsdone
1046127668Sbms$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1047127668Sbms$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048127668Sbms
1049127668Sbms# When interrupted or exit'd, cleanup temporary files, and complete
1050127668Sbms# config.log.  We remove comments because anyway the quotes in there
1051127668Sbms# would cause problems or look ugly.
1052127668Sbms# WARNING: Be sure not to use single quotes in there, as some shells,
1053127668Sbms# such as our DU 5.0 friend, will then `close' the trap.
1054127668Sbmstrap 'exit_status=$?
1055127668Sbms  # Save into config.log some information that might help in debugging.
1056127668Sbms  {
1057127668Sbms    echo
1058127668Sbms
1059127668Sbms    cat <<\_ASBOX
1060127668Sbms## ---------------- ##
1061127668Sbms## Cache variables. ##
1062127668Sbms## ---------------- ##
1063127668Sbms_ASBOX
1064127668Sbms    echo
1065127668Sbms    # The following way of writing the cache mishandles newlines in values,
1066127668Sbms{
1067127668Sbms  (set) 2>&1 |
1068127668Sbms    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069127668Sbms    *ac_space=\ *)
1070127668Sbms      sed -n \
1071127668Sbms        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072127668Sbms    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073127668Sbms      ;;
1074127668Sbms    *)
1075127668Sbms      sed -n \
1076127668Sbms        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077127668Sbms      ;;
1078127668Sbms    esac;
1079127668Sbms}
1080127668Sbms    echo
1081127668Sbms
1082127668Sbms    cat <<\_ASBOX
1083127668Sbms## ----------------- ##
1084127668Sbms## Output variables. ##
1085127668Sbms## ----------------- ##
1086127668Sbms_ASBOX
1087127668Sbms    echo
1088127668Sbms    for ac_var in $ac_subst_vars
1089127668Sbms    do
1090127668Sbms      eval ac_val=$`echo $ac_var`
1091127668Sbms      echo "$ac_var='"'"'$ac_val'"'"'"
1092127668Sbms    done | sort
1093127668Sbms    echo
1094127668Sbms
1095127668Sbms    if test -n "$ac_subst_files"; then
1096127668Sbms      cat <<\_ASBOX
1097127668Sbms## ------------- ##
1098127668Sbms## Output files. ##
1099127668Sbms## ------------- ##
1100127668Sbms_ASBOX
1101127668Sbms      echo
1102127668Sbms      for ac_var in $ac_subst_files
1103127668Sbms      do
1104127668Sbms	eval ac_val=$`echo $ac_var`
1105127668Sbms        echo "$ac_var='"'"'$ac_val'"'"'"
1106127668Sbms      done | sort
1107127668Sbms      echo
1108127668Sbms    fi
1109127668Sbms
1110127668Sbms    if test -s confdefs.h; then
1111127668Sbms      cat <<\_ASBOX
1112127668Sbms## ----------- ##
1113127668Sbms## confdefs.h. ##
1114127668Sbms## ----------- ##
1115127668Sbms_ASBOX
1116127668Sbms      echo
1117127668Sbms      sed "/^$/d" confdefs.h | sort
1118127668Sbms      echo
1119127668Sbms    fi
1120127668Sbms    test "$ac_signal" != 0 &&
1121127668Sbms      echo "$as_me: caught signal $ac_signal"
1122127668Sbms    echo "$as_me: exit $exit_status"
1123127668Sbms  } >&5
1124127668Sbms  rm -f core core.* *.core &&
1125127668Sbms  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126127668Sbms    exit $exit_status
1127127668Sbms     ' 0
1128127668Sbmsfor ac_signal in 1 2 13 15; do
1129127668Sbms  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130127668Sbmsdone
1131127668Sbmsac_signal=0
1132127668Sbms
1133127668Sbms# confdefs.h avoids OS command line length limits that DEFS can exceed.
1134127668Sbmsrm -rf conftest* confdefs.h
1135127668Sbms# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136127668Sbmsecho >confdefs.h
1137127668Sbms
1138127668Sbms# Predefined preprocessor variables.
1139127668Sbms
1140127668Sbmscat >>confdefs.h <<_ACEOF
1141127668Sbms#define PACKAGE_NAME "$PACKAGE_NAME"
1142127668Sbms_ACEOF
1143127668Sbms
1144127668Sbms
1145127668Sbmscat >>confdefs.h <<_ACEOF
1146127668Sbms#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147127668Sbms_ACEOF
1148127668Sbms
1149127668Sbms
1150127668Sbmscat >>confdefs.h <<_ACEOF
1151127668Sbms#define PACKAGE_VERSION "$PACKAGE_VERSION"
1152127668Sbms_ACEOF
1153127668Sbms
1154127668Sbms
1155127668Sbmscat >>confdefs.h <<_ACEOF
1156127668Sbms#define PACKAGE_STRING "$PACKAGE_STRING"
1157127668Sbms_ACEOF
1158127668Sbms
1159127668Sbms
1160127668Sbmscat >>confdefs.h <<_ACEOF
1161127668Sbms#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162127668Sbms_ACEOF
1163127668Sbms
1164127668Sbms
1165127668Sbms# Let the site file select an alternate cache file if it wants to.
116617680Spst# Prefer explicitly selected file to automatically selected ones.
116717680Spstif test -z "$CONFIG_SITE"; then
116817680Spst  if test "x$prefix" != xNONE; then
116917680Spst    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
117017680Spst  else
117117680Spst    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
117217680Spst  fi
117317680Spstfi
117417680Spstfor ac_site_file in $CONFIG_SITE; do
117517680Spst  if test -r "$ac_site_file"; then
1176127668Sbms    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177127668Sbmsecho "$as_me: loading site script $ac_site_file" >&6;}
1178127668Sbms    sed 's/^/| /' "$ac_site_file" >&5
117917680Spst    . "$ac_site_file"
118017680Spst  fi
118117680Spstdone
118217680Spst
118317680Spstif test -r "$cache_file"; then
1184127668Sbms  # Some versions of bash will fail to source /dev/null (special
1185127668Sbms  # files actually), so we avoid doing that.
1186127668Sbms  if test -f "$cache_file"; then
1187127668Sbms    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188127668Sbmsecho "$as_me: loading cache $cache_file" >&6;}
1189127668Sbms    case $cache_file in
1190127668Sbms      [\\/]* | ?:[\\/]* ) . $cache_file;;
1191127668Sbms      *)                      . ./$cache_file;;
1192127668Sbms    esac
1193127668Sbms  fi
119417680Spstelse
1195127668Sbms  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196127668Sbmsecho "$as_me: creating cache $cache_file" >&6;}
1197127668Sbms  >$cache_file
119817680Spstfi
119917680Spst
1200127668Sbms# Check that the precious variables saved in the cache have kept the same
1201127668Sbms# value.
1202127668Sbmsac_cache_corrupted=false
1203127668Sbmsfor ac_var in `(set) 2>&1 |
1204127668Sbms               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205127668Sbms  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1206127668Sbms  eval ac_new_set=\$ac_env_${ac_var}_set
1207127668Sbms  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1208127668Sbms  eval ac_new_val="\$ac_env_${ac_var}_value"
1209127668Sbms  case $ac_old_set,$ac_new_set in
1210127668Sbms    set,)
1211127668Sbms      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212127668Sbmsecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213127668Sbms      ac_cache_corrupted=: ;;
1214127668Sbms    ,set)
1215127668Sbms      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216127668Sbmsecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217127668Sbms      ac_cache_corrupted=: ;;
1218127668Sbms    ,);;
1219127668Sbms    *)
1220127668Sbms      if test "x$ac_old_val" != "x$ac_new_val"; then
1221127668Sbms        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222127668Sbmsecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223127668Sbms        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1224127668Sbmsecho "$as_me:   former value:  $ac_old_val" >&2;}
1225127668Sbms        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1226127668Sbmsecho "$as_me:   current value: $ac_new_val" >&2;}
1227127668Sbms        ac_cache_corrupted=:
1228127668Sbms      fi;;
1229127668Sbms  esac
1230127668Sbms  # Pass precious variables to config.status.
1231127668Sbms  if test "$ac_new_set" = set; then
1232127668Sbms    case $ac_new_val in
1233127668Sbms    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234127668Sbms      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235127668Sbms    *) ac_arg=$ac_var=$ac_new_val ;;
1236127668Sbms    esac
1237127668Sbms    case " $ac_configure_args " in
1238127668Sbms      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1239127668Sbms      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240127668Sbms    esac
1241127668Sbms  fi
1242127668Sbmsdone
1243127668Sbmsif $ac_cache_corrupted; then
1244127668Sbms  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245127668Sbmsecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1246127668Sbms  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247127668Sbmsecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248127668Sbms   { (exit 1); exit 1; }; }
1249127668Sbmsfi
1250127668Sbms
125117680Spstac_ext=c
125217680Spstac_cpp='$CPP $CPPFLAGS'
1253127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
125617680Spst
125717680Spst
125817680Spst
125917680Spst
1260127668Sbms
1261127668Sbms
1262127668Sbms
1263127668Sbms
1264127668Sbms
1265127668Sbms
1266127668Sbms
1267127668Sbms
1268127668Sbms
1269127668Sbms
1270127668Sbms
1271127668Sbms
1272127668Sbms
1273127668Sbms
1274127668Sbms
1275127668Sbms
127617680Spstac_aux_dir=
127717680Spstfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
127817680Spst  if test -f $ac_dir/install-sh; then
127917680Spst    ac_aux_dir=$ac_dir
128017680Spst    ac_install_sh="$ac_aux_dir/install-sh -c"
128117680Spst    break
128217680Spst  elif test -f $ac_dir/install.sh; then
128317680Spst    ac_aux_dir=$ac_dir
128417680Spst    ac_install_sh="$ac_aux_dir/install.sh -c"
128517680Spst    break
1286127668Sbms  elif test -f $ac_dir/shtool; then
1287127668Sbms    ac_aux_dir=$ac_dir
1288127668Sbms    ac_install_sh="$ac_aux_dir/shtool install -c"
1289127668Sbms    break
129017680Spst  fi
129117680Spstdone
129217680Spstif test -z "$ac_aux_dir"; then
1293127668Sbms  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294127668Sbmsecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295127668Sbms   { (exit 1); exit 1; }; }
129617680Spstfi
1297127668Sbmsac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298127668Sbmsac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299127668Sbmsac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
130017680Spst
1301127668Sbms# Make sure we can run config.sub.
1302127668Sbms$ac_config_sub sun4 >/dev/null 2>&1 ||
1303127668Sbms  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304127668Sbmsecho "$as_me: error: cannot run $ac_config_sub" >&2;}
1305127668Sbms   { (exit 1); exit 1; }; }
130617680Spst
1307127668Sbmsecho "$as_me:$LINENO: checking build system type" >&5
1308127668Sbmsecho $ECHO_N "checking build system type... $ECHO_C" >&6
1309127668Sbmsif test "${ac_cv_build+set}" = set; then
1310127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1311127668Sbmselse
1312127668Sbms  ac_cv_build_alias=$build_alias
1313127668Sbmstest -z "$ac_cv_build_alias" &&
1314127668Sbms  ac_cv_build_alias=`$ac_config_guess`
1315127668Sbmstest -z "$ac_cv_build_alias" &&
1316127668Sbms  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317127668Sbmsecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318127668Sbms   { (exit 1); exit 1; }; }
1319127668Sbmsac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1320127668Sbms  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321127668Sbmsecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322127668Sbms   { (exit 1); exit 1; }; }
1323127668Sbms
132417680Spstfi
1325127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_build" >&5
1326127668Sbmsecho "${ECHO_T}$ac_cv_build" >&6
1327127668Sbmsbuild=$ac_cv_build
1328127668Sbmsbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329127668Sbmsbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330127668Sbmsbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
133117680Spst
133217680Spst
1333127668Sbmsecho "$as_me:$LINENO: checking host system type" >&5
1334127668Sbmsecho $ECHO_N "checking host system type... $ECHO_C" >&6
1335127668Sbmsif test "${ac_cv_host+set}" = set; then
1336127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1337127668Sbmselse
1338127668Sbms  ac_cv_host_alias=$host_alias
1339127668Sbmstest -z "$ac_cv_host_alias" &&
1340127668Sbms  ac_cv_host_alias=$ac_cv_build_alias
1341127668Sbmsac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1342127668Sbms  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343127668Sbmsecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344127668Sbms   { (exit 1); exit 1; }; }
134517680Spst
1346127668Sbmsfi
1347127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_host" >&5
1348127668Sbmsecho "${ECHO_T}$ac_cv_host" >&6
1349127668Sbmshost=$ac_cv_host
1350127668Sbmshost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351127668Sbmshost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352127668Sbmshost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
135317680Spst
135417680Spst
135517680Spst
1356127668Sbms
1357127668Sbms
1358127668Sbms
1359127668Sbms
1360127668Sbms
1361127668Sbms# Check whether --with-gcc or --without-gcc was given.
136239297Sfennerif test "${with_gcc+set}" = set; then
136339297Sfenner  withval="$with_gcc"
136439297Sfenner
1365127668Sbmsfi;
136639297Sfenner    V_CCOPT="-O"
136717680Spst    V_INCLS=""
136839297Sfenner    if test "${srcdir}" != "." ; then
136956893Sfenner	    V_INCLS="-I\$(srcdir)"
137039297Sfenner    fi
137126180Sfenner    if test "${CFLAGS+set}" = set; then
137226180Sfenner	    LBL_CFLAGS="$CFLAGS"
137326180Sfenner    fi
137417680Spst    if test -z "$CC" ; then
137598524Sfenner	    case "$host_os" in
137617680Spst
137717680Spst	    bsdi*)
137817680Spst		    # Extract the first word of "shlicc2", so it can be a program name with args.
137917680Spstset dummy shlicc2; ac_word=$2
1380127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5
1381127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382127668Sbmsif test "${ac_cv_prog_SHLICC2+set}" = set; then
1383127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
138417680Spstelse
138517680Spst  if test -n "$SHLICC2"; then
138617680Spst  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
138717680Spstelse
1388127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389127668Sbmsfor as_dir in $PATH
1390127668Sbmsdo
1391127668Sbms  IFS=$as_save_IFS
1392127668Sbms  test -z "$as_dir" && as_dir=.
1393127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1394127668Sbms  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395127668Sbms    ac_cv_prog_SHLICC2="yes"
1396127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397127668Sbms    break 2
1398127668Sbms  fi
1399127668Sbmsdone
1400127668Sbmsdone
1401127668Sbms
140217680Spst  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
140317680Spstfi
140417680Spstfi
1405127668SbmsSHLICC2=$ac_cv_prog_SHLICC2
140617680Spstif test -n "$SHLICC2"; then
1407127668Sbms  echo "$as_me:$LINENO: result: $SHLICC2" >&5
1408127668Sbmsecho "${ECHO_T}$SHLICC2" >&6
140917680Spstelse
1410127668Sbms  echo "$as_me:$LINENO: result: no" >&5
1411127668Sbmsecho "${ECHO_T}no" >&6
141217680Spstfi
141317680Spst
141417680Spst		    if test $SHLICC2 = yes ; then
141517680Spst			    CC=shlicc2
141617680Spst			    export CC
141717680Spst		    fi
141817680Spst		    ;;
141917680Spst	    esac
142017680Spst    fi
142139297Sfenner    if test -z "$CC" -a "$with_gcc" = no ; then
142239297Sfenner	    CC=cc
142339297Sfenner	    export CC
142439297Sfenner    fi
1425127668Sbms    ac_ext=c
1426127668Sbmsac_cpp='$CPP $CPPFLAGS'
1427127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
1430127668Sbmsif test -n "$ac_tool_prefix"; then
1431127668Sbms  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432127668Sbmsset dummy ${ac_tool_prefix}gcc; ac_word=$2
1433127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5
1434127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then
1436127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1437127668Sbmselse
1438127668Sbms  if test -n "$CC"; then
1439127668Sbms  ac_cv_prog_CC="$CC" # Let the user override the test.
1440127668Sbmselse
1441127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442127668Sbmsfor as_dir in $PATH
1443127668Sbmsdo
1444127668Sbms  IFS=$as_save_IFS
1445127668Sbms  test -z "$as_dir" && as_dir=.
1446127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1447127668Sbms  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448127668Sbms    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1449127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450127668Sbms    break 2
1451127668Sbms  fi
1452127668Sbmsdone
1453127668Sbmsdone
1454127668Sbms
1455127668Sbmsfi
1456127668Sbmsfi
1457127668SbmsCC=$ac_cv_prog_CC
1458127668Sbmsif test -n "$CC"; then
1459127668Sbms  echo "$as_me:$LINENO: result: $CC" >&5
1460127668Sbmsecho "${ECHO_T}$CC" >&6
1461127668Sbmselse
1462127668Sbms  echo "$as_me:$LINENO: result: no" >&5
1463127668Sbmsecho "${ECHO_T}no" >&6
1464127668Sbmsfi
1465127668Sbms
1466127668Sbmsfi
1467127668Sbmsif test -z "$ac_cv_prog_CC"; then
1468127668Sbms  ac_ct_CC=$CC
1469127668Sbms  # Extract the first word of "gcc", so it can be a program name with args.
147017680Spstset dummy gcc; ac_word=$2
1471127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5
1472127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473127668Sbmsif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
147517680Spstelse
1476127668Sbms  if test -n "$ac_ct_CC"; then
1477127668Sbms  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478127668Sbmselse
1479127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480127668Sbmsfor as_dir in $PATH
1481127668Sbmsdo
1482127668Sbms  IFS=$as_save_IFS
1483127668Sbms  test -z "$as_dir" && as_dir=.
1484127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1485127668Sbms  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486127668Sbms    ac_cv_prog_ac_ct_CC="gcc"
1487127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488127668Sbms    break 2
1489127668Sbms  fi
1490127668Sbmsdone
1491127668Sbmsdone
1492127668Sbms
1493127668Sbmsfi
1494127668Sbmsfi
1495127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC
1496127668Sbmsif test -n "$ac_ct_CC"; then
1497127668Sbms  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498127668Sbmsecho "${ECHO_T}$ac_ct_CC" >&6
1499127668Sbmselse
1500127668Sbms  echo "$as_me:$LINENO: result: no" >&5
1501127668Sbmsecho "${ECHO_T}no" >&6
1502127668Sbmsfi
1503127668Sbms
1504127668Sbms  CC=$ac_ct_CC
1505127668Sbmselse
1506127668Sbms  CC="$ac_cv_prog_CC"
1507127668Sbmsfi
1508127668Sbms
1509127668Sbmsif test -z "$CC"; then
1510127668Sbms  if test -n "$ac_tool_prefix"; then
1511127668Sbms  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512127668Sbmsset dummy ${ac_tool_prefix}cc; ac_word=$2
1513127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5
1514127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then
1516127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1517127668Sbmselse
151817680Spst  if test -n "$CC"; then
151917680Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
152017680Spstelse
1521127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522127668Sbmsfor as_dir in $PATH
1523127668Sbmsdo
1524127668Sbms  IFS=$as_save_IFS
1525127668Sbms  test -z "$as_dir" && as_dir=.
1526127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1527127668Sbms  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528127668Sbms    ac_cv_prog_CC="${ac_tool_prefix}cc"
1529127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530127668Sbms    break 2
1531127668Sbms  fi
1532127668Sbmsdone
1533127668Sbmsdone
1534127668Sbms
153517680Spstfi
153617680Spstfi
1537127668SbmsCC=$ac_cv_prog_CC
153817680Spstif test -n "$CC"; then
1539127668Sbms  echo "$as_me:$LINENO: result: $CC" >&5
1540127668Sbmsecho "${ECHO_T}$CC" >&6
154117680Spstelse
1542127668Sbms  echo "$as_me:$LINENO: result: no" >&5
1543127668Sbmsecho "${ECHO_T}no" >&6
154417680Spstfi
154517680Spst
1546127668Sbmsfi
1547127668Sbmsif test -z "$ac_cv_prog_CC"; then
1548127668Sbms  ac_ct_CC=$CC
1549127668Sbms  # Extract the first word of "cc", so it can be a program name with args.
1550127668Sbmsset dummy cc; ac_word=$2
1551127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5
1552127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553127668Sbmsif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1555127668Sbmselse
1556127668Sbms  if test -n "$ac_ct_CC"; then
1557127668Sbms  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558127668Sbmselse
1559127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560127668Sbmsfor as_dir in $PATH
1561127668Sbmsdo
1562127668Sbms  IFS=$as_save_IFS
1563127668Sbms  test -z "$as_dir" && as_dir=.
1564127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1565127668Sbms  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566127668Sbms    ac_cv_prog_ac_ct_CC="cc"
1567127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568127668Sbms    break 2
1569127668Sbms  fi
1570127668Sbmsdone
1571127668Sbmsdone
1572127668Sbms
1573127668Sbmsfi
1574127668Sbmsfi
1575127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC
1576127668Sbmsif test -n "$ac_ct_CC"; then
1577127668Sbms  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578127668Sbmsecho "${ECHO_T}$ac_ct_CC" >&6
1579127668Sbmselse
1580127668Sbms  echo "$as_me:$LINENO: result: no" >&5
1581127668Sbmsecho "${ECHO_T}no" >&6
1582127668Sbmsfi
1583127668Sbms
1584127668Sbms  CC=$ac_ct_CC
1585127668Sbmselse
1586127668Sbms  CC="$ac_cv_prog_CC"
1587127668Sbmsfi
1588127668Sbms
1589127668Sbmsfi
159017680Spstif test -z "$CC"; then
159117680Spst  # Extract the first word of "cc", so it can be a program name with args.
159217680Spstset dummy cc; ac_word=$2
1593127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5
1594127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then
1596127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
159717680Spstelse
159817680Spst  if test -n "$CC"; then
159917680Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
160017680Spstelse
160117680Spst  ac_prog_rejected=no
1602127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603127668Sbmsfor as_dir in $PATH
1604127668Sbmsdo
1605127668Sbms  IFS=$as_save_IFS
1606127668Sbms  test -z "$as_dir" && as_dir=.
1607127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1608127668Sbms  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609127668Sbms    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610127668Sbms       ac_prog_rejected=yes
1611127668Sbms       continue
1612127668Sbms     fi
1613127668Sbms    ac_cv_prog_CC="cc"
1614127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615127668Sbms    break 2
1616127668Sbms  fi
1617127668Sbmsdone
1618127668Sbmsdone
1619127668Sbms
162017680Spstif test $ac_prog_rejected = yes; then
162117680Spst  # We found a bogon in the path, so make sure we never use it.
162217680Spst  set dummy $ac_cv_prog_CC
162317680Spst  shift
1624127668Sbms  if test $# != 0; then
162517680Spst    # We chose a different compiler from the bogus one.
162617680Spst    # However, it has the same basename, so the bogon will be chosen
162717680Spst    # first if we set CC to just the basename; use the full file name.
162817680Spst    shift
1629127668Sbms    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
163017680Spst  fi
163117680Spstfi
163217680Spstfi
163317680Spstfi
1634127668SbmsCC=$ac_cv_prog_CC
163517680Spstif test -n "$CC"; then
1636127668Sbms  echo "$as_me:$LINENO: result: $CC" >&5
1637127668Sbmsecho "${ECHO_T}$CC" >&6
163817680Spstelse
1639127668Sbms  echo "$as_me:$LINENO: result: no" >&5
1640127668Sbmsecho "${ECHO_T}no" >&6
164117680Spstfi
164217680Spst
1643127668Sbmsfi
1644127668Sbmsif test -z "$CC"; then
1645127668Sbms  if test -n "$ac_tool_prefix"; then
1646127668Sbms  for ac_prog in cl
1647127668Sbms  do
1648127668Sbms    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649127668Sbmsset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5
1651127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then
1653127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
165456893Sfennerelse
165556893Sfenner  if test -n "$CC"; then
165656893Sfenner  ac_cv_prog_CC="$CC" # Let the user override the test.
165756893Sfennerelse
1658127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659127668Sbmsfor as_dir in $PATH
1660127668Sbmsdo
1661127668Sbms  IFS=$as_save_IFS
1662127668Sbms  test -z "$as_dir" && as_dir=.
1663127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1664127668Sbms  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665127668Sbms    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1666127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667127668Sbms    break 2
1668127668Sbms  fi
1669127668Sbmsdone
1670127668Sbmsdone
1671127668Sbms
167256893Sfennerfi
167356893Sfennerfi
1674127668SbmsCC=$ac_cv_prog_CC
167556893Sfennerif test -n "$CC"; then
1676127668Sbms  echo "$as_me:$LINENO: result: $CC" >&5
1677127668Sbmsecho "${ECHO_T}$CC" >&6
167856893Sfennerelse
1679127668Sbms  echo "$as_me:$LINENO: result: no" >&5
1680127668Sbmsecho "${ECHO_T}no" >&6
168156893Sfennerfi
1682127668Sbms
1683127668Sbms    test -n "$CC" && break
1684127668Sbms  done
1685127668Sbmsfi
1686127668Sbmsif test -z "$CC"; then
1687127668Sbms  ac_ct_CC=$CC
1688127668Sbms  for ac_prog in cl
1689127668Sbmsdo
1690127668Sbms  # Extract the first word of "$ac_prog", so it can be a program name with args.
1691127668Sbmsset dummy $ac_prog; ac_word=$2
1692127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5
1693127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694127668Sbmsif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1696127668Sbmselse
1697127668Sbms  if test -n "$ac_ct_CC"; then
1698127668Sbms  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699127668Sbmselse
1700127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701127668Sbmsfor as_dir in $PATH
1702127668Sbmsdo
1703127668Sbms  IFS=$as_save_IFS
1704127668Sbms  test -z "$as_dir" && as_dir=.
1705127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1706127668Sbms  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707127668Sbms    ac_cv_prog_ac_ct_CC="$ac_prog"
1708127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709127668Sbms    break 2
171056893Sfenner  fi
1711127668Sbmsdone
1712127668Sbmsdone
1713127668Sbms
171417680Spstfi
1715127668Sbmsfi
1716127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC
1717127668Sbmsif test -n "$ac_ct_CC"; then
1718127668Sbms  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719127668Sbmsecho "${ECHO_T}$ac_ct_CC" >&6
1720127668Sbmselse
1721127668Sbms  echo "$as_me:$LINENO: result: no" >&5
1722127668Sbmsecho "${ECHO_T}no" >&6
1723127668Sbmsfi
172417680Spst
1725127668Sbms  test -n "$ac_ct_CC" && break
1726127668Sbmsdone
172726180Sfenner
1728127668Sbms  CC=$ac_ct_CC
1729127668Sbmsfi
173026180Sfenner
1731127668Sbmsfi
173256893Sfenner
173356893Sfenner
1734127668Sbmstest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735127668SbmsSee \`config.log' for more details." >&5
1736127668Sbmsecho "$as_me: error: no acceptable C compiler found in \$PATH
1737127668SbmsSee \`config.log' for more details." >&2;}
1738127668Sbms   { (exit 1); exit 1; }; }
1739127668Sbms
1740127668Sbms# Provide some information about the compiler.
1741127668Sbmsecho "$as_me:$LINENO:" \
1742127668Sbms     "checking for C compiler version" >&5
1743127668Sbmsac_compiler=`set X $ac_compile; echo $2`
1744127668Sbms{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745127668Sbms  (eval $ac_compiler --version </dev/null >&5) 2>&5
1746127668Sbms  ac_status=$?
1747127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748127668Sbms  (exit $ac_status); }
1749127668Sbms{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750127668Sbms  (eval $ac_compiler -v </dev/null >&5) 2>&5
1751127668Sbms  ac_status=$?
1752127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753127668Sbms  (exit $ac_status); }
1754127668Sbms{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755127668Sbms  (eval $ac_compiler -V </dev/null >&5) 2>&5
1756127668Sbms  ac_status=$?
1757127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758127668Sbms  (exit $ac_status); }
1759127668Sbms
1760127668Sbmscat >conftest.$ac_ext <<_ACEOF
1761127668Sbms#line $LINENO "configure"
1762127668Sbms/* confdefs.h.  */
1763127668Sbms_ACEOF
1764127668Sbmscat confdefs.h >>conftest.$ac_ext
1765127668Sbmscat >>conftest.$ac_ext <<_ACEOF
1766127668Sbms/* end confdefs.h.  */
1767127668Sbms
1768127668Sbmsint
1769127668Sbmsmain ()
1770127668Sbms{
1771127668Sbms
1772127668Sbms  ;
1773127668Sbms  return 0;
1774127668Sbms}
1775127668Sbms_ACEOF
1776127668Sbmsac_clean_files_save=$ac_clean_files
1777127668Sbmsac_clean_files="$ac_clean_files a.out a.exe b.out"
1778127668Sbms# Try to create an executable without -o first, disregard a.out.
1779127668Sbms# It will help us diagnose broken compilers, and finding out an intuition
1780127668Sbms# of exeext.
1781127668Sbmsecho "$as_me:$LINENO: checking for C compiler default output" >&5
1782127668Sbmsecho $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1783127668Sbmsac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785127668Sbms  (eval $ac_link_default) 2>&5
1786127668Sbms  ac_status=$?
1787127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788127668Sbms  (exit $ac_status); }; then
1789127668Sbms  # Find the output, starting from the most likely.  This scheme is
1790127668Sbms# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791127668Sbms# resort.
1792127668Sbms
1793127668Sbms# Be careful to initialize this variable, since it used to be cached.
1794127668Sbms# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1795127668Sbmsac_cv_exeext=
1796127668Sbms# b.out is created by i960 compilers.
1797127668Sbmsfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798127668Sbmsdo
1799127668Sbms  test -f "$ac_file" || continue
1800127668Sbms  case $ac_file in
1801127668Sbms    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1802127668Sbms        ;;
1803127668Sbms    conftest.$ac_ext )
1804127668Sbms        # This is the source file.
1805127668Sbms        ;;
1806127668Sbms    [ab].out )
1807127668Sbms        # We found the default executable, but exeext='' is most
1808127668Sbms        # certainly right.
1809127668Sbms        break;;
1810127668Sbms    *.* )
1811127668Sbms        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812127668Sbms        # FIXME: I believe we export ac_cv_exeext for Libtool,
1813127668Sbms        # but it would be cool to find out if it's true.  Does anybody
1814127668Sbms        # maintain Libtool? --akim.
1815127668Sbms        export ac_cv_exeext
1816127668Sbms        break;;
1817127668Sbms    * )
1818127668Sbms        break;;
1819127668Sbms  esac
1820127668Sbmsdone
1821127668Sbmselse
1822127668Sbms  echo "$as_me: failed program was:" >&5
1823127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
1824127668Sbms
1825127668Sbms{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826127668SbmsSee \`config.log' for more details." >&5
1827127668Sbmsecho "$as_me: error: C compiler cannot create executables
1828127668SbmsSee \`config.log' for more details." >&2;}
1829127668Sbms   { (exit 77); exit 77; }; }
1830127668Sbmsfi
1831127668Sbms
1832127668Sbmsac_exeext=$ac_cv_exeext
1833127668Sbmsecho "$as_me:$LINENO: result: $ac_file" >&5
1834127668Sbmsecho "${ECHO_T}$ac_file" >&6
1835127668Sbms
1836127668Sbms# Check the compiler produces executables we can run.  If not, either
1837127668Sbms# the compiler is broken, or we cross compile.
1838127668Sbmsecho "$as_me:$LINENO: checking whether the C compiler works" >&5
1839127668Sbmsecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840127668Sbms# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841127668Sbms# If not cross compiling, check that we can run a simple program.
1842127668Sbmsif test "$cross_compiling" != yes; then
1843127668Sbms  if { ac_try='./$ac_file'
1844127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845127668Sbms  (eval $ac_try) 2>&5
1846127668Sbms  ac_status=$?
1847127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848127668Sbms  (exit $ac_status); }; }; then
1849127668Sbms    cross_compiling=no
185026180Sfenner  else
1851127668Sbms    if test "$cross_compiling" = maybe; then
1852127668Sbms	cross_compiling=yes
1853127668Sbms    else
1854127668Sbms	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855127668SbmsIf you meant to cross compile, use \`--host'.
1856127668SbmsSee \`config.log' for more details." >&5
1857127668Sbmsecho "$as_me: error: cannot run C compiled programs.
1858127668SbmsIf you meant to cross compile, use \`--host'.
1859127668SbmsSee \`config.log' for more details." >&2;}
1860127668Sbms   { (exit 1); exit 1; }; }
1861127668Sbms    fi
186226180Sfenner  fi
186326180Sfennerfi
1864127668Sbmsecho "$as_me:$LINENO: result: yes" >&5
1865127668Sbmsecho "${ECHO_T}yes" >&6
186626180Sfenner
1867127668Sbmsrm -f a.out a.exe conftest$ac_cv_exeext b.out
1868127668Sbmsac_clean_files=$ac_clean_files_save
1869127668Sbms# Check the compiler produces executables we can run.  If not, either
1870127668Sbms# the compiler is broken, or we cross compile.
1871127668Sbmsecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872127668Sbmsecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873127668Sbmsecho "$as_me:$LINENO: result: $cross_compiling" >&5
1874127668Sbmsecho "${ECHO_T}$cross_compiling" >&6
1875127668Sbms
1876127668Sbmsecho "$as_me:$LINENO: checking for suffix of executables" >&5
1877127668Sbmsecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879127668Sbms  (eval $ac_link) 2>&5
1880127668Sbms  ac_status=$?
1881127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882127668Sbms  (exit $ac_status); }; then
1883127668Sbms  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884127668Sbms# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1885127668Sbms# work properly (i.e., refer to `conftest.exe'), while it won't with
1886127668Sbms# `rm'.
1887127668Sbmsfor ac_file in conftest.exe conftest conftest.*; do
1888127668Sbms  test -f "$ac_file" || continue
1889127668Sbms  case $ac_file in
1890127668Sbms    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1891127668Sbms    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1892127668Sbms          export ac_cv_exeext
1893127668Sbms          break;;
1894127668Sbms    * ) break;;
1895127668Sbms  esac
1896127668Sbmsdone
1897127668Sbmselse
1898127668Sbms  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899127668SbmsSee \`config.log' for more details." >&5
1900127668Sbmsecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901127668SbmsSee \`config.log' for more details." >&2;}
1902127668Sbms   { (exit 1); exit 1; }; }
190326180Sfennerfi
190426180Sfenner
1905127668Sbmsrm -f conftest$ac_cv_exeext
1906127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907127668Sbmsecho "${ECHO_T}$ac_cv_exeext" >&6
1908127668Sbms
1909127668Sbmsrm -f conftest.$ac_ext
1910127668SbmsEXEEXT=$ac_cv_exeext
1911127668Sbmsac_exeext=$EXEEXT
1912127668Sbmsecho "$as_me:$LINENO: checking for suffix of object files" >&5
1913127668Sbmsecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914127668Sbmsif test "${ac_cv_objext+set}" = set; then
1915127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
191617680Spstelse
1917127668Sbms  cat >conftest.$ac_ext <<_ACEOF
1918127668Sbms#line $LINENO "configure"
1919127668Sbms/* confdefs.h.  */
1920127668Sbms_ACEOF
1921127668Sbmscat confdefs.h >>conftest.$ac_ext
1922127668Sbmscat >>conftest.$ac_ext <<_ACEOF
1923127668Sbms/* end confdefs.h.  */
1924127668Sbms
1925127668Sbmsint
1926127668Sbmsmain ()
1927127668Sbms{
1928127668Sbms
1929127668Sbms  ;
1930127668Sbms  return 0;
1931127668Sbms}
1932127668Sbms_ACEOF
1933127668Sbmsrm -f conftest.o conftest.obj
1934127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935127668Sbms  (eval $ac_compile) 2>&5
1936127668Sbms  ac_status=$?
1937127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938127668Sbms  (exit $ac_status); }; then
1939127668Sbms  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940127668Sbms  case $ac_file in
1941127668Sbms    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1942127668Sbms    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1943127668Sbms       break;;
1944127668Sbms  esac
1945127668Sbmsdone
194617680Spstelse
1947127668Sbms  echo "$as_me: failed program was:" >&5
1948127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
1949127668Sbms
1950127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951127668SbmsSee \`config.log' for more details." >&5
1952127668Sbmsecho "$as_me: error: cannot compute suffix of object files: cannot compile
1953127668SbmsSee \`config.log' for more details." >&2;}
1954127668Sbms   { (exit 1); exit 1; }; }
195517680Spstfi
1956127668Sbms
1957127668Sbmsrm -f conftest.$ac_cv_objext conftest.$ac_ext
195817680Spstfi
1959127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960127668Sbmsecho "${ECHO_T}$ac_cv_objext" >&6
1961127668SbmsOBJEXT=$ac_cv_objext
1962127668Sbmsac_objext=$OBJEXT
1963127668Sbmsecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964127668Sbmsecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965127668Sbmsif test "${ac_cv_c_compiler_gnu+set}" = set; then
1966127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1967127668Sbmselse
1968127668Sbms  cat >conftest.$ac_ext <<_ACEOF
1969127668Sbms#line $LINENO "configure"
1970127668Sbms/* confdefs.h.  */
1971127668Sbms_ACEOF
1972127668Sbmscat confdefs.h >>conftest.$ac_ext
1973127668Sbmscat >>conftest.$ac_ext <<_ACEOF
1974127668Sbms/* end confdefs.h.  */
197517680Spst
1976127668Sbmsint
1977127668Sbmsmain ()
1978127668Sbms{
1979127668Sbms#ifndef __GNUC__
1980127668Sbms       choke me
1981127668Sbms#endif
198226180Sfenner
1983127668Sbms  ;
1984127668Sbms  return 0;
1985127668Sbms}
1986127668Sbms_ACEOF
1987127668Sbmsrm -f conftest.$ac_objext
1988127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989127668Sbms  (eval $ac_compile) 2>&5
1990127668Sbms  ac_status=$?
1991127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992127668Sbms  (exit $ac_status); } &&
1993127668Sbms         { ac_try='test -s conftest.$ac_objext'
1994127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995127668Sbms  (eval $ac_try) 2>&5
1996127668Sbms  ac_status=$?
1997127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998127668Sbms  (exit $ac_status); }; }; then
1999127668Sbms  ac_compiler_gnu=yes
200056893Sfennerelse
2001127668Sbms  echo "$as_me: failed program was:" >&5
2002127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2003127668Sbms
2004127668Sbmsac_compiler_gnu=no
200556893Sfennerfi
2006127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
2007127668Sbmsac_cv_c_compiler_gnu=$ac_compiler_gnu
200856893Sfenner
2009127668Sbmsfi
2010127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011127668Sbmsecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012127668SbmsGCC=`test $ac_compiler_gnu = yes && echo yes`
2013127668Sbmsac_test_CFLAGS=${CFLAGS+set}
2014127668Sbmsac_save_CFLAGS=$CFLAGS
2015127668SbmsCFLAGS="-g"
2016127668Sbmsecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017127668Sbmsecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018127668Sbmsif test "${ac_cv_prog_cc_g+set}" = set; then
2019127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
202017680Spstelse
2021127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2022127668Sbms#line $LINENO "configure"
2023127668Sbms/* confdefs.h.  */
2024127668Sbms_ACEOF
2025127668Sbmscat confdefs.h >>conftest.$ac_ext
2026127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2027127668Sbms/* end confdefs.h.  */
2028127668Sbms
2029127668Sbmsint
2030127668Sbmsmain ()
2031127668Sbms{
2032127668Sbms
2033127668Sbms  ;
2034127668Sbms  return 0;
2035127668Sbms}
2036127668Sbms_ACEOF
2037127668Sbmsrm -f conftest.$ac_objext
2038127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039127668Sbms  (eval $ac_compile) 2>&5
2040127668Sbms  ac_status=$?
2041127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042127668Sbms  (exit $ac_status); } &&
2043127668Sbms         { ac_try='test -s conftest.$ac_objext'
2044127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045127668Sbms  (eval $ac_try) 2>&5
2046127668Sbms  ac_status=$?
2047127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048127668Sbms  (exit $ac_status); }; }; then
204926180Sfenner  ac_cv_prog_cc_g=yes
205017680Spstelse
2051127668Sbms  echo "$as_me: failed program was:" >&5
2052127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
205317680Spst
2054127668Sbmsac_cv_prog_cc_g=no
205517680Spstfi
2056127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
2057127668Sbmsfi
2058127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059127668Sbmsecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
206056893Sfennerif test "$ac_test_CFLAGS" = set; then
2061127668Sbms  CFLAGS=$ac_save_CFLAGS
206256893Sfennerelif test $ac_cv_prog_cc_g = yes; then
206356893Sfenner  if test "$GCC" = yes; then
206426180Sfenner    CFLAGS="-g -O2"
206526180Sfenner  else
206656893Sfenner    CFLAGS="-g"
206756893Sfenner  fi
206856893Sfennerelse
206956893Sfenner  if test "$GCC" = yes; then
207026180Sfenner    CFLAGS="-O2"
207156893Sfenner  else
207256893Sfenner    CFLAGS=
207317680Spst  fi
207417680Spstfi
2075127668Sbmsecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076127668Sbmsecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077127668Sbmsif test "${ac_cv_prog_cc_stdc+set}" = set; then
2078127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
2079127668Sbmselse
2080127668Sbms  ac_cv_prog_cc_stdc=no
2081127668Sbmsac_save_CC=$CC
2082127668Sbmscat >conftest.$ac_ext <<_ACEOF
2083127668Sbms#line $LINENO "configure"
2084127668Sbms/* confdefs.h.  */
2085127668Sbms_ACEOF
2086127668Sbmscat confdefs.h >>conftest.$ac_ext
2087127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2088127668Sbms/* end confdefs.h.  */
2089127668Sbms#include <stdarg.h>
2090127668Sbms#include <stdio.h>
2091127668Sbms#include <sys/types.h>
2092127668Sbms#include <sys/stat.h>
2093127668Sbms/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2094127668Sbmsstruct buf { int x; };
2095127668SbmsFILE * (*rcsopen) (struct buf *, struct stat *, int);
2096127668Sbmsstatic char *e (p, i)
2097127668Sbms     char **p;
2098127668Sbms     int i;
2099127668Sbms{
2100127668Sbms  return p[i];
2101127668Sbms}
2102127668Sbmsstatic char *f (char * (*g) (char **, int), char **p, ...)
2103127668Sbms{
2104127668Sbms  char *s;
2105127668Sbms  va_list v;
2106127668Sbms  va_start (v,p);
2107127668Sbms  s = g (p, va_arg (v,int));
2108127668Sbms  va_end (v);
2109127668Sbms  return s;
2110127668Sbms}
2111127668Sbmsint test (int i, double x);
2112127668Sbmsstruct s1 {int (*f) (int a);};
2113127668Sbmsstruct s2 {int (*f) (double a);};
2114127668Sbmsint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2115127668Sbmsint argc;
2116127668Sbmschar **argv;
2117127668Sbmsint
2118127668Sbmsmain ()
2119127668Sbms{
2120127668Sbmsreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2121127668Sbms  ;
2122127668Sbms  return 0;
2123127668Sbms}
2124127668Sbms_ACEOF
2125127668Sbms# Don't try gcc -ansi; that turns off useful extensions and
2126127668Sbms# breaks some systems' header files.
2127127668Sbms# AIX			-qlanglvl=ansi
2128127668Sbms# Ultrix and OSF/1	-std1
2129127668Sbms# HP-UX 10.20 and later	-Ae
2130127668Sbms# HP-UX older versions	-Aa -D_HPUX_SOURCE
2131127668Sbms# SVR4			-Xc -D__EXTENSIONS__
2132127668Sbmsfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2133127668Sbmsdo
2134127668Sbms  CC="$ac_save_CC $ac_arg"
2135127668Sbms  rm -f conftest.$ac_objext
2136127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137127668Sbms  (eval $ac_compile) 2>&5
2138127668Sbms  ac_status=$?
2139127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140127668Sbms  (exit $ac_status); } &&
2141127668Sbms         { ac_try='test -s conftest.$ac_objext'
2142127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143127668Sbms  (eval $ac_try) 2>&5
2144127668Sbms  ac_status=$?
2145127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146127668Sbms  (exit $ac_status); }; }; then
2147127668Sbms  ac_cv_prog_cc_stdc=$ac_arg
2148127668Sbmsbreak
2149127668Sbmselse
2150127668Sbms  echo "$as_me: failed program was:" >&5
2151127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
215217680Spst
2153127668Sbmsfi
2154127668Sbmsrm -f conftest.$ac_objext
2155127668Sbmsdone
2156127668Sbmsrm -f conftest.$ac_ext conftest.$ac_objext
2157127668SbmsCC=$ac_save_CC
2158127668Sbms
2159127668Sbmsfi
2160127668Sbms
2161127668Sbmscase "x$ac_cv_prog_cc_stdc" in
2162127668Sbms  x|xno)
2163127668Sbms    echo "$as_me:$LINENO: result: none needed" >&5
2164127668Sbmsecho "${ECHO_T}none needed" >&6 ;;
2165127668Sbms  *)
2166127668Sbms    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167127668Sbmsecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168127668Sbms    CC="$CC $ac_cv_prog_cc_stdc" ;;
2169127668Sbmsesac
2170127668Sbms
2171127668Sbms# Some people use a C++ compiler to compile C.  Since we use `exit',
2172127668Sbms# in C++ we need to declare it.  In case someone uses the same compiler
2173127668Sbms# for both compiling C and C++ we need to have the C++ compiler decide
2174127668Sbms# the declaration of exit, since it's the most demanding environment.
2175127668Sbmscat >conftest.$ac_ext <<_ACEOF
2176127668Sbms#ifndef __cplusplus
2177127668Sbms  choke me
2178127668Sbms#endif
2179127668Sbms_ACEOF
2180127668Sbmsrm -f conftest.$ac_objext
2181127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182127668Sbms  (eval $ac_compile) 2>&5
2183127668Sbms  ac_status=$?
2184127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185127668Sbms  (exit $ac_status); } &&
2186127668Sbms         { ac_try='test -s conftest.$ac_objext'
2187127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188127668Sbms  (eval $ac_try) 2>&5
2189127668Sbms  ac_status=$?
2190127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191127668Sbms  (exit $ac_status); }; }; then
2192127668Sbms  for ac_declaration in \
2193127668Sbms   ''\
2194127668Sbms   '#include <stdlib.h>' \
2195127668Sbms   'extern "C" void std::exit (int) throw (); using std::exit;' \
2196127668Sbms   'extern "C" void std::exit (int); using std::exit;' \
2197127668Sbms   'extern "C" void exit (int) throw ();' \
2198127668Sbms   'extern "C" void exit (int);' \
2199127668Sbms   'void exit (int);'
2200127668Sbmsdo
2201127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2202127668Sbms#line $LINENO "configure"
2203127668Sbms/* confdefs.h.  */
2204127668Sbms_ACEOF
2205127668Sbmscat confdefs.h >>conftest.$ac_ext
2206127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2207127668Sbms/* end confdefs.h.  */
2208127668Sbms#include <stdlib.h>
2209127668Sbms$ac_declaration
2210127668Sbmsint
2211127668Sbmsmain ()
2212127668Sbms{
2213127668Sbmsexit (42);
2214127668Sbms  ;
2215127668Sbms  return 0;
2216127668Sbms}
2217127668Sbms_ACEOF
2218127668Sbmsrm -f conftest.$ac_objext
2219127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220127668Sbms  (eval $ac_compile) 2>&5
2221127668Sbms  ac_status=$?
2222127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223127668Sbms  (exit $ac_status); } &&
2224127668Sbms         { ac_try='test -s conftest.$ac_objext'
2225127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226127668Sbms  (eval $ac_try) 2>&5
2227127668Sbms  ac_status=$?
2228127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229127668Sbms  (exit $ac_status); }; }; then
2230127668Sbms  :
2231127668Sbmselse
2232127668Sbms  echo "$as_me: failed program was:" >&5
2233127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2234127668Sbms
2235127668Sbmscontinue
2236127668Sbmsfi
2237127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
2238127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2239127668Sbms#line $LINENO "configure"
2240127668Sbms/* confdefs.h.  */
2241127668Sbms_ACEOF
2242127668Sbmscat confdefs.h >>conftest.$ac_ext
2243127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2244127668Sbms/* end confdefs.h.  */
2245127668Sbms$ac_declaration
2246127668Sbmsint
2247127668Sbmsmain ()
2248127668Sbms{
2249127668Sbmsexit (42);
2250127668Sbms  ;
2251127668Sbms  return 0;
2252127668Sbms}
2253127668Sbms_ACEOF
2254127668Sbmsrm -f conftest.$ac_objext
2255127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256127668Sbms  (eval $ac_compile) 2>&5
2257127668Sbms  ac_status=$?
2258127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259127668Sbms  (exit $ac_status); } &&
2260127668Sbms         { ac_try='test -s conftest.$ac_objext'
2261127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262127668Sbms  (eval $ac_try) 2>&5
2263127668Sbms  ac_status=$?
2264127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265127668Sbms  (exit $ac_status); }; }; then
2266127668Sbms  break
2267127668Sbmselse
2268127668Sbms  echo "$as_me: failed program was:" >&5
2269127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2270127668Sbms
2271127668Sbmsfi
2272127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
2273127668Sbmsdone
2274127668Sbmsrm -f conftest*
2275127668Sbmsif test -n "$ac_declaration"; then
2276127668Sbms  echo '#ifdef __cplusplus' >>confdefs.h
2277127668Sbms  echo $ac_declaration      >>confdefs.h
2278127668Sbms  echo '#endif'             >>confdefs.h
2279127668Sbmsfi
2280127668Sbms
2281127668Sbmselse
2282127668Sbms  echo "$as_me: failed program was:" >&5
2283127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2284127668Sbms
2285127668Sbmsfi
2286127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
2287127668Sbmsac_ext=c
2288127668Sbmsac_cpp='$CPP $CPPFLAGS'
2289127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
2292127668Sbms
229339297Sfenner    if test "$GCC" = yes ; then
229417680Spst	    if test "$SHLICC2" = yes ; then
229539297Sfenner		    ac_cv_lbl_gcc_vers=2
229639297Sfenner		    V_CCOPT="-O2"
229717680Spst	    else
2298127668Sbms		    echo "$as_me:$LINENO: checking gcc version" >&5
2299127668Sbmsecho $ECHO_N "checking gcc version... $ECHO_C" >&6
2300127668Sbms		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2301127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
230217680Spstelse
230339297Sfenner  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
230439297Sfenner			    sed -e '/^gcc version /!d' \
230539297Sfenner				-e 's/^gcc version //' \
230639297Sfenner				-e 's/ .*//' -e 's/^[^0-9]*//' \
230739297Sfenner				-e 's/\..*//'`
230817680Spstfi
230917680Spst
2310127668Sbms		    echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2311127668Sbmsecho "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
231239297Sfenner		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
231339297Sfenner			    V_CCOPT="-O2"
231417680Spst		    fi
231517680Spst	    fi
231617680Spst    else
2317127668Sbms	    echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2318127668Sbmsecho $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2319127668Sbms	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2320127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
232117680Spstelse
2322127668Sbms
2323127668Sbmscat >conftest.$ac_ext <<_ACEOF
2324127668Sbms#line $LINENO "configure"
2325127668Sbms/* confdefs.h.  */
2326127668Sbms_ACEOF
2327127668Sbmscat confdefs.h >>conftest.$ac_ext
2328127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2329127668Sbms/* end confdefs.h.  */
233017680Spst#include <sys/types.h>
2331127668Sbmsint
2332127668Sbmsmain ()
2333127668Sbms{
233417680Spstint frob(int, char *)
2335127668Sbms  ;
2336127668Sbms  return 0;
2337127668Sbms}
2338127668Sbms_ACEOF
2339127668Sbmsrm -f conftest.$ac_objext
2340127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341127668Sbms  (eval $ac_compile) 2>&5
2342127668Sbms  ac_status=$?
2343127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344127668Sbms  (exit $ac_status); } &&
2345127668Sbms         { ac_try='test -s conftest.$ac_objext'
2346127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347127668Sbms  (eval $ac_try) 2>&5
2348127668Sbms  ac_status=$?
2349127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350127668Sbms  (exit $ac_status); }; }; then
235139297Sfenner  ac_cv_lbl_cc_ansi_prototypes=yes
235217680Spstelse
2353127668Sbms  echo "$as_me: failed program was:" >&5
2354127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2355127668Sbms
2356127668Sbmsac_cv_lbl_cc_ansi_prototypes=no
235717680Spstfi
2358127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
235917680Spstfi
236017680Spst
2361127668Sbms	    echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2362127668Sbmsecho "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
236339297Sfenner	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
236498524Sfenner		    case "$host_os" in
236517680Spst
236617680Spst		    hpux*)
2367127668Sbms			    echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2368127668Sbmsecho $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
236917680Spst			    savedcflags="$CFLAGS"
237017680Spst			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2371127668Sbms			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2372127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
237317680Spstelse
2374127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2375127668Sbms#line $LINENO "configure"
2376127668Sbms/* confdefs.h.  */
2377127668Sbms_ACEOF
2378127668Sbmscat confdefs.h >>conftest.$ac_ext
2379127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2380127668Sbms/* end confdefs.h.  */
238117680Spst#include <sys/types.h>
2382127668Sbmsint
2383127668Sbmsmain ()
2384127668Sbms{
238517680Spstint frob(int, char *)
2386127668Sbms  ;
2387127668Sbms  return 0;
2388127668Sbms}
2389127668Sbms_ACEOF
2390127668Sbmsrm -f conftest.$ac_objext
2391127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392127668Sbms  (eval $ac_compile) 2>&5
2393127668Sbms  ac_status=$?
2394127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395127668Sbms  (exit $ac_status); } &&
2396127668Sbms         { ac_try='test -s conftest.$ac_objext'
2397127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398127668Sbms  (eval $ac_try) 2>&5
2399127668Sbms  ac_status=$?
2400127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401127668Sbms  (exit $ac_status); }; }; then
240239297Sfenner  ac_cv_lbl_cc_hpux_cc_aa=yes
240317680Spstelse
2404127668Sbms  echo "$as_me: failed program was:" >&5
2405127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2406127668Sbms
2407127668Sbmsac_cv_lbl_cc_hpux_cc_aa=no
240817680Spstfi
2409127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
241017680Spstfi
241117680Spst
2412127668Sbms			    echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2413127668Sbmsecho "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
241439297Sfenner			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2415127668Sbms				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2416127668Sbmsecho "$as_me: error: see the INSTALL doc for more info" >&2;}
2417127668Sbms   { (exit 1); exit 1; }; }
241817680Spst			    fi
241917680Spst			    CFLAGS="$savedcflags"
242017680Spst			    V_CCOPT="-Aa $V_CCOPT"
2421127668Sbms			    cat >>confdefs.h <<\_ACEOF
242217680Spst#define _HPUX_SOURCE 1
2423127668Sbms_ACEOF
242417680Spst
242517680Spst			    ;;
242617680Spst
242717680Spst		    *)
2428127668Sbms			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2429127668Sbmsecho "$as_me: error: see the INSTALL doc for more info" >&2;}
2430127668Sbms   { (exit 1); exit 1; }; }
243117680Spst			    ;;
243217680Spst		    esac
243317680Spst	    fi
243439297Sfenner	    V_INCLS="$V_INCLS -I/usr/local/include"
243539297Sfenner	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
243617680Spst
243798524Sfenner	    case "$host_os" in
243817680Spst
243917680Spst	    irix*)
244098524Sfenner		    V_CCOPT="$V_CCOPT -xansi -signed -O"
244117680Spst		    ;;
244217680Spst
244317680Spst	    osf*)
244498524Sfenner		    V_CCOPT="$V_CCOPT -std1 -O"
244517680Spst		    ;;
244617680Spst
244717680Spst	    ultrix*)
2448127668Sbms		    echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2449127668Sbmsecho $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2450127668Sbms		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2451127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
245217680Spstelse
2453127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2454127668Sbms#line $LINENO "configure"
2455127668Sbms/* confdefs.h.  */
2456127668Sbms_ACEOF
2457127668Sbmscat confdefs.h >>conftest.$ac_ext
2458127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2459127668Sbms/* end confdefs.h.  */
246017680Spst#include <sys/types.h>
2461127668Sbmsint
2462127668Sbmsmain ()
2463127668Sbms{
246417680Spststruct a { int b; };
246517680Spst			    void c(const struct a *)
2466127668Sbms  ;
2467127668Sbms  return 0;
2468127668Sbms}
2469127668Sbms_ACEOF
2470127668Sbmsrm -f conftest.$ac_objext
2471127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472127668Sbms  (eval $ac_compile) 2>&5
2473127668Sbms  ac_status=$?
2474127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475127668Sbms  (exit $ac_status); } &&
2476127668Sbms         { ac_try='test -s conftest.$ac_objext'
2477127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478127668Sbms  (eval $ac_try) 2>&5
2479127668Sbms  ac_status=$?
2480127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481127668Sbms  (exit $ac_status); }; }; then
248239297Sfenner  ac_cv_lbl_cc_const_proto=yes
248317680Spstelse
2484127668Sbms  echo "$as_me: failed program was:" >&5
2485127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2486127668Sbms
2487127668Sbmsac_cv_lbl_cc_const_proto=no
248817680Spstfi
2489127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
249017680Spstfi
249117680Spst
2492127668Sbms		    echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2493127668Sbmsecho "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
249439297Sfenner		    if test $ac_cv_lbl_cc_const_proto = no ; then
2495127668Sbms			    cat >>confdefs.h <<\_ACEOF
2496127668Sbms#define const
2497127668Sbms_ACEOF
249817680Spst
249917680Spst		    fi
250017680Spst		    ;;
250117680Spst	    esac
250217680Spst    fi
250317680Spst
2504127668Sbmsecho "$as_me:$LINENO: checking for inline" >&5
2505127668Sbmsecho $ECHO_N "checking for inline... $ECHO_C" >&6
2506127668Sbms    if test "${ac_cv_lbl_inline+set}" = set; then
2507127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
250856893Sfennerelse
2509127668Sbms
2510111726Sfenner	ac_cv_lbl_inline=""
2511111726Sfenner	ac_lbl_cc_inline=no
2512111726Sfenner	for ac_lbl_inline in inline __inline__ __inline
2513111726Sfenner	do
2514127668Sbms	    cat >conftest.$ac_ext <<_ACEOF
2515127668Sbms#line $LINENO "configure"
2516127668Sbms/* confdefs.h.  */
2517127668Sbms_ACEOF
2518127668Sbmscat confdefs.h >>conftest.$ac_ext
2519127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2520127668Sbms/* end confdefs.h.  */
2521111726Sfenner#define inline $ac_lbl_inline
2522111726Sfenner		static inline struct iltest *foo(void);
2523111726Sfenner		struct iltest {
2524111726Sfenner		    int iltest1;
2525111726Sfenner		    int iltest2;
2526111726Sfenner		};
252717680Spst
2528111726Sfenner		static inline struct iltest *
2529111726Sfenner		foo()
2530111726Sfenner		{
2531111726Sfenner		    static struct iltest xxx;
2532111726Sfenner
2533111726Sfenner		    return &xxx;
2534111726Sfenner		}
2535127668Sbmsint
2536127668Sbmsmain ()
2537127668Sbms{
2538111726Sfenner
2539127668Sbms  ;
2540127668Sbms  return 0;
2541127668Sbms}
2542127668Sbms_ACEOF
2543127668Sbmsrm -f conftest.$ac_objext
2544127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545127668Sbms  (eval $ac_compile) 2>&5
2546127668Sbms  ac_status=$?
2547127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548127668Sbms  (exit $ac_status); } &&
2549127668Sbms         { ac_try='test -s conftest.$ac_objext'
2550127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551127668Sbms  (eval $ac_try) 2>&5
2552127668Sbms  ac_status=$?
2553127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554127668Sbms  (exit $ac_status); }; }; then
2555111726Sfenner  ac_lbl_cc_inline=yes
255656893Sfennerelse
2557127668Sbms  echo "$as_me: failed program was:" >&5
2558127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2559127668Sbms
256056893Sfennerfi
2561127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
2562111726Sfenner	    if test "$ac_lbl_cc_inline" = yes ; then
2563111726Sfenner		break;
2564111726Sfenner	    fi
2565111726Sfenner	done
2566111726Sfenner	if test "$ac_lbl_cc_inline" = yes ; then
2567111726Sfenner	    ac_cv_lbl_inline=$ac_lbl_inline
2568111726Sfenner	fi
256956893Sfennerfi
257056893Sfenner
2571111726Sfenner    if test ! -z "$ac_cv_lbl_inline" ; then
2572127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2573127668Sbmsecho "${ECHO_T}$ac_cv_lbl_inline" >&6
2574111726Sfenner    else
2575127668Sbms	echo "$as_me:$LINENO: result: no" >&5
2576127668Sbmsecho "${ECHO_T}no" >&6
2577111726Sfenner    fi
2578127668Sbms
2579127668Sbmscat >>confdefs.h <<_ACEOF
2580111726Sfenner#define inline $ac_cv_lbl_inline
2581127668Sbms_ACEOF
258256893Sfenner
258356893Sfenner
2584127668Sbmsecho "$as_me:$LINENO: checking for __attribute__" >&5
2585127668Sbmsecho $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2586127668Sbmsif test "${ac_cv___attribute__+set}" = set; then
2587127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
258875115Sfennerelse
258975115Sfenner
2590127668Sbmscat >conftest.$ac_ext <<_ACEOF
2591127668Sbms#line $LINENO "configure"
2592127668Sbms/* confdefs.h.  */
2593127668Sbms_ACEOF
2594127668Sbmscat confdefs.h >>conftest.$ac_ext
2595127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2596127668Sbms/* end confdefs.h.  */
2597127668Sbms
259875115Sfenner#include <stdlib.h>
259975115Sfenner
260075115Sfennerstatic void foo(void) __attribute__ ((noreturn));
260175115Sfenner
260275115Sfennerstatic void
260375115Sfennerfoo(void)
260475115Sfenner{
260575115Sfenner  exit(1);
260675115Sfenner}
260775115Sfenner
2608147899Ssamint
2609147899Ssammain(int argc, char **argv)
2610147899Ssam{
2611147899Ssam  foo();
2612127668Sbms}
2613147899Ssam
2614127668Sbms_ACEOF
2615127668Sbmsrm -f conftest.$ac_objext
2616127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617127668Sbms  (eval $ac_compile) 2>&5
2618127668Sbms  ac_status=$?
2619127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620127668Sbms  (exit $ac_status); } &&
2621127668Sbms         { ac_try='test -s conftest.$ac_objext'
2622127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623127668Sbms  (eval $ac_try) 2>&5
2624127668Sbms  ac_status=$?
2625127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626127668Sbms  (exit $ac_status); }; }; then
262775115Sfenner  ac_cv___attribute__=yes
262875115Sfennerelse
2629127668Sbms  echo "$as_me: failed program was:" >&5
2630127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2631127668Sbms
2632127668Sbmsac_cv___attribute__=no
263375115Sfennerfi
2634127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
263575115Sfennerfi
263675115Sfenner
263775115Sfennerif test "$ac_cv___attribute__" = "yes"; then
2638127668Sbms
2639127668Sbmscat >>confdefs.h <<\_ACEOF
264075115Sfenner#define HAVE___ATTRIBUTE__ 1
2641127668Sbms_ACEOF
264275115Sfenner
2643127668Sbms  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2644127668Sbmselse
2645127668Sbms  V_DEFS="$V_DEFS -D_U_=\"\""
264675115Sfennerfi
2647127668Sbmsecho "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2648127668Sbmsecho "${ECHO_T}$ac_cv___attribute__" >&6
264975115Sfenner
2650127668Sbmsac_ext=c
2651127668Sbmsac_cpp='$CPP $CPPFLAGS'
2652127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
2655127668Sbmsecho "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2656127668Sbmsecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
265717680Spst# On Suns, sometimes $CPP names a directory.
265817680Spstif test -n "$CPP" && test -d "$CPP"; then
265917680Spst  CPP=
266017680Spstfi
266117680Spstif test -z "$CPP"; then
2662127668Sbms  if test "${ac_cv_prog_CPP+set}" = set; then
2663127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
266417680Spstelse
2665127668Sbms      # Double quotes because CPP needs to be expanded
2666127668Sbms    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2667127668Sbms    do
2668127668Sbms      ac_preproc_ok=false
2669127668Sbmsfor ac_c_preproc_warn_flag in '' yes
2670127668Sbmsdo
2671127668Sbms  # Use a header file that comes with gcc, so configuring glibc
2672127668Sbms  # with a fresh cross-compiler works.
2673127668Sbms  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2674127668Sbms  # <limits.h> exists even on freestanding compilers.
267517680Spst  # On the NeXT, cc -E runs the code through the compiler's parser,
2676127668Sbms  # not just through cpp. "Syntax error" is here to catch this case.
2677127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2678127668Sbms#line $LINENO "configure"
2679127668Sbms/* confdefs.h.  */
2680127668Sbms_ACEOF
2681127668Sbmscat confdefs.h >>conftest.$ac_ext
2682127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2683127668Sbms/* end confdefs.h.  */
2684127668Sbms#ifdef __STDC__
2685127668Sbms# include <limits.h>
2686127668Sbms#else
2687127668Sbms# include <assert.h>
2688127668Sbms#endif
2689127668Sbms                     Syntax error
2690127668Sbms_ACEOF
2691127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692127668Sbms  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2693127668Sbms  ac_status=$?
2694127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
2695127668Sbms  rm -f conftest.er1
2696127668Sbms  cat conftest.err >&5
2697127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698127668Sbms  (exit $ac_status); } >/dev/null; then
2699127668Sbms  if test -s conftest.err; then
2700127668Sbms    ac_cpp_err=$ac_c_preproc_warn_flag
2701127668Sbms  else
2702127668Sbms    ac_cpp_err=
2703127668Sbms  fi
2704127668Sbmselse
2705127668Sbms  ac_cpp_err=yes
2706127668Sbmsfi
2707127668Sbmsif test -z "$ac_cpp_err"; then
270817680Spst  :
270917680Spstelse
2710127668Sbms  echo "$as_me: failed program was:" >&5
2711127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2712127668Sbms
2713127668Sbms  # Broken: fails on valid input.
2714127668Sbmscontinue
2715127668Sbmsfi
2716127668Sbmsrm -f conftest.err conftest.$ac_ext
2717127668Sbms
2718127668Sbms  # OK, works on sane cases.  Now check whether non-existent headers
2719127668Sbms  # can be detected and how.
2720127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2721127668Sbms#line $LINENO "configure"
2722127668Sbms/* confdefs.h.  */
2723127668Sbms_ACEOF
2724127668Sbmscat confdefs.h >>conftest.$ac_ext
2725127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2726127668Sbms/* end confdefs.h.  */
2727127668Sbms#include <ac_nonexistent.h>
2728127668Sbms_ACEOF
2729127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730127668Sbms  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2731127668Sbms  ac_status=$?
2732127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
2733127668Sbms  rm -f conftest.er1
2734127668Sbms  cat conftest.err >&5
2735127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736127668Sbms  (exit $ac_status); } >/dev/null; then
2737127668Sbms  if test -s conftest.err; then
2738127668Sbms    ac_cpp_err=$ac_c_preproc_warn_flag
2739127668Sbms  else
2740127668Sbms    ac_cpp_err=
2741127668Sbms  fi
2742127668Sbmselse
2743127668Sbms  ac_cpp_err=yes
2744127668Sbmsfi
2745127668Sbmsif test -z "$ac_cpp_err"; then
2746127668Sbms  # Broken: success on invalid input.
2747127668Sbmscontinue
2748127668Sbmselse
2749127668Sbms  echo "$as_me: failed program was:" >&5
2750127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2751127668Sbms
2752127668Sbms  # Passes both tests.
2753127668Sbmsac_preproc_ok=:
2754127668Sbmsbreak
2755127668Sbmsfi
2756127668Sbmsrm -f conftest.err conftest.$ac_ext
2757127668Sbms
2758127668Sbmsdone
2759127668Sbms# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2760127668Sbmsrm -f conftest.err conftest.$ac_ext
2761127668Sbmsif $ac_preproc_ok; then
2762127668Sbms  break
2763127668Sbmsfi
2764127668Sbms
2765127668Sbms    done
2766127668Sbms    ac_cv_prog_CPP=$CPP
2767127668Sbms
2768127668Sbmsfi
2769127668Sbms  CPP=$ac_cv_prog_CPP
2770127668Sbmselse
2771127668Sbms  ac_cv_prog_CPP=$CPP
2772127668Sbmsfi
2773127668Sbmsecho "$as_me:$LINENO: result: $CPP" >&5
2774127668Sbmsecho "${ECHO_T}$CPP" >&6
2775127668Sbmsac_preproc_ok=false
2776127668Sbmsfor ac_c_preproc_warn_flag in '' yes
2777127668Sbmsdo
2778127668Sbms  # Use a header file that comes with gcc, so configuring glibc
2779127668Sbms  # with a fresh cross-compiler works.
2780127668Sbms  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2781127668Sbms  # <limits.h> exists even on freestanding compilers.
2782127668Sbms  # On the NeXT, cc -E runs the code through the compiler's parser,
2783127668Sbms  # not just through cpp. "Syntax error" is here to catch this case.
2784127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2785127668Sbms#line $LINENO "configure"
2786127668Sbms/* confdefs.h.  */
2787127668Sbms_ACEOF
2788127668Sbmscat confdefs.h >>conftest.$ac_ext
2789127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2790127668Sbms/* end confdefs.h.  */
2791127668Sbms#ifdef __STDC__
2792127668Sbms# include <limits.h>
2793127668Sbms#else
2794127668Sbms# include <assert.h>
2795127668Sbms#endif
2796127668Sbms                     Syntax error
2797127668Sbms_ACEOF
2798127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799127668Sbms  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2800127668Sbms  ac_status=$?
2801127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
2802127668Sbms  rm -f conftest.er1
2803127668Sbms  cat conftest.err >&5
2804127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805127668Sbms  (exit $ac_status); } >/dev/null; then
2806127668Sbms  if test -s conftest.err; then
2807127668Sbms    ac_cpp_err=$ac_c_preproc_warn_flag
2808127668Sbms  else
2809127668Sbms    ac_cpp_err=
2810127668Sbms  fi
2811127668Sbmselse
2812127668Sbms  ac_cpp_err=yes
2813127668Sbmsfi
2814127668Sbmsif test -z "$ac_cpp_err"; then
281517680Spst  :
281617680Spstelse
2817127668Sbms  echo "$as_me: failed program was:" >&5
2818127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2819127668Sbms
2820127668Sbms  # Broken: fails on valid input.
2821127668Sbmscontinue
2822127668Sbmsfi
2823127668Sbmsrm -f conftest.err conftest.$ac_ext
2824127668Sbms
2825127668Sbms  # OK, works on sane cases.  Now check whether non-existent headers
2826127668Sbms  # can be detected and how.
2827127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2828127668Sbms#line $LINENO "configure"
2829127668Sbms/* confdefs.h.  */
2830127668Sbms_ACEOF
2831127668Sbmscat confdefs.h >>conftest.$ac_ext
2832127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2833127668Sbms/* end confdefs.h.  */
2834127668Sbms#include <ac_nonexistent.h>
2835127668Sbms_ACEOF
2836127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837127668Sbms  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2838127668Sbms  ac_status=$?
2839127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
2840127668Sbms  rm -f conftest.er1
2841127668Sbms  cat conftest.err >&5
2842127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843127668Sbms  (exit $ac_status); } >/dev/null; then
2844127668Sbms  if test -s conftest.err; then
2845127668Sbms    ac_cpp_err=$ac_c_preproc_warn_flag
2846127668Sbms  else
2847127668Sbms    ac_cpp_err=
2848127668Sbms  fi
2849127668Sbmselse
2850127668Sbms  ac_cpp_err=yes
2851127668Sbmsfi
2852127668Sbmsif test -z "$ac_cpp_err"; then
2853127668Sbms  # Broken: success on invalid input.
2854127668Sbmscontinue
2855127668Sbmselse
2856127668Sbms  echo "$as_me: failed program was:" >&5
2857127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2858127668Sbms
2859127668Sbms  # Passes both tests.
2860127668Sbmsac_preproc_ok=:
2861127668Sbmsbreak
2862127668Sbmsfi
2863127668Sbmsrm -f conftest.err conftest.$ac_ext
2864127668Sbms
2865127668Sbmsdone
2866127668Sbms# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867127668Sbmsrm -f conftest.err conftest.$ac_ext
2868127668Sbmsif $ac_preproc_ok; then
286956893Sfenner  :
287056893Sfennerelse
2871127668Sbms  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2872127668SbmsSee \`config.log' for more details." >&5
2873127668Sbmsecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2874127668SbmsSee \`config.log' for more details." >&2;}
2875127668Sbms   { (exit 1); exit 1; }; }
287617680Spstfi
2877127668Sbms
2878127668Sbmsac_ext=c
2879127668Sbmsac_cpp='$CPP $CPPFLAGS'
2880127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
2883127668Sbms
2884127668Sbms
2885127668Sbmsecho "$as_me:$LINENO: checking for egrep" >&5
2886127668Sbmsecho $ECHO_N "checking for egrep... $ECHO_C" >&6
2887127668Sbmsif test "${ac_cv_prog_egrep+set}" = set; then
2888127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
2889127668Sbmselse
2890127668Sbms  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2891127668Sbms    then ac_cv_prog_egrep='grep -E'
2892127668Sbms    else ac_cv_prog_egrep='egrep'
2893127668Sbms    fi
289417680Spstfi
2895127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2896127668Sbmsecho "${ECHO_T}$ac_cv_prog_egrep" >&6
2897127668Sbms EGREP=$ac_cv_prog_egrep
2898127668Sbms
2899127668Sbms
2900127668Sbmsecho "$as_me:$LINENO: checking for ANSI C header files" >&5
2901127668Sbmsecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2902127668Sbmsif test "${ac_cv_header_stdc+set}" = set; then
2903127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
2904127668Sbmselse
2905127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2906127668Sbms#line $LINENO "configure"
2907127668Sbms/* confdefs.h.  */
2908127668Sbms_ACEOF
2909127668Sbmscat confdefs.h >>conftest.$ac_ext
2910127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2911127668Sbms/* end confdefs.h.  */
2912127668Sbms#include <stdlib.h>
2913127668Sbms#include <stdarg.h>
2914127668Sbms#include <string.h>
2915127668Sbms#include <float.h>
2916127668Sbms
2917127668Sbmsint
2918127668Sbmsmain ()
2919127668Sbms{
2920127668Sbms
2921127668Sbms  ;
2922127668Sbms  return 0;
2923127668Sbms}
2924127668Sbms_ACEOF
2925127668Sbmsrm -f conftest.$ac_objext
2926127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927127668Sbms  (eval $ac_compile) 2>&5
2928127668Sbms  ac_status=$?
2929127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930127668Sbms  (exit $ac_status); } &&
2931127668Sbms         { ac_try='test -s conftest.$ac_objext'
2932127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933127668Sbms  (eval $ac_try) 2>&5
2934127668Sbms  ac_status=$?
2935127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936127668Sbms  (exit $ac_status); }; }; then
2937127668Sbms  ac_cv_header_stdc=yes
2938127668Sbmselse
2939127668Sbms  echo "$as_me: failed program was:" >&5
2940127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2941127668Sbms
2942127668Sbmsac_cv_header_stdc=no
2943127668Sbmsfi
2944127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
2945127668Sbms
2946127668Sbmsif test $ac_cv_header_stdc = yes; then
2947127668Sbms  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2948127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2949127668Sbms#line $LINENO "configure"
2950127668Sbms/* confdefs.h.  */
2951127668Sbms_ACEOF
2952127668Sbmscat confdefs.h >>conftest.$ac_ext
2953127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2954127668Sbms/* end confdefs.h.  */
2955127668Sbms#include <string.h>
2956127668Sbms
2957127668Sbms_ACEOF
2958127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959127668Sbms  $EGREP "memchr" >/dev/null 2>&1; then
2960127668Sbms  :
2961127668Sbmselse
2962127668Sbms  ac_cv_header_stdc=no
2963127668Sbmsfi
296417680Spstrm -f conftest*
2965127668Sbms
296656893Sfennerfi
2967127668Sbms
2968127668Sbmsif test $ac_cv_header_stdc = yes; then
2969127668Sbms  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2970127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2971127668Sbms#line $LINENO "configure"
2972127668Sbms/* confdefs.h.  */
2973127668Sbms_ACEOF
2974127668Sbmscat confdefs.h >>conftest.$ac_ext
2975127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2976127668Sbms/* end confdefs.h.  */
2977127668Sbms#include <stdlib.h>
2978127668Sbms
2979127668Sbms_ACEOF
2980127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981127668Sbms  $EGREP "free" >/dev/null 2>&1; then
2982127668Sbms  :
2983127668Sbmselse
2984127668Sbms  ac_cv_header_stdc=no
2985127668Sbmsfi
298656893Sfennerrm -f conftest*
2987127668Sbms
298817680Spstfi
2989127668Sbms
2990127668Sbmsif test $ac_cv_header_stdc = yes; then
2991127668Sbms  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2992127668Sbms  if test "$cross_compiling" = yes; then
2993127668Sbms  :
299417680Spstelse
2995127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2996127668Sbms#line $LINENO "configure"
2997127668Sbms/* confdefs.h.  */
2998127668Sbms_ACEOF
2999127668Sbmscat confdefs.h >>conftest.$ac_ext
3000127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3001127668Sbms/* end confdefs.h.  */
3002127668Sbms#include <ctype.h>
3003127668Sbms#if ((' ' & 0x0FF) == 0x020)
3004127668Sbms# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005127668Sbms# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3006127668Sbms#else
3007127668Sbms# define ISLOWER(c) \
3008127668Sbms                   (('a' <= (c) && (c) <= 'i') \
3009127668Sbms                     || ('j' <= (c) && (c) <= 'r') \
3010127668Sbms                     || ('s' <= (c) && (c) <= 'z'))
3011127668Sbms# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3012127668Sbms#endif
3013127668Sbms
3014127668Sbms#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3015127668Sbmsint
3016127668Sbmsmain ()
3017127668Sbms{
3018127668Sbms  int i;
3019127668Sbms  for (i = 0; i < 256; i++)
3020127668Sbms    if (XOR (islower (i), ISLOWER (i))
3021127668Sbms        || toupper (i) != TOUPPER (i))
3022127668Sbms      exit(2);
3023127668Sbms  exit (0);
3024127668Sbms}
3025127668Sbms_ACEOF
3026127668Sbmsrm -f conftest$ac_exeext
3027127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028127668Sbms  (eval $ac_link) 2>&5
3029127668Sbms  ac_status=$?
3030127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3032127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033127668Sbms  (eval $ac_try) 2>&5
3034127668Sbms  ac_status=$?
3035127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036127668Sbms  (exit $ac_status); }; }; then
3037127668Sbms  :
3038127668Sbmselse
3039127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
3040127668Sbmsecho "$as_me: failed program was:" >&5
3041127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3042127668Sbms
3043127668Sbms( exit $ac_status )
3044127668Sbmsac_cv_header_stdc=no
304517680Spstfi
3046127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3047127668Sbmsfi
3048127668Sbmsfi
3049127668Sbmsfi
3050127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3051127668Sbmsecho "${ECHO_T}$ac_cv_header_stdc" >&6
3052127668Sbmsif test $ac_cv_header_stdc = yes; then
305317680Spst
3054127668Sbmscat >>confdefs.h <<\_ACEOF
3055127668Sbms#define STDC_HEADERS 1
3056127668Sbms_ACEOF
3057127668Sbms
3058127668Sbmsfi
3059127668Sbms
3060127668Sbms# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3061127668Sbms
3062127668Sbms
3063127668Sbms
3064127668Sbms
3065127668Sbms
3066127668Sbms
3067127668Sbms
3068127668Sbms
3069127668Sbms
3070127668Sbmsfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3071127668Sbms                  inttypes.h stdint.h unistd.h
307217680Spstdo
3073127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3074127668Sbmsecho "$as_me:$LINENO: checking for $ac_header" >&5
3075127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3076127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
3077127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
307817680Spstelse
3079127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3080127668Sbms#line $LINENO "configure"
3081127668Sbms/* confdefs.h.  */
3082127668Sbms_ACEOF
3083127668Sbmscat confdefs.h >>conftest.$ac_ext
3084127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3085127668Sbms/* end confdefs.h.  */
3086127668Sbms$ac_includes_default
3087127668Sbms
3088127668Sbms#include <$ac_header>
3089127668Sbms_ACEOF
3090127668Sbmsrm -f conftest.$ac_objext
3091127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092127668Sbms  (eval $ac_compile) 2>&5
3093127668Sbms  ac_status=$?
3094127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095127668Sbms  (exit $ac_status); } &&
3096127668Sbms         { ac_try='test -s conftest.$ac_objext'
3097127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098127668Sbms  (eval $ac_try) 2>&5
3099127668Sbms  ac_status=$?
3100127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101127668Sbms  (exit $ac_status); }; }; then
3102127668Sbms  eval "$as_ac_Header=yes"
310317680Spstelse
3104127668Sbms  echo "$as_me: failed program was:" >&5
3105127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3106127668Sbms
3107127668Sbmseval "$as_ac_Header=no"
310817680Spstfi
3109127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
311017680Spstfi
3111127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3113127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then
3114127668Sbms  cat >>confdefs.h <<_ACEOF
3115127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3116127668Sbms_ACEOF
3117127668Sbms
3118127668Sbmsfi
3119127668Sbms
3120127668Sbmsdone
3121127668Sbms
3122127668Sbms
3123127668Sbms
3124127668Sbms
3125127668Sbms
3126146773Ssamfor ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3127127668Sbmsdo
3128127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3129127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
3130127668Sbms  echo "$as_me:$LINENO: checking for $ac_header" >&5
3131127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3132127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
3133127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
3134127668Sbmsfi
3135127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3136127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
313717680Spstelse
3138127668Sbms  # Is the header compilable?
3139127668Sbmsecho "$as_me:$LINENO: checking $ac_header usability" >&5
3140127668Sbmsecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3141127668Sbmscat >conftest.$ac_ext <<_ACEOF
3142127668Sbms#line $LINENO "configure"
3143127668Sbms/* confdefs.h.  */
3144127668Sbms_ACEOF
3145127668Sbmscat confdefs.h >>conftest.$ac_ext
3146127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3147127668Sbms/* end confdefs.h.  */
3148127668Sbms$ac_includes_default
3149127668Sbms#include <$ac_header>
3150127668Sbms_ACEOF
3151127668Sbmsrm -f conftest.$ac_objext
3152127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153127668Sbms  (eval $ac_compile) 2>&5
3154127668Sbms  ac_status=$?
3155127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156127668Sbms  (exit $ac_status); } &&
3157127668Sbms         { ac_try='test -s conftest.$ac_objext'
3158127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159127668Sbms  (eval $ac_try) 2>&5
3160127668Sbms  ac_status=$?
3161127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162127668Sbms  (exit $ac_status); }; }; then
3163127668Sbms  ac_header_compiler=yes
3164127668Sbmselse
3165127668Sbms  echo "$as_me: failed program was:" >&5
3166127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3167127668Sbms
3168127668Sbmsac_header_compiler=no
316917680Spstfi
3170127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
3171127668Sbmsecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
3172127668Sbmsecho "${ECHO_T}$ac_header_compiler" >&6
3173127668Sbms
3174127668Sbms# Is the header present?
3175127668Sbmsecho "$as_me:$LINENO: checking $ac_header presence" >&5
3176127668Sbmsecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3177127668Sbmscat >conftest.$ac_ext <<_ACEOF
3178127668Sbms#line $LINENO "configure"
3179127668Sbms/* confdefs.h.  */
3180127668Sbms_ACEOF
3181127668Sbmscat confdefs.h >>conftest.$ac_ext
3182127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3183127668Sbms/* end confdefs.h.  */
3184127668Sbms#include <$ac_header>
3185127668Sbms_ACEOF
3186127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3187127668Sbms  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3188127668Sbms  ac_status=$?
3189127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
3190127668Sbms  rm -f conftest.er1
3191127668Sbms  cat conftest.err >&5
3192127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193127668Sbms  (exit $ac_status); } >/dev/null; then
3194127668Sbms  if test -s conftest.err; then
3195127668Sbms    ac_cpp_err=$ac_c_preproc_warn_flag
3196127668Sbms  else
3197127668Sbms    ac_cpp_err=
3198127668Sbms  fi
3199127668Sbmselse
3200127668Sbms  ac_cpp_err=yes
3201127668Sbmsfi
3202127668Sbmsif test -z "$ac_cpp_err"; then
3203127668Sbms  ac_header_preproc=yes
3204127668Sbmselse
3205127668Sbms  echo "$as_me: failed program was:" >&5
3206127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3207127668Sbms
3208127668Sbms  ac_header_preproc=no
3209127668Sbmsfi
3210127668Sbmsrm -f conftest.err conftest.$ac_ext
3211127668Sbmsecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
3212127668Sbmsecho "${ECHO_T}$ac_header_preproc" >&6
3213127668Sbms
3214127668Sbms# So?  What about this header?
3215127668Sbmscase $ac_header_compiler:$ac_header_preproc in
3216127668Sbms  yes:no )
3217127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3218127668Sbmsecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3219127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3220127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3221127668Sbms    (
3222127668Sbms      cat <<\_ASBOX
3223127668Sbms## ------------------------------------ ##
3224127668Sbms## Report this to bug-autoconf@gnu.org. ##
3225127668Sbms## ------------------------------------ ##
3226127668Sbms_ASBOX
3227127668Sbms    ) |
3228127668Sbms      sed "s/^/$as_me: WARNING:     /" >&2
3229127668Sbms    ;;
3230127668Sbms  no:yes )
3231127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3232127668Sbmsecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3233127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3234127668Sbmsecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3235127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3236127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3237127668Sbms    (
3238127668Sbms      cat <<\_ASBOX
3239127668Sbms## ------------------------------------ ##
3240127668Sbms## Report this to bug-autoconf@gnu.org. ##
3241127668Sbms## ------------------------------------ ##
3242127668Sbms_ASBOX
3243127668Sbms    ) |
3244127668Sbms      sed "s/^/$as_me: WARNING:     /" >&2
3245127668Sbms    ;;
3246127668Sbmsesac
3247127668Sbmsecho "$as_me:$LINENO: checking for $ac_header" >&5
3248127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3249127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
3250127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
3251127668Sbmselse
3252127668Sbms  eval "$as_ac_Header=$ac_header_preproc"
3253127668Sbmsfi
3254127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3255127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3256127668Sbms
3257127668Sbmsfi
3258127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then
3259127668Sbms  cat >>confdefs.h <<_ACEOF
3260127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3261127668Sbms_ACEOF
3262127668Sbms
3263127668Sbmsfi
3264127668Sbms
326517680Spstdone
326617680Spst
3267127668Sbms
3268127668Sbmsfor ac_header in netinet/if_ether.h
3269127668Sbmsdo
3270127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3271127668Sbmsecho "$as_me:$LINENO: checking for $ac_header" >&5
3272127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3273127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
3274127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
327517680Spstelse
3276127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3277127668Sbms#line $LINENO "configure"
3278127668Sbms/* confdefs.h.  */
3279127668Sbms_ACEOF
3280127668Sbmscat confdefs.h >>conftest.$ac_ext
3281127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3282127668Sbms/* end confdefs.h.  */
328317680Spst#include <sys/types.h>
3284127668Sbms#include <sys/socket.h>
3285127668Sbms
3286127668Sbms#include <$ac_header>
3287127668Sbms_ACEOF
3288127668Sbmsrm -f conftest.$ac_objext
3289127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290127668Sbms  (eval $ac_compile) 2>&5
3291127668Sbms  ac_status=$?
3292127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293127668Sbms  (exit $ac_status); } &&
3294127668Sbms         { ac_try='test -s conftest.$ac_objext'
3295127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296127668Sbms  (eval $ac_try) 2>&5
3297127668Sbms  ac_status=$?
3298127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299127668Sbms  (exit $ac_status); }; }; then
3300127668Sbms  eval "$as_ac_Header=yes"
3301127668Sbmselse
3302127668Sbms  echo "$as_me: failed program was:" >&5
3303127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3304127668Sbms
3305127668Sbmseval "$as_ac_Header=no"
3306127668Sbmsfi
3307127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
3308127668Sbmsfi
3309127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3310127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3311127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then
3312127668Sbms  cat >>confdefs.h <<_ACEOF
3313127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3314127668Sbms_ACEOF
3315127668Sbms
3316127668Sbmsfi
3317127668Sbms
3318127668Sbmsdone
3319127668Sbms
3320146773Ssamif test "$ac_cv_header_netinet_if_ether_h" != yes; then
3321146773Ssam	#
3322146773Ssam	# The simple test didn't work.
3323146773Ssam	# Do we need to include <net/if.h> first?
3324146773Ssam	# Unset ac_cv_header_netinet_if_ether_h so we don't
3325146773Ssam	# treat the previous failure as a cached value and
3326146773Ssam	# suppress the next test.
3327146773Ssam	#
3328146773Ssam	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3329146773Ssamecho "$as_me: Rechecking with some additional includes" >&6;}
3330146773Ssam	unset ac_cv_header_netinet_if_ether_h
3331146773Ssam
3332146773Ssamfor ac_header in netinet/if_ether.h
3333146773Ssamdo
3334146773Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3335146773Ssamecho "$as_me:$LINENO: checking for $ac_header" >&5
3336146773Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3337146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then
3338146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
3339146773Ssamelse
3340146773Ssam  cat >conftest.$ac_ext <<_ACEOF
3341146773Ssam#line $LINENO "configure"
3342146773Ssam/* confdefs.h.  */
3343146773Ssam_ACEOF
3344146773Ssamcat confdefs.h >>conftest.$ac_ext
3345146773Ssamcat >>conftest.$ac_ext <<_ACEOF
3346146773Ssam/* end confdefs.h.  */
3347146773Ssam#include <sys/types.h>
3348146773Ssam#include <sys/socket.h>
3349146773Ssam#include <netinet/in.h>
3350146773Ssamstruct mbuf;
3351146773Ssamstruct rtentry;
3352146773Ssam#include <net/if.h>
3353146773Ssam
3354146773Ssam#include <$ac_header>
3355146773Ssam_ACEOF
3356146773Ssamrm -f conftest.$ac_objext
3357146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358146773Ssam  (eval $ac_compile) 2>&5
3359146773Ssam  ac_status=$?
3360146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361146773Ssam  (exit $ac_status); } &&
3362146773Ssam         { ac_try='test -s conftest.$ac_objext'
3363146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364146773Ssam  (eval $ac_try) 2>&5
3365146773Ssam  ac_status=$?
3366146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367146773Ssam  (exit $ac_status); }; }; then
3368146773Ssam  eval "$as_ac_Header=yes"
3369146773Ssamelse
3370146773Ssam  echo "$as_me: failed program was:" >&5
3371146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
3372146773Ssam
3373146773Ssameval "$as_ac_Header=no"
3374146773Ssamfi
3375146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
3376146773Ssamfi
3377146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3378146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3379146773Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then
3380146773Ssam  cat >>confdefs.h <<_ACEOF
3381146773Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3382146773Ssam_ACEOF
3383146773Ssam
3384146773Ssamfi
3385146773Ssam
3386146773Ssamdone
3387146773Ssam
3388146773Ssamfi
3389146773Ssam
3390127668Sbmsecho "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3391127668Sbmsecho $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3392127668Sbmsif test "${ac_cv_header_time+set}" = set; then
3393127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
3394127668Sbmselse
3395127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3396127668Sbms#line $LINENO "configure"
3397127668Sbms/* confdefs.h.  */
3398127668Sbms_ACEOF
3399127668Sbmscat confdefs.h >>conftest.$ac_ext
3400127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3401127668Sbms/* end confdefs.h.  */
3402127668Sbms#include <sys/types.h>
340317680Spst#include <sys/time.h>
340417680Spst#include <time.h>
3405127668Sbms
3406127668Sbmsint
3407127668Sbmsmain ()
3408127668Sbms{
3409127668Sbmsif ((struct tm *) 0)
3410127668Sbmsreturn 0;
3411127668Sbms  ;
3412127668Sbms  return 0;
3413127668Sbms}
3414127668Sbms_ACEOF
3415127668Sbmsrm -f conftest.$ac_objext
3416127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417127668Sbms  (eval $ac_compile) 2>&5
3418127668Sbms  ac_status=$?
3419127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420127668Sbms  (exit $ac_status); } &&
3421127668Sbms         { ac_try='test -s conftest.$ac_objext'
3422127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423127668Sbms  (eval $ac_try) 2>&5
3424127668Sbms  ac_status=$?
3425127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426127668Sbms  (exit $ac_status); }; }; then
342717680Spst  ac_cv_header_time=yes
342817680Spstelse
3429127668Sbms  echo "$as_me: failed program was:" >&5
3430127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3431127668Sbms
3432127668Sbmsac_cv_header_time=no
343317680Spstfi
3434127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
343517680Spstfi
3436127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3437127668Sbmsecho "${ECHO_T}$ac_cv_header_time" >&6
3438127668Sbmsif test $ac_cv_header_time = yes; then
343917680Spst
3440127668Sbmscat >>confdefs.h <<\_ACEOF
344117680Spst#define TIME_WITH_SYS_TIME 1
3442127668Sbms_ACEOF
344317680Spst
344417680Spstfi
344517680Spst
344617680Spst
344798524Sfennercase "$host_os" in
344839297Sfenner
344939297Sfennerlinux*)
3450127668Sbms	echo "$as_me:$LINENO: checking Linux kernel version" >&5
3451127668Sbmsecho $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
345275115Sfenner 	if test "$cross_compiling" = yes; then
3453127668Sbms 		if test "${ac_cv_linux_vers+set}" = set; then
3454127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
345539297Sfennerelse
345675115Sfenner  ac_cv_linux_vers=unknown
345775115Sfennerfi
345875115Sfenner
345975115Sfenner 	else
3460127668Sbms 		if test "${ac_cv_linux_vers+set}" = set; then
3461127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
346275115Sfennerelse
346339297Sfenner  ac_cv_linux_vers=`uname -r 2>&1 | \
346475115Sfenner 			sed -n -e '$s/.* //' -e '$s/\..*//p'`
346539297Sfennerfi
346639297Sfenner
346775115Sfenner 	fi
3468127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3469127668Sbmsecho "${ECHO_T}$ac_cv_linux_vers" >&6
347075115Sfenner 	if test $ac_cv_linux_vers = unknown ; then
3471127668Sbms 		{ { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3472127668Sbmsecho "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3473127668Sbms   { (exit 1); exit 1; }; }
347475115Sfenner 	fi
347539297Sfenner	if test $ac_cv_linux_vers -lt 2 ; then
3476127668Sbms		{ { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3477127668Sbmsecho "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3478127668Sbms   { (exit 1); exit 1; }; }
347939297Sfenner	fi
348039297Sfenner	;;
348139297Sfenner
348239297Sfenner*)
348339297Sfenner	;;
348439297Sfenneresac
348539297Sfenner
348656893Sfenner
3487127668Sbms
3488127668Sbmsfor ac_header in smi.h
348956893Sfennerdo
3490127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
3492127668Sbms  echo "$as_me:$LINENO: checking for $ac_header" >&5
3493127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
3495127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
3496127668Sbmsfi
3497127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3498127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
349956893Sfennerelse
3500127668Sbms  # Is the header compilable?
3501127668Sbmsecho "$as_me:$LINENO: checking $ac_header usability" >&5
3502127668Sbmsecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3503127668Sbmscat >conftest.$ac_ext <<_ACEOF
3504127668Sbms#line $LINENO "configure"
3505127668Sbms/* confdefs.h.  */
3506127668Sbms_ACEOF
3507127668Sbmscat confdefs.h >>conftest.$ac_ext
3508127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3509127668Sbms/* end confdefs.h.  */
3510127668Sbms$ac_includes_default
3511127668Sbms#include <$ac_header>
3512127668Sbms_ACEOF
3513127668Sbmsrm -f conftest.$ac_objext
3514127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515127668Sbms  (eval $ac_compile) 2>&5
3516127668Sbms  ac_status=$?
3517127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518127668Sbms  (exit $ac_status); } &&
3519127668Sbms         { ac_try='test -s conftest.$ac_objext'
3520127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521127668Sbms  (eval $ac_try) 2>&5
3522127668Sbms  ac_status=$?
3523127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524127668Sbms  (exit $ac_status); }; }; then
3525127668Sbms  ac_header_compiler=yes
352656893Sfennerelse
3527127668Sbms  echo "$as_me: failed program was:" >&5
3528127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3529127668Sbms
3530127668Sbmsac_header_compiler=no
353156893Sfennerfi
3532127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
3533127668Sbmsecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
3534127668Sbmsecho "${ECHO_T}$ac_header_compiler" >&6
3535127668Sbms
3536127668Sbms# Is the header present?
3537127668Sbmsecho "$as_me:$LINENO: checking $ac_header presence" >&5
3538127668Sbmsecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3539127668Sbmscat >conftest.$ac_ext <<_ACEOF
3540127668Sbms#line $LINENO "configure"
3541127668Sbms/* confdefs.h.  */
3542127668Sbms_ACEOF
3543127668Sbmscat confdefs.h >>conftest.$ac_ext
3544127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3545127668Sbms/* end confdefs.h.  */
3546127668Sbms#include <$ac_header>
3547127668Sbms_ACEOF
3548127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3549127668Sbms  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3550127668Sbms  ac_status=$?
3551127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
3552127668Sbms  rm -f conftest.er1
3553127668Sbms  cat conftest.err >&5
3554127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555127668Sbms  (exit $ac_status); } >/dev/null; then
3556127668Sbms  if test -s conftest.err; then
3557127668Sbms    ac_cpp_err=$ac_c_preproc_warn_flag
3558127668Sbms  else
3559127668Sbms    ac_cpp_err=
3560127668Sbms  fi
3561127668Sbmselse
3562127668Sbms  ac_cpp_err=yes
356356893Sfennerfi
3564127668Sbmsif test -z "$ac_cpp_err"; then
3565127668Sbms  ac_header_preproc=yes
356656893Sfennerelse
3567127668Sbms  echo "$as_me: failed program was:" >&5
3568127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3569127668Sbms
3570127668Sbms  ac_header_preproc=no
357156893Sfennerfi
3572127668Sbmsrm -f conftest.err conftest.$ac_ext
3573127668Sbmsecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
3574127668Sbmsecho "${ECHO_T}$ac_header_preproc" >&6
3575127668Sbms
3576127668Sbms# So?  What about this header?
3577127668Sbmscase $ac_header_compiler:$ac_header_preproc in
3578127668Sbms  yes:no )
3579127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3580127668Sbmsecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3581127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3582127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3583127668Sbms    (
3584127668Sbms      cat <<\_ASBOX
3585127668Sbms## ------------------------------------ ##
3586127668Sbms## Report this to bug-autoconf@gnu.org. ##
3587127668Sbms## ------------------------------------ ##
3588127668Sbms_ASBOX
3589127668Sbms    ) |
3590127668Sbms      sed "s/^/$as_me: WARNING:     /" >&2
3591127668Sbms    ;;
3592127668Sbms  no:yes )
3593127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3594127668Sbmsecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3595127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3596127668Sbmsecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3597127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3598127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3599127668Sbms    (
3600127668Sbms      cat <<\_ASBOX
3601127668Sbms## ------------------------------------ ##
3602127668Sbms## Report this to bug-autoconf@gnu.org. ##
3603127668Sbms## ------------------------------------ ##
3604127668Sbms_ASBOX
3605127668Sbms    ) |
3606127668Sbms      sed "s/^/$as_me: WARNING:     /" >&2
3607127668Sbms    ;;
3608127668Sbmsesac
3609127668Sbmsecho "$as_me:$LINENO: checking for $ac_header" >&5
3610127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3611127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
3612127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
3613127668Sbmselse
3614127668Sbms  eval "$as_ac_Header=$ac_header_preproc"
3615127668Sbmsfi
3616127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3617127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3618127668Sbms
3619127668Sbmsfi
3620127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then
3621127668Sbms  cat >>confdefs.h <<_ACEOF
3622127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3623127668Sbms_ACEOF
3624127668Sbms
3625127668Sbmsfi
3626127668Sbms
362756893Sfennerdone
362856893Sfenner
3629127668Sbms
3630127668Sbmsecho "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3631127668Sbmsecho $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3632127668Sbmsif test "${ac_cv_lib_smi_smiInit+set}" = set; then
3633127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
363456893Sfennerelse
3635127668Sbms  ac_check_lib_save_LIBS=$LIBS
363656893SfennerLIBS="-lsmi  $LIBS"
3637127668Sbmscat >conftest.$ac_ext <<_ACEOF
3638127668Sbms#line $LINENO "configure"
3639127668Sbms/* confdefs.h.  */
3640127668Sbms_ACEOF
3641127668Sbmscat confdefs.h >>conftest.$ac_ext
3642127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3643127668Sbms/* end confdefs.h.  */
3644127668Sbms
364575115Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
3646127668Sbms#ifdef __cplusplus
3647127668Sbmsextern "C"
3648127668Sbms#endif
364975115Sfenner/* We use char because int might match the return type of a gcc2
3650127668Sbms   builtin and then its argument prototype would still apply.  */
3651127668Sbmschar smiInit ();
3652127668Sbmsint
3653127668Sbmsmain ()
3654127668Sbms{
3655127668SbmssmiInit ();
3656127668Sbms  ;
3657127668Sbms  return 0;
3658127668Sbms}
3659127668Sbms_ACEOF
3660127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
3661127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662127668Sbms  (eval $ac_link) 2>&5
3663127668Sbms  ac_status=$?
3664127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665127668Sbms  (exit $ac_status); } &&
3666127668Sbms         { ac_try='test -s conftest$ac_exeext'
3667127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668127668Sbms  (eval $ac_try) 2>&5
3669127668Sbms  ac_status=$?
3670127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671127668Sbms  (exit $ac_status); }; }; then
3672127668Sbms  ac_cv_lib_smi_smiInit=yes
367356893Sfennerelse
3674127668Sbms  echo "$as_me: failed program was:" >&5
3675127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
367656893Sfenner
3677127668Sbmsac_cv_lib_smi_smiInit=no
367856893Sfennerfi
3679127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3680127668SbmsLIBS=$ac_check_lib_save_LIBS
3681127668Sbmsfi
3682127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3683127668Sbmsecho "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3684127668Sbmsif test $ac_cv_lib_smi_smiInit = yes; then
3685127668Sbms  cat >>confdefs.h <<_ACEOF
3686127668Sbms#define HAVE_LIBSMI 1
3687127668Sbms_ACEOF
368856893Sfenner
368956893Sfenner  LIBS="-lsmi $LIBS"
369056893Sfenner
369156893Sfennerfi
369256893Sfenner
369398524Sfennerif test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
369498524Sfennerthen
3695127668Sbmsecho "$as_me:$LINENO: checking whether to enable libsmi" >&5
3696127668Sbmsecho $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
369756893Sfenner        if test "$cross_compiling" = yes; then
3698127668Sbms   echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3699127668Sbmsecho "${ECHO_T}not when cross-compiling" >&6
370075115Sfenner  libsmi=no
370175115Sfenner
370256893Sfennerelse
3703127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3704127668Sbms#line $LINENO "configure"
3705127668Sbms/* confdefs.h.  */
3706127668Sbms_ACEOF
3707127668Sbmscat confdefs.h >>conftest.$ac_ext
3708127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3709127668Sbms/* end confdefs.h.  */
371056893Sfenner /* libsmi available check */
371156893Sfenner#include <smi.h>
371256893Sfennermain()
371356893Sfenner{
371475115Sfenner  int current, revision, age, n;
371575115Sfenner  const int required = 2;
3716127668Sbms  if (smiInit(""))
371756893Sfenner    exit(1);
371875115Sfenner  if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
371975115Sfenner    exit(2);
372075115Sfenner  n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
372175115Sfenner  if (n != 3)
372275115Sfenner    exit(3);
372375115Sfenner  if (required < current - age || required > current)
372475115Sfenner    exit(4);
372575115Sfenner  exit(0);
372656893Sfenner}
372756893Sfenner
3728127668Sbms_ACEOF
3729127668Sbmsrm -f conftest$ac_exeext
3730127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3731127668Sbms  (eval $ac_link) 2>&5
3732127668Sbms  ac_status=$?
3733127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3735127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736127668Sbms  (eval $ac_try) 2>&5
3737127668Sbms  ac_status=$?
3738127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739127668Sbms  (exit $ac_status); }; }; then
3740127668Sbms   echo "$as_me:$LINENO: result: yes" >&5
3741127668Sbmsecho "${ECHO_T}yes" >&6
3742127668Sbms  cat >>confdefs.h <<\_ACEOF
374356893Sfenner#define LIBSMI 1
3744127668Sbms_ACEOF
374556893Sfenner
374656893Sfenner  libsmi=yes
374756893Sfennerelse
3748127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
3749127668Sbmsecho "$as_me: failed program was:" >&5
3750127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3751127668Sbms
3752127668Sbms( exit $ac_status )
3753127668Sbms case $? in
3754127668Sbms  1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3755127668Sbmsecho "${ECHO_T}no - smiInit failed" >&6 ;;
3756127668Sbms  2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3757127668Sbmsecho "${ECHO_T}no - header/library version mismatch" >&6 ;;
3758127668Sbms  3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3759127668Sbmsecho "${ECHO_T}no - can't determine library version" >&6 ;;
3760127668Sbms  4) echo "$as_me:$LINENO: result: no - too old" >&5
3761127668Sbmsecho "${ECHO_T}no - too old" >&6 ;;
3762127668Sbms  *) echo "$as_me:$LINENO: result: no" >&5
3763127668Sbmsecho "${ECHO_T}no" >&6 ;;
376498524Sfenner  esac
376556893Sfenner  libsmi=no
376656893Sfennerfi
3767127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
376856893Sfennerfi
376998524Sfennerfi
377056893Sfenner
3771127668Sbmsecho "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3772127668Sbmsecho $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
377398524Sfenner# Check whether --enable-smb or --disable-smb was given.
377498524Sfennerif test "${enable_smb+set}" = set; then
377598524Sfenner  enableval="$enable_smb"
3776127668Sbms
377798524Sfennerelse
377898524Sfenner  enableval=yes
3779127668Sbmsfi;
378098524Sfennercase "$enableval" in
3781127668Sbmsyes)	echo "$as_me:$LINENO: result: yes" >&5
3782127668Sbmsecho "${ECHO_T}yes" >&6
3783127668Sbms	{ echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3784127668Sbmsecho "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3785127668Sbms	cat >>confdefs.h <<\_ACEOF
378698524Sfenner#define TCPDUMP_DO_SMB 1
3787127668Sbms_ACEOF
378898524Sfenner
378998524Sfenner	LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
379098524Sfenner	;;
3791127668Sbms*)	echo "$as_me:$LINENO: result: no" >&5
3792127668Sbmsecho "${ECHO_T}no" >&6
379398524Sfenner	;;
379498524Sfenneresac
379598524Sfenner
3796146773Ssam
3797146773Ssam# Check whether --with-user or --without-user was given.
3798146773Ssamif test "${with_user+set}" = set; then
3799146773Ssam  withval="$with_user"
3800146773Ssam
3801146773Ssamfi;
3802146773Ssamecho "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3803146773Ssamecho $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3804146773Ssamif test ! -z "$with_user" ; then
3805146773Ssam        cat >>confdefs.h <<_ACEOF
3806146773Ssam#define WITH_USER "$withval"
3807146773Ssam_ACEOF
3808146773Ssam
3809146773Ssam       echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3810146773Ssamecho "${ECHO_T}to \"$withval\"" >&6
3811146773Ssamelse
3812146773Ssam       echo "$as_me:$LINENO: result: no" >&5
3813146773Ssamecho "${ECHO_T}no" >&6
3814146773Ssamfi
3815146773Ssam
3816146773Ssam
3817146773Ssam# Check whether --with-chroot or --without-chroot was given.
3818146773Ssamif test "${with_chroot+set}" = set; then
3819146773Ssam  withval="$with_chroot"
3820146773Ssam
3821146773Ssamfi;
3822146773Ssamecho "$as_me:$LINENO: checking whether to chroot" >&5
3823146773Ssamecho $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3824146773Ssamif test ! -z "$with_chroot" ; then
3825146773Ssam        cat >>confdefs.h <<_ACEOF
3826146773Ssam#define WITH_CHROOT "$withval"
3827146773Ssam_ACEOF
3828146773Ssam
3829146773Ssam       echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3830146773Ssamecho "${ECHO_T}to \"$withval\"" >&6
3831146773Ssamelse
3832146773Ssam       echo "$as_me:$LINENO: result: no" >&5
3833146773Ssamecho "${ECHO_T}no" >&6
3834146773Ssamfi
3835146773Ssam
3836127668Sbmsecho "$as_me:$LINENO: checking whether to enable ipv6" >&5
3837127668Sbmsecho $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
383856893Sfenner# Check whether --enable-ipv6 or --disable-ipv6 was given.
383956893Sfennerif test "${enable_ipv6+set}" = set; then
384056893Sfenner  enableval="$enable_ipv6"
384156893Sfenner   case "$enableval" in
3842127668Sbmsyes)   echo "$as_me:$LINENO: result: yes" >&5
3843127668Sbmsecho "${ECHO_T}yes" >&6
3844127668Sbms       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 $LOCALSRC"
3845127668Sbms       cat >>confdefs.h <<\_ACEOF
384656893Sfenner#define INET6 1
3847127668Sbms_ACEOF
384856893Sfenner
384956893Sfenner       ipv6=yes
385056893Sfenner       ;;
385156893Sfenner*)
3852127668Sbms       echo "$as_me:$LINENO: result: no" >&5
3853127668Sbmsecho "${ECHO_T}no" >&6
385456893Sfenner       ipv6=no
385556893Sfenner       ;;
3856127668Sbms  esac
385756893Sfennerelse
385856893Sfenner  if test "$cross_compiling" = yes; then
3859127668Sbms   echo "$as_me:$LINENO: result: no" >&5
3860127668Sbmsecho "${ECHO_T}no" >&6
386156893Sfenner  ipv6=no
386256893Sfenner
386356893Sfennerelse
3864127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3865127668Sbms#line $LINENO "configure"
3866127668Sbms/* confdefs.h.  */
3867127668Sbms_ACEOF
3868127668Sbmscat confdefs.h >>conftest.$ac_ext
3869127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3870127668Sbms/* end confdefs.h.  */
387156893Sfenner /* AF_INET6 available check */
387256893Sfenner#include <sys/types.h>
387356893Sfenner#include <sys/socket.h>
387456893Sfennermain()
387556893Sfenner{
387656893Sfenner if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
387756893Sfenner   exit(1);
387856893Sfenner else
387956893Sfenner   exit(0);
388056893Sfenner}
388156893Sfenner
3882127668Sbms_ACEOF
3883127668Sbmsrm -f conftest$ac_exeext
3884127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3885127668Sbms  (eval $ac_link) 2>&5
3886127668Sbms  ac_status=$?
3887127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3889127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890127668Sbms  (eval $ac_try) 2>&5
3891127668Sbms  ac_status=$?
3892127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893127668Sbms  (exit $ac_status); }; }; then
3894127668Sbms   echo "$as_me:$LINENO: result: yes" >&5
3895127668Sbmsecho "${ECHO_T}yes" >&6
3896127668Sbms  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 $LOCALSRC"
3897127668Sbms  cat >>confdefs.h <<\_ACEOF
389856893Sfenner#define INET6 1
3899127668Sbms_ACEOF
390056893Sfenner
390156893Sfenner  ipv6=yes
390256893Sfennerelse
3903127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
3904127668Sbmsecho "$as_me: failed program was:" >&5
3905127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3906127668Sbms
3907127668Sbms( exit $ac_status )
3908127668Sbms echo "$as_me:$LINENO: result: no" >&5
3909127668Sbmsecho "${ECHO_T}no" >&6
391056893Sfenner  ipv6=no
391156893Sfennerfi
3912127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
391356893Sfennerfi
3914127668Sbmsfi;
391556893Sfenner
391656893Sfenneripv6type=unknown
391756893Sfenneripv6lib=none
391856893Sfenneripv6trylibc=no
391956893Sfenner
392056893Sfennerif test "$ipv6" = "yes"; then
3921127668Sbms	echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3922127668Sbmsecho $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
392356893Sfenner	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
392456893Sfenner		case $i in
392556893Sfenner		inria)
3926127668Sbms						cat >conftest.$ac_ext <<_ACEOF
3927127668Sbms#line $LINENO "configure"
3928127668Sbms/* confdefs.h.  */
3929127668Sbms_ACEOF
3930127668Sbmscat confdefs.h >>conftest.$ac_ext
3931127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3932127668Sbms/* end confdefs.h.  */
393356893Sfenner#include <netinet/in.h>
393456893Sfenner#ifdef IPV6_INRIA_VERSION
393556893Sfenneryes
393656893Sfenner#endif
3937127668Sbms_ACEOF
393856893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
394056893Sfenner  ipv6type=$i;
394156893Sfenner				CFLAGS="-DINET6 $CFLAGS"
394256893Sfennerfi
394356893Sfennerrm -f conftest*
394456893Sfenner
394556893Sfenner			;;
394656893Sfenner		kame)
3947127668Sbms						cat >conftest.$ac_ext <<_ACEOF
3948127668Sbms#line $LINENO "configure"
3949127668Sbms/* confdefs.h.  */
3950127668Sbms_ACEOF
3951127668Sbmscat confdefs.h >>conftest.$ac_ext
3952127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3953127668Sbms/* end confdefs.h.  */
395456893Sfenner#include <netinet/in.h>
395556893Sfenner#ifdef __KAME__
395656893Sfenneryes
395756893Sfenner#endif
3958127668Sbms_ACEOF
395956893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3960127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
396156893Sfenner  ipv6type=$i;
396256893Sfenner				ipv6lib=inet6;
396356893Sfenner				ipv6libdir=/usr/local/v6/lib;
396456893Sfenner				ipv6trylibc=yes;
396556893Sfenner				CFLAGS="-DINET6 $CFLAGS"
396656893Sfennerfi
396756893Sfennerrm -f conftest*
396856893Sfenner
396956893Sfenner			;;
397056893Sfenner		linux-glibc)
3971127668Sbms						cat >conftest.$ac_ext <<_ACEOF
3972127668Sbms#line $LINENO "configure"
3973127668Sbms/* confdefs.h.  */
3974127668Sbms_ACEOF
3975127668Sbmscat confdefs.h >>conftest.$ac_ext
3976127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3977127668Sbms/* end confdefs.h.  */
397856893Sfenner#include <features.h>
397956893Sfenner#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
398056893Sfenneryes
398156893Sfenner#endif
3982127668Sbms_ACEOF
398356893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3984127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
398556893Sfenner  ipv6type=$i;
398656893Sfenner				CFLAGS="-DINET6 $CFLAGS"
398756893Sfennerfi
398856893Sfennerrm -f conftest*
398956893Sfenner
399056893Sfenner			;;
399156893Sfenner		linux-libinet6)
3992127668Sbms																		if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
399356893Sfenner				ipv6type=$i
399456893Sfenner				ipv6lib=inet6
399556893Sfenner				ipv6libdir=/usr/inet6/lib
399656893Sfenner				ipv6trylibc=yes;
399756893Sfenner				CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
399856893Sfenner			fi
399956893Sfenner			;;
400056893Sfenner		toshiba)
4001127668Sbms			cat >conftest.$ac_ext <<_ACEOF
4002127668Sbms#line $LINENO "configure"
4003127668Sbms/* confdefs.h.  */
4004127668Sbms_ACEOF
4005127668Sbmscat confdefs.h >>conftest.$ac_ext
4006127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4007127668Sbms/* end confdefs.h.  */
400856893Sfenner#include <sys/param.h>
400956893Sfenner#ifdef _TOSHIBA_INET6
401056893Sfenneryes
401156893Sfenner#endif
4012127668Sbms_ACEOF
401356893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
401556893Sfenner  ipv6type=$i;
401656893Sfenner				ipv6lib=inet6;
401756893Sfenner				ipv6libdir=/usr/local/v6/lib;
401856893Sfenner				CFLAGS="-DINET6 $CFLAGS"
401956893Sfennerfi
402056893Sfennerrm -f conftest*
402156893Sfenner
402256893Sfenner			;;
402356893Sfenner		v6d)
4024127668Sbms			cat >conftest.$ac_ext <<_ACEOF
4025127668Sbms#line $LINENO "configure"
4026127668Sbms/* confdefs.h.  */
4027127668Sbms_ACEOF
4028127668Sbmscat confdefs.h >>conftest.$ac_ext
4029127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4030127668Sbms/* end confdefs.h.  */
403156893Sfenner#include </usr/local/v6/include/sys/v6config.h>
403256893Sfenner#ifdef __V6D__
403356893Sfenneryes
403456893Sfenner#endif
4035127668Sbms_ACEOF
403656893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
403856893Sfenner  ipv6type=$i;
403956893Sfenner				ipv6lib=v6;
404056893Sfenner				ipv6libdir=/usr/local/v6/lib;
404156893Sfenner				CFLAGS="-I/usr/local/v6/include $CFLAGS"
404256893Sfennerfi
404356893Sfennerrm -f conftest*
404456893Sfenner
404556893Sfenner			;;
404656893Sfenner		zeta)
4047127668Sbms			cat >conftest.$ac_ext <<_ACEOF
4048127668Sbms#line $LINENO "configure"
4049127668Sbms/* confdefs.h.  */
4050127668Sbms_ACEOF
4051127668Sbmscat confdefs.h >>conftest.$ac_ext
4052127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4053127668Sbms/* end confdefs.h.  */
405456893Sfenner#include <sys/param.h>
405556893Sfenner#ifdef _ZETA_MINAMI_INET6
405656893Sfenneryes
405756893Sfenner#endif
4058127668Sbms_ACEOF
405956893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
406156893Sfenner  ipv6type=$i;
406256893Sfenner				ipv6lib=inet6;
406356893Sfenner				ipv6libdir=/usr/local/v6/lib;
406456893Sfenner				CFLAGS="-DINET6 $CFLAGS"
406556893Sfennerfi
406656893Sfennerrm -f conftest*
406756893Sfenner
406856893Sfenner			;;
406956893Sfenner		esac
407056893Sfenner		if test "$ipv6type" != "unknown"; then
407156893Sfenner			break
407256893Sfenner		fi
407356893Sfenner	done
4074127668Sbms	echo "$as_me:$LINENO: result: $ipv6type" >&5
4075127668Sbmsecho "${ECHO_T}$ipv6type" >&6
407656893Sfennerfi
407756893Sfenner
407856893Sfennerif test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
407956893Sfenner	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
408056893Sfenner		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
408156893Sfenner		echo "You have $ipv6lib library, using it"
408256893Sfenner	else
408356893Sfenner		if test "$ipv6trylibc" = "yes"; then
408456893Sfenner			echo "You do not have $ipv6lib library, using libc"
408556893Sfenner		else
408656893Sfenner			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
408756893Sfenner			echo "You need to fetch lib$ipv6lib.a from appropriate"
408856893Sfenner			echo 'ipv6 kit and compile beforehand.'
408956893Sfenner			exit 1
409056893Sfenner		fi
409156893Sfenner	fi
409256893Sfennerfi
409356893Sfenner
409456893Sfenner
409556893Sfennerif test "$ipv6" = "yes"; then
4096127668Sbms	#
4097127668Sbms	# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4098127668Sbms	# function in libc; there are "ngetaddrinfo()" and
4099127668Sbms	# "ogetaddrinfo()" functions, and <netdb.h> #defines
4100127668Sbms	# "getaddrinfo" to be either "ngetaddrinfo" or
4101127668Sbms	# "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4102127668Sbms	# or _XOPEN_SOURCE_EXTENDED are defined or not.
4103127668Sbms	#
4104127668Sbms	# So this test doesn't work on Tru64 5.1, and possibly
4105127668Sbms	# on other 5.x releases.  This causes the configure
4106127668Sbms	# script to become confused, and results in libpcap
4107127668Sbms	# being unbuildable.
4108127668Sbms	#
4109127668Sbms	echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4110127668Sbmsecho $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4111127668Sbmsif test "${ac_cv_search_getaddrinfo+set}" = set; then
4112127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
411356893Sfennerelse
4114127668Sbms  ac_func_search_save_LIBS=$LIBS
4115127668Sbmsac_cv_search_getaddrinfo=no
4116127668Sbmscat >conftest.$ac_ext <<_ACEOF
4117127668Sbms#line $LINENO "configure"
4118127668Sbms/* confdefs.h.  */
4119127668Sbms_ACEOF
4120127668Sbmscat confdefs.h >>conftest.$ac_ext
4121127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4122127668Sbms/* end confdefs.h.  */
4123127668Sbms
412456893Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
4125127668Sbms#ifdef __cplusplus
4126127668Sbmsextern "C"
4127127668Sbms#endif
412856893Sfenner/* We use char because int might match the return type of a gcc2
4129127668Sbms   builtin and then its argument prototype would still apply.  */
4130127668Sbmschar getaddrinfo ();
4131127668Sbmsint
4132127668Sbmsmain ()
4133127668Sbms{
4134127668Sbmsgetaddrinfo ();
4135127668Sbms  ;
4136127668Sbms  return 0;
4137127668Sbms}
4138127668Sbms_ACEOF
4139127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
4140127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4141127668Sbms  (eval $ac_link) 2>&5
4142127668Sbms  ac_status=$?
4143127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144127668Sbms  (exit $ac_status); } &&
4145127668Sbms         { ac_try='test -s conftest$ac_exeext'
4146127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147127668Sbms  (eval $ac_try) 2>&5
4148127668Sbms  ac_status=$?
4149127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150127668Sbms  (exit $ac_status); }; }; then
415175115Sfenner  ac_cv_search_getaddrinfo="none required"
415275115Sfennerelse
4153127668Sbms  echo "$as_me: failed program was:" >&5
4154127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4155127668Sbms
415675115Sfennerfi
4157127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4158127668Sbmsif test "$ac_cv_search_getaddrinfo" = no; then
4159127668Sbms  for ac_lib in socket; do
4160127668Sbms    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4161127668Sbms    cat >conftest.$ac_ext <<_ACEOF
4162127668Sbms#line $LINENO "configure"
4163127668Sbms/* confdefs.h.  */
4164127668Sbms_ACEOF
4165127668Sbmscat confdefs.h >>conftest.$ac_ext
4166127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4167127668Sbms/* end confdefs.h.  */
4168127668Sbms
416975115Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
4170127668Sbms#ifdef __cplusplus
4171127668Sbmsextern "C"
4172127668Sbms#endif
417375115Sfenner/* We use char because int might match the return type of a gcc2
4174127668Sbms   builtin and then its argument prototype would still apply.  */
4175127668Sbmschar getaddrinfo ();
4176127668Sbmsint
4177127668Sbmsmain ()
4178127668Sbms{
4179127668Sbmsgetaddrinfo ();
4180127668Sbms  ;
4181127668Sbms  return 0;
4182127668Sbms}
4183127668Sbms_ACEOF
4184127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
4185127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4186127668Sbms  (eval $ac_link) 2>&5
4187127668Sbms  ac_status=$?
4188127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189127668Sbms  (exit $ac_status); } &&
4190127668Sbms         { ac_try='test -s conftest$ac_exeext'
4191127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192127668Sbms  (eval $ac_try) 2>&5
4193127668Sbms  ac_status=$?
4194127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195127668Sbms  (exit $ac_status); }; }; then
4196127668Sbms  ac_cv_search_getaddrinfo="-l$ac_lib"
419775115Sfennerbreak
419856893Sfennerelse
4199127668Sbms  echo "$as_me: failed program was:" >&5
4200127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4201127668Sbms
420256893Sfennerfi
4203127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4204127668Sbms  done
420556893Sfennerfi
4206127668SbmsLIBS=$ac_func_search_save_LIBS
4207127668Sbmsfi
4208127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4209127668Sbmsecho "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4210127668Sbmsif test "$ac_cv_search_getaddrinfo" != no; then
421175115Sfenner  test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4212127668Sbms  	echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4213127668Sbmsecho $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4214127668Sbms	if test "${td_cv_buggygetaddrinfo+set}" = set; then
4215127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
421656893Sfennerelse
4217127668Sbms  if test "$cross_compiling" = yes; then
4218127668Sbms  td_cv_buggygetaddrinfo=yes
4219127668Sbmselse
4220127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4221127668Sbms#line $LINENO "configure"
4222127668Sbms/* confdefs.h.  */
4223127668Sbms_ACEOF
4224127668Sbmscat confdefs.h >>conftest.$ac_ext
4225127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4226127668Sbms/* end confdefs.h.  */
422756893Sfenner
422856893Sfenner#include <sys/types.h>
422956893Sfenner#include <netdb.h>
423056893Sfenner#include <string.h>
423156893Sfenner#include <sys/socket.h>
423256893Sfenner#include <netinet/in.h>
423356893Sfenner
423456893Sfennermain()
423556893Sfenner{
423656893Sfenner  int passive, gaierr, inet4 = 0, inet6 = 0;
423756893Sfenner  struct addrinfo hints, *ai, *aitop;
423856893Sfenner  char straddr[INET6_ADDRSTRLEN], strport[16];
423956893Sfenner
424056893Sfenner  for (passive = 0; passive <= 1; passive++) {
424156893Sfenner    memset(&hints, 0, sizeof(hints));
424256893Sfenner    hints.ai_family = AF_UNSPEC;
424356893Sfenner    hints.ai_flags = passive ? AI_PASSIVE : 0;
424456893Sfenner    hints.ai_socktype = SOCK_STREAM;
4245127668Sbms    hints.ai_protocol = IPPROTO_TCP;
424656893Sfenner    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
424756893Sfenner      (void)gai_strerror(gaierr);
424856893Sfenner      goto bad;
424956893Sfenner    }
425056893Sfenner    for (ai = aitop; ai; ai = ai->ai_next) {
425156893Sfenner      if (ai->ai_addr == NULL ||
425256893Sfenner          ai->ai_addrlen == 0 ||
425356893Sfenner          getnameinfo(ai->ai_addr, ai->ai_addrlen,
425456893Sfenner                      straddr, sizeof(straddr), strport, sizeof(strport),
425556893Sfenner                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
425656893Sfenner        goto bad;
425756893Sfenner      }
425856893Sfenner      switch (ai->ai_family) {
425956893Sfenner      case AF_INET:
426056893Sfenner        if (strcmp(strport, "54321") != 0) {
426156893Sfenner          goto bad;
426256893Sfenner        }
426356893Sfenner        if (passive) {
426456893Sfenner          if (strcmp(straddr, "0.0.0.0") != 0) {
426556893Sfenner            goto bad;
426656893Sfenner          }
426756893Sfenner        } else {
426856893Sfenner          if (strcmp(straddr, "127.0.0.1") != 0) {
426956893Sfenner            goto bad;
427056893Sfenner          }
427156893Sfenner        }
427256893Sfenner        inet4++;
427356893Sfenner        break;
427456893Sfenner      case AF_INET6:
427556893Sfenner        if (strcmp(strport, "54321") != 0) {
427656893Sfenner          goto bad;
427756893Sfenner        }
427856893Sfenner        if (passive) {
427956893Sfenner          if (strcmp(straddr, "::") != 0) {
428056893Sfenner            goto bad;
428156893Sfenner          }
428256893Sfenner        } else {
428356893Sfenner          if (strcmp(straddr, "::1") != 0) {
428456893Sfenner            goto bad;
428556893Sfenner          }
428656893Sfenner        }
428756893Sfenner        inet6++;
428856893Sfenner        break;
428956893Sfenner      case AF_UNSPEC:
429056893Sfenner        goto bad;
429156893Sfenner        break;
429256893Sfenner#ifdef AF_UNIX
429356893Sfenner      case AF_UNIX:
429456893Sfenner#else
429556893Sfenner#ifdef AF_LOCAL
429656893Sfenner      case AF_LOCAL:
429756893Sfenner#endif
429856893Sfenner#endif
429956893Sfenner      default:
430056893Sfenner        /* another family support? */
430156893Sfenner        break;
430256893Sfenner      }
430356893Sfenner    }
430456893Sfenner  }
430556893Sfenner
430656893Sfenner  /* supported family should be 2, unsupported family should be 0 */
430756893Sfenner  if (!(inet4 == 0 || inet4 == 2))
430856893Sfenner    goto bad;
430956893Sfenner  if (!(inet6 == 0 || inet6 == 2))
431056893Sfenner    goto bad;
431156893Sfenner
431256893Sfenner  if (aitop)
431356893Sfenner    freeaddrinfo(aitop);
431456893Sfenner  exit(0);
431556893Sfenner
431656893Sfenner bad:
431756893Sfenner  if (aitop)
431856893Sfenner    freeaddrinfo(aitop);
431956893Sfenner  exit(1);
432056893Sfenner}
432156893Sfenner
4322127668Sbms_ACEOF
4323127668Sbmsrm -f conftest$ac_exeext
4324127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325127668Sbms  (eval $ac_link) 2>&5
4326127668Sbms  ac_status=$?
4327127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330127668Sbms  (eval $ac_try) 2>&5
4331127668Sbms  ac_status=$?
4332127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333127668Sbms  (exit $ac_status); }; }; then
4334127668Sbms  td_cv_buggygetaddrinfo=no
433556893Sfennerelse
4336127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
4337127668Sbmsecho "$as_me: failed program was:" >&5
4338127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4339127668Sbms
4340127668Sbms( exit $ac_status )
4341127668Sbmstd_cv_buggygetaddrinfo=yes
434256893Sfennerfi
4343127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
434456893Sfennerfi
434556893Sfennerfi
434656893Sfenner
4347127668Sbms	if test "$td_cv_buggygetaddrinfo" = no; then
4348127668Sbms		echo "$as_me:$LINENO: result: good" >&5
4349127668Sbmsecho "${ECHO_T}good" >&6
4350127668Sbms	else
4351127668Sbms		echo "$as_me:$LINENO: result: buggy" >&5
4352127668Sbmsecho "${ECHO_T}buggy" >&6
4353127668Sbms	fi
4354127668Sbms
4355127668Sbms	if test "$td_cv_buggygetaddrinfo" = "yes"; then
4356127668Sbms		#
4357127668Sbms		# XXX - it doesn't appear that "ipv6type" can ever be
4358127668Sbms		# set to "linux".  Should this be testing for
4359127668Sbms		# "linux-glibc", or for that *or* "linux-libinet6"?
4360127668Sbms		# If the latter, note that "linux-libinet6" is also
4361127668Sbms		# the type given to some non-Linux OSes.
4362127668Sbms		#
436356893Sfenner		if test "$ipv6type" != "linux"; then
436456893Sfenner			echo 'Fatal: You must get working getaddrinfo() function.'
436556893Sfenner			echo '       or you can specify "--disable-ipv6"'.
436656893Sfenner			exit 1
436756893Sfenner		else
436856893Sfenner			echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4369127668Sbms			echo '         Better upgrade your system library to newest version'
437056893Sfenner			echo '         of GNU C library (aka glibc).'
437156893Sfenner		fi
437256893Sfenner	fi
4373127668Sbms
4374127668Sbmsfi
4375127668Sbms
4376127668Sbms
4377127668Sbms
4378127668Sbmsfor ac_func in getaddrinfo getnameinfo
437956893Sfennerdo
4380127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4381127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
4382127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4383127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
4384127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
438556893Sfennerelse
4386127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4387127668Sbms#line $LINENO "configure"
4388127668Sbms/* confdefs.h.  */
4389127668Sbms_ACEOF
4390127668Sbmscat confdefs.h >>conftest.$ac_ext
4391127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4392127668Sbms/* end confdefs.h.  */
439356893Sfenner/* System header to define __stub macros and hopefully few prototypes,
4394127668Sbms    which can conflict with char $ac_func (); below.
4395127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396127668Sbms    <limits.h> exists even on freestanding compilers.  */
4397127668Sbms#ifdef __STDC__
4398127668Sbms# include <limits.h>
4399127668Sbms#else
4400127668Sbms# include <assert.h>
4401127668Sbms#endif
440256893Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
4403127668Sbms#ifdef __cplusplus
4404127668Sbmsextern "C"
4405127668Sbms{
4406127668Sbms#endif
440756893Sfenner/* We use char because int might match the return type of a gcc2
4408127668Sbms   builtin and then its argument prototype would still apply.  */
4409127668Sbmschar $ac_func ();
441056893Sfenner/* The GNU C library defines this for functions which it implements
441156893Sfenner    to always fail with ENOSYS.  Some functions are actually named
441256893Sfenner    something starting with __ and the normal name is an alias.  */
441356893Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
441456893Sfennerchoke me
441556893Sfenner#else
4416127668Sbmschar (*f) () = $ac_func;
441756893Sfenner#endif
4418127668Sbms#ifdef __cplusplus
4419127668Sbms}
4420127668Sbms#endif
442156893Sfenner
4422127668Sbmsint
4423127668Sbmsmain ()
4424127668Sbms{
4425127668Sbmsreturn f != $ac_func;
4426127668Sbms  ;
4427127668Sbms  return 0;
4428127668Sbms}
4429127668Sbms_ACEOF
4430127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
4431127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432127668Sbms  (eval $ac_link) 2>&5
4433127668Sbms  ac_status=$?
4434127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435127668Sbms  (exit $ac_status); } &&
4436127668Sbms         { ac_try='test -s conftest$ac_exeext'
4437127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438127668Sbms  (eval $ac_try) 2>&5
4439127668Sbms  ac_status=$?
4440127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441127668Sbms  (exit $ac_status); }; }; then
4442127668Sbms  eval "$as_ac_var=yes"
444356893Sfennerelse
4444127668Sbms  echo "$as_me: failed program was:" >&5
4445127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4446127668Sbms
4447127668Sbmseval "$as_ac_var=no"
444856893Sfennerfi
4449127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
445056893Sfennerfi
4451127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4452127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4453127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
4454127668Sbms  cat >>confdefs.h <<_ACEOF
4455127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4456127668Sbms_ACEOF
445756893Sfenner
445856893Sfennerelse
4459127668Sbms  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
446056893Sfennerfi
446156893Sfennerdone
446256893Sfenner
446356893Sfenner
446456893Sfennerfi
4465127668Sbms
4466127668Sbmsecho "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4467127668Sbmsecho $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4468127668Sbmsif test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4469127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
447075115Sfennerelse
4471127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4472127668Sbms#line $LINENO "configure"
4473127668Sbms/* confdefs.h.  */
4474127668Sbms_ACEOF
4475127668Sbmscat confdefs.h >>conftest.$ac_ext
4476127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4477127668Sbms/* end confdefs.h.  */
4478127668Sbms#include <netdnet/dnetdb.h>
4479127668Sbms
4480127668Sbms_ACEOF
4481127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482127668Sbms  $EGREP "dnet_htoa" >/dev/null 2>&1; then
4483127668Sbms  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
448456893Sfennerelse
4485127668Sbms  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4486127668Sbmsfi
4487127668Sbmsrm -f conftest*
448856893Sfenner
4489127668Sbmsfi
4490127668Sbmsecho "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4491127668Sbmsecho "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4492127668Sbmsif test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4493127668Sbms	cat >>confdefs.h <<\_ACEOF
4494127668Sbms#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4495127668Sbms_ACEOF
449656893Sfenner
4497127668Sbmsfi
449856893Sfenner
4499127668Sbmsecho "$as_me:$LINENO: checking for char" >&5
4500127668Sbmsecho $ECHO_N "checking for char... $ECHO_C" >&6
4501127668Sbmsif test "${ac_cv_type_char+set}" = set; then
4502127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
450356893Sfennerelse
4504127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4505127668Sbms#line $LINENO "configure"
4506127668Sbms/* confdefs.h.  */
4507127668Sbms_ACEOF
4508127668Sbmscat confdefs.h >>conftest.$ac_ext
4509127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4510127668Sbms/* end confdefs.h.  */
4511127668Sbms$ac_includes_default
4512127668Sbmsint
4513127668Sbmsmain ()
4514127668Sbms{
4515127668Sbmsif ((char *) 0)
4516127668Sbms  return 0;
4517127668Sbmsif (sizeof (char))
4518127668Sbms  return 0;
4519127668Sbms  ;
4520127668Sbms  return 0;
4521127668Sbms}
4522127668Sbms_ACEOF
4523127668Sbmsrm -f conftest.$ac_objext
4524127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525127668Sbms  (eval $ac_compile) 2>&5
4526127668Sbms  ac_status=$?
4527127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528127668Sbms  (exit $ac_status); } &&
4529127668Sbms         { ac_try='test -s conftest.$ac_objext'
4530127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531127668Sbms  (eval $ac_try) 2>&5
4532127668Sbms  ac_status=$?
4533127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534127668Sbms  (exit $ac_status); }; }; then
4535127668Sbms  ac_cv_type_char=yes
4536127668Sbmselse
4537127668Sbms  echo "$as_me: failed program was:" >&5
4538127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4539127668Sbms
4540127668Sbmsac_cv_type_char=no
454156893Sfennerfi
4542127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
454356893Sfennerfi
4544127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4545127668Sbmsecho "${ECHO_T}$ac_cv_type_char" >&6
454656893Sfenner
4547127668Sbmsecho "$as_me:$LINENO: checking size of char" >&5
4548127668Sbmsecho $ECHO_N "checking size of char... $ECHO_C" >&6
4549127668Sbmsif test "${ac_cv_sizeof_char+set}" = set; then
4550127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
455156893Sfennerelse
4552127668Sbms  if test "$ac_cv_type_char" = yes; then
4553127668Sbms  # The cast to unsigned long works around a bug in the HP C Compiler
4554127668Sbms  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4555127668Sbms  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4556127668Sbms  # This bug is HP SR number 8606223364.
4557127668Sbms  if test "$cross_compiling" = yes; then
4558127668Sbms  # Depending upon the size, compute the lo and hi bounds.
4559127668Sbmscat >conftest.$ac_ext <<_ACEOF
4560127668Sbms#line $LINENO "configure"
4561127668Sbms/* confdefs.h.  */
4562127668Sbms_ACEOF
4563127668Sbmscat confdefs.h >>conftest.$ac_ext
4564127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4565127668Sbms/* end confdefs.h.  */
4566127668Sbms$ac_includes_default
4567127668Sbmsint
4568127668Sbmsmain ()
4569127668Sbms{
4570127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4571127668Sbmstest_array [0] = 0
457256893Sfenner
4573127668Sbms  ;
4574127668Sbms  return 0;
4575127668Sbms}
4576127668Sbms_ACEOF
4577127668Sbmsrm -f conftest.$ac_objext
4578127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579127668Sbms  (eval $ac_compile) 2>&5
4580127668Sbms  ac_status=$?
4581127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582127668Sbms  (exit $ac_status); } &&
4583127668Sbms         { ac_try='test -s conftest.$ac_objext'
4584127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585127668Sbms  (eval $ac_try) 2>&5
4586127668Sbms  ac_status=$?
4587127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588127668Sbms  (exit $ac_status); }; }; then
4589127668Sbms  ac_lo=0 ac_mid=0
4590127668Sbms  while :; do
4591127668Sbms    cat >conftest.$ac_ext <<_ACEOF
4592127668Sbms#line $LINENO "configure"
4593127668Sbms/* confdefs.h.  */
4594127668Sbms_ACEOF
4595127668Sbmscat confdefs.h >>conftest.$ac_ext
4596127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4597127668Sbms/* end confdefs.h.  */
4598127668Sbms$ac_includes_default
4599127668Sbmsint
4600127668Sbmsmain ()
4601127668Sbms{
4602127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4603127668Sbmstest_array [0] = 0
460456893Sfenner
4605127668Sbms  ;
4606127668Sbms  return 0;
4607127668Sbms}
4608127668Sbms_ACEOF
4609127668Sbmsrm -f conftest.$ac_objext
4610127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611127668Sbms  (eval $ac_compile) 2>&5
4612127668Sbms  ac_status=$?
4613127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614127668Sbms  (exit $ac_status); } &&
4615127668Sbms         { ac_try='test -s conftest.$ac_objext'
4616127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617127668Sbms  (eval $ac_try) 2>&5
4618127668Sbms  ac_status=$?
4619127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620127668Sbms  (exit $ac_status); }; }; then
4621127668Sbms  ac_hi=$ac_mid; break
4622127668Sbmselse
4623127668Sbms  echo "$as_me: failed program was:" >&5
4624127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4625127668Sbms
4626127668Sbmsac_lo=`expr $ac_mid + 1`
4627127668Sbms                    if test $ac_lo -le $ac_mid; then
4628127668Sbms                      ac_lo= ac_hi=
4629127668Sbms                      break
4630127668Sbms                    fi
4631127668Sbms                    ac_mid=`expr 2 '*' $ac_mid + 1`
463275115Sfennerfi
4633127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
4634127668Sbms  done
463575115Sfennerelse
4636127668Sbms  echo "$as_me: failed program was:" >&5
4637127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
463856893Sfenner
4639127668Sbmscat >conftest.$ac_ext <<_ACEOF
4640127668Sbms#line $LINENO "configure"
4641127668Sbms/* confdefs.h.  */
4642127668Sbms_ACEOF
4643127668Sbmscat confdefs.h >>conftest.$ac_ext
4644127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4645127668Sbms/* end confdefs.h.  */
4646127668Sbms$ac_includes_default
4647127668Sbmsint
4648127668Sbmsmain ()
4649127668Sbms{
4650127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4651127668Sbmstest_array [0] = 0
465256893Sfenner
4653127668Sbms  ;
4654127668Sbms  return 0;
4655127668Sbms}
4656127668Sbms_ACEOF
4657127668Sbmsrm -f conftest.$ac_objext
4658127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659127668Sbms  (eval $ac_compile) 2>&5
4660127668Sbms  ac_status=$?
4661127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662127668Sbms  (exit $ac_status); } &&
4663127668Sbms         { ac_try='test -s conftest.$ac_objext'
4664127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665127668Sbms  (eval $ac_try) 2>&5
4666127668Sbms  ac_status=$?
4667127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668127668Sbms  (exit $ac_status); }; }; then
4669127668Sbms  ac_hi=-1 ac_mid=-1
4670127668Sbms  while :; do
4671127668Sbms    cat >conftest.$ac_ext <<_ACEOF
4672127668Sbms#line $LINENO "configure"
4673127668Sbms/* confdefs.h.  */
4674127668Sbms_ACEOF
4675127668Sbmscat confdefs.h >>conftest.$ac_ext
4676127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4677127668Sbms/* end confdefs.h.  */
4678127668Sbms$ac_includes_default
4679127668Sbmsint
4680127668Sbmsmain ()
4681127668Sbms{
4682127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4683127668Sbmstest_array [0] = 0
468475115Sfenner
4685127668Sbms  ;
4686127668Sbms  return 0;
4687127668Sbms}
4688127668Sbms_ACEOF
4689127668Sbmsrm -f conftest.$ac_objext
4690127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4691127668Sbms  (eval $ac_compile) 2>&5
4692127668Sbms  ac_status=$?
4693127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694127668Sbms  (exit $ac_status); } &&
4695127668Sbms         { ac_try='test -s conftest.$ac_objext'
4696127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697127668Sbms  (eval $ac_try) 2>&5
4698127668Sbms  ac_status=$?
4699127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700127668Sbms  (exit $ac_status); }; }; then
4701127668Sbms  ac_lo=$ac_mid; break
470275115Sfennerelse
4703127668Sbms  echo "$as_me: failed program was:" >&5
4704127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4705127668Sbms
4706127668Sbmsac_hi=`expr '(' $ac_mid ')' - 1`
4707127668Sbms                       if test $ac_mid -le $ac_hi; then
4708127668Sbms                         ac_lo= ac_hi=
4709127668Sbms                         break
4710127668Sbms                       fi
4711127668Sbms                       ac_mid=`expr 2 '*' $ac_mid`
471275115Sfennerfi
4713127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
4714127668Sbms  done
4715127668Sbmselse
4716127668Sbms  echo "$as_me: failed program was:" >&5
4717127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4718127668Sbms
4719127668Sbmsac_lo= ac_hi=
472075115Sfennerfi
4721127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
4722127668Sbmsfi
4723127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
4724127668Sbms# Binary search between lo and hi bounds.
4725127668Sbmswhile test "x$ac_lo" != "x$ac_hi"; do
4726127668Sbms  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4727127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4728127668Sbms#line $LINENO "configure"
4729127668Sbms/* confdefs.h.  */
4730127668Sbms_ACEOF
4731127668Sbmscat confdefs.h >>conftest.$ac_ext
4732127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4733127668Sbms/* end confdefs.h.  */
4734127668Sbms$ac_includes_default
4735127668Sbmsint
4736127668Sbmsmain ()
4737127668Sbms{
4738127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4739127668Sbmstest_array [0] = 0
474075115Sfenner
4741127668Sbms  ;
4742127668Sbms  return 0;
4743127668Sbms}
4744127668Sbms_ACEOF
4745127668Sbmsrm -f conftest.$ac_objext
4746127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747127668Sbms  (eval $ac_compile) 2>&5
4748127668Sbms  ac_status=$?
4749127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750127668Sbms  (exit $ac_status); } &&
4751127668Sbms         { ac_try='test -s conftest.$ac_objext'
4752127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753127668Sbms  (eval $ac_try) 2>&5
4754127668Sbms  ac_status=$?
4755127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756127668Sbms  (exit $ac_status); }; }; then
4757127668Sbms  ac_hi=$ac_mid
475875115Sfennerelse
4759127668Sbms  echo "$as_me: failed program was:" >&5
4760127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4761127668Sbms
4762127668Sbmsac_lo=`expr '(' $ac_mid ')' + 1`
476375115Sfennerfi
4764127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
476575115Sfennerdone
4766127668Sbmscase $ac_lo in
4767127668Sbms?*) ac_cv_sizeof_char=$ac_lo;;
4768127668Sbms'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4769127668SbmsSee \`config.log' for more details." >&5
4770127668Sbmsecho "$as_me: error: cannot compute sizeof (char), 77
4771127668SbmsSee \`config.log' for more details." >&2;}
4772127668Sbms   { (exit 1); exit 1; }; } ;;
4773127668Sbmsesac
4774127668Sbmselse
4775127668Sbms  if test "$cross_compiling" = yes; then
4776127668Sbms  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4777127668SbmsSee \`config.log' for more details." >&5
4778127668Sbmsecho "$as_me: error: cannot run test program while cross compiling
4779127668SbmsSee \`config.log' for more details." >&2;}
4780127668Sbms   { (exit 1); exit 1; }; }
4781127668Sbmselse
4782127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4783127668Sbms#line $LINENO "configure"
4784127668Sbms/* confdefs.h.  */
4785127668Sbms_ACEOF
4786127668Sbmscat confdefs.h >>conftest.$ac_ext
4787127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4788127668Sbms/* end confdefs.h.  */
4789127668Sbms$ac_includes_default
4790127668Sbmslong longval () { return (long) (sizeof (char)); }
4791127668Sbmsunsigned long ulongval () { return (long) (sizeof (char)); }
4792127668Sbms#include <stdio.h>
4793127668Sbms#include <stdlib.h>
4794127668Sbmsint
4795127668Sbmsmain ()
4796127668Sbms{
479775115Sfenner
4798127668Sbms  FILE *f = fopen ("conftest.val", "w");
4799127668Sbms  if (! f)
4800127668Sbms    exit (1);
4801127668Sbms  if (((long) (sizeof (char))) < 0)
4802127668Sbms    {
4803127668Sbms      long i = longval ();
4804127668Sbms      if (i != ((long) (sizeof (char))))
4805127668Sbms	exit (1);
4806127668Sbms      fprintf (f, "%ld\n", i);
4807127668Sbms    }
4808127668Sbms  else
4809127668Sbms    {
4810127668Sbms      unsigned long i = ulongval ();
4811127668Sbms      if (i != ((long) (sizeof (char))))
4812127668Sbms	exit (1);
4813127668Sbms      fprintf (f, "%lu\n", i);
4814127668Sbms    }
4815127668Sbms  exit (ferror (f) || fclose (f) != 0);
481675115Sfenner
4817127668Sbms  ;
4818127668Sbms  return 0;
4819127668Sbms}
4820127668Sbms_ACEOF
4821127668Sbmsrm -f conftest$ac_exeext
4822127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4823127668Sbms  (eval $ac_link) 2>&5
4824127668Sbms  ac_status=$?
4825127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4827127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828127668Sbms  (eval $ac_try) 2>&5
4829127668Sbms  ac_status=$?
4830127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831127668Sbms  (exit $ac_status); }; }; then
4832127668Sbms  ac_cv_sizeof_char=`cat conftest.val`
4833127668Sbmselse
4834127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
4835127668Sbmsecho "$as_me: failed program was:" >&5
4836127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4837127668Sbms
4838127668Sbms( exit $ac_status )
4839127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4840127668SbmsSee \`config.log' for more details." >&5
4841127668Sbmsecho "$as_me: error: cannot compute sizeof (char), 77
4842127668SbmsSee \`config.log' for more details." >&2;}
4843127668Sbms   { (exit 1); exit 1; }; }
484475115Sfennerfi
4845127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4846127668Sbmsfi
4847127668Sbmsfi
4848127668Sbmsrm -f conftest.val
484975115Sfennerelse
4850127668Sbms  ac_cv_sizeof_char=0
4851127668Sbmsfi
4852127668Sbmsfi
4853127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4854127668Sbmsecho "${ECHO_T}$ac_cv_sizeof_char" >&6
4855127668Sbmscat >>confdefs.h <<_ACEOF
4856127668Sbms#define SIZEOF_CHAR $ac_cv_sizeof_char
4857127668Sbms_ACEOF
4858127668Sbms
4859127668Sbms
4860127668Sbmsecho "$as_me:$LINENO: checking for short" >&5
4861127668Sbmsecho $ECHO_N "checking for short... $ECHO_C" >&6
4862127668Sbmsif test "${ac_cv_type_short+set}" = set; then
4863127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
486456893Sfennerelse
4865127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4866127668Sbms#line $LINENO "configure"
4867127668Sbms/* confdefs.h.  */
4868127668Sbms_ACEOF
4869127668Sbmscat confdefs.h >>conftest.$ac_ext
4870127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4871127668Sbms/* end confdefs.h.  */
4872127668Sbms$ac_includes_default
4873127668Sbmsint
4874127668Sbmsmain ()
4875127668Sbms{
4876127668Sbmsif ((short *) 0)
4877127668Sbms  return 0;
4878127668Sbmsif (sizeof (short))
4879127668Sbms  return 0;
4880127668Sbms  ;
4881127668Sbms  return 0;
4882127668Sbms}
4883127668Sbms_ACEOF
4884127668Sbmsrm -f conftest.$ac_objext
4885127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886127668Sbms  (eval $ac_compile) 2>&5
4887127668Sbms  ac_status=$?
4888127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889127668Sbms  (exit $ac_status); } &&
4890127668Sbms         { ac_try='test -s conftest.$ac_objext'
4891127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892127668Sbms  (eval $ac_try) 2>&5
4893127668Sbms  ac_status=$?
4894127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895127668Sbms  (exit $ac_status); }; }; then
4896127668Sbms  ac_cv_type_short=yes
4897127668Sbmselse
4898127668Sbms  echo "$as_me: failed program was:" >&5
4899127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
490056893Sfenner
4901127668Sbmsac_cv_type_short=no
4902127668Sbmsfi
4903127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
4904127668Sbmsfi
4905127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4906127668Sbmsecho "${ECHO_T}$ac_cv_type_short" >&6
490775115Sfenner
4908127668Sbmsecho "$as_me:$LINENO: checking size of short" >&5
4909127668Sbmsecho $ECHO_N "checking size of short... $ECHO_C" >&6
4910127668Sbmsif test "${ac_cv_sizeof_short+set}" = set; then
4911127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
4912127668Sbmselse
4913127668Sbms  if test "$ac_cv_type_short" = yes; then
4914127668Sbms  # The cast to unsigned long works around a bug in the HP C Compiler
4915127668Sbms  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4916127668Sbms  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4917127668Sbms  # This bug is HP SR number 8606223364.
4918127668Sbms  if test "$cross_compiling" = yes; then
4919127668Sbms  # Depending upon the size, compute the lo and hi bounds.
4920127668Sbmscat >conftest.$ac_ext <<_ACEOF
4921127668Sbms#line $LINENO "configure"
4922127668Sbms/* confdefs.h.  */
4923127668Sbms_ACEOF
4924127668Sbmscat confdefs.h >>conftest.$ac_ext
4925127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4926127668Sbms/* end confdefs.h.  */
4927127668Sbms$ac_includes_default
4928127668Sbmsint
4929127668Sbmsmain ()
4930127668Sbms{
4931127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4932127668Sbmstest_array [0] = 0
493375115Sfenner
4934127668Sbms  ;
4935127668Sbms  return 0;
4936127668Sbms}
4937127668Sbms_ACEOF
4938127668Sbmsrm -f conftest.$ac_objext
4939127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940127668Sbms  (eval $ac_compile) 2>&5
4941127668Sbms  ac_status=$?
4942127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943127668Sbms  (exit $ac_status); } &&
4944127668Sbms         { ac_try='test -s conftest.$ac_objext'
4945127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946127668Sbms  (eval $ac_try) 2>&5
4947127668Sbms  ac_status=$?
4948127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949127668Sbms  (exit $ac_status); }; }; then
4950127668Sbms  ac_lo=0 ac_mid=0
4951127668Sbms  while :; do
4952127668Sbms    cat >conftest.$ac_ext <<_ACEOF
4953127668Sbms#line $LINENO "configure"
4954127668Sbms/* confdefs.h.  */
4955127668Sbms_ACEOF
4956127668Sbmscat confdefs.h >>conftest.$ac_ext
4957127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4958127668Sbms/* end confdefs.h.  */
4959127668Sbms$ac_includes_default
4960127668Sbmsint
4961127668Sbmsmain ()
4962127668Sbms{
4963127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4964127668Sbmstest_array [0] = 0
4965127668Sbms
4966127668Sbms  ;
4967127668Sbms  return 0;
4968127668Sbms}
4969127668Sbms_ACEOF
4970127668Sbmsrm -f conftest.$ac_objext
4971127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972127668Sbms  (eval $ac_compile) 2>&5
4973127668Sbms  ac_status=$?
4974127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975127668Sbms  (exit $ac_status); } &&
4976127668Sbms         { ac_try='test -s conftest.$ac_objext'
4977127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978127668Sbms  (eval $ac_try) 2>&5
4979127668Sbms  ac_status=$?
4980127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981127668Sbms  (exit $ac_status); }; }; then
4982127668Sbms  ac_hi=$ac_mid; break
498356893Sfennerelse
4984127668Sbms  echo "$as_me: failed program was:" >&5
4985127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4986127668Sbms
4987127668Sbmsac_lo=`expr $ac_mid + 1`
4988127668Sbms                    if test $ac_lo -le $ac_mid; then
4989127668Sbms                      ac_lo= ac_hi=
4990127668Sbms                      break
4991127668Sbms                    fi
4992127668Sbms                    ac_mid=`expr 2 '*' $ac_mid + 1`
499356893Sfennerfi
4994127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
4995127668Sbms  done
4996127668Sbmselse
4997127668Sbms  echo "$as_me: failed program was:" >&5
4998127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
499956893Sfenner
5000127668Sbmscat >conftest.$ac_ext <<_ACEOF
5001127668Sbms#line $LINENO "configure"
5002127668Sbms/* confdefs.h.  */
5003127668Sbms_ACEOF
5004127668Sbmscat confdefs.h >>conftest.$ac_ext
5005127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5006127668Sbms/* end confdefs.h.  */
5007127668Sbms$ac_includes_default
5008127668Sbmsint
5009127668Sbmsmain ()
5010127668Sbms{
5011127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5012127668Sbmstest_array [0] = 0
5013127668Sbms
5014127668Sbms  ;
5015127668Sbms  return 0;
5016127668Sbms}
5017127668Sbms_ACEOF
5018127668Sbmsrm -f conftest.$ac_objext
5019127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020127668Sbms  (eval $ac_compile) 2>&5
5021127668Sbms  ac_status=$?
5022127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023127668Sbms  (exit $ac_status); } &&
5024127668Sbms         { ac_try='test -s conftest.$ac_objext'
5025127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026127668Sbms  (eval $ac_try) 2>&5
5027127668Sbms  ac_status=$?
5028127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029127668Sbms  (exit $ac_status); }; }; then
5030127668Sbms  ac_hi=-1 ac_mid=-1
5031127668Sbms  while :; do
5032127668Sbms    cat >conftest.$ac_ext <<_ACEOF
5033127668Sbms#line $LINENO "configure"
5034127668Sbms/* confdefs.h.  */
5035127668Sbms_ACEOF
5036127668Sbmscat confdefs.h >>conftest.$ac_ext
5037127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5038127668Sbms/* end confdefs.h.  */
5039127668Sbms$ac_includes_default
5040127668Sbmsint
5041127668Sbmsmain ()
5042127668Sbms{
5043127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5044127668Sbmstest_array [0] = 0
5045127668Sbms
5046127668Sbms  ;
5047127668Sbms  return 0;
5048127668Sbms}
5049127668Sbms_ACEOF
5050127668Sbmsrm -f conftest.$ac_objext
5051127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052127668Sbms  (eval $ac_compile) 2>&5
5053127668Sbms  ac_status=$?
5054127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055127668Sbms  (exit $ac_status); } &&
5056127668Sbms         { ac_try='test -s conftest.$ac_objext'
5057127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058127668Sbms  (eval $ac_try) 2>&5
5059127668Sbms  ac_status=$?
5060127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061127668Sbms  (exit $ac_status); }; }; then
5062127668Sbms  ac_lo=$ac_mid; break
506375115Sfennerelse
5064127668Sbms  echo "$as_me: failed program was:" >&5
5065127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5066127668Sbms
5067127668Sbmsac_hi=`expr '(' $ac_mid ')' - 1`
5068127668Sbms                       if test $ac_mid -le $ac_hi; then
5069127668Sbms                         ac_lo= ac_hi=
5070127668Sbms                         break
5071127668Sbms                       fi
5072127668Sbms                       ac_mid=`expr 2 '*' $ac_mid`
507375115Sfennerfi
5074127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5075127668Sbms  done
5076127668Sbmselse
5077127668Sbms  echo "$as_me: failed program was:" >&5
5078127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
507956893Sfenner
5080127668Sbmsac_lo= ac_hi=
5081127668Sbmsfi
5082127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5083127668Sbmsfi
5084127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5085127668Sbms# Binary search between lo and hi bounds.
5086127668Sbmswhile test "x$ac_lo" != "x$ac_hi"; do
5087127668Sbms  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5088127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5089127668Sbms#line $LINENO "configure"
5090127668Sbms/* confdefs.h.  */
5091127668Sbms_ACEOF
5092127668Sbmscat confdefs.h >>conftest.$ac_ext
5093127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5094127668Sbms/* end confdefs.h.  */
5095127668Sbms$ac_includes_default
5096127668Sbmsint
5097127668Sbmsmain ()
5098127668Sbms{
5099127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5100127668Sbmstest_array [0] = 0
510156893Sfenner
5102127668Sbms  ;
5103127668Sbms  return 0;
5104127668Sbms}
5105127668Sbms_ACEOF
5106127668Sbmsrm -f conftest.$ac_objext
5107127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108127668Sbms  (eval $ac_compile) 2>&5
5109127668Sbms  ac_status=$?
5110127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111127668Sbms  (exit $ac_status); } &&
5112127668Sbms         { ac_try='test -s conftest.$ac_objext'
5113127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114127668Sbms  (eval $ac_try) 2>&5
5115127668Sbms  ac_status=$?
5116127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117127668Sbms  (exit $ac_status); }; }; then
5118127668Sbms  ac_hi=$ac_mid
5119127668Sbmselse
5120127668Sbms  echo "$as_me: failed program was:" >&5
5121127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5122127668Sbms
5123127668Sbmsac_lo=`expr '(' $ac_mid ')' + 1`
512456893Sfennerfi
5125127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5126127668Sbmsdone
5127127668Sbmscase $ac_lo in
5128127668Sbms?*) ac_cv_sizeof_short=$ac_lo;;
5129127668Sbms'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5130127668SbmsSee \`config.log' for more details." >&5
5131127668Sbmsecho "$as_me: error: cannot compute sizeof (short), 77
5132127668SbmsSee \`config.log' for more details." >&2;}
5133127668Sbms   { (exit 1); exit 1; }; } ;;
5134127668Sbmsesac
5135127668Sbmselse
5136127668Sbms  if test "$cross_compiling" = yes; then
5137127668Sbms  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5138127668SbmsSee \`config.log' for more details." >&5
5139127668Sbmsecho "$as_me: error: cannot run test program while cross compiling
5140127668SbmsSee \`config.log' for more details." >&2;}
5141127668Sbms   { (exit 1); exit 1; }; }
5142127668Sbmselse
5143127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5144127668Sbms#line $LINENO "configure"
5145127668Sbms/* confdefs.h.  */
5146127668Sbms_ACEOF
5147127668Sbmscat confdefs.h >>conftest.$ac_ext
5148127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5149127668Sbms/* end confdefs.h.  */
5150127668Sbms$ac_includes_default
5151127668Sbmslong longval () { return (long) (sizeof (short)); }
5152127668Sbmsunsigned long ulongval () { return (long) (sizeof (short)); }
5153127668Sbms#include <stdio.h>
5154127668Sbms#include <stdlib.h>
5155127668Sbmsint
5156127668Sbmsmain ()
5157127668Sbms{
515856893Sfenner
5159127668Sbms  FILE *f = fopen ("conftest.val", "w");
5160127668Sbms  if (! f)
5161127668Sbms    exit (1);
5162127668Sbms  if (((long) (sizeof (short))) < 0)
5163127668Sbms    {
5164127668Sbms      long i = longval ();
5165127668Sbms      if (i != ((long) (sizeof (short))))
5166127668Sbms	exit (1);
5167127668Sbms      fprintf (f, "%ld\n", i);
5168127668Sbms    }
5169127668Sbms  else
5170127668Sbms    {
5171127668Sbms      unsigned long i = ulongval ();
5172127668Sbms      if (i != ((long) (sizeof (short))))
5173127668Sbms	exit (1);
5174127668Sbms      fprintf (f, "%lu\n", i);
5175127668Sbms    }
5176127668Sbms  exit (ferror (f) || fclose (f) != 0);
517756893Sfenner
5178127668Sbms  ;
5179127668Sbms  return 0;
5180127668Sbms}
5181127668Sbms_ACEOF
5182127668Sbmsrm -f conftest$ac_exeext
5183127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184127668Sbms  (eval $ac_link) 2>&5
5185127668Sbms  ac_status=$?
5186127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5188127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189127668Sbms  (eval $ac_try) 2>&5
5190127668Sbms  ac_status=$?
5191127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192127668Sbms  (exit $ac_status); }; }; then
5193127668Sbms  ac_cv_sizeof_short=`cat conftest.val`
519456893Sfennerelse
5195127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
5196127668Sbmsecho "$as_me: failed program was:" >&5
5197127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
519856893Sfenner
5199127668Sbms( exit $ac_status )
5200127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5201127668SbmsSee \`config.log' for more details." >&5
5202127668Sbmsecho "$as_me: error: cannot compute sizeof (short), 77
5203127668SbmsSee \`config.log' for more details." >&2;}
5204127668Sbms   { (exit 1); exit 1; }; }
5205127668Sbmsfi
5206127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5207127668Sbmsfi
5208127668Sbmsfi
5209127668Sbmsrm -f conftest.val
521056893Sfennerelse
5211127668Sbms  ac_cv_sizeof_short=0
521256893Sfennerfi
521356893Sfennerfi
5214127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5215127668Sbmsecho "${ECHO_T}$ac_cv_sizeof_short" >&6
5216127668Sbmscat >>confdefs.h <<_ACEOF
5217127668Sbms#define SIZEOF_SHORT $ac_cv_sizeof_short
5218127668Sbms_ACEOF
521956893Sfenner
522056893Sfenner
5221127668Sbmsecho "$as_me:$LINENO: checking for int" >&5
5222127668Sbmsecho $ECHO_N "checking for int... $ECHO_C" >&6
5223127668Sbmsif test "${ac_cv_type_int+set}" = set; then
5224127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
5225127668Sbmselse
5226127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5227127668Sbms#line $LINENO "configure"
5228127668Sbms/* confdefs.h.  */
5229127668Sbms_ACEOF
5230127668Sbmscat confdefs.h >>conftest.$ac_ext
5231127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5232127668Sbms/* end confdefs.h.  */
5233127668Sbms$ac_includes_default
5234127668Sbmsint
5235127668Sbmsmain ()
5236127668Sbms{
5237127668Sbmsif ((int *) 0)
5238127668Sbms  return 0;
5239127668Sbmsif (sizeof (int))
5240127668Sbms  return 0;
5241127668Sbms  ;
5242127668Sbms  return 0;
5243127668Sbms}
5244127668Sbms_ACEOF
5245127668Sbmsrm -f conftest.$ac_objext
5246127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247127668Sbms  (eval $ac_compile) 2>&5
5248127668Sbms  ac_status=$?
5249127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250127668Sbms  (exit $ac_status); } &&
5251127668Sbms         { ac_try='test -s conftest.$ac_objext'
5252127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253127668Sbms  (eval $ac_try) 2>&5
5254127668Sbms  ac_status=$?
5255127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256127668Sbms  (exit $ac_status); }; }; then
5257127668Sbms  ac_cv_type_int=yes
5258127668Sbmselse
5259127668Sbms  echo "$as_me: failed program was:" >&5
5260127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
526156893Sfenner
5262127668Sbmsac_cv_type_int=no
526356893Sfennerfi
5264127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5265127668Sbmsfi
5266127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5267127668Sbmsecho "${ECHO_T}$ac_cv_type_int" >&6
526856893Sfenner
5269127668Sbmsecho "$as_me:$LINENO: checking size of int" >&5
5270127668Sbmsecho $ECHO_N "checking size of int... $ECHO_C" >&6
5271127668Sbmsif test "${ac_cv_sizeof_int+set}" = set; then
5272127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
527356893Sfennerelse
5274127668Sbms  if test "$ac_cv_type_int" = yes; then
5275127668Sbms  # The cast to unsigned long works around a bug in the HP C Compiler
5276127668Sbms  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277127668Sbms  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278127668Sbms  # This bug is HP SR number 8606223364.
527956893Sfenner  if test "$cross_compiling" = yes; then
5280127668Sbms  # Depending upon the size, compute the lo and hi bounds.
5281127668Sbmscat >conftest.$ac_ext <<_ACEOF
5282127668Sbms#line $LINENO "configure"
5283127668Sbms/* confdefs.h.  */
5284127668Sbms_ACEOF
5285127668Sbmscat confdefs.h >>conftest.$ac_ext
5286127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5287127668Sbms/* end confdefs.h.  */
5288127668Sbms$ac_includes_default
5289127668Sbmsint
5290127668Sbmsmain ()
5291127668Sbms{
5292127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5293127668Sbmstest_array [0] = 0
5294127668Sbms
5295127668Sbms  ;
5296127668Sbms  return 0;
5297127668Sbms}
5298127668Sbms_ACEOF
5299127668Sbmsrm -f conftest.$ac_objext
5300127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301127668Sbms  (eval $ac_compile) 2>&5
5302127668Sbms  ac_status=$?
5303127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304127668Sbms  (exit $ac_status); } &&
5305127668Sbms         { ac_try='test -s conftest.$ac_objext'
5306127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307127668Sbms  (eval $ac_try) 2>&5
5308127668Sbms  ac_status=$?
5309127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310127668Sbms  (exit $ac_status); }; }; then
5311127668Sbms  ac_lo=0 ac_mid=0
5312127668Sbms  while :; do
5313127668Sbms    cat >conftest.$ac_ext <<_ACEOF
5314127668Sbms#line $LINENO "configure"
5315127668Sbms/* confdefs.h.  */
5316127668Sbms_ACEOF
5317127668Sbmscat confdefs.h >>conftest.$ac_ext
5318127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5319127668Sbms/* end confdefs.h.  */
5320127668Sbms$ac_includes_default
5321127668Sbmsint
5322127668Sbmsmain ()
5323127668Sbms{
5324127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5325127668Sbmstest_array [0] = 0
5326127668Sbms
5327127668Sbms  ;
5328127668Sbms  return 0;
5329127668Sbms}
5330127668Sbms_ACEOF
5331127668Sbmsrm -f conftest.$ac_objext
5332127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333127668Sbms  (eval $ac_compile) 2>&5
5334127668Sbms  ac_status=$?
5335127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336127668Sbms  (exit $ac_status); } &&
5337127668Sbms         { ac_try='test -s conftest.$ac_objext'
5338127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339127668Sbms  (eval $ac_try) 2>&5
5340127668Sbms  ac_status=$?
5341127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342127668Sbms  (exit $ac_status); }; }; then
5343127668Sbms  ac_hi=$ac_mid; break
534456893Sfennerelse
5345127668Sbms  echo "$as_me: failed program was:" >&5
5346127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5347127668Sbms
5348127668Sbmsac_lo=`expr $ac_mid + 1`
5349127668Sbms                    if test $ac_lo -le $ac_mid; then
5350127668Sbms                      ac_lo= ac_hi=
5351127668Sbms                      break
5352127668Sbms                    fi
5353127668Sbms                    ac_mid=`expr 2 '*' $ac_mid + 1`
5354127668Sbmsfi
5355127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5356127668Sbms  done
5357127668Sbmselse
5358127668Sbms  echo "$as_me: failed program was:" >&5
5359127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5360127668Sbms
5361127668Sbmscat >conftest.$ac_ext <<_ACEOF
5362127668Sbms#line $LINENO "configure"
5363127668Sbms/* confdefs.h.  */
5364127668Sbms_ACEOF
5365127668Sbmscat confdefs.h >>conftest.$ac_ext
5366127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5367127668Sbms/* end confdefs.h.  */
5368127668Sbms$ac_includes_default
5369127668Sbmsint
5370127668Sbmsmain ()
537156893Sfenner{
5372127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5373127668Sbmstest_array [0] = 0
5374127668Sbms
5375127668Sbms  ;
5376127668Sbms  return 0;
537756893Sfenner}
5378127668Sbms_ACEOF
5379127668Sbmsrm -f conftest.$ac_objext
5380127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381127668Sbms  (eval $ac_compile) 2>&5
5382127668Sbms  ac_status=$?
5383127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384127668Sbms  (exit $ac_status); } &&
5385127668Sbms         { ac_try='test -s conftest.$ac_objext'
5386127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387127668Sbms  (eval $ac_try) 2>&5
5388127668Sbms  ac_status=$?
5389127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390127668Sbms  (exit $ac_status); }; }; then
5391127668Sbms  ac_hi=-1 ac_mid=-1
5392127668Sbms  while :; do
5393127668Sbms    cat >conftest.$ac_ext <<_ACEOF
5394127668Sbms#line $LINENO "configure"
5395127668Sbms/* confdefs.h.  */
5396127668Sbms_ACEOF
5397127668Sbmscat confdefs.h >>conftest.$ac_ext
5398127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5399127668Sbms/* end confdefs.h.  */
5400127668Sbms$ac_includes_default
5401127668Sbmsint
5402127668Sbmsmain ()
5403127668Sbms{
5404127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5405127668Sbmstest_array [0] = 0
5406127668Sbms
5407127668Sbms  ;
5408127668Sbms  return 0;
5409127668Sbms}
5410127668Sbms_ACEOF
5411127668Sbmsrm -f conftest.$ac_objext
5412127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413127668Sbms  (eval $ac_compile) 2>&5
5414127668Sbms  ac_status=$?
5415127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416127668Sbms  (exit $ac_status); } &&
5417127668Sbms         { ac_try='test -s conftest.$ac_objext'
5418127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419127668Sbms  (eval $ac_try) 2>&5
5420127668Sbms  ac_status=$?
5421127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422127668Sbms  (exit $ac_status); }; }; then
5423127668Sbms  ac_lo=$ac_mid; break
542456893Sfennerelse
5425127668Sbms  echo "$as_me: failed program was:" >&5
5426127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5427127668Sbms
5428127668Sbmsac_hi=`expr '(' $ac_mid ')' - 1`
5429127668Sbms                       if test $ac_mid -le $ac_hi; then
5430127668Sbms                         ac_lo= ac_hi=
5431127668Sbms                         break
5432127668Sbms                       fi
5433127668Sbms                       ac_mid=`expr 2 '*' $ac_mid`
543456893Sfennerfi
5435127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5436127668Sbms  done
5437127668Sbmselse
5438127668Sbms  echo "$as_me: failed program was:" >&5
5439127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
544056893Sfenner
5441127668Sbmsac_lo= ac_hi=
544256893Sfennerfi
5443127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5444127668Sbmsfi
5445127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5446127668Sbms# Binary search between lo and hi bounds.
5447127668Sbmswhile test "x$ac_lo" != "x$ac_hi"; do
5448127668Sbms  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5449127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5450127668Sbms#line $LINENO "configure"
5451127668Sbms/* confdefs.h.  */
5452127668Sbms_ACEOF
5453127668Sbmscat confdefs.h >>conftest.$ac_ext
5454127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5455127668Sbms/* end confdefs.h.  */
5456127668Sbms$ac_includes_default
5457127668Sbmsint
5458127668Sbmsmain ()
5459127668Sbms{
5460127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5461127668Sbmstest_array [0] = 0
546256893Sfenner
5463127668Sbms  ;
5464127668Sbms  return 0;
5465127668Sbms}
5466127668Sbms_ACEOF
5467127668Sbmsrm -f conftest.$ac_objext
5468127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469127668Sbms  (eval $ac_compile) 2>&5
5470127668Sbms  ac_status=$?
5471127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472127668Sbms  (exit $ac_status); } &&
5473127668Sbms         { ac_try='test -s conftest.$ac_objext'
5474127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475127668Sbms  (eval $ac_try) 2>&5
5476127668Sbms  ac_status=$?
5477127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478127668Sbms  (exit $ac_status); }; }; then
5479127668Sbms  ac_hi=$ac_mid
5480127668Sbmselse
5481127668Sbms  echo "$as_me: failed program was:" >&5
5482127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
548356893Sfenner
5484127668Sbmsac_lo=`expr '(' $ac_mid ')' + 1`
5485127668Sbmsfi
5486127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5487127668Sbmsdone
5488127668Sbmscase $ac_lo in
5489127668Sbms?*) ac_cv_sizeof_int=$ac_lo;;
5490127668Sbms'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5491127668SbmsSee \`config.log' for more details." >&5
5492127668Sbmsecho "$as_me: error: cannot compute sizeof (int), 77
5493127668SbmsSee \`config.log' for more details." >&2;}
5494127668Sbms   { (exit 1); exit 1; }; } ;;
5495127668Sbmsesac
549656893Sfennerelse
549756893Sfenner  if test "$cross_compiling" = yes; then
5498127668Sbms  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5499127668SbmsSee \`config.log' for more details." >&5
5500127668Sbmsecho "$as_me: error: cannot run test program while cross compiling
5501127668SbmsSee \`config.log' for more details." >&2;}
5502127668Sbms   { (exit 1); exit 1; }; }
550356893Sfennerelse
5504127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5505127668Sbms#line $LINENO "configure"
5506127668Sbms/* confdefs.h.  */
5507127668Sbms_ACEOF
5508127668Sbmscat confdefs.h >>conftest.$ac_ext
5509127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5510127668Sbms/* end confdefs.h.  */
5511127668Sbms$ac_includes_default
5512127668Sbmslong longval () { return (long) (sizeof (int)); }
5513127668Sbmsunsigned long ulongval () { return (long) (sizeof (int)); }
551456893Sfenner#include <stdio.h>
5515127668Sbms#include <stdlib.h>
5516127668Sbmsint
5517127668Sbmsmain ()
551856893Sfenner{
5519127668Sbms
5520127668Sbms  FILE *f = fopen ("conftest.val", "w");
5521127668Sbms  if (! f)
5522127668Sbms    exit (1);
5523127668Sbms  if (((long) (sizeof (int))) < 0)
5524127668Sbms    {
5525127668Sbms      long i = longval ();
5526127668Sbms      if (i != ((long) (sizeof (int))))
5527127668Sbms	exit (1);
5528127668Sbms      fprintf (f, "%ld\n", i);
5529127668Sbms    }
5530127668Sbms  else
5531127668Sbms    {
5532127668Sbms      unsigned long i = ulongval ();
5533127668Sbms      if (i != ((long) (sizeof (int))))
5534127668Sbms	exit (1);
5535127668Sbms      fprintf (f, "%lu\n", i);
5536127668Sbms    }
5537127668Sbms  exit (ferror (f) || fclose (f) != 0);
5538127668Sbms
5539127668Sbms  ;
5540127668Sbms  return 0;
554156893Sfenner}
5542127668Sbms_ACEOF
5543127668Sbmsrm -f conftest$ac_exeext
5544127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545127668Sbms  (eval $ac_link) 2>&5
5546127668Sbms  ac_status=$?
5547127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5549127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550127668Sbms  (eval $ac_try) 2>&5
5551127668Sbms  ac_status=$?
5552127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553127668Sbms  (exit $ac_status); }; }; then
5554127668Sbms  ac_cv_sizeof_int=`cat conftest.val`
555556893Sfennerelse
5556127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
5557127668Sbmsecho "$as_me: failed program was:" >&5
5558127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5559127668Sbms
5560127668Sbms( exit $ac_status )
5561127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5562127668SbmsSee \`config.log' for more details." >&5
5563127668Sbmsecho "$as_me: error: cannot compute sizeof (int), 77
5564127668SbmsSee \`config.log' for more details." >&2;}
5565127668Sbms   { (exit 1); exit 1; }; }
556656893Sfennerfi
5567127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
556856893Sfennerfi
556956893Sfennerfi
5570127668Sbmsrm -f conftest.val
5571127668Sbmselse
5572127668Sbms  ac_cv_sizeof_int=0
5573127668Sbmsfi
5574127668Sbmsfi
5575127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5576127668Sbmsecho "${ECHO_T}$ac_cv_sizeof_int" >&6
5577127668Sbmscat >>confdefs.h <<_ACEOF
5578127668Sbms#define SIZEOF_INT $ac_cv_sizeof_int
5579127668Sbms_ACEOF
558056893Sfenner
558156893Sfenner
5582127668Sbmsecho "$as_me:$LINENO: checking for long" >&5
5583127668Sbmsecho $ECHO_N "checking for long... $ECHO_C" >&6
5584127668Sbmsif test "${ac_cv_type_long+set}" = set; then
5585127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
558656893Sfennerelse
5587127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5588127668Sbms#line $LINENO "configure"
5589127668Sbms/* confdefs.h.  */
5590127668Sbms_ACEOF
5591127668Sbmscat confdefs.h >>conftest.$ac_ext
5592127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5593127668Sbms/* end confdefs.h.  */
5594127668Sbms$ac_includes_default
5595127668Sbmsint
5596127668Sbmsmain ()
5597127668Sbms{
5598127668Sbmsif ((long *) 0)
5599127668Sbms  return 0;
5600127668Sbmsif (sizeof (long))
5601127668Sbms  return 0;
5602127668Sbms  ;
5603127668Sbms  return 0;
5604127668Sbms}
5605127668Sbms_ACEOF
5606127668Sbmsrm -f conftest.$ac_objext
5607127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608127668Sbms  (eval $ac_compile) 2>&5
5609127668Sbms  ac_status=$?
5610127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611127668Sbms  (exit $ac_status); } &&
5612127668Sbms         { ac_try='test -s conftest.$ac_objext'
5613127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614127668Sbms  (eval $ac_try) 2>&5
5615127668Sbms  ac_status=$?
5616127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617127668Sbms  (exit $ac_status); }; }; then
5618127668Sbms  ac_cv_type_long=yes
5619127668Sbmselse
5620127668Sbms  echo "$as_me: failed program was:" >&5
5621127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5622127668Sbms
5623127668Sbmsac_cv_type_long=no
5624127668Sbmsfi
5625127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5626127668Sbmsfi
5627127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5628127668Sbmsecho "${ECHO_T}$ac_cv_type_long" >&6
5629127668Sbms
5630127668Sbmsecho "$as_me:$LINENO: checking size of long" >&5
5631127668Sbmsecho $ECHO_N "checking size of long... $ECHO_C" >&6
5632127668Sbmsif test "${ac_cv_sizeof_long+set}" = set; then
5633127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
5634127668Sbmselse
5635127668Sbms  if test "$ac_cv_type_long" = yes; then
5636127668Sbms  # The cast to unsigned long works around a bug in the HP C Compiler
5637127668Sbms  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5638127668Sbms  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5639127668Sbms  # This bug is HP SR number 8606223364.
564056893Sfenner  if test "$cross_compiling" = yes; then
5641127668Sbms  # Depending upon the size, compute the lo and hi bounds.
5642127668Sbmscat >conftest.$ac_ext <<_ACEOF
5643127668Sbms#line $LINENO "configure"
5644127668Sbms/* confdefs.h.  */
5645127668Sbms_ACEOF
5646127668Sbmscat confdefs.h >>conftest.$ac_ext
5647127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5648127668Sbms/* end confdefs.h.  */
5649127668Sbms$ac_includes_default
5650127668Sbmsint
5651127668Sbmsmain ()
5652127668Sbms{
5653127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5654127668Sbmstest_array [0] = 0
5655127668Sbms
5656127668Sbms  ;
5657127668Sbms  return 0;
5658127668Sbms}
5659127668Sbms_ACEOF
5660127668Sbmsrm -f conftest.$ac_objext
5661127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662127668Sbms  (eval $ac_compile) 2>&5
5663127668Sbms  ac_status=$?
5664127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665127668Sbms  (exit $ac_status); } &&
5666127668Sbms         { ac_try='test -s conftest.$ac_objext'
5667127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668127668Sbms  (eval $ac_try) 2>&5
5669127668Sbms  ac_status=$?
5670127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671127668Sbms  (exit $ac_status); }; }; then
5672127668Sbms  ac_lo=0 ac_mid=0
5673127668Sbms  while :; do
5674127668Sbms    cat >conftest.$ac_ext <<_ACEOF
5675127668Sbms#line $LINENO "configure"
5676127668Sbms/* confdefs.h.  */
5677127668Sbms_ACEOF
5678127668Sbmscat confdefs.h >>conftest.$ac_ext
5679127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5680127668Sbms/* end confdefs.h.  */
5681127668Sbms$ac_includes_default
5682127668Sbmsint
5683127668Sbmsmain ()
5684127668Sbms{
5685127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5686127668Sbmstest_array [0] = 0
5687127668Sbms
5688127668Sbms  ;
5689127668Sbms  return 0;
5690127668Sbms}
5691127668Sbms_ACEOF
5692127668Sbmsrm -f conftest.$ac_objext
5693127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694127668Sbms  (eval $ac_compile) 2>&5
5695127668Sbms  ac_status=$?
5696127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697127668Sbms  (exit $ac_status); } &&
5698127668Sbms         { ac_try='test -s conftest.$ac_objext'
5699127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700127668Sbms  (eval $ac_try) 2>&5
5701127668Sbms  ac_status=$?
5702127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703127668Sbms  (exit $ac_status); }; }; then
5704127668Sbms  ac_hi=$ac_mid; break
570556893Sfennerelse
5706127668Sbms  echo "$as_me: failed program was:" >&5
5707127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5708127668Sbms
5709127668Sbmsac_lo=`expr $ac_mid + 1`
5710127668Sbms                    if test $ac_lo -le $ac_mid; then
5711127668Sbms                      ac_lo= ac_hi=
5712127668Sbms                      break
5713127668Sbms                    fi
5714127668Sbms                    ac_mid=`expr 2 '*' $ac_mid + 1`
5715127668Sbmsfi
5716127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5717127668Sbms  done
5718127668Sbmselse
5719127668Sbms  echo "$as_me: failed program was:" >&5
5720127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5721127668Sbms
5722127668Sbmscat >conftest.$ac_ext <<_ACEOF
5723127668Sbms#line $LINENO "configure"
5724127668Sbms/* confdefs.h.  */
5725127668Sbms_ACEOF
5726127668Sbmscat confdefs.h >>conftest.$ac_ext
5727127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5728127668Sbms/* end confdefs.h.  */
5729127668Sbms$ac_includes_default
5730127668Sbmsint
5731127668Sbmsmain ()
573256893Sfenner{
5733127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5734127668Sbmstest_array [0] = 0
5735127668Sbms
5736127668Sbms  ;
5737127668Sbms  return 0;
573856893Sfenner}
5739127668Sbms_ACEOF
5740127668Sbmsrm -f conftest.$ac_objext
5741127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742127668Sbms  (eval $ac_compile) 2>&5
5743127668Sbms  ac_status=$?
5744127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745127668Sbms  (exit $ac_status); } &&
5746127668Sbms         { ac_try='test -s conftest.$ac_objext'
5747127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748127668Sbms  (eval $ac_try) 2>&5
5749127668Sbms  ac_status=$?
5750127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751127668Sbms  (exit $ac_status); }; }; then
5752127668Sbms  ac_hi=-1 ac_mid=-1
5753127668Sbms  while :; do
5754127668Sbms    cat >conftest.$ac_ext <<_ACEOF
5755127668Sbms#line $LINENO "configure"
5756127668Sbms/* confdefs.h.  */
5757127668Sbms_ACEOF
5758127668Sbmscat confdefs.h >>conftest.$ac_ext
5759127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5760127668Sbms/* end confdefs.h.  */
5761127668Sbms$ac_includes_default
5762127668Sbmsint
5763127668Sbmsmain ()
5764127668Sbms{
5765127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5766127668Sbmstest_array [0] = 0
5767127668Sbms
5768127668Sbms  ;
5769127668Sbms  return 0;
5770127668Sbms}
5771127668Sbms_ACEOF
5772127668Sbmsrm -f conftest.$ac_objext
5773127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774127668Sbms  (eval $ac_compile) 2>&5
5775127668Sbms  ac_status=$?
5776127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777127668Sbms  (exit $ac_status); } &&
5778127668Sbms         { ac_try='test -s conftest.$ac_objext'
5779127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780127668Sbms  (eval $ac_try) 2>&5
5781127668Sbms  ac_status=$?
5782127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783127668Sbms  (exit $ac_status); }; }; then
5784127668Sbms  ac_lo=$ac_mid; break
578556893Sfennerelse
5786127668Sbms  echo "$as_me: failed program was:" >&5
5787127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5788127668Sbms
5789127668Sbmsac_hi=`expr '(' $ac_mid ')' - 1`
5790127668Sbms                       if test $ac_mid -le $ac_hi; then
5791127668Sbms                         ac_lo= ac_hi=
5792127668Sbms                         break
5793127668Sbms                       fi
5794127668Sbms                       ac_mid=`expr 2 '*' $ac_mid`
579556893Sfennerfi
5796127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5797127668Sbms  done
5798127668Sbmselse
5799127668Sbms  echo "$as_me: failed program was:" >&5
5800127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
580156893Sfenner
5802127668Sbmsac_lo= ac_hi=
580356893Sfennerfi
5804127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5805127668Sbmsfi
5806127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5807127668Sbms# Binary search between lo and hi bounds.
5808127668Sbmswhile test "x$ac_lo" != "x$ac_hi"; do
5809127668Sbms  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5810127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5811127668Sbms#line $LINENO "configure"
5812127668Sbms/* confdefs.h.  */
5813127668Sbms_ACEOF
5814127668Sbmscat confdefs.h >>conftest.$ac_ext
5815127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5816127668Sbms/* end confdefs.h.  */
5817127668Sbms$ac_includes_default
5818127668Sbmsint
5819127668Sbmsmain ()
5820127668Sbms{
5821127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5822127668Sbmstest_array [0] = 0
582356893Sfenner
5824127668Sbms  ;
5825127668Sbms  return 0;
5826127668Sbms}
5827127668Sbms_ACEOF
5828127668Sbmsrm -f conftest.$ac_objext
5829127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830127668Sbms  (eval $ac_compile) 2>&5
5831127668Sbms  ac_status=$?
5832127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833127668Sbms  (exit $ac_status); } &&
5834127668Sbms         { ac_try='test -s conftest.$ac_objext'
5835127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836127668Sbms  (eval $ac_try) 2>&5
5837127668Sbms  ac_status=$?
5838127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839127668Sbms  (exit $ac_status); }; }; then
5840127668Sbms  ac_hi=$ac_mid
5841127668Sbmselse
5842127668Sbms  echo "$as_me: failed program was:" >&5
5843127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
584456893Sfenner
5845127668Sbmsac_lo=`expr '(' $ac_mid ')' + 1`
5846127668Sbmsfi
5847127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
5848127668Sbmsdone
5849127668Sbmscase $ac_lo in
5850127668Sbms?*) ac_cv_sizeof_long=$ac_lo;;
5851127668Sbms'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5852127668SbmsSee \`config.log' for more details." >&5
5853127668Sbmsecho "$as_me: error: cannot compute sizeof (long), 77
5854127668SbmsSee \`config.log' for more details." >&2;}
5855127668Sbms   { (exit 1); exit 1; }; } ;;
5856127668Sbmsesac
585756893Sfennerelse
585856893Sfenner  if test "$cross_compiling" = yes; then
5859127668Sbms  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5860127668SbmsSee \`config.log' for more details." >&5
5861127668Sbmsecho "$as_me: error: cannot run test program while cross compiling
5862127668SbmsSee \`config.log' for more details." >&2;}
5863127668Sbms   { (exit 1); exit 1; }; }
586456893Sfennerelse
5865127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5866127668Sbms#line $LINENO "configure"
5867127668Sbms/* confdefs.h.  */
5868127668Sbms_ACEOF
5869127668Sbmscat confdefs.h >>conftest.$ac_ext
5870127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5871127668Sbms/* end confdefs.h.  */
5872127668Sbms$ac_includes_default
5873127668Sbmslong longval () { return (long) (sizeof (long)); }
5874127668Sbmsunsigned long ulongval () { return (long) (sizeof (long)); }
587556893Sfenner#include <stdio.h>
5876127668Sbms#include <stdlib.h>
5877127668Sbmsint
5878127668Sbmsmain ()
587956893Sfenner{
5880127668Sbms
5881127668Sbms  FILE *f = fopen ("conftest.val", "w");
5882127668Sbms  if (! f)
5883127668Sbms    exit (1);
5884127668Sbms  if (((long) (sizeof (long))) < 0)
5885127668Sbms    {
5886127668Sbms      long i = longval ();
5887127668Sbms      if (i != ((long) (sizeof (long))))
5888127668Sbms	exit (1);
5889127668Sbms      fprintf (f, "%ld\n", i);
5890127668Sbms    }
5891127668Sbms  else
5892127668Sbms    {
5893127668Sbms      unsigned long i = ulongval ();
5894127668Sbms      if (i != ((long) (sizeof (long))))
5895127668Sbms	exit (1);
5896127668Sbms      fprintf (f, "%lu\n", i);
5897127668Sbms    }
5898127668Sbms  exit (ferror (f) || fclose (f) != 0);
5899127668Sbms
5900127668Sbms  ;
5901127668Sbms  return 0;
590256893Sfenner}
5903127668Sbms_ACEOF
5904127668Sbmsrm -f conftest$ac_exeext
5905127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5906127668Sbms  (eval $ac_link) 2>&5
5907127668Sbms  ac_status=$?
5908127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5910127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911127668Sbms  (eval $ac_try) 2>&5
5912127668Sbms  ac_status=$?
5913127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914127668Sbms  (exit $ac_status); }; }; then
5915127668Sbms  ac_cv_sizeof_long=`cat conftest.val`
591656893Sfennerelse
5917127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
5918127668Sbmsecho "$as_me: failed program was:" >&5
5919127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5920127668Sbms
5921127668Sbms( exit $ac_status )
5922127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5923127668SbmsSee \`config.log' for more details." >&5
5924127668Sbmsecho "$as_me: error: cannot compute sizeof (long), 77
5925127668SbmsSee \`config.log' for more details." >&2;}
5926127668Sbms   { (exit 1); exit 1; }; }
5927127668Sbmsfi
5928127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5929127668Sbmsfi
5930127668Sbmsfi
5931127668Sbmsrm -f conftest.val
5932127668Sbmselse
593356893Sfenner  ac_cv_sizeof_long=0
593456893Sfennerfi
593556893Sfennerfi
5936127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5937127668Sbmsecho "${ECHO_T}$ac_cv_sizeof_long" >&6
5938127668Sbmscat >>confdefs.h <<_ACEOF
593956893Sfenner#define SIZEOF_LONG $ac_cv_sizeof_long
5940127668Sbms_ACEOF
594156893Sfenner
594256893Sfenner
5943146773Ssamecho "$as_me:$LINENO: checking for long long" >&5
5944146773Ssamecho $ECHO_N "checking for long long... $ECHO_C" >&6
5945146773Ssamif test "${ac_cv_type_long_long+set}" = set; then
5946146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
5947146773Ssamelse
5948146773Ssam  cat >conftest.$ac_ext <<_ACEOF
5949146773Ssam#line $LINENO "configure"
5950146773Ssam/* confdefs.h.  */
5951146773Ssam_ACEOF
5952146773Ssamcat confdefs.h >>conftest.$ac_ext
5953146773Ssamcat >>conftest.$ac_ext <<_ACEOF
5954146773Ssam/* end confdefs.h.  */
5955146773Ssam$ac_includes_default
5956146773Ssamint
5957146773Ssammain ()
5958146773Ssam{
5959146773Ssamif ((long long *) 0)
5960146773Ssam  return 0;
5961146773Ssamif (sizeof (long long))
5962146773Ssam  return 0;
5963146773Ssam  ;
5964146773Ssam  return 0;
5965146773Ssam}
5966146773Ssam_ACEOF
5967146773Ssamrm -f conftest.$ac_objext
5968146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5969146773Ssam  (eval $ac_compile) 2>&5
5970146773Ssam  ac_status=$?
5971146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972146773Ssam  (exit $ac_status); } &&
5973146773Ssam         { ac_try='test -s conftest.$ac_objext'
5974146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975146773Ssam  (eval $ac_try) 2>&5
5976146773Ssam  ac_status=$?
5977146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978146773Ssam  (exit $ac_status); }; }; then
5979146773Ssam  ac_cv_type_long_long=yes
5980146773Ssamelse
5981146773Ssam  echo "$as_me: failed program was:" >&5
5982146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
598356893Sfenner
5984146773Ssamac_cv_type_long_long=no
5985146773Ssamfi
5986146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
5987146773Ssamfi
5988146773Ssamecho "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5989146773Ssamecho "${ECHO_T}$ac_cv_type_long_long" >&6
599056893Sfenner
5991146773Ssamecho "$as_me:$LINENO: checking size of long long" >&5
5992146773Ssamecho $ECHO_N "checking size of long long... $ECHO_C" >&6
5993146773Ssamif test "${ac_cv_sizeof_long_long+set}" = set; then
5994146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
5995146773Ssamelse
5996146773Ssam  if test "$ac_cv_type_long_long" = yes; then
5997146773Ssam  # The cast to unsigned long works around a bug in the HP C Compiler
5998146773Ssam  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5999146773Ssam  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6000146773Ssam  # This bug is HP SR number 8606223364.
6001146773Ssam  if test "$cross_compiling" = yes; then
6002146773Ssam  # Depending upon the size, compute the lo and hi bounds.
6003146773Ssamcat >conftest.$ac_ext <<_ACEOF
6004146773Ssam#line $LINENO "configure"
6005146773Ssam/* confdefs.h.  */
6006146773Ssam_ACEOF
6007146773Ssamcat confdefs.h >>conftest.$ac_ext
6008146773Ssamcat >>conftest.$ac_ext <<_ACEOF
6009146773Ssam/* end confdefs.h.  */
6010146773Ssam$ac_includes_default
6011146773Ssamint
6012146773Ssammain ()
6013146773Ssam{
6014146773Ssamstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6015146773Ssamtest_array [0] = 0
601656893Sfenner
6017146773Ssam  ;
6018146773Ssam  return 0;
6019146773Ssam}
6020146773Ssam_ACEOF
6021146773Ssamrm -f conftest.$ac_objext
6022146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023146773Ssam  (eval $ac_compile) 2>&5
6024146773Ssam  ac_status=$?
6025146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026146773Ssam  (exit $ac_status); } &&
6027146773Ssam         { ac_try='test -s conftest.$ac_objext'
6028146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029146773Ssam  (eval $ac_try) 2>&5
6030146773Ssam  ac_status=$?
6031146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032146773Ssam  (exit $ac_status); }; }; then
6033146773Ssam  ac_lo=0 ac_mid=0
6034146773Ssam  while :; do
6035146773Ssam    cat >conftest.$ac_ext <<_ACEOF
6036146773Ssam#line $LINENO "configure"
6037146773Ssam/* confdefs.h.  */
6038146773Ssam_ACEOF
6039146773Ssamcat confdefs.h >>conftest.$ac_ext
6040146773Ssamcat >>conftest.$ac_ext <<_ACEOF
6041146773Ssam/* end confdefs.h.  */
6042146773Ssam$ac_includes_default
6043146773Ssamint
6044146773Ssammain ()
6045146773Ssam{
6046146773Ssamstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6047146773Ssamtest_array [0] = 0
6048146773Ssam
6049146773Ssam  ;
6050146773Ssam  return 0;
6051146773Ssam}
6052146773Ssam_ACEOF
6053146773Ssamrm -f conftest.$ac_objext
6054146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055146773Ssam  (eval $ac_compile) 2>&5
6056146773Ssam  ac_status=$?
6057146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058146773Ssam  (exit $ac_status); } &&
6059146773Ssam         { ac_try='test -s conftest.$ac_objext'
6060146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061146773Ssam  (eval $ac_try) 2>&5
6062146773Ssam  ac_status=$?
6063146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064146773Ssam  (exit $ac_status); }; }; then
6065146773Ssam  ac_hi=$ac_mid; break
6066146773Ssamelse
6067146773Ssam  echo "$as_me: failed program was:" >&5
6068146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
6069146773Ssam
6070146773Ssamac_lo=`expr $ac_mid + 1`
6071146773Ssam                    if test $ac_lo -le $ac_mid; then
6072146773Ssam                      ac_lo= ac_hi=
6073146773Ssam                      break
6074146773Ssam                    fi
6075146773Ssam                    ac_mid=`expr 2 '*' $ac_mid + 1`
6076146773Ssamfi
6077146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
6078146773Ssam  done
6079146773Ssamelse
6080146773Ssam  echo "$as_me: failed program was:" >&5
6081146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
6082146773Ssam
6083146773Ssamcat >conftest.$ac_ext <<_ACEOF
6084146773Ssam#line $LINENO "configure"
6085146773Ssam/* confdefs.h.  */
6086146773Ssam_ACEOF
6087146773Ssamcat confdefs.h >>conftest.$ac_ext
6088146773Ssamcat >>conftest.$ac_ext <<_ACEOF
6089146773Ssam/* end confdefs.h.  */
6090146773Ssam$ac_includes_default
6091146773Ssamint
6092146773Ssammain ()
6093146773Ssam{
6094146773Ssamstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6095146773Ssamtest_array [0] = 0
6096146773Ssam
6097146773Ssam  ;
6098146773Ssam  return 0;
6099146773Ssam}
6100146773Ssam_ACEOF
6101146773Ssamrm -f conftest.$ac_objext
6102146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103146773Ssam  (eval $ac_compile) 2>&5
6104146773Ssam  ac_status=$?
6105146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106146773Ssam  (exit $ac_status); } &&
6107146773Ssam         { ac_try='test -s conftest.$ac_objext'
6108146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109146773Ssam  (eval $ac_try) 2>&5
6110146773Ssam  ac_status=$?
6111146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112146773Ssam  (exit $ac_status); }; }; then
6113146773Ssam  ac_hi=-1 ac_mid=-1
6114146773Ssam  while :; do
6115146773Ssam    cat >conftest.$ac_ext <<_ACEOF
6116146773Ssam#line $LINENO "configure"
6117146773Ssam/* confdefs.h.  */
6118146773Ssam_ACEOF
6119146773Ssamcat confdefs.h >>conftest.$ac_ext
6120146773Ssamcat >>conftest.$ac_ext <<_ACEOF
6121146773Ssam/* end confdefs.h.  */
6122146773Ssam$ac_includes_default
6123146773Ssamint
6124146773Ssammain ()
6125146773Ssam{
6126146773Ssamstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6127146773Ssamtest_array [0] = 0
6128146773Ssam
6129146773Ssam  ;
6130146773Ssam  return 0;
6131146773Ssam}
6132146773Ssam_ACEOF
6133146773Ssamrm -f conftest.$ac_objext
6134146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135146773Ssam  (eval $ac_compile) 2>&5
6136146773Ssam  ac_status=$?
6137146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138146773Ssam  (exit $ac_status); } &&
6139146773Ssam         { ac_try='test -s conftest.$ac_objext'
6140146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141146773Ssam  (eval $ac_try) 2>&5
6142146773Ssam  ac_status=$?
6143146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144146773Ssam  (exit $ac_status); }; }; then
6145146773Ssam  ac_lo=$ac_mid; break
6146146773Ssamelse
6147146773Ssam  echo "$as_me: failed program was:" >&5
6148146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
6149146773Ssam
6150146773Ssamac_hi=`expr '(' $ac_mid ')' - 1`
6151146773Ssam                       if test $ac_mid -le $ac_hi; then
6152146773Ssam                         ac_lo= ac_hi=
6153146773Ssam                         break
6154146773Ssam                       fi
6155146773Ssam                       ac_mid=`expr 2 '*' $ac_mid`
6156146773Ssamfi
6157146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
6158146773Ssam  done
6159146773Ssamelse
6160146773Ssam  echo "$as_me: failed program was:" >&5
6161146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
6162146773Ssam
6163146773Ssamac_lo= ac_hi=
6164146773Ssamfi
6165146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
6166146773Ssamfi
6167146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
6168146773Ssam# Binary search between lo and hi bounds.
6169146773Ssamwhile test "x$ac_lo" != "x$ac_hi"; do
6170146773Ssam  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6171146773Ssam  cat >conftest.$ac_ext <<_ACEOF
6172146773Ssam#line $LINENO "configure"
6173146773Ssam/* confdefs.h.  */
6174146773Ssam_ACEOF
6175146773Ssamcat confdefs.h >>conftest.$ac_ext
6176146773Ssamcat >>conftest.$ac_ext <<_ACEOF
6177146773Ssam/* end confdefs.h.  */
6178146773Ssam$ac_includes_default
6179146773Ssamint
6180146773Ssammain ()
6181146773Ssam{
6182146773Ssamstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6183146773Ssamtest_array [0] = 0
6184146773Ssam
6185146773Ssam  ;
6186146773Ssam  return 0;
6187146773Ssam}
6188146773Ssam_ACEOF
6189146773Ssamrm -f conftest.$ac_objext
6190146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191146773Ssam  (eval $ac_compile) 2>&5
6192146773Ssam  ac_status=$?
6193146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194146773Ssam  (exit $ac_status); } &&
6195146773Ssam         { ac_try='test -s conftest.$ac_objext'
6196146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197146773Ssam  (eval $ac_try) 2>&5
6198146773Ssam  ac_status=$?
6199146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200146773Ssam  (exit $ac_status); }; }; then
6201146773Ssam  ac_hi=$ac_mid
6202146773Ssamelse
6203146773Ssam  echo "$as_me: failed program was:" >&5
6204146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
6205146773Ssam
6206146773Ssamac_lo=`expr '(' $ac_mid ')' + 1`
6207146773Ssamfi
6208146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
6209146773Ssamdone
6210146773Ssamcase $ac_lo in
6211146773Ssam?*) ac_cv_sizeof_long_long=$ac_lo;;
6212146773Ssam'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6213146773SsamSee \`config.log' for more details." >&5
6214146773Ssamecho "$as_me: error: cannot compute sizeof (long long), 77
6215146773SsamSee \`config.log' for more details." >&2;}
6216146773Ssam   { (exit 1); exit 1; }; } ;;
6217146773Ssamesac
6218146773Ssamelse
6219146773Ssam  if test "$cross_compiling" = yes; then
6220146773Ssam  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6221146773SsamSee \`config.log' for more details." >&5
6222146773Ssamecho "$as_me: error: cannot run test program while cross compiling
6223146773SsamSee \`config.log' for more details." >&2;}
6224146773Ssam   { (exit 1); exit 1; }; }
6225146773Ssamelse
6226146773Ssam  cat >conftest.$ac_ext <<_ACEOF
6227146773Ssam#line $LINENO "configure"
6228146773Ssam/* confdefs.h.  */
6229146773Ssam_ACEOF
6230146773Ssamcat confdefs.h >>conftest.$ac_ext
6231146773Ssamcat >>conftest.$ac_ext <<_ACEOF
6232146773Ssam/* end confdefs.h.  */
6233146773Ssam$ac_includes_default
6234146773Ssamlong longval () { return (long) (sizeof (long long)); }
6235146773Ssamunsigned long ulongval () { return (long) (sizeof (long long)); }
6236146773Ssam#include <stdio.h>
6237146773Ssam#include <stdlib.h>
6238146773Ssamint
6239146773Ssammain ()
6240146773Ssam{
6241146773Ssam
6242146773Ssam  FILE *f = fopen ("conftest.val", "w");
6243146773Ssam  if (! f)
6244146773Ssam    exit (1);
6245146773Ssam  if (((long) (sizeof (long long))) < 0)
6246146773Ssam    {
6247146773Ssam      long i = longval ();
6248146773Ssam      if (i != ((long) (sizeof (long long))))
6249146773Ssam	exit (1);
6250146773Ssam      fprintf (f, "%ld\n", i);
6251146773Ssam    }
6252146773Ssam  else
6253146773Ssam    {
6254146773Ssam      unsigned long i = ulongval ();
6255146773Ssam      if (i != ((long) (sizeof (long long))))
6256146773Ssam	exit (1);
6257146773Ssam      fprintf (f, "%lu\n", i);
6258146773Ssam    }
6259146773Ssam  exit (ferror (f) || fclose (f) != 0);
6260146773Ssam
6261146773Ssam  ;
6262146773Ssam  return 0;
6263146773Ssam}
6264146773Ssam_ACEOF
6265146773Ssamrm -f conftest$ac_exeext
6266146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267146773Ssam  (eval $ac_link) 2>&5
6268146773Ssam  ac_status=$?
6269146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270146773Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6271146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272146773Ssam  (eval $ac_try) 2>&5
6273146773Ssam  ac_status=$?
6274146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275146773Ssam  (exit $ac_status); }; }; then
6276146773Ssam  ac_cv_sizeof_long_long=`cat conftest.val`
6277146773Ssamelse
6278146773Ssam  echo "$as_me: program exited with status $ac_status" >&5
6279146773Ssamecho "$as_me: failed program was:" >&5
6280146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
6281146773Ssam
6282146773Ssam( exit $ac_status )
6283146773Ssam{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6284146773SsamSee \`config.log' for more details." >&5
6285146773Ssamecho "$as_me: error: cannot compute sizeof (long long), 77
6286146773SsamSee \`config.log' for more details." >&2;}
6287146773Ssam   { (exit 1); exit 1; }; }
6288146773Ssamfi
6289146773Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6290146773Ssamfi
6291146773Ssamfi
6292146773Ssamrm -f conftest.val
6293146773Ssamelse
6294146773Ssam  ac_cv_sizeof_long_long=0
6295146773Ssamfi
6296146773Ssamfi
6297146773Ssamecho "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6298146773Ssamecho "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6299146773Ssamcat >>confdefs.h <<_ACEOF
6300146773Ssam#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6301146773Ssam_ACEOF
6302146773Ssam
6303146773Ssam
6304146773Ssam
6305146773Ssam
6306146773Ssam
6307127668Sbms	echo "$as_me:$LINENO: checking for addrinfo" >&5
6308127668Sbmsecho $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6309127668Sbms	if test "${ac_cv_addrinfo+set}" = set; then
6310127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
631156893Sfennerelse
6312127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6313127668Sbms#line $LINENO "configure"
6314127668Sbms/* confdefs.h.  */
6315127668Sbms_ACEOF
6316127668Sbmscat confdefs.h >>conftest.$ac_ext
6317127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6318127668Sbms/* end confdefs.h.  */
631956893Sfenner
632056893Sfenner#		include <netdb.h>
6321127668Sbmsint
6322127668Sbmsmain ()
6323127668Sbms{
632456893Sfennerstruct addrinfo a
6325127668Sbms  ;
6326127668Sbms  return 0;
6327127668Sbms}
6328127668Sbms_ACEOF
6329127668Sbmsrm -f conftest.$ac_objext
6330127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331127668Sbms  (eval $ac_compile) 2>&5
6332127668Sbms  ac_status=$?
6333127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334127668Sbms  (exit $ac_status); } &&
6335127668Sbms         { ac_try='test -s conftest.$ac_objext'
6336127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337127668Sbms  (eval $ac_try) 2>&5
6338127668Sbms  ac_status=$?
6339127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340127668Sbms  (exit $ac_status); }; }; then
634156893Sfenner  ac_cv_addrinfo=yes
634256893Sfennerelse
6343127668Sbms  echo "$as_me: failed program was:" >&5
6344127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6345127668Sbms
6346127668Sbmsac_cv_addrinfo=no
634756893Sfennerfi
6348127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
634956893Sfennerfi
635056893Sfenner
6351127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6352127668Sbmsecho "${ECHO_T}$ac_cv_addrinfo" >&6
635356893Sfenner	if test $ac_cv_addrinfo = yes; then
6354127668Sbms		cat >>confdefs.h <<\_ACEOF
635556893Sfenner#define HAVE_ADDRINFO 1
6356127668Sbms_ACEOF
635756893Sfenner
635856893Sfenner	else
6359127668Sbms		cat >>confdefs.h <<\_ACEOF
636056893Sfenner#define NEED_ADDRINFO_H 1
6361127668Sbms_ACEOF
636256893Sfenner
636356893Sfenner	fi
636456893Sfenner
636556893Sfennerif test "$ac_cv_addrinfo" = no; then
636656893Sfenner	missing_includes=yes
636756893Sfennerfi
636856893Sfenner
636956893Sfenner
6370127668Sbms	echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6371127668Sbmsecho $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6372127668Sbms	if test "${ac_cv_maxserv+set}" = set; then
6373127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
637456893Sfennerelse
6375127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6376127668Sbms#line $LINENO "configure"
6377127668Sbms/* confdefs.h.  */
6378127668Sbms_ACEOF
6379127668Sbmscat confdefs.h >>conftest.$ac_ext
6380127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6381127668Sbms/* end confdefs.h.  */
638256893Sfenner#include <netdb.h>
638356893Sfenner#ifdef NI_MAXSERV
638456893Sfenneryes
638556893Sfenner#endif
6386127668Sbms_ACEOF
638756893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
638956893Sfenner  ac_cv_maxserv=yes
639056893Sfennerelse
639156893Sfenner  ac_cv_maxserv=no
639256893Sfennerfi
639356893Sfennerrm -f conftest*
639456893Sfenner
639556893Sfennerfi
639656893Sfenner
6397127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6398127668Sbmsecho "${ECHO_T}$ac_cv_maxserv" >&6
639956893Sfenner	if test $ac_cv_maxserv != yes; then
6400127668Sbms		cat >>confdefs.h <<\_ACEOF
640156893Sfenner#define NEED_ADDRINFO_H 1
6402127668Sbms_ACEOF
640356893Sfenner
640456893Sfenner	fi
640556893Sfenner
640656893Sfennerif test "$ac_cv_maxserv" = no; then
640756893Sfenner	missing_includes=yes
640856893Sfennerfi
640956893Sfenner
641056893Sfenner
6411127668Sbms	echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6412127668Sbmsecho $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6413127668Sbms	if test "${ac_cv_namereqd+set}" = set; then
6414127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
641556893Sfennerelse
6416127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6417127668Sbms#line $LINENO "configure"
6418127668Sbms/* confdefs.h.  */
6419127668Sbms_ACEOF
6420127668Sbmscat confdefs.h >>conftest.$ac_ext
6421127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6422127668Sbms/* end confdefs.h.  */
642356893Sfenner#include <netdb.h>
642456893Sfenner#ifdef NI_NOFQDN
642556893Sfenneryes
642656893Sfenner#endif
6427127668Sbms_ACEOF
642856893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6429127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
643056893Sfenner  ac_cv_namereqd=yes
643156893Sfennerelse
643256893Sfenner  ac_cv_namereqd=no
643356893Sfennerfi
643456893Sfennerrm -f conftest*
643556893Sfenner
643656893Sfennerfi
643756893Sfenner
6438127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6439127668Sbmsecho "${ECHO_T}$ac_cv_namereqd" >&6
644056893Sfenner	if test $ac_cv_namereqd != yes; then
6441127668Sbms		cat >>confdefs.h <<\_ACEOF
644256893Sfenner#define NEED_ADDRINFO_H 1
6443127668Sbms_ACEOF
644456893Sfenner
644556893Sfenner	fi
644656893Sfenner
644756893Sfennerif test "$ac_cv_namereqd" = no; then
644856893Sfenner	missing_includes=yes
644956893Sfennerfi
645056893Sfenner
645156893Sfenner
6452127668Sbms	echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6453127668Sbmsecho $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6454127668Sbms	if test "${ac_cv_sa_storage+set}" = set; then
6455127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
645656893Sfennerelse
6457127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6458127668Sbms#line $LINENO "configure"
6459127668Sbms/* confdefs.h.  */
6460127668Sbms_ACEOF
6461127668Sbmscat confdefs.h >>conftest.$ac_ext
6462127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6463127668Sbms/* end confdefs.h.  */
646456893Sfenner
646556893Sfenner#		include <sys/types.h>
646656893Sfenner#		include <sys/socket.h>
6467127668Sbmsint
6468127668Sbmsmain ()
6469127668Sbms{
647056893Sfennerstruct sockaddr_storage s
6471127668Sbms  ;
6472127668Sbms  return 0;
6473127668Sbms}
6474127668Sbms_ACEOF
6475127668Sbmsrm -f conftest.$ac_objext
6476127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477127668Sbms  (eval $ac_compile) 2>&5
6478127668Sbms  ac_status=$?
6479127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480127668Sbms  (exit $ac_status); } &&
6481127668Sbms         { ac_try='test -s conftest.$ac_objext'
6482127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483127668Sbms  (eval $ac_try) 2>&5
6484127668Sbms  ac_status=$?
6485127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486127668Sbms  (exit $ac_status); }; }; then
648756893Sfenner  ac_cv_sa_storage=yes
648856893Sfennerelse
6489127668Sbms  echo "$as_me: failed program was:" >&5
6490127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6491127668Sbms
6492127668Sbmsac_cv_sa_storage=no
649356893Sfennerfi
6494127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
649556893Sfennerfi
649656893Sfenner
6497127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6498127668Sbmsecho "${ECHO_T}$ac_cv_sa_storage" >&6
649956893Sfenner	if test $ac_cv_sa_storage = yes; then
6500127668Sbms		cat >>confdefs.h <<\_ACEOF
650156893Sfenner#define HAVE_SOCKADDR_STORAGE 1
6502127668Sbms_ACEOF
650356893Sfenner
650456893Sfenner	fi
650556893Sfenner
650656893Sfennerif test "$ac_cv_sa_storage" = no; then
650756893Sfenner	missing_includes=yes
650856893Sfennerfi
650956893Sfenner
651056893Sfenner
651156893Sfenner	ac_cv_addrsz=yes
6512127668Sbms	echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6513127668Sbmsecho $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6514127668Sbms	if test "${ac_cv_inaddrsz+set}" = set; then
6515127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
651656893Sfennerelse
6517127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6518127668Sbms#line $LINENO "configure"
6519127668Sbms/* confdefs.h.  */
6520127668Sbms_ACEOF
6521127668Sbmscat confdefs.h >>conftest.$ac_ext
6522127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6523127668Sbms/* end confdefs.h.  */
652456893Sfenner
652556893Sfenner#		include <arpa/nameser.h>
6526127668Sbmsint
6527127668Sbmsmain ()
6528127668Sbms{
652956893Sfennerint a = INADDRSZ
6530127668Sbms  ;
6531127668Sbms  return 0;
6532127668Sbms}
6533127668Sbms_ACEOF
6534127668Sbmsrm -f conftest.$ac_objext
6535127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536127668Sbms  (eval $ac_compile) 2>&5
6537127668Sbms  ac_status=$?
6538127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539127668Sbms  (exit $ac_status); } &&
6540127668Sbms         { ac_try='test -s conftest.$ac_objext'
6541127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542127668Sbms  (eval $ac_try) 2>&5
6543127668Sbms  ac_status=$?
6544127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545127668Sbms  (exit $ac_status); }; }; then
654656893Sfenner  ac_cv_inaddrsz=yes
654756893Sfennerelse
6548127668Sbms  echo "$as_me: failed program was:" >&5
6549127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6550127668Sbms
6551127668Sbmsac_cv_inaddrsz=no
655256893Sfennerfi
6553127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
655456893Sfennerfi
655556893Sfenner
6556127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6557127668Sbmsecho "${ECHO_T}$ac_cv_inaddrsz" >&6
655856893Sfenner	if test $ac_cv_inaddrsz = yes; then
6559127668Sbms		cat >>confdefs.h <<\_ACEOF
656056893Sfenner#define HAVE_INADDRSZ 1
6561127668Sbms_ACEOF
656256893Sfenner
656356893Sfenner	else
656456893Sfenner		ac_cv_addrsz=no
656556893Sfenner	fi
6566127668Sbms	echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6567127668Sbmsecho $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6568127668Sbms	if test "${ac_cv_in6addrsz+set}" = set; then
6569127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
657056893Sfennerelse
6571127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6572127668Sbms#line $LINENO "configure"
6573127668Sbms/* confdefs.h.  */
6574127668Sbms_ACEOF
6575127668Sbmscat confdefs.h >>conftest.$ac_ext
6576127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6577127668Sbms/* end confdefs.h.  */
657856893Sfenner
657956893Sfenner#		include <arpa/nameser.h>
6580127668Sbmsint
6581127668Sbmsmain ()
6582127668Sbms{
658356893Sfennerint a = IN6ADDRSZ
6584127668Sbms  ;
6585127668Sbms  return 0;
6586127668Sbms}
6587127668Sbms_ACEOF
6588127668Sbmsrm -f conftest.$ac_objext
6589127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590127668Sbms  (eval $ac_compile) 2>&5
6591127668Sbms  ac_status=$?
6592127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593127668Sbms  (exit $ac_status); } &&
6594127668Sbms         { ac_try='test -s conftest.$ac_objext'
6595127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596127668Sbms  (eval $ac_try) 2>&5
6597127668Sbms  ac_status=$?
6598127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599127668Sbms  (exit $ac_status); }; }; then
660056893Sfenner  ac_cv_in6addrsz=yes
660156893Sfennerelse
6602127668Sbms  echo "$as_me: failed program was:" >&5
6603127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6604127668Sbms
6605127668Sbmsac_cv_in6addrsz=no
660656893Sfennerfi
6607127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
660856893Sfennerfi
660956893Sfenner
6610127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6611127668Sbmsecho "${ECHO_T}$ac_cv_in6addrsz" >&6
661256893Sfenner	if test $ac_cv_in6addrsz = yes; then
6613127668Sbms		cat >>confdefs.h <<\_ACEOF
661456893Sfenner#define HAVE_IN6ADDRSZ 1
6615127668Sbms_ACEOF
661656893Sfenner
661756893Sfenner	else
661856893Sfenner		ac_cv_addrsz=no
661956893Sfenner	fi
662056893Sfenner
662156893Sfennerif test "$ac_cv_addrsz" = no; then
662256893Sfenner	missing_includes=yes
662356893Sfennerfi
662456893Sfenner
662556893Sfenner
6626127668Sbms	echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6627127668Sbmsecho $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6628127668Sbms	if test "${ac_cv_res_inet6+set}" = set; then
6629127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
663056893Sfennerelse
6631127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6632127668Sbms#line $LINENO "configure"
6633127668Sbms/* confdefs.h.  */
6634127668Sbms_ACEOF
6635127668Sbmscat confdefs.h >>conftest.$ac_ext
6636127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6637127668Sbms/* end confdefs.h.  */
663856893Sfenner
663956893Sfenner#		include <sys/types.h>
664056893Sfenner#		include <netinet/in.h>
664156893Sfenner#		include <resolv.h>
6642127668Sbmsint
6643127668Sbmsmain ()
6644127668Sbms{
664556893Sfennerint a = RES_USE_INET6
6646127668Sbms  ;
6647127668Sbms  return 0;
6648127668Sbms}
6649127668Sbms_ACEOF
6650127668Sbmsrm -f conftest.$ac_objext
6651127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652127668Sbms  (eval $ac_compile) 2>&5
6653127668Sbms  ac_status=$?
6654127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655127668Sbms  (exit $ac_status); } &&
6656127668Sbms         { ac_try='test -s conftest.$ac_objext'
6657127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658127668Sbms  (eval $ac_try) 2>&5
6659127668Sbms  ac_status=$?
6660127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661127668Sbms  (exit $ac_status); }; }; then
666256893Sfenner  ac_cv_res_inet6=yes
666356893Sfennerelse
6664127668Sbms  echo "$as_me: failed program was:" >&5
6665127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6666127668Sbms
6667127668Sbmsac_cv_res_inet6=no
666856893Sfennerfi
6669127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
667056893Sfennerfi
667156893Sfenner
6672127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6673127668Sbmsecho "${ECHO_T}$ac_cv_res_inet6" >&6
667456893Sfenner	if test $ac_cv_res_inet6 = yes; then
6675127668Sbms		cat >>confdefs.h <<\_ACEOF
667656893Sfenner#define HAVE_RES_USE_INET6 1
6677127668Sbms_ACEOF
667856893Sfenner
667956893Sfenner	fi
668056893Sfenner
668156893Sfennerif test "$ac_cv_res_inet6" = no; then
668256893Sfenner	missing_includes=yes
668356893Sfennerfi
668456893Sfenner
668556893Sfenner
6686127668Sbms	echo "$as_me:$LINENO: checking for res_state_ext" >&5
6687127668Sbmsecho $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6688127668Sbms	if test "${ac_cv_res_state_ext+set}" = set; then
6689127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
669056893Sfennerelse
6691127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6692127668Sbms#line $LINENO "configure"
6693127668Sbms/* confdefs.h.  */
6694127668Sbms_ACEOF
6695127668Sbmscat confdefs.h >>conftest.$ac_ext
6696127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6697127668Sbms/* end confdefs.h.  */
669856893Sfenner
669956893Sfenner#		include <sys/types.h>
670056893Sfenner#		include <netinet/in.h>
670156893Sfenner#		include <netinet6/in6.h>
670256893Sfenner#		include <resolv.h>
6703127668Sbmsint
6704127668Sbmsmain ()
6705127668Sbms{
670656893Sfennerstruct __res_state_ext e
6707127668Sbms  ;
6708127668Sbms  return 0;
6709127668Sbms}
6710127668Sbms_ACEOF
6711127668Sbmsrm -f conftest.$ac_objext
6712127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713127668Sbms  (eval $ac_compile) 2>&5
6714127668Sbms  ac_status=$?
6715127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716127668Sbms  (exit $ac_status); } &&
6717127668Sbms         { ac_try='test -s conftest.$ac_objext'
6718127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719127668Sbms  (eval $ac_try) 2>&5
6720127668Sbms  ac_status=$?
6721127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722127668Sbms  (exit $ac_status); }; }; then
672356893Sfenner  ac_cv_res_state_ext=yes
672456893Sfennerelse
6725127668Sbms  echo "$as_me: failed program was:" >&5
6726127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6727127668Sbms
6728127668Sbmsac_cv_res_state_ext=no
672956893Sfennerfi
6730127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
673156893Sfennerfi
673256893Sfenner
6733127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6734127668Sbmsecho "${ECHO_T}$ac_cv_res_state_ext" >&6
673556893Sfenner	if test $ac_cv_res_state_ext = yes; then
6736127668Sbms		cat >>confdefs.h <<\_ACEOF
673756893Sfenner#define HAVE_RES_STATE_EXT 1
6738127668Sbms_ACEOF
673956893Sfenner
674056893Sfenner	fi
674156893Sfenner
674256893Sfennerif test "$ac_cv_res_state_ext" = no; then
674356893Sfenner	missing_includes=yes
674456893Sfennerfi
674556893Sfenner
674656893Sfenner
6747127668Sbms	echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6748127668Sbmsecho $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6749127668Sbms	if test "${ac_cv_res_state+set}" = set; then
6750127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
675156893Sfennerelse
6752127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6753127668Sbms#line $LINENO "configure"
6754127668Sbms/* confdefs.h.  */
6755127668Sbms_ACEOF
6756127668Sbmscat confdefs.h >>conftest.$ac_ext
6757127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6758127668Sbms/* end confdefs.h.  */
675956893Sfenner
676056893Sfenner#		include <sys/types.h>
676156893Sfenner#		include <netinet/in.h>
676256893Sfenner#		include <netinet6/in6.h>
676356893Sfenner#		include <resolv.h>
6764127668Sbmsint
6765127668Sbmsmain ()
6766127668Sbms{
676756893Sfennerstruct __res_state e; e.nsort = 0
6768127668Sbms  ;
6769127668Sbms  return 0;
6770127668Sbms}
6771127668Sbms_ACEOF
6772127668Sbmsrm -f conftest.$ac_objext
6773127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774127668Sbms  (eval $ac_compile) 2>&5
6775127668Sbms  ac_status=$?
6776127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777127668Sbms  (exit $ac_status); } &&
6778127668Sbms         { ac_try='test -s conftest.$ac_objext'
6779127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780127668Sbms  (eval $ac_try) 2>&5
6781127668Sbms  ac_status=$?
6782127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783127668Sbms  (exit $ac_status); }; }; then
678456893Sfenner  ac_cv_res_state=yes
678556893Sfennerelse
6786127668Sbms  echo "$as_me: failed program was:" >&5
6787127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6788127668Sbms
6789127668Sbmsac_cv_res_state=no
679056893Sfennerfi
6791127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
679256893Sfennerfi
679356893Sfenner
6794127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6795127668Sbmsecho "${ECHO_T}$ac_cv_res_state" >&6
679656893Sfenner	if test $ac_cv_res_state = yes; then
6797127668Sbms		cat >>confdefs.h <<\_ACEOF
679856893Sfenner#define HAVE_NEW_RES_STATE 1
6799127668Sbms_ACEOF
680056893Sfenner
680156893Sfenner	fi
680256893Sfenner
680356893Sfenner
680456893Sfenner
680556893Sfenner
6806127668Sbms
6807127668Sbms
6808127668Sbms
6809127668Sbms
6810127668Sbms
6811127668Sbmsfor ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
681217680Spstdo
6813127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6814127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
6815127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6816127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
6817127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
681817680Spstelse
6819127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6820127668Sbms#line $LINENO "configure"
6821127668Sbms/* confdefs.h.  */
6822127668Sbms_ACEOF
6823127668Sbmscat confdefs.h >>conftest.$ac_ext
6824127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6825127668Sbms/* end confdefs.h.  */
682617680Spst/* System header to define __stub macros and hopefully few prototypes,
6827127668Sbms    which can conflict with char $ac_func (); below.
6828127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6829127668Sbms    <limits.h> exists even on freestanding compilers.  */
6830127668Sbms#ifdef __STDC__
6831127668Sbms# include <limits.h>
6832127668Sbms#else
6833127668Sbms# include <assert.h>
6834127668Sbms#endif
683517680Spst/* Override any gcc2 internal prototype to avoid an error.  */
6836127668Sbms#ifdef __cplusplus
6837127668Sbmsextern "C"
6838127668Sbms{
6839127668Sbms#endif
684017680Spst/* We use char because int might match the return type of a gcc2
6841127668Sbms   builtin and then its argument prototype would still apply.  */
6842127668Sbmschar $ac_func ();
6843127668Sbms/* The GNU C library defines this for functions which it implements
6844127668Sbms    to always fail with ENOSYS.  Some functions are actually named
6845127668Sbms    something starting with __ and the normal name is an alias.  */
6846127668Sbms#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6847127668Sbmschoke me
6848127668Sbms#else
6849127668Sbmschar (*f) () = $ac_func;
6850127668Sbms#endif
6851127668Sbms#ifdef __cplusplus
6852127668Sbms}
6853127668Sbms#endif
685417680Spst
6855127668Sbmsint
6856127668Sbmsmain ()
6857127668Sbms{
6858127668Sbmsreturn f != $ac_func;
6859127668Sbms  ;
6860127668Sbms  return 0;
6861127668Sbms}
6862127668Sbms_ACEOF
6863127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
6864127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865127668Sbms  (eval $ac_link) 2>&5
6866127668Sbms  ac_status=$?
6867127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868127668Sbms  (exit $ac_status); } &&
6869127668Sbms         { ac_try='test -s conftest$ac_exeext'
6870127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871127668Sbms  (eval $ac_try) 2>&5
6872127668Sbms  ac_status=$?
6873127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874127668Sbms  (exit $ac_status); }; }; then
6875127668Sbms  eval "$as_ac_var=yes"
6876127668Sbmselse
6877127668Sbms  echo "$as_me: failed program was:" >&5
6878127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
687917680Spst
6880127668Sbmseval "$as_ac_var=no"
6881127668Sbmsfi
6882127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6883127668Sbmsfi
6884127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6885127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6886127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
6887127668Sbms  cat >>confdefs.h <<_ACEOF
6888127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6889127668Sbms_ACEOF
6890127668Sbms
6891127668Sbmselse
6892127668Sbms  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6893127668Sbmsfi
6894127668Sbmsdone
6895127668Sbms
6896127668Sbms
6897127668Sbms
6898127668Sbmsfor ac_func in strftime
6899127668Sbmsdo
6900127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6901127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
6902127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6903127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
6904127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
6905127668Sbmselse
6906127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6907127668Sbms#line $LINENO "configure"
6908127668Sbms/* confdefs.h.  */
6909127668Sbms_ACEOF
6910127668Sbmscat confdefs.h >>conftest.$ac_ext
6911127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6912127668Sbms/* end confdefs.h.  */
6913127668Sbms/* System header to define __stub macros and hopefully few prototypes,
6914127668Sbms    which can conflict with char $ac_func (); below.
6915127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6916127668Sbms    <limits.h> exists even on freestanding compilers.  */
6917127668Sbms#ifdef __STDC__
6918127668Sbms# include <limits.h>
6919127668Sbms#else
6920127668Sbms# include <assert.h>
6921127668Sbms#endif
6922127668Sbms/* Override any gcc2 internal prototype to avoid an error.  */
6923127668Sbms#ifdef __cplusplus
6924127668Sbmsextern "C"
6925127668Sbms{
6926127668Sbms#endif
6927127668Sbms/* We use char because int might match the return type of a gcc2
6928127668Sbms   builtin and then its argument prototype would still apply.  */
6929127668Sbmschar $ac_func ();
693017680Spst/* The GNU C library defines this for functions which it implements
693117680Spst    to always fail with ENOSYS.  Some functions are actually named
693217680Spst    something starting with __ and the normal name is an alias.  */
693317680Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
693417680Spstchoke me
693517680Spst#else
6936127668Sbmschar (*f) () = $ac_func;
693717680Spst#endif
6938127668Sbms#ifdef __cplusplus
6939127668Sbms}
6940127668Sbms#endif
694117680Spst
6942127668Sbmsint
6943127668Sbmsmain ()
6944127668Sbms{
6945127668Sbmsreturn f != $ac_func;
6946127668Sbms  ;
6947127668Sbms  return 0;
6948127668Sbms}
6949127668Sbms_ACEOF
6950127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
6951127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6952127668Sbms  (eval $ac_link) 2>&5
6953127668Sbms  ac_status=$?
6954127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955127668Sbms  (exit $ac_status); } &&
6956127668Sbms         { ac_try='test -s conftest$ac_exeext'
6957127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958127668Sbms  (eval $ac_try) 2>&5
6959127668Sbms  ac_status=$?
6960127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961127668Sbms  (exit $ac_status); }; }; then
6962127668Sbms  eval "$as_ac_var=yes"
696317680Spstelse
6964127668Sbms  echo "$as_me: failed program was:" >&5
6965127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6966127668Sbms
6967127668Sbmseval "$as_ac_var=no"
696817680Spstfi
6969127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
697026180Sfennerfi
6971127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6972127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6973127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
6974127668Sbms  cat >>confdefs.h <<_ACEOF
6975127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6976127668Sbms_ACEOF
697717680Spst
697817680Spstfi
697917680Spstdone
698017680Spst
698126180Sfenner
698217680Spst
6983146773Ssamfor ac_func in setlinebuf alarm
698475115Sfennerdo
6985127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6986127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
6987127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6988127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
6989127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
699075115Sfennerelse
6991127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6992127668Sbms#line $LINENO "configure"
6993127668Sbms/* confdefs.h.  */
6994127668Sbms_ACEOF
6995127668Sbmscat confdefs.h >>conftest.$ac_ext
6996127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6997127668Sbms/* end confdefs.h.  */
699875115Sfenner/* System header to define __stub macros and hopefully few prototypes,
6999127668Sbms    which can conflict with char $ac_func (); below.
7000127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001127668Sbms    <limits.h> exists even on freestanding compilers.  */
7002127668Sbms#ifdef __STDC__
7003127668Sbms# include <limits.h>
7004127668Sbms#else
7005127668Sbms# include <assert.h>
7006127668Sbms#endif
700775115Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7008127668Sbms#ifdef __cplusplus
7009127668Sbmsextern "C"
7010127668Sbms{
7011127668Sbms#endif
701275115Sfenner/* We use char because int might match the return type of a gcc2
7013127668Sbms   builtin and then its argument prototype would still apply.  */
7014127668Sbmschar $ac_func ();
701575115Sfenner/* The GNU C library defines this for functions which it implements
701675115Sfenner    to always fail with ENOSYS.  Some functions are actually named
701775115Sfenner    something starting with __ and the normal name is an alias.  */
701875115Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
701975115Sfennerchoke me
702075115Sfenner#else
7021127668Sbmschar (*f) () = $ac_func;
702275115Sfenner#endif
7023127668Sbms#ifdef __cplusplus
7024127668Sbms}
7025127668Sbms#endif
702675115Sfenner
7027127668Sbmsint
7028127668Sbmsmain ()
7029127668Sbms{
7030127668Sbmsreturn f != $ac_func;
7031127668Sbms  ;
7032127668Sbms  return 0;
7033127668Sbms}
7034127668Sbms_ACEOF
7035127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7036127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7037127668Sbms  (eval $ac_link) 2>&5
7038127668Sbms  ac_status=$?
7039127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040127668Sbms  (exit $ac_status); } &&
7041127668Sbms         { ac_try='test -s conftest$ac_exeext'
7042127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043127668Sbms  (eval $ac_try) 2>&5
7044127668Sbms  ac_status=$?
7045127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046127668Sbms  (exit $ac_status); }; }; then
7047127668Sbms  eval "$as_ac_var=yes"
704875115Sfennerelse
7049127668Sbms  echo "$as_me: failed program was:" >&5
7050127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7051127668Sbms
7052127668Sbmseval "$as_ac_var=no"
705375115Sfennerfi
7054127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
705575115Sfennerfi
7056127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7057127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7058127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
7059127668Sbms  cat >>confdefs.h <<_ACEOF
7060127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7061127668Sbms_ACEOF
706275115Sfenner
706375115Sfennerfi
706475115Sfennerdone
706575115Sfenner
706675115Sfenner
706775115Sfennerneedsnprintf=no
7068127668Sbms
7069127668Sbms
707075115Sfennerfor ac_func in vsnprintf snprintf
707175115Sfennerdo
7072127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7073127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
7074127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7075127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
7076127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
707775115Sfennerelse
7078127668Sbms  cat >conftest.$ac_ext <<_ACEOF
7079127668Sbms#line $LINENO "configure"
7080127668Sbms/* confdefs.h.  */
7081127668Sbms_ACEOF
7082127668Sbmscat confdefs.h >>conftest.$ac_ext
7083127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7084127668Sbms/* end confdefs.h.  */
708575115Sfenner/* System header to define __stub macros and hopefully few prototypes,
7086127668Sbms    which can conflict with char $ac_func (); below.
7087127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7088127668Sbms    <limits.h> exists even on freestanding compilers.  */
7089127668Sbms#ifdef __STDC__
7090127668Sbms# include <limits.h>
7091127668Sbms#else
7092127668Sbms# include <assert.h>
7093127668Sbms#endif
709475115Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7095127668Sbms#ifdef __cplusplus
7096127668Sbmsextern "C"
7097127668Sbms{
7098127668Sbms#endif
709975115Sfenner/* We use char because int might match the return type of a gcc2
7100127668Sbms   builtin and then its argument prototype would still apply.  */
7101127668Sbmschar $ac_func ();
710275115Sfenner/* The GNU C library defines this for functions which it implements
710375115Sfenner    to always fail with ENOSYS.  Some functions are actually named
710475115Sfenner    something starting with __ and the normal name is an alias.  */
710575115Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
710675115Sfennerchoke me
710775115Sfenner#else
7108127668Sbmschar (*f) () = $ac_func;
710975115Sfenner#endif
7110127668Sbms#ifdef __cplusplus
7111127668Sbms}
7112127668Sbms#endif
711375115Sfenner
7114127668Sbmsint
7115127668Sbmsmain ()
7116127668Sbms{
7117127668Sbmsreturn f != $ac_func;
7118127668Sbms  ;
7119127668Sbms  return 0;
7120127668Sbms}
7121127668Sbms_ACEOF
7122127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7123127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124127668Sbms  (eval $ac_link) 2>&5
7125127668Sbms  ac_status=$?
7126127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127127668Sbms  (exit $ac_status); } &&
7128127668Sbms         { ac_try='test -s conftest$ac_exeext'
7129127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130127668Sbms  (eval $ac_try) 2>&5
7131127668Sbms  ac_status=$?
7132127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133127668Sbms  (exit $ac_status); }; }; then
7134127668Sbms  eval "$as_ac_var=yes"
713575115Sfennerelse
7136127668Sbms  echo "$as_me: failed program was:" >&5
7137127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7138127668Sbms
7139127668Sbmseval "$as_ac_var=no"
714075115Sfennerfi
7141127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
714275115Sfennerfi
7143127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7144127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7145127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
7146127668Sbms  cat >>confdefs.h <<_ACEOF
7147127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7148127668Sbms_ACEOF
714975115Sfenner
715075115Sfennerelse
7151127668Sbms  needsnprintf=yes
715275115Sfennerfi
715375115Sfennerdone
715475115Sfenner
715575115Sfennerif test $needsnprintf = yes; then
7156146773Ssam	LIBOBJS="$LIBOBJS snprintf.$ac_objext"
715775115Sfennerfi
715875115Sfenner
715926180Sfenner
7160127668Sbms    echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7161127668Sbmsecho $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7162127668Sbmsif test "${ac_cv_type_signal+set}" = set; then
7163127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
716417680Spstelse
7165127668Sbms  cat >conftest.$ac_ext <<_ACEOF
7166127668Sbms#line $LINENO "configure"
7167127668Sbms/* confdefs.h.  */
7168127668Sbms_ACEOF
7169127668Sbmscat confdefs.h >>conftest.$ac_ext
7170127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7171127668Sbms/* end confdefs.h.  */
717239297Sfenner#include <sys/types.h>
717339297Sfenner#include <signal.h>
717439297Sfenner#ifdef signal
7175127668Sbms# undef signal
717639297Sfenner#endif
717739297Sfenner#ifdef __cplusplus
717839297Sfennerextern "C" void (*signal (int, void (*)(int)))(int);
717939297Sfenner#else
718039297Sfennervoid (*signal ()) ();
718139297Sfenner#endif
718239297Sfenner
7183127668Sbmsint
7184127668Sbmsmain ()
7185127668Sbms{
718639297Sfennerint i;
7187127668Sbms  ;
7188127668Sbms  return 0;
7189127668Sbms}
7190127668Sbms_ACEOF
7191127668Sbmsrm -f conftest.$ac_objext
7192127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193127668Sbms  (eval $ac_compile) 2>&5
7194127668Sbms  ac_status=$?
7195127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196127668Sbms  (exit $ac_status); } &&
7197127668Sbms         { ac_try='test -s conftest.$ac_objext'
7198127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199127668Sbms  (eval $ac_try) 2>&5
7200127668Sbms  ac_status=$?
7201127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202127668Sbms  (exit $ac_status); }; }; then
720339297Sfenner  ac_cv_type_signal=void
720439297Sfennerelse
7205127668Sbms  echo "$as_me: failed program was:" >&5
7206127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7207127668Sbms
7208127668Sbmsac_cv_type_signal=int
720939297Sfennerfi
7210127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
721139297Sfennerfi
7212127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7213127668Sbmsecho "${ECHO_T}$ac_cv_type_signal" >&6
721439297Sfenner
7215127668Sbmscat >>confdefs.h <<_ACEOF
721639297Sfenner#define RETSIGTYPE $ac_cv_type_signal
7217127668Sbms_ACEOF
721839297Sfenner
721939297Sfenner
722039297Sfenner    if test "$ac_cv_type_signal" = void ; then
7221127668Sbms	    cat >>confdefs.h <<\_ACEOF
7222127668Sbms#define RETSIGVAL
7223127668Sbms_ACEOF
722439297Sfenner
722539297Sfenner    else
7226127668Sbms	    cat >>confdefs.h <<\_ACEOF
722739297Sfenner#define RETSIGVAL (0)
7228127668Sbms_ACEOF
722939297Sfenner
723039297Sfenner    fi
723198524Sfenner    case "$host_os" in
723239297Sfenner
723339297Sfenner    irix*)
7234127668Sbms	    cat >>confdefs.h <<\_ACEOF
723539297Sfenner#define _BSD_SIGNALS 1
7236127668Sbms_ACEOF
723739297Sfenner
723839297Sfenner	    ;;
723939297Sfenner
724039297Sfenner    *)
7241127668Sbms
7242127668Sbmsfor ac_func in sigaction
724339297Sfennerdo
7244127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7245127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
7246127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7247127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
7248127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
724939297Sfennerelse
7250127668Sbms  cat >conftest.$ac_ext <<_ACEOF
7251127668Sbms#line $LINENO "configure"
7252127668Sbms/* confdefs.h.  */
7253127668Sbms_ACEOF
7254127668Sbmscat confdefs.h >>conftest.$ac_ext
7255127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7256127668Sbms/* end confdefs.h.  */
725739297Sfenner/* System header to define __stub macros and hopefully few prototypes,
7258127668Sbms    which can conflict with char $ac_func (); below.
7259127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260127668Sbms    <limits.h> exists even on freestanding compilers.  */
7261127668Sbms#ifdef __STDC__
7262127668Sbms# include <limits.h>
7263127668Sbms#else
7264127668Sbms# include <assert.h>
7265127668Sbms#endif
726639297Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7267127668Sbms#ifdef __cplusplus
7268127668Sbmsextern "C"
7269127668Sbms{
7270127668Sbms#endif
727139297Sfenner/* We use char because int might match the return type of a gcc2
7272127668Sbms   builtin and then its argument prototype would still apply.  */
7273127668Sbmschar $ac_func ();
727439297Sfenner/* The GNU C library defines this for functions which it implements
727539297Sfenner    to always fail with ENOSYS.  Some functions are actually named
727639297Sfenner    something starting with __ and the normal name is an alias.  */
727739297Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
727839297Sfennerchoke me
727939297Sfenner#else
7280127668Sbmschar (*f) () = $ac_func;
728139297Sfenner#endif
7282127668Sbms#ifdef __cplusplus
7283127668Sbms}
7284127668Sbms#endif
728539297Sfenner
7286127668Sbmsint
7287127668Sbmsmain ()
7288127668Sbms{
7289127668Sbmsreturn f != $ac_func;
7290127668Sbms  ;
7291127668Sbms  return 0;
7292127668Sbms}
7293127668Sbms_ACEOF
7294127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7295127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296127668Sbms  (eval $ac_link) 2>&5
7297127668Sbms  ac_status=$?
7298127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299127668Sbms  (exit $ac_status); } &&
7300127668Sbms         { ac_try='test -s conftest$ac_exeext'
7301127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302127668Sbms  (eval $ac_try) 2>&5
7303127668Sbms  ac_status=$?
7304127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305127668Sbms  (exit $ac_status); }; }; then
7306127668Sbms  eval "$as_ac_var=yes"
730739297Sfennerelse
7308127668Sbms  echo "$as_me: failed program was:" >&5
7309127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7310127668Sbms
7311127668Sbmseval "$as_ac_var=no"
731239297Sfennerfi
7313127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
731439297Sfennerfi
7315127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7316127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7317127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
7318127668Sbms  cat >>confdefs.h <<_ACEOF
7319127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7320127668Sbms_ACEOF
732139297Sfenner
732239297Sfennerfi
732339297Sfennerdone
732439297Sfenner
7325127668Sbms	    if test $ac_cv_func_sigaction = no ; then
7326127668Sbms
7327127668Sbmsfor ac_func in sigset
732839297Sfennerdo
7329127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7330127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
7331127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7332127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
7333127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
733439297Sfennerelse
7335127668Sbms  cat >conftest.$ac_ext <<_ACEOF
7336127668Sbms#line $LINENO "configure"
7337127668Sbms/* confdefs.h.  */
7338127668Sbms_ACEOF
7339127668Sbmscat confdefs.h >>conftest.$ac_ext
7340127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7341127668Sbms/* end confdefs.h.  */
734239297Sfenner/* System header to define __stub macros and hopefully few prototypes,
7343127668Sbms    which can conflict with char $ac_func (); below.
7344127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7345127668Sbms    <limits.h> exists even on freestanding compilers.  */
7346127668Sbms#ifdef __STDC__
7347127668Sbms# include <limits.h>
7348127668Sbms#else
7349127668Sbms# include <assert.h>
7350127668Sbms#endif
735139297Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7352127668Sbms#ifdef __cplusplus
7353127668Sbmsextern "C"
7354127668Sbms{
7355127668Sbms#endif
735639297Sfenner/* We use char because int might match the return type of a gcc2
7357127668Sbms   builtin and then its argument prototype would still apply.  */
7358127668Sbmschar $ac_func ();
735939297Sfenner/* The GNU C library defines this for functions which it implements
736039297Sfenner    to always fail with ENOSYS.  Some functions are actually named
736139297Sfenner    something starting with __ and the normal name is an alias.  */
736239297Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
736339297Sfennerchoke me
736439297Sfenner#else
7365127668Sbmschar (*f) () = $ac_func;
736639297Sfenner#endif
7367127668Sbms#ifdef __cplusplus
7368127668Sbms}
7369127668Sbms#endif
737039297Sfenner
7371127668Sbmsint
7372127668Sbmsmain ()
7373127668Sbms{
7374127668Sbmsreturn f != $ac_func;
7375127668Sbms  ;
7376127668Sbms  return 0;
7377127668Sbms}
7378127668Sbms_ACEOF
7379127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7380127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381127668Sbms  (eval $ac_link) 2>&5
7382127668Sbms  ac_status=$?
7383127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384127668Sbms  (exit $ac_status); } &&
7385127668Sbms         { ac_try='test -s conftest$ac_exeext'
7386127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387127668Sbms  (eval $ac_try) 2>&5
7388127668Sbms  ac_status=$?
7389127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390127668Sbms  (exit $ac_status); }; }; then
7391127668Sbms  eval "$as_ac_var=yes"
739239297Sfennerelse
7393127668Sbms  echo "$as_me: failed program was:" >&5
7394127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7395127668Sbms
7396127668Sbmseval "$as_ac_var=no"
739739297Sfennerfi
7398127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
739939297Sfennerfi
7400127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7401127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7402127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
7403127668Sbms  cat >>confdefs.h <<_ACEOF
7404127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7405127668Sbms_ACEOF
740639297Sfenner
740739297Sfennerfi
740839297Sfennerdone
740939297Sfenner
741039297Sfenner	    fi
741139297Sfenner	    ;;
741239297Sfenner    esac
741339297Sfenner
7414127668Sbmsecho "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7415127668Sbmsecho $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7416127668Sbmsif test "${ac_cv_search_dnet_htoa+set}" = set; then
7417127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
741839297Sfennerelse
7419127668Sbms  ac_func_search_save_LIBS=$LIBS
7420127668Sbmsac_cv_search_dnet_htoa=no
7421127668Sbmscat >conftest.$ac_ext <<_ACEOF
7422127668Sbms#line $LINENO "configure"
7423127668Sbms/* confdefs.h.  */
7424127668Sbms_ACEOF
7425127668Sbmscat confdefs.h >>conftest.$ac_ext
7426127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7427127668Sbms/* end confdefs.h.  */
7428127668Sbms
742939297Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7430127668Sbms#ifdef __cplusplus
7431127668Sbmsextern "C"
7432127668Sbms#endif
743339297Sfenner/* We use char because int might match the return type of a gcc2
7434127668Sbms   builtin and then its argument prototype would still apply.  */
7435127668Sbmschar dnet_htoa ();
7436127668Sbmsint
7437127668Sbmsmain ()
7438127668Sbms{
7439127668Sbmsdnet_htoa ();
7440127668Sbms  ;
7441127668Sbms  return 0;
7442127668Sbms}
7443127668Sbms_ACEOF
7444127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7445127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446127668Sbms  (eval $ac_link) 2>&5
7447127668Sbms  ac_status=$?
7448127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449127668Sbms  (exit $ac_status); } &&
7450127668Sbms         { ac_try='test -s conftest$ac_exeext'
7451127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452127668Sbms  (eval $ac_try) 2>&5
7453127668Sbms  ac_status=$?
7454127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455127668Sbms  (exit $ac_status); }; }; then
7456127668Sbms  ac_cv_search_dnet_htoa="none required"
7457127668Sbmselse
7458127668Sbms  echo "$as_me: failed program was:" >&5
7459127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
746039297Sfenner
7461127668Sbmsfi
7462127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7463127668Sbmsif test "$ac_cv_search_dnet_htoa" = no; then
7464127668Sbms  for ac_lib in dnet; do
7465127668Sbms    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7466127668Sbms    cat >conftest.$ac_ext <<_ACEOF
7467127668Sbms#line $LINENO "configure"
7468127668Sbms/* confdefs.h.  */
7469127668Sbms_ACEOF
7470127668Sbmscat confdefs.h >>conftest.$ac_ext
7471127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7472127668Sbms/* end confdefs.h.  */
7473127668Sbms
7474127668Sbms/* Override any gcc2 internal prototype to avoid an error.  */
7475127668Sbms#ifdef __cplusplus
7476127668Sbmsextern "C"
7477127668Sbms#endif
7478127668Sbms/* We use char because int might match the return type of a gcc2
7479127668Sbms   builtin and then its argument prototype would still apply.  */
7480127668Sbmschar dnet_htoa ();
7481127668Sbmsint
7482127668Sbmsmain ()
7483127668Sbms{
7484127668Sbmsdnet_htoa ();
7485127668Sbms  ;
7486127668Sbms  return 0;
7487127668Sbms}
7488127668Sbms_ACEOF
7489127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7490127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7491127668Sbms  (eval $ac_link) 2>&5
7492127668Sbms  ac_status=$?
7493127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494127668Sbms  (exit $ac_status); } &&
7495127668Sbms         { ac_try='test -s conftest$ac_exeext'
7496127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497127668Sbms  (eval $ac_try) 2>&5
7498127668Sbms  ac_status=$?
7499127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500127668Sbms  (exit $ac_status); }; }; then
7501127668Sbms  ac_cv_search_dnet_htoa="-l$ac_lib"
7502127668Sbmsbreak
750339297Sfennerelse
7504127668Sbms  echo "$as_me: failed program was:" >&5
7505127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7506127668Sbms
750739297Sfennerfi
7508127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7509127668Sbms  done
7510127668Sbmsfi
7511127668SbmsLIBS=$ac_func_search_save_LIBS
7512127668Sbmsfi
7513127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7514127668Sbmsecho "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7515127668Sbmsif test "$ac_cv_search_dnet_htoa" != no; then
7516127668Sbms  test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7517127668Sbms  cat >>confdefs.h <<\_ACEOF
7518127668Sbms#define HAVE_DNET_HTOA 1
7519127668Sbms_ACEOF
752098524Sfenner
752139297Sfennerfi
752239297Sfenner
752398524Sfenner
752498524Sfenner
7525127668Sbmsecho "$as_me:$LINENO: checking for main in -lrpc" >&5
7526127668Sbmsecho $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7527127668Sbmsif test "${ac_cv_lib_rpc_main+set}" = set; then
7528127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
752939297Sfennerelse
7530127668Sbms  ac_check_lib_save_LIBS=$LIBS
753198524SfennerLIBS="-lrpc  $LIBS"
7532127668Sbmscat >conftest.$ac_ext <<_ACEOF
7533127668Sbms#line $LINENO "configure"
7534127668Sbms/* confdefs.h.  */
7535127668Sbms_ACEOF
7536127668Sbmscat confdefs.h >>conftest.$ac_ext
7537127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7538127668Sbms/* end confdefs.h.  */
753917680Spst
7540127668Sbms
7541127668Sbmsint
7542127668Sbmsmain ()
7543127668Sbms{
7544127668Sbmsmain ();
7545127668Sbms  ;
7546127668Sbms  return 0;
7547127668Sbms}
7548127668Sbms_ACEOF
7549127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7550127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551127668Sbms  (eval $ac_link) 2>&5
7552127668Sbms  ac_status=$?
7553127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554127668Sbms  (exit $ac_status); } &&
7555127668Sbms         { ac_try='test -s conftest$ac_exeext'
7556127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557127668Sbms  (eval $ac_try) 2>&5
7558127668Sbms  ac_status=$?
7559127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560127668Sbms  (exit $ac_status); }; }; then
7561127668Sbms  ac_cv_lib_rpc_main=yes
756217680Spstelse
7563127668Sbms  echo "$as_me: failed program was:" >&5
7564127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
756517680Spst
7566127668Sbmsac_cv_lib_rpc_main=no
756717680Spstfi
7568127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7569127668SbmsLIBS=$ac_check_lib_save_LIBS
7570127668Sbmsfi
7571127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7572127668Sbmsecho "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7573127668Sbmsif test $ac_cv_lib_rpc_main = yes; then
7574127668Sbms  cat >>confdefs.h <<_ACEOF
7575127668Sbms#define HAVE_LIBRPC 1
7576127668Sbms_ACEOF
757717680Spst
757898524Sfenner  LIBS="-lrpc $LIBS"
757917680Spst
758098524Sfennerfi
758198524Sfenner
7582127668Sbmsecho "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7583127668Sbmsecho $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7584127668Sbmsif test "${ac_cv_search_getrpcbynumber+set}" = set; then
7585127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
758639297Sfennerelse
7587127668Sbms  ac_func_search_save_LIBS=$LIBS
7588127668Sbmsac_cv_search_getrpcbynumber=no
7589127668Sbmscat >conftest.$ac_ext <<_ACEOF
7590127668Sbms#line $LINENO "configure"
7591127668Sbms/* confdefs.h.  */
7592127668Sbms_ACEOF
7593127668Sbmscat confdefs.h >>conftest.$ac_ext
7594127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7595127668Sbms/* end confdefs.h.  */
7596127668Sbms
759739297Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7598127668Sbms#ifdef __cplusplus
7599127668Sbmsextern "C"
7600127668Sbms#endif
760139297Sfenner/* We use char because int might match the return type of a gcc2
7602127668Sbms   builtin and then its argument prototype would still apply.  */
7603127668Sbmschar getrpcbynumber ();
7604127668Sbmsint
7605127668Sbmsmain ()
7606127668Sbms{
7607127668Sbmsgetrpcbynumber ();
7608127668Sbms  ;
7609127668Sbms  return 0;
7610127668Sbms}
7611127668Sbms_ACEOF
7612127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7613127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614127668Sbms  (eval $ac_link) 2>&5
7615127668Sbms  ac_status=$?
7616127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617127668Sbms  (exit $ac_status); } &&
7618127668Sbms         { ac_try='test -s conftest$ac_exeext'
7619127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620127668Sbms  (eval $ac_try) 2>&5
7621127668Sbms  ac_status=$?
7622127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623127668Sbms  (exit $ac_status); }; }; then
762498524Sfenner  ac_cv_search_getrpcbynumber="none required"
762539297Sfennerelse
7626127668Sbms  echo "$as_me: failed program was:" >&5
7627127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7628127668Sbms
762998524Sfennerfi
7630127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7631127668Sbmsif test "$ac_cv_search_getrpcbynumber" = no; then
7632127668Sbms  for ac_lib in nsl; do
7633127668Sbms    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7634127668Sbms    cat >conftest.$ac_ext <<_ACEOF
7635127668Sbms#line $LINENO "configure"
7636127668Sbms/* confdefs.h.  */
7637127668Sbms_ACEOF
7638127668Sbmscat confdefs.h >>conftest.$ac_ext
7639127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7640127668Sbms/* end confdefs.h.  */
7641127668Sbms
764298524Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7643127668Sbms#ifdef __cplusplus
7644127668Sbmsextern "C"
7645127668Sbms#endif
764698524Sfenner/* We use char because int might match the return type of a gcc2
7647127668Sbms   builtin and then its argument prototype would still apply.  */
7648127668Sbmschar getrpcbynumber ();
7649127668Sbmsint
7650127668Sbmsmain ()
7651127668Sbms{
7652127668Sbmsgetrpcbynumber ();
7653127668Sbms  ;
7654127668Sbms  return 0;
7655127668Sbms}
7656127668Sbms_ACEOF
7657127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7658127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659127668Sbms  (eval $ac_link) 2>&5
7660127668Sbms  ac_status=$?
7661127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662127668Sbms  (exit $ac_status); } &&
7663127668Sbms         { ac_try='test -s conftest$ac_exeext'
7664127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665127668Sbms  (eval $ac_try) 2>&5
7666127668Sbms  ac_status=$?
7667127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668127668Sbms  (exit $ac_status); }; }; then
7669127668Sbms  ac_cv_search_getrpcbynumber="-l$ac_lib"
767098524Sfennerbreak
767198524Sfennerelse
7672127668Sbms  echo "$as_me: failed program was:" >&5
7673127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7674127668Sbms
767517680Spstfi
7676127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7677127668Sbms  done
767898524Sfennerfi
7679127668SbmsLIBS=$ac_func_search_save_LIBS
7680127668Sbmsfi
7681127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7682127668Sbmsecho "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7683127668Sbmsif test "$ac_cv_search_getrpcbynumber" != no; then
7684127668Sbms  test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7685146773Ssam  cat >>confdefs.h <<\_ACEOF
7686146773Ssam#define HAVE_GETRPCBYNUMBER 1
7687146773Ssam_ACEOF
768817680Spst
768939297Sfennerfi
769039297Sfenner
769139297Sfenner
769298524Sfenner
7693127668Sbms
769498524Sfenner    # Most operating systems have gethostbyname() in the default searched
769598524Sfenner    # libraries (i.e. libc):
769698524Sfenner    # Some OSes (eg. Solaris) place it in libnsl
769798524Sfenner    # Some strange OSes (SINIX) have it in libsocket:
7698127668Sbms    echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7699127668Sbmsecho $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7700127668Sbmsif test "${ac_cv_search_gethostbyname+set}" = set; then
7701127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
770239297Sfennerelse
7703127668Sbms  ac_func_search_save_LIBS=$LIBS
7704127668Sbmsac_cv_search_gethostbyname=no
7705127668Sbmscat >conftest.$ac_ext <<_ACEOF
7706127668Sbms#line $LINENO "configure"
7707127668Sbms/* confdefs.h.  */
7708127668Sbms_ACEOF
7709127668Sbmscat confdefs.h >>conftest.$ac_ext
7710127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7711127668Sbms/* end confdefs.h.  */
7712127668Sbms
771339297Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7714127668Sbms#ifdef __cplusplus
7715127668Sbmsextern "C"
7716127668Sbms#endif
771739297Sfenner/* We use char because int might match the return type of a gcc2
7718127668Sbms   builtin and then its argument prototype would still apply.  */
7719127668Sbmschar gethostbyname ();
7720127668Sbmsint
7721127668Sbmsmain ()
7722127668Sbms{
7723127668Sbmsgethostbyname ();
7724127668Sbms  ;
7725127668Sbms  return 0;
7726127668Sbms}
7727127668Sbms_ACEOF
7728127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7729127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7730127668Sbms  (eval $ac_link) 2>&5
7731127668Sbms  ac_status=$?
7732127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733127668Sbms  (exit $ac_status); } &&
7734127668Sbms         { ac_try='test -s conftest$ac_exeext'
7735127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736127668Sbms  (eval $ac_try) 2>&5
7737127668Sbms  ac_status=$?
7738127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739127668Sbms  (exit $ac_status); }; }; then
774098524Sfenner  ac_cv_search_gethostbyname="none required"
774139297Sfennerelse
7742127668Sbms  echo "$as_me: failed program was:" >&5
7743127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7744127668Sbms
774598524Sfennerfi
7746127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7747127668Sbmsif test "$ac_cv_search_gethostbyname" = no; then
7748127668Sbms  for ac_lib in nsl socket resolv; do
7749127668Sbms    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7750127668Sbms    cat >conftest.$ac_ext <<_ACEOF
7751127668Sbms#line $LINENO "configure"
7752127668Sbms/* confdefs.h.  */
7753127668Sbms_ACEOF
7754127668Sbmscat confdefs.h >>conftest.$ac_ext
7755127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7756127668Sbms/* end confdefs.h.  */
7757127668Sbms
775898524Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7759127668Sbms#ifdef __cplusplus
7760127668Sbmsextern "C"
7761127668Sbms#endif
776298524Sfenner/* We use char because int might match the return type of a gcc2
7763127668Sbms   builtin and then its argument prototype would still apply.  */
7764127668Sbmschar gethostbyname ();
7765127668Sbmsint
7766127668Sbmsmain ()
7767127668Sbms{
7768127668Sbmsgethostbyname ();
7769127668Sbms  ;
7770127668Sbms  return 0;
7771127668Sbms}
7772127668Sbms_ACEOF
7773127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7774127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775127668Sbms  (eval $ac_link) 2>&5
7776127668Sbms  ac_status=$?
7777127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778127668Sbms  (exit $ac_status); } &&
7779127668Sbms         { ac_try='test -s conftest$ac_exeext'
7780127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781127668Sbms  (eval $ac_try) 2>&5
7782127668Sbms  ac_status=$?
7783127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784127668Sbms  (exit $ac_status); }; }; then
7785127668Sbms  ac_cv_search_gethostbyname="-l$ac_lib"
778698524Sfennerbreak
778798524Sfennerelse
7788127668Sbms  echo "$as_me: failed program was:" >&5
7789127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7790127668Sbms
779139297Sfennerfi
7792127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7793127668Sbms  done
779498524Sfennerfi
7795127668SbmsLIBS=$ac_func_search_save_LIBS
7796127668Sbmsfi
7797127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7798127668Sbmsecho "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7799127668Sbmsif test "$ac_cv_search_gethostbyname" != no; then
7800127668Sbms  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
780139297Sfenner
780239297Sfennerfi
7803127668Sbms
780498524Sfenner    # Unfortunately libsocket sometimes depends on libnsl and
780598524Sfenner    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
780698524Sfenner    if test "$ac_cv_search_gethostbyname" = "no"
780798524Sfenner    then
7808127668Sbms	echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7809127668Sbmsecho $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7810127668Sbmsif test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7811127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
781217680Spstelse
7813127668Sbms  ac_check_lib_save_LIBS=$LIBS
781498524SfennerLIBS="-lsocket -lnsl $LIBS"
7815127668Sbmscat >conftest.$ac_ext <<_ACEOF
7816127668Sbms#line $LINENO "configure"
7817127668Sbms/* confdefs.h.  */
7818127668Sbms_ACEOF
7819127668Sbmscat confdefs.h >>conftest.$ac_ext
7820127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7821127668Sbms/* end confdefs.h.  */
7822127668Sbms
782339297Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7824127668Sbms#ifdef __cplusplus
7825127668Sbmsextern "C"
7826127668Sbms#endif
782739297Sfenner/* We use char because int might match the return type of a gcc2
7828127668Sbms   builtin and then its argument prototype would still apply.  */
7829127668Sbmschar gethostbyname ();
7830127668Sbmsint
7831127668Sbmsmain ()
7832127668Sbms{
7833127668Sbmsgethostbyname ();
7834127668Sbms  ;
7835127668Sbms  return 0;
7836127668Sbms}
7837127668Sbms_ACEOF
7838127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7839127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840127668Sbms  (eval $ac_link) 2>&5
7841127668Sbms  ac_status=$?
7842127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843127668Sbms  (exit $ac_status); } &&
7844127668Sbms         { ac_try='test -s conftest$ac_exeext'
7845127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846127668Sbms  (eval $ac_try) 2>&5
7847127668Sbms  ac_status=$?
7848127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849127668Sbms  (exit $ac_status); }; }; then
7850127668Sbms  ac_cv_lib_socket_gethostbyname=yes
785117680Spstelse
7852127668Sbms  echo "$as_me: failed program was:" >&5
7853127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
785417680Spst
7855127668Sbmsac_cv_lib_socket_gethostbyname=no
785617680Spstfi
7857127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7858127668SbmsLIBS=$ac_check_lib_save_LIBS
7859127668Sbmsfi
7860127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7861127668Sbmsecho "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7862127668Sbmsif test $ac_cv_lib_socket_gethostbyname = yes; then
786398524Sfenner  LIBS="-lsocket -lnsl $LIBS"
786417680Spstfi
786517680Spst
786698524Sfenner    fi
7867127668Sbms    echo "$as_me:$LINENO: checking for library containing socket" >&5
7868127668Sbmsecho $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7869127668Sbmsif test "${ac_cv_search_socket+set}" = set; then
7870127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
787139297Sfennerelse
7872127668Sbms  ac_func_search_save_LIBS=$LIBS
7873127668Sbmsac_cv_search_socket=no
7874127668Sbmscat >conftest.$ac_ext <<_ACEOF
7875127668Sbms#line $LINENO "configure"
7876127668Sbms/* confdefs.h.  */
7877127668Sbms_ACEOF
7878127668Sbmscat confdefs.h >>conftest.$ac_ext
7879127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7880127668Sbms/* end confdefs.h.  */
7881127668Sbms
788239297Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7883127668Sbms#ifdef __cplusplus
7884127668Sbmsextern "C"
7885127668Sbms#endif
788639297Sfenner/* We use char because int might match the return type of a gcc2
7887127668Sbms   builtin and then its argument prototype would still apply.  */
7888127668Sbmschar socket ();
7889127668Sbmsint
7890127668Sbmsmain ()
7891127668Sbms{
7892127668Sbmssocket ();
7893127668Sbms  ;
7894127668Sbms  return 0;
7895127668Sbms}
7896127668Sbms_ACEOF
7897127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7898127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899127668Sbms  (eval $ac_link) 2>&5
7900127668Sbms  ac_status=$?
7901127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902127668Sbms  (exit $ac_status); } &&
7903127668Sbms         { ac_try='test -s conftest$ac_exeext'
7904127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905127668Sbms  (eval $ac_try) 2>&5
7906127668Sbms  ac_status=$?
7907127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908127668Sbms  (exit $ac_status); }; }; then
790998524Sfenner  ac_cv_search_socket="none required"
791039297Sfennerelse
7911127668Sbms  echo "$as_me: failed program was:" >&5
7912127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7913127668Sbms
791439297Sfennerfi
7915127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916127668Sbmsif test "$ac_cv_search_socket" = no; then
7917127668Sbms  for ac_lib in socket; do
7918127668Sbms    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7919127668Sbms    cat >conftest.$ac_ext <<_ACEOF
7920127668Sbms#line $LINENO "configure"
7921127668Sbms/* confdefs.h.  */
7922127668Sbms_ACEOF
7923127668Sbmscat confdefs.h >>conftest.$ac_ext
7924127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7925127668Sbms/* end confdefs.h.  */
7926127668Sbms
792739297Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7928127668Sbms#ifdef __cplusplus
7929127668Sbmsextern "C"
7930127668Sbms#endif
793139297Sfenner/* We use char because int might match the return type of a gcc2
7932127668Sbms   builtin and then its argument prototype would still apply.  */
7933127668Sbmschar socket ();
7934127668Sbmsint
7935127668Sbmsmain ()
7936127668Sbms{
7937127668Sbmssocket ();
7938127668Sbms  ;
7939127668Sbms  return 0;
7940127668Sbms}
7941127668Sbms_ACEOF
7942127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7943127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7944127668Sbms  (eval $ac_link) 2>&5
7945127668Sbms  ac_status=$?
7946127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947127668Sbms  (exit $ac_status); } &&
7948127668Sbms         { ac_try='test -s conftest$ac_exeext'
7949127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950127668Sbms  (eval $ac_try) 2>&5
7951127668Sbms  ac_status=$?
7952127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953127668Sbms  (exit $ac_status); }; }; then
7954127668Sbms  ac_cv_search_socket="-l$ac_lib"
795598524Sfennerbreak
795617680Spstelse
7957127668Sbms  echo "$as_me: failed program was:" >&5
7958127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7959127668Sbms
796017680Spstfi
7961127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7962127668Sbms  done
796317680Spstfi
7964127668SbmsLIBS=$ac_func_search_save_LIBS
7965127668Sbmsfi
7966127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7967127668Sbmsecho "${ECHO_T}$ac_cv_search_socket" >&6
7968127668Sbmsif test "$ac_cv_search_socket" != no; then
7969127668Sbms  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
797017680Spst
797139297Sfennerelse
7972127668Sbms  echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7973127668Sbmsecho $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7974127668Sbmsif test "${ac_cv_lib_socket_socket+set}" = set; then
7975127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
7976127668Sbmselse
7977127668Sbms  ac_check_lib_save_LIBS=$LIBS
797839297SfennerLIBS="-lsocket -lnsl $LIBS"
7979127668Sbmscat >conftest.$ac_ext <<_ACEOF
7980127668Sbms#line $LINENO "configure"
7981127668Sbms/* confdefs.h.  */
7982127668Sbms_ACEOF
7983127668Sbmscat confdefs.h >>conftest.$ac_ext
7984127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7985127668Sbms/* end confdefs.h.  */
7986127668Sbms
798739297Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
7988127668Sbms#ifdef __cplusplus
7989127668Sbmsextern "C"
7990127668Sbms#endif
799139297Sfenner/* We use char because int might match the return type of a gcc2
7992127668Sbms   builtin and then its argument prototype would still apply.  */
7993127668Sbmschar socket ();
7994127668Sbmsint
7995127668Sbmsmain ()
7996127668Sbms{
7997127668Sbmssocket ();
7998127668Sbms  ;
7999127668Sbms  return 0;
8000127668Sbms}
8001127668Sbms_ACEOF
8002127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8003127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8004127668Sbms  (eval $ac_link) 2>&5
8005127668Sbms  ac_status=$?
8006127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007127668Sbms  (exit $ac_status); } &&
8008127668Sbms         { ac_try='test -s conftest$ac_exeext'
8009127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010127668Sbms  (eval $ac_try) 2>&5
8011127668Sbms  ac_status=$?
8012127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013127668Sbms  (exit $ac_status); }; }; then
8014127668Sbms  ac_cv_lib_socket_socket=yes
801539297Sfennerelse
8016127668Sbms  echo "$as_me: failed program was:" >&5
8017127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
801817680Spst
8019127668Sbmsac_cv_lib_socket_socket=no
802039297Sfennerfi
8021127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8022127668SbmsLIBS=$ac_check_lib_save_LIBS
8023127668Sbmsfi
8024127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8025127668Sbmsecho "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8026127668Sbmsif test $ac_cv_lib_socket_socket = yes; then
802739297Sfenner  LIBS="-lsocket -lnsl $LIBS"
802839297Sfennerfi
802917680Spst
803039297Sfennerfi
8031127668Sbms
803239297Sfenner    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8033127668Sbms    echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8034127668Sbmsecho $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8035127668Sbmsif test "${ac_cv_search_putmsg+set}" = set; then
8036127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
803739297Sfennerelse
8038127668Sbms  ac_func_search_save_LIBS=$LIBS
8039127668Sbmsac_cv_search_putmsg=no
8040127668Sbmscat >conftest.$ac_ext <<_ACEOF
8041127668Sbms#line $LINENO "configure"
8042127668Sbms/* confdefs.h.  */
8043127668Sbms_ACEOF
8044127668Sbmscat confdefs.h >>conftest.$ac_ext
8045127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8046127668Sbms/* end confdefs.h.  */
8047127668Sbms
804839297Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
8049127668Sbms#ifdef __cplusplus
8050127668Sbmsextern "C"
8051127668Sbms#endif
805239297Sfenner/* We use char because int might match the return type of a gcc2
8053127668Sbms   builtin and then its argument prototype would still apply.  */
8054127668Sbmschar putmsg ();
8055127668Sbmsint
8056127668Sbmsmain ()
8057127668Sbms{
8058127668Sbmsputmsg ();
8059127668Sbms  ;
8060127668Sbms  return 0;
8061127668Sbms}
8062127668Sbms_ACEOF
8063127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8064127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065127668Sbms  (eval $ac_link) 2>&5
8066127668Sbms  ac_status=$?
8067127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068127668Sbms  (exit $ac_status); } &&
8069127668Sbms         { ac_try='test -s conftest$ac_exeext'
8070127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071127668Sbms  (eval $ac_try) 2>&5
8072127668Sbms  ac_status=$?
8073127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074127668Sbms  (exit $ac_status); }; }; then
807598524Sfenner  ac_cv_search_putmsg="none required"
807639297Sfennerelse
8077127668Sbms  echo "$as_me: failed program was:" >&5
8078127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8079127668Sbms
808039297Sfennerfi
8081127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082127668Sbmsif test "$ac_cv_search_putmsg" = no; then
8083127668Sbms  for ac_lib in str; do
8084127668Sbms    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8085127668Sbms    cat >conftest.$ac_ext <<_ACEOF
8086127668Sbms#line $LINENO "configure"
8087127668Sbms/* confdefs.h.  */
8088127668Sbms_ACEOF
8089127668Sbmscat confdefs.h >>conftest.$ac_ext
8090127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8091127668Sbms/* end confdefs.h.  */
8092127668Sbms
809398524Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
8094127668Sbms#ifdef __cplusplus
8095127668Sbmsextern "C"
8096127668Sbms#endif
809798524Sfenner/* We use char because int might match the return type of a gcc2
8098127668Sbms   builtin and then its argument prototype would still apply.  */
8099127668Sbmschar putmsg ();
8100127668Sbmsint
8101127668Sbmsmain ()
8102127668Sbms{
8103127668Sbmsputmsg ();
8104127668Sbms  ;
8105127668Sbms  return 0;
8106127668Sbms}
8107127668Sbms_ACEOF
8108127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8109127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110127668Sbms  (eval $ac_link) 2>&5
8111127668Sbms  ac_status=$?
8112127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113127668Sbms  (exit $ac_status); } &&
8114127668Sbms         { ac_try='test -s conftest$ac_exeext'
8115127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116127668Sbms  (eval $ac_try) 2>&5
8117127668Sbms  ac_status=$?
8118127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119127668Sbms  (exit $ac_status); }; }; then
8120127668Sbms  ac_cv_search_putmsg="-l$ac_lib"
812198524Sfennerbreak
812239297Sfennerelse
8123127668Sbms  echo "$as_me: failed program was:" >&5
8124127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8125127668Sbms
812639297Sfennerfi
8127127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8128127668Sbms  done
812998524Sfennerfi
8130127668SbmsLIBS=$ac_func_search_save_LIBS
8131127668Sbmsfi
8132127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8133127668Sbmsecho "${ECHO_T}$ac_cv_search_putmsg" >&6
8134127668Sbmsif test "$ac_cv_search_putmsg" != no; then
8135127668Sbms  test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
813639297Sfenner
813798524Sfennerfi
813839297Sfenner
8139127668Sbms
8140127668Sbms
814139297Sfenner                LBL_LIBS="$LIBS"
814239297Sfenner    pfopen=/usr/examples/packetfilter/pfopen.c
814317680Spst    if test -f $pfopen ; then
8144127668Sbms
8145127668Sbmsfor ac_func in pfopen
814617680Spstdo
8147127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8148127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
8149127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8150127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
8151127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
815217680Spstelse
8153127668Sbms  cat >conftest.$ac_ext <<_ACEOF
8154127668Sbms#line $LINENO "configure"
8155127668Sbms/* confdefs.h.  */
8156127668Sbms_ACEOF
8157127668Sbmscat confdefs.h >>conftest.$ac_ext
8158127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8159127668Sbms/* end confdefs.h.  */
816017680Spst/* System header to define __stub macros and hopefully few prototypes,
8161127668Sbms    which can conflict with char $ac_func (); below.
8162127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163127668Sbms    <limits.h> exists even on freestanding compilers.  */
8164127668Sbms#ifdef __STDC__
8165127668Sbms# include <limits.h>
8166127668Sbms#else
8167127668Sbms# include <assert.h>
8168127668Sbms#endif
816917680Spst/* Override any gcc2 internal prototype to avoid an error.  */
8170127668Sbms#ifdef __cplusplus
8171127668Sbmsextern "C"
8172127668Sbms{
8173127668Sbms#endif
817417680Spst/* We use char because int might match the return type of a gcc2
8175127668Sbms   builtin and then its argument prototype would still apply.  */
8176127668Sbmschar $ac_func ();
817717680Spst/* The GNU C library defines this for functions which it implements
817817680Spst    to always fail with ENOSYS.  Some functions are actually named
817917680Spst    something starting with __ and the normal name is an alias.  */
818017680Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
818117680Spstchoke me
818217680Spst#else
8183127668Sbmschar (*f) () = $ac_func;
818417680Spst#endif
8185127668Sbms#ifdef __cplusplus
8186127668Sbms}
8187127668Sbms#endif
818817680Spst
8189127668Sbmsint
8190127668Sbmsmain ()
8191127668Sbms{
8192127668Sbmsreturn f != $ac_func;
8193127668Sbms  ;
8194127668Sbms  return 0;
8195127668Sbms}
8196127668Sbms_ACEOF
8197127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8198127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8199127668Sbms  (eval $ac_link) 2>&5
8200127668Sbms  ac_status=$?
8201127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202127668Sbms  (exit $ac_status); } &&
8203127668Sbms         { ac_try='test -s conftest$ac_exeext'
8204127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205127668Sbms  (eval $ac_try) 2>&5
8206127668Sbms  ac_status=$?
8207127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208127668Sbms  (exit $ac_status); }; }; then
8209127668Sbms  eval "$as_ac_var=yes"
821017680Spstelse
8211127668Sbms  echo "$as_me: failed program was:" >&5
8212127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8213127668Sbms
8214127668Sbmseval "$as_ac_var=no"
821517680Spstfi
8216127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
821726180Sfennerfi
8218127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8219127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8220127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
8221127668Sbms  cat >>confdefs.h <<_ACEOF
8222127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8223127668Sbms_ACEOF
822417680Spst
822517680Spstfi
822617680Spstdone
822717680Spst
822817680Spst	    if test $ac_cv_func_pfopen = "no" ; then
8229127668Sbms		    echo "$as_me:$LINENO: result: Using $pfopen" >&5
8230127668Sbmsecho "${ECHO_T}Using $pfopen" >&6
823117680Spst		    LIBS="$LIBS $pfopen"
823217680Spst	    fi
823317680Spst    fi
8234127668Sbms    echo "$as_me:$LINENO: checking for local pcap library" >&5
8235127668Sbmsecho $ECHO_N "checking for local pcap library... $ECHO_C" >&6
823617680Spst    libpcap=FAIL
823726180Sfenner    lastdir=FAIL
8238127668Sbms    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
823975115Sfenner	egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8240127668Sbms    for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
824126180Sfenner	    basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
824226180Sfenner	    if test $lastdir = $basedir ; then
824326180Sfenner		    		    continue;
824426180Sfenner	    fi
824526180Sfenner	    lastdir=$dir
824656893Sfenner	    if test -r $dir/libpcap.a ; then
824717680Spst		    libpcap=$dir/libpcap.a
824817680Spst		    d=$dir
824917680Spst		    	    fi
825017680Spst    done
825117680Spst    if test $libpcap = FAIL ; then
8252127668Sbms	    echo "$as_me:$LINENO: result: not found" >&5
8253127668Sbmsecho "${ECHO_T}not found" >&6
8254127668Sbms	    echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8255127668Sbmsecho $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8256127668Sbmsif test "${ac_cv_lib_pcap_main+set}" = set; then
8257127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
825817680Spstelse
8259127668Sbms  ac_check_lib_save_LIBS=$LIBS
826017680SpstLIBS="-lpcap  $LIBS"
8261127668Sbmscat >conftest.$ac_ext <<_ACEOF
8262127668Sbms#line $LINENO "configure"
8263127668Sbms/* confdefs.h.  */
8264127668Sbms_ACEOF
8265127668Sbmscat confdefs.h >>conftest.$ac_ext
8266127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8267127668Sbms/* end confdefs.h.  */
826817680Spst
8269127668Sbms
8270127668Sbmsint
8271127668Sbmsmain ()
8272127668Sbms{
8273127668Sbmsmain ();
8274127668Sbms  ;
8275127668Sbms  return 0;
8276127668Sbms}
8277127668Sbms_ACEOF
8278127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8279127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280127668Sbms  (eval $ac_link) 2>&5
8281127668Sbms  ac_status=$?
8282127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283127668Sbms  (exit $ac_status); } &&
8284127668Sbms         { ac_try='test -s conftest$ac_exeext'
8285127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286127668Sbms  (eval $ac_try) 2>&5
8287127668Sbms  ac_status=$?
8288127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289127668Sbms  (exit $ac_status); }; }; then
8290127668Sbms  ac_cv_lib_pcap_main=yes
829117680Spstelse
8292127668Sbms  echo "$as_me: failed program was:" >&5
8293127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
829417680Spst
8295127668Sbmsac_cv_lib_pcap_main=no
829617680Spstfi
8297127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298127668SbmsLIBS=$ac_check_lib_save_LIBS
8299127668Sbmsfi
8300127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8301127668Sbmsecho "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8302127668Sbmsif test $ac_cv_lib_pcap_main = yes; then
830317680Spst  libpcap="-lpcap"
830417680Spstfi
830517680Spst
830617680Spst	    if test $libpcap = FAIL ; then
8307127668Sbms		    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8308127668Sbmsecho "$as_me: error: see the INSTALL doc for more info" >&2;}
8309127668Sbms   { (exit 1); exit 1; }; }
831017680Spst	    fi
8311127668Sbms	    	    	    	    	    	    	    	    	    	    	    	    	    	    	    	    echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8312127668Sbmsecho $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8313127668Sbms	    if test \( ! -r /usr/local/include/pcap.h \) -a \
8314127668Sbms			\( ! -r /usr/include/pcap.h \); then
8315127668Sbms		if test -r /usr/local/include/pcap/pcap.h; then
8316127668Sbms		    d="/usr/local/include/pcap"
8317127668Sbms		elif test -r /usr/include/pcap/pcap.h; then
8318127668Sbms		    d="/usr/include/pcap"
8319127668Sbms		fi
8320127668Sbms	    fi
8321127668Sbms	    if test -z "$d" ; then
8322127668Sbms		echo "$as_me:$LINENO: result: not found" >&5
8323127668Sbmsecho "${ECHO_T}not found" >&6
8324127668Sbms	    else
8325127668Sbms		V_INCLS="-I$d $V_INCLS"
8326127668Sbms		echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8327127668Sbmsecho "${ECHO_T}found -- -I$d added" >&6
8328127668Sbms	    fi
832917680Spst    else
833017680Spst	    V_PCAPDEP=$libpcap
833198524Sfenner	    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
833298524Sfenner    	 		egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
833356893Sfenner	    if test -r $d/pcap.h; then
833475115Sfenner		    V_INCLS="-I$d $V_INCLS"
833598524Sfenner	    elif test -r $places/pcap.h; then
833698524Sfenner		    V_INCLS="-I$places $V_INCLS"
833756893Sfenner	    else
8338127668Sbms                    { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8339127668Sbmsecho "$as_me: error: cannot find pcap.h" >&2;}
8340127668Sbms   { (exit see INSTALL); exit see INSTALL; }; }
834156893Sfenner 	    fi
8342127668Sbms	    echo "$as_me:$LINENO: result: $libpcap" >&5
8343127668Sbmsecho "${ECHO_T}$libpcap" >&6
834417680Spst    fi
834517680Spst    LIBS="$libpcap $LIBS"
834698524Sfenner    case "$host_os" in
834717680Spst
834839297Sfenner    aix*)
834939297Sfenner	    pseexe="/lib/pse.exp"
8350127668Sbms	    echo "$as_me:$LINENO: checking for $pseexe" >&5
8351127668Sbmsecho $ECHO_N "checking for $pseexe... $ECHO_C" >&6
835239297Sfenner	    if test -f $pseexe ; then
8353127668Sbms		    echo "$as_me:$LINENO: result: yes" >&5
8354127668Sbmsecho "${ECHO_T}yes" >&6
835539297Sfenner		    LIBS="$LIBS -I:$pseexe"
835639297Sfenner	    fi
8357127668Sbms	    #
8358127668Sbms	    # We need "-lodm" and "-lcfg", as libpcap requires them on
8359127668Sbms	    # AIX, and we just build a static libpcap.a and thus can't
8360127668Sbms	    # arrange that when you link with libpcap you automatically
8361127668Sbms	    # link with those libraries.
8362127668Sbms	    #
8363127668Sbms	    LIBS="$LIBS -lodm -lcfg"
836439297Sfenner	    ;;
836539297Sfenner    esac
836639297Sfenner
8367127668Sbms                        echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8368127668Sbmsecho $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8369127668Sbmsif test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8370127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
8371127668Sbmselse
8372127668Sbms  cat >conftest.$ac_ext <<_ACEOF
8373127668Sbms#line $LINENO "configure"
8374127668Sbms/* confdefs.h.  */
8375127668Sbms_ACEOF
8376127668Sbmscat confdefs.h >>conftest.$ac_ext
8377127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8378127668Sbms/* end confdefs.h.  */
8379127668Sbms/* System header to define __stub macros and hopefully few prototypes,
8380127668Sbms    which can conflict with char pcap_list_datalinks (); below.
8381127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8382127668Sbms    <limits.h> exists even on freestanding compilers.  */
8383127668Sbms#ifdef __STDC__
8384127668Sbms# include <limits.h>
8385127668Sbms#else
8386127668Sbms# include <assert.h>
8387127668Sbms#endif
8388127668Sbms/* Override any gcc2 internal prototype to avoid an error.  */
8389127668Sbms#ifdef __cplusplus
8390127668Sbmsextern "C"
8391127668Sbms{
8392127668Sbms#endif
8393127668Sbms/* We use char because int might match the return type of a gcc2
8394127668Sbms   builtin and then its argument prototype would still apply.  */
8395127668Sbmschar pcap_list_datalinks ();
8396127668Sbms/* The GNU C library defines this for functions which it implements
8397127668Sbms    to always fail with ENOSYS.  Some functions are actually named
8398127668Sbms    something starting with __ and the normal name is an alias.  */
8399127668Sbms#if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8400127668Sbmschoke me
8401127668Sbms#else
8402127668Sbmschar (*f) () = pcap_list_datalinks;
8403127668Sbms#endif
8404127668Sbms#ifdef __cplusplus
8405127668Sbms}
8406127668Sbms#endif
8407127668Sbms
8408127668Sbmsint
8409127668Sbmsmain ()
8410127668Sbms{
8411127668Sbmsreturn f != pcap_list_datalinks;
8412127668Sbms  ;
8413127668Sbms  return 0;
8414127668Sbms}
8415127668Sbms_ACEOF
8416127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8417127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418127668Sbms  (eval $ac_link) 2>&5
8419127668Sbms  ac_status=$?
8420127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421127668Sbms  (exit $ac_status); } &&
8422127668Sbms         { ac_try='test -s conftest$ac_exeext'
8423127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424127668Sbms  (eval $ac_try) 2>&5
8425127668Sbms  ac_status=$?
8426127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427127668Sbms  (exit $ac_status); }; }; then
8428127668Sbms  ac_cv_func_pcap_list_datalinks=yes
8429127668Sbmselse
8430127668Sbms  echo "$as_me: failed program was:" >&5
8431127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8432127668Sbms
8433127668Sbmsac_cv_func_pcap_list_datalinks=no
8434127668Sbmsfi
8435127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8436127668Sbmsfi
8437127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8438127668Sbmsecho "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8439127668Sbmsif test $ac_cv_func_pcap_list_datalinks = yes; then
8440127668Sbms  cat >>confdefs.h <<\_ACEOF
8441127668Sbms#define HAVE_PCAP_LIST_DATALINKS 1
8442127668Sbms_ACEOF
8443127668Sbms
8444127668Sbmselse
8445147899Ssam
8446147899Ssam	    LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8447147899Ssam
8448127668Sbmsfi
8449127668Sbms
8450127668Sbms    echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8451127668Sbmsecho $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8452127668Sbmsif test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8453127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
8454127668Sbmselse
8455127668Sbms  cat >conftest.$ac_ext <<_ACEOF
8456127668Sbms#line $LINENO "configure"
8457127668Sbms/* confdefs.h.  */
8458127668Sbms_ACEOF
8459127668Sbmscat confdefs.h >>conftest.$ac_ext
8460127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8461127668Sbms/* end confdefs.h.  */
8462127668Sbms/* System header to define __stub macros and hopefully few prototypes,
8463127668Sbms    which can conflict with char pcap_set_datalink (); below.
8464127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8465127668Sbms    <limits.h> exists even on freestanding compilers.  */
8466127668Sbms#ifdef __STDC__
8467127668Sbms# include <limits.h>
8468127668Sbms#else
8469127668Sbms# include <assert.h>
8470127668Sbms#endif
8471127668Sbms/* Override any gcc2 internal prototype to avoid an error.  */
8472127668Sbms#ifdef __cplusplus
8473127668Sbmsextern "C"
8474127668Sbms{
8475127668Sbms#endif
8476127668Sbms/* We use char because int might match the return type of a gcc2
8477127668Sbms   builtin and then its argument prototype would still apply.  */
8478127668Sbmschar pcap_set_datalink ();
8479127668Sbms/* The GNU C library defines this for functions which it implements
8480127668Sbms    to always fail with ENOSYS.  Some functions are actually named
8481127668Sbms    something starting with __ and the normal name is an alias.  */
8482127668Sbms#if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8483127668Sbmschoke me
8484127668Sbms#else
8485127668Sbmschar (*f) () = pcap_set_datalink;
8486127668Sbms#endif
8487127668Sbms#ifdef __cplusplus
8488127668Sbms}
8489127668Sbms#endif
8490127668Sbms
8491127668Sbmsint
8492127668Sbmsmain ()
8493127668Sbms{
8494127668Sbmsreturn f != pcap_set_datalink;
8495127668Sbms  ;
8496127668Sbms  return 0;
8497127668Sbms}
8498127668Sbms_ACEOF
8499127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8500127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501127668Sbms  (eval $ac_link) 2>&5
8502127668Sbms  ac_status=$?
8503127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504127668Sbms  (exit $ac_status); } &&
8505127668Sbms         { ac_try='test -s conftest$ac_exeext'
8506127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507127668Sbms  (eval $ac_try) 2>&5
8508127668Sbms  ac_status=$?
8509127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510127668Sbms  (exit $ac_status); }; }; then
8511127668Sbms  ac_cv_func_pcap_set_datalink=yes
8512127668Sbmselse
8513127668Sbms  echo "$as_me: failed program was:" >&5
8514127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8515127668Sbms
8516127668Sbmsac_cv_func_pcap_set_datalink=no
8517127668Sbmsfi
8518127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8519127668Sbmsfi
8520127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8521127668Sbmsecho "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8522127668Sbmsif test $ac_cv_func_pcap_set_datalink = yes; then
8523127668Sbms  cat >>confdefs.h <<\_ACEOF
8524127668Sbms#define HAVE_PCAP_SET_DATALINK 1
8525127668Sbms_ACEOF
8526127668Sbms
8527127668Sbmsfi
8528127668Sbms
8529127668Sbms    echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8530127668Sbmsecho $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8531127668Sbmsif test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8532127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
8533127668Sbmselse
8534127668Sbms  cat >conftest.$ac_ext <<_ACEOF
8535127668Sbms#line $LINENO "configure"
8536127668Sbms/* confdefs.h.  */
8537127668Sbms_ACEOF
8538127668Sbmscat confdefs.h >>conftest.$ac_ext
8539127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8540127668Sbms/* end confdefs.h.  */
8541127668Sbms/* System header to define __stub macros and hopefully few prototypes,
8542127668Sbms    which can conflict with char pcap_datalink_name_to_val (); below.
8543127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8544127668Sbms    <limits.h> exists even on freestanding compilers.  */
8545127668Sbms#ifdef __STDC__
8546127668Sbms# include <limits.h>
8547127668Sbms#else
8548127668Sbms# include <assert.h>
8549127668Sbms#endif
8550127668Sbms/* Override any gcc2 internal prototype to avoid an error.  */
8551127668Sbms#ifdef __cplusplus
8552127668Sbmsextern "C"
8553127668Sbms{
8554127668Sbms#endif
8555127668Sbms/* We use char because int might match the return type of a gcc2
8556127668Sbms   builtin and then its argument prototype would still apply.  */
8557127668Sbmschar pcap_datalink_name_to_val ();
8558127668Sbms/* The GNU C library defines this for functions which it implements
8559127668Sbms    to always fail with ENOSYS.  Some functions are actually named
8560127668Sbms    something starting with __ and the normal name is an alias.  */
8561127668Sbms#if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8562127668Sbmschoke me
8563127668Sbms#else
8564127668Sbmschar (*f) () = pcap_datalink_name_to_val;
8565127668Sbms#endif
8566127668Sbms#ifdef __cplusplus
8567127668Sbms}
8568127668Sbms#endif
8569127668Sbms
8570127668Sbmsint
8571127668Sbmsmain ()
8572127668Sbms{
8573127668Sbmsreturn f != pcap_datalink_name_to_val;
8574127668Sbms  ;
8575127668Sbms  return 0;
8576127668Sbms}
8577127668Sbms_ACEOF
8578127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8579127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580127668Sbms  (eval $ac_link) 2>&5
8581127668Sbms  ac_status=$?
8582127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583127668Sbms  (exit $ac_status); } &&
8584127668Sbms         { ac_try='test -s conftest$ac_exeext'
8585127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586127668Sbms  (eval $ac_try) 2>&5
8587127668Sbms  ac_status=$?
8588127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589127668Sbms  (exit $ac_status); }; }; then
8590127668Sbms  ac_cv_func_pcap_datalink_name_to_val=yes
8591127668Sbmselse
8592127668Sbms  echo "$as_me: failed program was:" >&5
8593127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8594127668Sbms
8595127668Sbmsac_cv_func_pcap_datalink_name_to_val=no
8596127668Sbmsfi
8597127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8598127668Sbmsfi
8599127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8600127668Sbmsecho "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8601127668Sbmsif test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8602127668Sbms
8603127668Sbms	    cat >>confdefs.h <<\_ACEOF
8604127668Sbms#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8605127668Sbms_ACEOF
8606127668Sbms
8607127668Sbms	    echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8608127668Sbmsecho $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8609127668Sbmsif test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8610127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
8611127668Sbmselse
8612127668Sbms  cat >conftest.$ac_ext <<_ACEOF
8613127668Sbms#line $LINENO "configure"
8614127668Sbms/* confdefs.h.  */
8615127668Sbms_ACEOF
8616127668Sbmscat confdefs.h >>conftest.$ac_ext
8617127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8618127668Sbms/* end confdefs.h.  */
8619127668Sbms/* System header to define __stub macros and hopefully few prototypes,
8620127668Sbms    which can conflict with char pcap_datalink_val_to_description (); below.
8621127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8622127668Sbms    <limits.h> exists even on freestanding compilers.  */
8623127668Sbms#ifdef __STDC__
8624127668Sbms# include <limits.h>
8625127668Sbms#else
8626127668Sbms# include <assert.h>
8627127668Sbms#endif
8628127668Sbms/* Override any gcc2 internal prototype to avoid an error.  */
8629127668Sbms#ifdef __cplusplus
8630127668Sbmsextern "C"
8631127668Sbms{
8632127668Sbms#endif
8633127668Sbms/* We use char because int might match the return type of a gcc2
8634127668Sbms   builtin and then its argument prototype would still apply.  */
8635127668Sbmschar pcap_datalink_val_to_description ();
8636127668Sbms/* The GNU C library defines this for functions which it implements
8637127668Sbms    to always fail with ENOSYS.  Some functions are actually named
8638127668Sbms    something starting with __ and the normal name is an alias.  */
8639127668Sbms#if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8640127668Sbmschoke me
8641127668Sbms#else
8642127668Sbmschar (*f) () = pcap_datalink_val_to_description;
8643127668Sbms#endif
8644127668Sbms#ifdef __cplusplus
8645127668Sbms}
8646127668Sbms#endif
8647127668Sbms
8648127668Sbmsint
8649127668Sbmsmain ()
8650127668Sbms{
8651127668Sbmsreturn f != pcap_datalink_val_to_description;
8652127668Sbms  ;
8653127668Sbms  return 0;
8654127668Sbms}
8655127668Sbms_ACEOF
8656127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8657127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658127668Sbms  (eval $ac_link) 2>&5
8659127668Sbms  ac_status=$?
8660127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661127668Sbms  (exit $ac_status); } &&
8662127668Sbms         { ac_try='test -s conftest$ac_exeext'
8663127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664127668Sbms  (eval $ac_try) 2>&5
8665127668Sbms  ac_status=$?
8666127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667127668Sbms  (exit $ac_status); }; }; then
8668127668Sbms  ac_cv_func_pcap_datalink_val_to_description=yes
8669127668Sbmselse
8670127668Sbms  echo "$as_me: failed program was:" >&5
8671127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8672127668Sbms
8673127668Sbmsac_cv_func_pcap_datalink_val_to_description=no
8674127668Sbmsfi
8675127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8676127668Sbmsfi
8677127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8678127668Sbmsecho "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8679127668Sbmsif test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8680127668Sbms  cat >>confdefs.h <<\_ACEOF
8681127668Sbms#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8682127668Sbms_ACEOF
8683127668Sbms
8684127668Sbmselse
8685147899Ssam
8686147899Ssam		    LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8687147899Ssam
8688127668Sbmsfi
8689127668Sbms
8690127668Sbms
8691127668Sbmselse
8692147899Ssam
8693147899Ssam	    LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8694147899Ssam
8695127668Sbmsfi
8696127668Sbms
8697127668Sbms
8698127668Sbms
8699127668Sbmsfor ac_func in pcap_breakloop
870075115Sfennerdo
8701127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8702127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
8703127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8704127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
8705127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
870675115Sfennerelse
8707127668Sbms  cat >conftest.$ac_ext <<_ACEOF
8708127668Sbms#line $LINENO "configure"
8709127668Sbms/* confdefs.h.  */
8710127668Sbms_ACEOF
8711127668Sbmscat confdefs.h >>conftest.$ac_ext
8712127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8713127668Sbms/* end confdefs.h.  */
871475115Sfenner/* System header to define __stub macros and hopefully few prototypes,
8715127668Sbms    which can conflict with char $ac_func (); below.
8716127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717127668Sbms    <limits.h> exists even on freestanding compilers.  */
8718127668Sbms#ifdef __STDC__
8719127668Sbms# include <limits.h>
8720127668Sbms#else
8721127668Sbms# include <assert.h>
8722127668Sbms#endif
872375115Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
8724127668Sbms#ifdef __cplusplus
8725127668Sbmsextern "C"
8726127668Sbms{
8727127668Sbms#endif
872875115Sfenner/* We use char because int might match the return type of a gcc2
8729127668Sbms   builtin and then its argument prototype would still apply.  */
8730127668Sbmschar $ac_func ();
8731127668Sbms/* The GNU C library defines this for functions which it implements
8732127668Sbms    to always fail with ENOSYS.  Some functions are actually named
8733127668Sbms    something starting with __ and the normal name is an alias.  */
8734127668Sbms#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8735127668Sbmschoke me
8736127668Sbms#else
8737127668Sbmschar (*f) () = $ac_func;
8738127668Sbms#endif
8739127668Sbms#ifdef __cplusplus
8740127668Sbms}
8741127668Sbms#endif
874275115Sfenner
8743127668Sbmsint
8744127668Sbmsmain ()
8745127668Sbms{
8746127668Sbmsreturn f != $ac_func;
8747127668Sbms  ;
8748127668Sbms  return 0;
8749127668Sbms}
8750127668Sbms_ACEOF
8751127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8752127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753127668Sbms  (eval $ac_link) 2>&5
8754127668Sbms  ac_status=$?
8755127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756127668Sbms  (exit $ac_status); } &&
8757127668Sbms         { ac_try='test -s conftest$ac_exeext'
8758127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759127668Sbms  (eval $ac_try) 2>&5
8760127668Sbms  ac_status=$?
8761127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762127668Sbms  (exit $ac_status); }; }; then
8763127668Sbms  eval "$as_ac_var=yes"
8764127668Sbmselse
8765127668Sbms  echo "$as_me: failed program was:" >&5
8766127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
876775115Sfenner
8768127668Sbmseval "$as_ac_var=no"
8769127668Sbmsfi
8770127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8771127668Sbmsfi
8772127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8773127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8774127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
8775127668Sbms  cat >>confdefs.h <<_ACEOF
8776127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8777127668Sbms_ACEOF
8778127668Sbms
8779127668Sbmsfi
8780127668Sbmsdone
8781127668Sbms
8782127668Sbms
8783147899Ssam                echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8784147899Ssamecho $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6
8785147899Ssamif test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8786147899Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
8787147899Ssamelse
8788147899Ssam  cat >conftest.$ac_ext <<_ACEOF
8789147899Ssam#line $LINENO "configure"
8790147899Ssam/* confdefs.h.  */
8791147899Ssam_ACEOF
8792147899Ssamcat confdefs.h >>conftest.$ac_ext
8793147899Ssamcat >>conftest.$ac_ext <<_ACEOF
8794147899Ssam/* end confdefs.h.  */
8795147899Ssam/* System header to define __stub macros and hopefully few prototypes,
8796147899Ssam    which can conflict with char pcap_dump_ftell (); below.
8797147899Ssam    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8798147899Ssam    <limits.h> exists even on freestanding compilers.  */
8799147899Ssam#ifdef __STDC__
8800147899Ssam# include <limits.h>
8801147899Ssam#else
8802147899Ssam# include <assert.h>
8803147899Ssam#endif
8804147899Ssam/* Override any gcc2 internal prototype to avoid an error.  */
8805147899Ssam#ifdef __cplusplus
8806147899Ssamextern "C"
8807147899Ssam{
8808147899Ssam#endif
8809147899Ssam/* We use char because int might match the return type of a gcc2
8810147899Ssam   builtin and then its argument prototype would still apply.  */
8811147899Ssamchar pcap_dump_ftell ();
8812147899Ssam/* The GNU C library defines this for functions which it implements
8813147899Ssam    to always fail with ENOSYS.  Some functions are actually named
8814147899Ssam    something starting with __ and the normal name is an alias.  */
8815147899Ssam#if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell)
8816147899Ssamchoke me
8817147899Ssam#else
8818147899Ssamchar (*f) () = pcap_dump_ftell;
8819147899Ssam#endif
8820147899Ssam#ifdef __cplusplus
8821147899Ssam}
8822147899Ssam#endif
8823127668Sbms
8824147899Ssamint
8825147899Ssammain ()
8826147899Ssam{
8827147899Ssamreturn f != pcap_dump_ftell;
8828147899Ssam  ;
8829147899Ssam  return 0;
8830147899Ssam}
8831147899Ssam_ACEOF
8832147899Ssamrm -f conftest.$ac_objext conftest$ac_exeext
8833147899Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834147899Ssam  (eval $ac_link) 2>&5
8835147899Ssam  ac_status=$?
8836147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837147899Ssam  (exit $ac_status); } &&
8838147899Ssam         { ac_try='test -s conftest$ac_exeext'
8839147899Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840147899Ssam  (eval $ac_try) 2>&5
8841147899Ssam  ac_status=$?
8842147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843147899Ssam  (exit $ac_status); }; }; then
8844147899Ssam  ac_cv_func_pcap_dump_ftell=yes
8845147899Ssamelse
8846147899Ssam  echo "$as_me: failed program was:" >&5
8847147899Ssamsed 's/^/| /' conftest.$ac_ext >&5
8848147899Ssam
8849147899Ssamac_cv_func_pcap_dump_ftell=no
8850147899Ssamfi
8851147899Ssamrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8852147899Ssamfi
8853147899Ssamecho "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8854147899Ssamecho "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6
8855147899Ssamif test $ac_cv_func_pcap_dump_ftell = yes; then
8856147899Ssam  cat >>confdefs.h <<\_ACEOF
8857147899Ssam#define HAVE_PCAP_DUMP_FTELL 1
8858147899Ssam_ACEOF
8859147899Ssam
8860147899Ssamelse
8861147899Ssam
8862147899Ssam	    LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8863147899Ssam
8864147899Ssamfi
8865147899Ssam
8866147899Ssam
8867147899Ssam
8868127668Sbms#
8869127668Sbms# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8870127668Sbms# libraries (e.g., "-lsocket -lnsl" on Solaris).
8871127668Sbms#
8872127668Sbms# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8873127668Sbms# use AC_CHECK_FUNC which doesn't let us specify the right #includes
8874127668Sbms# to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
8875127668Sbms# resolver, and the way it defines inet_{ntop,pton} is rather strange;
8876127668Sbms# it does not ship with a libc symbol "inet_ntop()", it ships with
8877127668Sbms# "_inet_ntop()", and has a #define macro in one of the system headers
8878127668Sbms# to rename it.
8879127668Sbms#
8880127668Sbmsecho "$as_me:$LINENO: checking for inet_ntop" >&5
8881127668Sbmsecho $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8882127668Sbmscat >conftest.$ac_ext <<_ACEOF
8883127668Sbms#line $LINENO "configure"
8884127668Sbms/* confdefs.h.  */
8885127668Sbms_ACEOF
8886127668Sbmscat confdefs.h >>conftest.$ac_ext
8887127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8888127668Sbms/* end confdefs.h.  */
8889127668Sbms#include <sys/types.h>
8890127668Sbms#include <sys/socket.h>
8891127668Sbms#include <netinet/in.h>
8892127668Sbms#include <arpa/inet.h>
8893127668Sbmsint
8894127668Sbmsmain ()
8895127668Sbms{
8896127668Sbmschar src[4], dst[128];
8897127668Sbmsinet_ntop(AF_INET, src, dst, sizeof(dst));
8898127668Sbms  ;
8899127668Sbms  return 0;
8900127668Sbms}
8901127668Sbms_ACEOF
8902127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8903127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904127668Sbms  (eval $ac_link) 2>&5
8905127668Sbms  ac_status=$?
8906127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907127668Sbms  (exit $ac_status); } &&
8908127668Sbms         { ac_try='test -s conftest$ac_exeext'
8909127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910127668Sbms  (eval $ac_try) 2>&5
8911127668Sbms  ac_status=$?
8912127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913127668Sbms  (exit $ac_status); }; }; then
8914127668Sbms  echo "$as_me:$LINENO: result: yes" >&5
8915127668Sbmsecho "${ECHO_T}yes" >&6
8916127668Sbmselse
8917127668Sbms  echo "$as_me: failed program was:" >&5
8918127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8919127668Sbms
8920127668Sbmsecho "$as_me:$LINENO: result: no" >&5
8921127668Sbmsecho "${ECHO_T}no" >&6
8922146773Ssam	LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8923127668Sbmsfi
8924127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8925127668Sbmsecho "$as_me:$LINENO: checking for inet_pton" >&5
8926127668Sbmsecho $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8927127668Sbmscat >conftest.$ac_ext <<_ACEOF
8928127668Sbms#line $LINENO "configure"
8929127668Sbms/* confdefs.h.  */
8930127668Sbms_ACEOF
8931127668Sbmscat confdefs.h >>conftest.$ac_ext
8932127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8933127668Sbms/* end confdefs.h.  */
8934127668Sbms#include <sys/types.h>
8935127668Sbms#include <sys/socket.h>
8936127668Sbms#include <netinet/in.h>
8937127668Sbms#include <arpa/inet.h>
8938127668Sbmsint
8939127668Sbmsmain ()
8940127668Sbms{
8941127668Sbmschar src[128], dst[4];
8942127668Sbmsinet_pton(AF_INET, src, dst);
8943127668Sbms  ;
8944127668Sbms  return 0;
8945127668Sbms}
8946127668Sbms_ACEOF
8947127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8948127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949127668Sbms  (eval $ac_link) 2>&5
8950127668Sbms  ac_status=$?
8951127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952127668Sbms  (exit $ac_status); } &&
8953127668Sbms         { ac_try='test -s conftest$ac_exeext'
8954127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955127668Sbms  (eval $ac_try) 2>&5
8956127668Sbms  ac_status=$?
8957127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958127668Sbms  (exit $ac_status); }; }; then
8959127668Sbms  echo "$as_me:$LINENO: result: yes" >&5
8960127668Sbmsecho "${ECHO_T}yes" >&6
8961127668Sbmselse
8962127668Sbms  echo "$as_me: failed program was:" >&5
8963127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8964127668Sbms
8965127668Sbmsecho "$as_me:$LINENO: result: no" >&5
8966127668Sbmsecho "${ECHO_T}no" >&6
8967146773Ssam	LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8968127668Sbmsfi
8969127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8970127668Sbmsecho "$as_me:$LINENO: checking for inet_aton" >&5
8971127668Sbmsecho $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8972127668Sbmscat >conftest.$ac_ext <<_ACEOF
8973127668Sbms#line $LINENO "configure"
8974127668Sbms/* confdefs.h.  */
8975127668Sbms_ACEOF
8976127668Sbmscat confdefs.h >>conftest.$ac_ext
8977127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8978127668Sbms/* end confdefs.h.  */
8979127668Sbms#include <sys/types.h>
8980127668Sbms#include <netinet/in.h>
8981127668Sbms#include <arpa/inet.h>
8982127668Sbmsint
8983127668Sbmsmain ()
8984127668Sbms{
8985127668Sbmschar src[128];
8986127668Sbmsstruct in_addr dst;
8987127668Sbmsinet_aton(src, &dst);
8988127668Sbms  ;
8989127668Sbms  return 0;
8990127668Sbms}
8991127668Sbms_ACEOF
8992127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8993127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994127668Sbms  (eval $ac_link) 2>&5
8995127668Sbms  ac_status=$?
8996127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997127668Sbms  (exit $ac_status); } &&
8998127668Sbms         { ac_try='test -s conftest$ac_exeext'
8999127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000127668Sbms  (eval $ac_try) 2>&5
9001127668Sbms  ac_status=$?
9002127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003127668Sbms  (exit $ac_status); }; }; then
9004127668Sbms  echo "$as_me:$LINENO: result: yes" >&5
9005127668Sbmsecho "${ECHO_T}yes" >&6
9006127668Sbmselse
9007127668Sbms  echo "$as_me: failed program was:" >&5
9008127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9009127668Sbms
9010127668Sbmsecho "$as_me:$LINENO: result: no" >&5
9011127668Sbmsecho "${ECHO_T}no" >&6
9012146773Ssam	LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
9013127668Sbmsfi
9014127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9015127668Sbms
9016146773Ssam#
9017146773Ssam# Check for these after AC_LBL_LIBPCAP, for the same reason.
9018146773Ssam#
9019146773Ssam# You are in a twisty little maze of UN*Xes, all different.
9020146773Ssam# Some might not have ether_ntohost().
9021146773Ssam# Some might have it, but not declare it in any header file.
9022146773Ssam# Some might have it, but declare it in <netinet/if_ether.h>.
9023146773Ssam# Some might have it, but declare it in <netinet/ether.h>
9024146773Ssam# (And some might have it but document it as something declared in
9025146773Ssam# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
9026146773Ssam#
9027146773Ssam# Before you is a C compiler.
9028146773Ssam#
9029127668Sbms
9030146773Ssamfor ac_func in ether_ntohost
9031146773Ssamdo
9032146773Ssamas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9033146773Ssamecho "$as_me:$LINENO: checking for $ac_func" >&5
9034146773Ssamecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9035146773Ssamif eval "test \"\${$as_ac_var+set}\" = set"; then
9036146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
9037146773Ssamelse
9038146773Ssam  cat >conftest.$ac_ext <<_ACEOF
9039146773Ssam#line $LINENO "configure"
9040146773Ssam/* confdefs.h.  */
9041146773Ssam_ACEOF
9042146773Ssamcat confdefs.h >>conftest.$ac_ext
9043146773Ssamcat >>conftest.$ac_ext <<_ACEOF
9044146773Ssam/* end confdefs.h.  */
9045146773Ssam/* System header to define __stub macros and hopefully few prototypes,
9046146773Ssam    which can conflict with char $ac_func (); below.
9047146773Ssam    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9048146773Ssam    <limits.h> exists even on freestanding compilers.  */
9049146773Ssam#ifdef __STDC__
9050146773Ssam# include <limits.h>
9051146773Ssam#else
9052146773Ssam# include <assert.h>
9053146773Ssam#endif
9054146773Ssam/* Override any gcc2 internal prototype to avoid an error.  */
9055146773Ssam#ifdef __cplusplus
9056146773Ssamextern "C"
9057146773Ssam{
9058146773Ssam#endif
9059146773Ssam/* We use char because int might match the return type of a gcc2
9060146773Ssam   builtin and then its argument prototype would still apply.  */
9061146773Ssamchar $ac_func ();
9062146773Ssam/* The GNU C library defines this for functions which it implements
9063146773Ssam    to always fail with ENOSYS.  Some functions are actually named
9064146773Ssam    something starting with __ and the normal name is an alias.  */
9065146773Ssam#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9066146773Ssamchoke me
9067146773Ssam#else
9068146773Ssamchar (*f) () = $ac_func;
9069146773Ssam#endif
9070146773Ssam#ifdef __cplusplus
9071146773Ssam}
9072146773Ssam#endif
9073146773Ssam
9074146773Ssamint
9075146773Ssammain ()
9076146773Ssam{
9077146773Ssamreturn f != $ac_func;
9078146773Ssam  ;
9079146773Ssam  return 0;
9080146773Ssam}
9081146773Ssam_ACEOF
9082146773Ssamrm -f conftest.$ac_objext conftest$ac_exeext
9083146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084146773Ssam  (eval $ac_link) 2>&5
9085146773Ssam  ac_status=$?
9086146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087146773Ssam  (exit $ac_status); } &&
9088146773Ssam         { ac_try='test -s conftest$ac_exeext'
9089146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090146773Ssam  (eval $ac_try) 2>&5
9091146773Ssam  ac_status=$?
9092146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093146773Ssam  (exit $ac_status); }; }; then
9094146773Ssam  eval "$as_ac_var=yes"
9095146773Ssamelse
9096146773Ssam  echo "$as_me: failed program was:" >&5
9097146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
9098146773Ssam
9099146773Ssameval "$as_ac_var=no"
9100146773Ssamfi
9101146773Ssamrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9102146773Ssamfi
9103146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9104146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9105146773Ssamif test `eval echo '${'$as_ac_var'}'` = yes; then
9106146773Ssam  cat >>confdefs.h <<_ACEOF
9107146773Ssam#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9108146773Ssam_ACEOF
9109146773Ssam
9110146773Ssam    echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
9111146773Ssamecho $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
9112146773Ssamif test "${ac_cv_buggy_ether_ntohost+set}" = set; then
9113146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
9114146773Ssamelse
9115146773Ssam
9116146773Ssam	if test "$cross_compiling" = yes; then
9117146773Ssam  ac_cv_buggy_ether_ntohost="not while cross-compiling"
9118146773Ssamelse
9119146773Ssam  cat >conftest.$ac_ext <<_ACEOF
9120146773Ssam#line $LINENO "configure"
9121146773Ssam/* confdefs.h.  */
9122146773Ssam_ACEOF
9123146773Ssamcat confdefs.h >>conftest.$ac_ext
9124146773Ssamcat >>conftest.$ac_ext <<_ACEOF
9125146773Ssam/* end confdefs.h.  */
9126146773Ssam
9127146773Ssam		#include <netdb.h>
9128146773Ssam		#include <sys/types.h>
9129146773Ssam		#include <sys/param.h>
9130146773Ssam		#include <sys/socket.h>
9131146773Ssam
9132146773Ssam		int
9133146773Ssam		main(int argc, char **argv)
9134146773Ssam		{
9135146773Ssam			u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
9136146773Ssam			char name[MAXHOSTNAMELEN];
9137146773Ssam
9138146773Ssam			ether_ntohost(name, (struct ether_addr *)ea);
9139146773Ssam			exit(0);
9140146773Ssam		}
9141146773Ssam
9142146773Ssam_ACEOF
9143146773Ssamrm -f conftest$ac_exeext
9144146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145146773Ssam  (eval $ac_link) 2>&5
9146146773Ssam  ac_status=$?
9147146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148146773Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9149146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150146773Ssam  (eval $ac_try) 2>&5
9151146773Ssam  ac_status=$?
9152146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153146773Ssam  (exit $ac_status); }; }; then
9154146773Ssam  ac_cv_buggy_ether_ntohost=no
9155146773Ssamelse
9156146773Ssam  echo "$as_me: program exited with status $ac_status" >&5
9157146773Ssamecho "$as_me: failed program was:" >&5
9158146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
9159146773Ssam
9160146773Ssam( exit $ac_status )
9161146773Ssamac_cv_buggy_ether_ntohost=yes
9162146773Ssamfi
9163146773Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9164146773Ssamfi
9165146773Ssamfi
9166146773Ssamecho "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
9167146773Ssamecho "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
9168146773Ssam    if test "$ac_cv_buggy_ether_ntohost" = "no"; then
9169146773Ssam	cat >>confdefs.h <<\_ACEOF
9170146773Ssam#define USE_ETHER_NTOHOST 1
9171146773Ssam_ACEOF
9172146773Ssam
9173146773Ssam    fi
9174146773Ssam
9175146773Ssamfi
9176146773Ssamdone
9177146773Ssam
9178146773Ssamif test "$ac_cv_func_ether_ntohost" = yes -a \
9179146773Ssam    "$ac_cv_buggy_ether_ntohost" = "no"; then
9180146773Ssam	#
9181146773Ssam	# OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
9182146773Ssam	#
9183146773Ssam	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
9184146773Ssam		#
9185146773Ssam		# Yes.  Does it declare ether_ntohost()?
9186146773Ssam		#
9187146773Ssam		echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9188146773Ssamecho $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9189146773Ssamif test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9190146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
9191146773Ssamelse
9192146773Ssam  cat >conftest.$ac_ext <<_ACEOF
9193146773Ssam#line $LINENO "configure"
9194146773Ssam/* confdefs.h.  */
9195146773Ssam_ACEOF
9196146773Ssamcat confdefs.h >>conftest.$ac_ext
9197146773Ssamcat >>conftest.$ac_ext <<_ACEOF
9198146773Ssam/* end confdefs.h.  */
9199146773Ssam
9200146773Ssam#include <sys/types.h>
9201146773Ssam#include <sys/socket.h>
9202146773Ssam#include <netinet/in.h>
9203147899Ssam#include <arpa/inet.h>
9204146773Ssamstruct mbuf;
9205146773Ssamstruct rtentry;
9206146773Ssam#include <net/if.h>
9207146773Ssam#include <netinet/if_ether.h>
9208146773Ssam
9209146773Ssam
9210146773Ssamint
9211146773Ssammain ()
9212146773Ssam{
9213146773Ssam#ifndef ether_ntohost
9214146773Ssam  char *p = (char *) ether_ntohost;
9215146773Ssam#endif
9216146773Ssam
9217146773Ssam  ;
9218146773Ssam  return 0;
9219146773Ssam}
9220146773Ssam_ACEOF
9221146773Ssamrm -f conftest.$ac_objext
9222146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223146773Ssam  (eval $ac_compile) 2>&5
9224146773Ssam  ac_status=$?
9225146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226146773Ssam  (exit $ac_status); } &&
9227146773Ssam         { ac_try='test -s conftest.$ac_objext'
9228146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229146773Ssam  (eval $ac_try) 2>&5
9230146773Ssam  ac_status=$?
9231146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232146773Ssam  (exit $ac_status); }; }; then
9233146773Ssam  ac_cv_have_decl_ether_ntohost=yes
9234146773Ssamelse
9235146773Ssam  echo "$as_me: failed program was:" >&5
9236146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
9237146773Ssam
9238146773Ssamac_cv_have_decl_ether_ntohost=no
9239146773Ssamfi
9240146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
9241146773Ssamfi
9242146773Ssamecho "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9243146773Ssamecho "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9244146773Ssamif test $ac_cv_have_decl_ether_ntohost = yes; then
9245146773Ssam
9246146773Ssam
9247146773Ssamcat >>confdefs.h <<\_ACEOF
9248146773Ssam#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
9249146773Ssam_ACEOF
9250146773Ssam
9251146773Ssam
9252146773Ssamfi
9253146773Ssam
9254146773Ssam	fi
9255146773Ssam	#
9256146773Ssam	# Did that succeed?
9257146773Ssam	#
9258146773Ssam	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9259146773Ssam		#
9260146773Ssam		# No, how about <netinet/ether.h>, as on Linux?
9261146773Ssam		#
9262146773Ssam
9263146773Ssamfor ac_header in netinet/ether.h
9264146773Ssamdo
9265146773Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9266146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then
9267146773Ssam  echo "$as_me:$LINENO: checking for $ac_header" >&5
9268146773Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9269146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then
9270146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
9271146773Ssamfi
9272146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9273146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9274146773Ssamelse
9275146773Ssam  # Is the header compilable?
9276146773Ssamecho "$as_me:$LINENO: checking $ac_header usability" >&5
9277146773Ssamecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9278146773Ssamcat >conftest.$ac_ext <<_ACEOF
9279146773Ssam#line $LINENO "configure"
9280146773Ssam/* confdefs.h.  */
9281146773Ssam_ACEOF
9282146773Ssamcat confdefs.h >>conftest.$ac_ext
9283146773Ssamcat >>conftest.$ac_ext <<_ACEOF
9284146773Ssam/* end confdefs.h.  */
9285146773Ssam$ac_includes_default
9286146773Ssam#include <$ac_header>
9287146773Ssam_ACEOF
9288146773Ssamrm -f conftest.$ac_objext
9289146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290146773Ssam  (eval $ac_compile) 2>&5
9291146773Ssam  ac_status=$?
9292146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293146773Ssam  (exit $ac_status); } &&
9294146773Ssam         { ac_try='test -s conftest.$ac_objext'
9295146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296146773Ssam  (eval $ac_try) 2>&5
9297146773Ssam  ac_status=$?
9298146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299146773Ssam  (exit $ac_status); }; }; then
9300146773Ssam  ac_header_compiler=yes
9301146773Ssamelse
9302146773Ssam  echo "$as_me: failed program was:" >&5
9303146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
9304146773Ssam
9305146773Ssamac_header_compiler=no
9306146773Ssamfi
9307146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
9308146773Ssamecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
9309146773Ssamecho "${ECHO_T}$ac_header_compiler" >&6
9310146773Ssam
9311146773Ssam# Is the header present?
9312146773Ssamecho "$as_me:$LINENO: checking $ac_header presence" >&5
9313146773Ssamecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9314146773Ssamcat >conftest.$ac_ext <<_ACEOF
9315146773Ssam#line $LINENO "configure"
9316146773Ssam/* confdefs.h.  */
9317146773Ssam_ACEOF
9318146773Ssamcat confdefs.h >>conftest.$ac_ext
9319146773Ssamcat >>conftest.$ac_ext <<_ACEOF
9320146773Ssam/* end confdefs.h.  */
9321146773Ssam#include <$ac_header>
9322146773Ssam_ACEOF
9323146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9324146773Ssam  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9325146773Ssam  ac_status=$?
9326146773Ssam  grep -v '^ *+' conftest.er1 >conftest.err
9327146773Ssam  rm -f conftest.er1
9328146773Ssam  cat conftest.err >&5
9329146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330146773Ssam  (exit $ac_status); } >/dev/null; then
9331146773Ssam  if test -s conftest.err; then
9332146773Ssam    ac_cpp_err=$ac_c_preproc_warn_flag
9333146773Ssam  else
9334146773Ssam    ac_cpp_err=
9335146773Ssam  fi
9336146773Ssamelse
9337146773Ssam  ac_cpp_err=yes
9338146773Ssamfi
9339146773Ssamif test -z "$ac_cpp_err"; then
9340146773Ssam  ac_header_preproc=yes
9341146773Ssamelse
9342146773Ssam  echo "$as_me: failed program was:" >&5
9343146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
9344146773Ssam
9345146773Ssam  ac_header_preproc=no
9346146773Ssamfi
9347146773Ssamrm -f conftest.err conftest.$ac_ext
9348146773Ssamecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
9349146773Ssamecho "${ECHO_T}$ac_header_preproc" >&6
9350146773Ssam
9351146773Ssam# So?  What about this header?
9352146773Ssamcase $ac_header_compiler:$ac_header_preproc in
9353146773Ssam  yes:no )
9354146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9355146773Ssamecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9356146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9357146773Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9358146773Ssam    (
9359146773Ssam      cat <<\_ASBOX
9360146773Ssam## ------------------------------------ ##
9361146773Ssam## Report this to bug-autoconf@gnu.org. ##
9362146773Ssam## ------------------------------------ ##
9363146773Ssam_ASBOX
9364146773Ssam    ) |
9365146773Ssam      sed "s/^/$as_me: WARNING:     /" >&2
9366146773Ssam    ;;
9367146773Ssam  no:yes )
9368146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9369146773Ssamecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9370146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9371146773Ssamecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9372146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9373146773Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9374146773Ssam    (
9375146773Ssam      cat <<\_ASBOX
9376146773Ssam## ------------------------------------ ##
9377146773Ssam## Report this to bug-autoconf@gnu.org. ##
9378146773Ssam## ------------------------------------ ##
9379146773Ssam_ASBOX
9380146773Ssam    ) |
9381146773Ssam      sed "s/^/$as_me: WARNING:     /" >&2
9382146773Ssam    ;;
9383146773Ssamesac
9384146773Ssamecho "$as_me:$LINENO: checking for $ac_header" >&5
9385146773Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9386146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then
9387146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
9388146773Ssamelse
9389146773Ssam  eval "$as_ac_Header=$ac_header_preproc"
9390146773Ssamfi
9391146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9392146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9393146773Ssam
9394146773Ssamfi
9395146773Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then
9396146773Ssam  cat >>confdefs.h <<_ACEOF
9397146773Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9398146773Ssam_ACEOF
9399146773Ssam
9400146773Ssamfi
9401146773Ssam
9402146773Ssamdone
9403146773Ssam
9404146773Ssam		if test "$ac_cv_header_netinet_ether_h" = yes; then
9405146773Ssam			#
9406146773Ssam			# We have it - does it declare ether_ntohost()?
9407146773Ssam			# Unset ac_cv_have_decl_ether_ntohost so we don't
9408146773Ssam			# treat the previous failure as a cached value and
9409146773Ssam			# suppress the next test.
9410146773Ssam			#
9411146773Ssam			unset ac_cv_have_decl_ether_ntohost
9412146773Ssam			echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9413146773Ssamecho $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9414146773Ssamif test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9415146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
9416146773Ssamelse
9417146773Ssam  cat >conftest.$ac_ext <<_ACEOF
9418146773Ssam#line $LINENO "configure"
9419146773Ssam/* confdefs.h.  */
9420146773Ssam_ACEOF
9421146773Ssamcat confdefs.h >>conftest.$ac_ext
9422146773Ssamcat >>conftest.$ac_ext <<_ACEOF
9423146773Ssam/* end confdefs.h.  */
9424146773Ssam
9425146773Ssam#include <netinet/ether.h>
9426146773Ssam
9427146773Ssam
9428146773Ssamint
9429146773Ssammain ()
9430146773Ssam{
9431146773Ssam#ifndef ether_ntohost
9432146773Ssam  char *p = (char *) ether_ntohost;
9433146773Ssam#endif
9434146773Ssam
9435146773Ssam  ;
9436146773Ssam  return 0;
9437146773Ssam}
9438146773Ssam_ACEOF
9439146773Ssamrm -f conftest.$ac_objext
9440146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9441146773Ssam  (eval $ac_compile) 2>&5
9442146773Ssam  ac_status=$?
9443146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444146773Ssam  (exit $ac_status); } &&
9445146773Ssam         { ac_try='test -s conftest.$ac_objext'
9446146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447146773Ssam  (eval $ac_try) 2>&5
9448146773Ssam  ac_status=$?
9449146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450146773Ssam  (exit $ac_status); }; }; then
9451146773Ssam  ac_cv_have_decl_ether_ntohost=yes
9452146773Ssamelse
9453146773Ssam  echo "$as_me: failed program was:" >&5
9454146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
9455146773Ssam
9456146773Ssamac_cv_have_decl_ether_ntohost=no
9457146773Ssamfi
9458146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
9459146773Ssamfi
9460146773Ssamecho "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9461146773Ssamecho "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9462146773Ssamif test $ac_cv_have_decl_ether_ntohost = yes; then
9463146773Ssam
9464147899Ssam
9465147899Ssamcat >>confdefs.h <<\_ACEOF
9466147899Ssam#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9467146773Ssam_ACEOF
9468146773Ssam
9469146773Ssam
9470147899Ssamfi
9471146773Ssam
9472147899Ssam		fi
9473147899Ssam	fi
9474147899Ssam	#
9475147899Ssam	# Is ether_ntohost() declared?
9476147899Ssam	#
9477147899Ssam	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9478147899Ssam		#
9479147899Ssam		# No, we'll have to declare it ourselves.
9480147899Ssam		# Do we have "struct ether_addr"?
9481147899Ssam		#
9482147899Ssam		echo "$as_me:$LINENO: checking for struct ether_addr" >&5
9483147899Ssamecho $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
9484147899Ssamif test "${ac_cv_type_struct_ether_addr+set}" = set; then
9485147899Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
9486147899Ssamelse
9487147899Ssam  cat >conftest.$ac_ext <<_ACEOF
9488147899Ssam#line $LINENO "configure"
9489147899Ssam/* confdefs.h.  */
9490146773Ssam_ACEOF
9491147899Ssamcat confdefs.h >>conftest.$ac_ext
9492147899Ssamcat >>conftest.$ac_ext <<_ACEOF
9493147899Ssam/* end confdefs.h.  */
9494146773Ssam
9495147899Ssam#include <sys/types.h>
9496147899Ssam#include <sys/socket.h>
9497147899Ssam#include <netinet/in.h>
9498147899Ssam#include <arpa/inet.h>
9499147899Ssamstruct mbuf;
9500147899Ssamstruct rtentry;
9501147899Ssam#include <net/if.h>
9502147899Ssam#include <netinet/if_ether.h>
9503146773Ssam
9504147899Ssam
9505147899Ssamint
9506147899Ssammain ()
9507147899Ssam{
9508147899Ssamif ((struct ether_addr *) 0)
9509147899Ssam  return 0;
9510147899Ssamif (sizeof (struct ether_addr))
9511147899Ssam  return 0;
9512147899Ssam  ;
9513147899Ssam  return 0;
9514147899Ssam}
9515147899Ssam_ACEOF
9516147899Ssamrm -f conftest.$ac_objext
9517147899Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9518147899Ssam  (eval $ac_compile) 2>&5
9519147899Ssam  ac_status=$?
9520147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521147899Ssam  (exit $ac_status); } &&
9522147899Ssam         { ac_try='test -s conftest.$ac_objext'
9523147899Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524147899Ssam  (eval $ac_try) 2>&5
9525147899Ssam  ac_status=$?
9526147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527147899Ssam  (exit $ac_status); }; }; then
9528147899Ssam  ac_cv_type_struct_ether_addr=yes
9529146773Ssamelse
9530147899Ssam  echo "$as_me: failed program was:" >&5
9531147899Ssamsed 's/^/| /' conftest.$ac_ext >&5
9532147899Ssam
9533147899Ssamac_cv_type_struct_ether_addr=no
9534147899Ssamfi
9535147899Ssamrm -f conftest.$ac_objext conftest.$ac_ext
9536147899Ssamfi
9537147899Ssamecho "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
9538147899Ssamecho "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
9539147899Ssamif test $ac_cv_type_struct_ether_addr = yes; then
9540147899Ssam
9541147899Ssamcat >>confdefs.h <<_ACEOF
9542147899Ssam#define HAVE_STRUCT_ETHER_ADDR 1
9543146773Ssam_ACEOF
9544146773Ssam
9545146773Ssam
9546146773Ssamfi
9547146773Ssam
9548146773Ssam
9549147899Ssamcat >>confdefs.h <<\_ACEOF
9550147899Ssam#define HAVE_DECL_ETHER_NTOHOST 0
9551147899Ssam_ACEOF
9552147899Ssam
9553147899Ssam	else
9554147899Ssam
9555147899Ssamcat >>confdefs.h <<\_ACEOF
9556147899Ssam#define HAVE_DECL_ETHER_NTOHOST 1
9557147899Ssam_ACEOF
9558147899Ssam
9559146773Ssam	fi
9560146773Ssamfi
9561146773Ssam
9562146773Ssam
9563127668Sbms	echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9564127668Sbmsecho $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9565127668Sbms	if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9566127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
9567127668Sbmselse
9568127668Sbms  cat >conftest.$ac_ext <<_ACEOF
9569127668Sbms#line $LINENO "configure"
9570127668Sbms/* confdefs.h.  */
9571127668Sbms_ACEOF
9572127668Sbmscat confdefs.h >>conftest.$ac_ext
9573127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9574127668Sbms/* end confdefs.h.  */
9575127668Sbms
9576127668Sbms#		include <sys/types.h>
9577127668Sbms#		include <sys/socket.h>
9578127668Sbmsint
9579127668Sbmsmain ()
9580127668Sbms{
9581127668Sbmsu_int i = sizeof(((struct sockaddr *)0)->sa_len)
9582127668Sbms  ;
9583127668Sbms  return 0;
9584127668Sbms}
9585127668Sbms_ACEOF
9586127668Sbmsrm -f conftest.$ac_objext
9587127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588127668Sbms  (eval $ac_compile) 2>&5
9589127668Sbms  ac_status=$?
9590127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591127668Sbms  (exit $ac_status); } &&
9592127668Sbms         { ac_try='test -s conftest.$ac_objext'
9593127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594127668Sbms  (eval $ac_try) 2>&5
9595127668Sbms  ac_status=$?
9596127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597127668Sbms  (exit $ac_status); }; }; then
9598127668Sbms  ac_cv_sockaddr_has_sa_len=yes
9599127668Sbmselse
9600127668Sbms  echo "$as_me: failed program was:" >&5
9601127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9602127668Sbms
9603127668Sbmsac_cv_sockaddr_has_sa_len=no
9604127668Sbmsfi
9605127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
9606127668Sbmsfi
9607127668Sbms
9608127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9609127668Sbmsecho "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9610127668Sbms		if test $ac_cv_sockaddr_has_sa_len = yes ; then
9611127668Sbms			cat >>confdefs.h <<\_ACEOF
9612127668Sbms#define HAVE_SOCKADDR_SA_LEN 1
9613127668Sbms_ACEOF
9614127668Sbms
9615127668Sbms	fi
9616127668Sbms
9617127668Sbmsif test "$ac_cv_sockaddr_has_sa_len" = no; then
9618127668Sbms	missing_includes=yes
9619127668Sbmsfi
9620127668Sbms
9621127668Sbms
9622127668Sbms
9623127668Sbms
9624127668Sbmsfor ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9625127668Sbmsdo
9626127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9627127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
9628127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9629127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
9630127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
9631127668Sbmselse
9632127668Sbms  cat >conftest.$ac_ext <<_ACEOF
9633127668Sbms#line $LINENO "configure"
9634127668Sbms/* confdefs.h.  */
9635127668Sbms_ACEOF
9636127668Sbmscat confdefs.h >>conftest.$ac_ext
9637127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9638127668Sbms/* end confdefs.h.  */
9639127668Sbms/* System header to define __stub macros and hopefully few prototypes,
9640127668Sbms    which can conflict with char $ac_func (); below.
9641127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9642127668Sbms    <limits.h> exists even on freestanding compilers.  */
9643127668Sbms#ifdef __STDC__
9644127668Sbms# include <limits.h>
9645127668Sbms#else
9646127668Sbms# include <assert.h>
9647127668Sbms#endif
9648127668Sbms/* Override any gcc2 internal prototype to avoid an error.  */
9649127668Sbms#ifdef __cplusplus
9650127668Sbmsextern "C"
9651127668Sbms{
9652127668Sbms#endif
9653127668Sbms/* We use char because int might match the return type of a gcc2
9654127668Sbms   builtin and then its argument prototype would still apply.  */
9655127668Sbmschar $ac_func ();
965675115Sfenner/* The GNU C library defines this for functions which it implements
965775115Sfenner    to always fail with ENOSYS.  Some functions are actually named
965875115Sfenner    something starting with __ and the normal name is an alias.  */
965975115Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
966075115Sfennerchoke me
966175115Sfenner#else
9662127668Sbmschar (*f) () = $ac_func;
966375115Sfenner#endif
9664127668Sbms#ifdef __cplusplus
9665127668Sbms}
9666127668Sbms#endif
966775115Sfenner
9668127668Sbmsint
9669127668Sbmsmain ()
9670127668Sbms{
9671127668Sbmsreturn f != $ac_func;
9672127668Sbms  ;
9673127668Sbms  return 0;
9674127668Sbms}
9675127668Sbms_ACEOF
9676127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
9677127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678127668Sbms  (eval $ac_link) 2>&5
9679127668Sbms  ac_status=$?
9680127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681127668Sbms  (exit $ac_status); } &&
9682127668Sbms         { ac_try='test -s conftest$ac_exeext'
9683127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684127668Sbms  (eval $ac_try) 2>&5
9685127668Sbms  ac_status=$?
9686127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687127668Sbms  (exit $ac_status); }; }; then
9688127668Sbms  eval "$as_ac_var=yes"
968975115Sfennerelse
9690127668Sbms  echo "$as_me: failed program was:" >&5
9691127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9692127668Sbms
9693127668Sbmseval "$as_ac_var=no"
969475115Sfennerfi
9695127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
969675115Sfennerfi
9697127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9698127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9699127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
9700127668Sbms  cat >>confdefs.h <<_ACEOF
9701127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9702127668Sbms_ACEOF
970375115Sfenner
9704127668Sbmsfi
9705127668Sbmsdone
9706127668Sbms
9707127668Sbmsif test $ac_cv_func_pcap_findalldevs = "yes" ; then
9708146773Ssam    savedcflags="$CFLAGS"
9709146773Ssam    CFLAGS="$CFLAGS $V_INCLS"
9710127668Sbms    echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9711127668Sbmsecho $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9712127668Sbmsif test "${ac_cv_type_pcap_if_t+set}" = set; then
9713127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
971475115Sfennerelse
9715127668Sbms  cat >conftest.$ac_ext <<_ACEOF
9716127668Sbms#line $LINENO "configure"
9717127668Sbms/* confdefs.h.  */
9718127668Sbms_ACEOF
9719127668Sbmscat confdefs.h >>conftest.$ac_ext
9720127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9721127668Sbms/* end confdefs.h.  */
9722127668Sbms#include <pcap.h>
9723127668Sbms
9724127668Sbmsint
9725127668Sbmsmain ()
9726127668Sbms{
9727127668Sbmsif ((pcap_if_t *) 0)
9728127668Sbms  return 0;
9729127668Sbmsif (sizeof (pcap_if_t))
9730127668Sbms  return 0;
9731127668Sbms  ;
9732127668Sbms  return 0;
9733127668Sbms}
9734127668Sbms_ACEOF
9735127668Sbmsrm -f conftest.$ac_objext
9736127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737127668Sbms  (eval $ac_compile) 2>&5
9738127668Sbms  ac_status=$?
9739127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740127668Sbms  (exit $ac_status); } &&
9741127668Sbms         { ac_try='test -s conftest.$ac_objext'
9742127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743127668Sbms  (eval $ac_try) 2>&5
9744127668Sbms  ac_status=$?
9745127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746127668Sbms  (exit $ac_status); }; }; then
9747127668Sbms  ac_cv_type_pcap_if_t=yes
9748127668Sbmselse
9749127668Sbms  echo "$as_me: failed program was:" >&5
9750127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9751127668Sbms
9752127668Sbmsac_cv_type_pcap_if_t=no
975375115Sfennerfi
9754127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
9755127668Sbmsfi
9756127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9757127668Sbmsecho "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9758127668Sbmsif test $ac_cv_type_pcap_if_t = yes; then
9759127668Sbms
9760127668Sbmscat >>confdefs.h <<_ACEOF
9761127668Sbms#define HAVE_PCAP_IF_T 1
9762127668Sbms_ACEOF
9763127668Sbms
9764127668Sbms
9765127668Sbmsfi
9766127668Sbms
9767146773Ssam    CFLAGS="$savedcflags"
9768127668Sbmsfi
9769146773Ssam
9770127668Sbmsif test $ac_cv_func_pcap_lib_version = "no" ; then
9771127668Sbms    echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9772127668Sbmsecho $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9773127668Sbms    cat >conftest.$ac_ext <<_ACEOF
9774127668Sbms#line $LINENO "configure"
9775127668Sbms/* confdefs.h.  */
9776127668Sbms_ACEOF
9777127668Sbmscat confdefs.h >>conftest.$ac_ext
9778127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9779127668Sbms/* end confdefs.h.  */
9780127668Sbms
9781127668Sbmsint
9782127668Sbmsmain ()
9783127668Sbms{
9784127668Sbms
9785127668Sbms	extern char pcap_version[];
9786127668Sbms
9787146773Ssam	return (int)pcap_version;
9788127668Sbms
9789127668Sbms  ;
9790127668Sbms  return 0;
9791127668Sbms}
9792127668Sbms_ACEOF
9793127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
9794127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9795127668Sbms  (eval $ac_link) 2>&5
9796127668Sbms  ac_status=$?
9797127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798127668Sbms  (exit $ac_status); } &&
9799127668Sbms         { ac_try='test -s conftest$ac_exeext'
9800127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801127668Sbms  (eval $ac_try) 2>&5
9802127668Sbms  ac_status=$?
9803127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804127668Sbms  (exit $ac_status); }; }; then
9805127668Sbms  ac_lbl_cv_pcap_version_defined=yes
9806127668Sbmselse
9807127668Sbms  echo "$as_me: failed program was:" >&5
9808127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9809127668Sbms
9810127668Sbmsac_lbl_cv_pcap_version_defined=no
9811127668Sbmsfi
9812127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9813127668Sbms    if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9814127668Sbms    	echo "$as_me:$LINENO: result: yes" >&5
9815127668Sbmsecho "${ECHO_T}yes" >&6
9816127668Sbms	cat >>confdefs.h <<\_ACEOF
9817127668Sbms#define HAVE_PCAP_VERSION 1
9818127668Sbms_ACEOF
9819127668Sbms
9820127668Sbms    else
9821127668Sbms	echo "$as_me:$LINENO: result: no" >&5
9822127668Sbmsecho "${ECHO_T}no" >&6
9823127668Sbms    fi
9824127668Sbmsfi
9825127668Sbmsecho "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9826127668Sbmsecho $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9827127668Sbmscat >conftest.$ac_ext <<_ACEOF
9828127668Sbms#line $LINENO "configure"
9829127668Sbms/* confdefs.h.  */
9830127668Sbms_ACEOF
9831127668Sbmscat confdefs.h >>conftest.$ac_ext
9832127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9833127668Sbms/* end confdefs.h.  */
9834127668Sbms
9835127668Sbmsint
9836127668Sbmsmain ()
9837127668Sbms{
9838127668Sbms
9839127668Sbms	extern int pcap_debug;
9840127668Sbms
9841127668Sbms	return pcap_debug;
9842127668Sbms
9843127668Sbms  ;
9844127668Sbms  return 0;
9845127668Sbms}
9846127668Sbms_ACEOF
9847127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
9848127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849127668Sbms  (eval $ac_link) 2>&5
9850127668Sbms  ac_status=$?
9851127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852127668Sbms  (exit $ac_status); } &&
9853127668Sbms         { ac_try='test -s conftest$ac_exeext'
9854127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855127668Sbms  (eval $ac_try) 2>&5
9856127668Sbms  ac_status=$?
9857127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858127668Sbms  (exit $ac_status); }; }; then
9859127668Sbms  ac_lbl_cv_pcap_debug_defined=yes
9860127668Sbmselse
9861127668Sbms  echo "$as_me: failed program was:" >&5
9862127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9863127668Sbms
9864127668Sbmsac_lbl_cv_pcap_debug_defined=no
9865127668Sbmsfi
9866127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9867127668Sbmsif test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9868127668Sbms	echo "$as_me:$LINENO: result: yes" >&5
9869127668Sbmsecho "${ECHO_T}yes" >&6
9870127668Sbms	cat >>confdefs.h <<\_ACEOF
9871127668Sbms#define HAVE_PCAP_DEBUG 1
9872127668Sbms_ACEOF
9873127668Sbms
9874127668Sbmselse
9875127668Sbms	echo "$as_me:$LINENO: result: no" >&5
9876127668Sbmsecho "${ECHO_T}no" >&6
9877127668Sbms	#
9878127668Sbms	# OK, what about "yydebug"?
9879127668Sbms	#
9880127668Sbms	echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9881127668Sbmsecho $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9882127668Sbms	cat >conftest.$ac_ext <<_ACEOF
9883127668Sbms#line $LINENO "configure"
9884127668Sbms/* confdefs.h.  */
9885127668Sbms_ACEOF
9886127668Sbmscat confdefs.h >>conftest.$ac_ext
9887127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9888127668Sbms/* end confdefs.h.  */
9889127668Sbms
9890127668Sbmsint
9891127668Sbmsmain ()
9892127668Sbms{
9893127668Sbms
9894127668Sbms		extern int yydebug;
9895127668Sbms
9896127668Sbms		return yydebug;
9897127668Sbms
9898127668Sbms  ;
9899127668Sbms  return 0;
9900127668Sbms}
9901127668Sbms_ACEOF
9902127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
9903127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904127668Sbms  (eval $ac_link) 2>&5
9905127668Sbms  ac_status=$?
9906127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907127668Sbms  (exit $ac_status); } &&
9908127668Sbms         { ac_try='test -s conftest$ac_exeext'
9909127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910127668Sbms  (eval $ac_try) 2>&5
9911127668Sbms  ac_status=$?
9912127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913127668Sbms  (exit $ac_status); }; }; then
9914127668Sbms  ac_lbl_cv_yydebug_defined=yes
9915127668Sbmselse
9916127668Sbms  echo "$as_me: failed program was:" >&5
9917127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9918127668Sbms
9919127668Sbmsac_lbl_cv_yydebug_defined=no
9920127668Sbmsfi
9921127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9922127668Sbms	if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9923127668Sbms		echo "$as_me:$LINENO: result: yes" >&5
9924127668Sbmsecho "${ECHO_T}yes" >&6
9925127668Sbms		cat >>confdefs.h <<\_ACEOF
9926127668Sbms#define HAVE_YYDEBUG 1
9927127668Sbms_ACEOF
9928127668Sbms
9929127668Sbms	else
9930127668Sbms		echo "$as_me:$LINENO: result: no" >&5
9931127668Sbmsecho "${ECHO_T}no" >&6
9932127668Sbms	fi
9933127668Sbmsfi
9934127668Sbms
9935127668Sbmsfor ac_func in bpf_dump
9936127668Sbmsdo
9937127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9938127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5
9939127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9940127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then
9941127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
9942127668Sbmselse
9943127668Sbms  cat >conftest.$ac_ext <<_ACEOF
9944127668Sbms#line $LINENO "configure"
9945127668Sbms/* confdefs.h.  */
9946127668Sbms_ACEOF
9947127668Sbmscat confdefs.h >>conftest.$ac_ext
9948127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9949127668Sbms/* end confdefs.h.  */
9950127668Sbms/* System header to define __stub macros and hopefully few prototypes,
9951127668Sbms    which can conflict with char $ac_func (); below.
9952127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9953127668Sbms    <limits.h> exists even on freestanding compilers.  */
9954127668Sbms#ifdef __STDC__
9955127668Sbms# include <limits.h>
9956127668Sbms#else
9957127668Sbms# include <assert.h>
9958127668Sbms#endif
9959127668Sbms/* Override any gcc2 internal prototype to avoid an error.  */
9960127668Sbms#ifdef __cplusplus
9961127668Sbmsextern "C"
9962127668Sbms{
9963127668Sbms#endif
9964127668Sbms/* We use char because int might match the return type of a gcc2
9965127668Sbms   builtin and then its argument prototype would still apply.  */
9966127668Sbmschar $ac_func ();
9967127668Sbms/* The GNU C library defines this for functions which it implements
9968127668Sbms    to always fail with ENOSYS.  Some functions are actually named
9969127668Sbms    something starting with __ and the normal name is an alias.  */
9970127668Sbms#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9971127668Sbmschoke me
9972127668Sbms#else
9973127668Sbmschar (*f) () = $ac_func;
9974127668Sbms#endif
9975127668Sbms#ifdef __cplusplus
9976127668Sbms}
9977127668Sbms#endif
9978127668Sbms
9979127668Sbmsint
9980127668Sbmsmain ()
9981127668Sbms{
9982127668Sbmsreturn f != $ac_func;
9983127668Sbms  ;
9984127668Sbms  return 0;
9985127668Sbms}
9986127668Sbms_ACEOF
9987127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
9988127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989127668Sbms  (eval $ac_link) 2>&5
9990127668Sbms  ac_status=$?
9991127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992127668Sbms  (exit $ac_status); } &&
9993127668Sbms         { ac_try='test -s conftest$ac_exeext'
9994127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995127668Sbms  (eval $ac_try) 2>&5
9996127668Sbms  ac_status=$?
9997127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998127668Sbms  (exit $ac_status); }; }; then
9999127668Sbms  eval "$as_ac_var=yes"
10000127668Sbmselse
10001127668Sbms  echo "$as_me: failed program was:" >&5
10002127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10003127668Sbms
10004127668Sbmseval "$as_ac_var=no"
10005127668Sbmsfi
10006127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10007127668Sbmsfi
10008127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10009127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10010127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
10011127668Sbms  cat >>confdefs.h <<_ACEOF
10012127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10013127668Sbms_ACEOF
10014127668Sbms
10015127668Sbmselse
10016127668Sbms  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10017127668Sbmsfi
1001875115Sfennerdone
1001975115Sfenner
10020127668Sbms
1002117680SpstV_GROUP=0
1002239297Sfennerif test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
1002339297Sfenner	V_GROUP=wheel
1002439297Sfennerfi
1002598524Sfennercase "$host_os" in
1002617680Spst
1002717680Spstaix*)
10028127668Sbms		cat >>confdefs.h <<\_ACEOF
1002917680Spst#define _SUN 1
10030127668Sbms_ACEOF
1003117680Spst
1003217680Spst	;;
1003317680Spst
1003417680Spstirix*)
1003517680Spst	V_GROUP=sys
1003617680Spst	;;
1003717680Spst
1003817680Spstosf*)
1003917680Spst	V_GROUP=system
1004017680Spst	;;
1004117680Spst
1004217680Spstsolaris*)
1004317680Spst	V_GROUP=sys
1004417680Spst	;;
1004517680Spstesac
1004617680Spst
1004717680Spstif test -f /dev/bpf0 ; then
1004817680Spst	V_GROUP=bpf
1004917680Spstfi
1005017680Spst
10051147899Ssam
10052147899Ssamfor ac_header in sys/bitypes.h
10053147899Ssamdo
10054147899Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10055147899Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then
10056147899Ssam  echo "$as_me:$LINENO: checking for $ac_header" >&5
10057147899Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10058147899Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then
10059127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
10060147899Ssamfi
10061147899Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10062147899Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1006356893Sfennerelse
10064147899Ssam  # Is the header compilable?
10065147899Ssamecho "$as_me:$LINENO: checking $ac_header usability" >&5
10066147899Ssamecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10067147899Ssamcat >conftest.$ac_ext <<_ACEOF
10068147899Ssam#line $LINENO "configure"
10069147899Ssam/* confdefs.h.  */
10070147899Ssam_ACEOF
10071147899Ssamcat confdefs.h >>conftest.$ac_ext
10072147899Ssamcat >>conftest.$ac_ext <<_ACEOF
10073147899Ssam/* end confdefs.h.  */
10074147899Ssam$ac_includes_default
10075147899Ssam#include <$ac_header>
10076147899Ssam_ACEOF
10077147899Ssamrm -f conftest.$ac_objext
10078147899Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079147899Ssam  (eval $ac_compile) 2>&5
10080147899Ssam  ac_status=$?
10081147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082147899Ssam  (exit $ac_status); } &&
10083147899Ssam         { ac_try='test -s conftest.$ac_objext'
10084147899Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085147899Ssam  (eval $ac_try) 2>&5
10086147899Ssam  ac_status=$?
10087147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088147899Ssam  (exit $ac_status); }; }; then
10089147899Ssam  ac_header_compiler=yes
10090147899Ssamelse
10091147899Ssam  echo "$as_me: failed program was:" >&5
10092147899Ssamsed 's/^/| /' conftest.$ac_ext >&5
10093147899Ssam
10094147899Ssamac_header_compiler=no
10095147899Ssamfi
10096147899Ssamrm -f conftest.$ac_objext conftest.$ac_ext
10097147899Ssamecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
10098147899Ssamecho "${ECHO_T}$ac_header_compiler" >&6
10099147899Ssam
10100147899Ssam# Is the header present?
10101147899Ssamecho "$as_me:$LINENO: checking $ac_header presence" >&5
10102147899Ssamecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10103147899Ssamcat >conftest.$ac_ext <<_ACEOF
10104147899Ssam#line $LINENO "configure"
10105147899Ssam/* confdefs.h.  */
10106147899Ssam_ACEOF
10107147899Ssamcat confdefs.h >>conftest.$ac_ext
10108147899Ssamcat >>conftest.$ac_ext <<_ACEOF
10109147899Ssam/* end confdefs.h.  */
10110147899Ssam#include <$ac_header>
10111147899Ssam_ACEOF
10112147899Ssamif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10113147899Ssam  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10114147899Ssam  ac_status=$?
10115147899Ssam  grep -v '^ *+' conftest.er1 >conftest.err
10116147899Ssam  rm -f conftest.er1
10117147899Ssam  cat conftest.err >&5
10118147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119147899Ssam  (exit $ac_status); } >/dev/null; then
10120147899Ssam  if test -s conftest.err; then
10121147899Ssam    ac_cpp_err=$ac_c_preproc_warn_flag
10122147899Ssam  else
10123147899Ssam    ac_cpp_err=
10124147899Ssam  fi
10125147899Ssamelse
10126147899Ssam  ac_cpp_err=yes
10127147899Ssamfi
10128147899Ssamif test -z "$ac_cpp_err"; then
10129147899Ssam  ac_header_preproc=yes
10130147899Ssamelse
10131147899Ssam  echo "$as_me: failed program was:" >&5
10132147899Ssamsed 's/^/| /' conftest.$ac_ext >&5
10133147899Ssam
10134147899Ssam  ac_header_preproc=no
10135147899Ssamfi
10136147899Ssamrm -f conftest.err conftest.$ac_ext
10137147899Ssamecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
10138147899Ssamecho "${ECHO_T}$ac_header_preproc" >&6
10139147899Ssam
10140147899Ssam# So?  What about this header?
10141147899Ssamcase $ac_header_compiler:$ac_header_preproc in
10142147899Ssam  yes:no )
10143147899Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10144147899Ssamecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10145147899Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10146147899Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10147147899Ssam    (
10148147899Ssam      cat <<\_ASBOX
10149147899Ssam## ------------------------------------ ##
10150147899Ssam## Report this to bug-autoconf@gnu.org. ##
10151147899Ssam## ------------------------------------ ##
10152147899Ssam_ASBOX
10153147899Ssam    ) |
10154147899Ssam      sed "s/^/$as_me: WARNING:     /" >&2
10155147899Ssam    ;;
10156147899Ssam  no:yes )
10157147899Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10158147899Ssamecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10159147899Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10160147899Ssamecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10161147899Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10162147899Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10163147899Ssam    (
10164147899Ssam      cat <<\_ASBOX
10165147899Ssam## ------------------------------------ ##
10166147899Ssam## Report this to bug-autoconf@gnu.org. ##
10167147899Ssam## ------------------------------------ ##
10168147899Ssam_ASBOX
10169147899Ssam    ) |
10170147899Ssam      sed "s/^/$as_me: WARNING:     /" >&2
10171147899Ssam    ;;
10172147899Ssamesac
10173147899Ssamecho "$as_me:$LINENO: checking for $ac_header" >&5
10174147899Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10175147899Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then
10176147899Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
10177147899Ssamelse
10178147899Ssam  eval "$as_ac_Header=$ac_header_preproc"
10179147899Ssamfi
10180147899Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10181147899Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10182147899Ssam
10183147899Ssamfi
10184147899Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then
10185147899Ssam  cat >>confdefs.h <<_ACEOF
10186147899Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10187147899Ssam_ACEOF
10188147899Ssam
10189147899Ssamfi
10190147899Ssam
10191147899Ssamdone
10192147899Ssam
10193147899Ssam
10194147899Ssamecho "$as_me:$LINENO: checking for int8_t" >&5
10195147899Ssamecho $ECHO_N "checking for int8_t... $ECHO_C" >&6
10196147899Ssamif test "${ac_cv_type_int8_t+set}" = set; then
10197147899Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
10198147899Ssamelse
10199127668Sbms  cat >conftest.$ac_ext <<_ACEOF
10200127668Sbms#line $LINENO "configure"
10201127668Sbms/* confdefs.h.  */
10202127668Sbms_ACEOF
10203127668Sbmscat confdefs.h >>conftest.$ac_ext
10204127668Sbmscat >>conftest.$ac_ext <<_ACEOF
10205127668Sbms/* end confdefs.h.  */
10206147899Ssam$ac_includes_default
10207127668Sbmsint
10208127668Sbmsmain ()
10209127668Sbms{
10210147899Ssamif ((int8_t *) 0)
10211147899Ssam  return 0;
10212147899Ssamif (sizeof (int8_t))
10213147899Ssam  return 0;
10214127668Sbms  ;
10215127668Sbms  return 0;
10216127668Sbms}
10217127668Sbms_ACEOF
10218127668Sbmsrm -f conftest.$ac_objext
10219127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220127668Sbms  (eval $ac_compile) 2>&5
10221127668Sbms  ac_status=$?
10222127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223127668Sbms  (exit $ac_status); } &&
10224127668Sbms         { ac_try='test -s conftest.$ac_objext'
10225127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226127668Sbms  (eval $ac_try) 2>&5
10227127668Sbms  ac_status=$?
10228127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229127668Sbms  (exit $ac_status); }; }; then
10230147899Ssam  ac_cv_type_int8_t=yes
10231127668Sbmselse
10232127668Sbms  echo "$as_me: failed program was:" >&5
10233127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10234127668Sbms
10235147899Ssamac_cv_type_int8_t=no
10236127668Sbmsfi
10237127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
10238127668Sbmsfi
10239147899Ssamecho "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10240147899Ssamecho "${ECHO_T}$ac_cv_type_int8_t" >&6
10241147899Ssamif test $ac_cv_type_int8_t = yes; then
10242147899Ssam  :
10243147899Ssamelse
10244127668Sbms
10245147899Ssamcat >>confdefs.h <<\_ACEOF
10246127668Sbms#define int8_t signed char
10247127668Sbms_ACEOF
10248127668Sbms
10249147899Ssamfi
10250147899Ssam
10251147899Ssamecho "$as_me:$LINENO: checking for u_int8_t" >&5
10252147899Ssamecho $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
10253147899Ssamif test "${ac_cv_type_u_int8_t+set}" = set; then
10254127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
10255127668Sbmselse
10256127668Sbms  cat >conftest.$ac_ext <<_ACEOF
10257127668Sbms#line $LINENO "configure"
10258127668Sbms/* confdefs.h.  */
10259127668Sbms_ACEOF
10260127668Sbmscat confdefs.h >>conftest.$ac_ext
10261127668Sbmscat >>conftest.$ac_ext <<_ACEOF
10262127668Sbms/* end confdefs.h.  */
10263147899Ssam$ac_includes_default
10264147899Ssam#ifdef HAVE_SYS_BITYPES_H
10265147899Ssam#include <sys/bitypes.h>
10266147899Ssam#endif
10267127668Sbms
10268127668Sbmsint
10269127668Sbmsmain ()
10270127668Sbms{
10271147899Ssamif ((u_int8_t *) 0)
10272147899Ssam  return 0;
10273147899Ssamif (sizeof (u_int8_t))
10274147899Ssam  return 0;
10275127668Sbms  ;
10276127668Sbms  return 0;
10277127668Sbms}
10278127668Sbms_ACEOF
10279127668Sbmsrm -f conftest.$ac_objext
10280127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10281127668Sbms  (eval $ac_compile) 2>&5
10282127668Sbms  ac_status=$?
10283127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284127668Sbms  (exit $ac_status); } &&
10285127668Sbms         { ac_try='test -s conftest.$ac_objext'
10286127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287127668Sbms  (eval $ac_try) 2>&5
10288127668Sbms  ac_status=$?
10289127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290127668Sbms  (exit $ac_status); }; }; then
10291147899Ssam  ac_cv_type_u_int8_t=yes
1029256893Sfennerelse
10293127668Sbms  echo "$as_me: failed program was:" >&5
10294127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10295127668Sbms
10296147899Ssamac_cv_type_u_int8_t=no
1029756893Sfennerfi
10298127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
1029956893Sfennerfi
10300147899Ssamecho "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10301147899Ssamecho "${ECHO_T}$ac_cv_type_u_int8_t" >&6
10302147899Ssamif test $ac_cv_type_u_int8_t = yes; then
10303147899Ssam  :
10304147899Ssamelse
1030556893Sfenner
10306147899Ssamcat >>confdefs.h <<\_ACEOF
10307147899Ssam#define u_int8_t unsigned char
10308127668Sbms_ACEOF
1030956893Sfenner
10310147899Ssamfi
10311147899Ssam
10312147899Ssamecho "$as_me:$LINENO: checking for int16_t" >&5
10313147899Ssamecho $ECHO_N "checking for int16_t... $ECHO_C" >&6
10314147899Ssamif test "${ac_cv_type_int16_t+set}" = set; then
10315127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1031656893Sfennerelse
10317127668Sbms  cat >conftest.$ac_ext <<_ACEOF
10318127668Sbms#line $LINENO "configure"
10319127668Sbms/* confdefs.h.  */
10320127668Sbms_ACEOF
10321127668Sbmscat confdefs.h >>conftest.$ac_ext
10322127668Sbmscat >>conftest.$ac_ext <<_ACEOF
10323127668Sbms/* end confdefs.h.  */
10324147899Ssam$ac_includes_default
10325127668Sbmsint
10326127668Sbmsmain ()
10327127668Sbms{
10328147899Ssamif ((int16_t *) 0)
10329147899Ssam  return 0;
10330147899Ssamif (sizeof (int16_t))
10331147899Ssam  return 0;
10332127668Sbms  ;
10333127668Sbms  return 0;
10334127668Sbms}
10335127668Sbms_ACEOF
10336127668Sbmsrm -f conftest.$ac_objext
10337127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338127668Sbms  (eval $ac_compile) 2>&5
10339127668Sbms  ac_status=$?
10340127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341127668Sbms  (exit $ac_status); } &&
10342127668Sbms         { ac_try='test -s conftest.$ac_objext'
10343127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344127668Sbms  (eval $ac_try) 2>&5
10345127668Sbms  ac_status=$?
10346127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347127668Sbms  (exit $ac_status); }; }; then
10348147899Ssam  ac_cv_type_int16_t=yes
1034956893Sfennerelse
10350127668Sbms  echo "$as_me: failed program was:" >&5
10351127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10352127668Sbms
10353147899Ssamac_cv_type_int16_t=no
1035456893Sfennerfi
10355127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
1035656893Sfennerfi
10357147899Ssamecho "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10358147899Ssamecho "${ECHO_T}$ac_cv_type_int16_t" >&6
10359147899Ssamif test $ac_cv_type_int16_t = yes; then
10360147899Ssam  :
10361147899Ssamelse
1036256893Sfenner
10363147899Ssamcat >>confdefs.h <<\_ACEOF
1036456893Sfenner#define int16_t short
10365127668Sbms_ACEOF
1036656893Sfenner
10367147899Ssamfi
10368147899Ssam
10369147899Ssamecho "$as_me:$LINENO: checking for u_int16_t" >&5
10370147899Ssamecho $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
10371147899Ssamif test "${ac_cv_type_u_int16_t+set}" = set; then
10372127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1037356893Sfennerelse
10374127668Sbms  cat >conftest.$ac_ext <<_ACEOF
10375127668Sbms#line $LINENO "configure"
10376127668Sbms/* confdefs.h.  */
10377127668Sbms_ACEOF
10378127668Sbmscat confdefs.h >>conftest.$ac_ext
10379127668Sbmscat >>conftest.$ac_ext <<_ACEOF
10380127668Sbms/* end confdefs.h.  */
10381147899Ssam$ac_includes_default
10382147899Ssam#ifdef HAVE_SYS_BITYPES_H
10383147899Ssam#include <sys/bitypes.h>
10384147899Ssam#endif
1038556893Sfenner
10386127668Sbmsint
10387127668Sbmsmain ()
10388127668Sbms{
10389147899Ssamif ((u_int16_t *) 0)
10390147899Ssam  return 0;
10391147899Ssamif (sizeof (u_int16_t))
10392147899Ssam  return 0;
10393127668Sbms  ;
10394127668Sbms  return 0;
10395127668Sbms}
10396127668Sbms_ACEOF
10397127668Sbmsrm -f conftest.$ac_objext
10398127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399127668Sbms  (eval $ac_compile) 2>&5
10400127668Sbms  ac_status=$?
10401127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402127668Sbms  (exit $ac_status); } &&
10403127668Sbms         { ac_try='test -s conftest.$ac_objext'
10404127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405127668Sbms  (eval $ac_try) 2>&5
10406127668Sbms  ac_status=$?
10407127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408127668Sbms  (exit $ac_status); }; }; then
10409147899Ssam  ac_cv_type_u_int16_t=yes
1041056893Sfennerelse
10411127668Sbms  echo "$as_me: failed program was:" >&5
10412127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10413127668Sbms
10414147899Ssamac_cv_type_u_int16_t=no
1041556893Sfennerfi
10416127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
1041756893Sfennerfi
10418147899Ssamecho "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10419147899Ssamecho "${ECHO_T}$ac_cv_type_u_int16_t" >&6
10420147899Ssamif test $ac_cv_type_u_int16_t = yes; then
10421147899Ssam  :
10422147899Ssamelse
1042356893Sfenner
10424147899Ssamcat >>confdefs.h <<\_ACEOF
10425147899Ssam#define u_int16_t unsigned short
10426127668Sbms_ACEOF
1042756893Sfenner
10428147899Ssamfi
10429147899Ssam
10430147899Ssamecho "$as_me:$LINENO: checking for int32_t" >&5
10431147899Ssamecho $ECHO_N "checking for int32_t... $ECHO_C" >&6
10432147899Ssamif test "${ac_cv_type_int32_t+set}" = set; then
10433127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1043417680Spstelse
10435127668Sbms  cat >conftest.$ac_ext <<_ACEOF
10436127668Sbms#line $LINENO "configure"
10437127668Sbms/* confdefs.h.  */
10438127668Sbms_ACEOF
10439127668Sbmscat confdefs.h >>conftest.$ac_ext
10440127668Sbmscat >>conftest.$ac_ext <<_ACEOF
10441127668Sbms/* end confdefs.h.  */
10442147899Ssam$ac_includes_default
10443127668Sbmsint
10444127668Sbmsmain ()
10445127668Sbms{
10446147899Ssamif ((int32_t *) 0)
10447147899Ssam  return 0;
10448147899Ssamif (sizeof (int32_t))
10449147899Ssam  return 0;
10450127668Sbms  ;
10451127668Sbms  return 0;
10452127668Sbms}
10453127668Sbms_ACEOF
10454127668Sbmsrm -f conftest.$ac_objext
10455127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456127668Sbms  (eval $ac_compile) 2>&5
10457127668Sbms  ac_status=$?
10458127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459127668Sbms  (exit $ac_status); } &&
10460127668Sbms         { ac_try='test -s conftest.$ac_objext'
10461127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462127668Sbms  (eval $ac_try) 2>&5
10463127668Sbms  ac_status=$?
10464127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465127668Sbms  (exit $ac_status); }; }; then
10466147899Ssam  ac_cv_type_int32_t=yes
1046717680Spstelse
10468127668Sbms  echo "$as_me: failed program was:" >&5
10469127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10470127668Sbms
10471147899Ssamac_cv_type_int32_t=no
1047217680Spstfi
10473127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
1047417680Spstfi
10475147899Ssamecho "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10476147899Ssamecho "${ECHO_T}$ac_cv_type_int32_t" >&6
10477147899Ssamif test $ac_cv_type_int32_t = yes; then
10478147899Ssam  :
10479147899Ssamelse
1048017680Spst
10481147899Ssamcat >>confdefs.h <<\_ACEOF
1048239297Sfenner#define int32_t int
10483127668Sbms_ACEOF
1048417680Spst
10485147899Ssamfi
10486147899Ssam
10487147899Ssamecho "$as_me:$LINENO: checking for u_int32_t" >&5
10488147899Ssamecho $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
10489147899Ssamif test "${ac_cv_type_u_int32_t+set}" = set; then
10490127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1049117680Spstelse
10492127668Sbms  cat >conftest.$ac_ext <<_ACEOF
10493127668Sbms#line $LINENO "configure"
10494127668Sbms/* confdefs.h.  */
10495127668Sbms_ACEOF
10496127668Sbmscat confdefs.h >>conftest.$ac_ext
10497127668Sbmscat >>conftest.$ac_ext <<_ACEOF
10498127668Sbms/* end confdefs.h.  */
10499147899Ssam$ac_includes_default
10500147899Ssam#ifdef HAVE_SYS_BITYPES_H
10501147899Ssam#include <sys/bitypes.h>
10502147899Ssam#endif
1050317680Spst
10504127668Sbmsint
10505127668Sbmsmain ()
10506127668Sbms{
10507147899Ssamif ((u_int32_t *) 0)
10508147899Ssam  return 0;
10509147899Ssamif (sizeof (u_int32_t))
10510147899Ssam  return 0;
10511127668Sbms  ;
10512127668Sbms  return 0;
10513127668Sbms}
10514127668Sbms_ACEOF
10515127668Sbmsrm -f conftest.$ac_objext
10516127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517127668Sbms  (eval $ac_compile) 2>&5
10518127668Sbms  ac_status=$?
10519127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520127668Sbms  (exit $ac_status); } &&
10521127668Sbms         { ac_try='test -s conftest.$ac_objext'
10522127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523127668Sbms  (eval $ac_try) 2>&5
10524127668Sbms  ac_status=$?
10525127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526127668Sbms  (exit $ac_status); }; }; then
10527147899Ssam  ac_cv_type_u_int32_t=yes
1052817680Spstelse
10529127668Sbms  echo "$as_me: failed program was:" >&5
10530127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10531127668Sbms
10532147899Ssamac_cv_type_u_int32_t=no
1053317680Spstfi
10534127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
1053517680Spstfi
10536147899Ssamecho "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10537147899Ssamecho "${ECHO_T}$ac_cv_type_u_int32_t" >&6
10538147899Ssamif test $ac_cv_type_u_int32_t = yes; then
10539147899Ssam  :
10540147899Ssamelse
1054117680Spst
10542147899Ssamcat >>confdefs.h <<\_ACEOF
10543147899Ssam#define u_int32_t unsigned int
10544127668Sbms_ACEOF
1054517680Spst
10546147899Ssamfi
10547147899Ssam
10548147899Ssamecho "$as_me:$LINENO: checking for int64_t" >&5
10549147899Ssamecho $ECHO_N "checking for int64_t... $ECHO_C" >&6
10550147899Ssamif test "${ac_cv_type_int64_t+set}" = set; then
10551146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
10552146773Ssamelse
10553146773Ssam  cat >conftest.$ac_ext <<_ACEOF
10554146773Ssam#line $LINENO "configure"
10555146773Ssam/* confdefs.h.  */
10556146773Ssam_ACEOF
10557146773Ssamcat confdefs.h >>conftest.$ac_ext
10558146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10559146773Ssam/* end confdefs.h.  */
10560147899Ssam$ac_includes_default
10561146773Ssamint
10562146773Ssammain ()
10563146773Ssam{
10564147899Ssamif ((int64_t *) 0)
10565147899Ssam  return 0;
10566147899Ssamif (sizeof (int64_t))
10567147899Ssam  return 0;
10568146773Ssam  ;
10569146773Ssam  return 0;
10570146773Ssam}
10571146773Ssam_ACEOF
10572146773Ssamrm -f conftest.$ac_objext
10573146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574146773Ssam  (eval $ac_compile) 2>&5
10575146773Ssam  ac_status=$?
10576146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577146773Ssam  (exit $ac_status); } &&
10578146773Ssam         { ac_try='test -s conftest.$ac_objext'
10579146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580146773Ssam  (eval $ac_try) 2>&5
10581146773Ssam  ac_status=$?
10582146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583146773Ssam  (exit $ac_status); }; }; then
10584147899Ssam  ac_cv_type_int64_t=yes
10585146773Ssamelse
10586146773Ssam  echo "$as_me: failed program was:" >&5
10587146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10588146773Ssam
10589147899Ssamac_cv_type_int64_t=no
10590146773Ssamfi
10591146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
10592146773Ssamfi
10593147899Ssamecho "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10594147899Ssamecho "${ECHO_T}$ac_cv_type_int64_t" >&6
10595147899Ssamif test $ac_cv_type_int64_t = yes; then
10596147899Ssam  :
10597147899Ssamelse
10598146773Ssam
10599147899Ssamcat >>confdefs.h <<\_ACEOF
10600146773Ssam#define int64_t long long
10601146773Ssam_ACEOF
10602146773Ssam
10603147899Ssamfi
10604147899Ssam
10605147899Ssamecho "$as_me:$LINENO: checking for u_int64_t" >&5
10606147899Ssamecho $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
10607147899Ssamif test "${ac_cv_type_u_int64_t+set}" = set; then
10608146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
10609146773Ssamelse
10610146773Ssam  cat >conftest.$ac_ext <<_ACEOF
10611146773Ssam#line $LINENO "configure"
10612146773Ssam/* confdefs.h.  */
10613146773Ssam_ACEOF
10614146773Ssamcat confdefs.h >>conftest.$ac_ext
10615146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10616146773Ssam/* end confdefs.h.  */
10617147899Ssam$ac_includes_default
10618147899Ssam#ifdef HAVE_SYS_BITYPES_H
10619147899Ssam#include <sys/bitypes.h>
10620147899Ssam#endif
10621146773Ssam
10622146773Ssamint
10623146773Ssammain ()
10624146773Ssam{
10625147899Ssamif ((u_int64_t *) 0)
10626147899Ssam  return 0;
10627147899Ssamif (sizeof (u_int64_t))
10628147899Ssam  return 0;
10629146773Ssam  ;
10630146773Ssam  return 0;
10631146773Ssam}
10632146773Ssam_ACEOF
10633146773Ssamrm -f conftest.$ac_objext
10634146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10635146773Ssam  (eval $ac_compile) 2>&5
10636146773Ssam  ac_status=$?
10637146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638146773Ssam  (exit $ac_status); } &&
10639146773Ssam         { ac_try='test -s conftest.$ac_objext'
10640146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641146773Ssam  (eval $ac_try) 2>&5
10642146773Ssam  ac_status=$?
10643146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644146773Ssam  (exit $ac_status); }; }; then
10645147899Ssam  ac_cv_type_u_int64_t=yes
10646146773Ssamelse
10647146773Ssam  echo "$as_me: failed program was:" >&5
10648146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10649146773Ssam
10650147899Ssamac_cv_type_u_int64_t=no
10651146773Ssamfi
10652146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
10653146773Ssamfi
10654147899Ssamecho "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10655147899Ssamecho "${ECHO_T}$ac_cv_type_u_int64_t" >&6
10656147899Ssamif test $ac_cv_type_u_int64_t = yes; then
10657147899Ssam  :
10658147899Ssamelse
10659146773Ssam
10660147899Ssamcat >>confdefs.h <<\_ACEOF
10661146773Ssam#define u_int64_t unsigned long long
10662146773Ssam_ACEOF
10663146773Ssam
10664147899Ssamfi
10665146773Ssam
10666147899Ssam
10667146773Ssam#
10668146773Ssam# We can't just check for <inttypes.h> - some systems have one that
10669146773Ssam# doesn't define all the PRI[doxu]64 macros.
10670146773Ssam#
10671146773Ssam
10672146773Ssamfor ac_header in inttypes.h
10673146773Ssamdo
10674146773Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10675146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then
10676146773Ssam  echo "$as_me:$LINENO: checking for $ac_header" >&5
10677146773Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10678146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then
10679146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
10680146773Ssamfi
10681146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10682146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10683146773Ssamelse
10684146773Ssam  # Is the header compilable?
10685146773Ssamecho "$as_me:$LINENO: checking $ac_header usability" >&5
10686146773Ssamecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10687146773Ssamcat >conftest.$ac_ext <<_ACEOF
10688146773Ssam#line $LINENO "configure"
10689146773Ssam/* confdefs.h.  */
10690146773Ssam_ACEOF
10691146773Ssamcat confdefs.h >>conftest.$ac_ext
10692146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10693146773Ssam/* end confdefs.h.  */
10694146773Ssam$ac_includes_default
10695146773Ssam#include <$ac_header>
10696146773Ssam_ACEOF
10697146773Ssamrm -f conftest.$ac_objext
10698146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10699146773Ssam  (eval $ac_compile) 2>&5
10700146773Ssam  ac_status=$?
10701146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702146773Ssam  (exit $ac_status); } &&
10703146773Ssam         { ac_try='test -s conftest.$ac_objext'
10704146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705146773Ssam  (eval $ac_try) 2>&5
10706146773Ssam  ac_status=$?
10707146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708146773Ssam  (exit $ac_status); }; }; then
10709146773Ssam  ac_header_compiler=yes
10710146773Ssamelse
10711146773Ssam  echo "$as_me: failed program was:" >&5
10712146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10713146773Ssam
10714146773Ssamac_header_compiler=no
10715146773Ssamfi
10716146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
10717146773Ssamecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
10718146773Ssamecho "${ECHO_T}$ac_header_compiler" >&6
10719146773Ssam
10720146773Ssam# Is the header present?
10721146773Ssamecho "$as_me:$LINENO: checking $ac_header presence" >&5
10722146773Ssamecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10723146773Ssamcat >conftest.$ac_ext <<_ACEOF
10724146773Ssam#line $LINENO "configure"
10725146773Ssam/* confdefs.h.  */
10726146773Ssam_ACEOF
10727146773Ssamcat confdefs.h >>conftest.$ac_ext
10728146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10729146773Ssam/* end confdefs.h.  */
10730146773Ssam#include <$ac_header>
10731146773Ssam_ACEOF
10732146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10733146773Ssam  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10734146773Ssam  ac_status=$?
10735146773Ssam  grep -v '^ *+' conftest.er1 >conftest.err
10736146773Ssam  rm -f conftest.er1
10737146773Ssam  cat conftest.err >&5
10738146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739146773Ssam  (exit $ac_status); } >/dev/null; then
10740146773Ssam  if test -s conftest.err; then
10741146773Ssam    ac_cpp_err=$ac_c_preproc_warn_flag
10742146773Ssam  else
10743146773Ssam    ac_cpp_err=
10744146773Ssam  fi
10745146773Ssamelse
10746146773Ssam  ac_cpp_err=yes
10747146773Ssamfi
10748146773Ssamif test -z "$ac_cpp_err"; then
10749146773Ssam  ac_header_preproc=yes
10750146773Ssamelse
10751146773Ssam  echo "$as_me: failed program was:" >&5
10752146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10753146773Ssam
10754146773Ssam  ac_header_preproc=no
10755146773Ssamfi
10756146773Ssamrm -f conftest.err conftest.$ac_ext
10757146773Ssamecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
10758146773Ssamecho "${ECHO_T}$ac_header_preproc" >&6
10759146773Ssam
10760146773Ssam# So?  What about this header?
10761146773Ssamcase $ac_header_compiler:$ac_header_preproc in
10762146773Ssam  yes:no )
10763146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10764146773Ssamecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10765146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766146773Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10767146773Ssam    (
10768146773Ssam      cat <<\_ASBOX
10769146773Ssam## ------------------------------------ ##
10770146773Ssam## Report this to bug-autoconf@gnu.org. ##
10771146773Ssam## ------------------------------------ ##
10772146773Ssam_ASBOX
10773146773Ssam    ) |
10774146773Ssam      sed "s/^/$as_me: WARNING:     /" >&2
10775146773Ssam    ;;
10776146773Ssam  no:yes )
10777146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10778146773Ssamecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10779146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10780146773Ssamecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10781146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10782146773Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10783146773Ssam    (
10784146773Ssam      cat <<\_ASBOX
10785146773Ssam## ------------------------------------ ##
10786146773Ssam## Report this to bug-autoconf@gnu.org. ##
10787146773Ssam## ------------------------------------ ##
10788146773Ssam_ASBOX
10789146773Ssam    ) |
10790146773Ssam      sed "s/^/$as_me: WARNING:     /" >&2
10791146773Ssam    ;;
10792146773Ssamesac
10793146773Ssamecho "$as_me:$LINENO: checking for $ac_header" >&5
10794146773Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10795146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then
10796146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
10797146773Ssamelse
10798146773Ssam  eval "$as_ac_Header=$ac_header_preproc"
10799146773Ssamfi
10800146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10801146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10802146773Ssam
10803146773Ssamfi
10804146773Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then
10805146773Ssam  cat >>confdefs.h <<_ACEOF
10806146773Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10807146773Ssam_ACEOF
10808146773Ssam
10809146773Ssam    #
10810146773Ssam    # OK, we have inttypes.h, but does it define those macros?
10811146773Ssam    #
10812146773Ssam    echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10813146773Ssamecho $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10814146773Ssam    cat >conftest.$ac_ext <<_ACEOF
10815146773Ssam
10816146773Ssam	#line $LINENO "configure"
10817146773Ssam/* confdefs.h.  */
10818146773Ssam_ACEOF
10819146773Ssamcat confdefs.h >>conftest.$ac_ext
10820146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10821146773Ssam/* end confdefs.h.  */
10822146773Ssam
10823146773Ssam	    #include <inttypes.h>
10824146773Ssam	    #include <stdio.h>
10825146773Ssam	    #include <sys/types.h>
10826147899Ssam	    #ifdef HAVE_SYS_BITYPES_H
10827147899Ssam	    #include <sys/bitypes.h>
10828147899Ssam	    #endif
10829146773Ssam
10830146773Ssam	    main()
10831146773Ssam	    {
10832146773Ssam	      printf("%" PRId64 "\n", (u_int64_t)1);
10833146773Ssam	      printf("%" PRIo64 "\n", (u_int64_t)1);
10834146773Ssam	      printf("%" PRIx64 "\n", (u_int64_t)1);
10835146773Ssam	      printf("%" PRIu64 "\n", (u_int64_t)1);
10836146773Ssam	    }
10837146773Ssam
10838146773Ssam
10839146773Ssam_ACEOF
10840146773Ssamrm -f conftest.$ac_objext
10841146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842146773Ssam  (eval $ac_compile) 2>&5
10843146773Ssam  ac_status=$?
10844146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845146773Ssam  (exit $ac_status); } &&
10846146773Ssam         { ac_try='test -s conftest.$ac_objext'
10847146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848146773Ssam  (eval $ac_try) 2>&5
10849146773Ssam  ac_status=$?
10850146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851146773Ssam  (exit $ac_status); }; }; then
10852146773Ssam
10853146773Ssam	echo "$as_me:$LINENO: result: yes" >&5
10854146773Ssamecho "${ECHO_T}yes" >&6
10855146773Ssam	ac_lbl_inttypes_h_defines_formats=yes
10856146773Ssam
10857146773Ssamelse
10858146773Ssam  echo "$as_me: failed program was:" >&5
10859146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10860146773Ssam
10861146773Ssam
10862146773Ssam	echo "$as_me:$LINENO: result: no" >&5
10863146773Ssamecho "${ECHO_T}no" >&6
10864146773Ssam	ac_lbl_inttypes_h_defines_formats=no
10865146773Ssam
10866146773Ssamfi
10867146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext
10868146773Ssam
10869146773Ssamelse
10870146773Ssam
10871146773Ssam    #
10872146773Ssam    # We don't have inttypes.h, so it obviously can't define those
10873146773Ssam    # macros.
10874146773Ssam    #
10875146773Ssam    ac_lbl_inttypes_h_defines_formats=no
10876146773Ssam
10877146773Ssamfi
10878146773Ssam
10879146773Ssamdone
10880146773Ssam
10881147899Ssamif test "$ac_lbl_inttypes_h_defines_formats" = no; then
10882147899Ssam
10883147899Ssam    echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10884147899Ssamecho $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
10885147899Ssam    if test "$cross_compiling" = yes; then
10886147899Ssam  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10887147899SsamSee \`config.log' for more details." >&5
10888147899Ssamecho "$as_me: error: cannot run test program while cross compiling
10889147899SsamSee \`config.log' for more details." >&2;}
10890147899Ssam   { (exit 1); exit 1; }; }
10891147899Ssamelse
10892147899Ssam  cat >conftest.$ac_ext <<_ACEOF
10893147899Ssam
10894147899Ssam	#line $LINENO "configure"
10895147899Ssam/* confdefs.h.  */
10896146773Ssam_ACEOF
10897147899Ssamcat confdefs.h >>conftest.$ac_ext
10898147899Ssamcat >>conftest.$ac_ext <<_ACEOF
10899147899Ssam/* end confdefs.h.  */
10900146773Ssam
10901147899Ssam#	    ifdef HAVE_INTTYPES_H
10902147899Ssam	    #include <inttypes.h>
10903147899Ssam#	    endif
10904147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
10905147899Ssam            #include <sys/bitypes.h>
10906147899Ssam#	    endif
10907147899Ssam	    #include <stdio.h>
10908147899Ssam	    #include <sys/types.h>
10909147899Ssam
10910147899Ssam	    main()
10911147899Ssam	    {
10912147899Ssam	      u_int64_t t = 1;
10913147899Ssam	      char strbuf[16+1];
10914147899Ssam	      sprintf(strbuf, "%016lx", t << 32);
10915147899Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
10916147899Ssam		exit(0);
10917147899Ssam	      else
10918147899Ssam		exit(1);
10919147899Ssam	    }
10920147899Ssam
10921147899Ssam
10922147899Ssam_ACEOF
10923147899Ssamrm -f conftest$ac_exeext
10924147899Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925147899Ssam  (eval $ac_link) 2>&5
10926147899Ssam  ac_status=$?
10927147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928147899Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10929147899Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930147899Ssam  (eval $ac_try) 2>&5
10931147899Ssam  ac_status=$?
10932147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933147899Ssam  (exit $ac_status); }; }; then
10934147899Ssam
10935147899Ssam	cat >>confdefs.h <<\_ACEOF
10936147899Ssam#define PRId64 "ld"
10937147899Ssam_ACEOF
10938147899Ssam
10939147899Ssam	cat >>confdefs.h <<\_ACEOF
10940147899Ssam#define PRIo64 "lo"
10941147899Ssam_ACEOF
10942147899Ssam
10943147899Ssam	cat >>confdefs.h <<\_ACEOF
10944147899Ssam#define PRIx64 "lx"
10945147899Ssam_ACEOF
10946147899Ssam
10947147899Ssam	cat >>confdefs.h <<\_ACEOF
10948147899Ssam#define PRIu64 "lu"
10949147899Ssam_ACEOF
10950147899Ssam
10951147899Ssam	echo "$as_me:$LINENO: result: yes" >&5
10952147899Ssamecho "${ECHO_T}yes" >&6
10953147899Ssam
10954146773Ssamelse
10955147899Ssam  echo "$as_me: program exited with status $ac_status" >&5
10956147899Ssamecho "$as_me: failed program was:" >&5
10957147899Ssamsed 's/^/| /' conftest.$ac_ext >&5
10958146773Ssam
10959147899Ssam( exit $ac_status )
10960147899Ssam
10961147899Ssam	echo "$as_me:$LINENO: result: no" >&5
10962147899Ssamecho "${ECHO_T}no" >&6
10963147899Ssam
10964147899Ssam
10965146773Ssam    echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10966146773Ssamecho $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10967146773Ssam    if test "$cross_compiling" = yes; then
10968146773Ssam  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10969146773SsamSee \`config.log' for more details." >&5
10970146773Ssamecho "$as_me: error: cannot run test program while cross compiling
10971146773SsamSee \`config.log' for more details." >&2;}
10972146773Ssam   { (exit 1); exit 1; }; }
10973146773Ssamelse
10974146773Ssam  cat >conftest.$ac_ext <<_ACEOF
10975146773Ssam
10976146773Ssam	#line $LINENO "configure"
10977146773Ssam/* confdefs.h.  */
10978146773Ssam_ACEOF
10979146773Ssamcat confdefs.h >>conftest.$ac_ext
10980146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10981146773Ssam/* end confdefs.h.  */
10982146773Ssam
10983146773Ssam#	    ifdef HAVE_INTTYPES_H
10984146773Ssam	    #include <inttypes.h>
10985146773Ssam#	    endif
10986147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
10987147899Ssam            #include <sys/bitypes.h>
10988147899Ssam#	    endif
10989146773Ssam	    #include <stdio.h>
10990146773Ssam	    #include <sys/types.h>
10991146773Ssam
10992146773Ssam	    main()
10993146773Ssam	    {
10994146773Ssam	      u_int64_t t = 1;
10995146773Ssam	      char strbuf[16+1];
10996146773Ssam	      sprintf(strbuf, "%016llx", t << 32);
10997146773Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
10998146773Ssam		exit(0);
10999146773Ssam	      else
11000146773Ssam		exit(1);
11001146773Ssam	    }
11002146773Ssam
11003146773Ssam
11004146773Ssam_ACEOF
11005146773Ssamrm -f conftest$ac_exeext
11006146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007146773Ssam  (eval $ac_link) 2>&5
11008146773Ssam  ac_status=$?
11009146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010146773Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11011146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012146773Ssam  (eval $ac_try) 2>&5
11013146773Ssam  ac_status=$?
11014146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015146773Ssam  (exit $ac_status); }; }; then
11016146773Ssam
11017146773Ssam	cat >>confdefs.h <<\_ACEOF
11018146773Ssam#define PRId64 "lld"
11019146773Ssam_ACEOF
11020146773Ssam
11021146773Ssam	cat >>confdefs.h <<\_ACEOF
11022146773Ssam#define PRIo64 "llo"
11023146773Ssam_ACEOF
11024146773Ssam
11025146773Ssam	cat >>confdefs.h <<\_ACEOF
11026146773Ssam#define PRIx64 "llx"
11027146773Ssam_ACEOF
11028146773Ssam
11029146773Ssam	cat >>confdefs.h <<\_ACEOF
11030146773Ssam#define PRIu64 "llu"
11031146773Ssam_ACEOF
11032146773Ssam
11033146773Ssam	echo "$as_me:$LINENO: result: yes" >&5
11034146773Ssamecho "${ECHO_T}yes" >&6
11035146773Ssam
11036146773Ssamelse
11037146773Ssam  echo "$as_me: program exited with status $ac_status" >&5
11038146773Ssamecho "$as_me: failed program was:" >&5
11039146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
11040146773Ssam
11041146773Ssam( exit $ac_status )
11042146773Ssam
11043146773Ssam	echo "$as_me:$LINENO: result: no" >&5
11044146773Ssamecho "${ECHO_T}no" >&6
11045146773Ssam
11046146773Ssam
11047146773Ssam    echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
11048146773Ssamecho $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
11049146773Ssam    if test "$cross_compiling" = yes; then
11050146773Ssam  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11051146773SsamSee \`config.log' for more details." >&5
11052146773Ssamecho "$as_me: error: cannot run test program while cross compiling
11053146773SsamSee \`config.log' for more details." >&2;}
11054146773Ssam   { (exit 1); exit 1; }; }
11055146773Ssamelse
11056146773Ssam  cat >conftest.$ac_ext <<_ACEOF
11057146773Ssam
11058146773Ssam	#line $LINENO "configure"
11059146773Ssam/* confdefs.h.  */
11060146773Ssam_ACEOF
11061146773Ssamcat confdefs.h >>conftest.$ac_ext
11062146773Ssamcat >>conftest.$ac_ext <<_ACEOF
11063146773Ssam/* end confdefs.h.  */
11064146773Ssam
11065146773Ssam#	    ifdef HAVE_INTTYPES_H
11066146773Ssam	    #include <inttypes.h>
11067146773Ssam#	    endif
11068147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
11069147899Ssam            #include <sys/bitypes.h>
11070147899Ssam#	    endif
11071146773Ssam	    #include <stdio.h>
11072146773Ssam	    #include <sys/types.h>
11073146773Ssam
11074146773Ssam	    main()
11075146773Ssam	    {
11076146773Ssam	      u_int64_t t = 1;
11077146773Ssam	      char strbuf[16+1];
11078146773Ssam	      sprintf(strbuf, "%016Lx", t << 32);
11079146773Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
11080146773Ssam		exit(0);
11081146773Ssam	      else
11082146773Ssam		exit(1);
11083146773Ssam	    }
11084146773Ssam
11085146773Ssam
11086146773Ssam_ACEOF
11087146773Ssamrm -f conftest$ac_exeext
11088146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11089146773Ssam  (eval $ac_link) 2>&5
11090146773Ssam  ac_status=$?
11091146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092146773Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11093146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094146773Ssam  (eval $ac_try) 2>&5
11095146773Ssam  ac_status=$?
11096146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097146773Ssam  (exit $ac_status); }; }; then
11098146773Ssam
11099146773Ssam	cat >>confdefs.h <<\_ACEOF
11100146773Ssam#define PRId64 "Ld"
11101146773Ssam_ACEOF
11102146773Ssam
11103146773Ssam	cat >>confdefs.h <<\_ACEOF
11104146773Ssam#define PRIo64 "Lo"
11105146773Ssam_ACEOF
11106146773Ssam
11107146773Ssam	cat >>confdefs.h <<\_ACEOF
11108146773Ssam#define PRIx64 "Lx"
11109146773Ssam_ACEOF
11110146773Ssam
11111146773Ssam	cat >>confdefs.h <<\_ACEOF
11112146773Ssam#define PRIu64 "Lu"
11113146773Ssam_ACEOF
11114146773Ssam
11115146773Ssam	echo "$as_me:$LINENO: result: yes" >&5
11116146773Ssamecho "${ECHO_T}yes" >&6
11117146773Ssam
11118146773Ssamelse
11119146773Ssam  echo "$as_me: program exited with status $ac_status" >&5
11120146773Ssamecho "$as_me: failed program was:" >&5
11121146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
11122146773Ssam
11123146773Ssam( exit $ac_status )
11124146773Ssam
11125146773Ssam	echo "$as_me:$LINENO: result: no" >&5
11126146773Ssamecho "${ECHO_T}no" >&6
11127146773Ssam
11128146773Ssam
11129146773Ssam    echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11130146773Ssamecho $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
11131146773Ssam    if test "$cross_compiling" = yes; then
11132146773Ssam  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11133146773SsamSee \`config.log' for more details." >&5
11134146773Ssamecho "$as_me: error: cannot run test program while cross compiling
11135146773SsamSee \`config.log' for more details." >&2;}
11136146773Ssam   { (exit 1); exit 1; }; }
11137146773Ssamelse
11138146773Ssam  cat >conftest.$ac_ext <<_ACEOF
11139146773Ssam
11140146773Ssam	#line $LINENO "configure"
11141146773Ssam/* confdefs.h.  */
11142146773Ssam_ACEOF
11143146773Ssamcat confdefs.h >>conftest.$ac_ext
11144146773Ssamcat >>conftest.$ac_ext <<_ACEOF
11145146773Ssam/* end confdefs.h.  */
11146146773Ssam
11147146773Ssam#	    ifdef HAVE_INTTYPES_H
11148146773Ssam	    #include <inttypes.h>
11149146773Ssam#	    endif
11150147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
11151147899Ssam            #include <sys/bitypes.h>
11152147899Ssam#	    endif
11153146773Ssam	    #include <stdio.h>
11154146773Ssam	    #include <sys/types.h>
11155146773Ssam
11156146773Ssam	    main()
11157146773Ssam	    {
11158146773Ssam	      u_int64_t t = 1;
11159146773Ssam	      char strbuf[16+1];
11160146773Ssam	      sprintf(strbuf, "%016qx", t << 32);
11161146773Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
11162146773Ssam		exit(0);
11163146773Ssam	      else
11164146773Ssam		exit(1);
11165146773Ssam	    }
11166146773Ssam
11167146773Ssam
11168146773Ssam_ACEOF
11169146773Ssamrm -f conftest$ac_exeext
11170146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171146773Ssam  (eval $ac_link) 2>&5
11172146773Ssam  ac_status=$?
11173146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174146773Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11175146773Ssam  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176146773Ssam  (eval $ac_try) 2>&5
11177146773Ssam  ac_status=$?
11178146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179146773Ssam  (exit $ac_status); }; }; then
11180146773Ssam
11181146773Ssam	cat >>confdefs.h <<\_ACEOF
11182146773Ssam#define PRId64 "qd"
11183146773Ssam_ACEOF
11184146773Ssam
11185146773Ssam	cat >>confdefs.h <<\_ACEOF
11186146773Ssam#define PRIo64 "qo"
11187146773Ssam_ACEOF
11188146773Ssam
11189146773Ssam	cat >>confdefs.h <<\_ACEOF
11190146773Ssam#define PRIx64 "qx"
11191146773Ssam_ACEOF
11192146773Ssam
11193146773Ssam	cat >>confdefs.h <<\_ACEOF
11194146773Ssam#define PRIu64 "qu"
11195146773Ssam_ACEOF
11196146773Ssam
11197146773Ssam	echo "$as_me:$LINENO: result: yes" >&5
11198146773Ssamecho "${ECHO_T}yes" >&6
11199146773Ssam
11200146773Ssamelse
11201146773Ssam  echo "$as_me: program exited with status $ac_status" >&5
11202146773Ssamecho "$as_me: failed program was:" >&5
11203146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
11204146773Ssam
11205146773Ssam( exit $ac_status )
11206146773Ssam
11207146773Ssam	echo "$as_me:$LINENO: result: no" >&5
11208146773Ssamecho "${ECHO_T}no" >&6
11209146773Ssam
11210147899Ssam	          { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11211146773Ssamecho "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11212146773Ssam   { (exit 1); exit 1; }; }
11213146773Ssam
11214146773Ssam
11215146773Ssamfi
11216146773Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11217146773Ssamfi
11218146773Ssam
11219146773Ssam
11220146773Ssam
11221146773Ssamfi
11222146773Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11223146773Ssamfi
11224146773Ssam
11225146773Ssam
11226146773Ssam
11227146773Ssamfi
11228146773Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11229146773Ssamfi
11230146773Ssam
11231147899Ssam
11232147899Ssam
11233146773Ssamfi
11234147899Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11235147899Ssamfi
11236146773Ssam
11237147899Ssamfi
11238147899Ssam
1123926180Sfennerrm -f os-proto.h
1124026180Sfenner    if test "${LBL_CFLAGS+set}" = set; then
1124126180Sfenner	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
1124226180Sfenner    fi
1124339297Sfenner    if test -f .devel ; then
1124439297Sfenner	    if test "$GCC" = yes ; then
1124539297Sfenner		    if test "${LBL_CFLAGS+set}" != set; then
1124639297Sfenner			    if test "$ac_cv_prog_cc_g" = yes ; then
1124739297Sfenner				    V_CCOPT="-g $V_CCOPT"
1124839297Sfenner			    fi
1124939297Sfenner			    V_CCOPT="$V_CCOPT -Wall"
1125039297Sfenner			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11251127668Sbms				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
1125239297Sfenner			    fi
1125326180Sfenner		    fi
1125439297Sfenner	    else
1125598524Sfenner		    case "$host_os" in
1125639297Sfenner
1125739297Sfenner		    irix6*)
1125839297Sfenner			    V_CCOPT="$V_CCOPT -n32"
1125939297Sfenner			    ;;
1126039297Sfenner
1126139297Sfenner		    *)
1126239297Sfenner			    ;;
1126339297Sfenner		    esac
1126426180Sfenner	    fi
1126598524Sfenner	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
1126626180Sfenner	    name="lbl/os-$os.h"
1126726180Sfenner	    if test -f $name ; then
1126826180Sfenner		    ln -s $name os-proto.h
11269127668Sbms		    cat >>confdefs.h <<\_ACEOF
1127026180Sfenner#define HAVE_OS_PROTO_H 1
11271127668Sbms_ACEOF
1127226180Sfenner
1127326180Sfenner	    else
11274127668Sbms		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11275127668Sbmsecho "$as_me: WARNING: can't find $name" >&2;}
1127626180Sfenner	    fi
1127726180Sfenner    fi
1127826180Sfenner
11279127668Sbmsecho "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11280127668Sbmsecho $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
11281127668Sbms    if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11282127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1128317680Spstelse
11284127668Sbms  cat >conftest.$ac_ext <<_ACEOF
11285127668Sbms#line $LINENO "configure"
11286127668Sbms/* confdefs.h.  */
11287127668Sbms_ACEOF
11288127668Sbmscat confdefs.h >>conftest.$ac_ext
11289127668Sbmscat >>conftest.$ac_ext <<_ACEOF
11290127668Sbms/* end confdefs.h.  */
1129117680Spst
1129217680Spst#	include <sys/types.h>
1129317680Spst#	include <sys/socket.h>
11294127668Sbmsint
11295127668Sbmsmain ()
11296127668Sbms{
1129717680Spstu_int i = sizeof(((struct sockaddr *)0)->sa_len)
11298127668Sbms  ;
11299127668Sbms  return 0;
11300127668Sbms}
11301127668Sbms_ACEOF
11302127668Sbmsrm -f conftest.$ac_objext
11303127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304127668Sbms  (eval $ac_compile) 2>&5
11305127668Sbms  ac_status=$?
11306127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307127668Sbms  (exit $ac_status); } &&
11308127668Sbms         { ac_try='test -s conftest.$ac_objext'
11309127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310127668Sbms  (eval $ac_try) 2>&5
11311127668Sbms  ac_status=$?
11312127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313127668Sbms  (exit $ac_status); }; }; then
1131439297Sfenner  ac_cv_lbl_sockaddr_has_sa_len=yes
1131517680Spstelse
11316127668Sbms  echo "$as_me: failed program was:" >&5
11317127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
11318127668Sbms
11319127668Sbmsac_cv_lbl_sockaddr_has_sa_len=no
1132017680Spstfi
11321127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
1132217680Spstfi
1132317680Spst
11324127668Sbms    echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11325127668Sbmsecho "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
1132639297Sfenner    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11327127668Sbms	    cat >>confdefs.h <<\_ACEOF
1132817680Spst#define HAVE_SOCKADDR_SA_LEN 1
11329127668Sbms_ACEOF
1133017680Spst
1133117680Spst    fi
1133217680Spst
11333127668Sbmsecho "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11334127668Sbmsecho $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
11335127668Sbms    if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11336127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1133717680Spstelse
1133898524Sfenner  case "$host_cpu" in
1133917680Spst
11340127668Sbms	#
11341127668Sbms	# These are CPU types where:
11342127668Sbms	#
11343127668Sbms	#	the CPU faults on an unaligned access, but at least some
11344127668Sbms	#	OSes that support that CPU catch the fault and simulate
11345127668Sbms	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11346127668Sbms	#	the simulation is slow, so we don't want to use it;
11347127668Sbms	#
11348127668Sbms	#	the CPU, I infer (from the old
11349127668Sbms	#
1135075115Sfenner	# XXX: should also check that they don't do weird things (like on arm)
11351127668Sbms	#
11352127668Sbms	#	comment) doesn't fault on unaligned accesses, but doesn't
11353127668Sbms	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
11354127668Sbms	#
11355127668Sbms	#	for whatever reason, the test program doesn't work
11356127668Sbms	#	(this has been claimed to be the case for several of those
11357127668Sbms	#	CPUs - I don't know what the problem is; the problem
11358127668Sbms	#	was reported as "the test program dumps core" for SuperH,
11359127668Sbms	#	but that's what the test program is *supposed* to do -
11360127668Sbms	#	it dumps core before it writes anything, so the test
11361127668Sbms	#	for an empty output file should find an empty output
11362127668Sbms	#	file and conclude that unaligned accesses don't work).
11363127668Sbms	#
11364127668Sbms	# This run-time test won't work if you're cross-compiling, so
11365127668Sbms	# in order to support cross-compiling for a particular CPU,
11366127668Sbms	# we have to wire in the list of CPU types anyway, as far as
11367127668Sbms	# I know, so perhaps we should just have a set of CPUs on
11368127668Sbms	# which we know it doesn't work, a set of CPUs on which we
11369127668Sbms	# know it does work, and have the script just fail on other
11370127668Sbms	# cpu types and update it when such a failure occurs.
11371127668Sbms	#
11372127668Sbms	alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
1137339297Sfenner		ac_cv_lbl_unaligned_fail=yes
1137417680Spst		;;
1137517680Spst
1137617680Spst	*)
1137717680Spst		cat >conftest.c <<EOF
1137817680Spst#		include <sys/types.h>
1137917680Spst#		include <sys/wait.h>
1138017680Spst#		include <stdio.h>
1138117680Spst		unsigned char a[5] = { 1, 2, 3, 4, 5 };
1138217680Spst		main() {
1138317680Spst		unsigned int i;
1138417680Spst		pid_t pid;
1138517680Spst		int status;
1138617680Spst		/* avoid "core dumped" message */
1138717680Spst		pid = fork();
1138817680Spst		if (pid <  0)
1138917680Spst			exit(2);
1139017680Spst		if (pid > 0) {
1139117680Spst			/* parent */
1139217680Spst			pid = waitpid(pid, &status, 0);
1139317680Spst			if (pid < 0)
1139417680Spst				exit(3);
1139517680Spst			exit(!WIFEXITED(status));
1139617680Spst		}
1139717680Spst		/* child */
1139826180Sfenner		i = *(unsigned int *)&a[1];
1139917680Spst		printf("%d\n", i);
1140017680Spst		exit(0);
1140117680Spst		}
1140217680SpstEOF
1140317680Spst		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
1140417680Spst		    conftest.c $LIBS >/dev/null 2>&1
1140517680Spst		if test ! -x conftest ; then
1140639297Sfenner						ac_cv_lbl_unaligned_fail=yes
1140717680Spst		else
1140817680Spst			./conftest >conftest.out
1140917680Spst			if test ! -s conftest.out ; then
1141039297Sfenner				ac_cv_lbl_unaligned_fail=yes
1141117680Spst			else
1141239297Sfenner				ac_cv_lbl_unaligned_fail=no
1141317680Spst			fi
1141417680Spst		fi
1141517680Spst		rm -f conftest* core core.conftest
1141617680Spst		;;
1141717680Spst	esac
1141817680Spstfi
1141917680Spst
11420127668Sbms    echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11421127668Sbmsecho "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
1142239297Sfenner    if test $ac_cv_lbl_unaligned_fail = yes ; then
11423127668Sbms	    cat >>confdefs.h <<\_ACEOF
1142417680Spst#define LBL_ALIGN 1
11425127668Sbms_ACEOF
1142617680Spst
1142717680Spst    fi
1142817680Spst
1142956893Sfenner
11430127668Sbms	echo "$as_me:$LINENO: checking for h_errno" >&5
11431127668Sbmsecho $ECHO_N "checking for h_errno... $ECHO_C" >&6
11432127668Sbms	if test "${ac_cv_var_h_errno+set}" = set; then
11433127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1143439297Sfennerelse
11435127668Sbms  cat >conftest.$ac_ext <<_ACEOF
11436127668Sbms#line $LINENO "configure"
11437127668Sbms/* confdefs.h.  */
11438127668Sbms_ACEOF
11439127668Sbmscat confdefs.h >>conftest.$ac_ext
11440127668Sbmscat >>conftest.$ac_ext <<_ACEOF
11441127668Sbms/* end confdefs.h.  */
1144256893Sfenner
1144356893Sfenner#		include <sys/types.h>
1144456893Sfenner#		include <netdb.h>
11445127668Sbmsint
11446127668Sbmsmain ()
11447127668Sbms{
1144856893Sfennerint foo = h_errno;
11449127668Sbms  ;
11450127668Sbms  return 0;
11451127668Sbms}
11452127668Sbms_ACEOF
11453127668Sbmsrm -f conftest.$ac_objext
11454127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455127668Sbms  (eval $ac_compile) 2>&5
11456127668Sbms  ac_status=$?
11457127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458127668Sbms  (exit $ac_status); } &&
11459127668Sbms         { ac_try='test -s conftest.$ac_objext'
11460127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461127668Sbms  (eval $ac_try) 2>&5
11462127668Sbms  ac_status=$?
11463127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464127668Sbms  (exit $ac_status); }; }; then
1146556893Sfenner  ac_cv_var_h_errno=yes
1146656893Sfennerelse
11467127668Sbms  echo "$as_me: failed program was:" >&5
11468127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
11469127668Sbms
11470127668Sbmsac_cv_var_h_errno=no
1147139297Sfennerfi
11472127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
1147356893Sfennerfi
1147439297Sfenner
11475127668Sbms	echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11476127668Sbmsecho "${ECHO_T}$ac_cv_var_h_errno" >&6
1147756893Sfenner	if test "$ac_cv_var_h_errno" = "yes"; then
11478127668Sbms		cat >>confdefs.h <<\_ACEOF
1147956893Sfenner#define HAVE_H_ERRNO 1
11480127668Sbms_ACEOF
1148156893Sfenner
1148256893Sfenner	fi
1148356893Sfenner
1148456893Sfenner
11485127668Sbms
1148675115Sfenner# Check whether --with-crypto or --without-crypto was given.
1148775115Sfennerif test "${with_crypto+set}" = set; then
1148875115Sfenner  withval="$with_crypto"
11489127668Sbms
1149075115Sfennerelse
11491127668Sbms
11492127668Sbmsecho "$as_me:$LINENO: checking for SSLeay" >&5
11493127668Sbmsecho $ECHO_N "checking for SSLeay... $ECHO_C" >&6
1149456893Sfennerac_cv_ssleay_path=no
1149556893Sfennerincdir=no
11496146773Ssam
11497146773SsamXprefix=`eval echo $prefix`
11498146773Ssam
11499146773Ssamfor dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
11500127668Sbms	#
11501127668Sbms	# XXX - is there a better way to check if a given library is
11502127668Sbms	# in a given directory than checking each of the possible
11503127668Sbms	# shared library suffixes?
11504127668Sbms	#
11505127668Sbms	# Are there any other suffixes we need to look for?  Do we have to
11506127668Sbms	# worry about ".so.{version}"?
11507127668Sbms	#
11508127668Sbms	# Or should we just look for "libcrypto.*"?
11509127668Sbms	#
11510127668Sbms	if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
11511127668Sbms			          -f $dir/lib/libcrypto.so -o \
11512127668Sbms			          -f $dir/lib/libcrypto.sl -o \
11513127668Sbms				  -f $dir/lib/libcrypto.dylib \); then
1151456893Sfenner		ac_cv_ssleay_path=$dir
1151556893Sfenner	fi
1151698524Sfenner	if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
1151756893Sfenner		incdir="-I$dir/include"
1151856893Sfenner	fi
1151956893Sfenner	if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
1152056893Sfenner		break;
1152156893Sfenner	else
1152256893Sfenner		ac_cv_ssleay_path=no
1152356893Sfenner		incdir=no
1152456893Sfenner	fi
1152556893Sfennerdone
11526127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11527127668Sbmsecho "${ECHO_T}$ac_cv_ssleay_path" >&6
1152856893Sfennerif test "$ac_cv_ssleay_path" != no; then
1152956893Sfenner	V_INCLS="$V_INCLS $incdir"
1153075115Sfenner	LDFLAGS="-L$dir/lib $LDFLAGS"
1153156893Sfenner	if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
1153256893Sfenner		LIBS="$LIBS -lRSAglue"
1153356893Sfenner	fi
1153456893Sfenner	if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
1153556893Sfenner		LIBS="$LIBS -lrsaref"
1153656893Sfenner	fi
11537127668Sbms
11538146773Ssamecho "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11539146773Ssamecho $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11540146773Ssamif test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11541127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1154256893Sfennerelse
11543127668Sbms  ac_check_lib_save_LIBS=$LIBS
1154456893SfennerLIBS="-lcrypto  $LIBS"
11545127668Sbmscat >conftest.$ac_ext <<_ACEOF
11546127668Sbms#line $LINENO "configure"
11547127668Sbms/* confdefs.h.  */
11548127668Sbms_ACEOF
11549127668Sbmscat confdefs.h >>conftest.$ac_ext
11550127668Sbmscat >>conftest.$ac_ext <<_ACEOF
11551127668Sbms/* end confdefs.h.  */
11552127668Sbms
1155356893Sfenner/* Override any gcc2 internal prototype to avoid an error.  */
11554127668Sbms#ifdef __cplusplus
11555127668Sbmsextern "C"
11556127668Sbms#endif
1155756893Sfenner/* We use char because int might match the return type of a gcc2
11558127668Sbms   builtin and then its argument prototype would still apply.  */
11559146773Ssamchar DES_cbc_encrypt ();
11560127668Sbmsint
11561127668Sbmsmain ()
11562127668Sbms{
11563146773SsamDES_cbc_encrypt ();
11564127668Sbms  ;
11565127668Sbms  return 0;
11566127668Sbms}
11567127668Sbms_ACEOF
11568127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
11569127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570127668Sbms  (eval $ac_link) 2>&5
11571127668Sbms  ac_status=$?
11572127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573127668Sbms  (exit $ac_status); } &&
11574127668Sbms         { ac_try='test -s conftest$ac_exeext'
11575127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576127668Sbms  (eval $ac_try) 2>&5
11577127668Sbms  ac_status=$?
11578127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579127668Sbms  (exit $ac_status); }; }; then
11580146773Ssam  ac_cv_lib_crypto_DES_cbc_encrypt=yes
1158156893Sfennerelse
11582127668Sbms  echo "$as_me: failed program was:" >&5
11583127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
1158456893Sfenner
11585146773Ssamac_cv_lib_crypto_DES_cbc_encrypt=no
1158656893Sfennerfi
11587127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11588127668SbmsLIBS=$ac_check_lib_save_LIBS
11589127668Sbmsfi
11590146773Ssamecho "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11591146773Ssamecho "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11592146773Ssamif test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11593127668Sbms  cat >>confdefs.h <<_ACEOF
11594127668Sbms#define HAVE_LIBCRYPTO 1
11595127668Sbms_ACEOF
1159656893Sfenner
1159756893Sfenner  LIBS="-lcrypto $LIBS"
1159856893Sfenner
1159956893Sfennerfi
1160056893Sfenner
1160156893Sfenner
1160256893Sfenner	CPPFLAGS="$CPPFLAGS $V_INCLS"
11603127668Sbms
11604127668Sbmsfor ac_header in openssl/evp.h
1160556893Sfennerdo
11606127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11607127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
11608127668Sbms  echo "$as_me:$LINENO: checking for $ac_header" >&5
11609127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11610127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
11611127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
11612127668Sbmsfi
11613127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11614127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1161556893Sfennerelse
11616127668Sbms  # Is the header compilable?
11617127668Sbmsecho "$as_me:$LINENO: checking $ac_header usability" >&5
11618127668Sbmsecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11619127668Sbmscat >conftest.$ac_ext <<_ACEOF
11620127668Sbms#line $LINENO "configure"
11621127668Sbms/* confdefs.h.  */
11622127668Sbms_ACEOF
11623127668Sbmscat confdefs.h >>conftest.$ac_ext
11624127668Sbmscat >>conftest.$ac_ext <<_ACEOF
11625127668Sbms/* end confdefs.h.  */
11626127668Sbms$ac_includes_default
11627127668Sbms#include <$ac_header>
11628127668Sbms_ACEOF
11629127668Sbmsrm -f conftest.$ac_objext
11630127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631127668Sbms  (eval $ac_compile) 2>&5
11632127668Sbms  ac_status=$?
11633127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634127668Sbms  (exit $ac_status); } &&
11635127668Sbms         { ac_try='test -s conftest.$ac_objext'
11636127668Sbms  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637127668Sbms  (eval $ac_try) 2>&5
11638127668Sbms  ac_status=$?
11639127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640127668Sbms  (exit $ac_status); }; }; then
11641127668Sbms  ac_header_compiler=yes
1164256893Sfennerelse
11643127668Sbms  echo "$as_me: failed program was:" >&5
11644127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
11645127668Sbms
11646127668Sbmsac_header_compiler=no
1164756893Sfennerfi
11648127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext
11649127668Sbmsecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
11650127668Sbmsecho "${ECHO_T}$ac_header_compiler" >&6
11651127668Sbms
11652127668Sbms# Is the header present?
11653127668Sbmsecho "$as_me:$LINENO: checking $ac_header presence" >&5
11654127668Sbmsecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11655127668Sbmscat >conftest.$ac_ext <<_ACEOF
11656127668Sbms#line $LINENO "configure"
11657127668Sbms/* confdefs.h.  */
11658127668Sbms_ACEOF
11659127668Sbmscat confdefs.h >>conftest.$ac_ext
11660127668Sbmscat >>conftest.$ac_ext <<_ACEOF
11661127668Sbms/* end confdefs.h.  */
11662127668Sbms#include <$ac_header>
11663127668Sbms_ACEOF
11664127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11665127668Sbms  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11666127668Sbms  ac_status=$?
11667127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
11668127668Sbms  rm -f conftest.er1
11669127668Sbms  cat conftest.err >&5
11670127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671127668Sbms  (exit $ac_status); } >/dev/null; then
11672127668Sbms  if test -s conftest.err; then
11673127668Sbms    ac_cpp_err=$ac_c_preproc_warn_flag
11674127668Sbms  else
11675127668Sbms    ac_cpp_err=
11676127668Sbms  fi
11677127668Sbmselse
11678127668Sbms  ac_cpp_err=yes
1167956893Sfennerfi
11680127668Sbmsif test -z "$ac_cpp_err"; then
11681127668Sbms  ac_header_preproc=yes
1168256893Sfennerelse
11683127668Sbms  echo "$as_me: failed program was:" >&5
11684127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
11685127668Sbms
11686127668Sbms  ac_header_preproc=no
1168756893Sfennerfi
11688127668Sbmsrm -f conftest.err conftest.$ac_ext
11689127668Sbmsecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
11690127668Sbmsecho "${ECHO_T}$ac_header_preproc" >&6
1169156893Sfenner
11692127668Sbms# So?  What about this header?
11693127668Sbmscase $ac_header_compiler:$ac_header_preproc in
11694127668Sbms  yes:no )
11695127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11696127668Sbmsecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11697127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11698127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11699127668Sbms    (
11700127668Sbms      cat <<\_ASBOX
11701127668Sbms## ------------------------------------ ##
11702127668Sbms## Report this to bug-autoconf@gnu.org. ##
11703127668Sbms## ------------------------------------ ##
11704127668Sbms_ASBOX
11705127668Sbms    ) |
11706127668Sbms      sed "s/^/$as_me: WARNING:     /" >&2
11707127668Sbms    ;;
11708127668Sbms  no:yes )
11709127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11710127668Sbmsecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11711127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11712127668Sbmsecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11713127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11714127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11715127668Sbms    (
11716127668Sbms      cat <<\_ASBOX
11717127668Sbms## ------------------------------------ ##
11718127668Sbms## Report this to bug-autoconf@gnu.org. ##
11719127668Sbms## ------------------------------------ ##
11720127668Sbms_ASBOX
11721127668Sbms    ) |
11722127668Sbms      sed "s/^/$as_me: WARNING:     /" >&2
11723127668Sbms    ;;
11724127668Sbmsesac
11725127668Sbmsecho "$as_me:$LINENO: checking for $ac_header" >&5
11726127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11727127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then
11728127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1172956893Sfennerelse
11730127668Sbms  eval "$as_ac_Header=$ac_header_preproc"
11731127668Sbmsfi
11732127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11733127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1173456893Sfenner
1173556893Sfennerfi
11736127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then
11737127668Sbms  cat >>confdefs.h <<_ACEOF
11738127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11739127668Sbms_ACEOF
11740127668Sbms
1174156893Sfennerfi
1174256893Sfenner
11743127668Sbmsdone
1174456893Sfenner
1174556893Sfennerfi
1174656893Sfenner
11747127668Sbmsfi;
1174817680Spst
11749146773Ssamif test "$missing_includes" = "yes"; then
11750146773Ssam	CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
11751146773Ssam	V_INCLS="$V_INCLS -I\$(srcdir)/missing"
11752146773Ssamfi
1175317680Spst
1175417680Spst
1175517680Spst
1175617680Spst
1175717680Spst
1175856893Sfenner
1175975115Sfenner
11760146773Ssam
1176117680Spst# Find a good install program.  We prefer a C program (faster),
1176217680Spst# so one script is as good as another.  But avoid the broken or
1176317680Spst# incompatible versions:
1176417680Spst# SysV /etc/install, /usr/sbin/install
1176517680Spst# SunOS /usr/etc/install
1176617680Spst# IRIX /sbin/install
1176717680Spst# AIX /bin/install
11768127668Sbms# AmigaOS /C/install, which installs bootblocks on floppy discs
1176956893Sfenner# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1177017680Spst# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1177117680Spst# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1177217680Spst# ./install, which can be erroneously created by make from ./install.sh.
11773127668Sbmsecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11774127668Sbmsecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1177517680Spstif test -z "$INSTALL"; then
11776127668Sbmsif test "${ac_cv_path_install+set}" = set; then
11777127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1177817680Spstelse
11779127668Sbms  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780127668Sbmsfor as_dir in $PATH
11781127668Sbmsdo
11782127668Sbms  IFS=$as_save_IFS
11783127668Sbms  test -z "$as_dir" && as_dir=.
11784127668Sbms  # Account for people who put trailing slashes in PATH elements.
11785127668Sbmscase $as_dir/ in
11786127668Sbms  ./ | .// | /cC/* | \
11787127668Sbms  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11788127668Sbms  /usr/ucb/* ) ;;
11789127668Sbms  *)
11790127668Sbms    # OSF1 and SCO ODT 3.0 have their own names for install.
11791127668Sbms    # Don't use installbsd from OSF since it installs stuff as root
11792127668Sbms    # by default.
11793127668Sbms    for ac_prog in ginstall scoinst install; do
11794127668Sbms      for ac_exec_ext in '' $ac_executable_extensions; do
11795127668Sbms        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11796127668Sbms          if test $ac_prog = install &&
11797127668Sbms            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11798127668Sbms            # AIX install.  It has an incompatible calling convention.
11799127668Sbms            :
11800127668Sbms          elif test $ac_prog = install &&
11801127668Sbms            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11802127668Sbms            # program-specific install script used by HP pwplus--don't use.
11803127668Sbms            :
11804127668Sbms          else
11805127668Sbms            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11806127668Sbms            break 3
11807127668Sbms          fi
11808127668Sbms        fi
1180917680Spst      done
11810127668Sbms    done
11811127668Sbms    ;;
11812127668Sbmsesac
11813127668Sbmsdone
1181417680Spst
11815127668Sbms
1181617680Spstfi
1181717680Spst  if test "${ac_cv_path_install+set}" = set; then
11818127668Sbms    INSTALL=$ac_cv_path_install
1181917680Spst  else
1182017680Spst    # As a last resort, use the slow shell script.  We don't cache a
1182117680Spst    # path for INSTALL within a source directory, because that will
1182217680Spst    # break other packages using the cache if that directory is
1182317680Spst    # removed, or if the path is relative.
11824127668Sbms    INSTALL=$ac_install_sh
1182517680Spst  fi
1182617680Spstfi
11827127668Sbmsecho "$as_me:$LINENO: result: $INSTALL" >&5
11828127668Sbmsecho "${ECHO_T}$INSTALL" >&6
1182917680Spst
1183017680Spst# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1183117680Spst# It thinks the first close brace ends the variable substitution.
1183217680Spsttest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1183317680Spst
11834127668Sbmstest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1183556893Sfenner
1183617680Spsttest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1183717680Spst
1183817680Spst
11839127668Sbms          ac_config_headers="$ac_config_headers config.h"
1184056893Sfenner
1184156893Sfenner
11842127668Sbms          ac_config_commands="$ac_config_commands default-1"
1184375115Sfenner
11844127668Sbms          ac_config_files="$ac_config_files Makefile"
11845127668Sbmscat >confcache <<\_ACEOF
1184617680Spst# This file is a shell script that caches the results of configure
1184717680Spst# tests run on this system so they can be shared between configure
11848127668Sbms# scripts and configure runs, see configure's option --config-cache.
11849127668Sbms# It is not useful on other systems.  If it contains results you don't
11850127668Sbms# want to keep, you may remove or edit it.
1185117680Spst#
11852127668Sbms# config.status only pays attention to the cache file if you give it
11853127668Sbms# the --recheck option to rerun configure.
1185417680Spst#
11855127668Sbms# `ac_cv_env_foo' variables (set or unset) will be overridden when
11856127668Sbms# loading this file, other *unset* `ac_cv_foo' will be assigned the
11857127668Sbms# following values.
11858127668Sbms
11859127668Sbms_ACEOF
11860127668Sbms
1186126180Sfenner# The following way of writing the cache mishandles newlines in values,
1186226180Sfenner# but we know of no workaround that is simple, portable, and efficient.
1186326180Sfenner# So, don't put newlines in cache variables' values.
1186417680Spst# Ultrix sh set writes to stderr and can't be redirected directly,
1186517680Spst# and sets the high bit in the cache file unless we assign to the vars.
11866127668Sbms{
11867127668Sbms  (set) 2>&1 |
11868127668Sbms    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11869127668Sbms    *ac_space=\ *)
11870127668Sbms      # `set' does not quote correctly, so add quotes (double-quote
11871127668Sbms      # substitution turns \\\\ into \\, and sed turns \\ into \).
11872127668Sbms      sed -n \
11873127668Sbms        "s/'/'\\\\''/g;
11874127668Sbms    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11875127668Sbms      ;;
11876127668Sbms    *)
11877127668Sbms      # `set' quotes correctly as required by POSIX, so do not add quotes.
11878127668Sbms      sed -n \
11879127668Sbms        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11880127668Sbms      ;;
11881127668Sbms    esac;
11882127668Sbms} |
11883127668Sbms  sed '
11884127668Sbms     t clear
11885127668Sbms     : clear
11886127668Sbms     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11887127668Sbms     t end
11888127668Sbms     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11889127668Sbms     : end' >>confcache
11890127668Sbmsif diff $cache_file confcache >/dev/null 2>&1; then :; else
1189117680Spst  if test -w $cache_file; then
11892127668Sbms    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11893127668Sbms    cat confcache >$cache_file
1189417680Spst  else
1189517680Spst    echo "not updating unwritable cache $cache_file"
1189617680Spst  fi
1189717680Spstfi
1189817680Spstrm -f confcache
1189917680Spst
1190017680Spsttest "x$prefix" = xNONE && prefix=$ac_default_prefix
1190117680Spst# Let make expand exec_prefix.
1190217680Spsttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1190317680Spst
11904127668Sbms# VPATH may cause trouble with some makes, so we remove $(srcdir),
11905127668Sbms# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11906127668Sbms# trailing colons and then remove the whole line if VPATH becomes empty
11907127668Sbms# (actually we leave an empty line to preserve line numbers).
1190817680Spstif test "x$srcdir" = x.; then
11909127668Sbms  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
11910127668Sbmss/:*\$(srcdir):*/:/;
11911127668Sbmss/:*\${srcdir}:*/:/;
11912127668Sbmss/:*@srcdir@:*/:/;
11913127668Sbmss/^\([^=]*=[ 	]*\):*/\1/;
11914127668Sbmss/:*$//;
11915127668Sbmss/^[^=]*=[ 	]*$//;
11916127668Sbms}'
1191717680Spstfi
1191817680Spst
1191956893SfennerDEFS=-DHAVE_CONFIG_H
1192017680Spst
11921127668Sbmsac_libobjs=
11922127668Sbmsac_ltlibobjs=
11923127668Sbmsfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11924127668Sbms  # 1. Remove the extension, and $U if already installed.
11925127668Sbms  ac_i=`echo "$ac_i" |
11926127668Sbms         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11927127668Sbms  # 2. Add them.
11928127668Sbms  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11929127668Sbms  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11930127668Sbmsdone
11931127668SbmsLIBOBJS=$ac_libobjs
11932127668Sbms
11933127668SbmsLTLIBOBJS=$ac_ltlibobjs
11934127668Sbms
11935127668Sbms
11936127668Sbms
1193717680Spst: ${CONFIG_STATUS=./config.status}
11938127668Sbmsac_clean_files_save=$ac_clean_files
11939127668Sbmsac_clean_files="$ac_clean_files $CONFIG_STATUS"
11940127668Sbms{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11941127668Sbmsecho "$as_me: creating $CONFIG_STATUS" >&6;}
11942127668Sbmscat >$CONFIG_STATUS <<_ACEOF
11943127668Sbms#! $SHELL
11944127668Sbms# Generated by $as_me.
1194517680Spst# Run this file to recreate the current configuration.
1194617680Spst# Compiler output produced by configure, useful for debugging
11947127668Sbms# configure, is in config.log if it exists.
1194817680Spst
11949127668Sbmsdebug=false
11950127668Sbmsac_cs_recheck=false
11951127668Sbmsac_cs_silent=false
11952127668SbmsSHELL=\${CONFIG_SHELL-$SHELL}
11953127668Sbms_ACEOF
11954127668Sbms
11955127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
11956127668Sbms## --------------------- ##
11957127668Sbms## M4sh Initialization.  ##
11958127668Sbms## --------------------- ##
11959127668Sbms
11960127668Sbms# Be Bourne compatible
11961127668Sbmsif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11962127668Sbms  emulate sh
11963127668Sbms  NULLCMD=:
11964127668Sbms  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11965127668Sbms  # is contrary to our usage.  Disable this feature.
11966127668Sbms  alias -g '${1+"$@"}'='"$@"'
11967127668Sbmselif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11968127668Sbms  set -o posix
11969127668Sbmsfi
11970127668Sbms
11971127668Sbms# Support unset when possible.
11972127668Sbmsif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11973127668Sbms  as_unset=unset
11974127668Sbmselse
11975127668Sbms  as_unset=false
11976127668Sbmsfi
11977127668Sbms
11978127668Sbms
11979127668Sbms# Work around bugs in pre-3.0 UWIN ksh.
11980127668Sbms$as_unset ENV MAIL MAILPATH
11981127668SbmsPS1='$ '
11982127668SbmsPS2='> '
11983127668SbmsPS4='+ '
11984127668Sbms
11985127668Sbms# NLS nuisances.
11986127668Sbmsfor as_var in \
11987127668Sbms  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11988127668Sbms  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11989127668Sbms  LC_TELEPHONE LC_TIME
1199017680Spstdo
11991127668Sbms  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11992127668Sbms    eval $as_var=C; export $as_var
11993127668Sbms  else
11994127668Sbms    $as_unset $as_var
11995127668Sbms  fi
1199617680Spstdone
1199717680Spst
11998127668Sbms# Required to use basename.
11999127668Sbmsif expr a : '\(a\)' >/dev/null 2>&1; then
12000127668Sbms  as_expr=expr
12001127668Sbmselse
12002127668Sbms  as_expr=false
12003127668Sbmsfi
1200417680Spst
12005127668Sbmsif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12006127668Sbms  as_basename=basename
12007127668Sbmselse
12008127668Sbms  as_basename=false
12009127668Sbmsfi
1201017680Spst
1201117680Spst
12012127668Sbms# Name of the executable.
12013127668Sbmsas_me=`$as_basename "$0" ||
12014127668Sbms$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12015127668Sbms	 X"$0" : 'X\(//\)$' \| \
12016127668Sbms	 X"$0" : 'X\(/\)$' \| \
12017127668Sbms	 .     : '\(.\)' 2>/dev/null ||
12018127668Sbmsecho X/"$0" |
12019127668Sbms    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12020127668Sbms  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
12021127668Sbms  	  /^X\/\(\/\).*/{ s//\1/; q; }
12022127668Sbms  	  s/.*/./; q'`
1202326180Sfenner
1202426180Sfenner
12025127668Sbms# PATH needs CR, and LINENO needs CR and PATH.
12026127668Sbms# Avoid depending upon Character Ranges.
12027127668Sbmsas_cr_letters='abcdefghijklmnopqrstuvwxyz'
12028127668Sbmsas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12029127668Sbmsas_cr_Letters=$as_cr_letters$as_cr_LETTERS
12030127668Sbmsas_cr_digits='0123456789'
12031127668Sbmsas_cr_alnum=$as_cr_Letters$as_cr_digits
12032127668Sbms
12033127668Sbms# The user is always right.
12034127668Sbmsif test "${PATH_SEPARATOR+set}" != set; then
12035127668Sbms  echo "#! /bin/sh" >conf$$.sh
12036127668Sbms  echo  "exit 0"   >>conf$$.sh
12037127668Sbms  chmod +x conf$$.sh
12038127668Sbms  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12039127668Sbms    PATH_SEPARATOR=';'
1204026180Sfenner  else
12041127668Sbms    PATH_SEPARATOR=:
1204226180Sfenner  fi
12043127668Sbms  rm -f conf$$.sh
12044127668Sbmsfi
12045127668Sbms
12046127668Sbms
12047127668Sbms  as_lineno_1=$LINENO
12048127668Sbms  as_lineno_2=$LINENO
12049127668Sbms  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12050127668Sbms  test "x$as_lineno_1" != "x$as_lineno_2" &&
12051127668Sbms  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12052127668Sbms  # Find who we are.  Look in the path if we contain no path at all
12053127668Sbms  # relative or not.
12054127668Sbms  case $0 in
12055127668Sbms    *[\\/]* ) as_myself=$0 ;;
12056127668Sbms    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057127668Sbmsfor as_dir in $PATH
12058127668Sbmsdo
12059127668Sbms  IFS=$as_save_IFS
12060127668Sbms  test -z "$as_dir" && as_dir=.
12061127668Sbms  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12062127668Sbmsdone
12063127668Sbms
12064127668Sbms       ;;
12065127668Sbms  esac
12066127668Sbms  # We did not find ourselves, most probably we were run as `sh COMMAND'
12067127668Sbms  # in which case we are not to be found in the path.
12068127668Sbms  if test "x$as_myself" = x; then
12069127668Sbms    as_myself=$0
12070127668Sbms  fi
12071127668Sbms  if test ! -f "$as_myself"; then
12072127668Sbms    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12073127668Sbmsecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12074127668Sbms   { (exit 1); exit 1; }; }
12075127668Sbms  fi
12076127668Sbms  case $CONFIG_SHELL in
12077127668Sbms  '')
12078127668Sbms    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079127668Sbmsfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12080127668Sbmsdo
12081127668Sbms  IFS=$as_save_IFS
12082127668Sbms  test -z "$as_dir" && as_dir=.
12083127668Sbms  for as_base in sh bash ksh sh5; do
12084127668Sbms	 case $as_dir in
12085127668Sbms	 /*)
12086127668Sbms	   if ("$as_dir/$as_base" -c '
12087127668Sbms  as_lineno_1=$LINENO
12088127668Sbms  as_lineno_2=$LINENO
12089127668Sbms  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12090127668Sbms  test "x$as_lineno_1" != "x$as_lineno_2" &&
12091127668Sbms  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12092127668Sbms	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12093127668Sbms	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12094127668Sbms	     CONFIG_SHELL=$as_dir/$as_base
12095127668Sbms	     export CONFIG_SHELL
12096127668Sbms	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12097127668Sbms	   fi;;
12098127668Sbms	 esac
12099127668Sbms       done
12100127668Sbmsdone
12101127668Sbms;;
12102127668Sbms  esac
12103127668Sbms
12104127668Sbms  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12105127668Sbms  # uniformly replaced by the line number.  The first 'sed' inserts a
12106127668Sbms  # line-number line before each line; the second 'sed' does the real
12107127668Sbms  # work.  The second script uses 'N' to pair each line-number line
12108127668Sbms  # with the numbered line, and appends trailing '-' during
12109127668Sbms  # substitution so that $LINENO is not a special case at line end.
12110127668Sbms  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12111127668Sbms  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12112127668Sbms  sed '=' <$as_myself |
12113127668Sbms    sed '
12114127668Sbms      N
12115127668Sbms      s,$,-,
12116127668Sbms      : loop
12117127668Sbms      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12118127668Sbms      t loop
12119127668Sbms      s,-$,,
12120127668Sbms      s,^['$as_cr_digits']*\n,,
12121127668Sbms    ' >$as_me.lineno &&
12122127668Sbms  chmod +x $as_me.lineno ||
12123127668Sbms    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12124127668Sbmsecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12125127668Sbms   { (exit 1); exit 1; }; }
12126127668Sbms
12127127668Sbms  # Don't try to exec as it changes $[0], causing all sort of problems
12128127668Sbms  # (the dirname of $[0] is not the place where we might find the
12129127668Sbms  # original and so on.  Autoconf is especially sensible to this).
12130127668Sbms  . ./$as_me.lineno
12131127668Sbms  # Exit status is that of the last command.
12132127668Sbms  exit
12133127668Sbms}
12134127668Sbms
12135127668Sbms
12136127668Sbmscase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12137127668Sbms  *c*,-n*) ECHO_N= ECHO_C='
12138127668Sbms' ECHO_T='	' ;;
12139127668Sbms  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12140127668Sbms  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12141127668Sbmsesac
12142127668Sbms
12143127668Sbmsif expr a : '\(a\)' >/dev/null 2>&1; then
12144127668Sbms  as_expr=expr
12145127668Sbmselse
12146127668Sbms  as_expr=false
12147127668Sbmsfi
12148127668Sbms
12149127668Sbmsrm -f conf$$ conf$$.exe conf$$.file
12150127668Sbmsecho >conf$$.file
12151127668Sbmsif ln -s conf$$.file conf$$ 2>/dev/null; then
12152127668Sbms  # We could just check for DJGPP; but this test a) works b) is more generic
12153127668Sbms  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12154127668Sbms  if test -f conf$$.exe; then
12155127668Sbms    # Don't use ln at all; we don't have any links
12156127668Sbms    as_ln_s='cp -p'
1215726180Sfenner  else
12158127668Sbms    as_ln_s='ln -s'
1215926180Sfenner  fi
12160127668Sbmselif ln conf$$.file conf$$ 2>/dev/null; then
12161127668Sbms  as_ln_s=ln
12162127668Sbmselse
12163127668Sbms  as_ln_s='cp -p'
12164127668Sbmsfi
12165127668Sbmsrm -f conf$$ conf$$.exe conf$$.file
12166127668Sbms
12167127668Sbmsif mkdir -p . 2>/dev/null; then
12168127668Sbms  as_mkdir_p=:
12169127668Sbmselse
12170127668Sbms  as_mkdir_p=false
12171127668Sbmsfi
12172127668Sbms
12173127668Sbmsas_executable_p="test -f"
12174127668Sbms
12175127668Sbms# Sed expression to map a string onto a valid CPP name.
12176127668Sbmsas_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12177127668Sbms
12178127668Sbms# Sed expression to map a string onto a valid variable name.
12179127668Sbmsas_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12180127668Sbms
12181127668Sbms
12182127668Sbms# IFS
12183127668Sbms# We need space, tab and new line, in precisely that order.
12184127668Sbmsas_nl='
12185127668Sbms'
12186127668SbmsIFS=" 	$as_nl"
12187127668Sbms
12188127668Sbms# CDPATH.
12189127668Sbms$as_unset CDPATH
12190127668Sbms
12191127668Sbmsexec 6>&1
12192127668Sbms
12193127668Sbms# Open the log real soon, to keep \$[0] and so on meaningful, and to
12194127668Sbms# report actual input values of CONFIG_FILES etc. instead of their
12195127668Sbms# values after options handling.  Logging --version etc. is OK.
12196127668Sbmsexec 5>>config.log
12197127668Sbms{
12198127668Sbms  echo
12199127668Sbms  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12200127668Sbms## Running $as_me. ##
12201127668Sbms_ASBOX
12202127668Sbms} >&5
12203127668Sbmscat >&5 <<_CSEOF
12204127668Sbms
12205127668SbmsThis file was extended by $as_me, which was
12206127668Sbmsgenerated by GNU Autoconf 2.57.  Invocation command line was
12207127668Sbms
12208127668Sbms  CONFIG_FILES    = $CONFIG_FILES
12209127668Sbms  CONFIG_HEADERS  = $CONFIG_HEADERS
12210127668Sbms  CONFIG_LINKS    = $CONFIG_LINKS
12211127668Sbms  CONFIG_COMMANDS = $CONFIG_COMMANDS
12212127668Sbms  $ $0 $@
12213127668Sbms
12214127668Sbms_CSEOF
12215127668Sbmsecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12216127668Sbmsecho >&5
12217127668Sbms_ACEOF
12218127668Sbms
12219127668Sbms# Files that config.status was made for.
12220127668Sbmsif test -n "$ac_config_files"; then
12221127668Sbms  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12222127668Sbmsfi
12223127668Sbms
12224127668Sbmsif test -n "$ac_config_headers"; then
12225127668Sbms  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12226127668Sbmsfi
12227127668Sbms
12228127668Sbmsif test -n "$ac_config_links"; then
12229127668Sbms  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12230127668Sbmsfi
12231127668Sbms
12232127668Sbmsif test -n "$ac_config_commands"; then
12233127668Sbms  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12234127668Sbmsfi
12235127668Sbms
12236127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12237127668Sbms
12238127668Sbmsac_cs_usage="\
12239127668Sbms\`$as_me' instantiates files from templates according to the
12240127668Sbmscurrent configuration.
12241127668Sbms
12242127668SbmsUsage: $0 [OPTIONS] [FILE]...
12243127668Sbms
12244127668Sbms  -h, --help       print this help, then exit
12245127668Sbms  -V, --version    print version number, then exit
12246127668Sbms  -q, --quiet      do not print progress messages
12247127668Sbms  -d, --debug      don't remove temporary files
12248127668Sbms      --recheck    update $as_me by reconfiguring in the same conditions
12249127668Sbms  --file=FILE[:TEMPLATE]
12250127668Sbms                   instantiate the configuration file FILE
12251127668Sbms  --header=FILE[:TEMPLATE]
12252127668Sbms                   instantiate the configuration header FILE
12253127668Sbms
12254127668SbmsConfiguration files:
12255127668Sbms$config_files
12256127668Sbms
12257127668SbmsConfiguration headers:
12258127668Sbms$config_headers
12259127668Sbms
12260127668SbmsConfiguration commands:
12261127668Sbms$config_commands
12262127668Sbms
12263127668SbmsReport bugs to <bug-autoconf@gnu.org>."
12264127668Sbms_ACEOF
12265127668Sbms
12266127668Sbmscat >>$CONFIG_STATUS <<_ACEOF
12267127668Sbmsac_cs_version="\\
12268127668Sbmsconfig.status
12269127668Sbmsconfigured by $0, generated by GNU Autoconf 2.57,
12270127668Sbms  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12271127668Sbms
12272127668SbmsCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12273127668SbmsFree Software Foundation, Inc.
12274127668SbmsThis config.status script is free software; the Free Software Foundation
12275127668Sbmsgives unlimited permission to copy, distribute and modify it."
12276127668Sbmssrcdir=$srcdir
12277127668SbmsINSTALL="$INSTALL"
12278127668Sbms_ACEOF
12279127668Sbms
12280127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12281127668Sbms# If no file are specified by the user, then we need to provide default
12282127668Sbms# value.  By we need to know if files were specified by the user.
12283127668Sbmsac_need_defaults=:
12284127668Sbmswhile test $# != 0
12285127668Sbmsdo
12286127668Sbms  case $1 in
12287127668Sbms  --*=*)
12288127668Sbms    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12289127668Sbms    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12290127668Sbms    ac_shift=:
12291127668Sbms    ;;
12292127668Sbms  -*)
12293127668Sbms    ac_option=$1
12294127668Sbms    ac_optarg=$2
12295127668Sbms    ac_shift=shift
12296127668Sbms    ;;
12297127668Sbms  *) # This is not an option, so the user has probably given explicit
12298127668Sbms     # arguments.
12299127668Sbms     ac_option=$1
12300127668Sbms     ac_need_defaults=false;;
12301127668Sbms  esac
12302127668Sbms
12303127668Sbms  case $ac_option in
12304127668Sbms  # Handling of the options.
12305127668Sbms_ACEOF
12306127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12307127668Sbms  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12308127668Sbms    ac_cs_recheck=: ;;
12309127668Sbms  --version | --vers* | -V )
12310127668Sbms    echo "$ac_cs_version"; exit 0 ;;
12311127668Sbms  --he | --h)
12312127668Sbms    # Conflict between --help and --header
12313127668Sbms    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12314127668SbmsTry \`$0 --help' for more information." >&5
12315127668Sbmsecho "$as_me: error: ambiguous option: $1
12316127668SbmsTry \`$0 --help' for more information." >&2;}
12317127668Sbms   { (exit 1); exit 1; }; };;
12318127668Sbms  --help | --hel | -h )
12319127668Sbms    echo "$ac_cs_usage"; exit 0 ;;
12320127668Sbms  --debug | --d* | -d )
12321127668Sbms    debug=: ;;
12322127668Sbms  --file | --fil | --fi | --f )
12323127668Sbms    $ac_shift
12324127668Sbms    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12325127668Sbms    ac_need_defaults=false;;
12326127668Sbms  --header | --heade | --head | --hea )
12327127668Sbms    $ac_shift
12328127668Sbms    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12329127668Sbms    ac_need_defaults=false;;
12330127668Sbms  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12331127668Sbms  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12332127668Sbms    ac_cs_silent=: ;;
12333127668Sbms
12334127668Sbms  # This is an error.
12335127668Sbms  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12336127668SbmsTry \`$0 --help' for more information." >&5
12337127668Sbmsecho "$as_me: error: unrecognized option: $1
12338127668SbmsTry \`$0 --help' for more information." >&2;}
12339127668Sbms   { (exit 1); exit 1; }; } ;;
12340127668Sbms
12341127668Sbms  *) ac_config_targets="$ac_config_targets $1" ;;
12342127668Sbms
12343127668Sbms  esac
12344127668Sbms  shift
1234526180Sfennerdone
12346127668Sbms
12347127668Sbmsac_configure_extra_args=
12348127668Sbms
12349127668Sbmsif $ac_cs_silent; then
12350127668Sbms  exec 6>/dev/null
12351127668Sbms  ac_configure_extra_args="$ac_configure_extra_args --silent"
1235226180Sfennerfi
1235326180Sfenner
12354127668Sbms_ACEOF
12355127668Sbmscat >>$CONFIG_STATUS <<_ACEOF
12356127668Sbmsif \$ac_cs_recheck; then
12357127668Sbms  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12358127668Sbms  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12359127668Sbmsfi
1236017680Spst
12361127668Sbms_ACEOF
12362127668Sbms
12363127668Sbmscat >>$CONFIG_STATUS <<_ACEOF
12364127668Sbms#
12365127668Sbms# INIT-COMMANDS section.
12366127668Sbms#
12367127668Sbms
12368127668Sbms
12369127668Sbms
12370127668Sbms_ACEOF
12371127668Sbms
12372127668Sbms
12373127668Sbms
12374127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12375127668Sbmsfor ac_config_target in $ac_config_targets
12376127668Sbmsdo
12377127668Sbms  case "$ac_config_target" in
12378127668Sbms  # Handling of arguments.
12379127668Sbms  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12380127668Sbms  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12381127668Sbms  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12382127668Sbms  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12383127668Sbmsecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
12384127668Sbms   { (exit 1); exit 1; }; };;
1238517680Spst  esac
12386127668Sbmsdone
1238717680Spst
12388127668Sbms# If the user did not use the arguments to specify the items to instantiate,
12389127668Sbms# then the envvar interface is used.  Set only those that are not.
12390127668Sbms# We use the long form for the default assignment because of an extremely
12391127668Sbms# bizarre bug on SunOS 4.1.3.
12392127668Sbmsif $ac_need_defaults; then
12393127668Sbms  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12394127668Sbms  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12395127668Sbms  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12396127668Sbmsfi
1239717680Spst
12398127668Sbms# Have a temporary directory for convenience.  Make it in the build tree
12399127668Sbms# simply because there is no reason to put it here, and in addition,
12400127668Sbms# creating and moving files from /tmp can sometimes cause problems.
12401127668Sbms# Create a temporary directory, and hook for its removal unless debugging.
12402127668Sbms$debug ||
12403127668Sbms{
12404127668Sbms  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12405127668Sbms  trap '{ (exit 1); exit 1; }' 1 2 13 15
12406127668Sbms}
12407127668Sbms
12408127668Sbms# Create a (secure) tmp directory for tmp files.
12409127668Sbms
12410127668Sbms{
12411127668Sbms  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12412127668Sbms  test -n "$tmp" && test -d "$tmp"
12413127668Sbms}  ||
12414127668Sbms{
12415127668Sbms  tmp=./confstat$$-$RANDOM
12416127668Sbms  (umask 077 && mkdir $tmp)
12417127668Sbms} ||
12418127668Sbms{
12419127668Sbms   echo "$me: cannot create a temporary directory in ." >&2
12420127668Sbms   { (exit 1); exit 1; }
12421127668Sbms}
12422127668Sbms
12423127668Sbms_ACEOF
12424127668Sbms
12425127668Sbmscat >>$CONFIG_STATUS <<_ACEOF
12426127668Sbms
12427127668Sbms#
12428127668Sbms# CONFIG_FILES section.
12429127668Sbms#
12430127668Sbms
12431127668Sbms# No need to generate the scripts if there are no CONFIG_FILES.
12432127668Sbms# This happens for instance when ./config.status config.h
12433127668Sbmsif test -n "\$CONFIG_FILES"; then
12434127668Sbms  # Protect against being on the right side of a sed subst in config.status.
12435127668Sbms  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12436127668Sbms   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12437127668Sbmss,@SHELL@,$SHELL,;t t
12438127668Sbmss,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12439127668Sbmss,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12440127668Sbmss,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12441127668Sbmss,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12442127668Sbmss,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12443127668Sbmss,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12444127668Sbmss,@exec_prefix@,$exec_prefix,;t t
12445127668Sbmss,@prefix@,$prefix,;t t
12446127668Sbmss,@program_transform_name@,$program_transform_name,;t t
12447127668Sbmss,@bindir@,$bindir,;t t
12448127668Sbmss,@sbindir@,$sbindir,;t t
12449127668Sbmss,@libexecdir@,$libexecdir,;t t
12450127668Sbmss,@datadir@,$datadir,;t t
12451127668Sbmss,@sysconfdir@,$sysconfdir,;t t
12452127668Sbmss,@sharedstatedir@,$sharedstatedir,;t t
12453127668Sbmss,@localstatedir@,$localstatedir,;t t
12454127668Sbmss,@libdir@,$libdir,;t t
12455127668Sbmss,@includedir@,$includedir,;t t
12456127668Sbmss,@oldincludedir@,$oldincludedir,;t t
12457127668Sbmss,@infodir@,$infodir,;t t
12458127668Sbmss,@mandir@,$mandir,;t t
12459127668Sbmss,@build_alias@,$build_alias,;t t
12460127668Sbmss,@host_alias@,$host_alias,;t t
12461127668Sbmss,@target_alias@,$target_alias,;t t
12462127668Sbmss,@DEFS@,$DEFS,;t t
12463127668Sbmss,@ECHO_C@,$ECHO_C,;t t
12464127668Sbmss,@ECHO_N@,$ECHO_N,;t t
12465127668Sbmss,@ECHO_T@,$ECHO_T,;t t
12466127668Sbmss,@LIBS@,$LIBS,;t t
12467127668Sbmss,@build@,$build,;t t
12468127668Sbmss,@build_cpu@,$build_cpu,;t t
12469127668Sbmss,@build_vendor@,$build_vendor,;t t
12470127668Sbmss,@build_os@,$build_os,;t t
12471127668Sbmss,@host@,$host,;t t
12472127668Sbmss,@host_cpu@,$host_cpu,;t t
12473127668Sbmss,@host_vendor@,$host_vendor,;t t
12474127668Sbmss,@host_os@,$host_os,;t t
12475127668Sbmss,@SHLICC2@,$SHLICC2,;t t
12476127668Sbmss,@CC@,$CC,;t t
12477127668Sbmss,@CFLAGS@,$CFLAGS,;t t
12478127668Sbmss,@LDFLAGS@,$LDFLAGS,;t t
12479127668Sbmss,@CPPFLAGS@,$CPPFLAGS,;t t
12480127668Sbmss,@ac_ct_CC@,$ac_ct_CC,;t t
12481127668Sbmss,@EXEEXT@,$EXEEXT,;t t
12482127668Sbmss,@OBJEXT@,$OBJEXT,;t t
12483127668Sbmss,@CPP@,$CPP,;t t
12484127668Sbmss,@EGREP@,$EGREP,;t t
12485127668Sbmss,@LIBOBJS@,$LIBOBJS,;t t
12486127668Sbmss,@V_CCOPT@,$V_CCOPT,;t t
12487127668Sbmss,@V_DEFS@,$V_DEFS,;t t
12488127668Sbmss,@V_GROUP@,$V_GROUP,;t t
12489127668Sbmss,@V_INCLS@,$V_INCLS,;t t
12490127668Sbmss,@V_PCAPDEP@,$V_PCAPDEP,;t t
12491127668Sbmss,@LOCALSRC@,$LOCALSRC,;t t
12492127668Sbmss,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12493127668Sbmss,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12494127668Sbmss,@INSTALL_DATA@,$INSTALL_DATA,;t t
12495127668Sbmss,@LTLIBOBJS@,$LTLIBOBJS,;t t
12496127668SbmsCEOF
12497127668Sbms
12498127668Sbms_ACEOF
12499127668Sbms
12500127668Sbms  cat >>$CONFIG_STATUS <<\_ACEOF
12501127668Sbms  # Split the substitutions into bite-sized pieces for seds with
12502127668Sbms  # small command number limits, like on Digital OSF/1 and HP-UX.
12503127668Sbms  ac_max_sed_lines=48
12504127668Sbms  ac_sed_frag=1 # Number of current file.
12505127668Sbms  ac_beg=1 # First line for current file.
12506127668Sbms  ac_end=$ac_max_sed_lines # Line after last line for current file.
12507127668Sbms  ac_more_lines=:
12508127668Sbms  ac_sed_cmds=
12509127668Sbms  while $ac_more_lines; do
12510127668Sbms    if test $ac_beg -gt 1; then
12511127668Sbms      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12512127668Sbms    else
12513127668Sbms      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12514127668Sbms    fi
12515127668Sbms    if test ! -s $tmp/subs.frag; then
12516127668Sbms      ac_more_lines=false
12517127668Sbms    else
12518127668Sbms      # The purpose of the label and of the branching condition is to
12519127668Sbms      # speed up the sed processing (if there are no `@' at all, there
12520127668Sbms      # is no need to browse any of the substitutions).
12521127668Sbms      # These are the two extra sed commands mentioned above.
12522127668Sbms      (echo ':t
12523127668Sbms  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12524127668Sbms      if test -z "$ac_sed_cmds"; then
12525127668Sbms  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12526127668Sbms      else
12527127668Sbms  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12528127668Sbms      fi
12529127668Sbms      ac_sed_frag=`expr $ac_sed_frag + 1`
12530127668Sbms      ac_beg=$ac_end
12531127668Sbms      ac_end=`expr $ac_end + $ac_max_sed_lines`
12532127668Sbms    fi
12533127668Sbms  done
12534127668Sbms  if test -z "$ac_sed_cmds"; then
12535127668Sbms    ac_sed_cmds=cat
1253617680Spst  fi
12537127668Sbmsfi # test -n "$CONFIG_FILES"
1253817680Spst
12539127668Sbms_ACEOF
12540127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12541127668Sbmsfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12542127668Sbms  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12543127668Sbms  case $ac_file in
12544127668Sbms  - | *:- | *:-:* ) # input from stdin
12545127668Sbms        cat >$tmp/stdin
12546127668Sbms        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12547127668Sbms        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12548127668Sbms  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12549127668Sbms        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12550127668Sbms  * )   ac_file_in=$ac_file.in ;;
1255117680Spst  esac
1255217680Spst
12553127668Sbms  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12554127668Sbms  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12555127668Sbms$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12556127668Sbms         X"$ac_file" : 'X\(//\)[^/]' \| \
12557127668Sbms         X"$ac_file" : 'X\(//\)$' \| \
12558127668Sbms         X"$ac_file" : 'X\(/\)' \| \
12559127668Sbms         .     : '\(.\)' 2>/dev/null ||
12560127668Sbmsecho X"$ac_file" |
12561127668Sbms    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12562127668Sbms  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12563127668Sbms  	  /^X\(\/\/\)$/{ s//\1/; q; }
12564127668Sbms  	  /^X\(\/\).*/{ s//\1/; q; }
12565127668Sbms  	  s/.*/./; q'`
12566127668Sbms  { if $as_mkdir_p; then
12567127668Sbms    mkdir -p "$ac_dir"
12568127668Sbms  else
12569127668Sbms    as_dir="$ac_dir"
12570127668Sbms    as_dirs=
12571127668Sbms    while test ! -d "$as_dir"; do
12572127668Sbms      as_dirs="$as_dir $as_dirs"
12573127668Sbms      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12574127668Sbms$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12575127668Sbms         X"$as_dir" : 'X\(//\)[^/]' \| \
12576127668Sbms         X"$as_dir" : 'X\(//\)$' \| \
12577127668Sbms         X"$as_dir" : 'X\(/\)' \| \
12578127668Sbms         .     : '\(.\)' 2>/dev/null ||
12579127668Sbmsecho X"$as_dir" |
12580127668Sbms    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12581127668Sbms  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12582127668Sbms  	  /^X\(\/\/\)$/{ s//\1/; q; }
12583127668Sbms  	  /^X\(\/\).*/{ s//\1/; q; }
12584127668Sbms  	  s/.*/./; q'`
12585127668Sbms    done
12586127668Sbms    test ! -n "$as_dirs" || mkdir $as_dirs
12587127668Sbms  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12588127668Sbmsecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12589127668Sbms   { (exit 1); exit 1; }; }; }
1259026180Sfenner
12591127668Sbms  ac_builddir=.
12592127668Sbms
12593127668Sbmsif test "$ac_dir" != .; then
12594127668Sbms  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12595127668Sbms  # A "../" for each directory in $ac_dir_suffix.
12596127668Sbms  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12597127668Sbmselse
12598127668Sbms  ac_dir_suffix= ac_top_builddir=
12599127668Sbmsfi
12600127668Sbms
12601127668Sbmscase $srcdir in
12602127668Sbms  .)  # No --srcdir option.  We are building in place.
12603127668Sbms    ac_srcdir=.
12604127668Sbms    if test -z "$ac_top_builddir"; then
12605127668Sbms       ac_top_srcdir=.
12606127668Sbms    else
12607127668Sbms       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12608127668Sbms    fi ;;
12609127668Sbms  [\\/]* | ?:[\\/]* )  # Absolute path.
12610127668Sbms    ac_srcdir=$srcdir$ac_dir_suffix;
12611127668Sbms    ac_top_srcdir=$srcdir ;;
12612127668Sbms  *) # Relative path.
12613127668Sbms    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12614127668Sbms    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12615127668Sbmsesac
12616127668Sbms# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12617127668Sbms# absolute.
12618127668Sbmsac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12619127668Sbmsac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12620127668Sbmsac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12621127668Sbmsac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12622127668Sbms
12623127668Sbms
12624127668Sbms  case $INSTALL in
12625127668Sbms  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12626127668Sbms  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1262717680Spst  esac
1262826180Sfenner
12629127668Sbms  if test x"$ac_file" != x-; then
12630127668Sbms    { echo "$as_me:$LINENO: creating $ac_file" >&5
12631127668Sbmsecho "$as_me: creating $ac_file" >&6;}
12632127668Sbms    rm -f "$ac_file"
12633127668Sbms  fi
12634127668Sbms  # Let's still pretend it is `configure' which instantiates (i.e., don't
12635127668Sbms  # use $as_me), people would be surprised to read:
12636127668Sbms  #    /* config.h.  Generated by config.status.  */
12637127668Sbms  if test x"$ac_file" = x-; then
12638127668Sbms    configure_input=
12639127668Sbms  else
12640127668Sbms    configure_input="$ac_file.  "
12641127668Sbms  fi
12642127668Sbms  configure_input=$configure_input"Generated from `echo $ac_file_in |
12643127668Sbms                                     sed 's,.*/,,'` by configure."
1264417680Spst
12645127668Sbms  # First look for the input files in the build tree, otherwise in the
12646127668Sbms  # src tree.
12647127668Sbms  ac_file_inputs=`IFS=:
12648127668Sbms    for f in $ac_file_in; do
12649127668Sbms      case $f in
12650127668Sbms      -) echo $tmp/stdin ;;
12651127668Sbms      [\\/$]*)
12652127668Sbms         # Absolute (can't be DOS-style, as IFS=:)
12653127668Sbms         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12654127668Sbmsecho "$as_me: error: cannot find input file: $f" >&2;}
12655127668Sbms   { (exit 1); exit 1; }; }
12656127668Sbms         echo $f;;
12657127668Sbms      *) # Relative
12658127668Sbms         if test -f "$f"; then
12659127668Sbms           # Build tree
12660127668Sbms           echo $f
12661127668Sbms         elif test -f "$srcdir/$f"; then
12662127668Sbms           # Source tree
12663127668Sbms           echo $srcdir/$f
12664127668Sbms         else
12665127668Sbms           # /dev/null tree
12666127668Sbms           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12667127668Sbmsecho "$as_me: error: cannot find input file: $f" >&2;}
12668127668Sbms   { (exit 1); exit 1; }; }
12669127668Sbms         fi;;
12670127668Sbms      esac
12671127668Sbms    done` || { (exit 1); exit 1; }
12672127668Sbms_ACEOF
12673127668Sbmscat >>$CONFIG_STATUS <<_ACEOF
12674127668Sbms  sed "$ac_vpsub
12675127668Sbms$extrasub
12676127668Sbms_ACEOF
12677127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12678127668Sbms:t
12679127668Sbms/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12680127668Sbmss,@configure_input@,$configure_input,;t t
12681127668Sbmss,@srcdir@,$ac_srcdir,;t t
12682127668Sbmss,@abs_srcdir@,$ac_abs_srcdir,;t t
12683127668Sbmss,@top_srcdir@,$ac_top_srcdir,;t t
12684127668Sbmss,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12685127668Sbmss,@builddir@,$ac_builddir,;t t
12686127668Sbmss,@abs_builddir@,$ac_abs_builddir,;t t
12687127668Sbmss,@top_builddir@,$ac_top_builddir,;t t
12688127668Sbmss,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12689127668Sbmss,@INSTALL@,$ac_INSTALL,;t t
12690127668Sbms" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12691127668Sbms  rm -f $tmp/stdin
12692127668Sbms  if test x"$ac_file" != x-; then
12693127668Sbms    mv $tmp/out $ac_file
12694127668Sbms  else
12695127668Sbms    cat $tmp/out
12696127668Sbms    rm -f $tmp/out
12697127668Sbms  fi
12698127668Sbms
12699127668Sbmsdone
12700127668Sbms_ACEOF
12701127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12702127668Sbms
12703127668Sbms#
12704127668Sbms# CONFIG_HEADER section.
12705127668Sbms#
12706127668Sbms
1270756893Sfenner# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1270856893Sfenner# NAME is the cpp macro being defined and VALUE is the value it is being given.
1270956893Sfenner#
1271056893Sfenner# ac_d sets the value in "#define NAME VALUE" lines.
12711127668Sbmsac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
12712127668Sbmsac_dB='[ 	].*$,\1#\2'
12713127668Sbmsac_dC=' '
12714127668Sbmsac_dD=',;t'
12715127668Sbms# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12716127668Sbmsac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
12717127668Sbmsac_uB='$,\1#\2define\3'
1271856893Sfennerac_uC=' '
12719127668Sbmsac_uD=',;t'
1272056893Sfenner
12721127668Sbmsfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1272256893Sfenner  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12723127668Sbms  case $ac_file in
12724127668Sbms  - | *:- | *:-:* ) # input from stdin
12725127668Sbms        cat >$tmp/stdin
12726127668Sbms        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12727127668Sbms        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12728127668Sbms  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12729127668Sbms        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12730127668Sbms  * )   ac_file_in=$ac_file.in ;;
1273156893Sfenner  esac
1273217680Spst
12733127668Sbms  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12734127668Sbmsecho "$as_me: creating $ac_file" >&6;}
1273556893Sfenner
12736127668Sbms  # First look for the input files in the build tree, otherwise in the
12737127668Sbms  # src tree.
12738127668Sbms  ac_file_inputs=`IFS=:
12739127668Sbms    for f in $ac_file_in; do
12740127668Sbms      case $f in
12741127668Sbms      -) echo $tmp/stdin ;;
12742127668Sbms      [\\/$]*)
12743127668Sbms         # Absolute (can't be DOS-style, as IFS=:)
12744127668Sbms         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12745127668Sbmsecho "$as_me: error: cannot find input file: $f" >&2;}
12746127668Sbms   { (exit 1); exit 1; }; }
12747127668Sbms         echo $f;;
12748127668Sbms      *) # Relative
12749127668Sbms         if test -f "$f"; then
12750127668Sbms           # Build tree
12751127668Sbms           echo $f
12752127668Sbms         elif test -f "$srcdir/$f"; then
12753127668Sbms           # Source tree
12754127668Sbms           echo $srcdir/$f
12755127668Sbms         else
12756127668Sbms           # /dev/null tree
12757127668Sbms           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12758127668Sbmsecho "$as_me: error: cannot find input file: $f" >&2;}
12759127668Sbms   { (exit 1); exit 1; }; }
12760127668Sbms         fi;;
12761127668Sbms      esac
12762127668Sbms    done` || { (exit 1); exit 1; }
12763127668Sbms  # Remove the trailing spaces.
12764127668Sbms  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
1276556893Sfenner
12766127668Sbms_ACEOF
1276756893Sfenner
12768127668Sbms# Transform confdefs.h into two sed scripts, `conftest.defines' and
12769127668Sbms# `conftest.undefs', that substitutes the proper values into
12770127668Sbms# config.h.in to produce config.h.  The first handles `#define'
12771127668Sbms# templates, and the second `#undef' templates.
12772127668Sbms# And first: Protect against being on the right side of a sed subst in
12773127668Sbms# config.status.  Protect against being in an unquoted here document
12774127668Sbms# in config.status.
12775127668Sbmsrm -f conftest.defines conftest.undefs
12776127668Sbms# Using a here document instead of a string reduces the quoting nightmare.
12777127668Sbms# Putting comments in sed scripts is not portable.
12778127668Sbms#
12779127668Sbms# `end' is used to avoid that the second main sed command (meant for
12780127668Sbms# 0-ary CPP macros) applies to n-ary macro definitions.
12781127668Sbms# See the Autoconf documentation for `clear'.
12782127668Sbmscat >confdef2sed.sed <<\_ACEOF
12783127668Sbmss/[\\&,]/\\&/g
12784127668Sbmss,[\\$`],\\&,g
12785127668Sbmst clear
12786127668Sbms: clear
12787127668Sbmss,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12788127668Sbmst end
12789127668Sbmss,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12790127668Sbms: end
12791127668Sbms_ACEOF
12792127668Sbms# If some macros were called several times there might be several times
12793127668Sbms# the same #defines, which is useless.  Nevertheless, we may not want to
12794127668Sbms# sort them, since we want the *last* AC-DEFINE to be honored.
12795127668Sbmsuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12796127668Sbmssed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12797127668Sbmsrm -f confdef2sed.sed
1279856893Sfenner
1279956893Sfenner# This sed command replaces #undef with comments.  This is necessary, for
1280056893Sfenner# example, in the case of _POSIX_SOURCE, which is predefined and required
1280156893Sfenner# on some systems where configure will not decide to define it.
12802127668Sbmscat >>conftest.undefs <<\_ACEOF
12803127668Sbmss,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12804127668Sbms_ACEOF
1280556893Sfenner
12806127668Sbms# Break up conftest.defines because some shells have a limit on the size
12807127668Sbms# of here documents, and old seds have small limits too (100 cmds).
12808127668Sbmsecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12809127668Sbmsecho '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12810127668Sbmsecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12811127668Sbmsecho '  :' >>$CONFIG_STATUS
12812127668Sbmsrm -f conftest.tail
12813127668Sbmswhile grep . conftest.defines >/dev/null
12814127668Sbmsdo
12815127668Sbms  # Write a limited-size here document to $tmp/defines.sed.
12816127668Sbms  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12817127668Sbms  # Speed up: don't consider the non `#define' lines.
12818127668Sbms  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
12819127668Sbms  # Work around the forget-to-reset-the-flag bug.
12820127668Sbms  echo 't clr' >>$CONFIG_STATUS
12821127668Sbms  echo ': clr' >>$CONFIG_STATUS
12822127668Sbms  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12823127668Sbms  echo 'CEOF
12824127668Sbms  sed -f $tmp/defines.sed $tmp/in >$tmp/out
12825127668Sbms  rm -f $tmp/in
12826127668Sbms  mv $tmp/out $tmp/in
12827127668Sbms' >>$CONFIG_STATUS
12828127668Sbms  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12829127668Sbms  rm -f conftest.defines
12830127668Sbms  mv conftest.tail conftest.defines
12831127668Sbmsdone
12832127668Sbmsrm -f conftest.defines
12833127668Sbmsecho '  fi # grep' >>$CONFIG_STATUS
12834127668Sbmsecho >>$CONFIG_STATUS
1283556893Sfenner
12836127668Sbms# Break up conftest.undefs because some shells have a limit on the size
12837127668Sbms# of here documents, and old seds have small limits too (100 cmds).
12838127668Sbmsecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
1283956893Sfennerrm -f conftest.tail
12840127668Sbmswhile grep . conftest.undefs >/dev/null
1284156893Sfennerdo
12842127668Sbms  # Write a limited-size here document to $tmp/undefs.sed.
12843127668Sbms  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12844127668Sbms  # Speed up: don't consider the non `#undef'
12845127668Sbms  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
12846127668Sbms  # Work around the forget-to-reset-the-flag bug.
12847127668Sbms  echo 't clr' >>$CONFIG_STATUS
12848127668Sbms  echo ': clr' >>$CONFIG_STATUS
12849127668Sbms  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1285056893Sfenner  echo 'CEOF
12851127668Sbms  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12852127668Sbms  rm -f $tmp/in
12853127668Sbms  mv $tmp/out $tmp/in
12854127668Sbms' >>$CONFIG_STATUS
12855127668Sbms  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12856127668Sbms  rm -f conftest.undefs
12857127668Sbms  mv conftest.tail conftest.undefs
1285856893Sfennerdone
12859127668Sbmsrm -f conftest.undefs
1286056893Sfenner
12861127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12862127668Sbms  # Let's still pretend it is `configure' which instantiates (i.e., don't
12863127668Sbms  # use $as_me), people would be surprised to read:
12864127668Sbms  #    /* config.h.  Generated by config.status.  */
12865127668Sbms  if test x"$ac_file" = x-; then
12866127668Sbms    echo "/* Generated by configure.  */" >$tmp/config.h
1286756893Sfenner  else
12868127668Sbms    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12869127668Sbms  fi
12870127668Sbms  cat $tmp/in >>$tmp/config.h
12871127668Sbms  rm -f $tmp/in
12872127668Sbms  if test x"$ac_file" != x-; then
12873127668Sbms    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12874127668Sbms      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12875127668Sbmsecho "$as_me: $ac_file is unchanged" >&6;}
12876127668Sbms    else
12877127668Sbms      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12878127668Sbms$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12879127668Sbms         X"$ac_file" : 'X\(//\)[^/]' \| \
12880127668Sbms         X"$ac_file" : 'X\(//\)$' \| \
12881127668Sbms         X"$ac_file" : 'X\(/\)' \| \
12882127668Sbms         .     : '\(.\)' 2>/dev/null ||
12883127668Sbmsecho X"$ac_file" |
12884127668Sbms    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12885127668Sbms  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12886127668Sbms  	  /^X\(\/\/\)$/{ s//\1/; q; }
12887127668Sbms  	  /^X\(\/\).*/{ s//\1/; q; }
12888127668Sbms  	  s/.*/./; q'`
12889127668Sbms      { if $as_mkdir_p; then
12890127668Sbms    mkdir -p "$ac_dir"
12891127668Sbms  else
12892127668Sbms    as_dir="$ac_dir"
12893127668Sbms    as_dirs=
12894127668Sbms    while test ! -d "$as_dir"; do
12895127668Sbms      as_dirs="$as_dir $as_dirs"
12896127668Sbms      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12897127668Sbms$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12898127668Sbms         X"$as_dir" : 'X\(//\)[^/]' \| \
12899127668Sbms         X"$as_dir" : 'X\(//\)$' \| \
12900127668Sbms         X"$as_dir" : 'X\(/\)' \| \
12901127668Sbms         .     : '\(.\)' 2>/dev/null ||
12902127668Sbmsecho X"$as_dir" |
12903127668Sbms    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12904127668Sbms  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12905127668Sbms  	  /^X\(\/\/\)$/{ s//\1/; q; }
12906127668Sbms  	  /^X\(\/\).*/{ s//\1/; q; }
12907127668Sbms  	  s/.*/./; q'`
12908127668Sbms    done
12909127668Sbms    test ! -n "$as_dirs" || mkdir $as_dirs
12910127668Sbms  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12911127668Sbmsecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12912127668Sbms   { (exit 1); exit 1; }; }; }
12913127668Sbms
12914127668Sbms      rm -f $ac_file
12915127668Sbms      mv $tmp/config.h $ac_file
1291656893Sfenner    fi
12917127668Sbms  else
12918127668Sbms    cat $tmp/config.h
12919127668Sbms    rm -f $tmp/config.h
1292056893Sfenner  fi
12921127668Sbmsdone
12922127668Sbms_ACEOF
12923127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
1292417680Spst
12925127668Sbms#
12926127668Sbms# CONFIG_COMMANDS section.
12927127668Sbms#
12928127668Sbmsfor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12929127668Sbms  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12930127668Sbms  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12931127668Sbms  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12932127668Sbms$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12933127668Sbms         X"$ac_dest" : 'X\(//\)[^/]' \| \
12934127668Sbms         X"$ac_dest" : 'X\(//\)$' \| \
12935127668Sbms         X"$ac_dest" : 'X\(/\)' \| \
12936127668Sbms         .     : '\(.\)' 2>/dev/null ||
12937127668Sbmsecho X"$ac_dest" |
12938127668Sbms    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12939127668Sbms  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12940127668Sbms  	  /^X\(\/\/\)$/{ s//\1/; q; }
12941127668Sbms  	  /^X\(\/\).*/{ s//\1/; q; }
12942127668Sbms  	  s/.*/./; q'`
12943127668Sbms  ac_builddir=.
1294456893Sfenner
12945127668Sbmsif test "$ac_dir" != .; then
12946127668Sbms  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12947127668Sbms  # A "../" for each directory in $ac_dir_suffix.
12948127668Sbms  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12949127668Sbmselse
12950127668Sbms  ac_dir_suffix= ac_top_builddir=
12951127668Sbmsfi
1295275115Sfenner
12953127668Sbmscase $srcdir in
12954127668Sbms  .)  # No --srcdir option.  We are building in place.
12955127668Sbms    ac_srcdir=.
12956127668Sbms    if test -z "$ac_top_builddir"; then
12957127668Sbms       ac_top_srcdir=.
12958127668Sbms    else
12959127668Sbms       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12960127668Sbms    fi ;;
12961127668Sbms  [\\/]* | ?:[\\/]* )  # Absolute path.
12962127668Sbms    ac_srcdir=$srcdir$ac_dir_suffix;
12963127668Sbms    ac_top_srcdir=$srcdir ;;
12964127668Sbms  *) # Relative path.
12965127668Sbms    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12966127668Sbms    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12967127668Sbmsesac
12968127668Sbms# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12969127668Sbms# absolute.
12970127668Sbmsac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12971127668Sbmsac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12972127668Sbmsac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12973127668Sbmsac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12974127668Sbms
12975127668Sbms
12976127668Sbms  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12977127668Sbmsecho "$as_me: executing $ac_dest commands" >&6;}
12978127668Sbms  case $ac_dest in
12979127668Sbms    default-1 ) if test -f .devel; then
1298075115Sfenner	echo timestamp > stamp-h
1298175115Sfenner	cat Makefile-devel-adds >> Makefile
1298275115Sfenner	make depend
12983127668Sbmsfi ;;
12984127668Sbms  esac
12985127668Sbmsdone
12986127668Sbms_ACEOF
1298756893Sfenner
12988127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12989127668Sbms
12990127668Sbms{ (exit 0); exit 0; }
12991127668Sbms_ACEOF
1299217680Spstchmod +x $CONFIG_STATUS
12993127668Sbmsac_clean_files=$ac_clean_files_save
1299417680Spst
12995127668Sbms
12996127668Sbms# configure is writing to config.log, and then calls config.status.
12997127668Sbms# config.status does its own redirection, appending to config.log.
12998127668Sbms# Unfortunately, on DOS this fails, as config.log is still kept open
12999127668Sbms# by configure, so config.status won't be able to write to it; its
13000127668Sbms# output is simply discarded.  So we exec the FD to /dev/null,
13001127668Sbms# effectively closing config.log, so it can be properly (re)opened and
13002127668Sbms# appended to by config.status.  When coming back to configure, we
13003127668Sbms# need to make the FD available again.
13004127668Sbmsif test "$no_create" != yes; then
13005127668Sbms  ac_cs_success=:
13006127668Sbms  ac_config_status_args=
13007127668Sbms  test "$silent" = yes &&
13008127668Sbms    ac_config_status_args="$ac_config_status_args --quiet"
13009127668Sbms  exec 5>/dev/null
13010127668Sbms  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13011127668Sbms  exec 5>>config.log
13012127668Sbms  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13013127668Sbms  # would make configure fail if this is the last instruction.
13014127668Sbms  $ac_cs_success || { (exit 1); exit 1; }
13015127668Sbmsfi
13016127668Sbms
1301717680Spstexit 0
13018