configure revision 272955
1306196Sjkim#! /bin/sh
2110010Smarkm# From configure.in Revision: 1.19 .
3110010Smarkm# Guess values for system-dependent variables and create Makefiles.
4142429Snectar# Generated by Autoconf 2.52.20121002.
5110010Smarkm#
6110010Smarkm# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7110010Smarkm# Free Software Foundation, Inc.
8110010Smarkm# This configure script is free software; the Free Software Foundation
9110010Smarkm# gives unlimited permission to copy, distribute and modify it.
10110010Smarkm
11110010Smarkm# Avoid depending upon Character Ranges.
12110010Smarkmas_cr_letters='abcdefghijklmnopqrstuvwxyz'
13110010Smarkmas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14110010Smarkmas_cr_Letters=$as_cr_letters$as_cr_LETTERS
15110010Smarkmas_cr_digits='0123456789'
16110010Smarkmas_cr_alnum=$as_cr_Letters$as_cr_digits
17110010Smarkm
18110010Smarkm# Sed expression to map a string onto a valid variable name.
19110010Smarkmas_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20215698Ssimon
21215698Ssimon# Sed expression to map a string onto a valid CPP name.
22215698Ssimonas_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23215698Ssimon
24215698Ssimon# Be Bourne compatible
25110010Smarkmif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26110010Smarkm  emulate sh
27110010Smarkm  NULLCMD=:
28110010Smarkmelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29110010Smarkm  set -o posix
30110010Smarkmfi
31110010Smarkm
32110010Smarkm# Name of the executable.
33110010Smarkmas_me=`echo "$0" |sed 's,.*[\\/],,'`
34110010Smarkm
35110010Smarkmif expr a : '\(a\)' >/dev/null 2>&1; then
36110010Smarkm  as_expr=expr
37110010Smarkmelse
38110010Smarkm  as_expr=false
39110010Smarkmfi
40110010Smarkm
41276864Sjkimrm -f conf$$ conf$$.exe conf$$.file
42276864Sjkimecho >conf$$.file
43110010Smarkmif ln -s conf$$.file conf$$ 2>/dev/null; then
44110010Smarkm  # We could just check for DJGPP; but this test a) works b) is more generic
45215698Ssimon  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46215698Ssimon  if test -f conf$$.exe; then
47215698Ssimon    # Don't use ln at all; we don't have any links
48215698Ssimon    as_ln_s='cp -p'
49142429Snectar  else
50215698Ssimon    as_ln_s='ln -s'
51142429Snectar  fi
52142429Snectarelif ln conf$$.file conf$$ 2>/dev/null; then
53276864Sjkim  as_ln_s=ln
54276864Sjkimelse
55276864Sjkim  as_ln_s='cp -p'
56110010Smarkmfi
57276864Sjkimrm -f conf$$ conf$$.exe conf$$.file
58276864Sjkim
59276864Sjkimas_executable_p="test -f"
60276864Sjkim
61276864Sjkim# Support unset when possible.
62276864Sjkimif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63215698Ssimon  as_unset=unset
64276864Sjkimelse
65276864Sjkim  as_unset=false
66276864Sjkimfi
67276864Sjkim
68276864Sjkim# NLS nuisances.
69215698Ssimon$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70276864Sjkim$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71110010Smarkm$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72110010Smarkm$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73110010Smarkm$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74110010Smarkm$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75110010Smarkm$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76110010Smarkm$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77110010Smarkm
78110010Smarkm# IFS
79110010Smarkm# We need space, tab and new line, in precisely that order.
80110010Smarkmas_nl='
81110010Smarkm'
82110010SmarkmIFS=" 	$as_nl"
83110010Smarkm
84110010Smarkm# CDPATH.
85110010Smarkm$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86110010Smarkm
87110010Smarkm# Name of the host.
88110010Smarkm# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89110010Smarkm# so uname gets run too.
90110010Smarkmac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91110010Smarkm
92110010Smarkmexec 6>&1
93110010Smarkm
94110010Smarkm#
95110010Smarkm# Initializations.
96110010Smarkm#
97110010Smarkmac_default_prefix=/usr/local
98110010Smarkmcross_compiling=no
99110010Smarkmsubdirs=
100110010SmarkmMFLAGS= MAKEFLAGS=
101110010SmarkmSHELL=${CONFIG_SHELL-/bin/sh}
102110010Smarkm
103110010Smarkm# Maximum number of lines to put in a shell here document.
104110010Smarkm# This variable seems obsolete.  It should probably be removed, and
105110010Smarkm# only ac_max_sed_lines should be used.
106110010Smarkm: ${ac_max_here_lines=38}
107110010Smarkm
108110010Smarkmac_unique_file="main.c"
109110010Smarkm
110110010Smarkm# Initialize some variables set by options.
111110010Smarkmac_init_help=
112110010Smarkmac_init_version=false
113110010Smarkm# The variables have the same names as the options, with
114110010Smarkm# dashes changed to underlines.
115110010Smarkmcache_file=/dev/null
116110010Smarkmexec_prefix=NONE
117110010Smarkmno_create=
118110010Smarkmno_recursion=
119110010Smarkmprefix=NONE
120110010Smarkmprogram_prefix=NONE
121110010Smarkmprogram_suffix=NONE
122110010Smarkmprogram_transform_name=s,x,x,
123110010Smarkmsilent=
124110010Smarkmsite=
125110010Smarkmsrcdir=
126110010Smarkmverbose=
127110010Smarkmx_includes=NONE
128110010Smarkmx_libraries=NONE
129110010Smarkm
130110010Smarkm# Installation directory options.
131110010Smarkm# These are left unexpanded so users can "make install exec_prefix=/foo"
132110010Smarkm# and all the variables that are supposed to be based on exec_prefix
133142429Snectar# by default will actually change.
134110010Smarkm# Use braces instead of parens because sh, perl, etc. also accept them.
135110010Smarkmbindir='${exec_prefix}/bin'
136306196Sjkimsbindir='${exec_prefix}/sbin'
137215698Ssimonlibexecdir='${exec_prefix}/libexec'
138215698Ssimondatarootdir='${prefix}/share'
139215698Ssimondatadir='${datarootdir}'
140215698Ssimonsysconfdir='${prefix}/etc'
141110010Smarkmsharedstatedir='${prefix}/com'
142110010Smarkmlocalstatedir='${prefix}/var'
143142429Snectarlibdir='${exec_prefix}/lib'
144110010Smarkmincludedir='${prefix}/include'
145110010Smarkmoldincludedir='/usr/include'
146110010Smarkminfodir='${datarootdir}/info'
147215698Ssimonmandir='${datarootdir}/man'
148215698Ssimon
149215698Ssimon# Identity of this package.
150110010SmarkmPACKAGE_NAME=
151110010SmarkmPACKAGE_TARNAME=
152110010SmarkmPACKAGE_VERSION=
153215698SsimonPACKAGE_STRING=
154110010SmarkmPACKAGE_BUGREPORT=
155110010Smarkm
156110010Smarkmac_prev=
157215698Ssimonfor ac_option
158110010Smarkmdo
159215698Ssimon  # If the previous option needs an argument, assign it.
160110010Smarkm  if test -n "$ac_prev"; then
161110010Smarkm    eval "$ac_prev=\$ac_option"
162215698Ssimon    ac_prev=
163110010Smarkm    continue
164110010Smarkm  fi
165215698Ssimon
166110010Smarkm  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167110010Smarkm
168110010Smarkm  # Accept the important Cygnus configure options, so we can diagnose typos.
169110010Smarkm
170110010Smarkm  case $ac_option in
171110010Smarkm
172276864Sjkim  -bindir | --bindir | --bindi | --bind | --bin | --bi)
173110010Smarkm    ac_prev=bindir ;;
174276864Sjkim  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175110010Smarkm    bindir=$ac_optarg ;;
176110010Smarkm
177110010Smarkm  -build | --build | --buil | --bui | --bu)
178110010Smarkm    ac_prev=build_alias ;;
179110010Smarkm  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180110010Smarkm    build_alias=$ac_optarg ;;
181110010Smarkm
182110010Smarkm  -cache-file | --cache-file | --cache-fil | --cache-fi \
183110010Smarkm  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184110010Smarkm    ac_prev=cache_file ;;
185110010Smarkm  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186110010Smarkm  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187110010Smarkm    cache_file=$ac_optarg ;;
188110010Smarkm
189110010Smarkm  --config-cache | -C)
190110010Smarkm    cache_file=config.cache ;;
191110010Smarkm
192110010Smarkm  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193110010Smarkm    ac_prev=datadir ;;
194110010Smarkm  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195110010Smarkm  | --da=*)
196110010Smarkm    datadir=$ac_optarg ;;
197110010Smarkm
198110010Smarkm  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199110010Smarkm  | --dataroo | --dataro | --datar)
200110010Smarkm    ac_prev=datarootdir ;;
201110010Smarkm  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202110010Smarkm  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203110010Smarkm    datarootdir=$ac_optarg ;;
204110010Smarkm
205110010Smarkm  -disable-* | --disable-*)
206110010Smarkm    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207110010Smarkm    # Reject names that are not valid shell variable names.
208110010Smarkm    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209110010Smarkm      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210110010Smarkm   { (exit 1); exit 1; }; }
211110010Smarkm    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212110010Smarkm    eval "enable_$ac_feature=no" ;;
213110010Smarkm
214110010Smarkm  -enable-* | --enable-*)
215110010Smarkm    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216110010Smarkm    # Reject names that are not valid shell variable names.
217110010Smarkm    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218110010Smarkm      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219110010Smarkm   { (exit 1); exit 1; }; }
220110010Smarkm    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221110010Smarkm    case $ac_option in
222110010Smarkm      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
223142429Snectar      *) ac_optarg=yes ;;
224110010Smarkm    esac
225110010Smarkm    eval "enable_$ac_feature='$ac_optarg'" ;;
226110010Smarkm
227110010Smarkm  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228110010Smarkm  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229110010Smarkm  | --exec | --exe | --ex)
230110010Smarkm    ac_prev=exec_prefix ;;
231110010Smarkm  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232110010Smarkm  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233110010Smarkm  | --exec=* | --exe=* | --ex=*)
234110010Smarkm    exec_prefix=$ac_optarg ;;
235276864Sjkim
236110010Smarkm  -gas | --gas | --ga | --g)
237110010Smarkm    # Obsolete; use --with-gas.
238110010Smarkm    with_gas=yes ;;
239110010Smarkm
240110010Smarkm  -help | --help | --hel | --he | -h)
241110010Smarkm    ac_init_help=long ;;
242110010Smarkm  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243110010Smarkm    ac_init_help=recursive ;;
244142429Snectar  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245110010Smarkm    ac_init_help=short ;;
246110010Smarkm
247110010Smarkm  -host | --host | --hos | --ho)
248110010Smarkm    ac_prev=host_alias ;;
249110010Smarkm  -host=* | --host=* | --hos=* | --ho=*)
250110010Smarkm    host_alias=$ac_optarg ;;
251142429Snectar
252110010Smarkm  -includedir | --includedir | --includedi | --included | --include \
253110010Smarkm  | --includ | --inclu | --incl | --inc)
254110010Smarkm    ac_prev=includedir ;;
255110010Smarkm  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256110010Smarkm  | --includ=* | --inclu=* | --incl=* | --inc=*)
257110010Smarkm    includedir=$ac_optarg ;;
258215698Ssimon
259110010Smarkm  -infodir | --infodir | --infodi | --infod | --info | --inf)
260110010Smarkm    ac_prev=infodir ;;
261142429Snectar  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262110010Smarkm    infodir=$ac_optarg ;;
263110010Smarkm
264110010Smarkm  -libdir | --libdir | --libdi | --libd)
265110010Smarkm    ac_prev=libdir ;;
266110010Smarkm  -libdir=* | --libdir=* | --libdi=* | --libd=*)
267110010Smarkm    libdir=$ac_optarg ;;
268110010Smarkm
269110010Smarkm  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270110010Smarkm  | --libexe | --libex | --libe)
271110010Smarkm    ac_prev=libexecdir ;;
272110010Smarkm  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273110010Smarkm  | --libexe=* | --libex=* | --libe=*)
274110010Smarkm    libexecdir=$ac_optarg ;;
275110010Smarkm
276110010Smarkm  -localstatedir | --localstatedir | --localstatedi | --localstated \
277110010Smarkm  | --localstate | --localstat | --localsta | --localst \
278110010Smarkm  | --locals | --local | --loca | --loc | --lo)
279110010Smarkm    ac_prev=localstatedir ;;
280110010Smarkm  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281110010Smarkm  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282110010Smarkm  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283110010Smarkm    localstatedir=$ac_optarg ;;
284110010Smarkm
285110010Smarkm  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286110010Smarkm    ac_prev=mandir ;;
287142429Snectar  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
288110010Smarkm    mandir=$ac_optarg ;;
289110010Smarkm
290110010Smarkm  -nfp | --nfp | --nf)
291    # Obsolete; use --without-fp.
292    with_fp=no ;;
293
294  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
295  | --no-cr | --no-c)
296    no_create=yes ;;
297
298  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300    no_recursion=yes ;;
301
302  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304  | --oldin | --oldi | --old | --ol | --o)
305    ac_prev=oldincludedir ;;
306  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309    oldincludedir=$ac_optarg ;;
310
311  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312    ac_prev=prefix ;;
313  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
314    prefix=$ac_optarg ;;
315
316  -program-prefix | --program-prefix | --program-prefi | --program-pref \
317  | --program-pre | --program-pr | --program-p)
318    ac_prev=program_prefix ;;
319  -program-prefix=* | --program-prefix=* | --program-prefi=* \
320  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321    program_prefix=$ac_optarg ;;
322
323  -program-suffix | --program-suffix | --program-suffi | --program-suff \
324  | --program-suf | --program-su | --program-s)
325    ac_prev=program_suffix ;;
326  -program-suffix=* | --program-suffix=* | --program-suffi=* \
327  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328    program_suffix=$ac_optarg ;;
329
330  -program-transform-name | --program-transform-name \
331  | --program-transform-nam | --program-transform-na \
332  | --program-transform-n | --program-transform- \
333  | --program-transform | --program-transfor \
334  | --program-transfo | --program-transf \
335  | --program-trans | --program-tran \
336  | --progr-tra | --program-tr | --program-t)
337    ac_prev=program_transform_name ;;
338  -program-transform-name=* | --program-transform-name=* \
339  | --program-transform-nam=* | --program-transform-na=* \
340  | --program-transform-n=* | --program-transform-=* \
341  | --program-transform=* | --program-transfor=* \
342  | --program-transfo=* | --program-transf=* \
343  | --program-trans=* | --program-tran=* \
344  | --progr-tra=* | --program-tr=* | --program-t=*)
345    program_transform_name=$ac_optarg ;;
346
347  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348  | -silent | --silent | --silen | --sile | --sil)
349    silent=yes ;;
350
351  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352    ac_prev=sbindir ;;
353  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354  | --sbi=* | --sb=*)
355    sbindir=$ac_optarg ;;
356
357  -sharedstatedir | --sharedstatedir | --sharedstatedi \
358  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359  | --sharedst | --shareds | --shared | --share | --shar \
360  | --sha | --sh)
361    ac_prev=sharedstatedir ;;
362  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365  | --sha=* | --sh=*)
366    sharedstatedir=$ac_optarg ;;
367
368  -site | --site | --sit)
369    ac_prev=site ;;
370  -site=* | --site=* | --sit=*)
371    site=$ac_optarg ;;
372
373  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374    ac_prev=srcdir ;;
375  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376    srcdir=$ac_optarg ;;
377
378  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379  | --syscon | --sysco | --sysc | --sys | --sy)
380    ac_prev=sysconfdir ;;
381  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383    sysconfdir=$ac_optarg ;;
384
385  -target | --target | --targe | --targ | --tar | --ta | --t)
386    ac_prev=target_alias ;;
387  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388    target_alias=$ac_optarg ;;
389
390  -v | -verbose | --verbose | --verbos | --verbo | --verb)
391    verbose=yes ;;
392
393  -version | --version | --versio | --versi | --vers | -V)
394    ac_init_version=: ;;
395
396  -with-* | --with-*)
397    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid package name: $ac_package" >&2
401   { (exit 1); exit 1; }; }
402    ac_package=`echo $ac_package| sed 's/-/_/g'`
403    case $ac_option in
404      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405      *) ac_optarg=yes ;;
406    esac
407    eval "with_$ac_package='$ac_optarg'" ;;
408
409  -without-* | --without-*)
410    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
411    # Reject names that are not valid shell variable names.
412    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413      { echo "$as_me: error: invalid package name: $ac_package" >&2
414   { (exit 1); exit 1; }; }
415    ac_package=`echo $ac_package | sed 's/-/_/g'`
416    eval "with_$ac_package=no" ;;
417
418  --x)
419    # Obsolete; use --with-x.
420    with_x=yes ;;
421
422  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423  | --x-incl | --x-inc | --x-in | --x-i)
424    ac_prev=x_includes ;;
425  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427    x_includes=$ac_optarg ;;
428
429  -x-libraries | --x-libraries | --x-librarie | --x-librari \
430  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431    ac_prev=x_libraries ;;
432  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434    x_libraries=$ac_optarg ;;
435
436  -*) { echo "$as_me: error: unrecognized option: $ac_option
437Try \`$0 --help' for more information." >&2
438   { (exit 1); exit 1; }; }
439    ;;
440
441  *=*)
442    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
443    # Reject names that are not valid shell variable names.
444    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
445      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
446   { (exit 1); exit 1; }; }
447    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
448    eval "$ac_envvar='$ac_optarg'"
449    export $ac_envvar ;;
450
451  *)
452    # FIXME: should be removed in autoconf 3.0.
453    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
454    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
455      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
456    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
457    ;;
458
459  esac
460done
461
462if test -n "$ac_prev"; then
463  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
464  { echo "$as_me: error: missing argument to $ac_option" >&2
465   { (exit 1); exit 1; }; }
466fi
467
468# Be sure to have absolute paths.
469for ac_var in exec_prefix prefix
470do
471  eval ac_val=$`echo $ac_var`
472  case $ac_val in
473    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
474    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
475   { (exit 1); exit 1; }; };;
476  esac
477done
478
479# Be sure to have absolute paths.
480for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
481              localstatedir libdir includedir oldincludedir infodir mandir
482do
483  eval ac_val=$`echo $ac_var`
484  case $ac_val in
485    [\\/$]* | ?:[\\/]* ) ;;
486    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
487   { (exit 1); exit 1; }; };;
488  esac
489done
490
491# There might be people who depend on the old broken behavior: `$host'
492# used to hold the argument of --host etc.
493build=$build_alias
494host=$host_alias
495target=$target_alias
496
497# FIXME: should be removed in autoconf 3.0.
498if test "x$host_alias" != x; then
499  if test "x$build_alias" = x; then
500    cross_compiling=maybe
501    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
502    If a cross compiler is detected then cross compile mode will be used." >&2
503  elif test "x$build_alias" != "x$host_alias"; then
504    cross_compiling=yes
505  fi
506fi
507
508ac_tool_prefix=
509test -n "$host_alias" && ac_tool_prefix=$host_alias-
510
511test "$silent" = yes && exec 6>/dev/null
512
513# Find the source files, if location was not specified.
514if test -z "$srcdir"; then
515  ac_srcdir_defaulted=yes
516  # Try the directory containing this script, then its parent.
517  ac_prog=$0
518  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
519  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520  srcdir=$ac_confdir
521  if test ! -r $srcdir/$ac_unique_file; then
522    srcdir=..
523  fi
524else
525  ac_srcdir_defaulted=no
526fi
527if test ! -r $srcdir/$ac_unique_file; then
528  if test "$ac_srcdir_defaulted" = yes; then
529    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
530   { (exit 1); exit 1; }; }
531  else
532    { echo "$as_me: error: cannot find sources in $srcdir" >&2
533   { (exit 1); exit 1; }; }
534  fi
535fi
536srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
537ac_env_build_alias_set=${build_alias+set}
538ac_env_build_alias_value=$build_alias
539ac_cv_env_build_alias_set=${build_alias+set}
540ac_cv_env_build_alias_value=$build_alias
541ac_env_host_alias_set=${host_alias+set}
542ac_env_host_alias_value=$host_alias
543ac_cv_env_host_alias_set=${host_alias+set}
544ac_cv_env_host_alias_value=$host_alias
545ac_env_target_alias_set=${target_alias+set}
546ac_env_target_alias_value=$target_alias
547ac_cv_env_target_alias_set=${target_alias+set}
548ac_cv_env_target_alias_value=$target_alias
549ac_env_CC_set=${CC+set}
550ac_env_CC_value=$CC
551ac_cv_env_CC_set=${CC+set}
552ac_cv_env_CC_value=$CC
553ac_env_CFLAGS_set=${CFLAGS+set}
554ac_env_CFLAGS_value=$CFLAGS
555ac_cv_env_CFLAGS_set=${CFLAGS+set}
556ac_cv_env_CFLAGS_value=$CFLAGS
557ac_env_LDFLAGS_set=${LDFLAGS+set}
558ac_env_LDFLAGS_value=$LDFLAGS
559ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
560ac_cv_env_LDFLAGS_value=$LDFLAGS
561ac_env_CPPFLAGS_set=${CPPFLAGS+set}
562ac_env_CPPFLAGS_value=$CPPFLAGS
563ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
564ac_cv_env_CPPFLAGS_value=$CPPFLAGS
565ac_env_CPP_set=${CPP+set}
566ac_env_CPP_value=$CPP
567ac_cv_env_CPP_set=${CPP+set}
568ac_cv_env_CPP_value=$CPP
569
570#
571# Report the --help message.
572#
573if test "$ac_init_help" = "long"; then
574  # Omit some internal or obsolete options to make the list less imposing.
575  # This message is too long to be a string in the A/UX 3.1 sh.
576  cat <<EOF
577\`configure' configures this package to adapt to many kinds of systems.
578
579Usage: $0 [OPTION]... [VAR=VALUE]...
580
581To assign environment variables (e.g., CC, CFLAGS...), specify them as
582VAR=VALUE.  See below for descriptions of some of the useful variables.
583
584Defaults for the options are specified in brackets.
585
586Configuration:
587  -h, --help              display this help and exit
588      --help=short        display options specific to this package
589      --help=recursive    display the short help of all the included packages
590  -V, --version           display version information and exit
591  -q, --quiet, --silent   do not print \`checking...' messages
592      --cache-file=FILE   cache test results in FILE [disabled]
593  -C, --config-cache      alias for \`--cache-file=config.cache'
594  -n, --no-create         do not create output files
595      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
596
597EOF
598
599  cat <<EOF
600Installation directories:
601  --prefix=PREFIX         install architecture-independent files in PREFIX
602                          [$ac_default_prefix]
603  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
604                          [PREFIX]
605
606By default, \`make install' will install all the files in
607\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
608an installation prefix other than \`$ac_default_prefix' using \`--prefix',
609for instance \`--prefix=\$HOME'.
610
611For better control, use the options below.
612
613Fine tuning of the installation directories:
614  --bindir=DIR            user executables [EPREFIX/bin]
615  --sbindir=DIR           system admin executables [EPREFIX/sbin]
616  --libexecdir=DIR        program executables [EPREFIX/libexec]
617  --datarootdir=DIR       read-only architecture-independent data [PREFIX/share]
618  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
619  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
620  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
621  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
622  --libdir=DIR            object code libraries [EPREFIX/lib]
623  --includedir=DIR        C header files [PREFIX/include]
624  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
625  --infodir=DIR           info documentation [DATAROOTDIR/info]
626  --mandir=DIR            man documentation [DATAROOTDIR/man]
627EOF
628
629  cat <<\EOF
630
631Program names:
632  --program-prefix=PREFIX            prepend PREFIX to installed program names
633  --program-suffix=SUFFIX            append SUFFIX to installed program names
634  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
635
636System types:
637  --build=BUILD           configure for building on BUILD [guessed]
638  --host=HOST       build programs to run on HOST [BUILD]
639  --target=TARGET   configure for building compilers for TARGET [HOST]
640EOF
641fi
642
643if test -n "$ac_init_help"; then
644
645  cat <<\EOF
646
647Optional Packages:
648  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
649  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
650
651Optional Features:
652  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
653  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
654
655  --with-max-table-size=N set the maximum table size = N (no default)
656  --enable-btyacc         turn on support for the btyacc backtracking
657                          extension (default: no)
658  --with-warnings         test: turn on gcc warnings
659  --disable-echo          do not display "compiling" commands
660  --with-dmalloc          test: use Gray Watson's dmalloc library
661  --with-dbmalloc         test: use Conor Cahill's dbmalloc library
662  --with-valgrind         test: use valgrind
663  --disable-leaks         test: free permanent memory, analyze leaks
664
665Some influential environment variables:
666  CC          C compiler command
667  CFLAGS      C compiler flags
668  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
669              nonstandard directory <lib dir>
670  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
671              headers in a nonstandard directory <include dir>
672  CPP         C preprocessor
673
674Use these variables to override the choices made by `configure' or to help
675it to find libraries and programs with nonstandard names/locations.
676
677EOF
678fi
679
680if test "$ac_init_help" = "recursive"; then
681  # If there are subdirs, report their specific --help.
682  ac_popdir=`pwd`
683  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
684    cd $ac_subdir
685    # A "../" for each directory in /$ac_subdir.
686    ac_dots=`echo $ac_subdir |
687             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
688
689    case $srcdir in
690    .) # No --srcdir option.  We are building in place.
691      ac_sub_srcdir=$srcdir ;;
692    [\\/]* | ?:[\\/]* ) # Absolute path.
693      ac_sub_srcdir=$srcdir/$ac_subdir ;;
694    *) # Relative path.
695      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
696    esac
697
698    # Check for guested configure; otherwise get Cygnus style configure.
699    if test -f $ac_sub_srcdir/configure.gnu; then
700      echo
701      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
702    elif test -f $ac_sub_srcdir/configure; then
703      echo
704      $SHELL $ac_sub_srcdir/configure  --help=recursive
705    elif test -f $ac_sub_srcdir/configure.ac ||
706           test -f $ac_sub_srcdir/configure.in; then
707      echo
708      $ac_configure --help
709    else
710      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
711    fi
712    cd $ac_popdir
713  done
714fi
715
716test -n "$ac_init_help" && exit 0
717if $ac_init_version; then
718  cat <<\EOF
719
720Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
721Free Software Foundation, Inc.
722This configure script is free software; the Free Software Foundation
723gives unlimited permission to copy, distribute and modify it.
724EOF
725  exit 0
726fi
727exec 5>config.log
728cat >&5 <<EOF
729This file contains any messages produced by compilers while
730running configure, to aid debugging if configure makes a mistake.
731
732It was created by $as_me, which was
733generated by GNU Autoconf 2.52.20121002.  Invocation command line was
734
735  $ $0 $@
736
737EOF
738{
739cat <<_ASUNAME
740## ---------- ##
741## Platform.  ##
742## ---------- ##
743
744hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
745uname -m = `(uname -m) 2>/dev/null || echo unknown`
746uname -r = `(uname -r) 2>/dev/null || echo unknown`
747uname -s = `(uname -s) 2>/dev/null || echo unknown`
748uname -v = `(uname -v) 2>/dev/null || echo unknown`
749
750/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
751/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
752
753/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
754/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
755/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
756hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
757/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
758/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
759/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
760
761PATH = $PATH
762
763_ASUNAME
764} >&5
765
766cat >&5 <<EOF
767## ------------ ##
768## Core tests.  ##
769## ------------ ##
770
771EOF
772
773# Keep a trace of the command line.
774# Strip out --no-create and --no-recursion so they do not pile up.
775# Also quote any args containing shell meta-characters.
776ac_configure_args=
777ac_sep=
778for ac_arg
779do
780  case $ac_arg in
781  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
782  | --no-cr | --no-c) ;;
783  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
784  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
785  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
786    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
787    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
788    ac_sep=" " ;;
789  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
790     ac_sep=" " ;;
791  esac
792  # Get rid of the leading space.
793done
794
795# When interrupted or exit'd, cleanup temporary files, and complete
796# config.log.  We remove comments because anyway the quotes in there
797# would cause problems or look ugly.
798trap 'exit_status=$?
799  # Save into config.log some information that might help in debugging.
800  echo >&5
801  echo "## ----------------- ##" >&5
802  echo "## Cache variables.  ##" >&5
803  echo "## ----------------- ##" >&5
804  echo >&5
805  # The following way of writing the cache mishandles newlines in values,
806{
807  (set) 2>&1 |
808    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
809    *ac_space=\ *)
810      sed -n \
811        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
812    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
813      ;;
814    *)
815      sed -n \
816        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
817      ;;
818    esac;
819} >&5
820  sed "/^$/d" confdefs.h >conftest.log
821  if test -s conftest.log; then
822    echo >&5
823    echo "## ------------ ##" >&5
824    echo "## confdefs.h.  ##" >&5
825    echo "## ------------ ##" >&5
826    echo >&5
827    cat conftest.log >&5
828  fi
829  (echo; echo) >&5
830  test "$ac_signal" != 0 &&
831    echo "$as_me: caught signal $ac_signal" >&5
832  echo "$as_me: exit $exit_status" >&5
833  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
834    exit $exit_status
835     ' 0
836for ac_signal in 1 2 13 15; do
837  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
838done
839ac_signal=0
840
841# confdefs.h avoids OS command line length limits that DEFS can exceed.
842rm -rf conftest* confdefs.h
843# AIX cpp loses on an empty file, so make sure it contains at least a newline.
844echo >confdefs.h
845
846# Let the site file select an alternate cache file if it wants to.
847# Prefer explicitly selected file to automatically selected ones.
848if test -z "$CONFIG_SITE"; then
849  if test "x$prefix" != xNONE; then
850    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
851  else
852    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
853  fi
854fi
855for ac_site_file in $CONFIG_SITE; do
856  if test -r "$ac_site_file"; then
857    { echo "$as_me:857: loading site script $ac_site_file" >&5
858echo "$as_me: loading site script $ac_site_file" >&6;}
859    cat "$ac_site_file" >&5
860    . "$ac_site_file"
861  fi
862done
863
864if test -r "$cache_file"; then
865  # Some versions of bash will fail to source /dev/null (special
866  # files actually), so we avoid doing that.
867  if test -f "$cache_file"; then
868    { echo "$as_me:868: loading cache $cache_file" >&5
869echo "$as_me: loading cache $cache_file" >&6;}
870    case $cache_file in
871      [\\/]* | ?:[\\/]* ) . $cache_file;;
872      *)                      . ./$cache_file;;
873    esac
874  fi
875else
876  { echo "$as_me:876: creating cache $cache_file" >&5
877echo "$as_me: creating cache $cache_file" >&6;}
878  >$cache_file
879fi
880
881# Check that the precious variables saved in the cache have kept the same
882# value.
883ac_cache_corrupted=false
884for ac_var in `(set) 2>&1 |
885               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
886  eval ac_old_set=\$ac_cv_env_${ac_var}_set
887  eval ac_new_set=\$ac_env_${ac_var}_set
888  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
889  eval ac_new_val="\$ac_env_${ac_var}_value"
890  case $ac_old_set,$ac_new_set in
891    set,)
892      { echo "$as_me:892: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
893echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
894      ac_cache_corrupted=: ;;
895    ,set)
896      { echo "$as_me:896: error: \`$ac_var' was not set in the previous run" >&5
897echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
898      ac_cache_corrupted=: ;;
899    ,);;
900    *)
901      if test "x$ac_old_val" != "x$ac_new_val"; then
902        { echo "$as_me:902: error: \`$ac_var' has changed since the previous run:" >&5
903echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
904        { echo "$as_me:904:   former value:  $ac_old_val" >&5
905echo "$as_me:   former value:  $ac_old_val" >&2;}
906        { echo "$as_me:906:   current value: $ac_new_val" >&5
907echo "$as_me:   current value: $ac_new_val" >&2;}
908        ac_cache_corrupted=:
909      fi;;
910  esac
911  # Pass precious variables to config.status.  It doesn't matter if
912  # we pass some twice (in addition to the command line arguments).
913  if test "$ac_new_set" = set; then
914    case $ac_new_val in
915    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
916      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
917      ac_configure_args="$ac_configure_args '$ac_arg'"
918      ;;
919    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
920       ;;
921    esac
922  fi
923done
924if $ac_cache_corrupted; then
925  { echo "$as_me:925: error: changes in the environment can compromise the build" >&5
926echo "$as_me: error: changes in the environment can compromise the build" >&2;}
927  { { echo "$as_me:927: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
928echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
929   { (exit 1); exit 1; }; }
930fi
931
932ac_ext=c
933ac_cpp='$CPP $CPPFLAGS'
934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
936ac_compiler_gnu=$ac_cv_c_compiler_gnu
937ac_main_return=return
938
939case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
940  *c*,-n*) ECHO_N= ECHO_C='
941' ECHO_T='	' ;;
942  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
943  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
944esac
945echo "#! $SHELL" >conftest.sh
946echo  "exit 0"   >>conftest.sh
947chmod +x conftest.sh
948if { (echo "$as_me:948: PATH=\".;.\"; conftest.sh") >&5
949  (PATH=".;."; conftest.sh) 2>&5
950  ac_status=$?
951  echo "$as_me:951: \$? = $ac_status" >&5
952  (exit $ac_status); }; then
953  ac_path_separator=';'
954else
955  ac_path_separator=:
956fi
957PATH_SEPARATOR="$ac_path_separator"
958rm -f conftest.sh
959
960ac_config_headers="$ac_config_headers config.h:config_h.in"
961
962ac_aux_dir=
963for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
964  if test -f $ac_dir/install-sh; then
965    ac_aux_dir=$ac_dir
966    ac_install_sh="$ac_aux_dir/install-sh -c"
967    break
968  elif test -f $ac_dir/install.sh; then
969    ac_aux_dir=$ac_dir
970    ac_install_sh="$ac_aux_dir/install.sh -c"
971    break
972  elif test -f $ac_dir/shtool; then
973    ac_aux_dir=$ac_dir
974    ac_install_sh="$ac_aux_dir/shtool install -c"
975    break
976  fi
977done
978if test -z "$ac_aux_dir"; then
979  { { echo "$as_me:979: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
980echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
981   { (exit 1); exit 1; }; }
982fi
983ac_config_guess="$SHELL $ac_aux_dir/config.guess"
984ac_config_sub="$SHELL $ac_aux_dir/config.sub"
985ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
986
987# Make sure we can run config.sub.
988$ac_config_sub sun4 >/dev/null 2>&1 ||
989  { { echo "$as_me:989: error: cannot run $ac_config_sub" >&5
990echo "$as_me: error: cannot run $ac_config_sub" >&2;}
991   { (exit 1); exit 1; }; }
992
993echo "$as_me:993: checking build system type" >&5
994echo $ECHO_N "checking build system type... $ECHO_C" >&6
995if test "${ac_cv_build+set}" = set; then
996  echo $ECHO_N "(cached) $ECHO_C" >&6
997else
998  ac_cv_build_alias=$build_alias
999test -z "$ac_cv_build_alias" &&
1000  ac_cv_build_alias=`$ac_config_guess`
1001test -z "$ac_cv_build_alias" &&
1002  { { echo "$as_me:1002: error: cannot guess build type; you must specify one" >&5
1003echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1004   { (exit 1); exit 1; }; }
1005ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1006  { { echo "$as_me:1006: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1007echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1008   { (exit 1); exit 1; }; }
1009
1010fi
1011echo "$as_me:1011: result: $ac_cv_build" >&5
1012echo "${ECHO_T}$ac_cv_build" >&6
1013build=$ac_cv_build
1014build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1015build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1016build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1017
1018echo "$as_me:1018: checking host system type" >&5
1019echo $ECHO_N "checking host system type... $ECHO_C" >&6
1020if test "${ac_cv_host+set}" = set; then
1021  echo $ECHO_N "(cached) $ECHO_C" >&6
1022else
1023  ac_cv_host_alias=$host_alias
1024test -z "$ac_cv_host_alias" &&
1025  ac_cv_host_alias=$ac_cv_build_alias
1026ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1027  { { echo "$as_me:1027: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1028echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1029   { (exit 1); exit 1; }; }
1030
1031fi
1032echo "$as_me:1032: result: $ac_cv_host" >&5
1033echo "${ECHO_T}$ac_cv_host" >&6
1034host=$ac_cv_host
1035host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038
1039if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1040	echo "$as_me:1040: checking target system type" >&5
1041echo $ECHO_N "checking target system type... $ECHO_C" >&6
1042if test "${ac_cv_target+set}" = set; then
1043  echo $ECHO_N "(cached) $ECHO_C" >&6
1044else
1045  ac_cv_target_alias=$target_alias
1046test "x$ac_cv_target_alias" = "x" &&
1047  ac_cv_target_alias=$ac_cv_host_alias
1048ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1049  { { echo "$as_me:1049: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1050echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1051   { (exit 1); exit 1; }; }
1052
1053fi
1054echo "$as_me:1054: result: $ac_cv_target" >&5
1055echo "${ECHO_T}$ac_cv_target" >&6
1056target=$ac_cv_target
1057target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060
1061# The aliases save the names the user supplied, while $host etc.
1062# will get canonicalized.
1063test -n "$target_alias" &&
1064  test "$program_prefix$program_suffix$program_transform_name" = \
1065    NONENONEs,x,x, &&
1066  program_prefix=${target_alias}-
1067	system_name="$host_os"
1068else
1069	system_name="`(uname -s -r) 2>/dev/null`"
1070	if test -z "$system_name" ; then
1071		system_name="`(hostname) 2>/dev/null`"
1072	fi
1073fi
1074test -n "$system_name" &&
1075cat >>confdefs.h <<EOF
1076#define SYSTEM_NAME "$system_name"
1077EOF
1078
1079if test "${cf_cv_system_name+set}" = set; then
1080  echo $ECHO_N "(cached) $ECHO_C" >&6
1081else
1082  cf_cv_system_name="$system_name"
1083fi
1084
1085test -z "$system_name" && system_name="$cf_cv_system_name"
1086test -n "$cf_cv_system_name" && echo "$as_me:1086: result: Configuring for $cf_cv_system_name" >&5
1087echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1088
1089if test ".$system_name" != ".$cf_cv_system_name" ; then
1090	echo "$as_me:1090: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1091echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1092	{ { echo "$as_me:1092: error: \"Please remove config.cache and try again.\"" >&5
1093echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1094   { (exit 1); exit 1; }; }
1095fi
1096
1097test "$program_prefix" != NONE &&
1098  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1099# Use a double $ so make ignores it.
1100test "$program_suffix" != NONE &&
1101  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1102# Double any \ or $.  echo might interpret backslashes.
1103# By default was `s,x,x', remove it if useless.
1104cat <<\_ACEOF >conftest.sed
1105s/[\\$]/&&/g;s/;s,x,x,$//
1106_ACEOF
1107program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1108rm conftest.sed
1109
1110ac_ext=c
1111ac_cpp='$CPP $CPPFLAGS'
1112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1114ac_compiler_gnu=$ac_cv_c_compiler_gnu
1115ac_main_return=return
1116if test -n "$ac_tool_prefix"; then
1117  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1118set dummy ${ac_tool_prefix}gcc; ac_word=$2
1119echo "$as_me:1119: checking for $ac_word" >&5
1120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1121if test "${ac_cv_prog_CC+set}" = set; then
1122  echo $ECHO_N "(cached) $ECHO_C" >&6
1123else
1124  if test -n "$CC"; then
1125  ac_cv_prog_CC="$CC" # Let the user override the test.
1126else
1127  ac_save_IFS=$IFS; IFS=$ac_path_separator
1128ac_dummy="$PATH"
1129for ac_dir in $ac_dummy; do
1130  IFS=$ac_save_IFS
1131  test -z "$ac_dir" && ac_dir=.
1132  $as_executable_p "$ac_dir/$ac_word" || continue
1133ac_cv_prog_CC="${ac_tool_prefix}gcc"
1134echo "$as_me:1134: found $ac_dir/$ac_word" >&5
1135break
1136done
1137
1138fi
1139fi
1140CC=$ac_cv_prog_CC
1141if test -n "$CC"; then
1142  echo "$as_me:1142: result: $CC" >&5
1143echo "${ECHO_T}$CC" >&6
1144else
1145  echo "$as_me:1145: result: no" >&5
1146echo "${ECHO_T}no" >&6
1147fi
1148
1149fi
1150if test -z "$ac_cv_prog_CC"; then
1151  ac_ct_CC=$CC
1152  # Extract the first word of "gcc", so it can be a program name with args.
1153set dummy gcc; ac_word=$2
1154echo "$as_me:1154: checking for $ac_word" >&5
1155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1156if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1157  echo $ECHO_N "(cached) $ECHO_C" >&6
1158else
1159  if test -n "$ac_ct_CC"; then
1160  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1161else
1162  ac_save_IFS=$IFS; IFS=$ac_path_separator
1163ac_dummy="$PATH"
1164for ac_dir in $ac_dummy; do
1165  IFS=$ac_save_IFS
1166  test -z "$ac_dir" && ac_dir=.
1167  $as_executable_p "$ac_dir/$ac_word" || continue
1168ac_cv_prog_ac_ct_CC="gcc"
1169echo "$as_me:1169: found $ac_dir/$ac_word" >&5
1170break
1171done
1172
1173fi
1174fi
1175ac_ct_CC=$ac_cv_prog_ac_ct_CC
1176if test -n "$ac_ct_CC"; then
1177  echo "$as_me:1177: result: $ac_ct_CC" >&5
1178echo "${ECHO_T}$ac_ct_CC" >&6
1179else
1180  echo "$as_me:1180: result: no" >&5
1181echo "${ECHO_T}no" >&6
1182fi
1183
1184  CC=$ac_ct_CC
1185else
1186  CC="$ac_cv_prog_CC"
1187fi
1188
1189if test -z "$CC"; then
1190  if test -n "$ac_tool_prefix"; then
1191  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1192set dummy ${ac_tool_prefix}cc; ac_word=$2
1193echo "$as_me:1193: checking for $ac_word" >&5
1194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1195if test "${ac_cv_prog_CC+set}" = set; then
1196  echo $ECHO_N "(cached) $ECHO_C" >&6
1197else
1198  if test -n "$CC"; then
1199  ac_cv_prog_CC="$CC" # Let the user override the test.
1200else
1201  ac_save_IFS=$IFS; IFS=$ac_path_separator
1202ac_dummy="$PATH"
1203for ac_dir in $ac_dummy; do
1204  IFS=$ac_save_IFS
1205  test -z "$ac_dir" && ac_dir=.
1206  $as_executable_p "$ac_dir/$ac_word" || continue
1207ac_cv_prog_CC="${ac_tool_prefix}cc"
1208echo "$as_me:1208: found $ac_dir/$ac_word" >&5
1209break
1210done
1211
1212fi
1213fi
1214CC=$ac_cv_prog_CC
1215if test -n "$CC"; then
1216  echo "$as_me:1216: result: $CC" >&5
1217echo "${ECHO_T}$CC" >&6
1218else
1219  echo "$as_me:1219: result: no" >&5
1220echo "${ECHO_T}no" >&6
1221fi
1222
1223fi
1224if test -z "$ac_cv_prog_CC"; then
1225  ac_ct_CC=$CC
1226  # Extract the first word of "cc", so it can be a program name with args.
1227set dummy cc; ac_word=$2
1228echo "$as_me:1228: checking for $ac_word" >&5
1229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1230if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1231  echo $ECHO_N "(cached) $ECHO_C" >&6
1232else
1233  if test -n "$ac_ct_CC"; then
1234  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1235else
1236  ac_save_IFS=$IFS; IFS=$ac_path_separator
1237ac_dummy="$PATH"
1238for ac_dir in $ac_dummy; do
1239  IFS=$ac_save_IFS
1240  test -z "$ac_dir" && ac_dir=.
1241  $as_executable_p "$ac_dir/$ac_word" || continue
1242ac_cv_prog_ac_ct_CC="cc"
1243echo "$as_me:1243: found $ac_dir/$ac_word" >&5
1244break
1245done
1246
1247fi
1248fi
1249ac_ct_CC=$ac_cv_prog_ac_ct_CC
1250if test -n "$ac_ct_CC"; then
1251  echo "$as_me:1251: result: $ac_ct_CC" >&5
1252echo "${ECHO_T}$ac_ct_CC" >&6
1253else
1254  echo "$as_me:1254: result: no" >&5
1255echo "${ECHO_T}no" >&6
1256fi
1257
1258  CC=$ac_ct_CC
1259else
1260  CC="$ac_cv_prog_CC"
1261fi
1262
1263fi
1264if test -z "$CC"; then
1265  # Extract the first word of "cc", so it can be a program name with args.
1266set dummy cc; ac_word=$2
1267echo "$as_me:1267: checking for $ac_word" >&5
1268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1269if test "${ac_cv_prog_CC+set}" = set; then
1270  echo $ECHO_N "(cached) $ECHO_C" >&6
1271else
1272  if test -n "$CC"; then
1273  ac_cv_prog_CC="$CC" # Let the user override the test.
1274else
1275  ac_prog_rejected=no
1276  ac_save_IFS=$IFS; IFS=$ac_path_separator
1277ac_dummy="$PATH"
1278for ac_dir in $ac_dummy; do
1279  IFS=$ac_save_IFS
1280  test -z "$ac_dir" && ac_dir=.
1281  $as_executable_p "$ac_dir/$ac_word" || continue
1282if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1283  ac_prog_rejected=yes
1284  continue
1285fi
1286ac_cv_prog_CC="cc"
1287echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1288break
1289done
1290
1291if test $ac_prog_rejected = yes; then
1292  # We found a bogon in the path, so make sure we never use it.
1293  set dummy $ac_cv_prog_CC
1294  shift
1295  if test $# != 0; then
1296    # We chose a different compiler from the bogus one.
1297    # However, it has the same basename, so the bogon will be chosen
1298    # first if we set CC to just the basename; use the full file name.
1299    shift
1300    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1301    shift
1302    ac_cv_prog_CC="$@"
1303  fi
1304fi
1305fi
1306fi
1307CC=$ac_cv_prog_CC
1308if test -n "$CC"; then
1309  echo "$as_me:1309: result: $CC" >&5
1310echo "${ECHO_T}$CC" >&6
1311else
1312  echo "$as_me:1312: result: no" >&5
1313echo "${ECHO_T}no" >&6
1314fi
1315
1316fi
1317if test -z "$CC"; then
1318  if test -n "$ac_tool_prefix"; then
1319  for ac_prog in cl
1320  do
1321    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1322set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1323echo "$as_me:1323: checking for $ac_word" >&5
1324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325if test "${ac_cv_prog_CC+set}" = set; then
1326  echo $ECHO_N "(cached) $ECHO_C" >&6
1327else
1328  if test -n "$CC"; then
1329  ac_cv_prog_CC="$CC" # Let the user override the test.
1330else
1331  ac_save_IFS=$IFS; IFS=$ac_path_separator
1332ac_dummy="$PATH"
1333for ac_dir in $ac_dummy; do
1334  IFS=$ac_save_IFS
1335  test -z "$ac_dir" && ac_dir=.
1336  $as_executable_p "$ac_dir/$ac_word" || continue
1337ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1338echo "$as_me:1338: found $ac_dir/$ac_word" >&5
1339break
1340done
1341
1342fi
1343fi
1344CC=$ac_cv_prog_CC
1345if test -n "$CC"; then
1346  echo "$as_me:1346: result: $CC" >&5
1347echo "${ECHO_T}$CC" >&6
1348else
1349  echo "$as_me:1349: result: no" >&5
1350echo "${ECHO_T}no" >&6
1351fi
1352
1353    test -n "$CC" && break
1354  done
1355fi
1356if test -z "$CC"; then
1357  ac_ct_CC=$CC
1358  for ac_prog in cl
1359do
1360  # Extract the first word of "$ac_prog", so it can be a program name with args.
1361set dummy $ac_prog; ac_word=$2
1362echo "$as_me:1362: checking for $ac_word" >&5
1363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1365  echo $ECHO_N "(cached) $ECHO_C" >&6
1366else
1367  if test -n "$ac_ct_CC"; then
1368  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1369else
1370  ac_save_IFS=$IFS; IFS=$ac_path_separator
1371ac_dummy="$PATH"
1372for ac_dir in $ac_dummy; do
1373  IFS=$ac_save_IFS
1374  test -z "$ac_dir" && ac_dir=.
1375  $as_executable_p "$ac_dir/$ac_word" || continue
1376ac_cv_prog_ac_ct_CC="$ac_prog"
1377echo "$as_me:1377: found $ac_dir/$ac_word" >&5
1378break
1379done
1380
1381fi
1382fi
1383ac_ct_CC=$ac_cv_prog_ac_ct_CC
1384if test -n "$ac_ct_CC"; then
1385  echo "$as_me:1385: result: $ac_ct_CC" >&5
1386echo "${ECHO_T}$ac_ct_CC" >&6
1387else
1388  echo "$as_me:1388: result: no" >&5
1389echo "${ECHO_T}no" >&6
1390fi
1391
1392  test -n "$ac_ct_CC" && break
1393done
1394
1395  CC=$ac_ct_CC
1396fi
1397
1398fi
1399
1400test -z "$CC" && { { echo "$as_me:1400: error: no acceptable cc found in \$PATH" >&5
1401echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1402   { (exit 1); exit 1; }; }
1403
1404# Provide some information about the compiler.
1405echo "$as_me:1405:" \
1406     "checking for C compiler version" >&5
1407ac_compiler=`set X $ac_compile; echo $2`
1408{ (eval echo "$as_me:1408: \"$ac_compiler --version </dev/null >&5\"") >&5
1409  (eval $ac_compiler --version </dev/null >&5) 2>&5
1410  ac_status=$?
1411  echo "$as_me:1411: \$? = $ac_status" >&5
1412  (exit $ac_status); }
1413{ (eval echo "$as_me:1413: \"$ac_compiler -v </dev/null >&5\"") >&5
1414  (eval $ac_compiler -v </dev/null >&5) 2>&5
1415  ac_status=$?
1416  echo "$as_me:1416: \$? = $ac_status" >&5
1417  (exit $ac_status); }
1418{ (eval echo "$as_me:1418: \"$ac_compiler -V </dev/null >&5\"") >&5
1419  (eval $ac_compiler -V </dev/null >&5) 2>&5
1420  ac_status=$?
1421  echo "$as_me:1421: \$? = $ac_status" >&5
1422  (exit $ac_status); }
1423
1424cat >conftest.$ac_ext <<_ACEOF
1425#line 1425 "configure"
1426#include "confdefs.h"
1427
1428int
1429main ()
1430{
1431
1432  ;
1433  return 0;
1434}
1435_ACEOF
1436ac_clean_files_save=$ac_clean_files
1437ac_clean_files="$ac_clean_files a.out a.exe"
1438# Try to create an executable without -o first, disregard a.out.
1439# It will help us diagnose broken compilers, and finding out an intuition
1440# of exeext.
1441echo "$as_me:1441: checking for C compiler default output" >&5
1442echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1443ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1444if { (eval echo "$as_me:1444: \"$ac_link_default\"") >&5
1445  (eval $ac_link_default) 2>&5
1446  ac_status=$?
1447  echo "$as_me:1447: \$? = $ac_status" >&5
1448  (exit $ac_status); }; then
1449  # Find the output, starting from the most likely.  This scheme is
1450# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1451# resort.
1452for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1453                ls a.out conftest 2>/dev/null;
1454                ls a.* conftest.* 2>/dev/null`; do
1455  case $ac_file in
1456    *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1457    a.out ) # We found the default executable, but exeext='' is most
1458            # certainly right.
1459            break;;
1460    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1461          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1462          export ac_cv_exeext
1463          break;;
1464    * ) break;;
1465  esac
1466done
1467else
1468  echo "$as_me: failed program was:" >&5
1469cat conftest.$ac_ext >&5
1470{ { echo "$as_me:1470: error: C compiler cannot create executables" >&5
1471echo "$as_me: error: C compiler cannot create executables" >&2;}
1472   { (exit 77); exit 77; }; }
1473fi
1474
1475ac_exeext=$ac_cv_exeext
1476echo "$as_me:1476: result: $ac_file" >&5
1477echo "${ECHO_T}$ac_file" >&6
1478
1479# Check the compiler produces executables we can run.  If not, either
1480# the compiler is broken, or we cross compile.
1481echo "$as_me:1481: checking whether the C compiler works" >&5
1482echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1483# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1484# If not cross compiling, check that we can run a simple program.
1485if test "$cross_compiling" != yes; then
1486  if { ac_try='./$ac_file'
1487  { (eval echo "$as_me:1487: \"$ac_try\"") >&5
1488  (eval $ac_try) 2>&5
1489  ac_status=$?
1490  echo "$as_me:1490: \$? = $ac_status" >&5
1491  (exit $ac_status); }; }; then
1492    cross_compiling=no
1493  else
1494    if test "$cross_compiling" = maybe; then
1495	cross_compiling=yes
1496    else
1497	{ { echo "$as_me:1497: error: cannot run C compiled programs.
1498If you meant to cross compile, use \`--host'." >&5
1499echo "$as_me: error: cannot run C compiled programs.
1500If you meant to cross compile, use \`--host'." >&2;}
1501   { (exit 1); exit 1; }; }
1502    fi
1503  fi
1504fi
1505echo "$as_me:1505: result: yes" >&5
1506echo "${ECHO_T}yes" >&6
1507
1508rm -f a.out a.exe conftest$ac_cv_exeext
1509ac_clean_files=$ac_clean_files_save
1510# Check the compiler produces executables we can run.  If not, either
1511# the compiler is broken, or we cross compile.
1512echo "$as_me:1512: checking whether we are cross compiling" >&5
1513echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1514echo "$as_me:1514: result: $cross_compiling" >&5
1515echo "${ECHO_T}$cross_compiling" >&6
1516
1517echo "$as_me:1517: checking for executable suffix" >&5
1518echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1519if { (eval echo "$as_me:1519: \"$ac_link\"") >&5
1520  (eval $ac_link) 2>&5
1521  ac_status=$?
1522  echo "$as_me:1522: \$? = $ac_status" >&5
1523  (exit $ac_status); }; then
1524  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1525# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1526# work properly (i.e., refer to `conftest.exe'), while it won't with
1527# `rm'.
1528for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1529  case $ac_file in
1530    *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1531    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1532          export ac_cv_exeext
1533          break;;
1534    * ) break;;
1535  esac
1536done
1537else
1538  { { echo "$as_me:1538: error: cannot compute EXEEXT: cannot compile and link" >&5
1539echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1540   { (exit 1); exit 1; }; }
1541fi
1542
1543rm -f conftest$ac_cv_exeext
1544echo "$as_me:1544: result: $ac_cv_exeext" >&5
1545echo "${ECHO_T}$ac_cv_exeext" >&6
1546
1547rm -f conftest.$ac_ext
1548EXEEXT=$ac_cv_exeext
1549ac_exeext=$EXEEXT
1550echo "$as_me:1550: checking for object suffix" >&5
1551echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1552if test "${ac_cv_objext+set}" = set; then
1553  echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555  cat >conftest.$ac_ext <<_ACEOF
1556#line 1556 "configure"
1557#include "confdefs.h"
1558
1559int
1560main ()
1561{
1562
1563  ;
1564  return 0;
1565}
1566_ACEOF
1567rm -f conftest.o conftest.obj
1568if { (eval echo "$as_me:1568: \"$ac_compile\"") >&5
1569  (eval $ac_compile) 2>&5
1570  ac_status=$?
1571  echo "$as_me:1571: \$? = $ac_status" >&5
1572  (exit $ac_status); }; then
1573  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1574  case $ac_file in
1575    *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1576    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1577       break;;
1578  esac
1579done
1580else
1581  echo "$as_me: failed program was:" >&5
1582cat conftest.$ac_ext >&5
1583{ { echo "$as_me:1583: error: cannot compute OBJEXT: cannot compile" >&5
1584echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1585   { (exit 1); exit 1; }; }
1586fi
1587
1588rm -f conftest.$ac_cv_objext conftest.$ac_ext
1589fi
1590echo "$as_me:1590: result: $ac_cv_objext" >&5
1591echo "${ECHO_T}$ac_cv_objext" >&6
1592OBJEXT=$ac_cv_objext
1593ac_objext=$OBJEXT
1594echo "$as_me:1594: checking whether we are using the GNU C compiler" >&5
1595echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1596if test "${ac_cv_c_compiler_gnu+set}" = set; then
1597  echo $ECHO_N "(cached) $ECHO_C" >&6
1598else
1599  cat >conftest.$ac_ext <<_ACEOF
1600#line 1600 "configure"
1601#include "confdefs.h"
1602
1603int
1604main ()
1605{
1606#ifndef __GNUC__
1607       choke me
1608#endif
1609
1610  ;
1611  return 0;
1612}
1613_ACEOF
1614rm -f conftest.$ac_objext
1615if { (eval echo "$as_me:1615: \"$ac_compile\"") >&5
1616  (eval $ac_compile) 2>&5
1617  ac_status=$?
1618  echo "$as_me:1618: \$? = $ac_status" >&5
1619  (exit $ac_status); } &&
1620         { ac_try='test -s conftest.$ac_objext'
1621  { (eval echo "$as_me:1621: \"$ac_try\"") >&5
1622  (eval $ac_try) 2>&5
1623  ac_status=$?
1624  echo "$as_me:1624: \$? = $ac_status" >&5
1625  (exit $ac_status); }; }; then
1626  ac_compiler_gnu=yes
1627else
1628  echo "$as_me: failed program was:" >&5
1629cat conftest.$ac_ext >&5
1630ac_compiler_gnu=no
1631fi
1632rm -f conftest.$ac_objext conftest.$ac_ext
1633ac_cv_c_compiler_gnu=$ac_compiler_gnu
1634
1635fi
1636echo "$as_me:1636: result: $ac_cv_c_compiler_gnu" >&5
1637echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1638GCC=`test $ac_compiler_gnu = yes && echo yes`
1639ac_test_CFLAGS=${CFLAGS+set}
1640ac_save_CFLAGS=$CFLAGS
1641CFLAGS="-g"
1642echo "$as_me:1642: checking whether $CC accepts -g" >&5
1643echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1644if test "${ac_cv_prog_cc_g+set}" = set; then
1645  echo $ECHO_N "(cached) $ECHO_C" >&6
1646else
1647  cat >conftest.$ac_ext <<_ACEOF
1648#line 1648 "configure"
1649#include "confdefs.h"
1650
1651int
1652main ()
1653{
1654
1655  ;
1656  return 0;
1657}
1658_ACEOF
1659rm -f conftest.$ac_objext
1660if { (eval echo "$as_me:1660: \"$ac_compile\"") >&5
1661  (eval $ac_compile) 2>&5
1662  ac_status=$?
1663  echo "$as_me:1663: \$? = $ac_status" >&5
1664  (exit $ac_status); } &&
1665         { ac_try='test -s conftest.$ac_objext'
1666  { (eval echo "$as_me:1666: \"$ac_try\"") >&5
1667  (eval $ac_try) 2>&5
1668  ac_status=$?
1669  echo "$as_me:1669: \$? = $ac_status" >&5
1670  (exit $ac_status); }; }; then
1671  ac_cv_prog_cc_g=yes
1672else
1673  echo "$as_me: failed program was:" >&5
1674cat conftest.$ac_ext >&5
1675ac_cv_prog_cc_g=no
1676fi
1677rm -f conftest.$ac_objext conftest.$ac_ext
1678fi
1679echo "$as_me:1679: result: $ac_cv_prog_cc_g" >&5
1680echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1681if test "$ac_test_CFLAGS" = set; then
1682  CFLAGS=$ac_save_CFLAGS
1683elif test $ac_cv_prog_cc_g = yes; then
1684  if test "$GCC" = yes; then
1685    CFLAGS="-g -O2"
1686  else
1687    CFLAGS="-g"
1688  fi
1689else
1690  if test "$GCC" = yes; then
1691    CFLAGS="-O2"
1692  else
1693    CFLAGS=
1694  fi
1695fi
1696# Some people use a C++ compiler to compile C.  Since we use `exit',
1697# in C++ we need to declare it.  In case someone uses the same compiler
1698# for both compiling C and C++ we need to have the C++ compiler decide
1699# the declaration of exit, since it's the most demanding environment.
1700cat >conftest.$ac_ext <<_ACEOF
1701#ifndef __cplusplus
1702  choke me
1703#endif
1704_ACEOF
1705rm -f conftest.$ac_objext
1706if { (eval echo "$as_me:1706: \"$ac_compile\"") >&5
1707  (eval $ac_compile) 2>&5
1708  ac_status=$?
1709  echo "$as_me:1709: \$? = $ac_status" >&5
1710  (exit $ac_status); } &&
1711         { ac_try='test -s conftest.$ac_objext'
1712  { (eval echo "$as_me:1712: \"$ac_try\"") >&5
1713  (eval $ac_try) 2>&5
1714  ac_status=$?
1715  echo "$as_me:1715: \$? = $ac_status" >&5
1716  (exit $ac_status); }; }; then
1717  for ac_declaration in \
1718   ''\
1719   '#include <stdlib.h>' \
1720   'extern "C" void std::exit (int) throw (); using std::exit;' \
1721   'extern "C" void std::exit (int); using std::exit;' \
1722   'extern "C" void exit (int) throw ();' \
1723   'extern "C" void exit (int);' \
1724   'void exit (int);'
1725do
1726  cat >conftest.$ac_ext <<_ACEOF
1727#line 1727 "configure"
1728#include "confdefs.h"
1729#include <stdlib.h>
1730$ac_declaration
1731int
1732main ()
1733{
1734exit (42);
1735  ;
1736  return 0;
1737}
1738_ACEOF
1739rm -f conftest.$ac_objext
1740if { (eval echo "$as_me:1740: \"$ac_compile\"") >&5
1741  (eval $ac_compile) 2>&5
1742  ac_status=$?
1743  echo "$as_me:1743: \$? = $ac_status" >&5
1744  (exit $ac_status); } &&
1745         { ac_try='test -s conftest.$ac_objext'
1746  { (eval echo "$as_me:1746: \"$ac_try\"") >&5
1747  (eval $ac_try) 2>&5
1748  ac_status=$?
1749  echo "$as_me:1749: \$? = $ac_status" >&5
1750  (exit $ac_status); }; }; then
1751  :
1752else
1753  echo "$as_me: failed program was:" >&5
1754cat conftest.$ac_ext >&5
1755continue
1756fi
1757rm -f conftest.$ac_objext conftest.$ac_ext
1758  cat >conftest.$ac_ext <<_ACEOF
1759#line 1759 "configure"
1760#include "confdefs.h"
1761$ac_declaration
1762int
1763main ()
1764{
1765exit (42);
1766  ;
1767  return 0;
1768}
1769_ACEOF
1770rm -f conftest.$ac_objext
1771if { (eval echo "$as_me:1771: \"$ac_compile\"") >&5
1772  (eval $ac_compile) 2>&5
1773  ac_status=$?
1774  echo "$as_me:1774: \$? = $ac_status" >&5
1775  (exit $ac_status); } &&
1776         { ac_try='test -s conftest.$ac_objext'
1777  { (eval echo "$as_me:1777: \"$ac_try\"") >&5
1778  (eval $ac_try) 2>&5
1779  ac_status=$?
1780  echo "$as_me:1780: \$? = $ac_status" >&5
1781  (exit $ac_status); }; }; then
1782  break
1783else
1784  echo "$as_me: failed program was:" >&5
1785cat conftest.$ac_ext >&5
1786fi
1787rm -f conftest.$ac_objext conftest.$ac_ext
1788done
1789rm -rf conftest*
1790if test -n "$ac_declaration"; then
1791  echo '#ifdef __cplusplus' >>confdefs.h
1792  echo $ac_declaration      >>confdefs.h
1793  echo '#endif'             >>confdefs.h
1794fi
1795
1796else
1797  echo "$as_me: failed program was:" >&5
1798cat conftest.$ac_ext >&5
1799fi
1800rm -f conftest.$ac_objext conftest.$ac_ext
1801ac_ext=c
1802ac_cpp='$CPP $CPPFLAGS'
1803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806ac_main_return=return
1807
1808GCC_VERSION=none
1809if test "$GCC" = yes ; then
1810	echo "$as_me:1810: checking version of $CC" >&5
1811echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1812	GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1813	test -z "$GCC_VERSION" && GCC_VERSION=unknown
1814	echo "$as_me:1814: result: $GCC_VERSION" >&5
1815echo "${ECHO_T}$GCC_VERSION" >&6
1816fi
1817
1818echo "$as_me:1818: checking for $CC option to accept ANSI C" >&5
1819echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1820if test "${ac_cv_prog_cc_stdc+set}" = set; then
1821  echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823  ac_cv_prog_cc_stdc=no
1824ac_save_CC=$CC
1825cat >conftest.$ac_ext <<_ACEOF
1826#line 1826 "configure"
1827#include "confdefs.h"
1828#include <stdarg.h>
1829#include <stdio.h>
1830#include <sys/types.h>
1831#include <sys/stat.h>
1832/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1833struct buf { int x; };
1834FILE * (*rcsopen) (struct buf *, struct stat *, int);
1835static char *e (p, i)
1836     char **p;
1837     int i;
1838{
1839  return p[i];
1840}
1841static char *f (char * (*g) (char **, int), char **p, ...)
1842{
1843  char *s;
1844  va_list v;
1845  va_start (v,p);
1846  s = g (p, va_arg (v,int));
1847  va_end (v);
1848  return s;
1849}
1850int test (int i, double x);
1851struct s1 {int (*f) (int a);};
1852struct s2 {int (*f) (double a);};
1853int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1854int argc;
1855char **argv;
1856int
1857main ()
1858{
1859return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1860  ;
1861  return 0;
1862}
1863_ACEOF
1864# Don't try gcc -ansi; that turns off useful extensions and
1865# breaks some systems' header files.
1866# AIX			-qlanglvl=ansi
1867# Ultrix and OSF/1	-std1
1868# HP-UX 10.20 and later	-Ae
1869# HP-UX older versions	-Aa -D_HPUX_SOURCE
1870# SVR4			-Xc -D__EXTENSIONS__
1871for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1872do
1873  CC="$ac_save_CC $ac_arg"
1874  rm -f conftest.$ac_objext
1875if { (eval echo "$as_me:1875: \"$ac_compile\"") >&5
1876  (eval $ac_compile) 2>&5
1877  ac_status=$?
1878  echo "$as_me:1878: \$? = $ac_status" >&5
1879  (exit $ac_status); } &&
1880         { ac_try='test -s conftest.$ac_objext'
1881  { (eval echo "$as_me:1881: \"$ac_try\"") >&5
1882  (eval $ac_try) 2>&5
1883  ac_status=$?
1884  echo "$as_me:1884: \$? = $ac_status" >&5
1885  (exit $ac_status); }; }; then
1886  ac_cv_prog_cc_stdc=$ac_arg
1887break
1888else
1889  echo "$as_me: failed program was:" >&5
1890cat conftest.$ac_ext >&5
1891fi
1892rm -f conftest.$ac_objext
1893done
1894rm -f conftest.$ac_ext conftest.$ac_objext
1895CC=$ac_save_CC
1896
1897fi
1898
1899case "x$ac_cv_prog_cc_stdc" in
1900  x|xno)
1901    echo "$as_me:1901: result: none needed" >&5
1902echo "${ECHO_T}none needed" >&6 ;;
1903  *)
1904    echo "$as_me:1904: result: $ac_cv_prog_cc_stdc" >&5
1905echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1906    CC="$CC $ac_cv_prog_cc_stdc" ;;
1907esac
1908
1909# This should have been defined by AC_PROG_CC
1910: ${CC:=cc}
1911
1912echo "$as_me:1912: checking \$CC variable" >&5
1913echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1914case "$CC" in #(vi
1915*[\ \	]-[IUD]*)
1916	echo "$as_me:1916: result: broken" >&5
1917echo "${ECHO_T}broken" >&6
1918	{ echo "$as_me:1918: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1919echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1920	# humor him...
1921	cf_flags=`echo "$CC" | sed -e 's/^[^ 	]*[ 	]//'`
1922	CC=`echo "$CC" | sed -e 's/[ 	].*//'`
1923
1924cf_fix_cppflags=no
1925cf_new_cflags=
1926cf_new_cppflags=
1927cf_new_extra_cppflags=
1928
1929for cf_add_cflags in $cf_flags
1930do
1931case $cf_fix_cppflags in
1932no)
1933	case $cf_add_cflags in #(vi
1934	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1935		case $cf_add_cflags in
1936		-D*)
1937			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1938
1939			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1940				&& test -z "${cf_tst_cflags}" \
1941				&& cf_fix_cppflags=yes
1942
1943			if test $cf_fix_cppflags = yes ; then
1944				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1945				continue
1946			elif test "${cf_tst_cflags}" = "\"'" ; then
1947				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1948				continue
1949			fi
1950			;;
1951		esac
1952		case "$CPPFLAGS" in
1953		*$cf_add_cflags) #(vi
1954			;;
1955		*) #(vi
1956			case $cf_add_cflags in #(vi
1957			-D*)
1958				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1959
1960CPPFLAGS=`echo "$CPPFLAGS" | \
1961	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
1962		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
1963
1964				;;
1965			esac
1966			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1967			;;
1968		esac
1969		;;
1970	*)
1971		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1972		;;
1973	esac
1974	;;
1975yes)
1976	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1977
1978	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1979
1980	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1981		&& test -z "${cf_tst_cflags}" \
1982		&& cf_fix_cppflags=no
1983	;;
1984esac
1985done
1986
1987if test -n "$cf_new_cflags" ; then
1988
1989	CFLAGS="$CFLAGS $cf_new_cflags"
1990fi
1991
1992if test -n "$cf_new_cppflags" ; then
1993
1994	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1995fi
1996
1997if test -n "$cf_new_extra_cppflags" ; then
1998
1999	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2000fi
2001
2002	;;
2003*)
2004	echo "$as_me:2004: result: ok" >&5
2005echo "${ECHO_T}ok" >&6
2006	;;
2007esac
2008
2009echo "$as_me:2009: checking whether ${MAKE-make} sets \${MAKE}" >&5
2010echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2011set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2012if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2013  echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015  cat >conftest.make <<\EOF
2016all:
2017	@echo 'ac_maketemp="${MAKE}"'
2018EOF
2019# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2020eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2021if test -n "$ac_maketemp"; then
2022  eval ac_cv_prog_make_${ac_make}_set=yes
2023else
2024  eval ac_cv_prog_make_${ac_make}_set=no
2025fi
2026rm -f conftest.make
2027fi
2028if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2029  echo "$as_me:2029: result: yes" >&5
2030echo "${ECHO_T}yes" >&6
2031  SET_MAKE=
2032else
2033  echo "$as_me:2033: result: no" >&5
2034echo "${ECHO_T}no" >&6
2035  SET_MAKE="MAKE=${MAKE-make}"
2036fi
2037
2038# Find a good install program.  We prefer a C program (faster),
2039# so one script is as good as another.  But avoid the broken or
2040# incompatible versions:
2041# SysV /etc/install, /usr/sbin/install
2042# SunOS /usr/etc/install
2043# IRIX /sbin/install
2044# AIX /bin/install
2045# AmigaOS /C/install, which installs bootblocks on floppy discs
2046# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2047# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2048# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2049# ./install, which can be erroneously created by make from ./install.sh.
2050echo "$as_me:2050: checking for a BSD compatible install" >&5
2051echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2052if test -z "$INSTALL"; then
2053if test "${ac_cv_path_install+set}" = set; then
2054  echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056    ac_save_IFS=$IFS; IFS=$ac_path_separator
2057  for ac_dir in $PATH; do
2058    IFS=$ac_save_IFS
2059    # Account for people who put trailing slashes in PATH elements.
2060    case $ac_dir/ in
2061    / | ./ | .// | /cC/* \
2062    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2063    | /usr/ucb/* ) ;;
2064    *)
2065      # OSF1 and SCO ODT 3.0 have their own names for install.
2066      # Don't use installbsd from OSF since it installs stuff as root
2067      # by default.
2068      for ac_prog in ginstall scoinst install; do
2069        if $as_executable_p "$ac_dir/$ac_prog"; then
2070	  if test $ac_prog = install &&
2071            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2072	    # AIX install.  It has an incompatible calling convention.
2073	    :
2074	  elif test $ac_prog = install &&
2075	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2076	    # program-specific install script used by HP pwplus--don't use.
2077	    :
2078	  else
2079	    ac_cv_path_install="$ac_dir/$ac_prog -c"
2080	    break 2
2081	  fi
2082	fi
2083      done
2084      ;;
2085    esac
2086  done
2087
2088fi
2089  if test "${ac_cv_path_install+set}" = set; then
2090    INSTALL=$ac_cv_path_install
2091  else
2092    # As a last resort, use the slow shell script.  We don't cache a
2093    # path for INSTALL within a source directory, because that will
2094    # break other packages using the cache if that directory is
2095    # removed, or if the path is relative.
2096    INSTALL=$ac_install_sh
2097  fi
2098fi
2099echo "$as_me:2099: result: $INSTALL" >&5
2100echo "${ECHO_T}$INSTALL" >&6
2101
2102# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2103# It thinks the first close brace ends the variable substitution.
2104test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2105
2106test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2107
2108test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2109
2110echo "$as_me:2110: checking if filesystem supports mixed-case filenames" >&5
2111echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2112if test "${cf_cv_mixedcase+set}" = set; then
2113  echo $ECHO_N "(cached) $ECHO_C" >&6
2114else
2115
2116if test "$cross_compiling" = yes ; then
2117	case $target_alias in #(vi
2118	*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
2119		cf_cv_mixedcase=no
2120		;;
2121	*)
2122		cf_cv_mixedcase=yes
2123		;;
2124	esac
2125else
2126	rm -f conftest CONFTEST
2127	echo test >conftest
2128	if test -f CONFTEST ; then
2129		cf_cv_mixedcase=no
2130	else
2131		cf_cv_mixedcase=yes
2132	fi
2133	rm -f conftest CONFTEST
2134fi
2135
2136fi
2137echo "$as_me:2137: result: $cf_cv_mixedcase" >&5
2138echo "${ECHO_T}$cf_cv_mixedcase" >&6
2139test "$cf_cv_mixedcase" = yes &&
2140cat >>confdefs.h <<\EOF
2141#define MIXEDCASE_FILENAMES 1
2142EOF
2143
2144for ac_prog in exctags ctags
2145do
2146  # Extract the first word of "$ac_prog", so it can be a program name with args.
2147set dummy $ac_prog; ac_word=$2
2148echo "$as_me:2148: checking for $ac_word" >&5
2149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150if test "${ac_cv_prog_CTAGS+set}" = set; then
2151  echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153  if test -n "$CTAGS"; then
2154  ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2155else
2156  ac_save_IFS=$IFS; IFS=$ac_path_separator
2157ac_dummy="$PATH"
2158for ac_dir in $ac_dummy; do
2159  IFS=$ac_save_IFS
2160  test -z "$ac_dir" && ac_dir=.
2161  $as_executable_p "$ac_dir/$ac_word" || continue
2162ac_cv_prog_CTAGS="$ac_prog"
2163echo "$as_me:2163: found $ac_dir/$ac_word" >&5
2164break
2165done
2166
2167fi
2168fi
2169CTAGS=$ac_cv_prog_CTAGS
2170if test -n "$CTAGS"; then
2171  echo "$as_me:2171: result: $CTAGS" >&5
2172echo "${ECHO_T}$CTAGS" >&6
2173else
2174  echo "$as_me:2174: result: no" >&5
2175echo "${ECHO_T}no" >&6
2176fi
2177
2178  test -n "$CTAGS" && break
2179done
2180
2181for ac_prog in exetags etags
2182do
2183  # Extract the first word of "$ac_prog", so it can be a program name with args.
2184set dummy $ac_prog; ac_word=$2
2185echo "$as_me:2185: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187if test "${ac_cv_prog_ETAGS+set}" = set; then
2188  echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190  if test -n "$ETAGS"; then
2191  ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2192else
2193  ac_save_IFS=$IFS; IFS=$ac_path_separator
2194ac_dummy="$PATH"
2195for ac_dir in $ac_dummy; do
2196  IFS=$ac_save_IFS
2197  test -z "$ac_dir" && ac_dir=.
2198  $as_executable_p "$ac_dir/$ac_word" || continue
2199ac_cv_prog_ETAGS="$ac_prog"
2200echo "$as_me:2200: found $ac_dir/$ac_word" >&5
2201break
2202done
2203
2204fi
2205fi
2206ETAGS=$ac_cv_prog_ETAGS
2207if test -n "$ETAGS"; then
2208  echo "$as_me:2208: result: $ETAGS" >&5
2209echo "${ECHO_T}$ETAGS" >&6
2210else
2211  echo "$as_me:2211: result: no" >&5
2212echo "${ECHO_T}no" >&6
2213fi
2214
2215  test -n "$ETAGS" && break
2216done
2217
2218# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2219set dummy ${CTAGS:-ctags}; ac_word=$2
2220echo "$as_me:2220: checking for $ac_word" >&5
2221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2223  echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225  if test -n "$MAKE_LOWER_TAGS"; then
2226  ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2227else
2228  ac_save_IFS=$IFS; IFS=$ac_path_separator
2229ac_dummy="$PATH"
2230for ac_dir in $ac_dummy; do
2231  IFS=$ac_save_IFS
2232  test -z "$ac_dir" && ac_dir=.
2233  $as_executable_p "$ac_dir/$ac_word" || continue
2234ac_cv_prog_MAKE_LOWER_TAGS="yes"
2235echo "$as_me:2235: found $ac_dir/$ac_word" >&5
2236break
2237done
2238
2239  test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2240fi
2241fi
2242MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2243if test -n "$MAKE_LOWER_TAGS"; then
2244  echo "$as_me:2244: result: $MAKE_LOWER_TAGS" >&5
2245echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2246else
2247  echo "$as_me:2247: result: no" >&5
2248echo "${ECHO_T}no" >&6
2249fi
2250
2251if test "$cf_cv_mixedcase" = yes ; then
2252	# Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2253set dummy ${ETAGS:-etags}; ac_word=$2
2254echo "$as_me:2254: checking for $ac_word" >&5
2255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2257  echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259  if test -n "$MAKE_UPPER_TAGS"; then
2260  ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2261else
2262  ac_save_IFS=$IFS; IFS=$ac_path_separator
2263ac_dummy="$PATH"
2264for ac_dir in $ac_dummy; do
2265  IFS=$ac_save_IFS
2266  test -z "$ac_dir" && ac_dir=.
2267  $as_executable_p "$ac_dir/$ac_word" || continue
2268ac_cv_prog_MAKE_UPPER_TAGS="yes"
2269echo "$as_me:2269: found $ac_dir/$ac_word" >&5
2270break
2271done
2272
2273  test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2274fi
2275fi
2276MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2277if test -n "$MAKE_UPPER_TAGS"; then
2278  echo "$as_me:2278: result: $MAKE_UPPER_TAGS" >&5
2279echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2280else
2281  echo "$as_me:2281: result: no" >&5
2282echo "${ECHO_T}no" >&6
2283fi
2284
2285else
2286	MAKE_UPPER_TAGS=no
2287fi
2288
2289if test "$MAKE_UPPER_TAGS" = yes ; then
2290	MAKE_UPPER_TAGS=
2291else
2292	MAKE_UPPER_TAGS="#"
2293fi
2294
2295if test "$MAKE_LOWER_TAGS" = yes ; then
2296	MAKE_LOWER_TAGS=
2297else
2298	MAKE_LOWER_TAGS="#"
2299fi
2300
2301for ac_prog in mawk gawk nawk awk
2302do
2303  # Extract the first word of "$ac_prog", so it can be a program name with args.
2304set dummy $ac_prog; ac_word=$2
2305echo "$as_me:2305: checking for $ac_word" >&5
2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307if test "${ac_cv_prog_AWK+set}" = set; then
2308  echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310  if test -n "$AWK"; then
2311  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2312else
2313  ac_save_IFS=$IFS; IFS=$ac_path_separator
2314ac_dummy="$PATH"
2315for ac_dir in $ac_dummy; do
2316  IFS=$ac_save_IFS
2317  test -z "$ac_dir" && ac_dir=.
2318  $as_executable_p "$ac_dir/$ac_word" || continue
2319ac_cv_prog_AWK="$ac_prog"
2320echo "$as_me:2320: found $ac_dir/$ac_word" >&5
2321break
2322done
2323
2324fi
2325fi
2326AWK=$ac_cv_prog_AWK
2327if test -n "$AWK"; then
2328  echo "$as_me:2328: result: $AWK" >&5
2329echo "${ECHO_T}$AWK" >&6
2330else
2331  echo "$as_me:2331: result: no" >&5
2332echo "${ECHO_T}no" >&6
2333fi
2334
2335  test -n "$AWK" && break
2336done
2337
2338test -z "$AWK" && { { echo "$as_me:2338: error: No awk program found" >&5
2339echo "$as_me: error: No awk program found" >&2;}
2340   { (exit 1); exit 1; }; }
2341
2342for ac_prog in tdlint lint alint splint lclint
2343do
2344  # Extract the first word of "$ac_prog", so it can be a program name with args.
2345set dummy $ac_prog; ac_word=$2
2346echo "$as_me:2346: checking for $ac_word" >&5
2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348if test "${ac_cv_prog_LINT+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  if test -n "$LINT"; then
2352  ac_cv_prog_LINT="$LINT" # Let the user override the test.
2353else
2354  ac_save_IFS=$IFS; IFS=$ac_path_separator
2355ac_dummy="$PATH"
2356for ac_dir in $ac_dummy; do
2357  IFS=$ac_save_IFS
2358  test -z "$ac_dir" && ac_dir=.
2359  $as_executable_p "$ac_dir/$ac_word" || continue
2360ac_cv_prog_LINT="$ac_prog"
2361echo "$as_me:2361: found $ac_dir/$ac_word" >&5
2362break
2363done
2364
2365fi
2366fi
2367LINT=$ac_cv_prog_LINT
2368if test -n "$LINT"; then
2369  echo "$as_me:2369: result: $LINT" >&5
2370echo "${ECHO_T}$LINT" >&6
2371else
2372  echo "$as_me:2372: result: no" >&5
2373echo "${ECHO_T}no" >&6
2374fi
2375
2376  test -n "$LINT" && break
2377done
2378
2379cf_XOPEN_SOURCE=500
2380cf_POSIX_C_SOURCE=199506L
2381cf_xopen_source=
2382
2383case $host_os in #(vi
2384aix[4-7]*) #(vi
2385	cf_xopen_source="-D_ALL_SOURCE"
2386	;;
2387cygwin|msys) #(vi
2388	cf_XOPEN_SOURCE=600
2389	;;
2390darwin[0-8].*) #(vi
2391	cf_xopen_source="-D_APPLE_C_SOURCE"
2392	;;
2393darwin*) #(vi
2394	cf_xopen_source="-D_DARWIN_C_SOURCE"
2395	cf_XOPEN_SOURCE=
2396	;;
2397freebsd*|dragonfly*) #(vi
2398	# 5.x headers associate
2399	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2400	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2401	cf_POSIX_C_SOURCE=200112L
2402	cf_XOPEN_SOURCE=600
2403	cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2404	;;
2405hpux11*) #(vi
2406	cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2407	;;
2408hpux*) #(vi
2409	cf_xopen_source="-D_HPUX_SOURCE"
2410	;;
2411irix[56].*) #(vi
2412	cf_xopen_source="-D_SGI_SOURCE"
2413	cf_XOPEN_SOURCE=
2414	;;
2415linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2416
2417echo "$as_me:2417: checking if we must define _GNU_SOURCE" >&5
2418echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2419if test "${cf_cv_gnu_source+set}" = set; then
2420  echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422
2423cat >conftest.$ac_ext <<_ACEOF
2424#line 2424 "configure"
2425#include "confdefs.h"
2426#include <sys/types.h>
2427int
2428main ()
2429{
2430
2431#ifndef _XOPEN_SOURCE
2432make an error
2433#endif
2434  ;
2435  return 0;
2436}
2437_ACEOF
2438rm -f conftest.$ac_objext
2439if { (eval echo "$as_me:2439: \"$ac_compile\"") >&5
2440  (eval $ac_compile) 2>&5
2441  ac_status=$?
2442  echo "$as_me:2442: \$? = $ac_status" >&5
2443  (exit $ac_status); } &&
2444         { ac_try='test -s conftest.$ac_objext'
2445  { (eval echo "$as_me:2445: \"$ac_try\"") >&5
2446  (eval $ac_try) 2>&5
2447  ac_status=$?
2448  echo "$as_me:2448: \$? = $ac_status" >&5
2449  (exit $ac_status); }; }; then
2450  cf_cv_gnu_source=no
2451else
2452  echo "$as_me: failed program was:" >&5
2453cat conftest.$ac_ext >&5
2454cf_save="$CPPFLAGS"
2455	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2456	 cat >conftest.$ac_ext <<_ACEOF
2457#line 2457 "configure"
2458#include "confdefs.h"
2459#include <sys/types.h>
2460int
2461main ()
2462{
2463
2464#ifdef _XOPEN_SOURCE
2465make an error
2466#endif
2467  ;
2468  return 0;
2469}
2470_ACEOF
2471rm -f conftest.$ac_objext
2472if { (eval echo "$as_me:2472: \"$ac_compile\"") >&5
2473  (eval $ac_compile) 2>&5
2474  ac_status=$?
2475  echo "$as_me:2475: \$? = $ac_status" >&5
2476  (exit $ac_status); } &&
2477         { ac_try='test -s conftest.$ac_objext'
2478  { (eval echo "$as_me:2478: \"$ac_try\"") >&5
2479  (eval $ac_try) 2>&5
2480  ac_status=$?
2481  echo "$as_me:2481: \$? = $ac_status" >&5
2482  (exit $ac_status); }; }; then
2483  cf_cv_gnu_source=no
2484else
2485  echo "$as_me: failed program was:" >&5
2486cat conftest.$ac_ext >&5
2487cf_cv_gnu_source=yes
2488fi
2489rm -f conftest.$ac_objext conftest.$ac_ext
2490	CPPFLAGS="$cf_save"
2491
2492fi
2493rm -f conftest.$ac_objext conftest.$ac_ext
2494
2495fi
2496echo "$as_me:2496: result: $cf_cv_gnu_source" >&5
2497echo "${ECHO_T}$cf_cv_gnu_source" >&6
2498test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2499
2500	;;
2501minix*) #(vi
2502	cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
2503	;;
2504mirbsd*) #(vi
2505	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2506	cf_XOPEN_SOURCE=
2507
2508cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2509
2510cf_save_CFLAGS="$CFLAGS"
2511cf_save_CPPFLAGS="$CPPFLAGS"
2512
2513cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2514	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
2515		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
2516
2517cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2518	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
2519		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
2520
2521echo "$as_me:2521: checking if we should define _POSIX_C_SOURCE" >&5
2522echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2523if test "${cf_cv_posix_c_source+set}" = set; then
2524  echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526
2527echo "${as_me:-configure}:2527: testing if the symbol is already defined go no further ..." 1>&5
2528
2529	cat >conftest.$ac_ext <<_ACEOF
2530#line 2530 "configure"
2531#include "confdefs.h"
2532#include <sys/types.h>
2533int
2534main ()
2535{
2536
2537#ifndef _POSIX_C_SOURCE
2538make an error
2539#endif
2540  ;
2541  return 0;
2542}
2543_ACEOF
2544rm -f conftest.$ac_objext
2545if { (eval echo "$as_me:2545: \"$ac_compile\"") >&5
2546  (eval $ac_compile) 2>&5
2547  ac_status=$?
2548  echo "$as_me:2548: \$? = $ac_status" >&5
2549  (exit $ac_status); } &&
2550         { ac_try='test -s conftest.$ac_objext'
2551  { (eval echo "$as_me:2551: \"$ac_try\"") >&5
2552  (eval $ac_try) 2>&5
2553  ac_status=$?
2554  echo "$as_me:2554: \$? = $ac_status" >&5
2555  (exit $ac_status); }; }; then
2556  cf_cv_posix_c_source=no
2557else
2558  echo "$as_me: failed program was:" >&5
2559cat conftest.$ac_ext >&5
2560cf_want_posix_source=no
2561	 case .$cf_POSIX_C_SOURCE in #(vi
2562	 .[12]??*) #(vi
2563		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2564		;;
2565	 .2) #(vi
2566		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2567		cf_want_posix_source=yes
2568		;;
2569	 .*)
2570		cf_want_posix_source=yes
2571		;;
2572	 esac
2573	 if test "$cf_want_posix_source" = yes ; then
2574		cat >conftest.$ac_ext <<_ACEOF
2575#line 2575 "configure"
2576#include "confdefs.h"
2577#include <sys/types.h>
2578int
2579main ()
2580{
2581
2582#ifdef _POSIX_SOURCE
2583make an error
2584#endif
2585  ;
2586  return 0;
2587}
2588_ACEOF
2589rm -f conftest.$ac_objext
2590if { (eval echo "$as_me:2590: \"$ac_compile\"") >&5
2591  (eval $ac_compile) 2>&5
2592  ac_status=$?
2593  echo "$as_me:2593: \$? = $ac_status" >&5
2594  (exit $ac_status); } &&
2595         { ac_try='test -s conftest.$ac_objext'
2596  { (eval echo "$as_me:2596: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:2599: \$? = $ac_status" >&5
2600  (exit $ac_status); }; }; then
2601  :
2602else
2603  echo "$as_me: failed program was:" >&5
2604cat conftest.$ac_ext >&5
2605cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2606fi
2607rm -f conftest.$ac_objext conftest.$ac_ext
2608	 fi
2609
2610echo "${as_me:-configure}:2610: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2611
2612	 CFLAGS="$cf_trim_CFLAGS"
2613	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2614
2615echo "${as_me:-configure}:2615: testing if the second compile does not leave our definition intact error ..." 1>&5
2616
2617	 cat >conftest.$ac_ext <<_ACEOF
2618#line 2618 "configure"
2619#include "confdefs.h"
2620#include <sys/types.h>
2621int
2622main ()
2623{
2624
2625#ifndef _POSIX_C_SOURCE
2626make an error
2627#endif
2628  ;
2629  return 0;
2630}
2631_ACEOF
2632rm -f conftest.$ac_objext
2633if { (eval echo "$as_me:2633: \"$ac_compile\"") >&5
2634  (eval $ac_compile) 2>&5
2635  ac_status=$?
2636  echo "$as_me:2636: \$? = $ac_status" >&5
2637  (exit $ac_status); } &&
2638         { ac_try='test -s conftest.$ac_objext'
2639  { (eval echo "$as_me:2639: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:2642: \$? = $ac_status" >&5
2643  (exit $ac_status); }; }; then
2644  :
2645else
2646  echo "$as_me: failed program was:" >&5
2647cat conftest.$ac_ext >&5
2648cf_cv_posix_c_source=no
2649fi
2650rm -f conftest.$ac_objext conftest.$ac_ext
2651	 CFLAGS="$cf_save_CFLAGS"
2652	 CPPFLAGS="$cf_save_CPPFLAGS"
2653
2654fi
2655rm -f conftest.$ac_objext conftest.$ac_ext
2656
2657fi
2658echo "$as_me:2658: result: $cf_cv_posix_c_source" >&5
2659echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2660
2661if test "$cf_cv_posix_c_source" != no ; then
2662	CFLAGS="$cf_trim_CFLAGS"
2663	CPPFLAGS="$cf_trim_CPPFLAGS"
2664
2665cf_fix_cppflags=no
2666cf_new_cflags=
2667cf_new_cppflags=
2668cf_new_extra_cppflags=
2669
2670for cf_add_cflags in $cf_cv_posix_c_source
2671do
2672case $cf_fix_cppflags in
2673no)
2674	case $cf_add_cflags in #(vi
2675	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2676		case $cf_add_cflags in
2677		-D*)
2678			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2679
2680			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2681				&& test -z "${cf_tst_cflags}" \
2682				&& cf_fix_cppflags=yes
2683
2684			if test $cf_fix_cppflags = yes ; then
2685				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2686				continue
2687			elif test "${cf_tst_cflags}" = "\"'" ; then
2688				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2689				continue
2690			fi
2691			;;
2692		esac
2693		case "$CPPFLAGS" in
2694		*$cf_add_cflags) #(vi
2695			;;
2696		*) #(vi
2697			case $cf_add_cflags in #(vi
2698			-D*)
2699				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2700
2701CPPFLAGS=`echo "$CPPFLAGS" | \
2702	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
2703		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
2704
2705				;;
2706			esac
2707			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2708			;;
2709		esac
2710		;;
2711	*)
2712		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2713		;;
2714	esac
2715	;;
2716yes)
2717	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2718
2719	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2720
2721	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2722		&& test -z "${cf_tst_cflags}" \
2723		&& cf_fix_cppflags=no
2724	;;
2725esac
2726done
2727
2728if test -n "$cf_new_cflags" ; then
2729
2730	CFLAGS="$CFLAGS $cf_new_cflags"
2731fi
2732
2733if test -n "$cf_new_cppflags" ; then
2734
2735	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2736fi
2737
2738if test -n "$cf_new_extra_cppflags" ; then
2739
2740	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2741fi
2742
2743fi
2744
2745	;;
2746netbsd*) #(vi
2747	cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2748	;;
2749openbsd[4-9]*) #(vi
2750	# setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
2751	cf_xopen_source="-D_BSD_SOURCE"
2752	cf_XOPEN_SOURCE=600
2753	;;
2754openbsd*) #(vi
2755	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2756	;;
2757osf[45]*) #(vi
2758	cf_xopen_source="-D_OSF_SOURCE"
2759	;;
2760nto-qnx*) #(vi
2761	cf_xopen_source="-D_QNX_SOURCE"
2762	;;
2763sco*) #(vi
2764	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2765	;;
2766solaris2.*) #(vi
2767	cf_xopen_source="-D__EXTENSIONS__"
2768	cf_cv_xopen_source=broken
2769	;;
2770*)
2771
2772echo "$as_me:2772: checking if we should define _XOPEN_SOURCE" >&5
2773echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2774if test "${cf_cv_xopen_source+set}" = set; then
2775  echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777
2778	cat >conftest.$ac_ext <<_ACEOF
2779#line 2779 "configure"
2780#include "confdefs.h"
2781
2782#include <stdlib.h>
2783#include <string.h>
2784#include <sys/types.h>
2785
2786int
2787main ()
2788{
2789
2790#ifndef _XOPEN_SOURCE
2791make an error
2792#endif
2793  ;
2794  return 0;
2795}
2796_ACEOF
2797rm -f conftest.$ac_objext
2798if { (eval echo "$as_me:2798: \"$ac_compile\"") >&5
2799  (eval $ac_compile) 2>&5
2800  ac_status=$?
2801  echo "$as_me:2801: \$? = $ac_status" >&5
2802  (exit $ac_status); } &&
2803         { ac_try='test -s conftest.$ac_objext'
2804  { (eval echo "$as_me:2804: \"$ac_try\"") >&5
2805  (eval $ac_try) 2>&5
2806  ac_status=$?
2807  echo "$as_me:2807: \$? = $ac_status" >&5
2808  (exit $ac_status); }; }; then
2809  cf_cv_xopen_source=no
2810else
2811  echo "$as_me: failed program was:" >&5
2812cat conftest.$ac_ext >&5
2813cf_save="$CPPFLAGS"
2814	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2815	 cat >conftest.$ac_ext <<_ACEOF
2816#line 2816 "configure"
2817#include "confdefs.h"
2818
2819#include <stdlib.h>
2820#include <string.h>
2821#include <sys/types.h>
2822
2823int
2824main ()
2825{
2826
2827#ifdef _XOPEN_SOURCE
2828make an error
2829#endif
2830  ;
2831  return 0;
2832}
2833_ACEOF
2834rm -f conftest.$ac_objext
2835if { (eval echo "$as_me:2835: \"$ac_compile\"") >&5
2836  (eval $ac_compile) 2>&5
2837  ac_status=$?
2838  echo "$as_me:2838: \$? = $ac_status" >&5
2839  (exit $ac_status); } &&
2840         { ac_try='test -s conftest.$ac_objext'
2841  { (eval echo "$as_me:2841: \"$ac_try\"") >&5
2842  (eval $ac_try) 2>&5
2843  ac_status=$?
2844  echo "$as_me:2844: \$? = $ac_status" >&5
2845  (exit $ac_status); }; }; then
2846  cf_cv_xopen_source=no
2847else
2848  echo "$as_me: failed program was:" >&5
2849cat conftest.$ac_ext >&5
2850cf_cv_xopen_source=$cf_XOPEN_SOURCE
2851fi
2852rm -f conftest.$ac_objext conftest.$ac_ext
2853	CPPFLAGS="$cf_save"
2854
2855fi
2856rm -f conftest.$ac_objext conftest.$ac_ext
2857
2858fi
2859echo "$as_me:2859: result: $cf_cv_xopen_source" >&5
2860echo "${ECHO_T}$cf_cv_xopen_source" >&6
2861
2862if test "$cf_cv_xopen_source" != no ; then
2863
2864CFLAGS=`echo "$CFLAGS" | \
2865	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
2866		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
2867
2868CPPFLAGS=`echo "$CPPFLAGS" | \
2869	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
2870		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
2871
2872	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
2873
2874cf_fix_cppflags=no
2875cf_new_cflags=
2876cf_new_cppflags=
2877cf_new_extra_cppflags=
2878
2879for cf_add_cflags in $cf_temp_xopen_source
2880do
2881case $cf_fix_cppflags in
2882no)
2883	case $cf_add_cflags in #(vi
2884	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2885		case $cf_add_cflags in
2886		-D*)
2887			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2888
2889			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2890				&& test -z "${cf_tst_cflags}" \
2891				&& cf_fix_cppflags=yes
2892
2893			if test $cf_fix_cppflags = yes ; then
2894				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2895				continue
2896			elif test "${cf_tst_cflags}" = "\"'" ; then
2897				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2898				continue
2899			fi
2900			;;
2901		esac
2902		case "$CPPFLAGS" in
2903		*$cf_add_cflags) #(vi
2904			;;
2905		*) #(vi
2906			case $cf_add_cflags in #(vi
2907			-D*)
2908				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2909
2910CPPFLAGS=`echo "$CPPFLAGS" | \
2911	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
2912		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
2913
2914				;;
2915			esac
2916			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2917			;;
2918		esac
2919		;;
2920	*)
2921		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2922		;;
2923	esac
2924	;;
2925yes)
2926	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2927
2928	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2929
2930	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2931		&& test -z "${cf_tst_cflags}" \
2932		&& cf_fix_cppflags=no
2933	;;
2934esac
2935done
2936
2937if test -n "$cf_new_cflags" ; then
2938
2939	CFLAGS="$CFLAGS $cf_new_cflags"
2940fi
2941
2942if test -n "$cf_new_cppflags" ; then
2943
2944	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2945fi
2946
2947if test -n "$cf_new_extra_cppflags" ; then
2948
2949	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2950fi
2951
2952fi
2953
2954cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2955
2956cf_save_CFLAGS="$CFLAGS"
2957cf_save_CPPFLAGS="$CPPFLAGS"
2958
2959cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2960	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
2961		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
2962
2963cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2964	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
2965		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
2966
2967echo "$as_me:2967: checking if we should define _POSIX_C_SOURCE" >&5
2968echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2969if test "${cf_cv_posix_c_source+set}" = set; then
2970  echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972
2973echo "${as_me:-configure}:2973: testing if the symbol is already defined go no further ..." 1>&5
2974
2975	cat >conftest.$ac_ext <<_ACEOF
2976#line 2976 "configure"
2977#include "confdefs.h"
2978#include <sys/types.h>
2979int
2980main ()
2981{
2982
2983#ifndef _POSIX_C_SOURCE
2984make an error
2985#endif
2986  ;
2987  return 0;
2988}
2989_ACEOF
2990rm -f conftest.$ac_objext
2991if { (eval echo "$as_me:2991: \"$ac_compile\"") >&5
2992  (eval $ac_compile) 2>&5
2993  ac_status=$?
2994  echo "$as_me:2994: \$? = $ac_status" >&5
2995  (exit $ac_status); } &&
2996         { ac_try='test -s conftest.$ac_objext'
2997  { (eval echo "$as_me:2997: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:3000: \$? = $ac_status" >&5
3001  (exit $ac_status); }; }; then
3002  cf_cv_posix_c_source=no
3003else
3004  echo "$as_me: failed program was:" >&5
3005cat conftest.$ac_ext >&5
3006cf_want_posix_source=no
3007	 case .$cf_POSIX_C_SOURCE in #(vi
3008	 .[12]??*) #(vi
3009		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3010		;;
3011	 .2) #(vi
3012		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3013		cf_want_posix_source=yes
3014		;;
3015	 .*)
3016		cf_want_posix_source=yes
3017		;;
3018	 esac
3019	 if test "$cf_want_posix_source" = yes ; then
3020		cat >conftest.$ac_ext <<_ACEOF
3021#line 3021 "configure"
3022#include "confdefs.h"
3023#include <sys/types.h>
3024int
3025main ()
3026{
3027
3028#ifdef _POSIX_SOURCE
3029make an error
3030#endif
3031  ;
3032  return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext
3036if { (eval echo "$as_me:3036: \"$ac_compile\"") >&5
3037  (eval $ac_compile) 2>&5
3038  ac_status=$?
3039  echo "$as_me:3039: \$? = $ac_status" >&5
3040  (exit $ac_status); } &&
3041         { ac_try='test -s conftest.$ac_objext'
3042  { (eval echo "$as_me:3042: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:3045: \$? = $ac_status" >&5
3046  (exit $ac_status); }; }; then
3047  :
3048else
3049  echo "$as_me: failed program was:" >&5
3050cat conftest.$ac_ext >&5
3051cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3052fi
3053rm -f conftest.$ac_objext conftest.$ac_ext
3054	 fi
3055
3056echo "${as_me:-configure}:3056: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3057
3058	 CFLAGS="$cf_trim_CFLAGS"
3059	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3060
3061echo "${as_me:-configure}:3061: testing if the second compile does not leave our definition intact error ..." 1>&5
3062
3063	 cat >conftest.$ac_ext <<_ACEOF
3064#line 3064 "configure"
3065#include "confdefs.h"
3066#include <sys/types.h>
3067int
3068main ()
3069{
3070
3071#ifndef _POSIX_C_SOURCE
3072make an error
3073#endif
3074  ;
3075  return 0;
3076}
3077_ACEOF
3078rm -f conftest.$ac_objext
3079if { (eval echo "$as_me:3079: \"$ac_compile\"") >&5
3080  (eval $ac_compile) 2>&5
3081  ac_status=$?
3082  echo "$as_me:3082: \$? = $ac_status" >&5
3083  (exit $ac_status); } &&
3084         { ac_try='test -s conftest.$ac_objext'
3085  { (eval echo "$as_me:3085: \"$ac_try\"") >&5
3086  (eval $ac_try) 2>&5
3087  ac_status=$?
3088  echo "$as_me:3088: \$? = $ac_status" >&5
3089  (exit $ac_status); }; }; then
3090  :
3091else
3092  echo "$as_me: failed program was:" >&5
3093cat conftest.$ac_ext >&5
3094cf_cv_posix_c_source=no
3095fi
3096rm -f conftest.$ac_objext conftest.$ac_ext
3097	 CFLAGS="$cf_save_CFLAGS"
3098	 CPPFLAGS="$cf_save_CPPFLAGS"
3099
3100fi
3101rm -f conftest.$ac_objext conftest.$ac_ext
3102
3103fi
3104echo "$as_me:3104: result: $cf_cv_posix_c_source" >&5
3105echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3106
3107if test "$cf_cv_posix_c_source" != no ; then
3108	CFLAGS="$cf_trim_CFLAGS"
3109	CPPFLAGS="$cf_trim_CPPFLAGS"
3110
3111cf_fix_cppflags=no
3112cf_new_cflags=
3113cf_new_cppflags=
3114cf_new_extra_cppflags=
3115
3116for cf_add_cflags in $cf_cv_posix_c_source
3117do
3118case $cf_fix_cppflags in
3119no)
3120	case $cf_add_cflags in #(vi
3121	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3122		case $cf_add_cflags in
3123		-D*)
3124			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3125
3126			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3127				&& test -z "${cf_tst_cflags}" \
3128				&& cf_fix_cppflags=yes
3129
3130			if test $cf_fix_cppflags = yes ; then
3131				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3132				continue
3133			elif test "${cf_tst_cflags}" = "\"'" ; then
3134				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3135				continue
3136			fi
3137			;;
3138		esac
3139		case "$CPPFLAGS" in
3140		*$cf_add_cflags) #(vi
3141			;;
3142		*) #(vi
3143			case $cf_add_cflags in #(vi
3144			-D*)
3145				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3146
3147CPPFLAGS=`echo "$CPPFLAGS" | \
3148	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
3149		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
3150
3151				;;
3152			esac
3153			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3154			;;
3155		esac
3156		;;
3157	*)
3158		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3159		;;
3160	esac
3161	;;
3162yes)
3163	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3164
3165	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3166
3167	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3168		&& test -z "${cf_tst_cflags}" \
3169		&& cf_fix_cppflags=no
3170	;;
3171esac
3172done
3173
3174if test -n "$cf_new_cflags" ; then
3175
3176	CFLAGS="$CFLAGS $cf_new_cflags"
3177fi
3178
3179if test -n "$cf_new_cppflags" ; then
3180
3181	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3182fi
3183
3184if test -n "$cf_new_extra_cppflags" ; then
3185
3186	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3187fi
3188
3189fi
3190
3191	;;
3192esac
3193
3194if test -n "$cf_xopen_source" ; then
3195
3196cf_fix_cppflags=no
3197cf_new_cflags=
3198cf_new_cppflags=
3199cf_new_extra_cppflags=
3200
3201for cf_add_cflags in $cf_xopen_source
3202do
3203case $cf_fix_cppflags in
3204no)
3205	case $cf_add_cflags in #(vi
3206	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3207		case $cf_add_cflags in
3208		-D*)
3209			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3210
3211			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3212				&& test -z "${cf_tst_cflags}" \
3213				&& cf_fix_cppflags=yes
3214
3215			if test $cf_fix_cppflags = yes ; then
3216				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3217				continue
3218			elif test "${cf_tst_cflags}" = "\"'" ; then
3219				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3220				continue
3221			fi
3222			;;
3223		esac
3224		case "$CPPFLAGS" in
3225		*$cf_add_cflags) #(vi
3226			;;
3227		*) #(vi
3228			case $cf_add_cflags in #(vi
3229			-D*)
3230				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3231
3232CPPFLAGS=`echo "$CPPFLAGS" | \
3233	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
3234		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
3235
3236				;;
3237			esac
3238			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3239			;;
3240		esac
3241		;;
3242	*)
3243		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3244		;;
3245	esac
3246	;;
3247yes)
3248	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3249
3250	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3251
3252	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3253		&& test -z "${cf_tst_cflags}" \
3254		&& cf_fix_cppflags=no
3255	;;
3256esac
3257done
3258
3259if test -n "$cf_new_cflags" ; then
3260	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
3261
3262echo "${as_me:-configure}:3262: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3263
3264	CFLAGS="$CFLAGS $cf_new_cflags"
3265fi
3266
3267if test -n "$cf_new_cppflags" ; then
3268	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3269
3270echo "${as_me:-configure}:3270: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3271
3272	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3273fi
3274
3275if test -n "$cf_new_extra_cppflags" ; then
3276	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3277
3278echo "${as_me:-configure}:3278: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
3279
3280	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3281fi
3282
3283fi
3284
3285if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3286	echo "$as_me:3286: checking if _XOPEN_SOURCE really is set" >&5
3287echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3288	cat >conftest.$ac_ext <<_ACEOF
3289#line 3289 "configure"
3290#include "confdefs.h"
3291#include <stdlib.h>
3292int
3293main ()
3294{
3295
3296#ifndef _XOPEN_SOURCE
3297make an error
3298#endif
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303rm -f conftest.$ac_objext
3304if { (eval echo "$as_me:3304: \"$ac_compile\"") >&5
3305  (eval $ac_compile) 2>&5
3306  ac_status=$?
3307  echo "$as_me:3307: \$? = $ac_status" >&5
3308  (exit $ac_status); } &&
3309         { ac_try='test -s conftest.$ac_objext'
3310  { (eval echo "$as_me:3310: \"$ac_try\"") >&5
3311  (eval $ac_try) 2>&5
3312  ac_status=$?
3313  echo "$as_me:3313: \$? = $ac_status" >&5
3314  (exit $ac_status); }; }; then
3315  cf_XOPEN_SOURCE_set=yes
3316else
3317  echo "$as_me: failed program was:" >&5
3318cat conftest.$ac_ext >&5
3319cf_XOPEN_SOURCE_set=no
3320fi
3321rm -f conftest.$ac_objext conftest.$ac_ext
3322	echo "$as_me:3322: result: $cf_XOPEN_SOURCE_set" >&5
3323echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3324	if test $cf_XOPEN_SOURCE_set = yes
3325	then
3326		cat >conftest.$ac_ext <<_ACEOF
3327#line 3327 "configure"
3328#include "confdefs.h"
3329#include <stdlib.h>
3330int
3331main ()
3332{
3333
3334#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3335make an error
3336#endif
3337  ;
3338  return 0;
3339}
3340_ACEOF
3341rm -f conftest.$ac_objext
3342if { (eval echo "$as_me:3342: \"$ac_compile\"") >&5
3343  (eval $ac_compile) 2>&5
3344  ac_status=$?
3345  echo "$as_me:3345: \$? = $ac_status" >&5
3346  (exit $ac_status); } &&
3347         { ac_try='test -s conftest.$ac_objext'
3348  { (eval echo "$as_me:3348: \"$ac_try\"") >&5
3349  (eval $ac_try) 2>&5
3350  ac_status=$?
3351  echo "$as_me:3351: \$? = $ac_status" >&5
3352  (exit $ac_status); }; }; then
3353  cf_XOPEN_SOURCE_set_ok=yes
3354else
3355  echo "$as_me: failed program was:" >&5
3356cat conftest.$ac_ext >&5
3357cf_XOPEN_SOURCE_set_ok=no
3358fi
3359rm -f conftest.$ac_objext conftest.$ac_ext
3360		if test $cf_XOPEN_SOURCE_set_ok = no
3361		then
3362			{ echo "$as_me:3362: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3363echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3364		fi
3365	else
3366
3367echo "$as_me:3367: checking if we should define _XOPEN_SOURCE" >&5
3368echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3369if test "${cf_cv_xopen_source+set}" = set; then
3370  echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372
3373	cat >conftest.$ac_ext <<_ACEOF
3374#line 3374 "configure"
3375#include "confdefs.h"
3376
3377#include <stdlib.h>
3378#include <string.h>
3379#include <sys/types.h>
3380
3381int
3382main ()
3383{
3384
3385#ifndef _XOPEN_SOURCE
3386make an error
3387#endif
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392rm -f conftest.$ac_objext
3393if { (eval echo "$as_me:3393: \"$ac_compile\"") >&5
3394  (eval $ac_compile) 2>&5
3395  ac_status=$?
3396  echo "$as_me:3396: \$? = $ac_status" >&5
3397  (exit $ac_status); } &&
3398         { ac_try='test -s conftest.$ac_objext'
3399  { (eval echo "$as_me:3399: \"$ac_try\"") >&5
3400  (eval $ac_try) 2>&5
3401  ac_status=$?
3402  echo "$as_me:3402: \$? = $ac_status" >&5
3403  (exit $ac_status); }; }; then
3404  cf_cv_xopen_source=no
3405else
3406  echo "$as_me: failed program was:" >&5
3407cat conftest.$ac_ext >&5
3408cf_save="$CPPFLAGS"
3409	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3410	 cat >conftest.$ac_ext <<_ACEOF
3411#line 3411 "configure"
3412#include "confdefs.h"
3413
3414#include <stdlib.h>
3415#include <string.h>
3416#include <sys/types.h>
3417
3418int
3419main ()
3420{
3421
3422#ifdef _XOPEN_SOURCE
3423make an error
3424#endif
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429rm -f conftest.$ac_objext
3430if { (eval echo "$as_me:3430: \"$ac_compile\"") >&5
3431  (eval $ac_compile) 2>&5
3432  ac_status=$?
3433  echo "$as_me:3433: \$? = $ac_status" >&5
3434  (exit $ac_status); } &&
3435         { ac_try='test -s conftest.$ac_objext'
3436  { (eval echo "$as_me:3436: \"$ac_try\"") >&5
3437  (eval $ac_try) 2>&5
3438  ac_status=$?
3439  echo "$as_me:3439: \$? = $ac_status" >&5
3440  (exit $ac_status); }; }; then
3441  cf_cv_xopen_source=no
3442else
3443  echo "$as_me: failed program was:" >&5
3444cat conftest.$ac_ext >&5
3445cf_cv_xopen_source=$cf_XOPEN_SOURCE
3446fi
3447rm -f conftest.$ac_objext conftest.$ac_ext
3448	CPPFLAGS="$cf_save"
3449
3450fi
3451rm -f conftest.$ac_objext conftest.$ac_ext
3452
3453fi
3454echo "$as_me:3454: result: $cf_cv_xopen_source" >&5
3455echo "${ECHO_T}$cf_cv_xopen_source" >&6
3456
3457if test "$cf_cv_xopen_source" != no ; then
3458
3459CFLAGS=`echo "$CFLAGS" | \
3460	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
3461		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
3462
3463CPPFLAGS=`echo "$CPPFLAGS" | \
3464	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
3465		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
3466
3467	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3468
3469cf_fix_cppflags=no
3470cf_new_cflags=
3471cf_new_cppflags=
3472cf_new_extra_cppflags=
3473
3474for cf_add_cflags in $cf_temp_xopen_source
3475do
3476case $cf_fix_cppflags in
3477no)
3478	case $cf_add_cflags in #(vi
3479	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3480		case $cf_add_cflags in
3481		-D*)
3482			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3483
3484			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3485				&& test -z "${cf_tst_cflags}" \
3486				&& cf_fix_cppflags=yes
3487
3488			if test $cf_fix_cppflags = yes ; then
3489				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3490				continue
3491			elif test "${cf_tst_cflags}" = "\"'" ; then
3492				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3493				continue
3494			fi
3495			;;
3496		esac
3497		case "$CPPFLAGS" in
3498		*$cf_add_cflags) #(vi
3499			;;
3500		*) #(vi
3501			case $cf_add_cflags in #(vi
3502			-D*)
3503				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3504
3505CPPFLAGS=`echo "$CPPFLAGS" | \
3506	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
3507		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
3508
3509				;;
3510			esac
3511			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3512			;;
3513		esac
3514		;;
3515	*)
3516		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3517		;;
3518	esac
3519	;;
3520yes)
3521	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3522
3523	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3524
3525	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3526		&& test -z "${cf_tst_cflags}" \
3527		&& cf_fix_cppflags=no
3528	;;
3529esac
3530done
3531
3532if test -n "$cf_new_cflags" ; then
3533
3534	CFLAGS="$CFLAGS $cf_new_cflags"
3535fi
3536
3537if test -n "$cf_new_cppflags" ; then
3538
3539	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3540fi
3541
3542if test -n "$cf_new_extra_cppflags" ; then
3543
3544	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3545fi
3546
3547fi
3548
3549	fi
3550fi
3551
3552ac_ext=c
3553ac_cpp='$CPP $CPPFLAGS'
3554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557ac_main_return=return
3558echo "$as_me:3558: checking how to run the C preprocessor" >&5
3559echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3560# On Suns, sometimes $CPP names a directory.
3561if test -n "$CPP" && test -d "$CPP"; then
3562  CPP=
3563fi
3564if test -z "$CPP"; then
3565  if test "${ac_cv_prog_CPP+set}" = set; then
3566  echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
3568      # Double quotes because CPP needs to be expanded
3569    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3570    do
3571      ac_preproc_ok=false
3572for ac_c_preproc_warn_flag in '' yes
3573do
3574  # Use a header file that comes with gcc, so configuring glibc
3575  # with a fresh cross-compiler works.
3576  # On the NeXT, cc -E runs the code through the compiler's parser,
3577  # not just through cpp. "Syntax error" is here to catch this case.
3578  cat >conftest.$ac_ext <<_ACEOF
3579#line 3579 "configure"
3580#include "confdefs.h"
3581#include <assert.h>
3582                     Syntax error
3583_ACEOF
3584if { (eval echo "$as_me:3584: \"$ac_cpp conftest.$ac_ext\"") >&5
3585  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3586  ac_status=$?
3587  egrep -v '^ *\+' conftest.er1 >conftest.err
3588  rm -f conftest.er1
3589  cat conftest.err >&5
3590  echo "$as_me:3590: \$? = $ac_status" >&5
3591  (exit $ac_status); } >/dev/null; then
3592  if test -s conftest.err; then
3593    ac_cpp_err=$ac_c_preproc_warn_flag
3594  else
3595    ac_cpp_err=
3596  fi
3597else
3598  ac_cpp_err=yes
3599fi
3600if test -z "$ac_cpp_err"; then
3601  :
3602else
3603  echo "$as_me: failed program was:" >&5
3604  cat conftest.$ac_ext >&5
3605  # Broken: fails on valid input.
3606continue
3607fi
3608rm -f conftest.err conftest.$ac_ext
3609
3610  # OK, works on sane cases.  Now check whether non-existent headers
3611  # can be detected and how.
3612  cat >conftest.$ac_ext <<_ACEOF
3613#line 3613 "configure"
3614#include "confdefs.h"
3615#include <ac_nonexistent.h>
3616_ACEOF
3617if { (eval echo "$as_me:3617: \"$ac_cpp conftest.$ac_ext\"") >&5
3618  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3619  ac_status=$?
3620  egrep -v '^ *\+' conftest.er1 >conftest.err
3621  rm -f conftest.er1
3622  cat conftest.err >&5
3623  echo "$as_me:3623: \$? = $ac_status" >&5
3624  (exit $ac_status); } >/dev/null; then
3625  if test -s conftest.err; then
3626    ac_cpp_err=$ac_c_preproc_warn_flag
3627  else
3628    ac_cpp_err=
3629  fi
3630else
3631  ac_cpp_err=yes
3632fi
3633if test -z "$ac_cpp_err"; then
3634  # Broken: success on invalid input.
3635continue
3636else
3637  echo "$as_me: failed program was:" >&5
3638  cat conftest.$ac_ext >&5
3639  # Passes both tests.
3640ac_preproc_ok=:
3641break
3642fi
3643rm -f conftest.err conftest.$ac_ext
3644
3645done
3646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647rm -f conftest.err conftest.$ac_ext
3648if $ac_preproc_ok; then
3649  break
3650fi
3651
3652    done
3653    ac_cv_prog_CPP=$CPP
3654
3655fi
3656  CPP=$ac_cv_prog_CPP
3657else
3658  ac_cv_prog_CPP=$CPP
3659fi
3660echo "$as_me:3660: result: $CPP" >&5
3661echo "${ECHO_T}$CPP" >&6
3662ac_preproc_ok=false
3663for ac_c_preproc_warn_flag in '' yes
3664do
3665  # Use a header file that comes with gcc, so configuring glibc
3666  # with a fresh cross-compiler works.
3667  # On the NeXT, cc -E runs the code through the compiler's parser,
3668  # not just through cpp. "Syntax error" is here to catch this case.
3669  cat >conftest.$ac_ext <<_ACEOF
3670#line 3670 "configure"
3671#include "confdefs.h"
3672#include <assert.h>
3673                     Syntax error
3674_ACEOF
3675if { (eval echo "$as_me:3675: \"$ac_cpp conftest.$ac_ext\"") >&5
3676  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3677  ac_status=$?
3678  egrep -v '^ *\+' conftest.er1 >conftest.err
3679  rm -f conftest.er1
3680  cat conftest.err >&5
3681  echo "$as_me:3681: \$? = $ac_status" >&5
3682  (exit $ac_status); } >/dev/null; then
3683  if test -s conftest.err; then
3684    ac_cpp_err=$ac_c_preproc_warn_flag
3685  else
3686    ac_cpp_err=
3687  fi
3688else
3689  ac_cpp_err=yes
3690fi
3691if test -z "$ac_cpp_err"; then
3692  :
3693else
3694  echo "$as_me: failed program was:" >&5
3695  cat conftest.$ac_ext >&5
3696  # Broken: fails on valid input.
3697continue
3698fi
3699rm -f conftest.err conftest.$ac_ext
3700
3701  # OK, works on sane cases.  Now check whether non-existent headers
3702  # can be detected and how.
3703  cat >conftest.$ac_ext <<_ACEOF
3704#line 3704 "configure"
3705#include "confdefs.h"
3706#include <ac_nonexistent.h>
3707_ACEOF
3708if { (eval echo "$as_me:3708: \"$ac_cpp conftest.$ac_ext\"") >&5
3709  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3710  ac_status=$?
3711  egrep -v '^ *\+' conftest.er1 >conftest.err
3712  rm -f conftest.er1
3713  cat conftest.err >&5
3714  echo "$as_me:3714: \$? = $ac_status" >&5
3715  (exit $ac_status); } >/dev/null; then
3716  if test -s conftest.err; then
3717    ac_cpp_err=$ac_c_preproc_warn_flag
3718  else
3719    ac_cpp_err=
3720  fi
3721else
3722  ac_cpp_err=yes
3723fi
3724if test -z "$ac_cpp_err"; then
3725  # Broken: success on invalid input.
3726continue
3727else
3728  echo "$as_me: failed program was:" >&5
3729  cat conftest.$ac_ext >&5
3730  # Passes both tests.
3731ac_preproc_ok=:
3732break
3733fi
3734rm -f conftest.err conftest.$ac_ext
3735
3736done
3737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738rm -f conftest.err conftest.$ac_ext
3739if $ac_preproc_ok; then
3740  :
3741else
3742  { { echo "$as_me:3742: error: C preprocessor \"$CPP\" fails sanity check" >&5
3743echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3744   { (exit 1); exit 1; }; }
3745fi
3746
3747ac_ext=c
3748ac_cpp='$CPP $CPPFLAGS'
3749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752ac_main_return=return
3753
3754for ac_header in fcntl.h
3755do
3756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3757echo "$as_me:3757: checking for $ac_header" >&5
3758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3759if eval "test \"\${$as_ac_Header+set}\" = set"; then
3760  echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762  cat >conftest.$ac_ext <<_ACEOF
3763#line 3763 "configure"
3764#include "confdefs.h"
3765#include <$ac_header>
3766_ACEOF
3767if { (eval echo "$as_me:3767: \"$ac_cpp conftest.$ac_ext\"") >&5
3768  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3769  ac_status=$?
3770  egrep -v '^ *\+' conftest.er1 >conftest.err
3771  rm -f conftest.er1
3772  cat conftest.err >&5
3773  echo "$as_me:3773: \$? = $ac_status" >&5
3774  (exit $ac_status); } >/dev/null; then
3775  if test -s conftest.err; then
3776    ac_cpp_err=$ac_c_preproc_warn_flag
3777  else
3778    ac_cpp_err=
3779  fi
3780else
3781  ac_cpp_err=yes
3782fi
3783if test -z "$ac_cpp_err"; then
3784  eval "$as_ac_Header=yes"
3785else
3786  echo "$as_me: failed program was:" >&5
3787  cat conftest.$ac_ext >&5
3788  eval "$as_ac_Header=no"
3789fi
3790rm -f conftest.err conftest.$ac_ext
3791fi
3792echo "$as_me:3792: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794if test `eval echo '${'$as_ac_Header'}'` = yes; then
3795  cat >>confdefs.h <<EOF
3796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3797EOF
3798
3799fi
3800done
3801
3802echo "$as_me:3802: checking for working mkstemp" >&5
3803echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
3804if test "${cf_cv_func_mkstemp+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807
3808rm -rf conftest*
3809if test "$cross_compiling" = yes; then
3810  cf_cv_func_mkstemp=maybe
3811else
3812  cat >conftest.$ac_ext <<_ACEOF
3813#line 3813 "configure"
3814#include "confdefs.h"
3815
3816#include <sys/types.h>
3817#include <stdlib.h>
3818#include <stdio.h>
3819#include <string.h>
3820#include <sys/stat.h>
3821int main()
3822{
3823	char *tmpl = "conftestXXXXXX";
3824	char name[2][80];
3825	int n;
3826	int result = 0;
3827	int fd;
3828	struct stat sb;
3829
3830	umask(077);
3831	for (n = 0; n < 2; ++n) {
3832		strcpy(name[n], tmpl);
3833		if ((fd = mkstemp(name[n])) >= 0) {
3834			if (!strcmp(name[n], tmpl)
3835			 || stat(name[n], &sb) != 0
3836			 || (sb.st_mode & S_IFMT) != S_IFREG
3837			 || (sb.st_mode & 077) != 0) {
3838				result = 1;
3839			}
3840			close(fd);
3841		}
3842	}
3843	if (result == 0
3844	 && !strcmp(name[0], name[1]))
3845		result = 1;
3846	${cf_cv_main_return:-return}(result);
3847}
3848
3849_ACEOF
3850rm -f conftest$ac_exeext
3851if { (eval echo "$as_me:3851: \"$ac_link\"") >&5
3852  (eval $ac_link) 2>&5
3853  ac_status=$?
3854  echo "$as_me:3854: \$? = $ac_status" >&5
3855  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3856  { (eval echo "$as_me:3856: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:3859: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
3861  cf_cv_func_mkstemp=yes
3862
3863else
3864  echo "$as_me: program exited with status $ac_status" >&5
3865echo "$as_me: failed program was:" >&5
3866cat conftest.$ac_ext >&5
3867cf_cv_func_mkstemp=no
3868
3869fi
3870rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3871fi
3872
3873fi
3874echo "$as_me:3874: result: $cf_cv_func_mkstemp" >&5
3875echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
3876if test "x$cf_cv_func_mkstemp" = xmaybe ; then
3877	echo "$as_me:3877: checking for mkstemp" >&5
3878echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
3879if test "${ac_cv_func_mkstemp+set}" = set; then
3880  echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882  cat >conftest.$ac_ext <<_ACEOF
3883#line 3883 "configure"
3884#include "confdefs.h"
3885/* System header to define __stub macros and hopefully few prototypes,
3886    which can conflict with char mkstemp (); below.  */
3887#include <assert.h>
3888/* Override any gcc2 internal prototype to avoid an error.  */
3889#ifdef __cplusplus
3890extern "C"
3891#endif
3892/* We use char because int might match the return type of a gcc2
3893   builtin and then its argument prototype would still apply.  */
3894char mkstemp ();
3895char (*f) ();
3896
3897int
3898main ()
3899{
3900/* The GNU C library defines this for functions which it implements
3901    to always fail with ENOSYS.  Some functions are actually named
3902    something starting with __ and the normal name is an alias.  */
3903#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
3904choke me
3905#else
3906f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3907#endif
3908
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913rm -f conftest.$ac_objext conftest$ac_exeext
3914if { (eval echo "$as_me:3914: \"$ac_link\"") >&5
3915  (eval $ac_link) 2>&5
3916  ac_status=$?
3917  echo "$as_me:3917: \$? = $ac_status" >&5
3918  (exit $ac_status); } &&
3919         { ac_try='test -s conftest$ac_exeext'
3920  { (eval echo "$as_me:3920: \"$ac_try\"") >&5
3921  (eval $ac_try) 2>&5
3922  ac_status=$?
3923  echo "$as_me:3923: \$? = $ac_status" >&5
3924  (exit $ac_status); }; }; then
3925  ac_cv_func_mkstemp=yes
3926else
3927  echo "$as_me: failed program was:" >&5
3928cat conftest.$ac_ext >&5
3929ac_cv_func_mkstemp=no
3930fi
3931rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3932fi
3933echo "$as_me:3933: result: $ac_cv_func_mkstemp" >&5
3934echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
3935
3936fi
3937if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
3938
3939cat >>confdefs.h <<\EOF
3940#define HAVE_MKSTEMP 1
3941EOF
3942
3943fi
3944
3945for ac_func in vsnprintf
3946do
3947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3948echo "$as_me:3948: checking for $ac_func" >&5
3949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3950if eval "test \"\${$as_ac_var+set}\" = set"; then
3951  echo $ECHO_N "(cached) $ECHO_C" >&6
3952else
3953  cat >conftest.$ac_ext <<_ACEOF
3954#line 3954 "configure"
3955#include "confdefs.h"
3956/* System header to define __stub macros and hopefully few prototypes,
3957    which can conflict with char $ac_func (); below.  */
3958#include <assert.h>
3959/* Override any gcc2 internal prototype to avoid an error.  */
3960#ifdef __cplusplus
3961extern "C"
3962#endif
3963/* We use char because int might match the return type of a gcc2
3964   builtin and then its argument prototype would still apply.  */
3965char $ac_func ();
3966char (*f) ();
3967
3968int
3969main ()
3970{
3971/* The GNU C library defines this for functions which it implements
3972    to always fail with ENOSYS.  Some functions are actually named
3973    something starting with __ and the normal name is an alias.  */
3974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3975choke me
3976#else
3977f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3978#endif
3979
3980  ;
3981  return 0;
3982}
3983_ACEOF
3984rm -f conftest.$ac_objext conftest$ac_exeext
3985if { (eval echo "$as_me:3985: \"$ac_link\"") >&5
3986  (eval $ac_link) 2>&5
3987  ac_status=$?
3988  echo "$as_me:3988: \$? = $ac_status" >&5
3989  (exit $ac_status); } &&
3990         { ac_try='test -s conftest$ac_exeext'
3991  { (eval echo "$as_me:3991: \"$ac_try\"") >&5
3992  (eval $ac_try) 2>&5
3993  ac_status=$?
3994  echo "$as_me:3994: \$? = $ac_status" >&5
3995  (exit $ac_status); }; }; then
3996  eval "$as_ac_var=yes"
3997else
3998  echo "$as_me: failed program was:" >&5
3999cat conftest.$ac_ext >&5
4000eval "$as_ac_var=no"
4001fi
4002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4003fi
4004echo "$as_me:4004: result: `eval echo '${'$as_ac_var'}'`" >&5
4005echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4006if test `eval echo '${'$as_ac_var'}'` = yes; then
4007  cat >>confdefs.h <<EOF
4008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4009EOF
4010
4011fi
4012done
4013
4014echo "$as_me:4014: checking for maximum table size" >&5
4015echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
4016
4017# Check whether --with-max-table-size or --without-max-table-size was given.
4018if test "${with_max_table_size+set}" = set; then
4019  withval="$with_max_table_size"
4020
4021fi;
4022if test -n "$with_max_table_size"
4023then
4024	echo "$as_me:4024: result: $with_max_table_size" >&5
4025echo "${ECHO_T}$with_max_table_size" >&6
4026	check=`expr "$with_max_table_size" + 0`
4027	if test "x$check" != "x$with_max_table_size"
4028	then
4029		{ { echo "$as_me:4029: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
4030echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
4031   { (exit 1); exit 1; }; }
4032	fi
4033
4034cat >>confdefs.h <<EOF
4035#define MAXTABLE $with_max_table_size
4036EOF
4037
4038else
4039	echo "$as_me:4039: result: default" >&5
4040echo "${ECHO_T}default" >&6
4041fi
4042
4043echo "$as_me:4043: checking if backtracking extension is wanted" >&5
4044echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
4045
4046# Check whether --enable-btyacc or --disable-btyacc was given.
4047if test "${enable_btyacc+set}" = set; then
4048  enableval="$enable_btyacc"
4049
4050fi;
4051echo "$as_me:4051: result: $enable_btyacc" >&5
4052echo "${ECHO_T}$enable_btyacc" >&6
4053if test "$enable_btyacc" = "yes"; then
4054
4055cat >>confdefs.h <<\EOF
4056#define YYBTYACC 1
4057EOF
4058
4059	SKELETON=btyaccpar
4060else
4061	SKELETON=yaccpar
4062fi
4063
4064if ( test "$GCC" = yes || test "$GXX" = yes )
4065then
4066echo "$as_me:4066: checking if you want to check for gcc warnings" >&5
4067echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
4068
4069# Check whether --with-warnings or --without-warnings was given.
4070if test "${with_warnings+set}" = set; then
4071  withval="$with_warnings"
4072  cf_opt_with_warnings=$withval
4073else
4074  cf_opt_with_warnings=no
4075fi;
4076echo "$as_me:4076: result: $cf_opt_with_warnings" >&5
4077echo "${ECHO_T}$cf_opt_with_warnings" >&6
4078if test "$cf_opt_with_warnings" != no ; then
4079
4080if test "$GCC" = yes
4081then
4082cat > conftest.i <<EOF
4083#ifndef GCC_PRINTF
4084#define GCC_PRINTF 0
4085#endif
4086#ifndef GCC_SCANF
4087#define GCC_SCANF 0
4088#endif
4089#ifndef GCC_NORETURN
4090#define GCC_NORETURN /* nothing */
4091#endif
4092#ifndef GCC_UNUSED
4093#define GCC_UNUSED /* nothing */
4094#endif
4095EOF
4096if test "$GCC" = yes
4097then
4098	{ echo "$as_me:4098: checking for $CC __attribute__ directives..." >&5
4099echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4100cat > conftest.$ac_ext <<EOF
4101#line 4101 "${as_me:-configure}"
4102#include "confdefs.h"
4103#include "conftest.h"
4104#include "conftest.i"
4105#if	GCC_PRINTF
4106#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4107#else
4108#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4109#endif
4110#if	GCC_SCANF
4111#define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
4112#else
4113#define GCC_SCANFLIKE(fmt,var)  /*nothing*/
4114#endif
4115extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4116extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4117extern void foo(void) GCC_NORETURN;
4118int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4119EOF
4120	cf_printf_attribute=no
4121	cf_scanf_attribute=no
4122	for cf_attribute in scanf printf unused noreturn
4123	do
4124
4125cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4126
4127		cf_directive="__attribute__(($cf_attribute))"
4128		echo "checking for $CC $cf_directive" 1>&5
4129
4130		case $cf_attribute in #(vi
4131		printf) #(vi
4132			cf_printf_attribute=yes
4133			cat >conftest.h <<EOF
4134#define GCC_$cf_ATTRIBUTE 1
4135EOF
4136			;;
4137		scanf) #(vi
4138			cf_scanf_attribute=yes
4139			cat >conftest.h <<EOF
4140#define GCC_$cf_ATTRIBUTE 1
4141EOF
4142			;;
4143		*) #(vi
4144			cat >conftest.h <<EOF
4145#define GCC_$cf_ATTRIBUTE $cf_directive
4146EOF
4147			;;
4148		esac
4149
4150		if { (eval echo "$as_me:4150: \"$ac_compile\"") >&5
4151  (eval $ac_compile) 2>&5
4152  ac_status=$?
4153  echo "$as_me:4153: \$? = $ac_status" >&5
4154  (exit $ac_status); }; then
4155			test -n "$verbose" && echo "$as_me:4155: result: ... $cf_attribute" >&5
4156echo "${ECHO_T}... $cf_attribute" >&6
4157			cat conftest.h >>confdefs.h
4158			case $cf_attribute in #(vi
4159			noreturn) #(vi
4160
4161cat >>confdefs.h <<EOF
4162#define GCC_NORETURN $cf_directive
4163EOF
4164
4165				;;
4166			printf) #(vi
4167				cf_value='/* nothing */'
4168				if test "$cf_printf_attribute" != no ; then
4169					cf_value='__attribute__((format(printf,fmt,var)))'
4170
4171cat >>confdefs.h <<\EOF
4172#define GCC_PRINTF 1
4173EOF
4174
4175				fi
4176
4177cat >>confdefs.h <<EOF
4178#define GCC_PRINTFLIKE(fmt,var) $cf_value
4179EOF
4180
4181				;;
4182			scanf) #(vi
4183				cf_value='/* nothing */'
4184				if test "$cf_scanf_attribute" != no ; then
4185					cf_value='__attribute__((format(scanf,fmt,var)))'
4186
4187cat >>confdefs.h <<\EOF
4188#define GCC_SCANF 1
4189EOF
4190
4191				fi
4192
4193cat >>confdefs.h <<EOF
4194#define GCC_SCANFLIKE(fmt,var) $cf_value
4195EOF
4196
4197				;;
4198			unused) #(vi
4199
4200cat >>confdefs.h <<EOF
4201#define GCC_UNUSED $cf_directive
4202EOF
4203
4204				;;
4205			esac
4206		fi
4207	done
4208else
4209	fgrep define conftest.i >>confdefs.h
4210fi
4211rm -rf conftest*
4212fi
4213
4214INTEL_COMPILER=no
4215
4216if test "$GCC" = yes ; then
4217	case $host_os in
4218	linux*|gnu*)
4219		echo "$as_me:4219: checking if this is really Intel C compiler" >&5
4220echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4221		cf_save_CFLAGS="$CFLAGS"
4222		CFLAGS="$CFLAGS -no-gcc"
4223		cat >conftest.$ac_ext <<_ACEOF
4224#line 4224 "configure"
4225#include "confdefs.h"
4226
4227int
4228main ()
4229{
4230
4231#ifdef __INTEL_COMPILER
4232#else
4233make an error
4234#endif
4235
4236  ;
4237  return 0;
4238}
4239_ACEOF
4240rm -f conftest.$ac_objext
4241if { (eval echo "$as_me:4241: \"$ac_compile\"") >&5
4242  (eval $ac_compile) 2>&5
4243  ac_status=$?
4244  echo "$as_me:4244: \$? = $ac_status" >&5
4245  (exit $ac_status); } &&
4246         { ac_try='test -s conftest.$ac_objext'
4247  { (eval echo "$as_me:4247: \"$ac_try\"") >&5
4248  (eval $ac_try) 2>&5
4249  ac_status=$?
4250  echo "$as_me:4250: \$? = $ac_status" >&5
4251  (exit $ac_status); }; }; then
4252  INTEL_COMPILER=yes
4253cf_save_CFLAGS="$cf_save_CFLAGS -we147"
4254
4255else
4256  echo "$as_me: failed program was:" >&5
4257cat conftest.$ac_ext >&5
4258fi
4259rm -f conftest.$ac_objext conftest.$ac_ext
4260		CFLAGS="$cf_save_CFLAGS"
4261		echo "$as_me:4261: result: $INTEL_COMPILER" >&5
4262echo "${ECHO_T}$INTEL_COMPILER" >&6
4263		;;
4264	esac
4265fi
4266
4267CLANG_COMPILER=no
4268
4269if test "$GCC" = yes ; then
4270	echo "$as_me:4270: checking if this is really Clang C compiler" >&5
4271echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
4272	cf_save_CFLAGS="$CFLAGS"
4273	CFLAGS="$CFLAGS -Qunused-arguments"
4274	cat >conftest.$ac_ext <<_ACEOF
4275#line 4275 "configure"
4276#include "confdefs.h"
4277
4278int
4279main ()
4280{
4281
4282#ifdef __clang__
4283#else
4284make an error
4285#endif
4286
4287  ;
4288  return 0;
4289}
4290_ACEOF
4291rm -f conftest.$ac_objext
4292if { (eval echo "$as_me:4292: \"$ac_compile\"") >&5
4293  (eval $ac_compile) 2>&5
4294  ac_status=$?
4295  echo "$as_me:4295: \$? = $ac_status" >&5
4296  (exit $ac_status); } &&
4297         { ac_try='test -s conftest.$ac_objext'
4298  { (eval echo "$as_me:4298: \"$ac_try\"") >&5
4299  (eval $ac_try) 2>&5
4300  ac_status=$?
4301  echo "$as_me:4301: \$? = $ac_status" >&5
4302  (exit $ac_status); }; }; then
4303  CLANG_COMPILER=yes
4304cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
4305
4306else
4307  echo "$as_me: failed program was:" >&5
4308cat conftest.$ac_ext >&5
4309fi
4310rm -f conftest.$ac_objext conftest.$ac_ext
4311	CFLAGS="$cf_save_CFLAGS"
4312	echo "$as_me:4312: result: $CLANG_COMPILER" >&5
4313echo "${ECHO_T}$CLANG_COMPILER" >&6
4314fi
4315
4316cat > conftest.$ac_ext <<EOF
4317#line 4317 "${as_me:-configure}"
4318int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4319EOF
4320
4321if test "$INTEL_COMPILER" = yes
4322then
4323# The "-wdXXX" options suppress warnings:
4324# remark #1419: external declaration in primary source file
4325# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4326# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4327# remark #193: zero used for undefined preprocessing identifier
4328# remark #593: variable "curs_sb_left_arrow" was set but never used
4329# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4330# remark #869: parameter "tw" was never referenced
4331# remark #981: operands are evaluated in unspecified order
4332# warning #279: controlling expression is constant
4333
4334	{ echo "$as_me:4334: checking for $CC warning options..." >&5
4335echo "$as_me: checking for $CC warning options..." >&6;}
4336	cf_save_CFLAGS="$CFLAGS"
4337	EXTRA_CFLAGS="-Wall"
4338	for cf_opt in \
4339		wd1419 \
4340		wd1683 \
4341		wd1684 \
4342		wd193 \
4343		wd593 \
4344		wd279 \
4345		wd810 \
4346		wd869 \
4347		wd981
4348	do
4349		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4350		if { (eval echo "$as_me:4350: \"$ac_compile\"") >&5
4351  (eval $ac_compile) 2>&5
4352  ac_status=$?
4353  echo "$as_me:4353: \$? = $ac_status" >&5
4354  (exit $ac_status); }; then
4355			test -n "$verbose" && echo "$as_me:4355: result: ... -$cf_opt" >&5
4356echo "${ECHO_T}... -$cf_opt" >&6
4357			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4358		fi
4359	done
4360	CFLAGS="$cf_save_CFLAGS"
4361
4362elif test "$GCC" = yes
4363then
4364	{ echo "$as_me:4364: checking for $CC warning options..." >&5
4365echo "$as_me: checking for $CC warning options..." >&6;}
4366	cf_save_CFLAGS="$CFLAGS"
4367	EXTRA_CFLAGS=
4368	cf_warn_CONST=""
4369	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4370	cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
4371	test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
4372	for cf_opt in W Wall \
4373		Wbad-function-cast \
4374		Wcast-align \
4375		Wcast-qual \
4376		Wdeclaration-after-statement \
4377		Wextra \
4378		Winline \
4379		Wmissing-declarations \
4380		Wmissing-prototypes \
4381		Wnested-externs \
4382		Wpointer-arith \
4383		Wshadow \
4384		Wstrict-prototypes \
4385		Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
4386	do
4387		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4388		if { (eval echo "$as_me:4388: \"$ac_compile\"") >&5
4389  (eval $ac_compile) 2>&5
4390  ac_status=$?
4391  echo "$as_me:4391: \$? = $ac_status" >&5
4392  (exit $ac_status); }; then
4393			test -n "$verbose" && echo "$as_me:4393: result: ... -$cf_opt" >&5
4394echo "${ECHO_T}... -$cf_opt" >&6
4395			case $cf_opt in #(vi
4396			Wcast-qual) #(vi
4397				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4398				;;
4399			Winline) #(vi
4400				case $GCC_VERSION in
4401				[34].*)
4402					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
4403
4404echo "${as_me:-configure}:4404: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4405
4406					continue;;
4407				esac
4408				;;
4409			Wpointer-arith) #(vi
4410				case $GCC_VERSION in
4411				[12].*)
4412					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
4413
4414echo "${as_me:-configure}:4414: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4415
4416					continue;;
4417				esac
4418				;;
4419			esac
4420			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4421		fi
4422	done
4423	CFLAGS="$cf_save_CFLAGS"
4424fi
4425rm -rf conftest*
4426
4427fi
4428fi
4429
4430echo "$as_me:4430: checking if you want to see long compiling messages" >&5
4431echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4432
4433# Check whether --enable-echo or --disable-echo was given.
4434if test "${enable_echo+set}" = set; then
4435  enableval="$enable_echo"
4436  test "$enableval" != no && enableval=yes
4437  if test "$enableval" != "yes" ; then
4438
4439    ECHO_LT='--silent'
4440    ECHO_LD='@echo linking $@;'
4441    RULE_CC='@echo compiling $<'
4442    SHOW_CC='@echo compiling $@'
4443    ECHO_CC='@'
4444
4445  else
4446
4447    ECHO_LT=''
4448    ECHO_LD=''
4449    RULE_CC=''
4450    SHOW_CC=''
4451    ECHO_CC=''
4452
4453  fi
4454else
4455  enableval=yes
4456
4457    ECHO_LT=''
4458    ECHO_LD=''
4459    RULE_CC=''
4460    SHOW_CC=''
4461    ECHO_CC=''
4462
4463fi;
4464echo "$as_me:4464: result: $enableval" >&5
4465echo "${ECHO_T}$enableval" >&6
4466
4467echo "$as_me:4467: checking if you want to use dmalloc for testing" >&5
4468echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4469
4470# Check whether --with-dmalloc or --without-dmalloc was given.
4471if test "${with_dmalloc+set}" = set; then
4472  withval="$with_dmalloc"
4473
4474cat >>confdefs.h <<EOF
4475#define USE_DMALLOC 1
4476EOF
4477
4478	: ${with_cflags:=-g}
4479	: ${with_no_leaks:=yes}
4480	 with_dmalloc=yes
4481else
4482  with_dmalloc=
4483fi;
4484echo "$as_me:4484: result: ${with_dmalloc:-no}" >&5
4485echo "${ECHO_T}${with_dmalloc:-no}" >&6
4486
4487case .$with_cflags in #(vi
4488.*-g*)
4489	case .$CFLAGS in #(vi
4490	.*-g*) #(vi
4491		;;
4492	*)
4493
4494cf_fix_cppflags=no
4495cf_new_cflags=
4496cf_new_cppflags=
4497cf_new_extra_cppflags=
4498
4499for cf_add_cflags in -g
4500do
4501case $cf_fix_cppflags in
4502no)
4503	case $cf_add_cflags in #(vi
4504	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4505		case $cf_add_cflags in
4506		-D*)
4507			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4508
4509			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4510				&& test -z "${cf_tst_cflags}" \
4511				&& cf_fix_cppflags=yes
4512
4513			if test $cf_fix_cppflags = yes ; then
4514				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4515				continue
4516			elif test "${cf_tst_cflags}" = "\"'" ; then
4517				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4518				continue
4519			fi
4520			;;
4521		esac
4522		case "$CPPFLAGS" in
4523		*$cf_add_cflags) #(vi
4524			;;
4525		*) #(vi
4526			case $cf_add_cflags in #(vi
4527			-D*)
4528				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4529
4530CPPFLAGS=`echo "$CPPFLAGS" | \
4531	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
4532		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
4533
4534				;;
4535			esac
4536			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4537			;;
4538		esac
4539		;;
4540	*)
4541		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4542		;;
4543	esac
4544	;;
4545yes)
4546	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4547
4548	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4549
4550	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4551		&& test -z "${cf_tst_cflags}" \
4552		&& cf_fix_cppflags=no
4553	;;
4554esac
4555done
4556
4557if test -n "$cf_new_cflags" ; then
4558
4559	CFLAGS="$CFLAGS $cf_new_cflags"
4560fi
4561
4562if test -n "$cf_new_cppflags" ; then
4563
4564	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4565fi
4566
4567if test -n "$cf_new_extra_cppflags" ; then
4568
4569	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4570fi
4571
4572		;;
4573	esac
4574	;;
4575esac
4576
4577if test "$with_dmalloc" = yes ; then
4578	echo "$as_me:4578: checking for dmalloc.h" >&5
4579echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4580if test "${ac_cv_header_dmalloc_h+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583  cat >conftest.$ac_ext <<_ACEOF
4584#line 4584 "configure"
4585#include "confdefs.h"
4586#include <dmalloc.h>
4587_ACEOF
4588if { (eval echo "$as_me:4588: \"$ac_cpp conftest.$ac_ext\"") >&5
4589  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4590  ac_status=$?
4591  egrep -v '^ *\+' conftest.er1 >conftest.err
4592  rm -f conftest.er1
4593  cat conftest.err >&5
4594  echo "$as_me:4594: \$? = $ac_status" >&5
4595  (exit $ac_status); } >/dev/null; then
4596  if test -s conftest.err; then
4597    ac_cpp_err=$ac_c_preproc_warn_flag
4598  else
4599    ac_cpp_err=
4600  fi
4601else
4602  ac_cpp_err=yes
4603fi
4604if test -z "$ac_cpp_err"; then
4605  ac_cv_header_dmalloc_h=yes
4606else
4607  echo "$as_me: failed program was:" >&5
4608  cat conftest.$ac_ext >&5
4609  ac_cv_header_dmalloc_h=no
4610fi
4611rm -f conftest.err conftest.$ac_ext
4612fi
4613echo "$as_me:4613: result: $ac_cv_header_dmalloc_h" >&5
4614echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4615if test $ac_cv_header_dmalloc_h = yes; then
4616
4617echo "$as_me:4617: checking for dmalloc_debug in -ldmalloc" >&5
4618echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4619if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4620  echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
4622  ac_check_lib_save_LIBS=$LIBS
4623LIBS="-ldmalloc  $LIBS"
4624cat >conftest.$ac_ext <<_ACEOF
4625#line 4625 "configure"
4626#include "confdefs.h"
4627
4628/* Override any gcc2 internal prototype to avoid an error.  */
4629#ifdef __cplusplus
4630extern "C"
4631#endif
4632/* We use char because int might match the return type of a gcc2
4633   builtin and then its argument prototype would still apply.  */
4634char dmalloc_debug ();
4635int
4636main ()
4637{
4638dmalloc_debug ();
4639  ;
4640  return 0;
4641}
4642_ACEOF
4643rm -f conftest.$ac_objext conftest$ac_exeext
4644if { (eval echo "$as_me:4644: \"$ac_link\"") >&5
4645  (eval $ac_link) 2>&5
4646  ac_status=$?
4647  echo "$as_me:4647: \$? = $ac_status" >&5
4648  (exit $ac_status); } &&
4649         { ac_try='test -s conftest$ac_exeext'
4650  { (eval echo "$as_me:4650: \"$ac_try\"") >&5
4651  (eval $ac_try) 2>&5
4652  ac_status=$?
4653  echo "$as_me:4653: \$? = $ac_status" >&5
4654  (exit $ac_status); }; }; then
4655  ac_cv_lib_dmalloc_dmalloc_debug=yes
4656else
4657  echo "$as_me: failed program was:" >&5
4658cat conftest.$ac_ext >&5
4659ac_cv_lib_dmalloc_dmalloc_debug=no
4660fi
4661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4662LIBS=$ac_check_lib_save_LIBS
4663fi
4664echo "$as_me:4664: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4665echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4666if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4667  cat >>confdefs.h <<EOF
4668#define HAVE_LIBDMALLOC 1
4669EOF
4670
4671  LIBS="-ldmalloc $LIBS"
4672
4673fi
4674
4675fi
4676
4677fi
4678
4679echo "$as_me:4679: checking if you want to use dbmalloc for testing" >&5
4680echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4681
4682# Check whether --with-dbmalloc or --without-dbmalloc was given.
4683if test "${with_dbmalloc+set}" = set; then
4684  withval="$with_dbmalloc"
4685
4686cat >>confdefs.h <<EOF
4687#define USE_DBMALLOC 1
4688EOF
4689
4690	: ${with_cflags:=-g}
4691	: ${with_no_leaks:=yes}
4692	 with_dbmalloc=yes
4693else
4694  with_dbmalloc=
4695fi;
4696echo "$as_me:4696: result: ${with_dbmalloc:-no}" >&5
4697echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4698
4699case .$with_cflags in #(vi
4700.*-g*)
4701	case .$CFLAGS in #(vi
4702	.*-g*) #(vi
4703		;;
4704	*)
4705
4706cf_fix_cppflags=no
4707cf_new_cflags=
4708cf_new_cppflags=
4709cf_new_extra_cppflags=
4710
4711for cf_add_cflags in -g
4712do
4713case $cf_fix_cppflags in
4714no)
4715	case $cf_add_cflags in #(vi
4716	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4717		case $cf_add_cflags in
4718		-D*)
4719			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4720
4721			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4722				&& test -z "${cf_tst_cflags}" \
4723				&& cf_fix_cppflags=yes
4724
4725			if test $cf_fix_cppflags = yes ; then
4726				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4727				continue
4728			elif test "${cf_tst_cflags}" = "\"'" ; then
4729				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4730				continue
4731			fi
4732			;;
4733		esac
4734		case "$CPPFLAGS" in
4735		*$cf_add_cflags) #(vi
4736			;;
4737		*) #(vi
4738			case $cf_add_cflags in #(vi
4739			-D*)
4740				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4741
4742CPPFLAGS=`echo "$CPPFLAGS" | \
4743	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
4744		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
4745
4746				;;
4747			esac
4748			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4749			;;
4750		esac
4751		;;
4752	*)
4753		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4754		;;
4755	esac
4756	;;
4757yes)
4758	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4759
4760	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4761
4762	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4763		&& test -z "${cf_tst_cflags}" \
4764		&& cf_fix_cppflags=no
4765	;;
4766esac
4767done
4768
4769if test -n "$cf_new_cflags" ; then
4770
4771	CFLAGS="$CFLAGS $cf_new_cflags"
4772fi
4773
4774if test -n "$cf_new_cppflags" ; then
4775
4776	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4777fi
4778
4779if test -n "$cf_new_extra_cppflags" ; then
4780
4781	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4782fi
4783
4784		;;
4785	esac
4786	;;
4787esac
4788
4789if test "$with_dbmalloc" = yes ; then
4790	echo "$as_me:4790: checking for dbmalloc.h" >&5
4791echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4792if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4793  echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795  cat >conftest.$ac_ext <<_ACEOF
4796#line 4796 "configure"
4797#include "confdefs.h"
4798#include <dbmalloc.h>
4799_ACEOF
4800if { (eval echo "$as_me:4800: \"$ac_cpp conftest.$ac_ext\"") >&5
4801  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4802  ac_status=$?
4803  egrep -v '^ *\+' conftest.er1 >conftest.err
4804  rm -f conftest.er1
4805  cat conftest.err >&5
4806  echo "$as_me:4806: \$? = $ac_status" >&5
4807  (exit $ac_status); } >/dev/null; then
4808  if test -s conftest.err; then
4809    ac_cpp_err=$ac_c_preproc_warn_flag
4810  else
4811    ac_cpp_err=
4812  fi
4813else
4814  ac_cpp_err=yes
4815fi
4816if test -z "$ac_cpp_err"; then
4817  ac_cv_header_dbmalloc_h=yes
4818else
4819  echo "$as_me: failed program was:" >&5
4820  cat conftest.$ac_ext >&5
4821  ac_cv_header_dbmalloc_h=no
4822fi
4823rm -f conftest.err conftest.$ac_ext
4824fi
4825echo "$as_me:4825: result: $ac_cv_header_dbmalloc_h" >&5
4826echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4827if test $ac_cv_header_dbmalloc_h = yes; then
4828
4829echo "$as_me:4829: checking for debug_malloc in -ldbmalloc" >&5
4830echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4831if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4832  echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834  ac_check_lib_save_LIBS=$LIBS
4835LIBS="-ldbmalloc  $LIBS"
4836cat >conftest.$ac_ext <<_ACEOF
4837#line 4837 "configure"
4838#include "confdefs.h"
4839
4840/* Override any gcc2 internal prototype to avoid an error.  */
4841#ifdef __cplusplus
4842extern "C"
4843#endif
4844/* We use char because int might match the return type of a gcc2
4845   builtin and then its argument prototype would still apply.  */
4846char debug_malloc ();
4847int
4848main ()
4849{
4850debug_malloc ();
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855rm -f conftest.$ac_objext conftest$ac_exeext
4856if { (eval echo "$as_me:4856: \"$ac_link\"") >&5
4857  (eval $ac_link) 2>&5
4858  ac_status=$?
4859  echo "$as_me:4859: \$? = $ac_status" >&5
4860  (exit $ac_status); } &&
4861         { ac_try='test -s conftest$ac_exeext'
4862  { (eval echo "$as_me:4862: \"$ac_try\"") >&5
4863  (eval $ac_try) 2>&5
4864  ac_status=$?
4865  echo "$as_me:4865: \$? = $ac_status" >&5
4866  (exit $ac_status); }; }; then
4867  ac_cv_lib_dbmalloc_debug_malloc=yes
4868else
4869  echo "$as_me: failed program was:" >&5
4870cat conftest.$ac_ext >&5
4871ac_cv_lib_dbmalloc_debug_malloc=no
4872fi
4873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4874LIBS=$ac_check_lib_save_LIBS
4875fi
4876echo "$as_me:4876: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4877echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4878if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4879  cat >>confdefs.h <<EOF
4880#define HAVE_LIBDBMALLOC 1
4881EOF
4882
4883  LIBS="-ldbmalloc $LIBS"
4884
4885fi
4886
4887fi
4888
4889fi
4890
4891echo "$as_me:4891: checking if you want to use valgrind for testing" >&5
4892echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4893
4894# Check whether --with-valgrind or --without-valgrind was given.
4895if test "${with_valgrind+set}" = set; then
4896  withval="$with_valgrind"
4897
4898cat >>confdefs.h <<EOF
4899#define USE_VALGRIND 1
4900EOF
4901
4902	: ${with_cflags:=-g}
4903	: ${with_no_leaks:=yes}
4904	 with_valgrind=yes
4905else
4906  with_valgrind=
4907fi;
4908echo "$as_me:4908: result: ${with_valgrind:-no}" >&5
4909echo "${ECHO_T}${with_valgrind:-no}" >&6
4910
4911case .$with_cflags in #(vi
4912.*-g*)
4913	case .$CFLAGS in #(vi
4914	.*-g*) #(vi
4915		;;
4916	*)
4917
4918cf_fix_cppflags=no
4919cf_new_cflags=
4920cf_new_cppflags=
4921cf_new_extra_cppflags=
4922
4923for cf_add_cflags in -g
4924do
4925case $cf_fix_cppflags in
4926no)
4927	case $cf_add_cflags in #(vi
4928	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4929		case $cf_add_cflags in
4930		-D*)
4931			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4932
4933			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4934				&& test -z "${cf_tst_cflags}" \
4935				&& cf_fix_cppflags=yes
4936
4937			if test $cf_fix_cppflags = yes ; then
4938				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4939				continue
4940			elif test "${cf_tst_cflags}" = "\"'" ; then
4941				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4942				continue
4943			fi
4944			;;
4945		esac
4946		case "$CPPFLAGS" in
4947		*$cf_add_cflags) #(vi
4948			;;
4949		*) #(vi
4950			case $cf_add_cflags in #(vi
4951			-D*)
4952				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4953
4954CPPFLAGS=`echo "$CPPFLAGS" | \
4955	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
4956		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
4957
4958				;;
4959			esac
4960			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4961			;;
4962		esac
4963		;;
4964	*)
4965		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4966		;;
4967	esac
4968	;;
4969yes)
4970	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4971
4972	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4973
4974	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4975		&& test -z "${cf_tst_cflags}" \
4976		&& cf_fix_cppflags=no
4977	;;
4978esac
4979done
4980
4981if test -n "$cf_new_cflags" ; then
4982
4983	CFLAGS="$CFLAGS $cf_new_cflags"
4984fi
4985
4986if test -n "$cf_new_cppflags" ; then
4987
4988	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4989fi
4990
4991if test -n "$cf_new_extra_cppflags" ; then
4992
4993	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4994fi
4995
4996		;;
4997	esac
4998	;;
4999esac
5000
5001echo "$as_me:5001: checking if you want to perform memory-leak testing" >&5
5002echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
5003
5004# Check whether --enable-leaks or --disable-leaks was given.
5005if test "${enable_leaks+set}" = set; then
5006  enableval="$enable_leaks"
5007  if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
5008else
5009  : ${with_no_leaks:=no}
5010fi;
5011echo "$as_me:5011: result: $with_no_leaks" >&5
5012echo "${ECHO_T}$with_no_leaks" >&6
5013
5014if test "$with_no_leaks" = yes ; then
5015
5016cat >>confdefs.h <<\EOF
5017#define NO_LEAKS 1
5018EOF
5019
5020cat >>confdefs.h <<\EOF
5021#define YY_NO_LEAKS 1
5022EOF
5023
5024fi
5025
5026###	output makefile
5027ac_config_files="$ac_config_files makefile"
5028cat >confcache <<\_ACEOF
5029# This file is a shell script that caches the results of configure
5030# tests run on this system so they can be shared between configure
5031# scripts and configure runs, see configure's option --config-cache.
5032# It is not useful on other systems.  If it contains results you don't
5033# want to keep, you may remove or edit it.
5034#
5035# config.status only pays attention to the cache file if you give it
5036# the --recheck option to rerun configure.
5037#
5038# `ac_cv_env_foo' variables (set or unset) will be overriden when
5039# loading this file, other *unset* `ac_cv_foo' will be assigned the
5040# following values.
5041
5042_ACEOF
5043
5044# The following way of writing the cache mishandles newlines in values,
5045# but we know of no workaround that is simple, portable, and efficient.
5046# So, don't put newlines in cache variables' values.
5047# Ultrix sh set writes to stderr and can't be redirected directly,
5048# and sets the high bit in the cache file unless we assign to the vars.
5049{
5050  (set) 2>&1 |
5051    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5052    *ac_space=\ *)
5053      # `set' does not quote correctly, so add quotes (double-quote
5054      # substitution turns \\\\ into \\, and sed turns \\ into \).
5055      sed -n \
5056        "s/'/'\\\\''/g;
5057    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5058      ;;
5059    *)
5060      # `set' quotes correctly as required by POSIX, so do not add quotes.
5061      sed -n \
5062        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5063      ;;
5064    esac;
5065} |
5066  sed '
5067     t clear
5068     : clear
5069     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5070     t end
5071     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5072     : end' >>confcache
5073if cmp -s $cache_file confcache; then :; else
5074  if test -w $cache_file; then
5075    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5076    cat confcache >$cache_file
5077  else
5078    echo "not updating unwritable cache $cache_file"
5079  fi
5080fi
5081rm -f confcache
5082
5083test "x$prefix" = xNONE && prefix=$ac_default_prefix
5084# Let make expand exec_prefix.
5085test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5086
5087# VPATH may cause trouble with some makes, so we remove $(srcdir),
5088# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5089# trailing colons and then remove the whole line if VPATH becomes empty
5090# (actually we leave an empty line to preserve line numbers).
5091if test "x$srcdir" = x.; then
5092  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
5093s/:*\$(srcdir):*/:/;
5094s/:*\${srcdir}:*/:/;
5095s/:*@srcdir@:*/:/;
5096s/^\([^=]*=[ 	]*\):*/\1/;
5097s/:*$//;
5098s/^[^=]*=[ 	]*$//;
5099}'
5100fi
5101
5102DEFS=-DHAVE_CONFIG_H
5103
5104: ${CONFIG_STATUS=./config.status}
5105ac_clean_files_save=$ac_clean_files
5106ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5107{ echo "$as_me:5107: creating $CONFIG_STATUS" >&5
5108echo "$as_me: creating $CONFIG_STATUS" >&6;}
5109cat >$CONFIG_STATUS <<_ACEOF
5110#! $SHELL
5111# Generated automatically by configure.
5112# Run this file to recreate the current configuration.
5113# Compiler output produced by configure, useful for debugging
5114# configure, is in config.log if it exists.
5115
5116debug=false
5117SHELL=\${CONFIG_SHELL-$SHELL}
5118ac_cs_invocation="\$0 \$@"
5119
5120_ACEOF
5121
5122cat >>$CONFIG_STATUS <<\_ACEOF
5123# Be Bourne compatible
5124if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5125  emulate sh
5126  NULLCMD=:
5127elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5128  set -o posix
5129fi
5130
5131# Name of the executable.
5132as_me=`echo "$0" |sed 's,.*[\\/],,'`
5133
5134if expr a : '\(a\)' >/dev/null 2>&1; then
5135  as_expr=expr
5136else
5137  as_expr=false
5138fi
5139
5140rm -f conf$$ conf$$.exe conf$$.file
5141echo >conf$$.file
5142if ln -s conf$$.file conf$$ 2>/dev/null; then
5143  # We could just check for DJGPP; but this test a) works b) is more generic
5144  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5145  if test -f conf$$.exe; then
5146    # Don't use ln at all; we don't have any links
5147    as_ln_s='cp -p'
5148  else
5149    as_ln_s='ln -s'
5150  fi
5151elif ln conf$$.file conf$$ 2>/dev/null; then
5152  as_ln_s=ln
5153else
5154  as_ln_s='cp -p'
5155fi
5156rm -f conf$$ conf$$.exe conf$$.file
5157
5158as_executable_p="test -f"
5159
5160# Support unset when possible.
5161if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5162  as_unset=unset
5163else
5164  as_unset=false
5165fi
5166
5167# NLS nuisances.
5168$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5169$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5170$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5171$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5172$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5173$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5174$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5175$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5176
5177# IFS
5178# We need space, tab and new line, in precisely that order.
5179as_nl='
5180'
5181IFS=" 	$as_nl"
5182
5183# CDPATH.
5184$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5185
5186exec 6>&1
5187
5188_ACEOF
5189
5190# Files that config.status was made for.
5191if test -n "$ac_config_files"; then
5192  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5193fi
5194
5195if test -n "$ac_config_headers"; then
5196  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5197fi
5198
5199if test -n "$ac_config_links"; then
5200  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5201fi
5202
5203if test -n "$ac_config_commands"; then
5204  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5205fi
5206
5207cat >>$CONFIG_STATUS <<\EOF
5208
5209ac_cs_usage="\
5210\`$as_me' instantiates files from templates according to the
5211current configuration.
5212
5213Usage: $0 [OPTIONS] [FILE]...
5214
5215  -h, --help       print this help, then exit
5216  -V, --version    print version number, then exit
5217  -d, --debug      don't remove temporary files
5218      --recheck    update $as_me by reconfiguring in the same conditions
5219  --file=FILE[:TEMPLATE]
5220                   instantiate the configuration file FILE
5221  --header=FILE[:TEMPLATE]
5222                   instantiate the configuration header FILE
5223
5224Configuration files:
5225$config_files
5226
5227Configuration headers:
5228$config_headers
5229
5230Report bugs to <dickey@invisible-island.net>."
5231EOF
5232
5233cat >>$CONFIG_STATUS <<EOF
5234ac_cs_version="\\
5235config.status
5236configured by $0, generated by GNU Autoconf 2.52.20121002,
5237  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5238
5239Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5240Free Software Foundation, Inc.
5241This config.status script is free software; the Free Software Foundation
5242gives unlimited permission to copy, distribute and modify it."
5243srcdir=$srcdir
5244INSTALL="$INSTALL"
5245EOF
5246
5247cat >>$CONFIG_STATUS <<\EOF
5248# If no file are specified by the user, then we need to provide default
5249# value.  By we need to know if files were specified by the user.
5250ac_need_defaults=:
5251while test $# != 0
5252do
5253  case $1 in
5254  --*=*)
5255    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5256    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5257    shift
5258    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5259    shift
5260    ;;
5261  -*);;
5262  *) # This is not an option, so the user has probably given explicit
5263     # arguments.
5264     ac_need_defaults=false;;
5265  esac
5266
5267  case $1 in
5268  # Handling of the options.
5269EOF
5270cat >>$CONFIG_STATUS <<EOF
5271  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5272    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5273    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5274EOF
5275cat >>$CONFIG_STATUS <<\EOF
5276  --version | --vers* | -V )
5277    echo "$ac_cs_version"; exit 0 ;;
5278  --he | --h)
5279    # Conflict between --help and --header
5280    { { echo "$as_me:5280: error: ambiguous option: $1
5281Try \`$0 --help' for more information." >&5
5282echo "$as_me: error: ambiguous option: $1
5283Try \`$0 --help' for more information." >&2;}
5284   { (exit 1); exit 1; }; };;
5285  --help | --hel | -h )
5286    echo "$ac_cs_usage"; exit 0 ;;
5287  --debug | --d* | -d )
5288    debug=: ;;
5289  --file | --fil | --fi | --f )
5290    shift
5291    CONFIG_FILES="$CONFIG_FILES $1"
5292    ac_need_defaults=false;;
5293  --header | --heade | --head | --hea )
5294    shift
5295    CONFIG_HEADERS="$CONFIG_HEADERS $1"
5296    ac_need_defaults=false;;
5297
5298  # This is an error.
5299  -*) { { echo "$as_me:5299: error: unrecognized option: $1
5300Try \`$0 --help' for more information." >&5
5301echo "$as_me: error: unrecognized option: $1
5302Try \`$0 --help' for more information." >&2;}
5303   { (exit 1); exit 1; }; } ;;
5304
5305  *) ac_config_targets="$ac_config_targets $1" ;;
5306
5307  esac
5308  shift
5309done
5310
5311exec 5>>config.log
5312cat >&5 << _ACEOF
5313
5314## ----------------------- ##
5315## Running config.status.  ##
5316## ----------------------- ##
5317
5318This file was extended by $as_me 2.52.20121002, executed with
5319  CONFIG_FILES    = $CONFIG_FILES
5320  CONFIG_HEADERS  = $CONFIG_HEADERS
5321  CONFIG_LINKS    = $CONFIG_LINKS
5322  CONFIG_COMMANDS = $CONFIG_COMMANDS
5323  > $ac_cs_invocation
5324on `(hostname || uname -n) 2>/dev/null | sed 1q`
5325
5326_ACEOF
5327EOF
5328
5329cat >>$CONFIG_STATUS <<\EOF
5330for ac_config_target in $ac_config_targets
5331do
5332  case "$ac_config_target" in
5333  # Handling of arguments.
5334  "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
5335  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
5336  *) { { echo "$as_me:5336: error: invalid argument: $ac_config_target" >&5
5337echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5338   { (exit 1); exit 1; }; };;
5339  esac
5340done
5341
5342# If the user did not use the arguments to specify the items to instantiate,
5343# then the envvar interface is used.  Set only those that are not.
5344# We use the long form for the default assignment because of an extremely
5345# bizarre bug on SunOS 4.1.3.
5346if $ac_need_defaults; then
5347  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5348  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5349fi
5350
5351# Create a temporary directory, and hook for its removal unless debugging.
5352$debug ||
5353{
5354  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5355  trap '{ (exit 1); exit 1; }' 1 2 13 15
5356}
5357
5358# Create a (secure) tmp directory for tmp files.
5359: ${TMPDIR=/tmp}
5360{
5361  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5362  test -n "$tmp" && test -d "$tmp"
5363}  ||
5364{
5365  tmp=$TMPDIR/cs$$-$RANDOM
5366  (umask 077 && mkdir $tmp)
5367} ||
5368{
5369   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5370   { (exit 1); exit 1; }
5371}
5372
5373EOF
5374
5375cat >>$CONFIG_STATUS <<EOF
5376
5377#
5378# CONFIG_FILES section.
5379#
5380
5381# No need to generate the scripts if there are no CONFIG_FILES.
5382# This happens for instance when ./config.status config.h
5383if test -n "\$CONFIG_FILES"; then
5384  # Protect against being on the right side of a sed subst in config.status.
5385  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5386   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5387s,@SHELL@,$SHELL,;t t
5388s,@exec_prefix@,$exec_prefix,;t t
5389s,@prefix@,$prefix,;t t
5390s,@program_transform_name@,$program_transform_name,;t t
5391s,@bindir@,$bindir,;t t
5392s,@sbindir@,$sbindir,;t t
5393s,@libexecdir@,$libexecdir,;t t
5394s,@datarootdir@,$datarootdir,;t t
5395s,@datadir@,$datadir,;t t
5396s,@sysconfdir@,$sysconfdir,;t t
5397s,@sharedstatedir@,$sharedstatedir,;t t
5398s,@localstatedir@,$localstatedir,;t t
5399s,@libdir@,$libdir,;t t
5400s,@includedir@,$includedir,;t t
5401s,@oldincludedir@,$oldincludedir,;t t
5402s,@infodir@,$infodir,;t t
5403s,@mandir@,$mandir,;t t
5404s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5405s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5406s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5407s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5408s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5409s,@build_alias@,$build_alias,;t t
5410s,@host_alias@,$host_alias,;t t
5411s,@target_alias@,$target_alias,;t t
5412s,@ECHO_C@,$ECHO_C,;t t
5413s,@ECHO_N@,$ECHO_N,;t t
5414s,@ECHO_T@,$ECHO_T,;t t
5415s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5416s,@DEFS@,$DEFS,;t t
5417s,@LIBS@,$LIBS,;t t
5418s,@build@,$build,;t t
5419s,@build_cpu@,$build_cpu,;t t
5420s,@build_vendor@,$build_vendor,;t t
5421s,@build_os@,$build_os,;t t
5422s,@host@,$host,;t t
5423s,@host_cpu@,$host_cpu,;t t
5424s,@host_vendor@,$host_vendor,;t t
5425s,@host_os@,$host_os,;t t
5426s,@target@,$target,;t t
5427s,@target_cpu@,$target_cpu,;t t
5428s,@target_vendor@,$target_vendor,;t t
5429s,@target_os@,$target_os,;t t
5430s,@CC@,$CC,;t t
5431s,@CFLAGS@,$CFLAGS,;t t
5432s,@LDFLAGS@,$LDFLAGS,;t t
5433s,@CPPFLAGS@,$CPPFLAGS,;t t
5434s,@ac_ct_CC@,$ac_ct_CC,;t t
5435s,@EXEEXT@,$EXEEXT,;t t
5436s,@OBJEXT@,$OBJEXT,;t t
5437s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
5438s,@SET_MAKE@,$SET_MAKE,;t t
5439s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5440s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5441s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5442s,@CTAGS@,$CTAGS,;t t
5443s,@ETAGS@,$ETAGS,;t t
5444s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
5445s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
5446s,@AWK@,$AWK,;t t
5447s,@LINT@,$LINT,;t t
5448s,@LINT_OPTS@,$LINT_OPTS,;t t
5449s,@CPP@,$CPP,;t t
5450s,@SKELETON@,$SKELETON,;t t
5451s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
5452s,@ECHO_LT@,$ECHO_LT,;t t
5453s,@ECHO_LD@,$ECHO_LD,;t t
5454s,@RULE_CC@,$RULE_CC,;t t
5455s,@SHOW_CC@,$SHOW_CC,;t t
5456s,@ECHO_CC@,$ECHO_CC,;t t
5457CEOF
5458
5459EOF
5460
5461  cat >>$CONFIG_STATUS <<\EOF
5462  # Split the substitutions into bite-sized pieces for seds with
5463  # small command number limits, like on Digital OSF/1 and HP-UX.
5464  ac_max_sed_lines=48
5465  ac_sed_frag=1 # Number of current file.
5466  ac_beg=1 # First line for current file.
5467  ac_end=$ac_max_sed_lines # Line after last line for current file.
5468  ac_more_lines=:
5469  ac_sed_cmds=
5470  while $ac_more_lines; do
5471    if test $ac_beg -gt 1; then
5472      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5473    else
5474      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5475    fi
5476    if test ! -s $tmp/subs.frag; then
5477      ac_more_lines=false
5478    else
5479      # The purpose of the label and of the branching condition is to
5480      # speed up the sed processing (if there are no `@' at all, there
5481      # is no need to browse any of the substitutions).
5482      # These are the two extra sed commands mentioned above.
5483      (echo ':t
5484  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5485      if test -z "$ac_sed_cmds"; then
5486  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5487      else
5488  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5489      fi
5490      ac_sed_frag=`expr $ac_sed_frag + 1`
5491      ac_beg=$ac_end
5492      ac_end=`expr $ac_end + $ac_max_sed_lines`
5493    fi
5494  done
5495  if test -z "$ac_sed_cmds"; then
5496    ac_sed_cmds=cat
5497  fi
5498fi # test -n "$CONFIG_FILES"
5499
5500EOF
5501cat >>$CONFIG_STATUS <<\EOF
5502for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5503  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5504  case $ac_file in
5505  - | *:- | *:-:* ) # input from stdin
5506        cat >$tmp/stdin
5507        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5508        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5509  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5510        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5511  * )   ac_file_in=$ac_file.in ;;
5512  esac
5513
5514  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5515  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5516         X"$ac_file" : 'X\(//\)[^/]' \| \
5517         X"$ac_file" : 'X\(//\)$' \| \
5518         X"$ac_file" : 'X\(/\)' \| \
5519         .     : '\(.\)' 2>/dev/null ||
5520echo X"$ac_file" |
5521    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5522  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5523  	  /^X\(\/\/\)$/{ s//\1/; q; }
5524  	  /^X\(\/\).*/{ s//\1/; q; }
5525  	  s/.*/./; q'`
5526  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5527    { case "$ac_dir" in
5528  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5529  *)                      as_incr_dir=.;;
5530esac
5531as_dummy="$ac_dir"
5532for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5533  case $as_mkdir_dir in
5534    # Skip DOS drivespec
5535    ?:) as_incr_dir=$as_mkdir_dir ;;
5536    *)
5537      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5538      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5539    ;;
5540  esac
5541done; }
5542
5543    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5544    # A "../" for each directory in $ac_dir_suffix.
5545    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5546  else
5547    ac_dir_suffix= ac_dots=
5548  fi
5549
5550  case $srcdir in
5551  .)  ac_srcdir=.
5552      if test -z "$ac_dots"; then
5553         ac_top_srcdir=.
5554      else
5555         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5556      fi ;;
5557  [\\/]* | ?:[\\/]* )
5558      ac_srcdir=$srcdir$ac_dir_suffix;
5559      ac_top_srcdir=$srcdir ;;
5560  *) # Relative path.
5561    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5562    ac_top_srcdir=$ac_dots$srcdir ;;
5563  esac
5564
5565  case $INSTALL in
5566  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5567  *) ac_INSTALL=$ac_dots$INSTALL ;;
5568  esac
5569
5570  if test x"$ac_file" != x-; then
5571    { echo "$as_me:5571: creating $ac_file" >&5
5572echo "$as_me: creating $ac_file" >&6;}
5573    rm -f "$ac_file"
5574  fi
5575  # Let's still pretend it is `configure' which instantiates (i.e., don't
5576  # use $as_me), people would be surprised to read:
5577  #    /* config.h.  Generated automatically by config.status.  */
5578  configure_input="Generated automatically from `echo $ac_file_in |
5579                                                 sed 's,.*/,,'` by configure."
5580
5581  # First look for the input files in the build tree, otherwise in the
5582  # src tree.
5583  ac_file_inputs=`IFS=:
5584    for f in $ac_file_in; do
5585      case $f in
5586      -) echo $tmp/stdin ;;
5587      [\\/$]*)
5588         # Absolute (can't be DOS-style, as IFS=:)
5589         test -f "$f" || { { echo "$as_me:5589: error: cannot find input file: $f" >&5
5590echo "$as_me: error: cannot find input file: $f" >&2;}
5591   { (exit 1); exit 1; }; }
5592         echo $f;;
5593      *) # Relative
5594         if test -f "$f"; then
5595           # Build tree
5596           echo $f
5597         elif test -f "$srcdir/$f"; then
5598           # Source tree
5599           echo $srcdir/$f
5600         else
5601           # /dev/null tree
5602           { { echo "$as_me:5602: error: cannot find input file: $f" >&5
5603echo "$as_me: error: cannot find input file: $f" >&2;}
5604   { (exit 1); exit 1; }; }
5605         fi;;
5606      esac
5607    done` || { (exit 1); exit 1; }
5608EOF
5609cat >>$CONFIG_STATUS <<\EOF
5610  ac_warn_datarootdir=no
5611  if test x"$ac_file" != x-; then
5612    for ac_item in $ac_file_inputs
5613    do
5614      ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
5615      if test -n "$ac_seen"; then
5616        ac_used=`grep '@datarootdir@' $ac_item`
5617        if test -z "$ac_used"; then
5618          { echo "$as_me:5618: WARNING: datarootdir was used implicitly but not set:
5619$ac_seen" >&5
5620echo "$as_me: WARNING: datarootdir was used implicitly but not set:
5621$ac_seen" >&2;}
5622          ac_warn_datarootdir=yes
5623        fi
5624      fi
5625      ac_seen=`grep '${datarootdir}' $ac_item`
5626      if test -n "$ac_seen"; then
5627        { echo "$as_me:5627: WARNING: datarootdir was used explicitly but not set:
5628$ac_seen" >&5
5629echo "$as_me: WARNING: datarootdir was used explicitly but not set:
5630$ac_seen" >&2;}
5631        ac_warn_datarootdir=yes
5632      fi
5633    done
5634  fi
5635
5636if test "x$ac_warn_datarootdir" = xyes; then
5637  ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
5638fi
5639
5640EOF
5641cat >>$CONFIG_STATUS <<EOF
5642  sed "$ac_vpsub
5643$extrasub
5644EOF
5645cat >>$CONFIG_STATUS <<\EOF
5646:t
5647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5648s,@configure_input@,$configure_input,;t t
5649s,@srcdir@,$ac_srcdir,;t t
5650s,@top_srcdir@,$ac_top_srcdir,;t t
5651s,@INSTALL@,$ac_INSTALL,;t t
5652" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5653  rm -f $tmp/stdin
5654  if test x"$ac_file" != x-; then
5655    cp $tmp/out $ac_file
5656
5657    for ac_name in prefix exec_prefix datarootdir
5658    do
5659        ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
5660        if test -n "$ac_seen"; then
5661            ac_init=`egrep '[ 	]*'$ac_name'[ 	]*=' $ac_file`
5662            if test -z "$ac_init"; then
5663              ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
5664              { echo "$as_me:5664: WARNING: Variable $ac_name is used but was not set:
5665$ac_seen" >&5
5666echo "$as_me: WARNING: Variable $ac_name is used but was not set:
5667$ac_seen" >&2;}
5668            fi
5669        fi
5670    done
5671    egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
5672    egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
5673    if test -s $tmp/out; then
5674      ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
5675      { echo "$as_me:5675: WARNING: Some variables may not be substituted:
5676$ac_seen" >&5
5677echo "$as_me: WARNING: Some variables may not be substituted:
5678$ac_seen" >&2;}
5679    fi
5680  else
5681    cat $tmp/out
5682  fi
5683  rm -f $tmp/out
5684
5685done
5686EOF
5687cat >>$CONFIG_STATUS <<\EOF
5688
5689#
5690# CONFIG_HEADER section.
5691#
5692
5693# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5694# NAME is the cpp macro being defined and VALUE is the value it is being given.
5695#
5696# ac_d sets the value in "#define NAME VALUE" lines.
5697ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
5698ac_dB='[ 	].*$,\1#\2'
5699ac_dC=' '
5700ac_dD=',;t'
5701# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5702ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
5703ac_iB='\([ 	]\),\1#\2define\3'
5704ac_iC=' '
5705ac_iD='\4,;t'
5706# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5707ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
5708ac_uB='$,\1#\2define\3'
5709ac_uC=' '
5710ac_uD=',;t'
5711
5712for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5713  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5714  case $ac_file in
5715  - | *:- | *:-:* ) # input from stdin
5716        cat >$tmp/stdin
5717        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5718        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5719  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5720        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5721  * )   ac_file_in=$ac_file.in ;;
5722  esac
5723
5724  test x"$ac_file" != x- && { echo "$as_me:5724: creating $ac_file" >&5
5725echo "$as_me: creating $ac_file" >&6;}
5726
5727  # First look for the input files in the build tree, otherwise in the
5728  # src tree.
5729  ac_file_inputs=`IFS=:
5730    for f in $ac_file_in; do
5731      case $f in
5732      -) echo $tmp/stdin ;;
5733      [\\/$]*)
5734         # Absolute (can't be DOS-style, as IFS=:)
5735         test -f "$f" || { { echo "$as_me:5735: error: cannot find input file: $f" >&5
5736echo "$as_me: error: cannot find input file: $f" >&2;}
5737   { (exit 1); exit 1; }; }
5738         echo $f;;
5739      *) # Relative
5740         if test -f "$f"; then
5741           # Build tree
5742           echo $f
5743         elif test -f "$srcdir/$f"; then
5744           # Source tree
5745           echo $srcdir/$f
5746         else
5747           # /dev/null tree
5748           { { echo "$as_me:5748: error: cannot find input file: $f" >&5
5749echo "$as_me: error: cannot find input file: $f" >&2;}
5750   { (exit 1); exit 1; }; }
5751         fi;;
5752      esac
5753    done` || { (exit 1); exit 1; }
5754  # Remove the trailing spaces.
5755  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
5756
5757EOF
5758
5759# Transform confdefs.h into two sed scripts, `conftest.defines' and
5760# `conftest.undefs', that substitutes the proper values into
5761# config.h.in to produce config.h.  The first handles `#define'
5762# templates, and the second `#undef' templates.
5763# And first: Protect against being on the right side of a sed subst in
5764# config.status.  Protect against being in an unquoted here document
5765# in config.status.
5766rm -f conftest.defines conftest.undefs
5767# Using a here document instead of a string reduces the quoting nightmare.
5768# Putting comments in sed scripts is not portable.
5769#
5770# `end' is used to avoid that the second main sed command (meant for
5771# 0-ary CPP macros) applies to n-ary macro definitions.
5772# See the Autoconf documentation for `clear'.
5773cat >confdef2sed.sed <<\EOF
5774s/[\\&,]/\\&/g
5775s,[\\$`],\\&,g
5776t clear
5777: clear
5778s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5779t end
5780s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5781: end
5782EOF
5783# If some macros were called several times there might be several times
5784# the same #defines, which is useless.  Nevertheless, we may not want to
5785# sort them, since we want the *last* AC-DEFINE to be honored.
5786uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5787sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5788sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
5789rm -f confdef2sed.sed
5790
5791# This sed command replaces #undef with comments.  This is necessary, for
5792# example, in the case of _POSIX_SOURCE, which is predefined and required
5793# on some systems where configure will not decide to define it.
5794cat >>conftest.undefs <<\EOF
5795s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5796EOF
5797
5798# Break up conftest.defines because some shells have a limit on the size
5799# of here documents, and old seds have small limits too (100 cmds).
5800echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5801echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5802echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5803echo '  :' >>$CONFIG_STATUS
5804rm -f conftest.tail
5805while grep . conftest.defines >/dev/null
5806do
5807  # Write a limited-size here document to $tmp/defines.sed.
5808  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5809  # Speed up: don't consider the non `#define' lines.
5810  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
5811  # Work around the forget-to-reset-the-flag bug.
5812  echo 't clr' >>$CONFIG_STATUS
5813  echo ': clr' >>$CONFIG_STATUS
5814  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5815  echo 'CEOF
5816  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5817  rm -f $tmp/in
5818  mv $tmp/out $tmp/in
5819' >>$CONFIG_STATUS
5820  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5821  rm -f conftest.defines
5822  mv conftest.tail conftest.defines
5823done
5824rm -f conftest.defines
5825echo '  fi # egrep' >>$CONFIG_STATUS
5826echo >>$CONFIG_STATUS
5827
5828# Break up conftest.undefs because some shells have a limit on the size
5829# of here documents, and old seds have small limits too (100 cmds).
5830echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5831rm -f conftest.tail
5832while grep . conftest.undefs >/dev/null
5833do
5834  # Write a limited-size here document to $tmp/undefs.sed.
5835  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5836  # Speed up: don't consider the non `#undef'
5837  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
5838  # Work around the forget-to-reset-the-flag bug.
5839  echo 't clr' >>$CONFIG_STATUS
5840  echo ': clr' >>$CONFIG_STATUS
5841  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5842  echo 'CEOF
5843  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5844  rm -f $tmp/in
5845  mv $tmp/out $tmp/in
5846' >>$CONFIG_STATUS
5847  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5848  rm -f conftest.undefs
5849  mv conftest.tail conftest.undefs
5850done
5851rm -f conftest.undefs
5852
5853cat >>$CONFIG_STATUS <<\EOF
5854  # Let's still pretend it is `configure' which instantiates (i.e., don't
5855  # use $as_me), people would be surprised to read:
5856  #    /* config.h.  Generated automatically by config.status.  */
5857  if test x"$ac_file" = x-; then
5858    echo "/* Generated automatically by configure.  */" >$tmp/config.h
5859  else
5860    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
5861  fi
5862  cat $tmp/in >>$tmp/config.h
5863  rm -f $tmp/in
5864  if test x"$ac_file" != x-; then
5865    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5866      { echo "$as_me:5866: $ac_file is unchanged" >&5
5867echo "$as_me: $ac_file is unchanged" >&6;}
5868    else
5869      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5870         X"$ac_file" : 'X\(//\)[^/]' \| \
5871         X"$ac_file" : 'X\(//\)$' \| \
5872         X"$ac_file" : 'X\(/\)' \| \
5873         .     : '\(.\)' 2>/dev/null ||
5874echo X"$ac_file" |
5875    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5876  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5877  	  /^X\(\/\/\)$/{ s//\1/; q; }
5878  	  /^X\(\/\).*/{ s//\1/; q; }
5879  	  s/.*/./; q'`
5880      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5881        { case "$ac_dir" in
5882  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5883  *)                      as_incr_dir=.;;
5884esac
5885as_dummy="$ac_dir"
5886for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5887  case $as_mkdir_dir in
5888    # Skip DOS drivespec
5889    ?:) as_incr_dir=$as_mkdir_dir ;;
5890    *)
5891      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5892      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5893    ;;
5894  esac
5895done; }
5896
5897      fi
5898      rm -f $ac_file
5899      mv $tmp/config.h $ac_file
5900    fi
5901  else
5902    cat $tmp/config.h
5903    rm -f $tmp/config.h
5904  fi
5905done
5906EOF
5907
5908cat >>$CONFIG_STATUS <<\EOF
5909
5910{ (exit 0); exit 0; }
5911EOF
5912chmod +x $CONFIG_STATUS
5913ac_clean_files=$ac_clean_files_save
5914
5915# configure is writing to config.log, and then calls config.status.
5916# config.status does its own redirection, appending to config.log.
5917# Unfortunately, on DOS this fails, as config.log is still kept open
5918# by configure, so config.status won't be able to write to it; its
5919# output is simply discarded.  So we exec the FD to /dev/null,
5920# effectively closing config.log, so it can be properly (re)opened and
5921# appended to by config.status.  When coming back to configure, we
5922# need to make the FD available again.
5923if test "$no_create" != yes; then
5924  ac_cs_success=:
5925  exec 5>/dev/null
5926  $SHELL $CONFIG_STATUS || ac_cs_success=false
5927  exec 5>>config.log
5928  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5929  # would make configure fail if this is the last instruction.
5930  $ac_cs_success || { (exit 1); exit 1; }
5931fi
5932
5933test -z "$cf_make_docs" && cf_make_docs=0
5934
5935cf_output=makefile
5936test -f "$cf_output" || cf_output=Makefile
5937
5938if test "$cf_make_docs" = 0
5939then
5940cat >>$cf_output <<"CF_EOF"
5941################################################################################
5942.SUFFIXES : .html .1 .man .ps .pdf .txt
5943
5944.1.html :
5945	GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | groff -P -o0 -Iyacc,1_ -Thtml -man" >$@
5946
5947.1.ps :
5948	$(SHELL) -c "tbl $*.1 | groff -man" >$@
5949
5950.1.txt :
5951	GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | nroff -Tascii -man | col -bx" >$@
5952
5953.ps.pdf :
5954	ps2pdf $*.ps
5955
5956CF_EOF
5957	cf_make_docs=1
5958fi
5959
5960for cf_name in yacc
5961do
5962cat >>$cf_output <<CF_EOF
5963################################################################################
5964docs-$cf_name \\
5965docs :: $cf_name.html \\
5966	$cf_name.pdf \\
5967	$cf_name.ps \\
5968	$cf_name.txt
5969
5970clean \\
5971docs-clean ::
5972	rm -f $cf_name.html $cf_name.pdf $cf_name.ps $cf_name.txt
5973
5974$cf_name.html : $cf_name.\1
5975$cf_name.pdf : $cf_name.ps
5976$cf_name.ps : $cf_name.\1
5977$cf_name.txt : $cf_name.\1
5978CF_EOF
5979done
5980
5981