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