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