xref: /minix3/tools/make/configure (revision c8a0e2f4c688362b79ef1474cea604c8ebd6045d)
1*c8a0e2f4SThomas Veerman#! /bin/sh
2*c8a0e2f4SThomas Veerman# Guess values for system-dependent variables and create Makefiles.
3*c8a0e2f4SThomas Veerman# Generated by Autoconf 2.52 for make noversion.
4*c8a0e2f4SThomas Veerman#
5*c8a0e2f4SThomas Veerman# Report bugs to <bin-bug-people@NetBSD.org>.
6*c8a0e2f4SThomas Veerman#
7*c8a0e2f4SThomas Veerman# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8*c8a0e2f4SThomas Veerman# Free Software Foundation, Inc.
9*c8a0e2f4SThomas Veerman# This configure script is free software; the Free Software Foundation
10*c8a0e2f4SThomas Veerman# gives unlimited permission to copy, distribute and modify it.
11*c8a0e2f4SThomas Veerman
12*c8a0e2f4SThomas Veerman# Avoid depending upon Character Ranges.
13*c8a0e2f4SThomas Veermanas_cr_letters='abcdefghijklmnopqrstuvwxyz'
14*c8a0e2f4SThomas Veermanas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15*c8a0e2f4SThomas Veermanas_cr_Letters=$as_cr_letters$as_cr_LETTERS
16*c8a0e2f4SThomas Veermanas_cr_digits='0123456789'
17*c8a0e2f4SThomas Veermanas_cr_alnum=$as_cr_Letters$as_cr_digits
18*c8a0e2f4SThomas Veerman
19*c8a0e2f4SThomas Veerman# Sed expression to map a string onto a valid variable name.
20*c8a0e2f4SThomas Veermanas_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21*c8a0e2f4SThomas Veerman
22*c8a0e2f4SThomas Veerman# Sed expression to map a string onto a valid CPP name.
23*c8a0e2f4SThomas Veermanas_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24*c8a0e2f4SThomas Veerman
25*c8a0e2f4SThomas Veerman# Be Bourne compatible
26*c8a0e2f4SThomas Veermanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27*c8a0e2f4SThomas Veerman  emulate sh
28*c8a0e2f4SThomas Veerman  NULLCMD=:
29*c8a0e2f4SThomas Veermanelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30*c8a0e2f4SThomas Veerman  set -o posix
31*c8a0e2f4SThomas Veermanfi
32*c8a0e2f4SThomas Veerman
33*c8a0e2f4SThomas Veerman# Name of the executable.
34*c8a0e2f4SThomas Veermanas_me=`echo "$0" |sed 's,.*[\\/],,'`
35*c8a0e2f4SThomas Veerman
36*c8a0e2f4SThomas Veermanif expr a : '\(a\)' >/dev/null 2>&1; then
37*c8a0e2f4SThomas Veerman  as_expr=expr
38*c8a0e2f4SThomas Veermanelse
39*c8a0e2f4SThomas Veerman  as_expr=false
40*c8a0e2f4SThomas Veermanfi
41*c8a0e2f4SThomas Veerman
42*c8a0e2f4SThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
43*c8a0e2f4SThomas Veermanecho >conf$$.file
44*c8a0e2f4SThomas Veermanif ln -s conf$$.file conf$$ 2>/dev/null; then
45*c8a0e2f4SThomas Veerman  # We could just check for DJGPP; but this test a) works b) is more generic
46*c8a0e2f4SThomas Veerman  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47*c8a0e2f4SThomas Veerman  if test -f conf$$.exe; then
48*c8a0e2f4SThomas Veerman    # Don't use ln at all; we don't have any links
49*c8a0e2f4SThomas Veerman    as_ln_s='cp -p'
50*c8a0e2f4SThomas Veerman  else
51*c8a0e2f4SThomas Veerman    as_ln_s='ln -s'
52*c8a0e2f4SThomas Veerman  fi
53*c8a0e2f4SThomas Veermanelif ln conf$$.file conf$$ 2>/dev/null; then
54*c8a0e2f4SThomas Veerman  as_ln_s=ln
55*c8a0e2f4SThomas Veermanelse
56*c8a0e2f4SThomas Veerman  as_ln_s='cp -p'
57*c8a0e2f4SThomas Veermanfi
58*c8a0e2f4SThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
59*c8a0e2f4SThomas Veerman
60*c8a0e2f4SThomas Veermanas_executable_p="test -f"
61*c8a0e2f4SThomas Veerman
62*c8a0e2f4SThomas Veerman# Support unset when possible.
63*c8a0e2f4SThomas Veermanif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64*c8a0e2f4SThomas Veerman  as_unset=unset
65*c8a0e2f4SThomas Veermanelse
66*c8a0e2f4SThomas Veerman  as_unset=false
67*c8a0e2f4SThomas Veermanfi
68*c8a0e2f4SThomas Veerman
69*c8a0e2f4SThomas Veerman# NLS nuisances.
70*c8a0e2f4SThomas Veerman$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71*c8a0e2f4SThomas Veerman$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72*c8a0e2f4SThomas Veerman$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73*c8a0e2f4SThomas Veerman$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74*c8a0e2f4SThomas Veerman$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75*c8a0e2f4SThomas Veerman$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76*c8a0e2f4SThomas Veerman$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77*c8a0e2f4SThomas Veerman$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78*c8a0e2f4SThomas Veerman
79*c8a0e2f4SThomas Veerman# IFS
80*c8a0e2f4SThomas Veerman# We need space, tab and new line, in precisely that order.
81*c8a0e2f4SThomas Veermanas_nl='
82*c8a0e2f4SThomas Veerman'
83*c8a0e2f4SThomas VeermanIFS=" 	$as_nl"
84*c8a0e2f4SThomas Veerman
85*c8a0e2f4SThomas Veerman# CDPATH.
86*c8a0e2f4SThomas Veerman$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87*c8a0e2f4SThomas Veerman
88*c8a0e2f4SThomas Veerman# Name of the host.
89*c8a0e2f4SThomas Veerman# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90*c8a0e2f4SThomas Veerman# so uname gets run too.
91*c8a0e2f4SThomas Veermanac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92*c8a0e2f4SThomas Veerman
93*c8a0e2f4SThomas Veermanexec 6>&1
94*c8a0e2f4SThomas Veerman
95*c8a0e2f4SThomas Veerman#
96*c8a0e2f4SThomas Veerman# Initializations.
97*c8a0e2f4SThomas Veerman#
98*c8a0e2f4SThomas Veermanac_default_prefix=/usr/local
99*c8a0e2f4SThomas Veermancross_compiling=no
100*c8a0e2f4SThomas Veermansubdirs=
101*c8a0e2f4SThomas VeermanMFLAGS= MAKEFLAGS=
102*c8a0e2f4SThomas VeermanSHELL=${CONFIG_SHELL-/bin/sh}
103*c8a0e2f4SThomas Veerman
104*c8a0e2f4SThomas Veerman# Maximum number of lines to put in a shell here document.
105*c8a0e2f4SThomas Veerman# This variable seems obsolete.  It should probably be removed, and
106*c8a0e2f4SThomas Veerman# only ac_max_sed_lines should be used.
107*c8a0e2f4SThomas Veerman: ${ac_max_here_lines=38}
108*c8a0e2f4SThomas Veerman
109*c8a0e2f4SThomas Veerman# Initialize some variables set by options.
110*c8a0e2f4SThomas Veermanac_init_help=
111*c8a0e2f4SThomas Veermanac_init_version=false
112*c8a0e2f4SThomas Veerman# The variables have the same names as the options, with
113*c8a0e2f4SThomas Veerman# dashes changed to underlines.
114*c8a0e2f4SThomas Veermancache_file=/dev/null
115*c8a0e2f4SThomas Veermanexec_prefix=NONE
116*c8a0e2f4SThomas Veermanno_create=
117*c8a0e2f4SThomas Veermanno_recursion=
118*c8a0e2f4SThomas Veermanprefix=NONE
119*c8a0e2f4SThomas Veermanprogram_prefix=NONE
120*c8a0e2f4SThomas Veermanprogram_suffix=NONE
121*c8a0e2f4SThomas Veermanprogram_transform_name=s,x,x,
122*c8a0e2f4SThomas Veermansilent=
123*c8a0e2f4SThomas Veermansite=
124*c8a0e2f4SThomas Veermansrcdir=
125*c8a0e2f4SThomas Veermanverbose=
126*c8a0e2f4SThomas Veermanx_includes=NONE
127*c8a0e2f4SThomas Veermanx_libraries=NONE
128*c8a0e2f4SThomas Veerman
129*c8a0e2f4SThomas Veerman# Installation directory options.
130*c8a0e2f4SThomas Veerman# These are left unexpanded so users can "make install exec_prefix=/foo"
131*c8a0e2f4SThomas Veerman# and all the variables that are supposed to be based on exec_prefix
132*c8a0e2f4SThomas Veerman# by default will actually change.
133*c8a0e2f4SThomas Veerman# Use braces instead of parens because sh, perl, etc. also accept them.
134*c8a0e2f4SThomas Veermanbindir='${exec_prefix}/bin'
135*c8a0e2f4SThomas Veermansbindir='${exec_prefix}/sbin'
136*c8a0e2f4SThomas Veermanlibexecdir='${exec_prefix}/libexec'
137*c8a0e2f4SThomas Veermandatadir='${prefix}/share'
138*c8a0e2f4SThomas Veermansysconfdir='${prefix}/etc'
139*c8a0e2f4SThomas Veermansharedstatedir='${prefix}/com'
140*c8a0e2f4SThomas Veermanlocalstatedir='${prefix}/var'
141*c8a0e2f4SThomas Veermanlibdir='${exec_prefix}/lib'
142*c8a0e2f4SThomas Veermanincludedir='${prefix}/include'
143*c8a0e2f4SThomas Veermanoldincludedir='/usr/include'
144*c8a0e2f4SThomas Veermaninfodir='${prefix}/info'
145*c8a0e2f4SThomas Veermanmandir='${prefix}/man'
146*c8a0e2f4SThomas Veerman
147*c8a0e2f4SThomas Veerman# Identity of this package.
148*c8a0e2f4SThomas VeermanPACKAGE_NAME='make'
149*c8a0e2f4SThomas VeermanPACKAGE_TARNAME='make'
150*c8a0e2f4SThomas VeermanPACKAGE_VERSION='noversion'
151*c8a0e2f4SThomas VeermanPACKAGE_STRING='make noversion'
152*c8a0e2f4SThomas VeermanPACKAGE_BUGREPORT='bin-bug-people@NetBSD.org'
153*c8a0e2f4SThomas Veerman
154*c8a0e2f4SThomas Veermanac_prev=
155*c8a0e2f4SThomas Veermanfor ac_option
156*c8a0e2f4SThomas Veermando
157*c8a0e2f4SThomas Veerman  # If the previous option needs an argument, assign it.
158*c8a0e2f4SThomas Veerman  if test -n "$ac_prev"; then
159*c8a0e2f4SThomas Veerman    eval "$ac_prev=\$ac_option"
160*c8a0e2f4SThomas Veerman    ac_prev=
161*c8a0e2f4SThomas Veerman    continue
162*c8a0e2f4SThomas Veerman  fi
163*c8a0e2f4SThomas Veerman
164*c8a0e2f4SThomas Veerman  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
165*c8a0e2f4SThomas Veerman
166*c8a0e2f4SThomas Veerman  # Accept the important Cygnus configure options, so we can diagnose typos.
167*c8a0e2f4SThomas Veerman
168*c8a0e2f4SThomas Veerman  case $ac_option in
169*c8a0e2f4SThomas Veerman
170*c8a0e2f4SThomas Veerman  -bindir | --bindir | --bindi | --bind | --bin | --bi)
171*c8a0e2f4SThomas Veerman    ac_prev=bindir ;;
172*c8a0e2f4SThomas Veerman  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173*c8a0e2f4SThomas Veerman    bindir=$ac_optarg ;;
174*c8a0e2f4SThomas Veerman
175*c8a0e2f4SThomas Veerman  -build | --build | --buil | --bui | --bu)
176*c8a0e2f4SThomas Veerman    ac_prev=build_alias ;;
177*c8a0e2f4SThomas Veerman  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178*c8a0e2f4SThomas Veerman    build_alias=$ac_optarg ;;
179*c8a0e2f4SThomas Veerman
180*c8a0e2f4SThomas Veerman  -cache-file | --cache-file | --cache-fil | --cache-fi \
181*c8a0e2f4SThomas Veerman  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182*c8a0e2f4SThomas Veerman    ac_prev=cache_file ;;
183*c8a0e2f4SThomas Veerman  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184*c8a0e2f4SThomas Veerman  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185*c8a0e2f4SThomas Veerman    cache_file=$ac_optarg ;;
186*c8a0e2f4SThomas Veerman
187*c8a0e2f4SThomas Veerman  --config-cache | -C)
188*c8a0e2f4SThomas Veerman    cache_file=config.cache ;;
189*c8a0e2f4SThomas Veerman
190*c8a0e2f4SThomas Veerman  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191*c8a0e2f4SThomas Veerman    ac_prev=datadir ;;
192*c8a0e2f4SThomas Veerman  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193*c8a0e2f4SThomas Veerman  | --da=*)
194*c8a0e2f4SThomas Veerman    datadir=$ac_optarg ;;
195*c8a0e2f4SThomas Veerman
196*c8a0e2f4SThomas Veerman  -disable-* | --disable-*)
197*c8a0e2f4SThomas Veerman    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198*c8a0e2f4SThomas Veerman    # Reject names that are not valid shell variable names.
199*c8a0e2f4SThomas Veerman    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200*c8a0e2f4SThomas Veerman      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
202*c8a0e2f4SThomas Veerman    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203*c8a0e2f4SThomas Veerman    eval "enable_$ac_feature=no" ;;
204*c8a0e2f4SThomas Veerman
205*c8a0e2f4SThomas Veerman  -enable-* | --enable-*)
206*c8a0e2f4SThomas Veerman    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207*c8a0e2f4SThomas Veerman    # Reject names that are not valid shell variable names.
208*c8a0e2f4SThomas Veerman    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209*c8a0e2f4SThomas Veerman      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
211*c8a0e2f4SThomas Veerman    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212*c8a0e2f4SThomas Veerman    case $ac_option in
213*c8a0e2f4SThomas Veerman      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
214*c8a0e2f4SThomas Veerman      *) ac_optarg=yes ;;
215*c8a0e2f4SThomas Veerman    esac
216*c8a0e2f4SThomas Veerman    eval "enable_$ac_feature='$ac_optarg'" ;;
217*c8a0e2f4SThomas Veerman
218*c8a0e2f4SThomas Veerman  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219*c8a0e2f4SThomas Veerman  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220*c8a0e2f4SThomas Veerman  | --exec | --exe | --ex)
221*c8a0e2f4SThomas Veerman    ac_prev=exec_prefix ;;
222*c8a0e2f4SThomas Veerman  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223*c8a0e2f4SThomas Veerman  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224*c8a0e2f4SThomas Veerman  | --exec=* | --exe=* | --ex=*)
225*c8a0e2f4SThomas Veerman    exec_prefix=$ac_optarg ;;
226*c8a0e2f4SThomas Veerman
227*c8a0e2f4SThomas Veerman  -gas | --gas | --ga | --g)
228*c8a0e2f4SThomas Veerman    # Obsolete; use --with-gas.
229*c8a0e2f4SThomas Veerman    with_gas=yes ;;
230*c8a0e2f4SThomas Veerman
231*c8a0e2f4SThomas Veerman  -help | --help | --hel | --he | -h)
232*c8a0e2f4SThomas Veerman    ac_init_help=long ;;
233*c8a0e2f4SThomas Veerman  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234*c8a0e2f4SThomas Veerman    ac_init_help=recursive ;;
235*c8a0e2f4SThomas Veerman  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236*c8a0e2f4SThomas Veerman    ac_init_help=short ;;
237*c8a0e2f4SThomas Veerman
238*c8a0e2f4SThomas Veerman  -host | --host | --hos | --ho)
239*c8a0e2f4SThomas Veerman    ac_prev=host_alias ;;
240*c8a0e2f4SThomas Veerman  -host=* | --host=* | --hos=* | --ho=*)
241*c8a0e2f4SThomas Veerman    host_alias=$ac_optarg ;;
242*c8a0e2f4SThomas Veerman
243*c8a0e2f4SThomas Veerman  -includedir | --includedir | --includedi | --included | --include \
244*c8a0e2f4SThomas Veerman  | --includ | --inclu | --incl | --inc)
245*c8a0e2f4SThomas Veerman    ac_prev=includedir ;;
246*c8a0e2f4SThomas Veerman  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247*c8a0e2f4SThomas Veerman  | --includ=* | --inclu=* | --incl=* | --inc=*)
248*c8a0e2f4SThomas Veerman    includedir=$ac_optarg ;;
249*c8a0e2f4SThomas Veerman
250*c8a0e2f4SThomas Veerman  -infodir | --infodir | --infodi | --infod | --info | --inf)
251*c8a0e2f4SThomas Veerman    ac_prev=infodir ;;
252*c8a0e2f4SThomas Veerman  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253*c8a0e2f4SThomas Veerman    infodir=$ac_optarg ;;
254*c8a0e2f4SThomas Veerman
255*c8a0e2f4SThomas Veerman  -libdir | --libdir | --libdi | --libd)
256*c8a0e2f4SThomas Veerman    ac_prev=libdir ;;
257*c8a0e2f4SThomas Veerman  -libdir=* | --libdir=* | --libdi=* | --libd=*)
258*c8a0e2f4SThomas Veerman    libdir=$ac_optarg ;;
259*c8a0e2f4SThomas Veerman
260*c8a0e2f4SThomas Veerman  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261*c8a0e2f4SThomas Veerman  | --libexe | --libex | --libe)
262*c8a0e2f4SThomas Veerman    ac_prev=libexecdir ;;
263*c8a0e2f4SThomas Veerman  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264*c8a0e2f4SThomas Veerman  | --libexe=* | --libex=* | --libe=*)
265*c8a0e2f4SThomas Veerman    libexecdir=$ac_optarg ;;
266*c8a0e2f4SThomas Veerman
267*c8a0e2f4SThomas Veerman  -localstatedir | --localstatedir | --localstatedi | --localstated \
268*c8a0e2f4SThomas Veerman  | --localstate | --localstat | --localsta | --localst \
269*c8a0e2f4SThomas Veerman  | --locals | --local | --loca | --loc | --lo)
270*c8a0e2f4SThomas Veerman    ac_prev=localstatedir ;;
271*c8a0e2f4SThomas Veerman  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272*c8a0e2f4SThomas Veerman  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273*c8a0e2f4SThomas Veerman  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274*c8a0e2f4SThomas Veerman    localstatedir=$ac_optarg ;;
275*c8a0e2f4SThomas Veerman
276*c8a0e2f4SThomas Veerman  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277*c8a0e2f4SThomas Veerman    ac_prev=mandir ;;
278*c8a0e2f4SThomas Veerman  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279*c8a0e2f4SThomas Veerman    mandir=$ac_optarg ;;
280*c8a0e2f4SThomas Veerman
281*c8a0e2f4SThomas Veerman  -nfp | --nfp | --nf)
282*c8a0e2f4SThomas Veerman    # Obsolete; use --without-fp.
283*c8a0e2f4SThomas Veerman    with_fp=no ;;
284*c8a0e2f4SThomas Veerman
285*c8a0e2f4SThomas Veerman  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286*c8a0e2f4SThomas Veerman  | --no-cr | --no-c)
287*c8a0e2f4SThomas Veerman    no_create=yes ;;
288*c8a0e2f4SThomas Veerman
289*c8a0e2f4SThomas Veerman  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290*c8a0e2f4SThomas Veerman  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291*c8a0e2f4SThomas Veerman    no_recursion=yes ;;
292*c8a0e2f4SThomas Veerman
293*c8a0e2f4SThomas Veerman  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294*c8a0e2f4SThomas Veerman  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295*c8a0e2f4SThomas Veerman  | --oldin | --oldi | --old | --ol | --o)
296*c8a0e2f4SThomas Veerman    ac_prev=oldincludedir ;;
297*c8a0e2f4SThomas Veerman  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298*c8a0e2f4SThomas Veerman  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299*c8a0e2f4SThomas Veerman  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300*c8a0e2f4SThomas Veerman    oldincludedir=$ac_optarg ;;
301*c8a0e2f4SThomas Veerman
302*c8a0e2f4SThomas Veerman  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303*c8a0e2f4SThomas Veerman    ac_prev=prefix ;;
304*c8a0e2f4SThomas Veerman  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305*c8a0e2f4SThomas Veerman    prefix=$ac_optarg ;;
306*c8a0e2f4SThomas Veerman
307*c8a0e2f4SThomas Veerman  -program-prefix | --program-prefix | --program-prefi | --program-pref \
308*c8a0e2f4SThomas Veerman  | --program-pre | --program-pr | --program-p)
309*c8a0e2f4SThomas Veerman    ac_prev=program_prefix ;;
310*c8a0e2f4SThomas Veerman  -program-prefix=* | --program-prefix=* | --program-prefi=* \
311*c8a0e2f4SThomas Veerman  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312*c8a0e2f4SThomas Veerman    program_prefix=$ac_optarg ;;
313*c8a0e2f4SThomas Veerman
314*c8a0e2f4SThomas Veerman  -program-suffix | --program-suffix | --program-suffi | --program-suff \
315*c8a0e2f4SThomas Veerman  | --program-suf | --program-su | --program-s)
316*c8a0e2f4SThomas Veerman    ac_prev=program_suffix ;;
317*c8a0e2f4SThomas Veerman  -program-suffix=* | --program-suffix=* | --program-suffi=* \
318*c8a0e2f4SThomas Veerman  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319*c8a0e2f4SThomas Veerman    program_suffix=$ac_optarg ;;
320*c8a0e2f4SThomas Veerman
321*c8a0e2f4SThomas Veerman  -program-transform-name | --program-transform-name \
322*c8a0e2f4SThomas Veerman  | --program-transform-nam | --program-transform-na \
323*c8a0e2f4SThomas Veerman  | --program-transform-n | --program-transform- \
324*c8a0e2f4SThomas Veerman  | --program-transform | --program-transfor \
325*c8a0e2f4SThomas Veerman  | --program-transfo | --program-transf \
326*c8a0e2f4SThomas Veerman  | --program-trans | --program-tran \
327*c8a0e2f4SThomas Veerman  | --progr-tra | --program-tr | --program-t)
328*c8a0e2f4SThomas Veerman    ac_prev=program_transform_name ;;
329*c8a0e2f4SThomas Veerman  -program-transform-name=* | --program-transform-name=* \
330*c8a0e2f4SThomas Veerman  | --program-transform-nam=* | --program-transform-na=* \
331*c8a0e2f4SThomas Veerman  | --program-transform-n=* | --program-transform-=* \
332*c8a0e2f4SThomas Veerman  | --program-transform=* | --program-transfor=* \
333*c8a0e2f4SThomas Veerman  | --program-transfo=* | --program-transf=* \
334*c8a0e2f4SThomas Veerman  | --program-trans=* | --program-tran=* \
335*c8a0e2f4SThomas Veerman  | --progr-tra=* | --program-tr=* | --program-t=*)
336*c8a0e2f4SThomas Veerman    program_transform_name=$ac_optarg ;;
337*c8a0e2f4SThomas Veerman
338*c8a0e2f4SThomas Veerman  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339*c8a0e2f4SThomas Veerman  | -silent | --silent | --silen | --sile | --sil)
340*c8a0e2f4SThomas Veerman    silent=yes ;;
341*c8a0e2f4SThomas Veerman
342*c8a0e2f4SThomas Veerman  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343*c8a0e2f4SThomas Veerman    ac_prev=sbindir ;;
344*c8a0e2f4SThomas Veerman  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345*c8a0e2f4SThomas Veerman  | --sbi=* | --sb=*)
346*c8a0e2f4SThomas Veerman    sbindir=$ac_optarg ;;
347*c8a0e2f4SThomas Veerman
348*c8a0e2f4SThomas Veerman  -sharedstatedir | --sharedstatedir | --sharedstatedi \
349*c8a0e2f4SThomas Veerman  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350*c8a0e2f4SThomas Veerman  | --sharedst | --shareds | --shared | --share | --shar \
351*c8a0e2f4SThomas Veerman  | --sha | --sh)
352*c8a0e2f4SThomas Veerman    ac_prev=sharedstatedir ;;
353*c8a0e2f4SThomas Veerman  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354*c8a0e2f4SThomas Veerman  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355*c8a0e2f4SThomas Veerman  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356*c8a0e2f4SThomas Veerman  | --sha=* | --sh=*)
357*c8a0e2f4SThomas Veerman    sharedstatedir=$ac_optarg ;;
358*c8a0e2f4SThomas Veerman
359*c8a0e2f4SThomas Veerman  -site | --site | --sit)
360*c8a0e2f4SThomas Veerman    ac_prev=site ;;
361*c8a0e2f4SThomas Veerman  -site=* | --site=* | --sit=*)
362*c8a0e2f4SThomas Veerman    site=$ac_optarg ;;
363*c8a0e2f4SThomas Veerman
364*c8a0e2f4SThomas Veerman  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365*c8a0e2f4SThomas Veerman    ac_prev=srcdir ;;
366*c8a0e2f4SThomas Veerman  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367*c8a0e2f4SThomas Veerman    srcdir=$ac_optarg ;;
368*c8a0e2f4SThomas Veerman
369*c8a0e2f4SThomas Veerman  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370*c8a0e2f4SThomas Veerman  | --syscon | --sysco | --sysc | --sys | --sy)
371*c8a0e2f4SThomas Veerman    ac_prev=sysconfdir ;;
372*c8a0e2f4SThomas Veerman  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373*c8a0e2f4SThomas Veerman  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374*c8a0e2f4SThomas Veerman    sysconfdir=$ac_optarg ;;
375*c8a0e2f4SThomas Veerman
376*c8a0e2f4SThomas Veerman  -target | --target | --targe | --targ | --tar | --ta | --t)
377*c8a0e2f4SThomas Veerman    ac_prev=target_alias ;;
378*c8a0e2f4SThomas Veerman  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379*c8a0e2f4SThomas Veerman    target_alias=$ac_optarg ;;
380*c8a0e2f4SThomas Veerman
381*c8a0e2f4SThomas Veerman  -v | -verbose | --verbose | --verbos | --verbo | --verb)
382*c8a0e2f4SThomas Veerman    verbose=yes ;;
383*c8a0e2f4SThomas Veerman
384*c8a0e2f4SThomas Veerman  -version | --version | --versio | --versi | --vers | -V)
385*c8a0e2f4SThomas Veerman    ac_init_version=: ;;
386*c8a0e2f4SThomas Veerman
387*c8a0e2f4SThomas Veerman  -with-* | --with-*)
388*c8a0e2f4SThomas Veerman    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389*c8a0e2f4SThomas Veerman    # Reject names that are not valid shell variable names.
390*c8a0e2f4SThomas Veerman    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391*c8a0e2f4SThomas Veerman      { echo "$as_me: error: invalid package name: $ac_package" >&2
392*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
393*c8a0e2f4SThomas Veerman    ac_package=`echo $ac_package| sed 's/-/_/g'`
394*c8a0e2f4SThomas Veerman    case $ac_option in
395*c8a0e2f4SThomas Veerman      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
396*c8a0e2f4SThomas Veerman      *) ac_optarg=yes ;;
397*c8a0e2f4SThomas Veerman    esac
398*c8a0e2f4SThomas Veerman    eval "with_$ac_package='$ac_optarg'" ;;
399*c8a0e2f4SThomas Veerman
400*c8a0e2f4SThomas Veerman  -without-* | --without-*)
401*c8a0e2f4SThomas Veerman    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402*c8a0e2f4SThomas Veerman    # Reject names that are not valid shell variable names.
403*c8a0e2f4SThomas Veerman    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404*c8a0e2f4SThomas Veerman      { echo "$as_me: error: invalid package name: $ac_package" >&2
405*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
406*c8a0e2f4SThomas Veerman    ac_package=`echo $ac_package | sed 's/-/_/g'`
407*c8a0e2f4SThomas Veerman    eval "with_$ac_package=no" ;;
408*c8a0e2f4SThomas Veerman
409*c8a0e2f4SThomas Veerman  --x)
410*c8a0e2f4SThomas Veerman    # Obsolete; use --with-x.
411*c8a0e2f4SThomas Veerman    with_x=yes ;;
412*c8a0e2f4SThomas Veerman
413*c8a0e2f4SThomas Veerman  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414*c8a0e2f4SThomas Veerman  | --x-incl | --x-inc | --x-in | --x-i)
415*c8a0e2f4SThomas Veerman    ac_prev=x_includes ;;
416*c8a0e2f4SThomas Veerman  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417*c8a0e2f4SThomas Veerman  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418*c8a0e2f4SThomas Veerman    x_includes=$ac_optarg ;;
419*c8a0e2f4SThomas Veerman
420*c8a0e2f4SThomas Veerman  -x-libraries | --x-libraries | --x-librarie | --x-librari \
421*c8a0e2f4SThomas Veerman  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422*c8a0e2f4SThomas Veerman    ac_prev=x_libraries ;;
423*c8a0e2f4SThomas Veerman  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424*c8a0e2f4SThomas Veerman  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425*c8a0e2f4SThomas Veerman    x_libraries=$ac_optarg ;;
426*c8a0e2f4SThomas Veerman
427*c8a0e2f4SThomas Veerman  -*) { echo "$as_me: error: unrecognized option: $ac_option
428*c8a0e2f4SThomas VeermanTry \`$0 --help' for more information." >&2
429*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
430*c8a0e2f4SThomas Veerman    ;;
431*c8a0e2f4SThomas Veerman
432*c8a0e2f4SThomas Veerman  *=*)
433*c8a0e2f4SThomas Veerman    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434*c8a0e2f4SThomas Veerman    # Reject names that are not valid shell variable names.
435*c8a0e2f4SThomas Veerman    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436*c8a0e2f4SThomas Veerman      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
438*c8a0e2f4SThomas Veerman    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439*c8a0e2f4SThomas Veerman    eval "$ac_envvar='$ac_optarg'"
440*c8a0e2f4SThomas Veerman    export $ac_envvar ;;
441*c8a0e2f4SThomas Veerman
442*c8a0e2f4SThomas Veerman  *)
443*c8a0e2f4SThomas Veerman    # FIXME: should be removed in autoconf 3.0.
444*c8a0e2f4SThomas Veerman    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445*c8a0e2f4SThomas Veerman    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446*c8a0e2f4SThomas Veerman      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447*c8a0e2f4SThomas Veerman    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
448*c8a0e2f4SThomas Veerman    ;;
449*c8a0e2f4SThomas Veerman
450*c8a0e2f4SThomas Veerman  esac
451*c8a0e2f4SThomas Veermandone
452*c8a0e2f4SThomas Veerman
453*c8a0e2f4SThomas Veermanif test -n "$ac_prev"; then
454*c8a0e2f4SThomas Veerman  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455*c8a0e2f4SThomas Veerman  { echo "$as_me: error: missing argument to $ac_option" >&2
456*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
457*c8a0e2f4SThomas Veermanfi
458*c8a0e2f4SThomas Veerman
459*c8a0e2f4SThomas Veerman# Be sure to have absolute paths.
460*c8a0e2f4SThomas Veermanfor ac_var in exec_prefix prefix
461*c8a0e2f4SThomas Veermando
462*c8a0e2f4SThomas Veerman  eval ac_val=$`echo $ac_var`
463*c8a0e2f4SThomas Veerman  case $ac_val in
464*c8a0e2f4SThomas Veerman    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465*c8a0e2f4SThomas Veerman    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; };;
467*c8a0e2f4SThomas Veerman  esac
468*c8a0e2f4SThomas Veermandone
469*c8a0e2f4SThomas Veerman
470*c8a0e2f4SThomas Veerman# Be sure to have absolute paths.
471*c8a0e2f4SThomas Veermanfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472*c8a0e2f4SThomas Veerman              localstatedir libdir includedir oldincludedir infodir mandir
473*c8a0e2f4SThomas Veermando
474*c8a0e2f4SThomas Veerman  eval ac_val=$`echo $ac_var`
475*c8a0e2f4SThomas Veerman  case $ac_val in
476*c8a0e2f4SThomas Veerman    [\\/$]* | ?:[\\/]* ) ;;
477*c8a0e2f4SThomas Veerman    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; };;
479*c8a0e2f4SThomas Veerman  esac
480*c8a0e2f4SThomas Veermandone
481*c8a0e2f4SThomas Veerman
482*c8a0e2f4SThomas Veerman# There might be people who depend on the old broken behavior: `$host'
483*c8a0e2f4SThomas Veerman# used to hold the argument of --host etc.
484*c8a0e2f4SThomas Veermanbuild=$build_alias
485*c8a0e2f4SThomas Veermanhost=$host_alias
486*c8a0e2f4SThomas Veermantarget=$target_alias
487*c8a0e2f4SThomas Veerman
488*c8a0e2f4SThomas Veerman# FIXME: should be removed in autoconf 3.0.
489*c8a0e2f4SThomas Veermanif test "x$host_alias" != x; then
490*c8a0e2f4SThomas Veerman  if test "x$build_alias" = x; then
491*c8a0e2f4SThomas Veerman    cross_compiling=maybe
492*c8a0e2f4SThomas Veerman    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493*c8a0e2f4SThomas Veerman    If a cross compiler is detected then cross compile mode will be used." >&2
494*c8a0e2f4SThomas Veerman  elif test "x$build_alias" != "x$host_alias"; then
495*c8a0e2f4SThomas Veerman    cross_compiling=yes
496*c8a0e2f4SThomas Veerman  fi
497*c8a0e2f4SThomas Veermanfi
498*c8a0e2f4SThomas Veerman
499*c8a0e2f4SThomas Veermanac_tool_prefix=
500*c8a0e2f4SThomas Veermantest -n "$host_alias" && ac_tool_prefix=$host_alias-
501*c8a0e2f4SThomas Veerman
502*c8a0e2f4SThomas Veermantest "$silent" = yes && exec 6>/dev/null
503*c8a0e2f4SThomas Veerman
504*c8a0e2f4SThomas Veerman# Find the source files, if location was not specified.
505*c8a0e2f4SThomas Veermanif test -z "$srcdir"; then
506*c8a0e2f4SThomas Veerman  ac_srcdir_defaulted=yes
507*c8a0e2f4SThomas Veerman  # Try the directory containing this script, then its parent.
508*c8a0e2f4SThomas Veerman  ac_prog=$0
509*c8a0e2f4SThomas Veerman  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510*c8a0e2f4SThomas Veerman  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511*c8a0e2f4SThomas Veerman  srcdir=$ac_confdir
512*c8a0e2f4SThomas Veerman  if test ! -r $srcdir/$ac_unique_file; then
513*c8a0e2f4SThomas Veerman    srcdir=..
514*c8a0e2f4SThomas Veerman  fi
515*c8a0e2f4SThomas Veermanelse
516*c8a0e2f4SThomas Veerman  ac_srcdir_defaulted=no
517*c8a0e2f4SThomas Veermanfi
518*c8a0e2f4SThomas Veermanif test ! -r $srcdir/$ac_unique_file; then
519*c8a0e2f4SThomas Veerman  if test "$ac_srcdir_defaulted" = yes; then
520*c8a0e2f4SThomas Veerman    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
522*c8a0e2f4SThomas Veerman  else
523*c8a0e2f4SThomas Veerman    { echo "$as_me: error: cannot find sources in $srcdir" >&2
524*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
525*c8a0e2f4SThomas Veerman  fi
526*c8a0e2f4SThomas Veermanfi
527*c8a0e2f4SThomas Veermansrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528*c8a0e2f4SThomas Veermanac_env_build_alias_set=${build_alias+set}
529*c8a0e2f4SThomas Veermanac_env_build_alias_value=$build_alias
530*c8a0e2f4SThomas Veermanac_cv_env_build_alias_set=${build_alias+set}
531*c8a0e2f4SThomas Veermanac_cv_env_build_alias_value=$build_alias
532*c8a0e2f4SThomas Veermanac_env_host_alias_set=${host_alias+set}
533*c8a0e2f4SThomas Veermanac_env_host_alias_value=$host_alias
534*c8a0e2f4SThomas Veermanac_cv_env_host_alias_set=${host_alias+set}
535*c8a0e2f4SThomas Veermanac_cv_env_host_alias_value=$host_alias
536*c8a0e2f4SThomas Veermanac_env_target_alias_set=${target_alias+set}
537*c8a0e2f4SThomas Veermanac_env_target_alias_value=$target_alias
538*c8a0e2f4SThomas Veermanac_cv_env_target_alias_set=${target_alias+set}
539*c8a0e2f4SThomas Veermanac_cv_env_target_alias_value=$target_alias
540*c8a0e2f4SThomas Veermanac_env_CC_set=${CC+set}
541*c8a0e2f4SThomas Veermanac_env_CC_value=$CC
542*c8a0e2f4SThomas Veermanac_cv_env_CC_set=${CC+set}
543*c8a0e2f4SThomas Veermanac_cv_env_CC_value=$CC
544*c8a0e2f4SThomas Veermanac_env_CFLAGS_set=${CFLAGS+set}
545*c8a0e2f4SThomas Veermanac_env_CFLAGS_value=$CFLAGS
546*c8a0e2f4SThomas Veermanac_cv_env_CFLAGS_set=${CFLAGS+set}
547*c8a0e2f4SThomas Veermanac_cv_env_CFLAGS_value=$CFLAGS
548*c8a0e2f4SThomas Veermanac_env_LDFLAGS_set=${LDFLAGS+set}
549*c8a0e2f4SThomas Veermanac_env_LDFLAGS_value=$LDFLAGS
550*c8a0e2f4SThomas Veermanac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551*c8a0e2f4SThomas Veermanac_cv_env_LDFLAGS_value=$LDFLAGS
552*c8a0e2f4SThomas Veermanac_env_CPPFLAGS_set=${CPPFLAGS+set}
553*c8a0e2f4SThomas Veermanac_env_CPPFLAGS_value=$CPPFLAGS
554*c8a0e2f4SThomas Veermanac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555*c8a0e2f4SThomas Veermanac_cv_env_CPPFLAGS_value=$CPPFLAGS
556*c8a0e2f4SThomas Veermanac_env_CPP_set=${CPP+set}
557*c8a0e2f4SThomas Veermanac_env_CPP_value=$CPP
558*c8a0e2f4SThomas Veermanac_cv_env_CPP_set=${CPP+set}
559*c8a0e2f4SThomas Veermanac_cv_env_CPP_value=$CPP
560*c8a0e2f4SThomas Veerman
561*c8a0e2f4SThomas Veerman#
562*c8a0e2f4SThomas Veerman# Report the --help message.
563*c8a0e2f4SThomas Veerman#
564*c8a0e2f4SThomas Veermanif test "$ac_init_help" = "long"; then
565*c8a0e2f4SThomas Veerman  # Omit some internal or obsolete options to make the list less imposing.
566*c8a0e2f4SThomas Veerman  # This message is too long to be a string in the A/UX 3.1 sh.
567*c8a0e2f4SThomas Veerman  cat <<EOF
568*c8a0e2f4SThomas Veerman\`configure' configures make noversion to adapt to many kinds of systems.
569*c8a0e2f4SThomas Veerman
570*c8a0e2f4SThomas VeermanUsage: $0 [OPTION]... [VAR=VALUE]...
571*c8a0e2f4SThomas Veerman
572*c8a0e2f4SThomas VeermanTo assign environment variables (e.g., CC, CFLAGS...), specify them as
573*c8a0e2f4SThomas VeermanVAR=VALUE.  See below for descriptions of some of the useful variables.
574*c8a0e2f4SThomas Veerman
575*c8a0e2f4SThomas VeermanDefaults for the options are specified in brackets.
576*c8a0e2f4SThomas Veerman
577*c8a0e2f4SThomas VeermanConfiguration:
578*c8a0e2f4SThomas Veerman  -h, --help              display this help and exit
579*c8a0e2f4SThomas Veerman      --help=short        display options specific to this package
580*c8a0e2f4SThomas Veerman      --help=recursive    display the short help of all the included packages
581*c8a0e2f4SThomas Veerman  -V, --version           display version information and exit
582*c8a0e2f4SThomas Veerman  -q, --quiet, --silent   do not print \`checking...' messages
583*c8a0e2f4SThomas Veerman      --cache-file=FILE   cache test results in FILE [disabled]
584*c8a0e2f4SThomas Veerman  -C, --config-cache      alias for \`--cache-file=config.cache'
585*c8a0e2f4SThomas Veerman  -n, --no-create         do not create output files
586*c8a0e2f4SThomas Veerman      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
587*c8a0e2f4SThomas Veerman
588*c8a0e2f4SThomas VeermanEOF
589*c8a0e2f4SThomas Veerman
590*c8a0e2f4SThomas Veerman  cat <<EOF
591*c8a0e2f4SThomas VeermanInstallation directories:
592*c8a0e2f4SThomas Veerman  --prefix=PREFIX         install architecture-independent files in PREFIX
593*c8a0e2f4SThomas Veerman                          [$ac_default_prefix]
594*c8a0e2f4SThomas Veerman  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
595*c8a0e2f4SThomas Veerman                          [PREFIX]
596*c8a0e2f4SThomas Veerman
597*c8a0e2f4SThomas VeermanBy default, \`make install' will install all the files in
598*c8a0e2f4SThomas Veerman\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
599*c8a0e2f4SThomas Veermanan installation prefix other than \`$ac_default_prefix' using \`--prefix',
600*c8a0e2f4SThomas Veermanfor instance \`--prefix=\$HOME'.
601*c8a0e2f4SThomas Veerman
602*c8a0e2f4SThomas VeermanFor better control, use the options below.
603*c8a0e2f4SThomas Veerman
604*c8a0e2f4SThomas VeermanFine tuning of the installation directories:
605*c8a0e2f4SThomas Veerman  --bindir=DIR           user executables [EPREFIX/bin]
606*c8a0e2f4SThomas Veerman  --sbindir=DIR          system admin executables [EPREFIX/sbin]
607*c8a0e2f4SThomas Veerman  --libexecdir=DIR       program executables [EPREFIX/libexec]
608*c8a0e2f4SThomas Veerman  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
609*c8a0e2f4SThomas Veerman  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
610*c8a0e2f4SThomas Veerman  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
611*c8a0e2f4SThomas Veerman  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
612*c8a0e2f4SThomas Veerman  --libdir=DIR           object code libraries [EPREFIX/lib]
613*c8a0e2f4SThomas Veerman  --includedir=DIR       C header files [PREFIX/include]
614*c8a0e2f4SThomas Veerman  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
615*c8a0e2f4SThomas Veerman  --infodir=DIR          info documentation [PREFIX/info]
616*c8a0e2f4SThomas Veerman  --mandir=DIR           man documentation [PREFIX/man]
617*c8a0e2f4SThomas VeermanEOF
618*c8a0e2f4SThomas Veerman
619*c8a0e2f4SThomas Veerman  cat <<\EOF
620*c8a0e2f4SThomas VeermanEOF
621*c8a0e2f4SThomas Veermanfi
622*c8a0e2f4SThomas Veerman
623*c8a0e2f4SThomas Veermanif test -n "$ac_init_help"; then
624*c8a0e2f4SThomas Veerman  case $ac_init_help in
625*c8a0e2f4SThomas Veerman     short | recursive ) echo "Configuration of make noversion:";;
626*c8a0e2f4SThomas Veerman   esac
627*c8a0e2f4SThomas Veerman  cat <<\EOF
628*c8a0e2f4SThomas Veerman
629*c8a0e2f4SThomas VeermanSome influential environment variables:
630*c8a0e2f4SThomas Veerman  CC          C compiler command
631*c8a0e2f4SThomas Veerman  CFLAGS      C compiler flags
632*c8a0e2f4SThomas Veerman  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
633*c8a0e2f4SThomas Veerman              nonstandard directory <lib dir>
634*c8a0e2f4SThomas Veerman  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
635*c8a0e2f4SThomas Veerman              headers in a nonstandard directory <include dir>
636*c8a0e2f4SThomas Veerman  CPP         C preprocessor
637*c8a0e2f4SThomas Veerman
638*c8a0e2f4SThomas VeermanUse these variables to override the choices made by `configure' or to help
639*c8a0e2f4SThomas Veermanit to find libraries and programs with nonstandard names/locations.
640*c8a0e2f4SThomas Veerman
641*c8a0e2f4SThomas VeermanReport bugs to <bin-bug-people@NetBSD.org>.
642*c8a0e2f4SThomas VeermanEOF
643*c8a0e2f4SThomas Veermanfi
644*c8a0e2f4SThomas Veerman
645*c8a0e2f4SThomas Veermanif test "$ac_init_help" = "recursive"; then
646*c8a0e2f4SThomas Veerman  # If there are subdirs, report their specific --help.
647*c8a0e2f4SThomas Veerman  ac_popdir=`pwd`
648*c8a0e2f4SThomas Veerman  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
649*c8a0e2f4SThomas Veerman    cd $ac_subdir
650*c8a0e2f4SThomas Veerman    # A "../" for each directory in /$ac_subdir.
651*c8a0e2f4SThomas Veerman    ac_dots=`echo $ac_subdir |
652*c8a0e2f4SThomas Veerman             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
653*c8a0e2f4SThomas Veerman
654*c8a0e2f4SThomas Veerman    case $srcdir in
655*c8a0e2f4SThomas Veerman    .) # No --srcdir option.  We are building in place.
656*c8a0e2f4SThomas Veerman      ac_sub_srcdir=$srcdir ;;
657*c8a0e2f4SThomas Veerman    [\\/]* | ?:[\\/]* ) # Absolute path.
658*c8a0e2f4SThomas Veerman      ac_sub_srcdir=$srcdir/$ac_subdir ;;
659*c8a0e2f4SThomas Veerman    *) # Relative path.
660*c8a0e2f4SThomas Veerman      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
661*c8a0e2f4SThomas Veerman    esac
662*c8a0e2f4SThomas Veerman
663*c8a0e2f4SThomas Veerman    # Check for guested configure; otherwise get Cygnus style configure.
664*c8a0e2f4SThomas Veerman    if test -f $ac_sub_srcdir/configure.gnu; then
665*c8a0e2f4SThomas Veerman      echo
666*c8a0e2f4SThomas Veerman      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
667*c8a0e2f4SThomas Veerman    elif test -f $ac_sub_srcdir/configure; then
668*c8a0e2f4SThomas Veerman      echo
669*c8a0e2f4SThomas Veerman      $SHELL $ac_sub_srcdir/configure  --help=recursive
670*c8a0e2f4SThomas Veerman    elif test -f $ac_sub_srcdir/configure.ac ||
671*c8a0e2f4SThomas Veerman           test -f $ac_sub_srcdir/configure.in; then
672*c8a0e2f4SThomas Veerman      echo
673*c8a0e2f4SThomas Veerman      $ac_configure --help
674*c8a0e2f4SThomas Veerman    else
675*c8a0e2f4SThomas Veerman      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
676*c8a0e2f4SThomas Veerman    fi
677*c8a0e2f4SThomas Veerman    cd $ac_popdir
678*c8a0e2f4SThomas Veerman  done
679*c8a0e2f4SThomas Veermanfi
680*c8a0e2f4SThomas Veerman
681*c8a0e2f4SThomas Veermantest -n "$ac_init_help" && exit 0
682*c8a0e2f4SThomas Veermanif $ac_init_version; then
683*c8a0e2f4SThomas Veerman  cat <<\EOF
684*c8a0e2f4SThomas Veermanmake configure noversion
685*c8a0e2f4SThomas Veermangenerated by GNU Autoconf 2.52
686*c8a0e2f4SThomas Veerman
687*c8a0e2f4SThomas VeermanCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
688*c8a0e2f4SThomas VeermanFree Software Foundation, Inc.
689*c8a0e2f4SThomas VeermanThis configure script is free software; the Free Software Foundation
690*c8a0e2f4SThomas Veermangives unlimited permission to copy, distribute and modify it.
691*c8a0e2f4SThomas VeermanEOF
692*c8a0e2f4SThomas Veerman  exit 0
693*c8a0e2f4SThomas Veermanfi
694*c8a0e2f4SThomas Veermanexec 5>config.log
695*c8a0e2f4SThomas Veermancat >&5 <<EOF
696*c8a0e2f4SThomas VeermanThis file contains any messages produced by compilers while
697*c8a0e2f4SThomas Veermanrunning configure, to aid debugging if configure makes a mistake.
698*c8a0e2f4SThomas Veerman
699*c8a0e2f4SThomas VeermanIt was created by make $as_me noversion, which was
700*c8a0e2f4SThomas Veermangenerated by GNU Autoconf 2.52.  Invocation command line was
701*c8a0e2f4SThomas Veerman
702*c8a0e2f4SThomas Veerman  $ $0 $@
703*c8a0e2f4SThomas Veerman
704*c8a0e2f4SThomas VeermanEOF
705*c8a0e2f4SThomas Veerman{
706*c8a0e2f4SThomas Veermancat <<_ASUNAME
707*c8a0e2f4SThomas Veerman## ---------- ##
708*c8a0e2f4SThomas Veerman## Platform.  ##
709*c8a0e2f4SThomas Veerman## ---------- ##
710*c8a0e2f4SThomas Veerman
711*c8a0e2f4SThomas Veermanhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
712*c8a0e2f4SThomas Veermanuname -m = `(uname -m) 2>/dev/null || echo unknown`
713*c8a0e2f4SThomas Veermanuname -r = `(uname -r) 2>/dev/null || echo unknown`
714*c8a0e2f4SThomas Veermanuname -s = `(uname -s) 2>/dev/null || echo unknown`
715*c8a0e2f4SThomas Veermanuname -v = `(uname -v) 2>/dev/null || echo unknown`
716*c8a0e2f4SThomas Veerman
717*c8a0e2f4SThomas Veerman/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
718*c8a0e2f4SThomas Veerman/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
719*c8a0e2f4SThomas Veerman
720*c8a0e2f4SThomas Veerman/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
721*c8a0e2f4SThomas Veerman/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
722*c8a0e2f4SThomas Veerman/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
723*c8a0e2f4SThomas Veermanhostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
724*c8a0e2f4SThomas Veerman/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
725*c8a0e2f4SThomas Veerman/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
726*c8a0e2f4SThomas Veerman/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
727*c8a0e2f4SThomas Veerman
728*c8a0e2f4SThomas VeermanPATH = $PATH
729*c8a0e2f4SThomas Veerman
730*c8a0e2f4SThomas Veerman_ASUNAME
731*c8a0e2f4SThomas Veerman} >&5
732*c8a0e2f4SThomas Veerman
733*c8a0e2f4SThomas Veermancat >&5 <<EOF
734*c8a0e2f4SThomas Veerman## ------------ ##
735*c8a0e2f4SThomas Veerman## Core tests.  ##
736*c8a0e2f4SThomas Veerman## ------------ ##
737*c8a0e2f4SThomas Veerman
738*c8a0e2f4SThomas VeermanEOF
739*c8a0e2f4SThomas Veerman
740*c8a0e2f4SThomas Veerman# Keep a trace of the command line.
741*c8a0e2f4SThomas Veerman# Strip out --no-create and --no-recursion so they do not pile up.
742*c8a0e2f4SThomas Veerman# Also quote any args containing shell meta-characters.
743*c8a0e2f4SThomas Veermanac_configure_args=
744*c8a0e2f4SThomas Veermanac_sep=
745*c8a0e2f4SThomas Veermanfor ac_arg
746*c8a0e2f4SThomas Veermando
747*c8a0e2f4SThomas Veerman  case $ac_arg in
748*c8a0e2f4SThomas Veerman  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
749*c8a0e2f4SThomas Veerman  | --no-cr | --no-c) ;;
750*c8a0e2f4SThomas Veerman  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
751*c8a0e2f4SThomas Veerman  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
752*c8a0e2f4SThomas Veerman  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
753*c8a0e2f4SThomas Veerman    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
754*c8a0e2f4SThomas Veerman    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
755*c8a0e2f4SThomas Veerman    ac_sep=" " ;;
756*c8a0e2f4SThomas Veerman  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
757*c8a0e2f4SThomas Veerman     ac_sep=" " ;;
758*c8a0e2f4SThomas Veerman  esac
759*c8a0e2f4SThomas Veerman  # Get rid of the leading space.
760*c8a0e2f4SThomas Veermandone
761*c8a0e2f4SThomas Veerman
762*c8a0e2f4SThomas Veerman# When interrupted or exit'd, cleanup temporary files, and complete
763*c8a0e2f4SThomas Veerman# config.log.  We remove comments because anyway the quotes in there
764*c8a0e2f4SThomas Veerman# would cause problems or look ugly.
765*c8a0e2f4SThomas Veermantrap 'exit_status=$?
766*c8a0e2f4SThomas Veerman  # Save into config.log some information that might help in debugging.
767*c8a0e2f4SThomas Veerman  echo >&5
768*c8a0e2f4SThomas Veerman  echo "## ----------------- ##" >&5
769*c8a0e2f4SThomas Veerman  echo "## Cache variables.  ##" >&5
770*c8a0e2f4SThomas Veerman  echo "## ----------------- ##" >&5
771*c8a0e2f4SThomas Veerman  echo >&5
772*c8a0e2f4SThomas Veerman  # The following way of writing the cache mishandles newlines in values,
773*c8a0e2f4SThomas Veerman{
774*c8a0e2f4SThomas Veerman  (set) 2>&1 |
775*c8a0e2f4SThomas Veerman    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
776*c8a0e2f4SThomas Veerman    *ac_space=\ *)
777*c8a0e2f4SThomas Veerman      sed -n \
778*c8a0e2f4SThomas Veerman        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
779*c8a0e2f4SThomas Veerman    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
780*c8a0e2f4SThomas Veerman      ;;
781*c8a0e2f4SThomas Veerman    *)
782*c8a0e2f4SThomas Veerman      sed -n \
783*c8a0e2f4SThomas Veerman        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
784*c8a0e2f4SThomas Veerman      ;;
785*c8a0e2f4SThomas Veerman    esac;
786*c8a0e2f4SThomas Veerman} >&5
787*c8a0e2f4SThomas Veerman  sed "/^$/d" confdefs.h >conftest.log
788*c8a0e2f4SThomas Veerman  if test -s conftest.log; then
789*c8a0e2f4SThomas Veerman    echo >&5
790*c8a0e2f4SThomas Veerman    echo "## ------------ ##" >&5
791*c8a0e2f4SThomas Veerman    echo "## confdefs.h.  ##" >&5
792*c8a0e2f4SThomas Veerman    echo "## ------------ ##" >&5
793*c8a0e2f4SThomas Veerman    echo >&5
794*c8a0e2f4SThomas Veerman    cat conftest.log >&5
795*c8a0e2f4SThomas Veerman  fi
796*c8a0e2f4SThomas Veerman  (echo; echo) >&5
797*c8a0e2f4SThomas Veerman  test "$ac_signal" != 0 &&
798*c8a0e2f4SThomas Veerman    echo "$as_me: caught signal $ac_signal" >&5
799*c8a0e2f4SThomas Veerman  echo "$as_me: exit $exit_status" >&5
800*c8a0e2f4SThomas Veerman  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
801*c8a0e2f4SThomas Veerman    exit $exit_status
802*c8a0e2f4SThomas Veerman     ' 0
803*c8a0e2f4SThomas Veermanfor ac_signal in 1 2 13 15; do
804*c8a0e2f4SThomas Veerman  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
805*c8a0e2f4SThomas Veermandone
806*c8a0e2f4SThomas Veermanac_signal=0
807*c8a0e2f4SThomas Veerman
808*c8a0e2f4SThomas Veerman# confdefs.h avoids OS command line length limits that DEFS can exceed.
809*c8a0e2f4SThomas Veermanrm -rf conftest* confdefs.h
810*c8a0e2f4SThomas Veerman# AIX cpp loses on an empty file, so make sure it contains at least a newline.
811*c8a0e2f4SThomas Veermanecho >confdefs.h
812*c8a0e2f4SThomas Veerman
813*c8a0e2f4SThomas Veerman# Let the site file select an alternate cache file if it wants to.
814*c8a0e2f4SThomas Veerman# Prefer explicitly selected file to automatically selected ones.
815*c8a0e2f4SThomas Veermanif test -z "$CONFIG_SITE"; then
816*c8a0e2f4SThomas Veerman  if test "x$prefix" != xNONE; then
817*c8a0e2f4SThomas Veerman    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
818*c8a0e2f4SThomas Veerman  else
819*c8a0e2f4SThomas Veerman    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
820*c8a0e2f4SThomas Veerman  fi
821*c8a0e2f4SThomas Veermanfi
822*c8a0e2f4SThomas Veermanfor ac_site_file in $CONFIG_SITE; do
823*c8a0e2f4SThomas Veerman  if test -r "$ac_site_file"; then
824*c8a0e2f4SThomas Veerman    { echo "$as_me:824: loading site script $ac_site_file" >&5
825*c8a0e2f4SThomas Veermanecho "$as_me: loading site script $ac_site_file" >&6;}
826*c8a0e2f4SThomas Veerman    cat "$ac_site_file" >&5
827*c8a0e2f4SThomas Veerman    . "$ac_site_file"
828*c8a0e2f4SThomas Veerman  fi
829*c8a0e2f4SThomas Veermandone
830*c8a0e2f4SThomas Veerman
831*c8a0e2f4SThomas Veermanif test -r "$cache_file"; then
832*c8a0e2f4SThomas Veerman  # Some versions of bash will fail to source /dev/null (special
833*c8a0e2f4SThomas Veerman  # files actually), so we avoid doing that.
834*c8a0e2f4SThomas Veerman  if test -f "$cache_file"; then
835*c8a0e2f4SThomas Veerman    { echo "$as_me:835: loading cache $cache_file" >&5
836*c8a0e2f4SThomas Veermanecho "$as_me: loading cache $cache_file" >&6;}
837*c8a0e2f4SThomas Veerman    case $cache_file in
838*c8a0e2f4SThomas Veerman      [\\/]* | ?:[\\/]* ) . $cache_file;;
839*c8a0e2f4SThomas Veerman      *)                      . ./$cache_file;;
840*c8a0e2f4SThomas Veerman    esac
841*c8a0e2f4SThomas Veerman  fi
842*c8a0e2f4SThomas Veermanelse
843*c8a0e2f4SThomas Veerman  { echo "$as_me:843: creating cache $cache_file" >&5
844*c8a0e2f4SThomas Veermanecho "$as_me: creating cache $cache_file" >&6;}
845*c8a0e2f4SThomas Veerman  >$cache_file
846*c8a0e2f4SThomas Veermanfi
847*c8a0e2f4SThomas Veerman
848*c8a0e2f4SThomas Veerman# Check that the precious variables saved in the cache have kept the same
849*c8a0e2f4SThomas Veerman# value.
850*c8a0e2f4SThomas Veermanac_cache_corrupted=false
851*c8a0e2f4SThomas Veermanfor ac_var in `(set) 2>&1 |
852*c8a0e2f4SThomas Veerman               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
853*c8a0e2f4SThomas Veerman  eval ac_old_set=\$ac_cv_env_${ac_var}_set
854*c8a0e2f4SThomas Veerman  eval ac_new_set=\$ac_env_${ac_var}_set
855*c8a0e2f4SThomas Veerman  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
856*c8a0e2f4SThomas Veerman  eval ac_new_val="\$ac_env_${ac_var}_value"
857*c8a0e2f4SThomas Veerman  case $ac_old_set,$ac_new_set in
858*c8a0e2f4SThomas Veerman    set,)
859*c8a0e2f4SThomas Veerman      { echo "$as_me:859: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
860*c8a0e2f4SThomas Veermanecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
861*c8a0e2f4SThomas Veerman      ac_cache_corrupted=: ;;
862*c8a0e2f4SThomas Veerman    ,set)
863*c8a0e2f4SThomas Veerman      { echo "$as_me:863: error: \`$ac_var' was not set in the previous run" >&5
864*c8a0e2f4SThomas Veermanecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
865*c8a0e2f4SThomas Veerman      ac_cache_corrupted=: ;;
866*c8a0e2f4SThomas Veerman    ,);;
867*c8a0e2f4SThomas Veerman    *)
868*c8a0e2f4SThomas Veerman      if test "x$ac_old_val" != "x$ac_new_val"; then
869*c8a0e2f4SThomas Veerman        { echo "$as_me:869: error: \`$ac_var' has changed since the previous run:" >&5
870*c8a0e2f4SThomas Veermanecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
871*c8a0e2f4SThomas Veerman        { echo "$as_me:871:   former value:  $ac_old_val" >&5
872*c8a0e2f4SThomas Veermanecho "$as_me:   former value:  $ac_old_val" >&2;}
873*c8a0e2f4SThomas Veerman        { echo "$as_me:873:   current value: $ac_new_val" >&5
874*c8a0e2f4SThomas Veermanecho "$as_me:   current value: $ac_new_val" >&2;}
875*c8a0e2f4SThomas Veerman        ac_cache_corrupted=:
876*c8a0e2f4SThomas Veerman      fi;;
877*c8a0e2f4SThomas Veerman  esac
878*c8a0e2f4SThomas Veerman  # Pass precious variables to config.status.  It doesn't matter if
879*c8a0e2f4SThomas Veerman  # we pass some twice (in addition to the command line arguments).
880*c8a0e2f4SThomas Veerman  if test "$ac_new_set" = set; then
881*c8a0e2f4SThomas Veerman    case $ac_new_val in
882*c8a0e2f4SThomas Veerman    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
883*c8a0e2f4SThomas Veerman      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
884*c8a0e2f4SThomas Veerman      ac_configure_args="$ac_configure_args '$ac_arg'"
885*c8a0e2f4SThomas Veerman      ;;
886*c8a0e2f4SThomas Veerman    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
887*c8a0e2f4SThomas Veerman       ;;
888*c8a0e2f4SThomas Veerman    esac
889*c8a0e2f4SThomas Veerman  fi
890*c8a0e2f4SThomas Veermandone
891*c8a0e2f4SThomas Veermanif $ac_cache_corrupted; then
892*c8a0e2f4SThomas Veerman  { echo "$as_me:892: error: changes in the environment can compromise the build" >&5
893*c8a0e2f4SThomas Veermanecho "$as_me: error: changes in the environment can compromise the build" >&2;}
894*c8a0e2f4SThomas Veerman  { { echo "$as_me:894: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
895*c8a0e2f4SThomas Veermanecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
896*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
897*c8a0e2f4SThomas Veermanfi
898*c8a0e2f4SThomas Veerman
899*c8a0e2f4SThomas Veermanac_ext=c
900*c8a0e2f4SThomas Veermanac_cpp='$CPP $CPPFLAGS'
901*c8a0e2f4SThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
902*c8a0e2f4SThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
903*c8a0e2f4SThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
904*c8a0e2f4SThomas Veerman
905*c8a0e2f4SThomas Veermancase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
906*c8a0e2f4SThomas Veerman  *c*,-n*) ECHO_N= ECHO_C='
907*c8a0e2f4SThomas Veerman' ECHO_T='	' ;;
908*c8a0e2f4SThomas Veerman  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
909*c8a0e2f4SThomas Veerman  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
910*c8a0e2f4SThomas Veermanesac
911*c8a0e2f4SThomas Veermanecho "#! $SHELL" >conftest.sh
912*c8a0e2f4SThomas Veermanecho  "exit 0"   >>conftest.sh
913*c8a0e2f4SThomas Veermanchmod +x conftest.sh
914*c8a0e2f4SThomas Veermanif { (echo "$as_me:914: PATH=\".;.\"; conftest.sh") >&5
915*c8a0e2f4SThomas Veerman  (PATH=".;."; conftest.sh) 2>&5
916*c8a0e2f4SThomas Veerman  ac_status=$?
917*c8a0e2f4SThomas Veerman  echo "$as_me:917: \$? = $ac_status" >&5
918*c8a0e2f4SThomas Veerman  (exit $ac_status); }; then
919*c8a0e2f4SThomas Veerman  ac_path_separator=';'
920*c8a0e2f4SThomas Veermanelse
921*c8a0e2f4SThomas Veerman  ac_path_separator=:
922*c8a0e2f4SThomas Veermanfi
923*c8a0e2f4SThomas VeermanPATH_SEPARATOR="$ac_path_separator"
924*c8a0e2f4SThomas Veermanrm -f conftest.sh
925*c8a0e2f4SThomas Veerman
926*c8a0e2f4SThomas Veermanac_config_files="$ac_config_files buildmake.sh"
927*c8a0e2f4SThomas Veerman
928*c8a0e2f4SThomas Veerman# Extract the first word of "sh", so it can be a program name with args.
929*c8a0e2f4SThomas Veermanset dummy sh; ac_word=$2
930*c8a0e2f4SThomas Veermanecho "$as_me:930: checking for $ac_word" >&5
931*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
932*c8a0e2f4SThomas Veermanif test "${ac_cv_path_BSHELL+set}" = set; then
933*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
934*c8a0e2f4SThomas Veermanelse
935*c8a0e2f4SThomas Veerman  case $BSHELL in
936*c8a0e2f4SThomas Veerman  [\\/]* | ?:[\\/]*)
937*c8a0e2f4SThomas Veerman  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
938*c8a0e2f4SThomas Veerman  ;;
939*c8a0e2f4SThomas Veerman  *)
940*c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
941*c8a0e2f4SThomas Veermanac_dummy="$PATH"
942*c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
943*c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
944*c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
945*c8a0e2f4SThomas Veerman  if $as_executable_p "$ac_dir/$ac_word"; then
946*c8a0e2f4SThomas Veerman   ac_cv_path_BSHELL="$ac_dir/$ac_word"
947*c8a0e2f4SThomas Veerman   echo "$as_me:947: found $ac_dir/$ac_word" >&5
948*c8a0e2f4SThomas Veerman   break
949*c8a0e2f4SThomas Veermanfi
950*c8a0e2f4SThomas Veermandone
951*c8a0e2f4SThomas Veerman
952*c8a0e2f4SThomas Veerman  ;;
953*c8a0e2f4SThomas Veermanesac
954*c8a0e2f4SThomas Veermanfi
955*c8a0e2f4SThomas VeermanBSHELL=$ac_cv_path_BSHELL
956*c8a0e2f4SThomas Veerman
957*c8a0e2f4SThomas Veermanif test -n "$BSHELL"; then
958*c8a0e2f4SThomas Veerman  echo "$as_me:958: result: $BSHELL" >&5
959*c8a0e2f4SThomas Veermanecho "${ECHO_T}$BSHELL" >&6
960*c8a0e2f4SThomas Veermanelse
961*c8a0e2f4SThomas Veerman  echo "$as_me:961: result: no" >&5
962*c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
963*c8a0e2f4SThomas Veermanfi
964*c8a0e2f4SThomas Veerman
965*c8a0e2f4SThomas Veermanif test x"$BSHELL" = x; then
966*c8a0e2f4SThomas Veerman    { { echo "$as_me:966: error: sh must be somewhere on \$PATH, or BSHELL must be defined" >&5
967*c8a0e2f4SThomas Veermanecho "$as_me: error: sh must be somewhere on \$PATH, or BSHELL must be defined" >&2;}
968*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
969*c8a0e2f4SThomas Veermanfi
970*c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
971*c8a0e2f4SThomas Veerman#define DEFSHELL_CUSTOM "${BSHELL}"
972*c8a0e2f4SThomas VeermanEOF
973*c8a0e2f4SThomas Veerman
974*c8a0e2f4SThomas Veerman# Make sure we have POSIX regex ability.
975*c8a0e2f4SThomas Veermanac_ext=c
976*c8a0e2f4SThomas Veermanac_cpp='$CPP $CPPFLAGS'
977*c8a0e2f4SThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
978*c8a0e2f4SThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
979*c8a0e2f4SThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
980*c8a0e2f4SThomas Veermanif test -n "$ac_tool_prefix"; then
981*c8a0e2f4SThomas Veerman  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
982*c8a0e2f4SThomas Veermanset dummy ${ac_tool_prefix}gcc; ac_word=$2
983*c8a0e2f4SThomas Veermanecho "$as_me:983: checking for $ac_word" >&5
984*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
985*c8a0e2f4SThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
986*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
987*c8a0e2f4SThomas Veermanelse
988*c8a0e2f4SThomas Veerman  if test -n "$CC"; then
989*c8a0e2f4SThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
990*c8a0e2f4SThomas Veermanelse
991*c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
992*c8a0e2f4SThomas Veermanac_dummy="$PATH"
993*c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
994*c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
995*c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
996*c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
997*c8a0e2f4SThomas Veermanac_cv_prog_CC="${ac_tool_prefix}gcc"
998*c8a0e2f4SThomas Veermanecho "$as_me:998: found $ac_dir/$ac_word" >&5
999*c8a0e2f4SThomas Veermanbreak
1000*c8a0e2f4SThomas Veermandone
1001*c8a0e2f4SThomas Veerman
1002*c8a0e2f4SThomas Veermanfi
1003*c8a0e2f4SThomas Veermanfi
1004*c8a0e2f4SThomas VeermanCC=$ac_cv_prog_CC
1005*c8a0e2f4SThomas Veermanif test -n "$CC"; then
1006*c8a0e2f4SThomas Veerman  echo "$as_me:1006: result: $CC" >&5
1007*c8a0e2f4SThomas Veermanecho "${ECHO_T}$CC" >&6
1008*c8a0e2f4SThomas Veermanelse
1009*c8a0e2f4SThomas Veerman  echo "$as_me:1009: result: no" >&5
1010*c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1011*c8a0e2f4SThomas Veermanfi
1012*c8a0e2f4SThomas Veerman
1013*c8a0e2f4SThomas Veermanfi
1014*c8a0e2f4SThomas Veermanif test -z "$ac_cv_prog_CC"; then
1015*c8a0e2f4SThomas Veerman  ac_ct_CC=$CC
1016*c8a0e2f4SThomas Veerman  # Extract the first word of "gcc", so it can be a program name with args.
1017*c8a0e2f4SThomas Veermanset dummy gcc; ac_word=$2
1018*c8a0e2f4SThomas Veermanecho "$as_me:1018: checking for $ac_word" >&5
1019*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1020*c8a0e2f4SThomas Veermanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1021*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1022*c8a0e2f4SThomas Veermanelse
1023*c8a0e2f4SThomas Veerman  if test -n "$ac_ct_CC"; then
1024*c8a0e2f4SThomas Veerman  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1025*c8a0e2f4SThomas Veermanelse
1026*c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1027*c8a0e2f4SThomas Veermanac_dummy="$PATH"
1028*c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1029*c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1030*c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1031*c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1032*c8a0e2f4SThomas Veermanac_cv_prog_ac_ct_CC="gcc"
1033*c8a0e2f4SThomas Veermanecho "$as_me:1033: found $ac_dir/$ac_word" >&5
1034*c8a0e2f4SThomas Veermanbreak
1035*c8a0e2f4SThomas Veermandone
1036*c8a0e2f4SThomas Veerman
1037*c8a0e2f4SThomas Veermanfi
1038*c8a0e2f4SThomas Veermanfi
1039*c8a0e2f4SThomas Veermanac_ct_CC=$ac_cv_prog_ac_ct_CC
1040*c8a0e2f4SThomas Veermanif test -n "$ac_ct_CC"; then
1041*c8a0e2f4SThomas Veerman  echo "$as_me:1041: result: $ac_ct_CC" >&5
1042*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_ct_CC" >&6
1043*c8a0e2f4SThomas Veermanelse
1044*c8a0e2f4SThomas Veerman  echo "$as_me:1044: result: no" >&5
1045*c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1046*c8a0e2f4SThomas Veermanfi
1047*c8a0e2f4SThomas Veerman
1048*c8a0e2f4SThomas Veerman  CC=$ac_ct_CC
1049*c8a0e2f4SThomas Veermanelse
1050*c8a0e2f4SThomas Veerman  CC="$ac_cv_prog_CC"
1051*c8a0e2f4SThomas Veermanfi
1052*c8a0e2f4SThomas Veerman
1053*c8a0e2f4SThomas Veermanif test -z "$CC"; then
1054*c8a0e2f4SThomas Veerman  if test -n "$ac_tool_prefix"; then
1055*c8a0e2f4SThomas Veerman  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1056*c8a0e2f4SThomas Veermanset dummy ${ac_tool_prefix}cc; ac_word=$2
1057*c8a0e2f4SThomas Veermanecho "$as_me:1057: checking for $ac_word" >&5
1058*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1059*c8a0e2f4SThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
1060*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1061*c8a0e2f4SThomas Veermanelse
1062*c8a0e2f4SThomas Veerman  if test -n "$CC"; then
1063*c8a0e2f4SThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
1064*c8a0e2f4SThomas Veermanelse
1065*c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1066*c8a0e2f4SThomas Veermanac_dummy="$PATH"
1067*c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1068*c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1069*c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1070*c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1071*c8a0e2f4SThomas Veermanac_cv_prog_CC="${ac_tool_prefix}cc"
1072*c8a0e2f4SThomas Veermanecho "$as_me:1072: found $ac_dir/$ac_word" >&5
1073*c8a0e2f4SThomas Veermanbreak
1074*c8a0e2f4SThomas Veermandone
1075*c8a0e2f4SThomas Veerman
1076*c8a0e2f4SThomas Veermanfi
1077*c8a0e2f4SThomas Veermanfi
1078*c8a0e2f4SThomas VeermanCC=$ac_cv_prog_CC
1079*c8a0e2f4SThomas Veermanif test -n "$CC"; then
1080*c8a0e2f4SThomas Veerman  echo "$as_me:1080: result: $CC" >&5
1081*c8a0e2f4SThomas Veermanecho "${ECHO_T}$CC" >&6
1082*c8a0e2f4SThomas Veermanelse
1083*c8a0e2f4SThomas Veerman  echo "$as_me:1083: result: no" >&5
1084*c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1085*c8a0e2f4SThomas Veermanfi
1086*c8a0e2f4SThomas Veerman
1087*c8a0e2f4SThomas Veermanfi
1088*c8a0e2f4SThomas Veermanif test -z "$ac_cv_prog_CC"; then
1089*c8a0e2f4SThomas Veerman  ac_ct_CC=$CC
1090*c8a0e2f4SThomas Veerman  # Extract the first word of "cc", so it can be a program name with args.
1091*c8a0e2f4SThomas Veermanset dummy cc; ac_word=$2
1092*c8a0e2f4SThomas Veermanecho "$as_me:1092: checking for $ac_word" >&5
1093*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1094*c8a0e2f4SThomas Veermanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1095*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1096*c8a0e2f4SThomas Veermanelse
1097*c8a0e2f4SThomas Veerman  if test -n "$ac_ct_CC"; then
1098*c8a0e2f4SThomas Veerman  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1099*c8a0e2f4SThomas Veermanelse
1100*c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1101*c8a0e2f4SThomas Veermanac_dummy="$PATH"
1102*c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1103*c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1104*c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1105*c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1106*c8a0e2f4SThomas Veermanac_cv_prog_ac_ct_CC="cc"
1107*c8a0e2f4SThomas Veermanecho "$as_me:1107: found $ac_dir/$ac_word" >&5
1108*c8a0e2f4SThomas Veermanbreak
1109*c8a0e2f4SThomas Veermandone
1110*c8a0e2f4SThomas Veerman
1111*c8a0e2f4SThomas Veermanfi
1112*c8a0e2f4SThomas Veermanfi
1113*c8a0e2f4SThomas Veermanac_ct_CC=$ac_cv_prog_ac_ct_CC
1114*c8a0e2f4SThomas Veermanif test -n "$ac_ct_CC"; then
1115*c8a0e2f4SThomas Veerman  echo "$as_me:1115: result: $ac_ct_CC" >&5
1116*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_ct_CC" >&6
1117*c8a0e2f4SThomas Veermanelse
1118*c8a0e2f4SThomas Veerman  echo "$as_me:1118: result: no" >&5
1119*c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1120*c8a0e2f4SThomas Veermanfi
1121*c8a0e2f4SThomas Veerman
1122*c8a0e2f4SThomas Veerman  CC=$ac_ct_CC
1123*c8a0e2f4SThomas Veermanelse
1124*c8a0e2f4SThomas Veerman  CC="$ac_cv_prog_CC"
1125*c8a0e2f4SThomas Veermanfi
1126*c8a0e2f4SThomas Veerman
1127*c8a0e2f4SThomas Veermanfi
1128*c8a0e2f4SThomas Veermanif test -z "$CC"; then
1129*c8a0e2f4SThomas Veerman  # Extract the first word of "cc", so it can be a program name with args.
1130*c8a0e2f4SThomas Veermanset dummy cc; ac_word=$2
1131*c8a0e2f4SThomas Veermanecho "$as_me:1131: checking for $ac_word" >&5
1132*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1133*c8a0e2f4SThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
1134*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1135*c8a0e2f4SThomas Veermanelse
1136*c8a0e2f4SThomas Veerman  if test -n "$CC"; then
1137*c8a0e2f4SThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
1138*c8a0e2f4SThomas Veermanelse
1139*c8a0e2f4SThomas Veerman  ac_prog_rejected=no
1140*c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1141*c8a0e2f4SThomas Veermanac_dummy="$PATH"
1142*c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1143*c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1144*c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1145*c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1146*c8a0e2f4SThomas Veermanif test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1147*c8a0e2f4SThomas Veerman  ac_prog_rejected=yes
1148*c8a0e2f4SThomas Veerman  continue
1149*c8a0e2f4SThomas Veermanfi
1150*c8a0e2f4SThomas Veermanac_cv_prog_CC="cc"
1151*c8a0e2f4SThomas Veermanecho "$as_me:1151: found $ac_dir/$ac_word" >&5
1152*c8a0e2f4SThomas Veermanbreak
1153*c8a0e2f4SThomas Veermandone
1154*c8a0e2f4SThomas Veerman
1155*c8a0e2f4SThomas Veermanif test $ac_prog_rejected = yes; then
1156*c8a0e2f4SThomas Veerman  # We found a bogon in the path, so make sure we never use it.
1157*c8a0e2f4SThomas Veerman  set dummy $ac_cv_prog_CC
1158*c8a0e2f4SThomas Veerman  shift
1159*c8a0e2f4SThomas Veerman  if test $# != 0; then
1160*c8a0e2f4SThomas Veerman    # We chose a different compiler from the bogus one.
1161*c8a0e2f4SThomas Veerman    # However, it has the same basename, so the bogon will be chosen
1162*c8a0e2f4SThomas Veerman    # first if we set CC to just the basename; use the full file name.
1163*c8a0e2f4SThomas Veerman    shift
1164*c8a0e2f4SThomas Veerman    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1165*c8a0e2f4SThomas Veerman    shift
1166*c8a0e2f4SThomas Veerman    ac_cv_prog_CC="$@"
1167*c8a0e2f4SThomas Veerman  fi
1168*c8a0e2f4SThomas Veermanfi
1169*c8a0e2f4SThomas Veermanfi
1170*c8a0e2f4SThomas Veermanfi
1171*c8a0e2f4SThomas VeermanCC=$ac_cv_prog_CC
1172*c8a0e2f4SThomas Veermanif test -n "$CC"; then
1173*c8a0e2f4SThomas Veerman  echo "$as_me:1173: result: $CC" >&5
1174*c8a0e2f4SThomas Veermanecho "${ECHO_T}$CC" >&6
1175*c8a0e2f4SThomas Veermanelse
1176*c8a0e2f4SThomas Veerman  echo "$as_me:1176: result: no" >&5
1177*c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1178*c8a0e2f4SThomas Veermanfi
1179*c8a0e2f4SThomas Veerman
1180*c8a0e2f4SThomas Veermanfi
1181*c8a0e2f4SThomas Veermanif test -z "$CC"; then
1182*c8a0e2f4SThomas Veerman  if test -n "$ac_tool_prefix"; then
1183*c8a0e2f4SThomas Veerman  for ac_prog in cl
1184*c8a0e2f4SThomas Veerman  do
1185*c8a0e2f4SThomas Veerman    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1186*c8a0e2f4SThomas Veermanset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1187*c8a0e2f4SThomas Veermanecho "$as_me:1187: checking for $ac_word" >&5
1188*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1189*c8a0e2f4SThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
1190*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1191*c8a0e2f4SThomas Veermanelse
1192*c8a0e2f4SThomas Veerman  if test -n "$CC"; then
1193*c8a0e2f4SThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
1194*c8a0e2f4SThomas Veermanelse
1195*c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1196*c8a0e2f4SThomas Veermanac_dummy="$PATH"
1197*c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1198*c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1199*c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1200*c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1201*c8a0e2f4SThomas Veermanac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1202*c8a0e2f4SThomas Veermanecho "$as_me:1202: found $ac_dir/$ac_word" >&5
1203*c8a0e2f4SThomas Veermanbreak
1204*c8a0e2f4SThomas Veermandone
1205*c8a0e2f4SThomas Veerman
1206*c8a0e2f4SThomas Veermanfi
1207*c8a0e2f4SThomas Veermanfi
1208*c8a0e2f4SThomas VeermanCC=$ac_cv_prog_CC
1209*c8a0e2f4SThomas Veermanif test -n "$CC"; then
1210*c8a0e2f4SThomas Veerman  echo "$as_me:1210: result: $CC" >&5
1211*c8a0e2f4SThomas Veermanecho "${ECHO_T}$CC" >&6
1212*c8a0e2f4SThomas Veermanelse
1213*c8a0e2f4SThomas Veerman  echo "$as_me:1213: result: no" >&5
1214*c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1215*c8a0e2f4SThomas Veermanfi
1216*c8a0e2f4SThomas Veerman
1217*c8a0e2f4SThomas Veerman    test -n "$CC" && break
1218*c8a0e2f4SThomas Veerman  done
1219*c8a0e2f4SThomas Veermanfi
1220*c8a0e2f4SThomas Veermanif test -z "$CC"; then
1221*c8a0e2f4SThomas Veerman  ac_ct_CC=$CC
1222*c8a0e2f4SThomas Veerman  for ac_prog in cl
1223*c8a0e2f4SThomas Veermando
1224*c8a0e2f4SThomas Veerman  # Extract the first word of "$ac_prog", so it can be a program name with args.
1225*c8a0e2f4SThomas Veermanset dummy $ac_prog; ac_word=$2
1226*c8a0e2f4SThomas Veermanecho "$as_me:1226: checking for $ac_word" >&5
1227*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1228*c8a0e2f4SThomas Veermanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1229*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1230*c8a0e2f4SThomas Veermanelse
1231*c8a0e2f4SThomas Veerman  if test -n "$ac_ct_CC"; then
1232*c8a0e2f4SThomas Veerman  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1233*c8a0e2f4SThomas Veermanelse
1234*c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1235*c8a0e2f4SThomas Veermanac_dummy="$PATH"
1236*c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1237*c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1238*c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1239*c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1240*c8a0e2f4SThomas Veermanac_cv_prog_ac_ct_CC="$ac_prog"
1241*c8a0e2f4SThomas Veermanecho "$as_me:1241: found $ac_dir/$ac_word" >&5
1242*c8a0e2f4SThomas Veermanbreak
1243*c8a0e2f4SThomas Veermandone
1244*c8a0e2f4SThomas Veerman
1245*c8a0e2f4SThomas Veermanfi
1246*c8a0e2f4SThomas Veermanfi
1247*c8a0e2f4SThomas Veermanac_ct_CC=$ac_cv_prog_ac_ct_CC
1248*c8a0e2f4SThomas Veermanif test -n "$ac_ct_CC"; then
1249*c8a0e2f4SThomas Veerman  echo "$as_me:1249: result: $ac_ct_CC" >&5
1250*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_ct_CC" >&6
1251*c8a0e2f4SThomas Veermanelse
1252*c8a0e2f4SThomas Veerman  echo "$as_me:1252: result: no" >&5
1253*c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1254*c8a0e2f4SThomas Veermanfi
1255*c8a0e2f4SThomas Veerman
1256*c8a0e2f4SThomas Veerman  test -n "$ac_ct_CC" && break
1257*c8a0e2f4SThomas Veermandone
1258*c8a0e2f4SThomas Veerman
1259*c8a0e2f4SThomas Veerman  CC=$ac_ct_CC
1260*c8a0e2f4SThomas Veermanfi
1261*c8a0e2f4SThomas Veerman
1262*c8a0e2f4SThomas Veermanfi
1263*c8a0e2f4SThomas Veerman
1264*c8a0e2f4SThomas Veermantest -z "$CC" && { { echo "$as_me:1264: error: no acceptable cc found in \$PATH" >&5
1265*c8a0e2f4SThomas Veermanecho "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1266*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1267*c8a0e2f4SThomas Veerman
1268*c8a0e2f4SThomas Veerman# Provide some information about the compiler.
1269*c8a0e2f4SThomas Veermanecho "$as_me:1269:" \
1270*c8a0e2f4SThomas Veerman     "checking for C compiler version" >&5
1271*c8a0e2f4SThomas Veermanac_compiler=`set X $ac_compile; echo $2`
1272*c8a0e2f4SThomas Veerman{ (eval echo "$as_me:1272: \"$ac_compiler --version </dev/null >&5\"") >&5
1273*c8a0e2f4SThomas Veerman  (eval $ac_compiler --version </dev/null >&5) 2>&5
1274*c8a0e2f4SThomas Veerman  ac_status=$?
1275*c8a0e2f4SThomas Veerman  echo "$as_me:1275: \$? = $ac_status" >&5
1276*c8a0e2f4SThomas Veerman  (exit $ac_status); }
1277*c8a0e2f4SThomas Veerman{ (eval echo "$as_me:1277: \"$ac_compiler -v </dev/null >&5\"") >&5
1278*c8a0e2f4SThomas Veerman  (eval $ac_compiler -v </dev/null >&5) 2>&5
1279*c8a0e2f4SThomas Veerman  ac_status=$?
1280*c8a0e2f4SThomas Veerman  echo "$as_me:1280: \$? = $ac_status" >&5
1281*c8a0e2f4SThomas Veerman  (exit $ac_status); }
1282*c8a0e2f4SThomas Veerman{ (eval echo "$as_me:1282: \"$ac_compiler -V </dev/null >&5\"") >&5
1283*c8a0e2f4SThomas Veerman  (eval $ac_compiler -V </dev/null >&5) 2>&5
1284*c8a0e2f4SThomas Veerman  ac_status=$?
1285*c8a0e2f4SThomas Veerman  echo "$as_me:1285: \$? = $ac_status" >&5
1286*c8a0e2f4SThomas Veerman  (exit $ac_status); }
1287*c8a0e2f4SThomas Veerman
1288*c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
1289*c8a0e2f4SThomas Veerman#line 1289 "configure"
1290*c8a0e2f4SThomas Veerman#include "confdefs.h"
1291*c8a0e2f4SThomas Veerman
1292*c8a0e2f4SThomas Veermanint
1293*c8a0e2f4SThomas Veermanmain ()
1294*c8a0e2f4SThomas Veerman{
1295*c8a0e2f4SThomas Veerman
1296*c8a0e2f4SThomas Veerman  ;
1297*c8a0e2f4SThomas Veerman  return 0;
1298*c8a0e2f4SThomas Veerman}
1299*c8a0e2f4SThomas Veerman_ACEOF
1300*c8a0e2f4SThomas Veermanac_clean_files_save=$ac_clean_files
1301*c8a0e2f4SThomas Veermanac_clean_files="$ac_clean_files a.out a.exe"
1302*c8a0e2f4SThomas Veerman# Try to create an executable without -o first, disregard a.out.
1303*c8a0e2f4SThomas Veerman# It will help us diagnose broken compilers, and finding out an intuition
1304*c8a0e2f4SThomas Veerman# of exeext.
1305*c8a0e2f4SThomas Veermanecho "$as_me:1305: checking for C compiler default output" >&5
1306*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1307*c8a0e2f4SThomas Veermanac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1308*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1308: \"$ac_link_default\"") >&5
1309*c8a0e2f4SThomas Veerman  (eval $ac_link_default) 2>&5
1310*c8a0e2f4SThomas Veerman  ac_status=$?
1311*c8a0e2f4SThomas Veerman  echo "$as_me:1311: \$? = $ac_status" >&5
1312*c8a0e2f4SThomas Veerman  (exit $ac_status); }; then
1313*c8a0e2f4SThomas Veerman  # Find the output, starting from the most likely.  This scheme is
1314*c8a0e2f4SThomas Veerman# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1315*c8a0e2f4SThomas Veerman# resort.
1316*c8a0e2f4SThomas Veermanfor ac_file in `ls a.exe conftest.exe 2>/dev/null;
1317*c8a0e2f4SThomas Veerman                ls a.out conftest 2>/dev/null;
1318*c8a0e2f4SThomas Veerman                ls a.* conftest.* 2>/dev/null`; do
1319*c8a0e2f4SThomas Veerman  case $ac_file in
1320*c8a0e2f4SThomas Veerman    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1321*c8a0e2f4SThomas Veerman    a.out ) # We found the default executable, but exeext='' is most
1322*c8a0e2f4SThomas Veerman            # certainly right.
1323*c8a0e2f4SThomas Veerman            break;;
1324*c8a0e2f4SThomas Veerman    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1325*c8a0e2f4SThomas Veerman          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1326*c8a0e2f4SThomas Veerman          export ac_cv_exeext
1327*c8a0e2f4SThomas Veerman          break;;
1328*c8a0e2f4SThomas Veerman    * ) break;;
1329*c8a0e2f4SThomas Veerman  esac
1330*c8a0e2f4SThomas Veermandone
1331*c8a0e2f4SThomas Veermanelse
1332*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1333*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1334*c8a0e2f4SThomas Veerman{ { echo "$as_me:1334: error: C compiler cannot create executables" >&5
1335*c8a0e2f4SThomas Veermanecho "$as_me: error: C compiler cannot create executables" >&2;}
1336*c8a0e2f4SThomas Veerman   { (exit 77); exit 77; }; }
1337*c8a0e2f4SThomas Veermanfi
1338*c8a0e2f4SThomas Veerman
1339*c8a0e2f4SThomas Veermanac_exeext=$ac_cv_exeext
1340*c8a0e2f4SThomas Veermanecho "$as_me:1340: result: $ac_file" >&5
1341*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_file" >&6
1342*c8a0e2f4SThomas Veerman
1343*c8a0e2f4SThomas Veerman# Check the compiler produces executables we can run.  If not, either
1344*c8a0e2f4SThomas Veerman# the compiler is broken, or we cross compile.
1345*c8a0e2f4SThomas Veermanecho "$as_me:1345: checking whether the C compiler works" >&5
1346*c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1347*c8a0e2f4SThomas Veerman# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1348*c8a0e2f4SThomas Veerman# If not cross compiling, check that we can run a simple program.
1349*c8a0e2f4SThomas Veermanif test "$cross_compiling" != yes; then
1350*c8a0e2f4SThomas Veerman  if { ac_try='./$ac_file'
1351*c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1351: \"$ac_try\"") >&5
1352*c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1353*c8a0e2f4SThomas Veerman  ac_status=$?
1354*c8a0e2f4SThomas Veerman  echo "$as_me:1354: \$? = $ac_status" >&5
1355*c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1356*c8a0e2f4SThomas Veerman    cross_compiling=no
1357*c8a0e2f4SThomas Veerman  else
1358*c8a0e2f4SThomas Veerman    if test "$cross_compiling" = maybe; then
1359*c8a0e2f4SThomas Veerman	cross_compiling=yes
1360*c8a0e2f4SThomas Veerman    else
1361*c8a0e2f4SThomas Veerman	{ { echo "$as_me:1361: error: cannot run C compiled programs.
1362*c8a0e2f4SThomas VeermanIf you meant to cross compile, use \`--host'." >&5
1363*c8a0e2f4SThomas Veermanecho "$as_me: error: cannot run C compiled programs.
1364*c8a0e2f4SThomas VeermanIf you meant to cross compile, use \`--host'." >&2;}
1365*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1366*c8a0e2f4SThomas Veerman    fi
1367*c8a0e2f4SThomas Veerman  fi
1368*c8a0e2f4SThomas Veermanfi
1369*c8a0e2f4SThomas Veermanecho "$as_me:1369: result: yes" >&5
1370*c8a0e2f4SThomas Veermanecho "${ECHO_T}yes" >&6
1371*c8a0e2f4SThomas Veerman
1372*c8a0e2f4SThomas Veermanrm -f a.out a.exe conftest$ac_cv_exeext
1373*c8a0e2f4SThomas Veermanac_clean_files=$ac_clean_files_save
1374*c8a0e2f4SThomas Veerman# Check the compiler produces executables we can run.  If not, either
1375*c8a0e2f4SThomas Veerman# the compiler is broken, or we cross compile.
1376*c8a0e2f4SThomas Veermanecho "$as_me:1376: checking whether we are cross compiling" >&5
1377*c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1378*c8a0e2f4SThomas Veermanecho "$as_me:1378: result: $cross_compiling" >&5
1379*c8a0e2f4SThomas Veermanecho "${ECHO_T}$cross_compiling" >&6
1380*c8a0e2f4SThomas Veerman
1381*c8a0e2f4SThomas Veermanecho "$as_me:1381: checking for executable suffix" >&5
1382*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1383*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1383: \"$ac_link\"") >&5
1384*c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
1385*c8a0e2f4SThomas Veerman  ac_status=$?
1386*c8a0e2f4SThomas Veerman  echo "$as_me:1386: \$? = $ac_status" >&5
1387*c8a0e2f4SThomas Veerman  (exit $ac_status); }; then
1388*c8a0e2f4SThomas Veerman  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1389*c8a0e2f4SThomas Veerman# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1390*c8a0e2f4SThomas Veerman# work properly (i.e., refer to `conftest.exe'), while it won't with
1391*c8a0e2f4SThomas Veerman# `rm'.
1392*c8a0e2f4SThomas Veermanfor ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1393*c8a0e2f4SThomas Veerman  case $ac_file in
1394*c8a0e2f4SThomas Veerman    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1395*c8a0e2f4SThomas Veerman    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1396*c8a0e2f4SThomas Veerman          export ac_cv_exeext
1397*c8a0e2f4SThomas Veerman          break;;
1398*c8a0e2f4SThomas Veerman    * ) break;;
1399*c8a0e2f4SThomas Veerman  esac
1400*c8a0e2f4SThomas Veermandone
1401*c8a0e2f4SThomas Veermanelse
1402*c8a0e2f4SThomas Veerman  { { echo "$as_me:1402: error: cannot compute EXEEXT: cannot compile and link" >&5
1403*c8a0e2f4SThomas Veermanecho "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1404*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1405*c8a0e2f4SThomas Veermanfi
1406*c8a0e2f4SThomas Veerman
1407*c8a0e2f4SThomas Veermanrm -f conftest$ac_cv_exeext
1408*c8a0e2f4SThomas Veermanecho "$as_me:1408: result: $ac_cv_exeext" >&5
1409*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_exeext" >&6
1410*c8a0e2f4SThomas Veerman
1411*c8a0e2f4SThomas Veermanrm -f conftest.$ac_ext
1412*c8a0e2f4SThomas VeermanEXEEXT=$ac_cv_exeext
1413*c8a0e2f4SThomas Veermanac_exeext=$EXEEXT
1414*c8a0e2f4SThomas Veermanecho "$as_me:1414: checking for object suffix" >&5
1415*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for object suffix... $ECHO_C" >&6
1416*c8a0e2f4SThomas Veermanif test "${ac_cv_objext+set}" = set; then
1417*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1418*c8a0e2f4SThomas Veermanelse
1419*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1420*c8a0e2f4SThomas Veerman#line 1420 "configure"
1421*c8a0e2f4SThomas Veerman#include "confdefs.h"
1422*c8a0e2f4SThomas Veerman
1423*c8a0e2f4SThomas Veermanint
1424*c8a0e2f4SThomas Veermanmain ()
1425*c8a0e2f4SThomas Veerman{
1426*c8a0e2f4SThomas Veerman
1427*c8a0e2f4SThomas Veerman  ;
1428*c8a0e2f4SThomas Veerman  return 0;
1429*c8a0e2f4SThomas Veerman}
1430*c8a0e2f4SThomas Veerman_ACEOF
1431*c8a0e2f4SThomas Veermanrm -f conftest.o conftest.obj
1432*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1432: \"$ac_compile\"") >&5
1433*c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1434*c8a0e2f4SThomas Veerman  ac_status=$?
1435*c8a0e2f4SThomas Veerman  echo "$as_me:1435: \$? = $ac_status" >&5
1436*c8a0e2f4SThomas Veerman  (exit $ac_status); }; then
1437*c8a0e2f4SThomas Veerman  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1438*c8a0e2f4SThomas Veerman  case $ac_file in
1439*c8a0e2f4SThomas Veerman    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1440*c8a0e2f4SThomas Veerman    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1441*c8a0e2f4SThomas Veerman       break;;
1442*c8a0e2f4SThomas Veerman  esac
1443*c8a0e2f4SThomas Veermandone
1444*c8a0e2f4SThomas Veermanelse
1445*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1446*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1447*c8a0e2f4SThomas Veerman{ { echo "$as_me:1447: error: cannot compute OBJEXT: cannot compile" >&5
1448*c8a0e2f4SThomas Veermanecho "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1449*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1450*c8a0e2f4SThomas Veermanfi
1451*c8a0e2f4SThomas Veerman
1452*c8a0e2f4SThomas Veermanrm -f conftest.$ac_cv_objext conftest.$ac_ext
1453*c8a0e2f4SThomas Veermanfi
1454*c8a0e2f4SThomas Veermanecho "$as_me:1454: result: $ac_cv_objext" >&5
1455*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_objext" >&6
1456*c8a0e2f4SThomas VeermanOBJEXT=$ac_cv_objext
1457*c8a0e2f4SThomas Veermanac_objext=$OBJEXT
1458*c8a0e2f4SThomas Veermanecho "$as_me:1458: checking whether we are using the GNU C compiler" >&5
1459*c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1460*c8a0e2f4SThomas Veermanif test "${ac_cv_c_compiler_gnu+set}" = set; then
1461*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1462*c8a0e2f4SThomas Veermanelse
1463*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1464*c8a0e2f4SThomas Veerman#line 1464 "configure"
1465*c8a0e2f4SThomas Veerman#include "confdefs.h"
1466*c8a0e2f4SThomas Veerman
1467*c8a0e2f4SThomas Veermanint
1468*c8a0e2f4SThomas Veermanmain ()
1469*c8a0e2f4SThomas Veerman{
1470*c8a0e2f4SThomas Veerman#ifndef __GNUC__
1471*c8a0e2f4SThomas Veerman       choke me
1472*c8a0e2f4SThomas Veerman#endif
1473*c8a0e2f4SThomas Veerman
1474*c8a0e2f4SThomas Veerman  ;
1475*c8a0e2f4SThomas Veerman  return 0;
1476*c8a0e2f4SThomas Veerman}
1477*c8a0e2f4SThomas Veerman_ACEOF
1478*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1479*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1479: \"$ac_compile\"") >&5
1480*c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1481*c8a0e2f4SThomas Veerman  ac_status=$?
1482*c8a0e2f4SThomas Veerman  echo "$as_me:1482: \$? = $ac_status" >&5
1483*c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1484*c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1485*c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1485: \"$ac_try\"") >&5
1486*c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1487*c8a0e2f4SThomas Veerman  ac_status=$?
1488*c8a0e2f4SThomas Veerman  echo "$as_me:1488: \$? = $ac_status" >&5
1489*c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1490*c8a0e2f4SThomas Veerman  ac_compiler_gnu=yes
1491*c8a0e2f4SThomas Veermanelse
1492*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1493*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1494*c8a0e2f4SThomas Veermanac_compiler_gnu=no
1495*c8a0e2f4SThomas Veermanfi
1496*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
1497*c8a0e2f4SThomas Veermanac_cv_c_compiler_gnu=$ac_compiler_gnu
1498*c8a0e2f4SThomas Veerman
1499*c8a0e2f4SThomas Veermanfi
1500*c8a0e2f4SThomas Veermanecho "$as_me:1500: result: $ac_cv_c_compiler_gnu" >&5
1501*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1502*c8a0e2f4SThomas VeermanGCC=`test $ac_compiler_gnu = yes && echo yes`
1503*c8a0e2f4SThomas Veermanac_test_CFLAGS=${CFLAGS+set}
1504*c8a0e2f4SThomas Veermanac_save_CFLAGS=$CFLAGS
1505*c8a0e2f4SThomas VeermanCFLAGS="-g"
1506*c8a0e2f4SThomas Veermanecho "$as_me:1506: checking whether $CC accepts -g" >&5
1507*c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1508*c8a0e2f4SThomas Veermanif test "${ac_cv_prog_cc_g+set}" = set; then
1509*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1510*c8a0e2f4SThomas Veermanelse
1511*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1512*c8a0e2f4SThomas Veerman#line 1512 "configure"
1513*c8a0e2f4SThomas Veerman#include "confdefs.h"
1514*c8a0e2f4SThomas Veerman
1515*c8a0e2f4SThomas Veermanint
1516*c8a0e2f4SThomas Veermanmain ()
1517*c8a0e2f4SThomas Veerman{
1518*c8a0e2f4SThomas Veerman
1519*c8a0e2f4SThomas Veerman  ;
1520*c8a0e2f4SThomas Veerman  return 0;
1521*c8a0e2f4SThomas Veerman}
1522*c8a0e2f4SThomas Veerman_ACEOF
1523*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1524*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1524: \"$ac_compile\"") >&5
1525*c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1526*c8a0e2f4SThomas Veerman  ac_status=$?
1527*c8a0e2f4SThomas Veerman  echo "$as_me:1527: \$? = $ac_status" >&5
1528*c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1529*c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1530*c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1530: \"$ac_try\"") >&5
1531*c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1532*c8a0e2f4SThomas Veerman  ac_status=$?
1533*c8a0e2f4SThomas Veerman  echo "$as_me:1533: \$? = $ac_status" >&5
1534*c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1535*c8a0e2f4SThomas Veerman  ac_cv_prog_cc_g=yes
1536*c8a0e2f4SThomas Veermanelse
1537*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1538*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1539*c8a0e2f4SThomas Veermanac_cv_prog_cc_g=no
1540*c8a0e2f4SThomas Veermanfi
1541*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
1542*c8a0e2f4SThomas Veermanfi
1543*c8a0e2f4SThomas Veermanecho "$as_me:1543: result: $ac_cv_prog_cc_g" >&5
1544*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
1545*c8a0e2f4SThomas Veermanif test "$ac_test_CFLAGS" = set; then
1546*c8a0e2f4SThomas Veerman  CFLAGS=$ac_save_CFLAGS
1547*c8a0e2f4SThomas Veermanelif test $ac_cv_prog_cc_g = yes; then
1548*c8a0e2f4SThomas Veerman  if test "$GCC" = yes; then
1549*c8a0e2f4SThomas Veerman    CFLAGS="-g -O2"
1550*c8a0e2f4SThomas Veerman  else
1551*c8a0e2f4SThomas Veerman    CFLAGS="-g"
1552*c8a0e2f4SThomas Veerman  fi
1553*c8a0e2f4SThomas Veermanelse
1554*c8a0e2f4SThomas Veerman  if test "$GCC" = yes; then
1555*c8a0e2f4SThomas Veerman    CFLAGS="-O2"
1556*c8a0e2f4SThomas Veerman  else
1557*c8a0e2f4SThomas Veerman    CFLAGS=
1558*c8a0e2f4SThomas Veerman  fi
1559*c8a0e2f4SThomas Veermanfi
1560*c8a0e2f4SThomas Veerman# Some people use a C++ compiler to compile C.  Since we use `exit',
1561*c8a0e2f4SThomas Veerman# in C++ we need to declare it.  In case someone uses the same compiler
1562*c8a0e2f4SThomas Veerman# for both compiling C and C++ we need to have the C++ compiler decide
1563*c8a0e2f4SThomas Veerman# the declaration of exit, since it's the most demanding environment.
1564*c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
1565*c8a0e2f4SThomas Veerman#ifndef __cplusplus
1566*c8a0e2f4SThomas Veerman  choke me
1567*c8a0e2f4SThomas Veerman#endif
1568*c8a0e2f4SThomas Veerman_ACEOF
1569*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1570*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1570: \"$ac_compile\"") >&5
1571*c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1572*c8a0e2f4SThomas Veerman  ac_status=$?
1573*c8a0e2f4SThomas Veerman  echo "$as_me:1573: \$? = $ac_status" >&5
1574*c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1575*c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1576*c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1576: \"$ac_try\"") >&5
1577*c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1578*c8a0e2f4SThomas Veerman  ac_status=$?
1579*c8a0e2f4SThomas Veerman  echo "$as_me:1579: \$? = $ac_status" >&5
1580*c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1581*c8a0e2f4SThomas Veerman  for ac_declaration in \
1582*c8a0e2f4SThomas Veerman   ''\
1583*c8a0e2f4SThomas Veerman   '#include <stdlib.h>' \
1584*c8a0e2f4SThomas Veerman   'extern "C" void std::exit (int) throw (); using std::exit;' \
1585*c8a0e2f4SThomas Veerman   'extern "C" void std::exit (int); using std::exit;' \
1586*c8a0e2f4SThomas Veerman   'extern "C" void exit (int) throw ();' \
1587*c8a0e2f4SThomas Veerman   'extern "C" void exit (int);' \
1588*c8a0e2f4SThomas Veerman   'void exit (int);'
1589*c8a0e2f4SThomas Veermando
1590*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1591*c8a0e2f4SThomas Veerman#line 1591 "configure"
1592*c8a0e2f4SThomas Veerman#include "confdefs.h"
1593*c8a0e2f4SThomas Veerman#include <stdlib.h>
1594*c8a0e2f4SThomas Veerman$ac_declaration
1595*c8a0e2f4SThomas Veermanint
1596*c8a0e2f4SThomas Veermanmain ()
1597*c8a0e2f4SThomas Veerman{
1598*c8a0e2f4SThomas Veermanexit (42);
1599*c8a0e2f4SThomas Veerman  ;
1600*c8a0e2f4SThomas Veerman  return 0;
1601*c8a0e2f4SThomas Veerman}
1602*c8a0e2f4SThomas Veerman_ACEOF
1603*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1604*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1604: \"$ac_compile\"") >&5
1605*c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1606*c8a0e2f4SThomas Veerman  ac_status=$?
1607*c8a0e2f4SThomas Veerman  echo "$as_me:1607: \$? = $ac_status" >&5
1608*c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1609*c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1610*c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1610: \"$ac_try\"") >&5
1611*c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1612*c8a0e2f4SThomas Veerman  ac_status=$?
1613*c8a0e2f4SThomas Veerman  echo "$as_me:1613: \$? = $ac_status" >&5
1614*c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1615*c8a0e2f4SThomas Veerman  :
1616*c8a0e2f4SThomas Veermanelse
1617*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1618*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1619*c8a0e2f4SThomas Veermancontinue
1620*c8a0e2f4SThomas Veermanfi
1621*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
1622*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1623*c8a0e2f4SThomas Veerman#line 1623 "configure"
1624*c8a0e2f4SThomas Veerman#include "confdefs.h"
1625*c8a0e2f4SThomas Veerman$ac_declaration
1626*c8a0e2f4SThomas Veermanint
1627*c8a0e2f4SThomas Veermanmain ()
1628*c8a0e2f4SThomas Veerman{
1629*c8a0e2f4SThomas Veermanexit (42);
1630*c8a0e2f4SThomas Veerman  ;
1631*c8a0e2f4SThomas Veerman  return 0;
1632*c8a0e2f4SThomas Veerman}
1633*c8a0e2f4SThomas Veerman_ACEOF
1634*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1635*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1635: \"$ac_compile\"") >&5
1636*c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1637*c8a0e2f4SThomas Veerman  ac_status=$?
1638*c8a0e2f4SThomas Veerman  echo "$as_me:1638: \$? = $ac_status" >&5
1639*c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1640*c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1641*c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1641: \"$ac_try\"") >&5
1642*c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1643*c8a0e2f4SThomas Veerman  ac_status=$?
1644*c8a0e2f4SThomas Veerman  echo "$as_me:1644: \$? = $ac_status" >&5
1645*c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1646*c8a0e2f4SThomas Veerman  break
1647*c8a0e2f4SThomas Veermanelse
1648*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1649*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1650*c8a0e2f4SThomas Veermanfi
1651*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
1652*c8a0e2f4SThomas Veermandone
1653*c8a0e2f4SThomas Veermanrm -f conftest*
1654*c8a0e2f4SThomas Veermanif test -n "$ac_declaration"; then
1655*c8a0e2f4SThomas Veerman  echo '#ifdef __cplusplus' >>confdefs.h
1656*c8a0e2f4SThomas Veerman  echo $ac_declaration      >>confdefs.h
1657*c8a0e2f4SThomas Veerman  echo '#endif'             >>confdefs.h
1658*c8a0e2f4SThomas Veermanfi
1659*c8a0e2f4SThomas Veerman
1660*c8a0e2f4SThomas Veermanelse
1661*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1662*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1663*c8a0e2f4SThomas Veermanfi
1664*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
1665*c8a0e2f4SThomas Veermanac_ext=c
1666*c8a0e2f4SThomas Veermanac_cpp='$CPP $CPPFLAGS'
1667*c8a0e2f4SThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1668*c8a0e2f4SThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1669*c8a0e2f4SThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
1670*c8a0e2f4SThomas Veerman
1671*c8a0e2f4SThomas Veermanac_ext=c
1672*c8a0e2f4SThomas Veermanac_cpp='$CPP $CPPFLAGS'
1673*c8a0e2f4SThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1674*c8a0e2f4SThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1675*c8a0e2f4SThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
1676*c8a0e2f4SThomas Veermanecho "$as_me:1676: checking how to run the C preprocessor" >&5
1677*c8a0e2f4SThomas Veermanecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1678*c8a0e2f4SThomas Veerman# On Suns, sometimes $CPP names a directory.
1679*c8a0e2f4SThomas Veermanif test -n "$CPP" && test -d "$CPP"; then
1680*c8a0e2f4SThomas Veerman  CPP=
1681*c8a0e2f4SThomas Veermanfi
1682*c8a0e2f4SThomas Veermanif test -z "$CPP"; then
1683*c8a0e2f4SThomas Veerman  if test "${ac_cv_prog_CPP+set}" = set; then
1684*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1685*c8a0e2f4SThomas Veermanelse
1686*c8a0e2f4SThomas Veerman      # Double quotes because CPP needs to be expanded
1687*c8a0e2f4SThomas Veerman    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1688*c8a0e2f4SThomas Veerman    do
1689*c8a0e2f4SThomas Veerman      ac_preproc_ok=false
1690*c8a0e2f4SThomas Veermanfor ac_c_preproc_warn_flag in '' yes
1691*c8a0e2f4SThomas Veermando
1692*c8a0e2f4SThomas Veerman  # Use a header file that comes with gcc, so configuring glibc
1693*c8a0e2f4SThomas Veerman  # with a fresh cross-compiler works.
1694*c8a0e2f4SThomas Veerman  # On the NeXT, cc -E runs the code through the compiler's parser,
1695*c8a0e2f4SThomas Veerman  # not just through cpp. "Syntax error" is here to catch this case.
1696*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1697*c8a0e2f4SThomas Veerman#line 1697 "configure"
1698*c8a0e2f4SThomas Veerman#include "confdefs.h"
1699*c8a0e2f4SThomas Veerman#include <assert.h>
1700*c8a0e2f4SThomas Veerman                     Syntax error
1701*c8a0e2f4SThomas Veerman_ACEOF
1702*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1702: \"$ac_cpp conftest.$ac_ext\"") >&5
1703*c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1704*c8a0e2f4SThomas Veerman  ac_status=$?
1705*c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
1706*c8a0e2f4SThomas Veerman  rm -f conftest.er1
1707*c8a0e2f4SThomas Veerman  cat conftest.err >&5
1708*c8a0e2f4SThomas Veerman  echo "$as_me:1708: \$? = $ac_status" >&5
1709*c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
1710*c8a0e2f4SThomas Veerman  if test -s conftest.err; then
1711*c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
1712*c8a0e2f4SThomas Veerman  else
1713*c8a0e2f4SThomas Veerman    ac_cpp_err=
1714*c8a0e2f4SThomas Veerman  fi
1715*c8a0e2f4SThomas Veermanelse
1716*c8a0e2f4SThomas Veerman  ac_cpp_err=yes
1717*c8a0e2f4SThomas Veermanfi
1718*c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
1719*c8a0e2f4SThomas Veerman  :
1720*c8a0e2f4SThomas Veermanelse
1721*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1722*c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
1723*c8a0e2f4SThomas Veerman  # Broken: fails on valid input.
1724*c8a0e2f4SThomas Veermancontinue
1725*c8a0e2f4SThomas Veermanfi
1726*c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1727*c8a0e2f4SThomas Veerman
1728*c8a0e2f4SThomas Veerman  # OK, works on sane cases.  Now check whether non-existent headers
1729*c8a0e2f4SThomas Veerman  # can be detected and how.
1730*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1731*c8a0e2f4SThomas Veerman#line 1731 "configure"
1732*c8a0e2f4SThomas Veerman#include "confdefs.h"
1733*c8a0e2f4SThomas Veerman#include <ac_nonexistent.h>
1734*c8a0e2f4SThomas Veerman_ACEOF
1735*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1735: \"$ac_cpp conftest.$ac_ext\"") >&5
1736*c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1737*c8a0e2f4SThomas Veerman  ac_status=$?
1738*c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
1739*c8a0e2f4SThomas Veerman  rm -f conftest.er1
1740*c8a0e2f4SThomas Veerman  cat conftest.err >&5
1741*c8a0e2f4SThomas Veerman  echo "$as_me:1741: \$? = $ac_status" >&5
1742*c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
1743*c8a0e2f4SThomas Veerman  if test -s conftest.err; then
1744*c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
1745*c8a0e2f4SThomas Veerman  else
1746*c8a0e2f4SThomas Veerman    ac_cpp_err=
1747*c8a0e2f4SThomas Veerman  fi
1748*c8a0e2f4SThomas Veermanelse
1749*c8a0e2f4SThomas Veerman  ac_cpp_err=yes
1750*c8a0e2f4SThomas Veermanfi
1751*c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
1752*c8a0e2f4SThomas Veerman  # Broken: success on invalid input.
1753*c8a0e2f4SThomas Veermancontinue
1754*c8a0e2f4SThomas Veermanelse
1755*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1756*c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
1757*c8a0e2f4SThomas Veerman  # Passes both tests.
1758*c8a0e2f4SThomas Veermanac_preproc_ok=:
1759*c8a0e2f4SThomas Veermanbreak
1760*c8a0e2f4SThomas Veermanfi
1761*c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1762*c8a0e2f4SThomas Veerman
1763*c8a0e2f4SThomas Veermandone
1764*c8a0e2f4SThomas Veerman# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1765*c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1766*c8a0e2f4SThomas Veermanif $ac_preproc_ok; then
1767*c8a0e2f4SThomas Veerman  break
1768*c8a0e2f4SThomas Veermanfi
1769*c8a0e2f4SThomas Veerman
1770*c8a0e2f4SThomas Veerman    done
1771*c8a0e2f4SThomas Veerman    ac_cv_prog_CPP=$CPP
1772*c8a0e2f4SThomas Veerman
1773*c8a0e2f4SThomas Veermanfi
1774*c8a0e2f4SThomas Veerman  CPP=$ac_cv_prog_CPP
1775*c8a0e2f4SThomas Veermanelse
1776*c8a0e2f4SThomas Veerman  ac_cv_prog_CPP=$CPP
1777*c8a0e2f4SThomas Veermanfi
1778*c8a0e2f4SThomas Veermanecho "$as_me:1778: result: $CPP" >&5
1779*c8a0e2f4SThomas Veermanecho "${ECHO_T}$CPP" >&6
1780*c8a0e2f4SThomas Veermanac_preproc_ok=false
1781*c8a0e2f4SThomas Veermanfor ac_c_preproc_warn_flag in '' yes
1782*c8a0e2f4SThomas Veermando
1783*c8a0e2f4SThomas Veerman  # Use a header file that comes with gcc, so configuring glibc
1784*c8a0e2f4SThomas Veerman  # with a fresh cross-compiler works.
1785*c8a0e2f4SThomas Veerman  # On the NeXT, cc -E runs the code through the compiler's parser,
1786*c8a0e2f4SThomas Veerman  # not just through cpp. "Syntax error" is here to catch this case.
1787*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1788*c8a0e2f4SThomas Veerman#line 1788 "configure"
1789*c8a0e2f4SThomas Veerman#include "confdefs.h"
1790*c8a0e2f4SThomas Veerman#include <assert.h>
1791*c8a0e2f4SThomas Veerman                     Syntax error
1792*c8a0e2f4SThomas Veerman_ACEOF
1793*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1793: \"$ac_cpp conftest.$ac_ext\"") >&5
1794*c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1795*c8a0e2f4SThomas Veerman  ac_status=$?
1796*c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
1797*c8a0e2f4SThomas Veerman  rm -f conftest.er1
1798*c8a0e2f4SThomas Veerman  cat conftest.err >&5
1799*c8a0e2f4SThomas Veerman  echo "$as_me:1799: \$? = $ac_status" >&5
1800*c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
1801*c8a0e2f4SThomas Veerman  if test -s conftest.err; then
1802*c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
1803*c8a0e2f4SThomas Veerman  else
1804*c8a0e2f4SThomas Veerman    ac_cpp_err=
1805*c8a0e2f4SThomas Veerman  fi
1806*c8a0e2f4SThomas Veermanelse
1807*c8a0e2f4SThomas Veerman  ac_cpp_err=yes
1808*c8a0e2f4SThomas Veermanfi
1809*c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
1810*c8a0e2f4SThomas Veerman  :
1811*c8a0e2f4SThomas Veermanelse
1812*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1813*c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
1814*c8a0e2f4SThomas Veerman  # Broken: fails on valid input.
1815*c8a0e2f4SThomas Veermancontinue
1816*c8a0e2f4SThomas Veermanfi
1817*c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1818*c8a0e2f4SThomas Veerman
1819*c8a0e2f4SThomas Veerman  # OK, works on sane cases.  Now check whether non-existent headers
1820*c8a0e2f4SThomas Veerman  # can be detected and how.
1821*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1822*c8a0e2f4SThomas Veerman#line 1822 "configure"
1823*c8a0e2f4SThomas Veerman#include "confdefs.h"
1824*c8a0e2f4SThomas Veerman#include <ac_nonexistent.h>
1825*c8a0e2f4SThomas Veerman_ACEOF
1826*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1826: \"$ac_cpp conftest.$ac_ext\"") >&5
1827*c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1828*c8a0e2f4SThomas Veerman  ac_status=$?
1829*c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
1830*c8a0e2f4SThomas Veerman  rm -f conftest.er1
1831*c8a0e2f4SThomas Veerman  cat conftest.err >&5
1832*c8a0e2f4SThomas Veerman  echo "$as_me:1832: \$? = $ac_status" >&5
1833*c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
1834*c8a0e2f4SThomas Veerman  if test -s conftest.err; then
1835*c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
1836*c8a0e2f4SThomas Veerman  else
1837*c8a0e2f4SThomas Veerman    ac_cpp_err=
1838*c8a0e2f4SThomas Veerman  fi
1839*c8a0e2f4SThomas Veermanelse
1840*c8a0e2f4SThomas Veerman  ac_cpp_err=yes
1841*c8a0e2f4SThomas Veermanfi
1842*c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
1843*c8a0e2f4SThomas Veerman  # Broken: success on invalid input.
1844*c8a0e2f4SThomas Veermancontinue
1845*c8a0e2f4SThomas Veermanelse
1846*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1847*c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
1848*c8a0e2f4SThomas Veerman  # Passes both tests.
1849*c8a0e2f4SThomas Veermanac_preproc_ok=:
1850*c8a0e2f4SThomas Veermanbreak
1851*c8a0e2f4SThomas Veermanfi
1852*c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1853*c8a0e2f4SThomas Veerman
1854*c8a0e2f4SThomas Veermandone
1855*c8a0e2f4SThomas Veerman# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1856*c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1857*c8a0e2f4SThomas Veermanif $ac_preproc_ok; then
1858*c8a0e2f4SThomas Veerman  :
1859*c8a0e2f4SThomas Veermanelse
1860*c8a0e2f4SThomas Veerman  { { echo "$as_me:1860: error: C preprocessor \"$CPP\" fails sanity check" >&5
1861*c8a0e2f4SThomas Veermanecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1862*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1863*c8a0e2f4SThomas Veermanfi
1864*c8a0e2f4SThomas Veerman
1865*c8a0e2f4SThomas Veermanac_ext=c
1866*c8a0e2f4SThomas Veermanac_cpp='$CPP $CPPFLAGS'
1867*c8a0e2f4SThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868*c8a0e2f4SThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869*c8a0e2f4SThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
1870*c8a0e2f4SThomas Veerman
1871*c8a0e2f4SThomas Veermanecho "$as_me:1871: checking for regex.h" >&5
1872*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for regex.h... $ECHO_C" >&6
1873*c8a0e2f4SThomas Veermanif test "${ac_cv_header_regex_h+set}" = set; then
1874*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1875*c8a0e2f4SThomas Veermanelse
1876*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1877*c8a0e2f4SThomas Veerman#line 1877 "configure"
1878*c8a0e2f4SThomas Veerman#include "confdefs.h"
1879*c8a0e2f4SThomas Veerman#include <regex.h>
1880*c8a0e2f4SThomas Veerman_ACEOF
1881*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1881: \"$ac_cpp conftest.$ac_ext\"") >&5
1882*c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1883*c8a0e2f4SThomas Veerman  ac_status=$?
1884*c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
1885*c8a0e2f4SThomas Veerman  rm -f conftest.er1
1886*c8a0e2f4SThomas Veerman  cat conftest.err >&5
1887*c8a0e2f4SThomas Veerman  echo "$as_me:1887: \$? = $ac_status" >&5
1888*c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
1889*c8a0e2f4SThomas Veerman  if test -s conftest.err; then
1890*c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
1891*c8a0e2f4SThomas Veerman  else
1892*c8a0e2f4SThomas Veerman    ac_cpp_err=
1893*c8a0e2f4SThomas Veerman  fi
1894*c8a0e2f4SThomas Veermanelse
1895*c8a0e2f4SThomas Veerman  ac_cpp_err=yes
1896*c8a0e2f4SThomas Veermanfi
1897*c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
1898*c8a0e2f4SThomas Veerman  ac_cv_header_regex_h=yes
1899*c8a0e2f4SThomas Veermanelse
1900*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1901*c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
1902*c8a0e2f4SThomas Veerman  ac_cv_header_regex_h=no
1903*c8a0e2f4SThomas Veermanfi
1904*c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1905*c8a0e2f4SThomas Veermanfi
1906*c8a0e2f4SThomas Veermanecho "$as_me:1906: result: $ac_cv_header_regex_h" >&5
1907*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_header_regex_h" >&6
1908*c8a0e2f4SThomas Veermanif test $ac_cv_header_regex_h = yes; then
1909*c8a0e2f4SThomas Veerman  :
1910*c8a0e2f4SThomas Veermanelse
1911*c8a0e2f4SThomas Veerman  { { echo "$as_me:1911: error: POSIX regex.h is required" >&5
1912*c8a0e2f4SThomas Veermanecho "$as_me: error: POSIX regex.h is required" >&2;}
1913*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1914*c8a0e2f4SThomas Veermanfi
1915*c8a0e2f4SThomas Veerman
1916*c8a0e2f4SThomas Veerman# If we don't have <poll.h>, we need to use select(2).
1917*c8a0e2f4SThomas Veermanecho "$as_me:1917: checking for poll.h" >&5
1918*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for poll.h... $ECHO_C" >&6
1919*c8a0e2f4SThomas Veermanif test "${ac_cv_header_poll_h+set}" = set; then
1920*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1921*c8a0e2f4SThomas Veermanelse
1922*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1923*c8a0e2f4SThomas Veerman#line 1923 "configure"
1924*c8a0e2f4SThomas Veerman#include "confdefs.h"
1925*c8a0e2f4SThomas Veerman#include <poll.h>
1926*c8a0e2f4SThomas Veerman_ACEOF
1927*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1927: \"$ac_cpp conftest.$ac_ext\"") >&5
1928*c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1929*c8a0e2f4SThomas Veerman  ac_status=$?
1930*c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
1931*c8a0e2f4SThomas Veerman  rm -f conftest.er1
1932*c8a0e2f4SThomas Veerman  cat conftest.err >&5
1933*c8a0e2f4SThomas Veerman  echo "$as_me:1933: \$? = $ac_status" >&5
1934*c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
1935*c8a0e2f4SThomas Veerman  if test -s conftest.err; then
1936*c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
1937*c8a0e2f4SThomas Veerman  else
1938*c8a0e2f4SThomas Veerman    ac_cpp_err=
1939*c8a0e2f4SThomas Veerman  fi
1940*c8a0e2f4SThomas Veermanelse
1941*c8a0e2f4SThomas Veerman  ac_cpp_err=yes
1942*c8a0e2f4SThomas Veermanfi
1943*c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
1944*c8a0e2f4SThomas Veerman  ac_cv_header_poll_h=yes
1945*c8a0e2f4SThomas Veermanelse
1946*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1947*c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
1948*c8a0e2f4SThomas Veerman  ac_cv_header_poll_h=no
1949*c8a0e2f4SThomas Veermanfi
1950*c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1951*c8a0e2f4SThomas Veermanfi
1952*c8a0e2f4SThomas Veermanecho "$as_me:1952: result: $ac_cv_header_poll_h" >&5
1953*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_header_poll_h" >&6
1954*c8a0e2f4SThomas Veermanif test $ac_cv_header_poll_h = yes; then
1955*c8a0e2f4SThomas Veerman  :
1956*c8a0e2f4SThomas Veermanelse
1957*c8a0e2f4SThomas Veerman  cat >>confdefs.h <<\EOF
1958*c8a0e2f4SThomas Veerman#define USE_SELECT 1
1959*c8a0e2f4SThomas VeermanEOF
1960*c8a0e2f4SThomas Veerman
1961*c8a0e2f4SThomas Veermanfi
1962*c8a0e2f4SThomas Veerman
1963*c8a0e2f4SThomas Veerman# regcomp() and regexec() are also names of functions in the old V8
1964*c8a0e2f4SThomas Veerman# regexp package.  To avoid them, we need to find out who has regfree().
1965*c8a0e2f4SThomas Veerman
1966*c8a0e2f4SThomas Veermanecho "$as_me:1966: checking for regfree in -lregex" >&5
1967*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
1968*c8a0e2f4SThomas Veermanif test "${ac_cv_lib_regex_regfree+set}" = set; then
1969*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1970*c8a0e2f4SThomas Veermanelse
1971*c8a0e2f4SThomas Veerman  ac_check_lib_save_LIBS=$LIBS
1972*c8a0e2f4SThomas VeermanLIBS="-lregex  $LIBS"
1973*c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
1974*c8a0e2f4SThomas Veerman#line 1974 "configure"
1975*c8a0e2f4SThomas Veerman#include "confdefs.h"
1976*c8a0e2f4SThomas Veerman
1977*c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
1978*c8a0e2f4SThomas Veerman#ifdef __cplusplus
1979*c8a0e2f4SThomas Veermanextern "C"
1980*c8a0e2f4SThomas Veerman#endif
1981*c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
1982*c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
1983*c8a0e2f4SThomas Veermanchar regfree ();
1984*c8a0e2f4SThomas Veermanint
1985*c8a0e2f4SThomas Veermanmain ()
1986*c8a0e2f4SThomas Veerman{
1987*c8a0e2f4SThomas Veermanregfree ();
1988*c8a0e2f4SThomas Veerman  ;
1989*c8a0e2f4SThomas Veerman  return 0;
1990*c8a0e2f4SThomas Veerman}
1991*c8a0e2f4SThomas Veerman_ACEOF
1992*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
1993*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1993: \"$ac_link\"") >&5
1994*c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
1995*c8a0e2f4SThomas Veerman  ac_status=$?
1996*c8a0e2f4SThomas Veerman  echo "$as_me:1996: \$? = $ac_status" >&5
1997*c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1998*c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
1999*c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1999: \"$ac_try\"") >&5
2000*c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2001*c8a0e2f4SThomas Veerman  ac_status=$?
2002*c8a0e2f4SThomas Veerman  echo "$as_me:2002: \$? = $ac_status" >&5
2003*c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2004*c8a0e2f4SThomas Veerman  ac_cv_lib_regex_regfree=yes
2005*c8a0e2f4SThomas Veermanelse
2006*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2007*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2008*c8a0e2f4SThomas Veermanac_cv_lib_regex_regfree=no
2009*c8a0e2f4SThomas Veermanfi
2010*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2011*c8a0e2f4SThomas VeermanLIBS=$ac_check_lib_save_LIBS
2012*c8a0e2f4SThomas Veermanfi
2013*c8a0e2f4SThomas Veermanecho "$as_me:2013: result: $ac_cv_lib_regex_regfree" >&5
2014*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
2015*c8a0e2f4SThomas Veermanif test $ac_cv_lib_regex_regfree = yes; then
2016*c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
2017*c8a0e2f4SThomas Veerman#define HAVE_LIBREGEX 1
2018*c8a0e2f4SThomas VeermanEOF
2019*c8a0e2f4SThomas Veerman
2020*c8a0e2f4SThomas Veerman  LIBS="-lregex $LIBS"
2021*c8a0e2f4SThomas Veerman
2022*c8a0e2f4SThomas Veermanfi
2023*c8a0e2f4SThomas Veerman
2024*c8a0e2f4SThomas Veermanecho "$as_me:2024: checking for library containing regfree" >&5
2025*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
2026*c8a0e2f4SThomas Veermanif test "${ac_cv_search_regfree+set}" = set; then
2027*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2028*c8a0e2f4SThomas Veermanelse
2029*c8a0e2f4SThomas Veerman  ac_func_search_save_LIBS=$LIBS
2030*c8a0e2f4SThomas Veermanac_cv_search_regfree=no
2031*c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
2032*c8a0e2f4SThomas Veerman#line 2032 "configure"
2033*c8a0e2f4SThomas Veerman#include "confdefs.h"
2034*c8a0e2f4SThomas Veerman
2035*c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
2036*c8a0e2f4SThomas Veerman#ifdef __cplusplus
2037*c8a0e2f4SThomas Veermanextern "C"
2038*c8a0e2f4SThomas Veerman#endif
2039*c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
2040*c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
2041*c8a0e2f4SThomas Veermanchar regfree ();
2042*c8a0e2f4SThomas Veermanint
2043*c8a0e2f4SThomas Veermanmain ()
2044*c8a0e2f4SThomas Veerman{
2045*c8a0e2f4SThomas Veermanregfree ();
2046*c8a0e2f4SThomas Veerman  ;
2047*c8a0e2f4SThomas Veerman  return 0;
2048*c8a0e2f4SThomas Veerman}
2049*c8a0e2f4SThomas Veerman_ACEOF
2050*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
2051*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2051: \"$ac_link\"") >&5
2052*c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
2053*c8a0e2f4SThomas Veerman  ac_status=$?
2054*c8a0e2f4SThomas Veerman  echo "$as_me:2054: \$? = $ac_status" >&5
2055*c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2056*c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
2057*c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2057: \"$ac_try\"") >&5
2058*c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2059*c8a0e2f4SThomas Veerman  ac_status=$?
2060*c8a0e2f4SThomas Veerman  echo "$as_me:2060: \$? = $ac_status" >&5
2061*c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2062*c8a0e2f4SThomas Veerman  ac_cv_search_regfree="none required"
2063*c8a0e2f4SThomas Veermanelse
2064*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2065*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2066*c8a0e2f4SThomas Veermanfi
2067*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2068*c8a0e2f4SThomas Veermanif test "$ac_cv_search_regfree" = no; then
2069*c8a0e2f4SThomas Veerman  for ac_lib in rx posix; do
2070*c8a0e2f4SThomas Veerman    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2071*c8a0e2f4SThomas Veerman    cat >conftest.$ac_ext <<_ACEOF
2072*c8a0e2f4SThomas Veerman#line 2072 "configure"
2073*c8a0e2f4SThomas Veerman#include "confdefs.h"
2074*c8a0e2f4SThomas Veerman
2075*c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
2076*c8a0e2f4SThomas Veerman#ifdef __cplusplus
2077*c8a0e2f4SThomas Veermanextern "C"
2078*c8a0e2f4SThomas Veerman#endif
2079*c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
2080*c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
2081*c8a0e2f4SThomas Veermanchar regfree ();
2082*c8a0e2f4SThomas Veermanint
2083*c8a0e2f4SThomas Veermanmain ()
2084*c8a0e2f4SThomas Veerman{
2085*c8a0e2f4SThomas Veermanregfree ();
2086*c8a0e2f4SThomas Veerman  ;
2087*c8a0e2f4SThomas Veerman  return 0;
2088*c8a0e2f4SThomas Veerman}
2089*c8a0e2f4SThomas Veerman_ACEOF
2090*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
2091*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2091: \"$ac_link\"") >&5
2092*c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
2093*c8a0e2f4SThomas Veerman  ac_status=$?
2094*c8a0e2f4SThomas Veerman  echo "$as_me:2094: \$? = $ac_status" >&5
2095*c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2096*c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
2097*c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2097: \"$ac_try\"") >&5
2098*c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2099*c8a0e2f4SThomas Veerman  ac_status=$?
2100*c8a0e2f4SThomas Veerman  echo "$as_me:2100: \$? = $ac_status" >&5
2101*c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2102*c8a0e2f4SThomas Veerman  ac_cv_search_regfree="-l$ac_lib"
2103*c8a0e2f4SThomas Veermanbreak
2104*c8a0e2f4SThomas Veermanelse
2105*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2106*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2107*c8a0e2f4SThomas Veermanfi
2108*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2109*c8a0e2f4SThomas Veerman  done
2110*c8a0e2f4SThomas Veermanfi
2111*c8a0e2f4SThomas VeermanLIBS=$ac_func_search_save_LIBS
2112*c8a0e2f4SThomas Veermanfi
2113*c8a0e2f4SThomas Veermanecho "$as_me:2113: result: $ac_cv_search_regfree" >&5
2114*c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_search_regfree" >&6
2115*c8a0e2f4SThomas Veermanif test "$ac_cv_search_regfree" != no; then
2116*c8a0e2f4SThomas Veerman  test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
2117*c8a0e2f4SThomas Veerman
2118*c8a0e2f4SThomas Veermanfi
2119*c8a0e2f4SThomas Veerman
2120*c8a0e2f4SThomas Veermanfor ac_func in setenv strdup strerror strftime vsnprintf
2121*c8a0e2f4SThomas Veermando
2122*c8a0e2f4SThomas Veermanas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2123*c8a0e2f4SThomas Veermanecho "$as_me:2123: checking for $ac_func" >&5
2124*c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2125*c8a0e2f4SThomas Veermanif eval "test \"\${$as_ac_var+set}\" = set"; then
2126*c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2127*c8a0e2f4SThomas Veermanelse
2128*c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2129*c8a0e2f4SThomas Veerman#line 2129 "configure"
2130*c8a0e2f4SThomas Veerman#include "confdefs.h"
2131*c8a0e2f4SThomas Veerman/* System header to define __stub macros and hopefully few prototypes,
2132*c8a0e2f4SThomas Veerman    which can conflict with char $ac_func (); below.  */
2133*c8a0e2f4SThomas Veerman#include <assert.h>
2134*c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
2135*c8a0e2f4SThomas Veerman#ifdef __cplusplus
2136*c8a0e2f4SThomas Veermanextern "C"
2137*c8a0e2f4SThomas Veerman#endif
2138*c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
2139*c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
2140*c8a0e2f4SThomas Veermanchar $ac_func ();
2141*c8a0e2f4SThomas Veermanchar (*f) ();
2142*c8a0e2f4SThomas Veerman
2143*c8a0e2f4SThomas Veermanint
2144*c8a0e2f4SThomas Veermanmain ()
2145*c8a0e2f4SThomas Veerman{
2146*c8a0e2f4SThomas Veerman/* The GNU C library defines this for functions which it implements
2147*c8a0e2f4SThomas Veerman    to always fail with ENOSYS.  Some functions are actually named
2148*c8a0e2f4SThomas Veerman    something starting with __ and the normal name is an alias.  */
2149*c8a0e2f4SThomas Veerman#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2150*c8a0e2f4SThomas Veermanchoke me
2151*c8a0e2f4SThomas Veerman#else
2152*c8a0e2f4SThomas Veermanf = $ac_func;
2153*c8a0e2f4SThomas Veerman#endif
2154*c8a0e2f4SThomas Veerman
2155*c8a0e2f4SThomas Veerman  ;
2156*c8a0e2f4SThomas Veerman  return 0;
2157*c8a0e2f4SThomas Veerman}
2158*c8a0e2f4SThomas Veerman_ACEOF
2159*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
2160*c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2160: \"$ac_link\"") >&5
2161*c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
2162*c8a0e2f4SThomas Veerman  ac_status=$?
2163*c8a0e2f4SThomas Veerman  echo "$as_me:2163: \$? = $ac_status" >&5
2164*c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2165*c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
2166*c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2166: \"$ac_try\"") >&5
2167*c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2168*c8a0e2f4SThomas Veerman  ac_status=$?
2169*c8a0e2f4SThomas Veerman  echo "$as_me:2169: \$? = $ac_status" >&5
2170*c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2171*c8a0e2f4SThomas Veerman  eval "$as_ac_var=yes"
2172*c8a0e2f4SThomas Veermanelse
2173*c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2174*c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2175*c8a0e2f4SThomas Veermaneval "$as_ac_var=no"
2176*c8a0e2f4SThomas Veermanfi
2177*c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2178*c8a0e2f4SThomas Veermanfi
2179*c8a0e2f4SThomas Veermanecho "$as_me:2179: result: `eval echo '${'$as_ac_var'}'`" >&5
2180*c8a0e2f4SThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2181*c8a0e2f4SThomas Veermanif test `eval echo '${'$as_ac_var'}'` = yes; then
2182*c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
2183*c8a0e2f4SThomas Veerman#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2184*c8a0e2f4SThomas VeermanEOF
2185*c8a0e2f4SThomas Veerman
2186*c8a0e2f4SThomas Veermanfi
2187*c8a0e2f4SThomas Veermandone
2188*c8a0e2f4SThomas Veerman
2189*c8a0e2f4SThomas Veermancat >confcache <<\_ACEOF
2190*c8a0e2f4SThomas Veerman# This file is a shell script that caches the results of configure
2191*c8a0e2f4SThomas Veerman# tests run on this system so they can be shared between configure
2192*c8a0e2f4SThomas Veerman# scripts and configure runs, see configure's option --config-cache.
2193*c8a0e2f4SThomas Veerman# It is not useful on other systems.  If it contains results you don't
2194*c8a0e2f4SThomas Veerman# want to keep, you may remove or edit it.
2195*c8a0e2f4SThomas Veerman#
2196*c8a0e2f4SThomas Veerman# config.status only pays attention to the cache file if you give it
2197*c8a0e2f4SThomas Veerman# the --recheck option to rerun configure.
2198*c8a0e2f4SThomas Veerman#
2199*c8a0e2f4SThomas Veerman# `ac_cv_env_foo' variables (set or unset) will be overriden when
2200*c8a0e2f4SThomas Veerman# loading this file, other *unset* `ac_cv_foo' will be assigned the
2201*c8a0e2f4SThomas Veerman# following values.
2202*c8a0e2f4SThomas Veerman
2203*c8a0e2f4SThomas Veerman_ACEOF
2204*c8a0e2f4SThomas Veerman
2205*c8a0e2f4SThomas Veerman# The following way of writing the cache mishandles newlines in values,
2206*c8a0e2f4SThomas Veerman# but we know of no workaround that is simple, portable, and efficient.
2207*c8a0e2f4SThomas Veerman# So, don't put newlines in cache variables' values.
2208*c8a0e2f4SThomas Veerman# Ultrix sh set writes to stderr and can't be redirected directly,
2209*c8a0e2f4SThomas Veerman# and sets the high bit in the cache file unless we assign to the vars.
2210*c8a0e2f4SThomas Veerman{
2211*c8a0e2f4SThomas Veerman  (set) 2>&1 |
2212*c8a0e2f4SThomas Veerman    case `(ac_space=' '; set | grep ac_space) 2>&1` in
2213*c8a0e2f4SThomas Veerman    *ac_space=\ *)
2214*c8a0e2f4SThomas Veerman      # `set' does not quote correctly, so add quotes (double-quote
2215*c8a0e2f4SThomas Veerman      # substitution turns \\\\ into \\, and sed turns \\ into \).
2216*c8a0e2f4SThomas Veerman      sed -n \
2217*c8a0e2f4SThomas Veerman        "s/'/'\\\\''/g;
2218*c8a0e2f4SThomas Veerman    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2219*c8a0e2f4SThomas Veerman      ;;
2220*c8a0e2f4SThomas Veerman    *)
2221*c8a0e2f4SThomas Veerman      # `set' quotes correctly as required by POSIX, so do not add quotes.
2222*c8a0e2f4SThomas Veerman      sed -n \
2223*c8a0e2f4SThomas Veerman        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2224*c8a0e2f4SThomas Veerman      ;;
2225*c8a0e2f4SThomas Veerman    esac;
2226*c8a0e2f4SThomas Veerman} |
2227*c8a0e2f4SThomas Veerman  sed '
2228*c8a0e2f4SThomas Veerman     t clear
2229*c8a0e2f4SThomas Veerman     : clear
2230*c8a0e2f4SThomas Veerman     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2231*c8a0e2f4SThomas Veerman     t end
2232*c8a0e2f4SThomas Veerman     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2233*c8a0e2f4SThomas Veerman     : end' >>confcache
2234*c8a0e2f4SThomas Veermanif cmp -s $cache_file confcache; then :; else
2235*c8a0e2f4SThomas Veerman  if test -w $cache_file; then
2236*c8a0e2f4SThomas Veerman    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2237*c8a0e2f4SThomas Veerman    cat confcache >$cache_file
2238*c8a0e2f4SThomas Veerman  else
2239*c8a0e2f4SThomas Veerman    echo "not updating unwritable cache $cache_file"
2240*c8a0e2f4SThomas Veerman  fi
2241*c8a0e2f4SThomas Veermanfi
2242*c8a0e2f4SThomas Veermanrm -f confcache
2243*c8a0e2f4SThomas Veerman
2244*c8a0e2f4SThomas Veermantest "x$prefix" = xNONE && prefix=$ac_default_prefix
2245*c8a0e2f4SThomas Veerman# Let make expand exec_prefix.
2246*c8a0e2f4SThomas Veermantest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2247*c8a0e2f4SThomas Veerman
2248*c8a0e2f4SThomas Veerman# VPATH may cause trouble with some makes, so we remove $(srcdir),
2249*c8a0e2f4SThomas Veerman# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2250*c8a0e2f4SThomas Veerman# trailing colons and then remove the whole line if VPATH becomes empty
2251*c8a0e2f4SThomas Veerman# (actually we leave an empty line to preserve line numbers).
2252*c8a0e2f4SThomas Veermanif test "x$srcdir" = x.; then
2253*c8a0e2f4SThomas Veerman  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
2254*c8a0e2f4SThomas Veermans/:*\$(srcdir):*/:/;
2255*c8a0e2f4SThomas Veermans/:*\${srcdir}:*/:/;
2256*c8a0e2f4SThomas Veermans/:*@srcdir@:*/:/;
2257*c8a0e2f4SThomas Veermans/^\([^=]*=[ 	]*\):*/\1/;
2258*c8a0e2f4SThomas Veermans/:*$//;
2259*c8a0e2f4SThomas Veermans/^[^=]*=[ 	]*$//;
2260*c8a0e2f4SThomas Veerman}'
2261*c8a0e2f4SThomas Veermanfi
2262*c8a0e2f4SThomas Veerman
2263*c8a0e2f4SThomas Veerman# Transform confdefs.h into DEFS.
2264*c8a0e2f4SThomas Veerman# Protect against shell expansion while executing Makefile rules.
2265*c8a0e2f4SThomas Veerman# Protect against Makefile macro expansion.
2266*c8a0e2f4SThomas Veerman#
2267*c8a0e2f4SThomas Veerman# If the first sed substitution is executed (which looks for macros that
2268*c8a0e2f4SThomas Veerman# take arguments), then we branch to the quote section.  Otherwise,
2269*c8a0e2f4SThomas Veerman# look for a macro that doesn't take arguments.
2270*c8a0e2f4SThomas Veermancat >confdef2opt.sed <<\EOF
2271*c8a0e2f4SThomas Veermant clear
2272*c8a0e2f4SThomas Veerman: clear
2273*c8a0e2f4SThomas Veermans,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*([^)]*)\)[ 	]*\(.*\),-D\1=\2,g
2274*c8a0e2f4SThomas Veermant quote
2275*c8a0e2f4SThomas Veermans,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\),-D\1=\2,g
2276*c8a0e2f4SThomas Veermant quote
2277*c8a0e2f4SThomas Veermand
2278*c8a0e2f4SThomas Veerman: quote
2279*c8a0e2f4SThomas Veermans,[ 	`~#$^&*(){}\\|;'"<>?],\\&,g
2280*c8a0e2f4SThomas Veermans,\[,\\&,g
2281*c8a0e2f4SThomas Veermans,\],\\&,g
2282*c8a0e2f4SThomas Veermans,\$,$$,g
2283*c8a0e2f4SThomas Veermanp
2284*c8a0e2f4SThomas VeermanEOF
2285*c8a0e2f4SThomas Veerman# We use echo to avoid assuming a particular line-breaking character.
2286*c8a0e2f4SThomas Veerman# The extra dot is to prevent the shell from consuming trailing
2287*c8a0e2f4SThomas Veerman# line-breaks from the sub-command output.  A line-break within
2288*c8a0e2f4SThomas Veerman# single-quotes doesn't work because, if this script is created in a
2289*c8a0e2f4SThomas Veerman# platform that uses two characters for line-breaks (e.g., DOS), tr
2290*c8a0e2f4SThomas Veerman# would break.
2291*c8a0e2f4SThomas Veermanac_LF_and_DOT=`echo; echo .`
2292*c8a0e2f4SThomas VeermanDEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2293*c8a0e2f4SThomas Veermanrm -f confdef2opt.sed
2294*c8a0e2f4SThomas Veerman
2295*c8a0e2f4SThomas Veerman: ${CONFIG_STATUS=./config.status}
2296*c8a0e2f4SThomas Veermanac_clean_files_save=$ac_clean_files
2297*c8a0e2f4SThomas Veermanac_clean_files="$ac_clean_files $CONFIG_STATUS"
2298*c8a0e2f4SThomas Veerman{ echo "$as_me:2298: creating $CONFIG_STATUS" >&5
2299*c8a0e2f4SThomas Veermanecho "$as_me: creating $CONFIG_STATUS" >&6;}
2300*c8a0e2f4SThomas Veermancat >$CONFIG_STATUS <<_ACEOF
2301*c8a0e2f4SThomas Veerman#! $SHELL
2302*c8a0e2f4SThomas Veerman# Generated automatically by configure.
2303*c8a0e2f4SThomas Veerman# Run this file to recreate the current configuration.
2304*c8a0e2f4SThomas Veerman# Compiler output produced by configure, useful for debugging
2305*c8a0e2f4SThomas Veerman# configure, is in config.log if it exists.
2306*c8a0e2f4SThomas Veerman
2307*c8a0e2f4SThomas Veermandebug=false
2308*c8a0e2f4SThomas VeermanSHELL=\${CONFIG_SHELL-$SHELL}
2309*c8a0e2f4SThomas Veermanac_cs_invocation="\$0 \$@"
2310*c8a0e2f4SThomas Veerman
2311*c8a0e2f4SThomas Veerman_ACEOF
2312*c8a0e2f4SThomas Veerman
2313*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\_ACEOF
2314*c8a0e2f4SThomas Veerman# Be Bourne compatible
2315*c8a0e2f4SThomas Veermanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2316*c8a0e2f4SThomas Veerman  emulate sh
2317*c8a0e2f4SThomas Veerman  NULLCMD=:
2318*c8a0e2f4SThomas Veermanelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2319*c8a0e2f4SThomas Veerman  set -o posix
2320*c8a0e2f4SThomas Veermanfi
2321*c8a0e2f4SThomas Veerman
2322*c8a0e2f4SThomas Veerman# Name of the executable.
2323*c8a0e2f4SThomas Veermanas_me=`echo "$0" |sed 's,.*[\\/],,'`
2324*c8a0e2f4SThomas Veerman
2325*c8a0e2f4SThomas Veermanif expr a : '\(a\)' >/dev/null 2>&1; then
2326*c8a0e2f4SThomas Veerman  as_expr=expr
2327*c8a0e2f4SThomas Veermanelse
2328*c8a0e2f4SThomas Veerman  as_expr=false
2329*c8a0e2f4SThomas Veermanfi
2330*c8a0e2f4SThomas Veerman
2331*c8a0e2f4SThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
2332*c8a0e2f4SThomas Veermanecho >conf$$.file
2333*c8a0e2f4SThomas Veermanif ln -s conf$$.file conf$$ 2>/dev/null; then
2334*c8a0e2f4SThomas Veerman  # We could just check for DJGPP; but this test a) works b) is more generic
2335*c8a0e2f4SThomas Veerman  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2336*c8a0e2f4SThomas Veerman  if test -f conf$$.exe; then
2337*c8a0e2f4SThomas Veerman    # Don't use ln at all; we don't have any links
2338*c8a0e2f4SThomas Veerman    as_ln_s='cp -p'
2339*c8a0e2f4SThomas Veerman  else
2340*c8a0e2f4SThomas Veerman    as_ln_s='ln -s'
2341*c8a0e2f4SThomas Veerman  fi
2342*c8a0e2f4SThomas Veermanelif ln conf$$.file conf$$ 2>/dev/null; then
2343*c8a0e2f4SThomas Veerman  as_ln_s=ln
2344*c8a0e2f4SThomas Veermanelse
2345*c8a0e2f4SThomas Veerman  as_ln_s='cp -p'
2346*c8a0e2f4SThomas Veermanfi
2347*c8a0e2f4SThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
2348*c8a0e2f4SThomas Veerman
2349*c8a0e2f4SThomas Veermanas_executable_p="test -f"
2350*c8a0e2f4SThomas Veerman
2351*c8a0e2f4SThomas Veerman# Support unset when possible.
2352*c8a0e2f4SThomas Veermanif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2353*c8a0e2f4SThomas Veerman  as_unset=unset
2354*c8a0e2f4SThomas Veermanelse
2355*c8a0e2f4SThomas Veerman  as_unset=false
2356*c8a0e2f4SThomas Veermanfi
2357*c8a0e2f4SThomas Veerman
2358*c8a0e2f4SThomas Veerman# NLS nuisances.
2359*c8a0e2f4SThomas Veerman$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
2360*c8a0e2f4SThomas Veerman$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
2361*c8a0e2f4SThomas Veerman$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
2362*c8a0e2f4SThomas Veerman$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
2363*c8a0e2f4SThomas Veerman$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
2364*c8a0e2f4SThomas Veerman$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
2365*c8a0e2f4SThomas Veerman$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
2366*c8a0e2f4SThomas Veerman$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
2367*c8a0e2f4SThomas Veerman
2368*c8a0e2f4SThomas Veerman# IFS
2369*c8a0e2f4SThomas Veerman# We need space, tab and new line, in precisely that order.
2370*c8a0e2f4SThomas Veermanas_nl='
2371*c8a0e2f4SThomas Veerman'
2372*c8a0e2f4SThomas VeermanIFS=" 	$as_nl"
2373*c8a0e2f4SThomas Veerman
2374*c8a0e2f4SThomas Veerman# CDPATH.
2375*c8a0e2f4SThomas Veerman$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
2376*c8a0e2f4SThomas Veerman
2377*c8a0e2f4SThomas Veermanexec 6>&1
2378*c8a0e2f4SThomas Veerman
2379*c8a0e2f4SThomas Veerman_ACEOF
2380*c8a0e2f4SThomas Veerman
2381*c8a0e2f4SThomas Veerman# Files that config.status was made for.
2382*c8a0e2f4SThomas Veermanif test -n "$ac_config_files"; then
2383*c8a0e2f4SThomas Veerman  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2384*c8a0e2f4SThomas Veermanfi
2385*c8a0e2f4SThomas Veerman
2386*c8a0e2f4SThomas Veermanif test -n "$ac_config_headers"; then
2387*c8a0e2f4SThomas Veerman  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2388*c8a0e2f4SThomas Veermanfi
2389*c8a0e2f4SThomas Veerman
2390*c8a0e2f4SThomas Veermanif test -n "$ac_config_links"; then
2391*c8a0e2f4SThomas Veerman  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2392*c8a0e2f4SThomas Veermanfi
2393*c8a0e2f4SThomas Veerman
2394*c8a0e2f4SThomas Veermanif test -n "$ac_config_commands"; then
2395*c8a0e2f4SThomas Veerman  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2396*c8a0e2f4SThomas Veermanfi
2397*c8a0e2f4SThomas Veerman
2398*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
2399*c8a0e2f4SThomas Veerman
2400*c8a0e2f4SThomas Veermanac_cs_usage="\
2401*c8a0e2f4SThomas Veerman\`$as_me' instantiates files from templates according to the
2402*c8a0e2f4SThomas Veermancurrent configuration.
2403*c8a0e2f4SThomas Veerman
2404*c8a0e2f4SThomas VeermanUsage: $0 [OPTIONS] [FILE]...
2405*c8a0e2f4SThomas Veerman
2406*c8a0e2f4SThomas Veerman  -h, --help       print this help, then exit
2407*c8a0e2f4SThomas Veerman  -V, --version    print version number, then exit
2408*c8a0e2f4SThomas Veerman  -d, --debug      don't remove temporary files
2409*c8a0e2f4SThomas Veerman      --recheck    update $as_me by reconfiguring in the same conditions
2410*c8a0e2f4SThomas Veerman  --file=FILE[:TEMPLATE]
2411*c8a0e2f4SThomas Veerman                   instantiate the configuration file FILE
2412*c8a0e2f4SThomas Veerman
2413*c8a0e2f4SThomas VeermanConfiguration files:
2414*c8a0e2f4SThomas Veerman$config_files
2415*c8a0e2f4SThomas Veerman
2416*c8a0e2f4SThomas VeermanReport bugs to <bug-autoconf@gnu.org>."
2417*c8a0e2f4SThomas VeermanEOF
2418*c8a0e2f4SThomas Veerman
2419*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<EOF
2420*c8a0e2f4SThomas Veermanac_cs_version="\\
2421*c8a0e2f4SThomas Veermanmake config.status noversion
2422*c8a0e2f4SThomas Veermanconfigured by $0, generated by GNU Autoconf 2.52,
2423*c8a0e2f4SThomas Veerman  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2424*c8a0e2f4SThomas Veerman
2425*c8a0e2f4SThomas VeermanCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
2426*c8a0e2f4SThomas VeermanFree Software Foundation, Inc.
2427*c8a0e2f4SThomas VeermanThis config.status script is free software; the Free Software Foundation
2428*c8a0e2f4SThomas Veermangives unlimited permission to copy, distribute and modify it."
2429*c8a0e2f4SThomas Veermansrcdir=$srcdir
2430*c8a0e2f4SThomas VeermanEOF
2431*c8a0e2f4SThomas Veerman
2432*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
2433*c8a0e2f4SThomas Veerman# If no file are specified by the user, then we need to provide default
2434*c8a0e2f4SThomas Veerman# value.  By we need to know if files were specified by the user.
2435*c8a0e2f4SThomas Veermanac_need_defaults=:
2436*c8a0e2f4SThomas Veermanwhile test $# != 0
2437*c8a0e2f4SThomas Veermando
2438*c8a0e2f4SThomas Veerman  case $1 in
2439*c8a0e2f4SThomas Veerman  --*=*)
2440*c8a0e2f4SThomas Veerman    ac_option=`expr "x$1" : 'x\([^=]*\)='`
2441*c8a0e2f4SThomas Veerman    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2442*c8a0e2f4SThomas Veerman    shift
2443*c8a0e2f4SThomas Veerman    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
2444*c8a0e2f4SThomas Veerman    shift
2445*c8a0e2f4SThomas Veerman    ;;
2446*c8a0e2f4SThomas Veerman  -*);;
2447*c8a0e2f4SThomas Veerman  *) # This is not an option, so the user has probably given explicit
2448*c8a0e2f4SThomas Veerman     # arguments.
2449*c8a0e2f4SThomas Veerman     ac_need_defaults=false;;
2450*c8a0e2f4SThomas Veerman  esac
2451*c8a0e2f4SThomas Veerman
2452*c8a0e2f4SThomas Veerman  case $1 in
2453*c8a0e2f4SThomas Veerman  # Handling of the options.
2454*c8a0e2f4SThomas VeermanEOF
2455*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<EOF
2456*c8a0e2f4SThomas Veerman  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2457*c8a0e2f4SThomas Veerman    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
2458*c8a0e2f4SThomas Veerman    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
2459*c8a0e2f4SThomas VeermanEOF
2460*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
2461*c8a0e2f4SThomas Veerman  --version | --vers* | -V )
2462*c8a0e2f4SThomas Veerman    echo "$ac_cs_version"; exit 0 ;;
2463*c8a0e2f4SThomas Veerman  --he | --h)
2464*c8a0e2f4SThomas Veerman    # Conflict between --help and --header
2465*c8a0e2f4SThomas Veerman    { { echo "$as_me:2465: error: ambiguous option: $1
2466*c8a0e2f4SThomas VeermanTry \`$0 --help' for more information." >&5
2467*c8a0e2f4SThomas Veermanecho "$as_me: error: ambiguous option: $1
2468*c8a0e2f4SThomas VeermanTry \`$0 --help' for more information." >&2;}
2469*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; };;
2470*c8a0e2f4SThomas Veerman  --help | --hel | -h )
2471*c8a0e2f4SThomas Veerman    echo "$ac_cs_usage"; exit 0 ;;
2472*c8a0e2f4SThomas Veerman  --debug | --d* | -d )
2473*c8a0e2f4SThomas Veerman    debug=: ;;
2474*c8a0e2f4SThomas Veerman  --file | --fil | --fi | --f )
2475*c8a0e2f4SThomas Veerman    shift
2476*c8a0e2f4SThomas Veerman    CONFIG_FILES="$CONFIG_FILES $1"
2477*c8a0e2f4SThomas Veerman    ac_need_defaults=false;;
2478*c8a0e2f4SThomas Veerman  --header | --heade | --head | --hea )
2479*c8a0e2f4SThomas Veerman    shift
2480*c8a0e2f4SThomas Veerman    CONFIG_HEADERS="$CONFIG_HEADERS $1"
2481*c8a0e2f4SThomas Veerman    ac_need_defaults=false;;
2482*c8a0e2f4SThomas Veerman
2483*c8a0e2f4SThomas Veerman  # This is an error.
2484*c8a0e2f4SThomas Veerman  -*) { { echo "$as_me:2484: error: unrecognized option: $1
2485*c8a0e2f4SThomas VeermanTry \`$0 --help' for more information." >&5
2486*c8a0e2f4SThomas Veermanecho "$as_me: error: unrecognized option: $1
2487*c8a0e2f4SThomas VeermanTry \`$0 --help' for more information." >&2;}
2488*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; } ;;
2489*c8a0e2f4SThomas Veerman
2490*c8a0e2f4SThomas Veerman  *) ac_config_targets="$ac_config_targets $1" ;;
2491*c8a0e2f4SThomas Veerman
2492*c8a0e2f4SThomas Veerman  esac
2493*c8a0e2f4SThomas Veerman  shift
2494*c8a0e2f4SThomas Veermandone
2495*c8a0e2f4SThomas Veerman
2496*c8a0e2f4SThomas Veermanexec 5>>config.log
2497*c8a0e2f4SThomas Veermancat >&5 << _ACEOF
2498*c8a0e2f4SThomas Veerman
2499*c8a0e2f4SThomas Veerman## ----------------------- ##
2500*c8a0e2f4SThomas Veerman## Running config.status.  ##
2501*c8a0e2f4SThomas Veerman## ----------------------- ##
2502*c8a0e2f4SThomas Veerman
2503*c8a0e2f4SThomas VeermanThis file was extended by $as_me (make noversion) 2.52, executed with
2504*c8a0e2f4SThomas Veerman  CONFIG_FILES    = $CONFIG_FILES
2505*c8a0e2f4SThomas Veerman  CONFIG_HEADERS  = $CONFIG_HEADERS
2506*c8a0e2f4SThomas Veerman  CONFIG_LINKS    = $CONFIG_LINKS
2507*c8a0e2f4SThomas Veerman  CONFIG_COMMANDS = $CONFIG_COMMANDS
2508*c8a0e2f4SThomas Veerman  > $ac_cs_invocation
2509*c8a0e2f4SThomas Veermanon `(hostname || uname -n) 2>/dev/null | sed 1q`
2510*c8a0e2f4SThomas Veerman
2511*c8a0e2f4SThomas Veerman_ACEOF
2512*c8a0e2f4SThomas VeermanEOF
2513*c8a0e2f4SThomas Veerman
2514*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
2515*c8a0e2f4SThomas Veermanfor ac_config_target in $ac_config_targets
2516*c8a0e2f4SThomas Veermando
2517*c8a0e2f4SThomas Veerman  case "$ac_config_target" in
2518*c8a0e2f4SThomas Veerman  # Handling of arguments.
2519*c8a0e2f4SThomas Veerman  "buildmake.sh" ) CONFIG_FILES="$CONFIG_FILES buildmake.sh" ;;
2520*c8a0e2f4SThomas Veerman  *) { { echo "$as_me:2520: error: invalid argument: $ac_config_target" >&5
2521*c8a0e2f4SThomas Veermanecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
2522*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; };;
2523*c8a0e2f4SThomas Veerman  esac
2524*c8a0e2f4SThomas Veermandone
2525*c8a0e2f4SThomas Veerman
2526*c8a0e2f4SThomas Veerman# If the user did not use the arguments to specify the items to instantiate,
2527*c8a0e2f4SThomas Veerman# then the envvar interface is used.  Set only those that are not.
2528*c8a0e2f4SThomas Veerman# We use the long form for the default assignment because of an extremely
2529*c8a0e2f4SThomas Veerman# bizarre bug on SunOS 4.1.3.
2530*c8a0e2f4SThomas Veermanif $ac_need_defaults; then
2531*c8a0e2f4SThomas Veerman  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2532*c8a0e2f4SThomas Veermanfi
2533*c8a0e2f4SThomas Veerman
2534*c8a0e2f4SThomas Veerman# Create a temporary directory, and hook for its removal unless debugging.
2535*c8a0e2f4SThomas Veerman$debug ||
2536*c8a0e2f4SThomas Veerman{
2537*c8a0e2f4SThomas Veerman  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2538*c8a0e2f4SThomas Veerman  trap '{ (exit 1); exit 1; }' 1 2 13 15
2539*c8a0e2f4SThomas Veerman}
2540*c8a0e2f4SThomas Veerman
2541*c8a0e2f4SThomas Veerman# Create a (secure) tmp directory for tmp files.
2542*c8a0e2f4SThomas Veerman: ${TMPDIR=/tmp}
2543*c8a0e2f4SThomas Veerman{
2544*c8a0e2f4SThomas Veerman  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
2545*c8a0e2f4SThomas Veerman  test -n "$tmp" && test -d "$tmp"
2546*c8a0e2f4SThomas Veerman}  ||
2547*c8a0e2f4SThomas Veerman{
2548*c8a0e2f4SThomas Veerman  tmp=$TMPDIR/cs$$-$RANDOM
2549*c8a0e2f4SThomas Veerman  (umask 077 && mkdir $tmp)
2550*c8a0e2f4SThomas Veerman} ||
2551*c8a0e2f4SThomas Veerman{
2552*c8a0e2f4SThomas Veerman   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2553*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }
2554*c8a0e2f4SThomas Veerman}
2555*c8a0e2f4SThomas Veerman
2556*c8a0e2f4SThomas VeermanEOF
2557*c8a0e2f4SThomas Veerman
2558*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<EOF
2559*c8a0e2f4SThomas Veerman
2560*c8a0e2f4SThomas Veerman#
2561*c8a0e2f4SThomas Veerman# CONFIG_FILES section.
2562*c8a0e2f4SThomas Veerman#
2563*c8a0e2f4SThomas Veerman
2564*c8a0e2f4SThomas Veerman# No need to generate the scripts if there are no CONFIG_FILES.
2565*c8a0e2f4SThomas Veerman# This happens for instance when ./config.status config.h
2566*c8a0e2f4SThomas Veermanif test -n "\$CONFIG_FILES"; then
2567*c8a0e2f4SThomas Veerman  # Protect against being on the right side of a sed subst in config.status.
2568*c8a0e2f4SThomas Veerman  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2569*c8a0e2f4SThomas Veerman   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2570*c8a0e2f4SThomas Veermans,@SHELL@,$SHELL,;t t
2571*c8a0e2f4SThomas Veermans,@exec_prefix@,$exec_prefix,;t t
2572*c8a0e2f4SThomas Veermans,@prefix@,$prefix,;t t
2573*c8a0e2f4SThomas Veermans,@program_transform_name@,$program_transform_name,;t t
2574*c8a0e2f4SThomas Veermans,@bindir@,$bindir,;t t
2575*c8a0e2f4SThomas Veermans,@sbindir@,$sbindir,;t t
2576*c8a0e2f4SThomas Veermans,@libexecdir@,$libexecdir,;t t
2577*c8a0e2f4SThomas Veermans,@datadir@,$datadir,;t t
2578*c8a0e2f4SThomas Veermans,@sysconfdir@,$sysconfdir,;t t
2579*c8a0e2f4SThomas Veermans,@sharedstatedir@,$sharedstatedir,;t t
2580*c8a0e2f4SThomas Veermans,@localstatedir@,$localstatedir,;t t
2581*c8a0e2f4SThomas Veermans,@libdir@,$libdir,;t t
2582*c8a0e2f4SThomas Veermans,@includedir@,$includedir,;t t
2583*c8a0e2f4SThomas Veermans,@oldincludedir@,$oldincludedir,;t t
2584*c8a0e2f4SThomas Veermans,@infodir@,$infodir,;t t
2585*c8a0e2f4SThomas Veermans,@mandir@,$mandir,;t t
2586*c8a0e2f4SThomas Veermans,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2587*c8a0e2f4SThomas Veermans,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2588*c8a0e2f4SThomas Veermans,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2589*c8a0e2f4SThomas Veermans,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2590*c8a0e2f4SThomas Veermans,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2591*c8a0e2f4SThomas Veermans,@build_alias@,$build_alias,;t t
2592*c8a0e2f4SThomas Veermans,@host_alias@,$host_alias,;t t
2593*c8a0e2f4SThomas Veermans,@target_alias@,$target_alias,;t t
2594*c8a0e2f4SThomas Veermans,@ECHO_C@,$ECHO_C,;t t
2595*c8a0e2f4SThomas Veermans,@ECHO_N@,$ECHO_N,;t t
2596*c8a0e2f4SThomas Veermans,@ECHO_T@,$ECHO_T,;t t
2597*c8a0e2f4SThomas Veermans,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2598*c8a0e2f4SThomas Veermans,@DEFS@,$DEFS,;t t
2599*c8a0e2f4SThomas Veermans,@LIBS@,$LIBS,;t t
2600*c8a0e2f4SThomas Veermans,@BSHELL@,$BSHELL,;t t
2601*c8a0e2f4SThomas Veermans,@CC@,$CC,;t t
2602*c8a0e2f4SThomas Veermans,@CFLAGS@,$CFLAGS,;t t
2603*c8a0e2f4SThomas Veermans,@LDFLAGS@,$LDFLAGS,;t t
2604*c8a0e2f4SThomas Veermans,@CPPFLAGS@,$CPPFLAGS,;t t
2605*c8a0e2f4SThomas Veermans,@ac_ct_CC@,$ac_ct_CC,;t t
2606*c8a0e2f4SThomas Veermans,@EXEEXT@,$EXEEXT,;t t
2607*c8a0e2f4SThomas Veermans,@OBJEXT@,$OBJEXT,;t t
2608*c8a0e2f4SThomas Veermans,@CPP@,$CPP,;t t
2609*c8a0e2f4SThomas VeermanCEOF
2610*c8a0e2f4SThomas Veerman
2611*c8a0e2f4SThomas VeermanEOF
2612*c8a0e2f4SThomas Veerman
2613*c8a0e2f4SThomas Veerman  cat >>$CONFIG_STATUS <<\EOF
2614*c8a0e2f4SThomas Veerman  # Split the substitutions into bite-sized pieces for seds with
2615*c8a0e2f4SThomas Veerman  # small command number limits, like on Digital OSF/1 and HP-UX.
2616*c8a0e2f4SThomas Veerman  ac_max_sed_lines=48
2617*c8a0e2f4SThomas Veerman  ac_sed_frag=1 # Number of current file.
2618*c8a0e2f4SThomas Veerman  ac_beg=1 # First line for current file.
2619*c8a0e2f4SThomas Veerman  ac_end=$ac_max_sed_lines # Line after last line for current file.
2620*c8a0e2f4SThomas Veerman  ac_more_lines=:
2621*c8a0e2f4SThomas Veerman  ac_sed_cmds=
2622*c8a0e2f4SThomas Veerman  while $ac_more_lines; do
2623*c8a0e2f4SThomas Veerman    if test $ac_beg -gt 1; then
2624*c8a0e2f4SThomas Veerman      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2625*c8a0e2f4SThomas Veerman    else
2626*c8a0e2f4SThomas Veerman      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2627*c8a0e2f4SThomas Veerman    fi
2628*c8a0e2f4SThomas Veerman    if test ! -s $tmp/subs.frag; then
2629*c8a0e2f4SThomas Veerman      ac_more_lines=false
2630*c8a0e2f4SThomas Veerman    else
2631*c8a0e2f4SThomas Veerman      # The purpose of the label and of the branching condition is to
2632*c8a0e2f4SThomas Veerman      # speed up the sed processing (if there are no `@' at all, there
2633*c8a0e2f4SThomas Veerman      # is no need to browse any of the substitutions).
2634*c8a0e2f4SThomas Veerman      # These are the two extra sed commands mentioned above.
2635*c8a0e2f4SThomas Veerman      (echo ':t
2636*c8a0e2f4SThomas Veerman  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2637*c8a0e2f4SThomas Veerman      if test -z "$ac_sed_cmds"; then
2638*c8a0e2f4SThomas Veerman  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2639*c8a0e2f4SThomas Veerman      else
2640*c8a0e2f4SThomas Veerman  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2641*c8a0e2f4SThomas Veerman      fi
2642*c8a0e2f4SThomas Veerman      ac_sed_frag=`expr $ac_sed_frag + 1`
2643*c8a0e2f4SThomas Veerman      ac_beg=$ac_end
2644*c8a0e2f4SThomas Veerman      ac_end=`expr $ac_end + $ac_max_sed_lines`
2645*c8a0e2f4SThomas Veerman    fi
2646*c8a0e2f4SThomas Veerman  done
2647*c8a0e2f4SThomas Veerman  if test -z "$ac_sed_cmds"; then
2648*c8a0e2f4SThomas Veerman    ac_sed_cmds=cat
2649*c8a0e2f4SThomas Veerman  fi
2650*c8a0e2f4SThomas Veermanfi # test -n "$CONFIG_FILES"
2651*c8a0e2f4SThomas Veerman
2652*c8a0e2f4SThomas VeermanEOF
2653*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
2654*c8a0e2f4SThomas Veermanfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2655*c8a0e2f4SThomas Veerman  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2656*c8a0e2f4SThomas Veerman  case $ac_file in
2657*c8a0e2f4SThomas Veerman  - | *:- | *:-:* ) # input from stdin
2658*c8a0e2f4SThomas Veerman        cat >$tmp/stdin
2659*c8a0e2f4SThomas Veerman        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2660*c8a0e2f4SThomas Veerman        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2661*c8a0e2f4SThomas Veerman  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2662*c8a0e2f4SThomas Veerman        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2663*c8a0e2f4SThomas Veerman  * )   ac_file_in=$ac_file.in ;;
2664*c8a0e2f4SThomas Veerman  esac
2665*c8a0e2f4SThomas Veerman
2666*c8a0e2f4SThomas Veerman  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2667*c8a0e2f4SThomas Veerman  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2668*c8a0e2f4SThomas Veerman         X"$ac_file" : 'X\(//\)[^/]' \| \
2669*c8a0e2f4SThomas Veerman         X"$ac_file" : 'X\(//\)$' \| \
2670*c8a0e2f4SThomas Veerman         X"$ac_file" : 'X\(/\)' \| \
2671*c8a0e2f4SThomas Veerman         .     : '\(.\)' 2>/dev/null ||
2672*c8a0e2f4SThomas Veermanecho X"$ac_file" |
2673*c8a0e2f4SThomas Veerman    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2674*c8a0e2f4SThomas Veerman  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2675*c8a0e2f4SThomas Veerman  	  /^X\(\/\/\)$/{ s//\1/; q; }
2676*c8a0e2f4SThomas Veerman  	  /^X\(\/\).*/{ s//\1/; q; }
2677*c8a0e2f4SThomas Veerman  	  s/.*/./; q'`
2678*c8a0e2f4SThomas Veerman  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2679*c8a0e2f4SThomas Veerman    { case "$ac_dir" in
2680*c8a0e2f4SThomas Veerman  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2681*c8a0e2f4SThomas Veerman  *)                      as_incr_dir=.;;
2682*c8a0e2f4SThomas Veermanesac
2683*c8a0e2f4SThomas Veermanas_dummy="$ac_dir"
2684*c8a0e2f4SThomas Veermanfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2685*c8a0e2f4SThomas Veerman  case $as_mkdir_dir in
2686*c8a0e2f4SThomas Veerman    # Skip DOS drivespec
2687*c8a0e2f4SThomas Veerman    ?:) as_incr_dir=$as_mkdir_dir ;;
2688*c8a0e2f4SThomas Veerman    *)
2689*c8a0e2f4SThomas Veerman      as_incr_dir=$as_incr_dir/$as_mkdir_dir
2690*c8a0e2f4SThomas Veerman      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2691*c8a0e2f4SThomas Veerman    ;;
2692*c8a0e2f4SThomas Veerman  esac
2693*c8a0e2f4SThomas Veermandone; }
2694*c8a0e2f4SThomas Veerman
2695*c8a0e2f4SThomas Veerman    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2696*c8a0e2f4SThomas Veerman    # A "../" for each directory in $ac_dir_suffix.
2697*c8a0e2f4SThomas Veerman    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2698*c8a0e2f4SThomas Veerman  else
2699*c8a0e2f4SThomas Veerman    ac_dir_suffix= ac_dots=
2700*c8a0e2f4SThomas Veerman  fi
2701*c8a0e2f4SThomas Veerman
2702*c8a0e2f4SThomas Veerman  case $srcdir in
2703*c8a0e2f4SThomas Veerman  .)  ac_srcdir=.
2704*c8a0e2f4SThomas Veerman      if test -z "$ac_dots"; then
2705*c8a0e2f4SThomas Veerman         ac_top_srcdir=.
2706*c8a0e2f4SThomas Veerman      else
2707*c8a0e2f4SThomas Veerman         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
2708*c8a0e2f4SThomas Veerman      fi ;;
2709*c8a0e2f4SThomas Veerman  [\\/]* | ?:[\\/]* )
2710*c8a0e2f4SThomas Veerman      ac_srcdir=$srcdir$ac_dir_suffix;
2711*c8a0e2f4SThomas Veerman      ac_top_srcdir=$srcdir ;;
2712*c8a0e2f4SThomas Veerman  *) # Relative path.
2713*c8a0e2f4SThomas Veerman    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
2714*c8a0e2f4SThomas Veerman    ac_top_srcdir=$ac_dots$srcdir ;;
2715*c8a0e2f4SThomas Veerman  esac
2716*c8a0e2f4SThomas Veerman
2717*c8a0e2f4SThomas Veerman  if test x"$ac_file" != x-; then
2718*c8a0e2f4SThomas Veerman    { echo "$as_me:2718: creating $ac_file" >&5
2719*c8a0e2f4SThomas Veermanecho "$as_me: creating $ac_file" >&6;}
2720*c8a0e2f4SThomas Veerman    rm -f "$ac_file"
2721*c8a0e2f4SThomas Veerman  fi
2722*c8a0e2f4SThomas Veerman  # Let's still pretend it is `configure' which instantiates (i.e., don't
2723*c8a0e2f4SThomas Veerman  # use $as_me), people would be surprised to read:
2724*c8a0e2f4SThomas Veerman  #    /* config.h.  Generated automatically by config.status.  */
2725*c8a0e2f4SThomas Veerman  configure_input="Generated automatically from `echo $ac_file_in |
2726*c8a0e2f4SThomas Veerman                                                 sed 's,.*/,,'` by configure."
2727*c8a0e2f4SThomas Veerman
2728*c8a0e2f4SThomas Veerman  # First look for the input files in the build tree, otherwise in the
2729*c8a0e2f4SThomas Veerman  # src tree.
2730*c8a0e2f4SThomas Veerman  ac_file_inputs=`IFS=:
2731*c8a0e2f4SThomas Veerman    for f in $ac_file_in; do
2732*c8a0e2f4SThomas Veerman      case $f in
2733*c8a0e2f4SThomas Veerman      -) echo $tmp/stdin ;;
2734*c8a0e2f4SThomas Veerman      [\\/$]*)
2735*c8a0e2f4SThomas Veerman         # Absolute (can't be DOS-style, as IFS=:)
2736*c8a0e2f4SThomas Veerman         test -f "$f" || { { echo "$as_me:2736: error: cannot find input file: $f" >&5
2737*c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find input file: $f" >&2;}
2738*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
2739*c8a0e2f4SThomas Veerman         echo $f;;
2740*c8a0e2f4SThomas Veerman      *) # Relative
2741*c8a0e2f4SThomas Veerman         if test -f "$f"; then
2742*c8a0e2f4SThomas Veerman           # Build tree
2743*c8a0e2f4SThomas Veerman           echo $f
2744*c8a0e2f4SThomas Veerman         elif test -f "$srcdir/$f"; then
2745*c8a0e2f4SThomas Veerman           # Source tree
2746*c8a0e2f4SThomas Veerman           echo $srcdir/$f
2747*c8a0e2f4SThomas Veerman         else
2748*c8a0e2f4SThomas Veerman           # /dev/null tree
2749*c8a0e2f4SThomas Veerman           { { echo "$as_me:2749: error: cannot find input file: $f" >&5
2750*c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find input file: $f" >&2;}
2751*c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
2752*c8a0e2f4SThomas Veerman         fi;;
2753*c8a0e2f4SThomas Veerman      esac
2754*c8a0e2f4SThomas Veerman    done` || { (exit 1); exit 1; }
2755*c8a0e2f4SThomas VeermanEOF
2756*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<EOF
2757*c8a0e2f4SThomas Veerman  sed "$ac_vpsub
2758*c8a0e2f4SThomas Veerman$extrasub
2759*c8a0e2f4SThomas VeermanEOF
2760*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
2761*c8a0e2f4SThomas Veerman:t
2762*c8a0e2f4SThomas Veerman/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2763*c8a0e2f4SThomas Veermans,@configure_input@,$configure_input,;t t
2764*c8a0e2f4SThomas Veermans,@srcdir@,$ac_srcdir,;t t
2765*c8a0e2f4SThomas Veermans,@top_srcdir@,$ac_top_srcdir,;t t
2766*c8a0e2f4SThomas Veerman" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2767*c8a0e2f4SThomas Veerman  rm -f $tmp/stdin
2768*c8a0e2f4SThomas Veerman  if test x"$ac_file" != x-; then
2769*c8a0e2f4SThomas Veerman    mv $tmp/out $ac_file
2770*c8a0e2f4SThomas Veerman  else
2771*c8a0e2f4SThomas Veerman    cat $tmp/out
2772*c8a0e2f4SThomas Veerman    rm -f $tmp/out
2773*c8a0e2f4SThomas Veerman  fi
2774*c8a0e2f4SThomas Veerman
2775*c8a0e2f4SThomas Veermandone
2776*c8a0e2f4SThomas VeermanEOF
2777*c8a0e2f4SThomas Veerman
2778*c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
2779*c8a0e2f4SThomas Veerman
2780*c8a0e2f4SThomas Veerman{ (exit 0); exit 0; }
2781*c8a0e2f4SThomas VeermanEOF
2782*c8a0e2f4SThomas Veermanchmod +x $CONFIG_STATUS
2783*c8a0e2f4SThomas Veermanac_clean_files=$ac_clean_files_save
2784*c8a0e2f4SThomas Veerman
2785*c8a0e2f4SThomas Veerman# configure is writing to config.log, and then calls config.status.
2786*c8a0e2f4SThomas Veerman# config.status does its own redirection, appending to config.log.
2787*c8a0e2f4SThomas Veerman# Unfortunately, on DOS this fails, as config.log is still kept open
2788*c8a0e2f4SThomas Veerman# by configure, so config.status won't be able to write to it; its
2789*c8a0e2f4SThomas Veerman# output is simply discarded.  So we exec the FD to /dev/null,
2790*c8a0e2f4SThomas Veerman# effectively closing config.log, so it can be properly (re)opened and
2791*c8a0e2f4SThomas Veerman# appended to by config.status.  When coming back to configure, we
2792*c8a0e2f4SThomas Veerman# need to make the FD available again.
2793*c8a0e2f4SThomas Veermanif test "$no_create" != yes; then
2794*c8a0e2f4SThomas Veerman  ac_cs_success=:
2795*c8a0e2f4SThomas Veerman  exec 5>/dev/null
2796*c8a0e2f4SThomas Veerman  $SHELL $CONFIG_STATUS || ac_cs_success=false
2797*c8a0e2f4SThomas Veerman  exec 5>>config.log
2798*c8a0e2f4SThomas Veerman  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2799*c8a0e2f4SThomas Veerman  # would make configure fail if this is the last instruction.
2800*c8a0e2f4SThomas Veerman  $ac_cs_success || { (exit 1); exit 1; }
2801*c8a0e2f4SThomas Veermanfi
2802*c8a0e2f4SThomas Veerman
2803