Imported Upstream version 20161202
[platform/upstream/byacc.git] / configure
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.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
17
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26   emulate sh
27   NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29   set -o posix
30 fi
31
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36   as_expr=expr
37 else
38   as_expr=false
39 fi
40
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >conf$$.file
43 if 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
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53   as_ln_s=ln
54 else
55   as_ln_s='cp -p'
56 fi
57 rm -f conf$$ conf$$.exe conf$$.file
58
59 as_executable_p="test -f"
60
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63   as_unset=unset
64 else
65   as_unset=false
66 fi
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.
80 as_nl='
81 '
82 IFS="   $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.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92 exec 6>&1
93
94 #
95 # Initializations.
96 #
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${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
108 ac_unique_file="main.c"
109 # Factoring default headers for most tests.
110 ac_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.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_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.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
184
185 # Identity of this package.
186 PACKAGE_NAME=
187 PACKAGE_TARNAME=
188 PACKAGE_VERSION=
189 PACKAGE_STRING=
190 PACKAGE_BUGREPORT=
191
192 ac_prev=
193 for ac_option
194 do
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
473 Try \`$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
496 done
497
498 if 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; }; }
502 fi
503
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
506 do
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
513 done
514
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517               localstatedir libdir includedir oldincludedir infodir mandir
518 do
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
525 done
526
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
529 build=$build_alias
530 host=$host_alias
531 target=$target_alias
532
533 # FIXME: should be removed in autoconf 3.0.
534 if 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
542 fi
543
544 ac_tool_prefix=
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
546
547 test "$silent" = yes && exec 6>/dev/null
548
549 # Find the source files, if location was not specified.
550 if 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
560 else
561   ac_srcdir_defaulted=no
562 fi
563 if 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
571 fi
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
586 ac_env_CC_value=$CC
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605
606 #
607 # Report the --help message.
608 #
609 if 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
615 Usage: $0 [OPTION]... [VAR=VALUE]...
616
617 To assign environment variables (e.g., CC, CFLAGS...), specify them as
618 VAR=VALUE.  See below for descriptions of some of the useful variables.
619
620 Defaults for the options are specified in brackets.
621
622 Configuration:
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
633 EOF
634
635   cat <<EOF
636 Installation 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
642 By default, \`make install' will install all the files in
643 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
644 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
645 for instance \`--prefix=\$HOME'.
646
647 For better control, use the options below.
648
649 Fine 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]
663 EOF
664
665   cat <<\EOF
666
667 Program 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
672 System 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]
676 EOF
677 fi
678
679 if test -n "$ac_init_help"; then
680
681   cat <<\EOF
682
683 Optional Packages:
684   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
685   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
686
687 Optional 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
702 Some 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
711 Use these variables to override the choices made by `configure' or to help
712 it to find libraries and programs with nonstandard names/locations.
713
714 EOF
715 fi
716
717 if 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
751 fi
752
753 test -n "$ac_init_help" && exit 0
754 if $ac_init_version; then
755   cat <<\EOF
756
757 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
758 Free Software Foundation, Inc.
759 This configure script is free software; the Free Software Foundation
760 gives unlimited permission to copy, distribute and modify it.
761 EOF
762   exit 0
763 fi
764 exec 5>config.log
765 cat >&5 <<EOF
766 This file contains any messages produced by compilers while
767 running configure, to aid debugging if configure makes a mistake.
768
769 It was created by $as_me, which was
770 generated by GNU Autoconf 2.52.20150926.  Invocation command line was
771
772   $ $0 $@
773
774 EOF
775 {
776 cat <<_ASUNAME
777 ## ---------- ##
778 ## Platform.  ##
779 ## ---------- ##
780
781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
785 uname -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`
793 hostinfo               = `(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
798 PATH = $PATH
799
800 _ASUNAME
801 } >&5
802
803 cat >&5 <<EOF
804 ## ------------ ##
805 ## Core tests.  ##
806 ## ------------ ##
807
808 EOF
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.
813 ac_configure_args=
814 ac_sep=
815 for ac_arg
816 do
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.
830 done
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.
835 trap '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
873 for ac_signal in 1 2 13 15; do
874   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
875 done
876 ac_signal=0
877
878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
879 rm -rf conftest* confdefs.h
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
881 echo >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.
885 if 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
891 fi
892 for 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
895 echo "$as_me: loading site script $ac_site_file" >&6;}
896     cat "$ac_site_file" >&5
897     . "$ac_site_file"
898   fi
899 done
900
901 if 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
906 echo "$as_me: loading cache $cache_file" >&6;}
907     case $cache_file in
908       [\\/]* | ?:[\\/]* ) . $cache_file;;
909       *)                      . ./$cache_file;;
910     esac
911   fi
912 else
913   { echo "$as_me:913: creating cache $cache_file" >&5
914 echo "$as_me: creating cache $cache_file" >&6;}
915   >$cache_file
916 fi
917
918 # Check that the precious variables saved in the cache have kept the same
919 # value.
920 ac_cache_corrupted=false
921 for 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
930 echo "$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
934 echo "$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
940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
941         { echo "$as_me:941:   former value:  $ac_old_val" >&5
942 echo "$as_me:   former value:  $ac_old_val" >&2;}
943         { echo "$as_me:943:   current value: $ac_new_val" >&5
944 echo "$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
960 done
961 if $ac_cache_corrupted; then
962   { echo "$as_me:962: error: changes in the environment can compromise the build" >&5
963 echo "$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
965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
966    { (exit 1); exit 1; }; }
967 fi
968
969 ac_ext=c
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
974 ac_main_return=return
975
976 case `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= ;;
981 esac
982 echo "#! $SHELL" >conftest.sh
983 echo  "exit 0"   >>conftest.sh
984 chmod +x conftest.sh
985 if { (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=';'
991 else
992   ac_path_separator=:
993 fi
994 PATH_SEPARATOR="$ac_path_separator"
995 rm -f conftest.sh
996
997 ac_config_headers="$ac_config_headers config.h:config_h.in"
998
999 ac_aux_dir=
1000 for 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
1014 done
1015 if test -z "$ac_aux_dir"; then
1016   { { echo "$as_me:1016: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1017 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1018    { (exit 1); exit 1; }; }
1019 fi
1020 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1021 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1022 ac_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
1027 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1028    { (exit 1); exit 1; }; }
1029
1030 echo "$as_me:1030: checking build system type" >&5
1031 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1032 if test "${ac_cv_build+set}" = set; then
1033   echo $ECHO_N "(cached) $ECHO_C" >&6
1034 else
1035   ac_cv_build_alias=$build_alias
1036 test -z "$ac_cv_build_alias" &&
1037   ac_cv_build_alias=`$ac_config_guess`
1038 test -z "$ac_cv_build_alias" &&
1039   { { echo "$as_me:1039: error: cannot guess build type; you must specify one" >&5
1040 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1041    { (exit 1); exit 1; }; }
1042 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1043   { { echo "$as_me:1043: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1044 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1045    { (exit 1); exit 1; }; }
1046
1047 fi
1048 echo "$as_me:1048: result: $ac_cv_build" >&5
1049 echo "${ECHO_T}$ac_cv_build" >&6
1050 build=$ac_cv_build
1051 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1052 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1053 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1054
1055 echo "$as_me:1055: checking host system type" >&5
1056 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1057 if test "${ac_cv_host+set}" = set; then
1058   echo $ECHO_N "(cached) $ECHO_C" >&6
1059 else
1060   ac_cv_host_alias=$host_alias
1061 test -z "$ac_cv_host_alias" &&
1062   ac_cv_host_alias=$ac_cv_build_alias
1063 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1064   { { echo "$as_me:1064: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1065 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1066    { (exit 1); exit 1; }; }
1067
1068 fi
1069 echo "$as_me:1069: result: $ac_cv_host" >&5
1070 echo "${ECHO_T}$ac_cv_host" >&6
1071 host=$ac_cv_host
1072 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075
1076 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1077         echo "$as_me:1077: checking target system type" >&5
1078 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1079 if test "${ac_cv_target+set}" = set; then
1080   echo $ECHO_N "(cached) $ECHO_C" >&6
1081 else
1082   ac_cv_target_alias=$target_alias
1083 test "x$ac_cv_target_alias" = "x" &&
1084   ac_cv_target_alias=$ac_cv_host_alias
1085 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1086   { { echo "$as_me:1086: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1087 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1088    { (exit 1); exit 1; }; }
1089
1090 fi
1091 echo "$as_me:1091: result: $ac_cv_target" >&5
1092 echo "${ECHO_T}$ac_cv_target" >&6
1093 target=$ac_cv_target
1094 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1095 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1096 target_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.
1100 test -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"
1105 else
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
1110 fi
1111 test -n "$system_name" &&
1112 cat >>confdefs.h <<EOF
1113 #define SYSTEM_NAME "$system_name"
1114 EOF
1115
1116 if test "${cf_cv_system_name+set}" = set; then
1117   echo $ECHO_N "(cached) $ECHO_C" >&6
1118 else
1119   cf_cv_system_name="$system_name"
1120 fi
1121
1122 test -z "$system_name" && system_name="$cf_cv_system_name"
1123 test -n "$cf_cv_system_name" && echo "$as_me:1123: result: Configuring for $cf_cv_system_name" >&5
1124 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1125
1126 if 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
1128 echo "${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
1130 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1131    { (exit 1); exit 1; }; }
1132 fi
1133
1134 test "$program_prefix" != NONE &&
1135   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1136 # Use a double $ so make ignores it.
1137 test "$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.
1141 cat <<\_ACEOF >conftest.sed
1142 s/[\\$]/&&/g;s/;s,x,x,$//
1143 _ACEOF
1144 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1145 rm conftest.sed
1146
1147 ac_ext=c
1148 ac_cpp='$CPP $CPPFLAGS'
1149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1152 ac_main_return=return
1153 if 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.
1155 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1156 echo "$as_me:1156: checking for $ac_word" >&5
1157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1158 if test "${ac_cv_prog_CC+set}" = set; then
1159   echo $ECHO_N "(cached) $ECHO_C" >&6
1160 else
1161   if test -n "$CC"; then
1162   ac_cv_prog_CC="$CC" # Let the user override the test.
1163 else
1164   ac_save_IFS=$IFS; IFS=$ac_path_separator
1165 ac_dummy="$PATH"
1166 for 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
1170 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1171 echo "$as_me:1171: found $ac_dir/$ac_word" >&5
1172 break
1173 done
1174
1175 fi
1176 fi
1177 CC=$ac_cv_prog_CC
1178 if test -n "$CC"; then
1179   echo "$as_me:1179: result: $CC" >&5
1180 echo "${ECHO_T}$CC" >&6
1181 else
1182   echo "$as_me:1182: result: no" >&5
1183 echo "${ECHO_T}no" >&6
1184 fi
1185
1186 fi
1187 if 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.
1190 set dummy gcc; ac_word=$2
1191 echo "$as_me:1191: checking for $ac_word" >&5
1192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1194   echo $ECHO_N "(cached) $ECHO_C" >&6
1195 else
1196   if test -n "$ac_ct_CC"; then
1197   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1198 else
1199   ac_save_IFS=$IFS; IFS=$ac_path_separator
1200 ac_dummy="$PATH"
1201 for 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
1205 ac_cv_prog_ac_ct_CC="gcc"
1206 echo "$as_me:1206: found $ac_dir/$ac_word" >&5
1207 break
1208 done
1209
1210 fi
1211 fi
1212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1213 if test -n "$ac_ct_CC"; then
1214   echo "$as_me:1214: result: $ac_ct_CC" >&5
1215 echo "${ECHO_T}$ac_ct_CC" >&6
1216 else
1217   echo "$as_me:1217: result: no" >&5
1218 echo "${ECHO_T}no" >&6
1219 fi
1220
1221   CC=$ac_ct_CC
1222 else
1223   CC="$ac_cv_prog_CC"
1224 fi
1225
1226 if 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.
1229 set dummy ${ac_tool_prefix}cc; ac_word=$2
1230 echo "$as_me:1230: checking for $ac_word" >&5
1231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1232 if test "${ac_cv_prog_CC+set}" = set; then
1233   echo $ECHO_N "(cached) $ECHO_C" >&6
1234 else
1235   if test -n "$CC"; then
1236   ac_cv_prog_CC="$CC" # Let the user override the test.
1237 else
1238   ac_save_IFS=$IFS; IFS=$ac_path_separator
1239 ac_dummy="$PATH"
1240 for 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
1244 ac_cv_prog_CC="${ac_tool_prefix}cc"
1245 echo "$as_me:1245: found $ac_dir/$ac_word" >&5
1246 break
1247 done
1248
1249 fi
1250 fi
1251 CC=$ac_cv_prog_CC
1252 if test -n "$CC"; then
1253   echo "$as_me:1253: result: $CC" >&5
1254 echo "${ECHO_T}$CC" >&6
1255 else
1256   echo "$as_me:1256: result: no" >&5
1257 echo "${ECHO_T}no" >&6
1258 fi
1259
1260 fi
1261 if 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.
1264 set dummy cc; ac_word=$2
1265 echo "$as_me:1265: checking for $ac_word" >&5
1266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1268   echo $ECHO_N "(cached) $ECHO_C" >&6
1269 else
1270   if test -n "$ac_ct_CC"; then
1271   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1272 else
1273   ac_save_IFS=$IFS; IFS=$ac_path_separator
1274 ac_dummy="$PATH"
1275 for 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
1279 ac_cv_prog_ac_ct_CC="cc"
1280 echo "$as_me:1280: found $ac_dir/$ac_word" >&5
1281 break
1282 done
1283
1284 fi
1285 fi
1286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1287 if test -n "$ac_ct_CC"; then
1288   echo "$as_me:1288: result: $ac_ct_CC" >&5
1289 echo "${ECHO_T}$ac_ct_CC" >&6
1290 else
1291   echo "$as_me:1291: result: no" >&5
1292 echo "${ECHO_T}no" >&6
1293 fi
1294
1295   CC=$ac_ct_CC
1296 else
1297   CC="$ac_cv_prog_CC"
1298 fi
1299
1300 fi
1301 if test -z "$CC"; then
1302   # Extract the first word of "cc", so it can be a program name with args.
1303 set dummy cc; ac_word=$2
1304 echo "$as_me:1304: checking for $ac_word" >&5
1305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1306 if test "${ac_cv_prog_CC+set}" = set; then
1307   echo $ECHO_N "(cached) $ECHO_C" >&6
1308 else
1309   if test -n "$CC"; then
1310   ac_cv_prog_CC="$CC" # Let the user override the test.
1311 else
1312   ac_prog_rejected=no
1313   ac_save_IFS=$IFS; IFS=$ac_path_separator
1314 ac_dummy="$PATH"
1315 for 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
1319 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1320   ac_prog_rejected=yes
1321   continue
1322 fi
1323 ac_cv_prog_CC="cc"
1324 echo "$as_me:1324: found $ac_dir/$ac_word" >&5
1325 break
1326 done
1327
1328 if 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
1341 fi
1342 fi
1343 fi
1344 CC=$ac_cv_prog_CC
1345 if test -n "$CC"; then
1346   echo "$as_me:1346: result: $CC" >&5
1347 echo "${ECHO_T}$CC" >&6
1348 else
1349   echo "$as_me:1349: result: no" >&5
1350 echo "${ECHO_T}no" >&6
1351 fi
1352
1353 fi
1354 if 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.
1359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1360 echo "$as_me:1360: checking for $ac_word" >&5
1361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362 if test "${ac_cv_prog_CC+set}" = set; then
1363   echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365   if test -n "$CC"; then
1366   ac_cv_prog_CC="$CC" # Let the user override the test.
1367 else
1368   ac_save_IFS=$IFS; IFS=$ac_path_separator
1369 ac_dummy="$PATH"
1370 for 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
1374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1375 echo "$as_me:1375: found $ac_dir/$ac_word" >&5
1376 break
1377 done
1378
1379 fi
1380 fi
1381 CC=$ac_cv_prog_CC
1382 if test -n "$CC"; then
1383   echo "$as_me:1383: result: $CC" >&5
1384 echo "${ECHO_T}$CC" >&6
1385 else
1386   echo "$as_me:1386: result: no" >&5
1387 echo "${ECHO_T}no" >&6
1388 fi
1389
1390     test -n "$CC" && break
1391   done
1392 fi
1393 if test -z "$CC"; then
1394   ac_ct_CC=$CC
1395   for ac_prog in cl
1396 do
1397   # Extract the first word of "$ac_prog", so it can be a program name with args.
1398 set dummy $ac_prog; ac_word=$2
1399 echo "$as_me:1399: checking for $ac_word" >&5
1400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1402   echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404   if test -n "$ac_ct_CC"; then
1405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1406 else
1407   ac_save_IFS=$IFS; IFS=$ac_path_separator
1408 ac_dummy="$PATH"
1409 for 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
1413 ac_cv_prog_ac_ct_CC="$ac_prog"
1414 echo "$as_me:1414: found $ac_dir/$ac_word" >&5
1415 break
1416 done
1417
1418 fi
1419 fi
1420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1421 if test -n "$ac_ct_CC"; then
1422   echo "$as_me:1422: result: $ac_ct_CC" >&5
1423 echo "${ECHO_T}$ac_ct_CC" >&6
1424 else
1425   echo "$as_me:1425: result: no" >&5
1426 echo "${ECHO_T}no" >&6
1427 fi
1428
1429   test -n "$ac_ct_CC" && break
1430 done
1431
1432   CC=$ac_ct_CC
1433 fi
1434
1435 fi
1436
1437 test -z "$CC" && { { echo "$as_me:1437: error: no acceptable cc found in \$PATH" >&5
1438 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 # Provide some information about the compiler.
1442 echo "$as_me:1442:" \
1443      "checking for C compiler version" >&5
1444 ac_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
1461 cat >conftest.$ac_ext <<_ACEOF
1462 #line 1462 "configure"
1463 #include "confdefs.h"
1464
1465 int
1466 main ()
1467 {
1468
1469   ;
1470   return 0;
1471 }
1472 _ACEOF
1473 ac_clean_files_save=$ac_clean_files
1474 ac_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.
1478 echo "$as_me:1478: checking for C compiler default output" >&5
1479 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1480 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1481 if { (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.
1489 for 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
1503 done
1504 else
1505   echo "$as_me: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1507 { { echo "$as_me:1507: error: C compiler cannot create executables" >&5
1508 echo "$as_me: error: C compiler cannot create executables" >&2;}
1509    { (exit 77); exit 77; }; }
1510 fi
1511
1512 ac_exeext=$ac_cv_exeext
1513 echo "$as_me:1513: result: $ac_file" >&5
1514 echo "${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.
1518 echo "$as_me:1518: checking whether the C compiler works" >&5
1519 echo $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.
1522 if 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.
1535 If you meant to cross compile, use \`--host'." >&5
1536 echo "$as_me: error: cannot run C compiled programs.
1537 If you meant to cross compile, use \`--host'." >&2;}
1538    { (exit 1); exit 1; }; }
1539     fi
1540   fi
1541 fi
1542 echo "$as_me:1542: result: yes" >&5
1543 echo "${ECHO_T}yes" >&6
1544
1545 rm -f a.out a.exe conftest$ac_cv_exeext
1546 ac_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.
1549 echo "$as_me:1549: checking whether we are cross compiling" >&5
1550 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1551 echo "$as_me:1551: result: $cross_compiling" >&5
1552 echo "${ECHO_T}$cross_compiling" >&6
1553
1554 echo "$as_me:1554: checking for executable suffix" >&5
1555 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1556 if { (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'.
1565 for 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
1573 done
1574 else
1575   { { echo "$as_me:1575: error: cannot compute EXEEXT: cannot compile and link" >&5
1576 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1577    { (exit 1); exit 1; }; }
1578 fi
1579
1580 rm -f conftest$ac_cv_exeext
1581 echo "$as_me:1581: result: $ac_cv_exeext" >&5
1582 echo "${ECHO_T}$ac_cv_exeext" >&6
1583
1584 rm -f conftest.$ac_ext
1585 EXEEXT=$ac_cv_exeext
1586 ac_exeext=$EXEEXT
1587 echo "$as_me:1587: checking for object suffix" >&5
1588 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1589 if test "${ac_cv_objext+set}" = set; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   cat >conftest.$ac_ext <<_ACEOF
1593 #line 1593 "configure"
1594 #include "confdefs.h"
1595
1596 int
1597 main ()
1598 {
1599
1600   ;
1601   return 0;
1602 }
1603 _ACEOF
1604 rm -f conftest.o conftest.obj
1605 if { (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
1616 done
1617 else
1618   echo "$as_me: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1620 { { echo "$as_me:1620: error: cannot compute OBJEXT: cannot compile" >&5
1621 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1622    { (exit 1); exit 1; }; }
1623 fi
1624
1625 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1626 fi
1627 echo "$as_me:1627: result: $ac_cv_objext" >&5
1628 echo "${ECHO_T}$ac_cv_objext" >&6
1629 OBJEXT=$ac_cv_objext
1630 ac_objext=$OBJEXT
1631 echo "$as_me:1631: checking whether we are using the GNU C compiler" >&5
1632 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1633 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1634   echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636   cat >conftest.$ac_ext <<_ACEOF
1637 #line 1637 "configure"
1638 #include "confdefs.h"
1639
1640 int
1641 main ()
1642 {
1643 #ifndef __GNUC__
1644        choke me
1645 #endif
1646
1647   ;
1648   return 0;
1649 }
1650 _ACEOF
1651 rm -f conftest.$ac_objext
1652 if { (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
1664 else
1665   echo "$as_me: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1667 ac_compiler_gnu=no
1668 fi
1669 rm -f conftest.$ac_objext conftest.$ac_ext
1670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1671
1672 fi
1673 echo "$as_me:1673: result: $ac_cv_c_compiler_gnu" >&5
1674 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1675 GCC=`test $ac_compiler_gnu = yes && echo yes`
1676 ac_test_CFLAGS=${CFLAGS+set}
1677 ac_save_CFLAGS=$CFLAGS
1678 CFLAGS="-g"
1679 echo "$as_me:1679: checking whether $CC accepts -g" >&5
1680 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1681 if test "${ac_cv_prog_cc_g+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   cat >conftest.$ac_ext <<_ACEOF
1685 #line 1685 "configure"
1686 #include "confdefs.h"
1687
1688 int
1689 main ()
1690 {
1691
1692   ;
1693   return 0;
1694 }
1695 _ACEOF
1696 rm -f conftest.$ac_objext
1697 if { (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
1709 else
1710   echo "$as_me: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1712 ac_cv_prog_cc_g=no
1713 fi
1714 rm -f conftest.$ac_objext conftest.$ac_ext
1715 fi
1716 echo "$as_me:1716: result: $ac_cv_prog_cc_g" >&5
1717 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1718 if test "$ac_test_CFLAGS" = set; then
1719   CFLAGS=$ac_save_CFLAGS
1720 elif 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
1726 else
1727   if test "$GCC" = yes; then
1728     CFLAGS="-O2"
1729   else
1730     CFLAGS=
1731   fi
1732 fi
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.
1737 cat >conftest.$ac_ext <<_ACEOF
1738 #ifndef __cplusplus
1739   choke me
1740 #endif
1741 _ACEOF
1742 rm -f conftest.$ac_objext
1743 if { (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);'
1762 do
1763   cat >conftest.$ac_ext <<_ACEOF
1764 #line 1764 "configure"
1765 #include "confdefs.h"
1766 #include <stdlib.h>
1767 $ac_declaration
1768 int
1769 main ()
1770 {
1771 exit (42);
1772   ;
1773   return 0;
1774 }
1775 _ACEOF
1776 rm -f conftest.$ac_objext
1777 if { (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   :
1789 else
1790   echo "$as_me: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1792 continue
1793 fi
1794 rm -f conftest.$ac_objext conftest.$ac_ext
1795   cat >conftest.$ac_ext <<_ACEOF
1796 #line 1796 "configure"
1797 #include "confdefs.h"
1798 $ac_declaration
1799 int
1800 main ()
1801 {
1802 exit (42);
1803   ;
1804   return 0;
1805 }
1806 _ACEOF
1807 rm -f conftest.$ac_objext
1808 if { (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
1820 else
1821   echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1823 fi
1824 rm -f conftest.$ac_objext conftest.$ac_ext
1825 done
1826 rm -rf conftest*
1827 if test -n "$ac_declaration"; then
1828   echo '#ifdef __cplusplus' >>confdefs.h
1829   echo $ac_declaration      >>confdefs.h
1830   echo '#endif'             >>confdefs.h
1831 fi
1832
1833 else
1834   echo "$as_me: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1836 fi
1837 rm -f conftest.$ac_objext conftest.$ac_ext
1838 ac_ext=c
1839 ac_cpp='$CPP $CPPFLAGS'
1840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1843 ac_main_return=return
1844
1845 GCC_VERSION=none
1846 if test "$GCC" = yes ; then
1847         echo "$as_me:1847: checking version of $CC" >&5
1848 echo $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
1852 echo "${ECHO_T}$GCC_VERSION" >&6
1853 fi
1854
1855 echo "$as_me:1855: checking for $CC option to accept ANSI C" >&5
1856 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1857 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   ac_cv_prog_cc_stdc=no
1861 ac_save_CC=$CC
1862 cat >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.  */
1870 struct buf { int x; };
1871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1872 static char *e (p, i)
1873      char **p;
1874      int i;
1875 {
1876   return p[i];
1877 }
1878 static 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 }
1887 int test (int i, double x);
1888 struct s1 {int (*f) (int a);};
1889 struct s2 {int (*f) (double a);};
1890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1891 int argc;
1892 char **argv;
1893 int
1894 main ()
1895 {
1896 return 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__
1908 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1909 do
1910   CC="$ac_save_CC $ac_arg"
1911   rm -f conftest.$ac_objext
1912 if { (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
1924 break
1925 else
1926   echo "$as_me: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1928 fi
1929 rm -f conftest.$ac_objext
1930 done
1931 rm -f conftest.$ac_ext conftest.$ac_objext
1932 CC=$ac_save_CC
1933
1934 fi
1935
1936 case "x$ac_cv_prog_cc_stdc" in
1937   x|xno)
1938     echo "$as_me:1938: result: none needed" >&5
1939 echo "${ECHO_T}none needed" >&6 ;;
1940   *)
1941     echo "$as_me:1941: result: $ac_cv_prog_cc_stdc" >&5
1942 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1943     CC="$CC $ac_cv_prog_cc_stdc" ;;
1944 esac
1945
1946 # This should have been defined by AC_PROG_CC
1947 : ${CC:=cc}
1948
1949 echo "$as_me:1949: checking \$CC variable" >&5
1950 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1951 case "$CC" in
1952 (*[\ \  ]-*)
1953         echo "$as_me:1953: result: broken" >&5
1954 echo "${ECHO_T}broken" >&6
1955         { echo "$as_me:1955: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1956 echo "$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
1965 cf_fix_cppflags=no
1966 cf_new_cflags=
1967 cf_new_cppflags=
1968 cf_new_extra_cppflags=
1969
1970 for cf_add_cflags in $cf_flags
1971 do
1972 case $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
2001 CPPFLAGS=`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         ;;
2025 esac
2026 done
2027
2028 if test -n "$cf_new_cflags" ; then
2029
2030         CFLAGS="$CFLAGS $cf_new_cflags"
2031 fi
2032
2033 if test -n "$cf_new_cppflags" ; then
2034
2035         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2036 fi
2037
2038 if test -n "$cf_new_extra_cppflags" ; then
2039
2040         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2041 fi
2042
2043                         ;;
2044                 (*)
2045                         CC="$CC $cf_arg"
2046                         ;;
2047                 esac
2048         done
2049         test -n "$verbose" && echo "    resulting CC: '$CC'" 1>&6
2050
2051 echo "${as_me:-configure}:2051: testing resulting CC: '$CC' ..." 1>&5
2052
2053         test -n "$verbose" && echo "    resulting CFLAGS: '$CFLAGS'" 1>&6
2054
2055 echo "${as_me:-configure}:2055: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2056
2057         test -n "$verbose" && echo "    resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2058
2059 echo "${as_me:-configure}:2059: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2060
2061         ;;
2062 (*)
2063         echo "$as_me:2063: result: ok" >&5
2064 echo "${ECHO_T}ok" >&6
2065         ;;
2066 esac
2067
2068 echo "$as_me:2068: checking whether ${MAKE-make} sets \${MAKE}" >&5
2069 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2070 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2071 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   cat >conftest.make <<\EOF
2075 all:
2076         @echo 'ac_maketemp="${MAKE}"'
2077 EOF
2078 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2079 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2080 if test -n "$ac_maketemp"; then
2081   eval ac_cv_prog_make_${ac_make}_set=yes
2082 else
2083   eval ac_cv_prog_make_${ac_make}_set=no
2084 fi
2085 rm -f conftest.make
2086 fi
2087 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2088   echo "$as_me:2088: result: yes" >&5
2089 echo "${ECHO_T}yes" >&6
2090   SET_MAKE=
2091 else
2092   echo "$as_me:2092: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2094   SET_MAKE="MAKE=${MAKE-make}"
2095 fi
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.
2109 echo "$as_me:2109: checking for a BSD compatible install" >&5
2110 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2111 if test -z "$INSTALL"; then
2112 if test "${ac_cv_path_install+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
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
2147 fi
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
2157 fi
2158 echo "$as_me:2158: result: $INSTALL" >&5
2159 echo "${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.
2163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2164
2165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2166
2167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2168
2169 echo "$as_me:2169: checking if filesystem supports mixed-case filenames" >&5
2170 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2171 if test "${cf_cv_mixedcase+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174
2175 if 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
2184 else
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
2193 fi
2194
2195 fi
2196 echo "$as_me:2196: result: $cf_cv_mixedcase" >&5
2197 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2198 test "$cf_cv_mixedcase" = yes &&
2199 cat >>confdefs.h <<\EOF
2200 #define MIXEDCASE_FILENAMES 1
2201 EOF
2202
2203 for ac_prog in exctags ctags
2204 do
2205   # Extract the first word of "$ac_prog", so it can be a program name with args.
2206 set dummy $ac_prog; ac_word=$2
2207 echo "$as_me:2207: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209 if test "${ac_cv_prog_CTAGS+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   if test -n "$CTAGS"; then
2213   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2214 else
2215   ac_save_IFS=$IFS; IFS=$ac_path_separator
2216 ac_dummy="$PATH"
2217 for 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
2221 ac_cv_prog_CTAGS="$ac_prog"
2222 echo "$as_me:2222: found $ac_dir/$ac_word" >&5
2223 break
2224 done
2225
2226 fi
2227 fi
2228 CTAGS=$ac_cv_prog_CTAGS
2229 if test -n "$CTAGS"; then
2230   echo "$as_me:2230: result: $CTAGS" >&5
2231 echo "${ECHO_T}$CTAGS" >&6
2232 else
2233   echo "$as_me:2233: result: no" >&5
2234 echo "${ECHO_T}no" >&6
2235 fi
2236
2237   test -n "$CTAGS" && break
2238 done
2239
2240 for ac_prog in exetags etags
2241 do
2242   # Extract the first word of "$ac_prog", so it can be a program name with args.
2243 set dummy $ac_prog; ac_word=$2
2244 echo "$as_me:2244: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2246 if test "${ac_cv_prog_ETAGS+set}" = set; then
2247   echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249   if test -n "$ETAGS"; then
2250   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2251 else
2252   ac_save_IFS=$IFS; IFS=$ac_path_separator
2253 ac_dummy="$PATH"
2254 for 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
2258 ac_cv_prog_ETAGS="$ac_prog"
2259 echo "$as_me:2259: found $ac_dir/$ac_word" >&5
2260 break
2261 done
2262
2263 fi
2264 fi
2265 ETAGS=$ac_cv_prog_ETAGS
2266 if test -n "$ETAGS"; then
2267   echo "$as_me:2267: result: $ETAGS" >&5
2268 echo "${ECHO_T}$ETAGS" >&6
2269 else
2270   echo "$as_me:2270: result: no" >&5
2271 echo "${ECHO_T}no" >&6
2272 fi
2273
2274   test -n "$ETAGS" && break
2275 done
2276
2277 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2278 set dummy ${CTAGS:-ctags}; ac_word=$2
2279 echo "$as_me:2279: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2282   echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284   if test -n "$MAKE_LOWER_TAGS"; then
2285   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2286 else
2287   ac_save_IFS=$IFS; IFS=$ac_path_separator
2288 ac_dummy="$PATH"
2289 for 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
2293 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2294 echo "$as_me:2294: found $ac_dir/$ac_word" >&5
2295 break
2296 done
2297
2298   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2299 fi
2300 fi
2301 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2302 if test -n "$MAKE_LOWER_TAGS"; then
2303   echo "$as_me:2303: result: $MAKE_LOWER_TAGS" >&5
2304 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2305 else
2306   echo "$as_me:2306: result: no" >&5
2307 echo "${ECHO_T}no" >&6
2308 fi
2309
2310 if test "$cf_cv_mixedcase" = yes ; then
2311         # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2312 set dummy ${ETAGS:-etags}; ac_word=$2
2313 echo "$as_me:2313: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2316   echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318   if test -n "$MAKE_UPPER_TAGS"; then
2319   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2320 else
2321   ac_save_IFS=$IFS; IFS=$ac_path_separator
2322 ac_dummy="$PATH"
2323 for 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
2327 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2328 echo "$as_me:2328: found $ac_dir/$ac_word" >&5
2329 break
2330 done
2331
2332   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2333 fi
2334 fi
2335 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2336 if test -n "$MAKE_UPPER_TAGS"; then
2337   echo "$as_me:2337: result: $MAKE_UPPER_TAGS" >&5
2338 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2339 else
2340   echo "$as_me:2340: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2342 fi
2343
2344 else
2345         MAKE_UPPER_TAGS=no
2346 fi
2347
2348 if test "$MAKE_UPPER_TAGS" = yes ; then
2349         MAKE_UPPER_TAGS=
2350 else
2351         MAKE_UPPER_TAGS="#"
2352 fi
2353
2354 if test "$MAKE_LOWER_TAGS" = yes ; then
2355         MAKE_LOWER_TAGS=
2356 else
2357         MAKE_LOWER_TAGS="#"
2358 fi
2359
2360 for ac_prog in mawk gawk nawk awk
2361 do
2362   # Extract the first word of "$ac_prog", so it can be a program name with args.
2363 set dummy $ac_prog; ac_word=$2
2364 echo "$as_me:2364: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2366 if test "${ac_cv_prog_AWK+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   if test -n "$AWK"; then
2370   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2371 else
2372   ac_save_IFS=$IFS; IFS=$ac_path_separator
2373 ac_dummy="$PATH"
2374 for 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
2378 ac_cv_prog_AWK="$ac_prog"
2379 echo "$as_me:2379: found $ac_dir/$ac_word" >&5
2380 break
2381 done
2382
2383 fi
2384 fi
2385 AWK=$ac_cv_prog_AWK
2386 if test -n "$AWK"; then
2387   echo "$as_me:2387: result: $AWK" >&5
2388 echo "${ECHO_T}$AWK" >&6
2389 else
2390   echo "$as_me:2390: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2392 fi
2393
2394   test -n "$AWK" && break
2395 done
2396
2397 test -z "$AWK" && { { echo "$as_me:2397: error: No awk program found" >&5
2398 echo "$as_me: error: No awk program found" >&2;}
2399    { (exit 1); exit 1; }; }
2400
2401 for ac_prog in lint cppcheck splint
2402 do
2403   # Extract the first word of "$ac_prog", so it can be a program name with args.
2404 set dummy $ac_prog; ac_word=$2
2405 echo "$as_me:2405: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407 if test "${ac_cv_prog_LINT+set}" = set; then
2408   echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410   if test -n "$LINT"; then
2411   ac_cv_prog_LINT="$LINT" # Let the user override the test.
2412 else
2413   ac_save_IFS=$IFS; IFS=$ac_path_separator
2414 ac_dummy="$PATH"
2415 for 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
2419 ac_cv_prog_LINT="$ac_prog"
2420 echo "$as_me:2420: found $ac_dir/$ac_word" >&5
2421 break
2422 done
2423
2424 fi
2425 fi
2426 LINT=$ac_cv_prog_LINT
2427 if test -n "$LINT"; then
2428   echo "$as_me:2428: result: $LINT" >&5
2429 echo "${ECHO_T}$LINT" >&6
2430 else
2431   echo "$as_me:2431: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2433 fi
2434
2435   test -n "$LINT" && break
2436 done
2437
2438 cf_XOPEN_SOURCE=500
2439 cf_POSIX_C_SOURCE=199506L
2440 cf_xopen_source=
2441
2442 case $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
2476 echo "$as_me:2476: checking if we must define _GNU_SOURCE" >&5
2477 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2478 if test "${cf_cv_gnu_source+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481
2482 cat >conftest.$ac_ext <<_ACEOF
2483 #line 2483 "configure"
2484 #include "confdefs.h"
2485 #include <sys/types.h>
2486 int
2487 main ()
2488 {
2489
2490 #ifndef _XOPEN_SOURCE
2491 make an error
2492 #endif
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (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
2510 else
2511   echo "$as_me: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 cf_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>
2519 int
2520 main ()
2521 {
2522
2523 #ifdef _XOPEN_SOURCE
2524 make an error
2525 #endif
2526   ;
2527   return 0;
2528 }
2529 _ACEOF
2530 rm -f conftest.$ac_objext
2531 if { (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
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 cf_cv_gnu_source=yes
2547 fi
2548 rm -f conftest.$ac_objext conftest.$ac_ext
2549         CPPFLAGS="$cf_save"
2550
2551 fi
2552 rm -f conftest.$ac_objext conftest.$ac_ext
2553
2554 fi
2555 echo "$as_me:2555: result: $cf_cv_gnu_source" >&5
2556 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2557
2558 if test "$cf_cv_gnu_source" = yes
2559 then
2560 echo "$as_me:2560: checking if we should also define _DEFAULT_SOURCE" >&5
2561 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
2562 if test "${cf_cv_default_source+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565
2566 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2567         cat >conftest.$ac_ext <<_ACEOF
2568 #line 2568 "configure"
2569 #include "confdefs.h"
2570 #include <sys/types.h>
2571 int
2572 main ()
2573 {
2574
2575 #ifdef _DEFAULT_SOURCE
2576 make an error
2577 #endif
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (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
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 cf_cv_default_source=yes
2599 fi
2600 rm -f conftest.$ac_objext conftest.$ac_ext
2601
2602 fi
2603 echo "$as_me:2603: result: $cf_cv_default_source" >&5
2604 echo "${ECHO_T}$cf_cv_default_source" >&6
2605 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
2606 fi
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
2616 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2617
2618 cf_save_CFLAGS="$CFLAGS"
2619 cf_save_CPPFLAGS="$CPPFLAGS"
2620
2621 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2622         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
2623                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
2624
2625 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2626         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
2627                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
2628
2629 echo "$as_me:2629: checking if we should define _POSIX_C_SOURCE" >&5
2630 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2631 if test "${cf_cv_posix_c_source+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634
2635 echo "${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>
2641 int
2642 main ()
2643 {
2644
2645 #ifndef _POSIX_C_SOURCE
2646 make an error
2647 #endif
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (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
2665 else
2666   echo "$as_me: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2668 cf_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>
2686 int
2687 main ()
2688 {
2689
2690 #ifdef _POSIX_SOURCE
2691 make an error
2692 #endif
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (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   :
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2713 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2714 fi
2715 rm -f conftest.$ac_objext conftest.$ac_ext
2716          fi
2717
2718 echo "${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
2723 echo "${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>
2729 int
2730 main ()
2731 {
2732
2733 #ifndef _POSIX_C_SOURCE
2734 make an error
2735 #endif
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (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   :
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2756 cf_cv_posix_c_source=no
2757 fi
2758 rm -f conftest.$ac_objext conftest.$ac_ext
2759          CFLAGS="$cf_save_CFLAGS"
2760          CPPFLAGS="$cf_save_CPPFLAGS"
2761
2762 fi
2763 rm -f conftest.$ac_objext conftest.$ac_ext
2764
2765 fi
2766 echo "$as_me:2766: result: $cf_cv_posix_c_source" >&5
2767 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2768
2769 if test "$cf_cv_posix_c_source" != no ; then
2770         CFLAGS="$cf_trim_CFLAGS"
2771         CPPFLAGS="$cf_trim_CPPFLAGS"
2772
2773 cf_fix_cppflags=no
2774 cf_new_cflags=
2775 cf_new_cppflags=
2776 cf_new_extra_cppflags=
2777
2778 for cf_add_cflags in $cf_cv_posix_c_source
2779 do
2780 case $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
2809 CPPFLAGS=`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         ;;
2833 esac
2834 done
2835
2836 if test -n "$cf_new_cflags" ; then
2837
2838         CFLAGS="$CFLAGS $cf_new_cflags"
2839 fi
2840
2841 if test -n "$cf_new_cppflags" ; then
2842
2843         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2844 fi
2845
2846 if test -n "$cf_new_extra_cppflags" ; then
2847
2848         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2849 fi
2850
2851 fi
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
2884 echo "$as_me:2884: checking if we should define _XOPEN_SOURCE" >&5
2885 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2886 if test "${cf_cv_xopen_source+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
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
2898 int
2899 main ()
2900 {
2901
2902 #ifndef _XOPEN_SOURCE
2903 make an error
2904 #endif
2905   ;
2906   return 0;
2907 }
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (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
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 cat conftest.$ac_ext >&5
2925 cf_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
2935 int
2936 main ()
2937 {
2938
2939 #ifdef _XOPEN_SOURCE
2940 make an error
2941 #endif
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (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
2959 else
2960   echo "$as_me: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 cf_cv_xopen_source=$cf_XOPEN_SOURCE
2963 fi
2964 rm -f conftest.$ac_objext conftest.$ac_ext
2965         CPPFLAGS="$cf_save"
2966
2967 fi
2968 rm -f conftest.$ac_objext conftest.$ac_ext
2969
2970 fi
2971 echo "$as_me:2971: result: $cf_cv_xopen_source" >&5
2972 echo "${ECHO_T}$cf_cv_xopen_source" >&6
2973
2974 if test "$cf_cv_xopen_source" != no ; then
2975
2976 CFLAGS=`echo "$CFLAGS" | \
2977         sed     -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?[         ]/ /g' \
2978                 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?$//g'`
2979
2980 CPPFLAGS=`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
2986 cf_fix_cppflags=no
2987 cf_new_cflags=
2988 cf_new_cppflags=
2989 cf_new_extra_cppflags=
2990
2991 for cf_add_cflags in $cf_temp_xopen_source
2992 do
2993 case $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
3022 CPPFLAGS=`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         ;;
3046 esac
3047 done
3048
3049 if test -n "$cf_new_cflags" ; then
3050
3051         CFLAGS="$CFLAGS $cf_new_cflags"
3052 fi
3053
3054 if test -n "$cf_new_cppflags" ; then
3055
3056         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3057 fi
3058
3059 if test -n "$cf_new_extra_cppflags" ; then
3060
3061         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3062 fi
3063
3064 fi
3065
3066 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3067
3068 cf_save_CFLAGS="$CFLAGS"
3069 cf_save_CPPFLAGS="$CPPFLAGS"
3070
3071 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3072         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
3073                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
3074
3075 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3076         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
3077                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
3078
3079 echo "$as_me:3079: checking if we should define _POSIX_C_SOURCE" >&5
3080 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3081 if test "${cf_cv_posix_c_source+set}" = set; then
3082   echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084
3085 echo "${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>
3091 int
3092 main ()
3093 {
3094
3095 #ifndef _POSIX_C_SOURCE
3096 make an error
3097 #endif
3098   ;
3099   return 0;
3100 }
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (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
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
3118 cf_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>
3136 int
3137 main ()
3138 {
3139
3140 #ifdef _POSIX_SOURCE
3141 make an error
3142 #endif
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (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   :
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3163 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3164 fi
3165 rm -f conftest.$ac_objext conftest.$ac_ext
3166          fi
3167
3168 echo "${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
3173 echo "${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>
3179 int
3180 main ()
3181 {
3182
3183 #ifndef _POSIX_C_SOURCE
3184 make an error
3185 #endif
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (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   :
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 cf_cv_posix_c_source=no
3207 fi
3208 rm -f conftest.$ac_objext conftest.$ac_ext
3209          CFLAGS="$cf_save_CFLAGS"
3210          CPPFLAGS="$cf_save_CPPFLAGS"
3211
3212 fi
3213 rm -f conftest.$ac_objext conftest.$ac_ext
3214
3215 fi
3216 echo "$as_me:3216: result: $cf_cv_posix_c_source" >&5
3217 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3218
3219 if test "$cf_cv_posix_c_source" != no ; then
3220         CFLAGS="$cf_trim_CFLAGS"
3221         CPPFLAGS="$cf_trim_CPPFLAGS"
3222
3223 cf_fix_cppflags=no
3224 cf_new_cflags=
3225 cf_new_cppflags=
3226 cf_new_extra_cppflags=
3227
3228 for cf_add_cflags in $cf_cv_posix_c_source
3229 do
3230 case $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
3259 CPPFLAGS=`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         ;;
3283 esac
3284 done
3285
3286 if test -n "$cf_new_cflags" ; then
3287
3288         CFLAGS="$CFLAGS $cf_new_cflags"
3289 fi
3290
3291 if test -n "$cf_new_cppflags" ; then
3292
3293         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3294 fi
3295
3296 if test -n "$cf_new_extra_cppflags" ; then
3297
3298         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3299 fi
3300
3301 fi
3302
3303         ;;
3304 esac
3305
3306 if test -n "$cf_xopen_source" ; then
3307
3308 cf_fix_cppflags=no
3309 cf_new_cflags=
3310 cf_new_cppflags=
3311 cf_new_extra_cppflags=
3312
3313 for cf_add_cflags in $cf_xopen_source
3314 do
3315 case $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
3344 CPPFLAGS=`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         ;;
3368 esac
3369 done
3370
3371 if test -n "$cf_new_cflags" ; then
3372         test -n "$verbose" && echo "    add to \$CFLAGS $cf_new_cflags" 1>&6
3373
3374 echo "${as_me:-configure}:3374: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3375
3376         CFLAGS="$CFLAGS $cf_new_cflags"
3377 fi
3378
3379 if test -n "$cf_new_cppflags" ; then
3380         test -n "$verbose" && echo "    add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3381
3382 echo "${as_me:-configure}:3382: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3383
3384         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3385 fi
3386
3387 if test -n "$cf_new_extra_cppflags" ; then
3388         test -n "$verbose" && echo "    add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3389
3390 echo "${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"
3393 fi
3394
3395 fi
3396
3397 if 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
3399 echo $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>
3404 int
3405 main ()
3406 {
3407
3408 #ifndef _XOPEN_SOURCE
3409 make an error
3410 #endif
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext
3416 if { (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
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 cat conftest.$ac_ext >&5
3431 cf_XOPEN_SOURCE_set=no
3432 fi
3433 rm -f conftest.$ac_objext conftest.$ac_ext
3434         echo "$as_me:3434: result: $cf_XOPEN_SOURCE_set" >&5
3435 echo "${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>
3442 int
3443 main ()
3444 {
3445
3446 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3447 make an error
3448 #endif
3449   ;
3450   return 0;
3451 }
3452 _ACEOF
3453 rm -f conftest.$ac_objext
3454 if { (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
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3469 cf_XOPEN_SOURCE_set_ok=no
3470 fi
3471 rm -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
3475 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3476                 fi
3477         else
3478
3479 echo "$as_me:3479: checking if we should define _XOPEN_SOURCE" >&5
3480 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3481 if test "${cf_cv_xopen_source+set}" = set; then
3482   echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
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
3493 int
3494 main ()
3495 {
3496
3497 #ifndef _XOPEN_SOURCE
3498 make an error
3499 #endif
3500   ;
3501   return 0;
3502 }
3503 _ACEOF
3504 rm -f conftest.$ac_objext
3505 if { (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
3517 else
3518   echo "$as_me: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 cf_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
3530 int
3531 main ()
3532 {
3533
3534 #ifdef _XOPEN_SOURCE
3535 make an error
3536 #endif
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (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
3554 else
3555   echo "$as_me: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3557 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3558 fi
3559 rm -f conftest.$ac_objext conftest.$ac_ext
3560         CPPFLAGS="$cf_save"
3561
3562 fi
3563 rm -f conftest.$ac_objext conftest.$ac_ext
3564
3565 fi
3566 echo "$as_me:3566: result: $cf_cv_xopen_source" >&5
3567 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3568
3569 if test "$cf_cv_xopen_source" != no ; then
3570
3571 CFLAGS=`echo "$CFLAGS" | \
3572         sed     -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?[         ]/ /g' \
3573                 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?$//g'`
3574
3575 CPPFLAGS=`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
3581 cf_fix_cppflags=no
3582 cf_new_cflags=
3583 cf_new_cppflags=
3584 cf_new_extra_cppflags=
3585
3586 for cf_add_cflags in $cf_temp_xopen_source
3587 do
3588 case $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
3617 CPPFLAGS=`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         ;;
3641 esac
3642 done
3643
3644 if test -n "$cf_new_cflags" ; then
3645
3646         CFLAGS="$CFLAGS $cf_new_cflags"
3647 fi
3648
3649 if test -n "$cf_new_cppflags" ; then
3650
3651         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3652 fi
3653
3654 if test -n "$cf_new_extra_cppflags" ; then
3655
3656         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3657 fi
3658
3659 fi
3660
3661         fi
3662 fi
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 ac_main_return=return
3670 echo "$as_me:3670: checking how to run the C preprocessor" >&5
3671 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3672 # On Suns, sometimes $CPP names a directory.
3673 if test -n "$CPP" && test -d "$CPP"; then
3674   CPP=
3675 fi
3676 if test -z "$CPP"; then
3677   if test "${ac_cv_prog_CPP+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
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
3684 for ac_c_preproc_warn_flag in '' yes
3685 do
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
3696 if { (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
3709 else
3710   ac_cpp_err=yes
3711 fi
3712 if test -z "$ac_cpp_err"; then
3713   :
3714 else
3715   echo "$as_me: failed program was:" >&5
3716   cat conftest.$ac_ext >&5
3717   # Broken: fails on valid input.
3718 continue
3719 fi
3720 rm -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
3729 if { (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
3742 else
3743   ac_cpp_err=yes
3744 fi
3745 if test -z "$ac_cpp_err"; then
3746   # Broken: success on invalid input.
3747 continue
3748 else
3749   echo "$as_me: failed program was:" >&5
3750   cat conftest.$ac_ext >&5
3751   # Passes both tests.
3752 ac_preproc_ok=:
3753 break
3754 fi
3755 rm -f conftest.err conftest.$ac_ext
3756
3757 done
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok; then
3761   break
3762 fi
3763
3764     done
3765     ac_cv_prog_CPP=$CPP
3766
3767 fi
3768   CPP=$ac_cv_prog_CPP
3769 else
3770   ac_cv_prog_CPP=$CPP
3771 fi
3772 echo "$as_me:3772: result: $CPP" >&5
3773 echo "${ECHO_T}$CPP" >&6
3774 ac_preproc_ok=false
3775 for ac_c_preproc_warn_flag in '' yes
3776 do
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
3787 if { (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
3800 else
3801   ac_cpp_err=yes
3802 fi
3803 if test -z "$ac_cpp_err"; then
3804   :
3805 else
3806   echo "$as_me: failed program was:" >&5
3807   cat conftest.$ac_ext >&5
3808   # Broken: fails on valid input.
3809 continue
3810 fi
3811 rm -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
3820 if { (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
3833 else
3834   ac_cpp_err=yes
3835 fi
3836 if test -z "$ac_cpp_err"; then
3837   # Broken: success on invalid input.
3838 continue
3839 else
3840   echo "$as_me: failed program was:" >&5
3841   cat conftest.$ac_ext >&5
3842   # Passes both tests.
3843 ac_preproc_ok=:
3844 break
3845 fi
3846 rm -f conftest.err conftest.$ac_ext
3847
3848 done
3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3850 rm -f conftest.err conftest.$ac_ext
3851 if $ac_preproc_ok; then
3852   :
3853 else
3854   { { echo "$as_me:3854: error: C preprocessor \"$CPP\" fails sanity check" >&5
3855 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3856    { (exit 1); exit 1; }; }
3857 fi
3858
3859 ac_ext=c
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864 ac_main_return=return
3865
3866 for ac_header in fcntl.h
3867 do
3868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3869 echo "$as_me:3869: checking for $ac_header" >&5
3870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   cat >conftest.$ac_ext <<_ACEOF
3875 #line 3875 "configure"
3876 #include "confdefs.h"
3877 #include <$ac_header>
3878 _ACEOF
3879 if { (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
3892 else
3893   ac_cpp_err=yes
3894 fi
3895 if test -z "$ac_cpp_err"; then
3896   eval "$as_ac_Header=yes"
3897 else
3898   echo "$as_me: failed program was:" >&5
3899   cat conftest.$ac_ext >&5
3900   eval "$as_ac_Header=no"
3901 fi
3902 rm -f conftest.err conftest.$ac_ext
3903 fi
3904 echo "$as_me:3904: result: `eval echo '${'$as_ac_Header'}'`" >&5
3905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3907   cat >>confdefs.h <<EOF
3908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3909 EOF
3910
3911 fi
3912 done
3913
3914 echo "$as_me:3914: checking for working mkstemp" >&5
3915 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
3916 if test "${cf_cv_func_mkstemp+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919
3920 rm -rf conftest*
3921 if test "$cross_compiling" = yes; then
3922   cf_cv_func_mkstemp=maybe
3923 else
3924   cat >conftest.$ac_ext <<_ACEOF
3925 #line 3925 "configure"
3926 #include "confdefs.h"
3927
3928 #include <sys/types.h>
3929 #include <stdlib.h>
3930 #include <stdio.h>
3931 #include <string.h>
3932 #include <sys/stat.h>
3933 int main()
3934 {
3935         char *tmpl = "conftestXXXXXX";
3936         char name[2][80];
3937         int n;
3938         int result = 0;
3939         int fd;
3940         struct stat sb;
3941
3942         umask(077);
3943         for (n = 0; n < 2; ++n) {
3944                 strcpy(name[n], tmpl);
3945                 if ((fd = mkstemp(name[n])) >= 0) {
3946                         if (!strcmp(name[n], tmpl)
3947                          || stat(name[n], &sb) != 0
3948                          || (sb.st_mode & S_IFMT) != S_IFREG
3949                          || (sb.st_mode & 077) != 0) {
3950                                 result = 1;
3951                         }
3952                         close(fd);
3953                 }
3954         }
3955         if (result == 0
3956          && !strcmp(name[0], name[1]))
3957                 result = 1;
3958         ${cf_cv_main_return:-return}(result);
3959 }
3960
3961 _ACEOF
3962 rm -f conftest$ac_exeext
3963 if { (eval echo "$as_me:3963: \"$ac_link\"") >&5
3964   (eval $ac_link) 2>&5
3965   ac_status=$?
3966   echo "$as_me:3966: \$? = $ac_status" >&5
3967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3968   { (eval echo "$as_me:3968: \"$ac_try\"") >&5
3969   (eval $ac_try) 2>&5
3970   ac_status=$?
3971   echo "$as_me:3971: \$? = $ac_status" >&5
3972   (exit $ac_status); }; }; then
3973   cf_cv_func_mkstemp=yes
3974
3975 else
3976   echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3979 cf_cv_func_mkstemp=no
3980
3981 fi
3982 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3983 fi
3984
3985 fi
3986 echo "$as_me:3986: result: $cf_cv_func_mkstemp" >&5
3987 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
3988 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
3989         echo "$as_me:3989: checking for mkstemp" >&5
3990 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
3991 if test "${ac_cv_func_mkstemp+set}" = set; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   cat >conftest.$ac_ext <<_ACEOF
3995 #line 3995 "configure"
3996 #include "confdefs.h"
3997 /* System header to define __stub macros and hopefully few prototypes,
3998     which can conflict with char mkstemp (); below.  */
3999 #include <assert.h>
4000 /* Override any gcc2 internal prototype to avoid an error.  */
4001 #ifdef __cplusplus
4002 extern "C"
4003 #endif
4004 /* We use char because int might match the return type of a gcc2
4005    builtin and then its argument prototype would still apply.  */
4006 char mkstemp ();
4007 char (*f) ();
4008
4009 int
4010 main ()
4011 {
4012 /* The GNU C library defines this for functions which it implements
4013     to always fail with ENOSYS.  Some functions are actually named
4014     something starting with __ and the normal name is an alias.  */
4015 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
4016 choke me
4017 #else
4018 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4019 #endif
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 rm -f conftest.$ac_objext conftest$ac_exeext
4026 if { (eval echo "$as_me:4026: \"$ac_link\"") >&5
4027   (eval $ac_link) 2>&5
4028   ac_status=$?
4029   echo "$as_me:4029: \$? = $ac_status" >&5
4030   (exit $ac_status); } &&
4031          { ac_try='test -s conftest$ac_exeext'
4032   { (eval echo "$as_me:4032: \"$ac_try\"") >&5
4033   (eval $ac_try) 2>&5
4034   ac_status=$?
4035   echo "$as_me:4035: \$? = $ac_status" >&5
4036   (exit $ac_status); }; }; then
4037   ac_cv_func_mkstemp=yes
4038 else
4039   echo "$as_me: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4041 ac_cv_func_mkstemp=no
4042 fi
4043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4044 fi
4045 echo "$as_me:4045: result: $ac_cv_func_mkstemp" >&5
4046 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
4047
4048 fi
4049 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
4050
4051 cat >>confdefs.h <<\EOF
4052 #define HAVE_MKSTEMP 1
4053 EOF
4054
4055 fi
4056
4057 for ac_func in vsnprintf
4058 do
4059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4060 echo "$as_me:4060: checking for $ac_func" >&5
4061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4062 if eval "test \"\${$as_ac_var+set}\" = set"; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   cat >conftest.$ac_ext <<_ACEOF
4066 #line 4066 "configure"
4067 #include "confdefs.h"
4068 /* System header to define __stub macros and hopefully few prototypes,
4069     which can conflict with char $ac_func (); below.  */
4070 #include <assert.h>
4071 /* Override any gcc2 internal prototype to avoid an error.  */
4072 #ifdef __cplusplus
4073 extern "C"
4074 #endif
4075 /* We use char because int might match the return type of a gcc2
4076    builtin and then its argument prototype would still apply.  */
4077 char $ac_func ();
4078 char (*f) ();
4079
4080 int
4081 main ()
4082 {
4083 /* The GNU C library defines this for functions which it implements
4084     to always fail with ENOSYS.  Some functions are actually named
4085     something starting with __ and the normal name is an alias.  */
4086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4087 choke me
4088 #else
4089 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4090 #endif
4091
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 rm -f conftest.$ac_objext conftest$ac_exeext
4097 if { (eval echo "$as_me:4097: \"$ac_link\"") >&5
4098   (eval $ac_link) 2>&5
4099   ac_status=$?
4100   echo "$as_me:4100: \$? = $ac_status" >&5
4101   (exit $ac_status); } &&
4102          { ac_try='test -s conftest$ac_exeext'
4103   { (eval echo "$as_me:4103: \"$ac_try\"") >&5
4104   (eval $ac_try) 2>&5
4105   ac_status=$?
4106   echo "$as_me:4106: \$? = $ac_status" >&5
4107   (exit $ac_status); }; }; then
4108   eval "$as_ac_var=yes"
4109 else
4110   echo "$as_me: failed program was:" >&5
4111 cat conftest.$ac_ext >&5
4112 eval "$as_ac_var=no"
4113 fi
4114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4115 fi
4116 echo "$as_me:4116: result: `eval echo '${'$as_ac_var'}'`" >&5
4117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4118 if test `eval echo '${'$as_ac_var'}'` = yes; then
4119   cat >>confdefs.h <<EOF
4120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4121 EOF
4122
4123 fi
4124 done
4125
4126 echo "$as_me:4126: checking for maximum table size" >&5
4127 echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
4128
4129 # Check whether --with-max-table-size or --without-max-table-size was given.
4130 if test "${with_max_table_size+set}" = set; then
4131   withval="$with_max_table_size"
4132
4133 fi;
4134 if test -n "$with_max_table_size"
4135 then
4136         echo "$as_me:4136: result: $with_max_table_size" >&5
4137 echo "${ECHO_T}$with_max_table_size" >&6
4138         check=`expr "$with_max_table_size" + 0`
4139         if test "x$check" != "x$with_max_table_size"
4140         then
4141                 { { echo "$as_me:4141: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
4142 echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
4143    { (exit 1); exit 1; }; }
4144         fi
4145
4146 cat >>confdefs.h <<EOF
4147 #define MAXTABLE $with_max_table_size
4148 EOF
4149
4150 else
4151         echo "$as_me:4151: result: default" >&5
4152 echo "${ECHO_T}default" >&6
4153 fi
4154
4155 echo "$as_me:4155: checking if backtracking extension is wanted" >&5
4156 echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
4157
4158 # Check whether --enable-btyacc or --disable-btyacc was given.
4159 if test "${enable_btyacc+set}" = set; then
4160   enableval="$enable_btyacc"
4161
4162 fi;
4163 echo "$as_me:4163: result: $enable_btyacc" >&5
4164 echo "${ECHO_T}$enable_btyacc" >&6
4165 if test "$enable_btyacc" = "yes"; then
4166
4167 cat >>confdefs.h <<\EOF
4168 #define YYBTYACC 1
4169 EOF
4170
4171         SKELETON=btyaccpar
4172 else
4173         SKELETON=yaccpar
4174 fi
4175
4176 if ( test "$GCC" = yes || test "$GXX" = yes )
4177 then
4178 echo "$as_me:4178: checking if you want to check for gcc warnings" >&5
4179 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
4180
4181 # Check whether --with-warnings or --without-warnings was given.
4182 if test "${with_warnings+set}" = set; then
4183   withval="$with_warnings"
4184   cf_opt_with_warnings=$withval
4185 else
4186   cf_opt_with_warnings=no
4187 fi;
4188 echo "$as_me:4188: result: $cf_opt_with_warnings" >&5
4189 echo "${ECHO_T}$cf_opt_with_warnings" >&6
4190 if test "$cf_opt_with_warnings" != no ; then
4191
4192 if test "$GCC" = yes
4193 then
4194 cat > conftest.i <<EOF
4195 #ifndef GCC_PRINTF
4196 #define GCC_PRINTF 0
4197 #endif
4198 #ifndef GCC_SCANF
4199 #define GCC_SCANF 0
4200 #endif
4201 #ifndef GCC_NORETURN
4202 #define GCC_NORETURN /* nothing */
4203 #endif
4204 #ifndef GCC_UNUSED
4205 #define GCC_UNUSED /* nothing */
4206 #endif
4207 EOF
4208 if test "$GCC" = yes
4209 then
4210         { echo "$as_me:4210: checking for $CC __attribute__ directives..." >&5
4211 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4213 "${as_me:-configure}"
4214 #include "confdefs.h"
4215 #include "conftest.h"
4216 #include "conftest.i"
4217 #if     GCC_PRINTF
4218 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4219 #else
4220 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4221 #endif
4222 #if     GCC_SCANF
4223 #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
4224 #else
4225 #define GCC_SCANFLIKE(fmt,var)  /*nothing*/
4226 #endif
4227 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4228 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4229 extern void foo(void) GCC_NORETURN;
4230 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4231 EOF
4232         cf_printf_attribute=no
4233         cf_scanf_attribute=no
4234         for cf_attribute in scanf printf unused noreturn
4235         do
4236
4237 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4238
4239                 cf_directive="__attribute__(($cf_attribute))"
4240                 echo "checking for $CC $cf_directive" 1>&5
4241
4242                 case $cf_attribute in
4243                 (printf)
4244                         cf_printf_attribute=yes
4245                         cat >conftest.h <<EOF
4246 #define GCC_$cf_ATTRIBUTE 1
4247 EOF
4248                         ;;
4249                 (scanf)
4250                         cf_scanf_attribute=yes
4251                         cat >conftest.h <<EOF
4252 #define GCC_$cf_ATTRIBUTE 1
4253 EOF
4254                         ;;
4255                 (*)
4256                         cat >conftest.h <<EOF
4257 #define GCC_$cf_ATTRIBUTE $cf_directive
4258 EOF
4259                         ;;
4260                 esac
4261
4262                 if { (eval echo "$as_me:4262: \"$ac_compile\"") >&5
4263   (eval $ac_compile) 2>&5
4264   ac_status=$?
4265   echo "$as_me:4265: \$? = $ac_status" >&5
4266   (exit $ac_status); }; then
4267                         test -n "$verbose" && echo "$as_me:4267: result: ... $cf_attribute" >&5
4268 echo "${ECHO_T}... $cf_attribute" >&6
4269                         cat conftest.h >>confdefs.h
4270                         case $cf_attribute in
4271                         (noreturn)
4272
4273 cat >>confdefs.h <<EOF
4274 #define GCC_NORETURN $cf_directive
4275 EOF
4276
4277                                 ;;
4278                         (printf)
4279                                 cf_value='/* nothing */'
4280                                 if test "$cf_printf_attribute" != no ; then
4281                                         cf_value='__attribute__((format(printf,fmt,var)))'
4282
4283 cat >>confdefs.h <<\EOF
4284 #define GCC_PRINTF 1
4285 EOF
4286
4287                                 fi
4288
4289 cat >>confdefs.h <<EOF
4290 #define GCC_PRINTFLIKE(fmt,var) $cf_value
4291 EOF
4292
4293                                 ;;
4294                         (scanf)
4295                                 cf_value='/* nothing */'
4296                                 if test "$cf_scanf_attribute" != no ; then
4297                                         cf_value='__attribute__((format(scanf,fmt,var)))'
4298
4299 cat >>confdefs.h <<\EOF
4300 #define GCC_SCANF 1
4301 EOF
4302
4303                                 fi
4304
4305 cat >>confdefs.h <<EOF
4306 #define GCC_SCANFLIKE(fmt,var) $cf_value
4307 EOF
4308
4309                                 ;;
4310                         (unused)
4311
4312 cat >>confdefs.h <<EOF
4313 #define GCC_UNUSED $cf_directive
4314 EOF
4315
4316                                 ;;
4317                         esac
4318                 fi
4319         done
4320 else
4321         fgrep define conftest.i >>confdefs.h
4322 fi
4323 rm -rf conftest*
4324 fi
4325
4326 INTEL_COMPILER=no
4327
4328 if test "$GCC" = yes ; then
4329         case $host_os in
4330         (linux*|gnu*)
4331                 echo "$as_me:4331: checking if this is really Intel C compiler" >&5
4332 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4333                 cf_save_CFLAGS="$CFLAGS"
4334                 CFLAGS="$CFLAGS -no-gcc"
4335                 cat >conftest.$ac_ext <<_ACEOF
4336 #line 4336 "configure"
4337 #include "confdefs.h"
4338
4339 int
4340 main ()
4341 {
4342
4343 #ifdef __INTEL_COMPILER
4344 #else
4345 make an error
4346 #endif
4347
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 rm -f conftest.$ac_objext
4353 if { (eval echo "$as_me:4353: \"$ac_compile\"") >&5
4354   (eval $ac_compile) 2>&5
4355   ac_status=$?
4356   echo "$as_me:4356: \$? = $ac_status" >&5
4357   (exit $ac_status); } &&
4358          { ac_try='test -s conftest.$ac_objext'
4359   { (eval echo "$as_me:4359: \"$ac_try\"") >&5
4360   (eval $ac_try) 2>&5
4361   ac_status=$?
4362   echo "$as_me:4362: \$? = $ac_status" >&5
4363   (exit $ac_status); }; }; then
4364   INTEL_COMPILER=yes
4365 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
4366
4367 else
4368   echo "$as_me: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4370 fi
4371 rm -f conftest.$ac_objext conftest.$ac_ext
4372                 CFLAGS="$cf_save_CFLAGS"
4373                 echo "$as_me:4373: result: $INTEL_COMPILER" >&5
4374 echo "${ECHO_T}$INTEL_COMPILER" >&6
4375                 ;;
4376         esac
4377 fi
4378
4379 CLANG_COMPILER=no
4380
4381 if test "$GCC" = yes ; then
4382         echo "$as_me:4382: checking if this is really Clang C compiler" >&5
4383 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
4384         cf_save_CFLAGS="$CFLAGS"
4385         CFLAGS="$CFLAGS -Qunused-arguments"
4386         cat >conftest.$ac_ext <<_ACEOF
4387 #line 4387 "configure"
4388 #include "confdefs.h"
4389
4390 int
4391 main ()
4392 {
4393
4394 #ifdef __clang__
4395 #else
4396 make an error
4397 #endif
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext
4404 if { (eval echo "$as_me:4404: \"$ac_compile\"") >&5
4405   (eval $ac_compile) 2>&5
4406   ac_status=$?
4407   echo "$as_me:4407: \$? = $ac_status" >&5
4408   (exit $ac_status); } &&
4409          { ac_try='test -s conftest.$ac_objext'
4410   { (eval echo "$as_me:4410: \"$ac_try\"") >&5
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   echo "$as_me:4413: \$? = $ac_status" >&5
4414   (exit $ac_status); }; }; then
4415   CLANG_COMPILER=yes
4416 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
4417
4418 else
4419   echo "$as_me: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4421 fi
4422 rm -f conftest.$ac_objext conftest.$ac_ext
4423         CFLAGS="$cf_save_CFLAGS"
4424         echo "$as_me:4424: result: $CLANG_COMPILER" >&5
4425 echo "${ECHO_T}$CLANG_COMPILER" >&6
4426 fi
4427
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4429 "${as_me:-configure}"
4430 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4431 EOF
4432
4433 if test "$INTEL_COMPILER" = yes
4434 then
4435 # The "-wdXXX" options suppress warnings:
4436 # remark #1419: external declaration in primary source file
4437 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4438 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4439 # remark #193: zero used for undefined preprocessing identifier
4440 # remark #593: variable "curs_sb_left_arrow" was set but never used
4441 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4442 # remark #869: parameter "tw" was never referenced
4443 # remark #981: operands are evaluated in unspecified order
4444 # warning #279: controlling expression is constant
4445
4446         { echo "$as_me:4446: checking for $CC warning options..." >&5
4447 echo "$as_me: checking for $CC warning options..." >&6;}
4448         cf_save_CFLAGS="$CFLAGS"
4449         EXTRA_CFLAGS="-Wall"
4450         for cf_opt in \
4451                 wd1419 \
4452                 wd1683 \
4453                 wd1684 \
4454                 wd193 \
4455                 wd593 \
4456                 wd279 \
4457                 wd810 \
4458                 wd869 \
4459                 wd981
4460         do
4461                 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4462                 if { (eval echo "$as_me:4462: \"$ac_compile\"") >&5
4463   (eval $ac_compile) 2>&5
4464   ac_status=$?
4465   echo "$as_me:4465: \$? = $ac_status" >&5
4466   (exit $ac_status); }; then
4467                         test -n "$verbose" && echo "$as_me:4467: result: ... -$cf_opt" >&5
4468 echo "${ECHO_T}... -$cf_opt" >&6
4469                         EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4470                 fi
4471         done
4472         CFLAGS="$cf_save_CFLAGS"
4473
4474 elif test "$GCC" = yes
4475 then
4476         { echo "$as_me:4476: checking for $CC warning options..." >&5
4477 echo "$as_me: checking for $CC warning options..." >&6;}
4478         cf_save_CFLAGS="$CFLAGS"
4479         EXTRA_CFLAGS=
4480         cf_warn_CONST=""
4481         test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4482         cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
4483         test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
4484         for cf_opt in W Wall \
4485                 Wbad-function-cast \
4486                 Wcast-align \
4487                 Wcast-qual \
4488                 Wdeclaration-after-statement \
4489                 Wextra \
4490                 Winline \
4491                 Wmissing-declarations \
4492                 Wmissing-prototypes \
4493                 Wnested-externs \
4494                 Wpointer-arith \
4495                 Wshadow \
4496                 Wstrict-prototypes \
4497                 Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
4498         do
4499                 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4500                 if { (eval echo "$as_me:4500: \"$ac_compile\"") >&5
4501   (eval $ac_compile) 2>&5
4502   ac_status=$?
4503   echo "$as_me:4503: \$? = $ac_status" >&5
4504   (exit $ac_status); }; then
4505                         test -n "$verbose" && echo "$as_me:4505: result: ... -$cf_opt" >&5
4506 echo "${ECHO_T}... -$cf_opt" >&6
4507                         case $cf_opt in
4508                         (Wcast-qual)
4509                                 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4510                                 ;;
4511                         (Winline)
4512                                 case $GCC_VERSION in
4513                                 ([34].*)
4514                                         test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
4515
4516 echo "${as_me:-configure}:4516: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4517
4518                                         continue;;
4519                                 esac
4520                                 ;;
4521                         (Wpointer-arith)
4522                                 case $GCC_VERSION in
4523                                 ([12].*)
4524                                         test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
4525
4526 echo "${as_me:-configure}:4526: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4527
4528                                         continue;;
4529                                 esac
4530                                 ;;
4531                         esac
4532                         EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4533                 fi
4534         done
4535         CFLAGS="$cf_save_CFLAGS"
4536 fi
4537 rm -rf conftest*
4538
4539 fi
4540 fi
4541
4542 echo "$as_me:4542: checking if you want to see long compiling messages" >&5
4543 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4544
4545 # Check whether --enable-echo or --disable-echo was given.
4546 if test "${enable_echo+set}" = set; then
4547   enableval="$enable_echo"
4548   test "$enableval" != no && enableval=yes
4549         if test "$enableval" != "yes" ; then
4550
4551         ECHO_LT='--silent'
4552         ECHO_LD='@echo linking $@;'
4553         RULE_CC='@echo compiling $<'
4554         SHOW_CC='@echo compiling $@'
4555         ECHO_CC='@'
4556
4557         else
4558
4559         ECHO_LT=''
4560         ECHO_LD=''
4561         RULE_CC=''
4562         SHOW_CC=''
4563         ECHO_CC=''
4564
4565         fi
4566 else
4567   enableval=yes
4568
4569         ECHO_LT=''
4570         ECHO_LD=''
4571         RULE_CC=''
4572         SHOW_CC=''
4573         ECHO_CC=''
4574
4575 fi;
4576 echo "$as_me:4576: result: $enableval" >&5
4577 echo "${ECHO_T}$enableval" >&6
4578
4579 echo "$as_me:4579: checking if you want to use dmalloc for testing" >&5
4580 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4581
4582 # Check whether --with-dmalloc or --without-dmalloc was given.
4583 if test "${with_dmalloc+set}" = set; then
4584   withval="$with_dmalloc"
4585
4586 cat >>confdefs.h <<EOF
4587 #define USE_DMALLOC 1
4588 EOF
4589
4590         : ${with_cflags:=-g}
4591         : ${with_no_leaks:=yes}
4592          with_dmalloc=yes
4593 else
4594   with_dmalloc=
4595 fi;
4596 echo "$as_me:4596: result: ${with_dmalloc:-no}" >&5
4597 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4598
4599 case .$with_cflags in
4600 (.*-g*)
4601         case .$CFLAGS in
4602         (.*-g*)
4603                 ;;
4604         (*)
4605
4606 cf_fix_cppflags=no
4607 cf_new_cflags=
4608 cf_new_cppflags=
4609 cf_new_extra_cppflags=
4610
4611 for cf_add_cflags in -g
4612 do
4613 case $cf_fix_cppflags in
4614 (no)
4615         case $cf_add_cflags in
4616         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4617                 case $cf_add_cflags in
4618                 (-D*)
4619                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4620
4621                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4622                                 && test -z "${cf_tst_cflags}" \
4623                                 && cf_fix_cppflags=yes
4624
4625                         if test $cf_fix_cppflags = yes ; then
4626                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4627                                 continue
4628                         elif test "${cf_tst_cflags}" = "\"'" ; then
4629                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4630                                 continue
4631                         fi
4632                         ;;
4633                 esac
4634                 case "$CPPFLAGS" in
4635                 (*$cf_add_cflags)
4636                         ;;
4637                 (*)
4638                         case $cf_add_cflags in
4639                         (-D*)
4640                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4641
4642 CPPFLAGS=`echo "$CPPFLAGS" | \
4643         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
4644                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
4645
4646                                 ;;
4647                         esac
4648                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4649                         ;;
4650                 esac
4651                 ;;
4652         (*)
4653                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4654                 ;;
4655         esac
4656         ;;
4657 (yes)
4658         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4659
4660         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4661
4662         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4663                 && test -z "${cf_tst_cflags}" \
4664                 && cf_fix_cppflags=no
4665         ;;
4666 esac
4667 done
4668
4669 if test -n "$cf_new_cflags" ; then
4670
4671         CFLAGS="$CFLAGS $cf_new_cflags"
4672 fi
4673
4674 if test -n "$cf_new_cppflags" ; then
4675
4676         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4677 fi
4678
4679 if test -n "$cf_new_extra_cppflags" ; then
4680
4681         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4682 fi
4683
4684                 ;;
4685         esac
4686         ;;
4687 esac
4688
4689 if test "$with_dmalloc" = yes ; then
4690         echo "$as_me:4690: checking for dmalloc.h" >&5
4691 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4692 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   cat >conftest.$ac_ext <<_ACEOF
4696 #line 4696 "configure"
4697 #include "confdefs.h"
4698 #include <dmalloc.h>
4699 _ACEOF
4700 if { (eval echo "$as_me:4700: \"$ac_cpp conftest.$ac_ext\"") >&5
4701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4702   ac_status=$?
4703   egrep -v '^ *\+' conftest.er1 >conftest.err
4704   rm -f conftest.er1
4705   cat conftest.err >&5
4706   echo "$as_me:4706: \$? = $ac_status" >&5
4707   (exit $ac_status); } >/dev/null; then
4708   if test -s conftest.err; then
4709     ac_cpp_err=$ac_c_preproc_warn_flag
4710   else
4711     ac_cpp_err=
4712   fi
4713 else
4714   ac_cpp_err=yes
4715 fi
4716 if test -z "$ac_cpp_err"; then
4717   ac_cv_header_dmalloc_h=yes
4718 else
4719   echo "$as_me: failed program was:" >&5
4720   cat conftest.$ac_ext >&5
4721   ac_cv_header_dmalloc_h=no
4722 fi
4723 rm -f conftest.err conftest.$ac_ext
4724 fi
4725 echo "$as_me:4725: result: $ac_cv_header_dmalloc_h" >&5
4726 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4727 if test $ac_cv_header_dmalloc_h = yes; then
4728
4729 echo "$as_me:4729: checking for dmalloc_debug in -ldmalloc" >&5
4730 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4731 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4732   echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734   ac_check_lib_save_LIBS=$LIBS
4735 LIBS="-ldmalloc  $LIBS"
4736 cat >conftest.$ac_ext <<_ACEOF
4737 #line 4737 "configure"
4738 #include "confdefs.h"
4739
4740 /* Override any gcc2 internal prototype to avoid an error.  */
4741 #ifdef __cplusplus
4742 extern "C"
4743 #endif
4744 /* We use char because int might match the return type of a gcc2
4745    builtin and then its argument prototype would still apply.  */
4746 char dmalloc_debug ();
4747 int
4748 main ()
4749 {
4750 dmalloc_debug ();
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (eval echo "$as_me:4756: \"$ac_link\"") >&5
4757   (eval $ac_link) 2>&5
4758   ac_status=$?
4759   echo "$as_me:4759: \$? = $ac_status" >&5
4760   (exit $ac_status); } &&
4761          { ac_try='test -s conftest$ac_exeext'
4762   { (eval echo "$as_me:4762: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:4765: \$? = $ac_status" >&5
4766   (exit $ac_status); }; }; then
4767   ac_cv_lib_dmalloc_dmalloc_debug=yes
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 cat conftest.$ac_ext >&5
4771 ac_cv_lib_dmalloc_dmalloc_debug=no
4772 fi
4773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4774 LIBS=$ac_check_lib_save_LIBS
4775 fi
4776 echo "$as_me:4776: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4777 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4778 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4779   cat >>confdefs.h <<EOF
4780 #define HAVE_LIBDMALLOC 1
4781 EOF
4782
4783   LIBS="-ldmalloc $LIBS"
4784
4785 fi
4786
4787 fi
4788
4789 fi
4790
4791 echo "$as_me:4791: checking if you want to use dbmalloc for testing" >&5
4792 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4793
4794 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4795 if test "${with_dbmalloc+set}" = set; then
4796   withval="$with_dbmalloc"
4797
4798 cat >>confdefs.h <<EOF
4799 #define USE_DBMALLOC 1
4800 EOF
4801
4802         : ${with_cflags:=-g}
4803         : ${with_no_leaks:=yes}
4804          with_dbmalloc=yes
4805 else
4806   with_dbmalloc=
4807 fi;
4808 echo "$as_me:4808: result: ${with_dbmalloc:-no}" >&5
4809 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4810
4811 case .$with_cflags in
4812 (.*-g*)
4813         case .$CFLAGS in
4814         (.*-g*)
4815                 ;;
4816         (*)
4817
4818 cf_fix_cppflags=no
4819 cf_new_cflags=
4820 cf_new_cppflags=
4821 cf_new_extra_cppflags=
4822
4823 for cf_add_cflags in -g
4824 do
4825 case $cf_fix_cppflags in
4826 (no)
4827         case $cf_add_cflags in
4828         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4829                 case $cf_add_cflags in
4830                 (-D*)
4831                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4832
4833                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4834                                 && test -z "${cf_tst_cflags}" \
4835                                 && cf_fix_cppflags=yes
4836
4837                         if test $cf_fix_cppflags = yes ; then
4838                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4839                                 continue
4840                         elif test "${cf_tst_cflags}" = "\"'" ; then
4841                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4842                                 continue
4843                         fi
4844                         ;;
4845                 esac
4846                 case "$CPPFLAGS" in
4847                 (*$cf_add_cflags)
4848                         ;;
4849                 (*)
4850                         case $cf_add_cflags in
4851                         (-D*)
4852                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4853
4854 CPPFLAGS=`echo "$CPPFLAGS" | \
4855         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
4856                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
4857
4858                                 ;;
4859                         esac
4860                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4861                         ;;
4862                 esac
4863                 ;;
4864         (*)
4865                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4866                 ;;
4867         esac
4868         ;;
4869 (yes)
4870         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4871
4872         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4873
4874         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4875                 && test -z "${cf_tst_cflags}" \
4876                 && cf_fix_cppflags=no
4877         ;;
4878 esac
4879 done
4880
4881 if test -n "$cf_new_cflags" ; then
4882
4883         CFLAGS="$CFLAGS $cf_new_cflags"
4884 fi
4885
4886 if test -n "$cf_new_cppflags" ; then
4887
4888         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4889 fi
4890
4891 if test -n "$cf_new_extra_cppflags" ; then
4892
4893         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4894 fi
4895
4896                 ;;
4897         esac
4898         ;;
4899 esac
4900
4901 if test "$with_dbmalloc" = yes ; then
4902         echo "$as_me:4902: checking for dbmalloc.h" >&5
4903 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4904 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   cat >conftest.$ac_ext <<_ACEOF
4908 #line 4908 "configure"
4909 #include "confdefs.h"
4910 #include <dbmalloc.h>
4911 _ACEOF
4912 if { (eval echo "$as_me:4912: \"$ac_cpp conftest.$ac_ext\"") >&5
4913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4914   ac_status=$?
4915   egrep -v '^ *\+' conftest.er1 >conftest.err
4916   rm -f conftest.er1
4917   cat conftest.err >&5
4918   echo "$as_me:4918: \$? = $ac_status" >&5
4919   (exit $ac_status); } >/dev/null; then
4920   if test -s conftest.err; then
4921     ac_cpp_err=$ac_c_preproc_warn_flag
4922   else
4923     ac_cpp_err=
4924   fi
4925 else
4926   ac_cpp_err=yes
4927 fi
4928 if test -z "$ac_cpp_err"; then
4929   ac_cv_header_dbmalloc_h=yes
4930 else
4931   echo "$as_me: failed program was:" >&5
4932   cat conftest.$ac_ext >&5
4933   ac_cv_header_dbmalloc_h=no
4934 fi
4935 rm -f conftest.err conftest.$ac_ext
4936 fi
4937 echo "$as_me:4937: result: $ac_cv_header_dbmalloc_h" >&5
4938 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4939 if test $ac_cv_header_dbmalloc_h = yes; then
4940
4941 echo "$as_me:4941: checking for debug_malloc in -ldbmalloc" >&5
4942 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4943 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   ac_check_lib_save_LIBS=$LIBS
4947 LIBS="-ldbmalloc  $LIBS"
4948 cat >conftest.$ac_ext <<_ACEOF
4949 #line 4949 "configure"
4950 #include "confdefs.h"
4951
4952 /* Override any gcc2 internal prototype to avoid an error.  */
4953 #ifdef __cplusplus
4954 extern "C"
4955 #endif
4956 /* We use char because int might match the return type of a gcc2
4957    builtin and then its argument prototype would still apply.  */
4958 char debug_malloc ();
4959 int
4960 main ()
4961 {
4962 debug_malloc ();
4963   ;
4964   return 0;
4965 }
4966 _ACEOF
4967 rm -f conftest.$ac_objext conftest$ac_exeext
4968 if { (eval echo "$as_me:4968: \"$ac_link\"") >&5
4969   (eval $ac_link) 2>&5
4970   ac_status=$?
4971   echo "$as_me:4971: \$? = $ac_status" >&5
4972   (exit $ac_status); } &&
4973          { ac_try='test -s conftest$ac_exeext'
4974   { (eval echo "$as_me:4974: \"$ac_try\"") >&5
4975   (eval $ac_try) 2>&5
4976   ac_status=$?
4977   echo "$as_me:4977: \$? = $ac_status" >&5
4978   (exit $ac_status); }; }; then
4979   ac_cv_lib_dbmalloc_debug_malloc=yes
4980 else
4981   echo "$as_me: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4983 ac_cv_lib_dbmalloc_debug_malloc=no
4984 fi
4985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4986 LIBS=$ac_check_lib_save_LIBS
4987 fi
4988 echo "$as_me:4988: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4989 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4990 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4991   cat >>confdefs.h <<EOF
4992 #define HAVE_LIBDBMALLOC 1
4993 EOF
4994
4995   LIBS="-ldbmalloc $LIBS"
4996
4997 fi
4998
4999 fi
5000
5001 fi
5002
5003 echo "$as_me:5003: checking if you want to use valgrind for testing" >&5
5004 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
5005
5006 # Check whether --with-valgrind or --without-valgrind was given.
5007 if test "${with_valgrind+set}" = set; then
5008   withval="$with_valgrind"
5009
5010 cat >>confdefs.h <<EOF
5011 #define USE_VALGRIND 1
5012 EOF
5013
5014         : ${with_cflags:=-g}
5015         : ${with_no_leaks:=yes}
5016          with_valgrind=yes
5017 else
5018   with_valgrind=
5019 fi;
5020 echo "$as_me:5020: result: ${with_valgrind:-no}" >&5
5021 echo "${ECHO_T}${with_valgrind:-no}" >&6
5022
5023 case .$with_cflags in
5024 (.*-g*)
5025         case .$CFLAGS in
5026         (.*-g*)
5027                 ;;
5028         (*)
5029
5030 cf_fix_cppflags=no
5031 cf_new_cflags=
5032 cf_new_cppflags=
5033 cf_new_extra_cppflags=
5034
5035 for cf_add_cflags in -g
5036 do
5037 case $cf_fix_cppflags in
5038 (no)
5039         case $cf_add_cflags in
5040         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5041                 case $cf_add_cflags in
5042                 (-D*)
5043                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5044
5045                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5046                                 && test -z "${cf_tst_cflags}" \
5047                                 && cf_fix_cppflags=yes
5048
5049                         if test $cf_fix_cppflags = yes ; then
5050                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5051                                 continue
5052                         elif test "${cf_tst_cflags}" = "\"'" ; then
5053                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5054                                 continue
5055                         fi
5056                         ;;
5057                 esac
5058                 case "$CPPFLAGS" in
5059                 (*$cf_add_cflags)
5060                         ;;
5061                 (*)
5062                         case $cf_add_cflags in
5063                         (-D*)
5064                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5065
5066 CPPFLAGS=`echo "$CPPFLAGS" | \
5067         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
5068                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
5069
5070                                 ;;
5071                         esac
5072                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
5073                         ;;
5074                 esac
5075                 ;;
5076         (*)
5077                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
5078                 ;;
5079         esac
5080         ;;
5081 (yes)
5082         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5083
5084         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
5085
5086         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5087                 && test -z "${cf_tst_cflags}" \
5088                 && cf_fix_cppflags=no
5089         ;;
5090 esac
5091 done
5092
5093 if test -n "$cf_new_cflags" ; then
5094
5095         CFLAGS="$CFLAGS $cf_new_cflags"
5096 fi
5097
5098 if test -n "$cf_new_cppflags" ; then
5099
5100         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
5101 fi
5102
5103 if test -n "$cf_new_extra_cppflags" ; then
5104
5105         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
5106 fi
5107
5108                 ;;
5109         esac
5110         ;;
5111 esac
5112
5113 echo "$as_me:5113: checking if you want to perform memory-leak testing" >&5
5114 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
5115
5116 # Check whether --enable-leaks or --disable-leaks was given.
5117 if test "${enable_leaks+set}" = set; then
5118   enableval="$enable_leaks"
5119   if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
5120 else
5121   : ${with_no_leaks:=no}
5122 fi;
5123 echo "$as_me:5123: result: $with_no_leaks" >&5
5124 echo "${ECHO_T}$with_no_leaks" >&6
5125
5126 if test "$with_no_leaks" = yes ; then
5127
5128 cat >>confdefs.h <<\EOF
5129 #define NO_LEAKS 1
5130 EOF
5131
5132 cat >>confdefs.h <<\EOF
5133 #define YY_NO_LEAKS 1
5134 EOF
5135
5136 fi
5137
5138 # Extract the first word of "groff", so it can be a program name with args.
5139 set dummy groff; ac_word=$2
5140 echo "$as_me:5140: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   case $GROFF_PATH in
5146   [\\/]* | ?:[\\/]*)
5147   ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
5148   ;;
5149   *)
5150   ac_save_IFS=$IFS; IFS=$ac_path_separator
5151 ac_dummy="$PATH"
5152 for ac_dir in $ac_dummy; do
5153   IFS=$ac_save_IFS
5154   test -z "$ac_dir" && ac_dir=.
5155   if $as_executable_p "$ac_dir/$ac_word"; then
5156    ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
5157    echo "$as_me:5157: found $ac_dir/$ac_word" >&5
5158    break
5159 fi
5160 done
5161
5162   test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
5163   ;;
5164 esac
5165 fi
5166 GROFF_PATH=$ac_cv_path_GROFF_PATH
5167
5168 if test -n "$GROFF_PATH"; then
5169   echo "$as_me:5169: result: $GROFF_PATH" >&5
5170 echo "${ECHO_T}$GROFF_PATH" >&6
5171 else
5172   echo "$as_me:5172: result: no" >&5
5173 echo "${ECHO_T}no" >&6
5174 fi
5175
5176 # Extract the first word of "nroff", so it can be a program name with args.
5177 set dummy nroff; ac_word=$2
5178 echo "$as_me:5178: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180 if test "${ac_cv_path_NROFF_PATH+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   case $NROFF_PATH in
5184   [\\/]* | ?:[\\/]*)
5185   ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
5186   ;;
5187   *)
5188   ac_save_IFS=$IFS; IFS=$ac_path_separator
5189 ac_dummy="$PATH"
5190 for ac_dir in $ac_dummy; do
5191   IFS=$ac_save_IFS
5192   test -z "$ac_dir" && ac_dir=.
5193   if $as_executable_p "$ac_dir/$ac_word"; then
5194    ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
5195    echo "$as_me:5195: found $ac_dir/$ac_word" >&5
5196    break
5197 fi
5198 done
5199
5200   test -z "$ac_cv_path_NROFF_PATH" && ac_cv_path_NROFF_PATH="no"
5201   ;;
5202 esac
5203 fi
5204 NROFF_PATH=$ac_cv_path_NROFF_PATH
5205
5206 if test -n "$NROFF_PATH"; then
5207   echo "$as_me:5207: result: $NROFF_PATH" >&5
5208 echo "${ECHO_T}$NROFF_PATH" >&6
5209 else
5210   echo "$as_me:5210: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5212 fi
5213
5214 if test "x$GROFF_PATH" = xno
5215 then
5216         NROFF_NOTE=
5217         GROFF_NOTE="#"
5218 else
5219         NROFF_NOTE="#"
5220         GROFF_NOTE=
5221 fi
5222
5223 echo "$as_me:5223: checking for program to convert manpage to html" >&5
5224 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
5225
5226 # Check whether --with-man2html or --without-man2html was given.
5227 if test "${with_man2html+set}" = set; then
5228   withval="$with_man2html"
5229   cf_man2html=$withval
5230 else
5231   cf_man2html=$GROFF_PATH
5232 fi;
5233
5234 cf_with_groff=no
5235
5236 case $cf_man2html in
5237 (yes)
5238         echo "$as_me:5238: result: man2html" >&5
5239 echo "${ECHO_T}man2html" >&6
5240         # Extract the first word of "man2html", so it can be a program name with args.
5241 set dummy man2html; ac_word=$2
5242 echo "$as_me:5242: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244 if test "${ac_cv_path_cf_man2html+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   case $cf_man2html in
5248   [\\/]* | ?:[\\/]*)
5249   ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
5250   ;;
5251   *)
5252   ac_save_IFS=$IFS; IFS=$ac_path_separator
5253 ac_dummy="$PATH"
5254 for ac_dir in $ac_dummy; do
5255   IFS=$ac_save_IFS
5256   test -z "$ac_dir" && ac_dir=.
5257   if $as_executable_p "$ac_dir/$ac_word"; then
5258    ac_cv_path_cf_man2html="$ac_dir/$ac_word"
5259    echo "$as_me:5259: found $ac_dir/$ac_word" >&5
5260    break
5261 fi
5262 done
5263
5264   test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
5265   ;;
5266 esac
5267 fi
5268 cf_man2html=$ac_cv_path_cf_man2html
5269
5270 if test -n "$cf_man2html"; then
5271   echo "$as_me:5271: result: $cf_man2html" >&5
5272 echo "${ECHO_T}$cf_man2html" >&6
5273 else
5274   echo "$as_me:5274: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5276 fi
5277
5278         ;;
5279 (no|groff|*/groff*)
5280         cf_with_groff=yes
5281         cf_man2html=$GROFF_PATH
5282         echo "$as_me:5282: result: $cf_man2html" >&5
5283 echo "${ECHO_T}$cf_man2html" >&6
5284         ;;
5285 (*)
5286         echo "$as_me:5286: result: $cf_man2html" >&5
5287 echo "${ECHO_T}$cf_man2html" >&6
5288         ;;
5289 esac
5290
5291 MAN2HTML_TEMP="man2html.tmp"
5292         cat >$MAN2HTML_TEMP <<CF_EOF
5293 #!$SHELL
5294 # Temporary script generated by CF_WITH_MAN2HTML
5295 # Convert inputs to html, sending result to standard output.
5296 #
5297 # Parameters:
5298 # \${1} = rootname of file to convert
5299 # \${2} = suffix of file to convert, e.g., "1"
5300 # \${3} = macros to use, e.g., "man"
5301 #
5302 ROOT=\$1
5303 TYPE=\$2
5304 MACS=\$3
5305
5306 unset LANG
5307 unset LC_ALL
5308 unset LC_CTYPE
5309 unset LANGUAGE
5310 GROFF_NO_SGR=stupid
5311 export GROFF_NO_SGR
5312
5313 CF_EOF
5314
5315 if test "x$cf_with_groff" = xyes
5316 then
5317         MAN2HTML_NOTE="$GROFF_NOTE"
5318         MAN2HTML_PATH="$GROFF_PATH"
5319         cat >>$MAN2HTML_TEMP <<CF_EOF
5320 $SHELL -c "tbl \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
5321 CF_EOF
5322 else
5323         MAN2HTML_NOTE=""
5324
5325 if test "x$prefix" != xNONE; then
5326         cf_path_syntax="$prefix"
5327 else
5328         cf_path_syntax="$ac_default_prefix"
5329 fi
5330
5331 case ".$cf_man2html" in
5332 (.\$\(*\)*|.\'*\'*)
5333         ;;
5334 (..|./*|.\\*)
5335         ;;
5336 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5337         ;;
5338 (.\${*prefix}*|.\${*dir}*)
5339         eval cf_man2html="$cf_man2html"
5340         case ".$cf_man2html" in
5341         (.NONE/*)
5342                 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
5343                 ;;
5344         esac
5345         ;;
5346 (.no|.NONE/*)
5347         cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
5348         ;;
5349 (*)
5350         { { echo "$as_me:5350: error: expected a pathname, not \"$cf_man2html\"" >&5
5351 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
5352    { (exit 1); exit 1; }; }
5353         ;;
5354 esac
5355
5356         MAN2HTML_PATH="$cf_man2html"
5357         echo "$as_me:5357: checking for $cf_man2html top/bottom margins" >&5
5358 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
5359
5360         # for this example, expect 3 lines of content, the remainder is head/foot
5361         cat >conftest.in <<CF_EOF
5362 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
5363 .SH SECTION
5364 MARKER
5365 CF_EOF
5366
5367         LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out
5368
5369         cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
5370         cf_man2html_top=`expr $cf_man2html_1st - 2`
5371         cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'`
5372         cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top`
5373         cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
5374
5375         echo "$as_me:5375: result: $cf_man2html_top_bot" >&5
5376 echo "${ECHO_T}$cf_man2html_top_bot" >&6
5377
5378         echo "$as_me:5378: checking for pagesize to use" >&5
5379 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
5380         for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
5381         do
5382         cat >>conftest.in <<CF_EOF
5383 .nf
5384 0
5385 1
5386 2
5387 3
5388 4
5389 5
5390 6
5391 7
5392 8
5393 9
5394 CF_EOF
5395         done
5396
5397         LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out
5398         cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
5399         test -z "$cf_man2html_page" && cf_man2html_page=99999
5400         test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
5401
5402         rm -rf conftest*
5403         echo "$as_me:5403: result: $cf_man2html_page" >&5
5404 echo "${ECHO_T}$cf_man2html_page" >&6
5405
5406         cat >>$MAN2HTML_TEMP <<CF_EOF
5407 : \${MAN2HTML_PATH=$MAN2HTML_PATH}
5408 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page"
5409 case \${TYPE} in
5410 (ms)
5411         tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
5412         ;;
5413 (*)
5414         tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
5415         ;;
5416 esac
5417 CF_EOF
5418 fi
5419
5420 chmod 700 $MAN2HTML_TEMP
5421
5422 echo "$as_me:5422: checking for ANSI C header files" >&5
5423 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5424 if test "${ac_cv_header_stdc+set}" = set; then
5425   echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427   cat >conftest.$ac_ext <<_ACEOF
5428 #line 5428 "configure"
5429 #include "confdefs.h"
5430 #include <stdlib.h>
5431 #include <stdarg.h>
5432 #include <string.h>
5433 #include <float.h>
5434
5435 _ACEOF
5436 if { (eval echo "$as_me:5436: \"$ac_cpp conftest.$ac_ext\"") >&5
5437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5438   ac_status=$?
5439   egrep -v '^ *\+' conftest.er1 >conftest.err
5440   rm -f conftest.er1
5441   cat conftest.err >&5
5442   echo "$as_me:5442: \$? = $ac_status" >&5
5443   (exit $ac_status); } >/dev/null; then
5444   if test -s conftest.err; then
5445     ac_cpp_err=$ac_c_preproc_warn_flag
5446   else
5447     ac_cpp_err=
5448   fi
5449 else
5450   ac_cpp_err=yes
5451 fi
5452 if test -z "$ac_cpp_err"; then
5453   ac_cv_header_stdc=yes
5454 else
5455   echo "$as_me: failed program was:" >&5
5456   cat conftest.$ac_ext >&5
5457   ac_cv_header_stdc=no
5458 fi
5459 rm -f conftest.err conftest.$ac_ext
5460
5461 if test $ac_cv_header_stdc = yes; then
5462   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5463   cat >conftest.$ac_ext <<_ACEOF
5464 #line 5464 "configure"
5465 #include "confdefs.h"
5466 #include <string.h>
5467
5468 _ACEOF
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470   egrep "memchr" >/dev/null 2>&1; then
5471   :
5472 else
5473   ac_cv_header_stdc=no
5474 fi
5475 rm -rf conftest*
5476
5477 fi
5478
5479 if test $ac_cv_header_stdc = yes; then
5480   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5481   cat >conftest.$ac_ext <<_ACEOF
5482 #line 5482 "configure"
5483 #include "confdefs.h"
5484 #include <stdlib.h>
5485
5486 _ACEOF
5487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5488   egrep "free" >/dev/null 2>&1; then
5489   :
5490 else
5491   ac_cv_header_stdc=no
5492 fi
5493 rm -rf conftest*
5494
5495 fi
5496
5497 if test $ac_cv_header_stdc = yes; then
5498   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5499   if test "$cross_compiling" = yes; then
5500   :
5501 else
5502   cat >conftest.$ac_ext <<_ACEOF
5503 #line 5503 "configure"
5504 #include "confdefs.h"
5505 #include <ctype.h>
5506 #if ((' ' & 0x0FF) == 0x020)
5507 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5508 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5509 #else
5510 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5511                      || ('j' <= (c) && (c) <= 'r') \
5512                      || ('s' <= (c) && (c) <= 'z'))
5513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5514 #endif
5515
5516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5517 int
5518 main ()
5519 {
5520   int i;
5521   for (i = 0; i < 256; i++)
5522     if (XOR (islower (i), ISLOWER (i))
5523         || toupper (i) != TOUPPER (i))
5524       $ac_main_return(2);
5525   $ac_main_return (0);
5526 }
5527 _ACEOF
5528 rm -f conftest$ac_exeext
5529 if { (eval echo "$as_me:5529: \"$ac_link\"") >&5
5530   (eval $ac_link) 2>&5
5531   ac_status=$?
5532   echo "$as_me:5532: \$? = $ac_status" >&5
5533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5534   { (eval echo "$as_me:5534: \"$ac_try\"") >&5
5535   (eval $ac_try) 2>&5
5536   ac_status=$?
5537   echo "$as_me:5537: \$? = $ac_status" >&5
5538   (exit $ac_status); }; }; then
5539   :
5540 else
5541   echo "$as_me: program exited with status $ac_status" >&5
5542 echo "$as_me: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5544 ac_cv_header_stdc=no
5545 fi
5546 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5547 fi
5548 fi
5549 fi
5550 echo "$as_me:5550: result: $ac_cv_header_stdc" >&5
5551 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5552 if test $ac_cv_header_stdc = yes; then
5553
5554 cat >>confdefs.h <<\EOF
5555 #define STDC_HEADERS 1
5556 EOF
5557
5558 fi
5559
5560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5561
5562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5563                   inttypes.h stdint.h unistd.h
5564 do
5565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5566 echo "$as_me:5566: checking for $ac_header" >&5
5567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5569   echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571   cat >conftest.$ac_ext <<_ACEOF
5572 #line 5572 "configure"
5573 #include "confdefs.h"
5574 $ac_includes_default
5575 #include <$ac_header>
5576 _ACEOF
5577 rm -f conftest.$ac_objext
5578 if { (eval echo "$as_me:5578: \"$ac_compile\"") >&5
5579   (eval $ac_compile) 2>&5
5580   ac_status=$?
5581   echo "$as_me:5581: \$? = $ac_status" >&5
5582   (exit $ac_status); } &&
5583          { ac_try='test -s conftest.$ac_objext'
5584   { (eval echo "$as_me:5584: \"$ac_try\"") >&5
5585   (eval $ac_try) 2>&5
5586   ac_status=$?
5587   echo "$as_me:5587: \$? = $ac_status" >&5
5588   (exit $ac_status); }; }; then
5589   eval "$as_ac_Header=yes"
5590 else
5591   echo "$as_me: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5593 eval "$as_ac_Header=no"
5594 fi
5595 rm -f conftest.$ac_objext conftest.$ac_ext
5596 fi
5597 echo "$as_me:5597: result: `eval echo '${'$as_ac_Header'}'`" >&5
5598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5600   cat >>confdefs.h <<EOF
5601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5602 EOF
5603
5604 fi
5605 done
5606
5607 echo "$as_me:5607: checking for mode_t" >&5
5608 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5609 if test "${ac_cv_type_mode_t+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   cat >conftest.$ac_ext <<_ACEOF
5613 #line 5613 "configure"
5614 #include "confdefs.h"
5615 $ac_includes_default
5616 int
5617 main ()
5618 {
5619 if ((mode_t *) 0)
5620   return 0;
5621 if (sizeof (mode_t))
5622   return 0;
5623   ;
5624   return 0;
5625 }
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:5628: \"$ac_compile\"") >&5
5629   (eval $ac_compile) 2>&5
5630   ac_status=$?
5631   echo "$as_me:5631: \$? = $ac_status" >&5
5632   (exit $ac_status); } &&
5633          { ac_try='test -s conftest.$ac_objext'
5634   { (eval echo "$as_me:5634: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:5637: \$? = $ac_status" >&5
5638   (exit $ac_status); }; }; then
5639   ac_cv_type_mode_t=yes
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5643 ac_cv_type_mode_t=no
5644 fi
5645 rm -f conftest.$ac_objext conftest.$ac_ext
5646 fi
5647 echo "$as_me:5647: result: $ac_cv_type_mode_t" >&5
5648 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5649 if test $ac_cv_type_mode_t = yes; then
5650   :
5651 else
5652
5653 cat >>confdefs.h <<EOF
5654 #define mode_t int
5655 EOF
5656
5657 fi
5658
5659 ###     output makefile
5660 ac_config_files="$ac_config_files makefile"
5661 cat >confcache <<\_ACEOF
5662 # This file is a shell script that caches the results of configure
5663 # tests run on this system so they can be shared between configure
5664 # scripts and configure runs, see configure's option --config-cache.
5665 # It is not useful on other systems.  If it contains results you don't
5666 # want to keep, you may remove or edit it.
5667 #
5668 # config.status only pays attention to the cache file if you give it
5669 # the --recheck option to rerun configure.
5670 #
5671 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5673 # following values.
5674
5675 _ACEOF
5676
5677 # The following way of writing the cache mishandles newlines in values,
5678 # but we know of no workaround that is simple, portable, and efficient.
5679 # So, don't put newlines in cache variables' values.
5680 # Ultrix sh set writes to stderr and can't be redirected directly,
5681 # and sets the high bit in the cache file unless we assign to the vars.
5682 {
5683   (set) 2>&1 |
5684     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5685     *ac_space=\ *)
5686       # `set' does not quote correctly, so add quotes (double-quote
5687       # substitution turns \\\\ into \\, and sed turns \\ into \).
5688       sed -n \
5689         "s/'/'\\\\''/g;
5690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5691       ;;
5692     *)
5693       # `set' quotes correctly as required by POSIX, so do not add quotes.
5694       sed -n \
5695         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5696       ;;
5697     esac;
5698 } |
5699   sed '
5700      t clear
5701      : clear
5702      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5703      t end
5704      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5705      : end' >>confcache
5706 if cmp -s $cache_file confcache; then :; else
5707   if test -w $cache_file; then
5708     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5709     cat confcache >$cache_file
5710   else
5711     echo "not updating unwritable cache $cache_file"
5712   fi
5713 fi
5714 rm -f confcache
5715
5716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5717 # Let make expand exec_prefix.
5718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5719
5720 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5721 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5722 # trailing colons and then remove the whole line if VPATH becomes empty
5723 # (actually we leave an empty line to preserve line numbers).
5724 if test "x$srcdir" = x.; then
5725   ac_vpsub='/^[         ]*VPATH[        ]*=/{
5726 s/:*\$(srcdir):*/:/;
5727 s/:*\${srcdir}:*/:/;
5728 s/:*@srcdir@:*/:/;
5729 s/^\([^=]*=[    ]*\):*/\1/;
5730 s/:*$//;
5731 s/^[^=]*=[      ]*$//;
5732 }'
5733 fi
5734
5735 DEFS=-DHAVE_CONFIG_H
5736
5737 : ${CONFIG_STATUS=./config.status}
5738 ac_clean_files_save=$ac_clean_files
5739 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5740 { echo "$as_me:5740: creating $CONFIG_STATUS" >&5
5741 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5742 cat >$CONFIG_STATUS <<_ACEOF
5743 #! $SHELL
5744 # Generated automatically by configure.
5745 # Run this file to recreate the current configuration.
5746 # Compiler output produced by configure, useful for debugging
5747 # configure, is in config.log if it exists.
5748
5749 debug=false
5750 SHELL=\${CONFIG_SHELL-$SHELL}
5751 ac_cs_invocation="\$0 \$@"
5752
5753 _ACEOF
5754
5755 cat >>$CONFIG_STATUS <<\_ACEOF
5756 # Be Bourne compatible
5757 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5758   emulate sh
5759   NULLCMD=:
5760 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5761   set -o posix
5762 fi
5763
5764 # Name of the executable.
5765 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5766
5767 if expr a : '\(a\)' >/dev/null 2>&1; then
5768   as_expr=expr
5769 else
5770   as_expr=false
5771 fi
5772
5773 rm -f conf$$ conf$$.exe conf$$.file
5774 echo >conf$$.file
5775 if ln -s conf$$.file conf$$ 2>/dev/null; then
5776   # We could just check for DJGPP; but this test a) works b) is more generic
5777   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5778   if test -f conf$$.exe; then
5779     # Don't use ln at all; we don't have any links
5780     as_ln_s='cp -p'
5781   else
5782     as_ln_s='ln -s'
5783   fi
5784 elif ln conf$$.file conf$$ 2>/dev/null; then
5785   as_ln_s=ln
5786 else
5787   as_ln_s='cp -p'
5788 fi
5789 rm -f conf$$ conf$$.exe conf$$.file
5790
5791 as_executable_p="test -f"
5792
5793 # Support unset when possible.
5794 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5795   as_unset=unset
5796 else
5797   as_unset=false
5798 fi
5799
5800 # NLS nuisances.
5801 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5802 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5803 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5804 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5805 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5806 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5807 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5808 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5809
5810 # IFS
5811 # We need space, tab and new line, in precisely that order.
5812 as_nl='
5813 '
5814 IFS="   $as_nl"
5815
5816 # CDPATH.
5817 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5818
5819 exec 6>&1
5820
5821 _ACEOF
5822
5823 # Files that config.status was made for.
5824 if test -n "$ac_config_files"; then
5825   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5826 fi
5827
5828 if test -n "$ac_config_headers"; then
5829   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5830 fi
5831
5832 if test -n "$ac_config_links"; then
5833   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5834 fi
5835
5836 if test -n "$ac_config_commands"; then
5837   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5838 fi
5839
5840 cat >>$CONFIG_STATUS <<\EOF
5841
5842 ac_cs_usage="\
5843 \`$as_me' instantiates files from templates according to the
5844 current configuration.
5845
5846 Usage: $0 [OPTIONS] [FILE]...
5847
5848   -h, --help       print this help, then exit
5849   -V, --version    print version number, then exit
5850   -d, --debug      don't remove temporary files
5851       --recheck    update $as_me by reconfiguring in the same conditions
5852   --file=FILE[:TEMPLATE]
5853                    instantiate the configuration file FILE
5854   --header=FILE[:TEMPLATE]
5855                    instantiate the configuration header FILE
5856
5857 Configuration files:
5858 $config_files
5859
5860 Configuration headers:
5861 $config_headers
5862
5863 Report bugs to <dickey@invisible-island.net>."
5864 EOF
5865
5866 cat >>$CONFIG_STATUS <<EOF
5867 ac_cs_version="\\
5868 config.status
5869 configured by $0, generated by GNU Autoconf 2.52.20150926,
5870   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5871
5872 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5873 Free Software Foundation, Inc.
5874 This config.status script is free software; the Free Software Foundation
5875 gives unlimited permission to copy, distribute and modify it."
5876 srcdir=$srcdir
5877 INSTALL="$INSTALL"
5878 EOF
5879
5880 cat >>$CONFIG_STATUS <<\EOF
5881 # If no file are specified by the user, then we need to provide default
5882 # value.  By we need to know if files were specified by the user.
5883 ac_need_defaults=:
5884 while test $# != 0
5885 do
5886   case $1 in
5887   --*=*)
5888     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5889     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5890     shift
5891     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5892     shift
5893     ;;
5894   -*);;
5895   *) # This is not an option, so the user has probably given explicit
5896      # arguments.
5897      ac_need_defaults=false;;
5898   esac
5899
5900   case $1 in
5901   # Handling of the options.
5902 EOF
5903 cat >>$CONFIG_STATUS <<EOF
5904   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5905     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5906     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5907 EOF
5908 cat >>$CONFIG_STATUS <<\EOF
5909   --version | --vers* | -V )
5910     echo "$ac_cs_version"; exit 0 ;;
5911   --he | --h)
5912     # Conflict between --help and --header
5913     { { echo "$as_me:5913: error: ambiguous option: $1
5914 Try \`$0 --help' for more information." >&5
5915 echo "$as_me: error: ambiguous option: $1
5916 Try \`$0 --help' for more information." >&2;}
5917    { (exit 1); exit 1; }; };;
5918   --help | --hel | -h )
5919     echo "$ac_cs_usage"; exit 0 ;;
5920   --debug | --d* | -d )
5921     debug=: ;;
5922   --file | --fil | --fi | --f )
5923     shift
5924     CONFIG_FILES="$CONFIG_FILES $1"
5925     ac_need_defaults=false;;
5926   --header | --heade | --head | --hea )
5927     shift
5928     CONFIG_HEADERS="$CONFIG_HEADERS $1"
5929     ac_need_defaults=false;;
5930
5931   # This is an error.
5932   -*) { { echo "$as_me:5932: error: unrecognized option: $1
5933 Try \`$0 --help' for more information." >&5
5934 echo "$as_me: error: unrecognized option: $1
5935 Try \`$0 --help' for more information." >&2;}
5936    { (exit 1); exit 1; }; } ;;
5937
5938   *) ac_config_targets="$ac_config_targets $1" ;;
5939
5940   esac
5941   shift
5942 done
5943
5944 exec 5>>config.log
5945 cat >&5 << _ACEOF
5946
5947 ## ----------------------- ##
5948 ## Running config.status.  ##
5949 ## ----------------------- ##
5950
5951 This file was extended by $as_me 2.52.20150926, executed with
5952   CONFIG_FILES    = $CONFIG_FILES
5953   CONFIG_HEADERS  = $CONFIG_HEADERS
5954   CONFIG_LINKS    = $CONFIG_LINKS
5955   CONFIG_COMMANDS = $CONFIG_COMMANDS
5956   > $ac_cs_invocation
5957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5958
5959 _ACEOF
5960 EOF
5961
5962 cat >>$CONFIG_STATUS <<\EOF
5963 for ac_config_target in $ac_config_targets
5964 do
5965   case "$ac_config_target" in
5966   # Handling of arguments.
5967   "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
5968   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
5969   *) { { echo "$as_me:5969: error: invalid argument: $ac_config_target" >&5
5970 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5971    { (exit 1); exit 1; }; };;
5972   esac
5973 done
5974
5975 # If the user did not use the arguments to specify the items to instantiate,
5976 # then the envvar interface is used.  Set only those that are not.
5977 # We use the long form for the default assignment because of an extremely
5978 # bizarre bug on SunOS 4.1.3.
5979 if $ac_need_defaults; then
5980   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5981   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5982 fi
5983
5984 # Create a temporary directory, and hook for its removal unless debugging.
5985 $debug ||
5986 {
5987   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5988   trap '{ (exit 1); exit 1; }' 1 2 13 15
5989 }
5990
5991 # Create a (secure) tmp directory for tmp files.
5992 : ${TMPDIR=/tmp}
5993 {
5994   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5995   test -n "$tmp" && test -d "$tmp"
5996 }  ||
5997 {
5998   tmp=$TMPDIR/cs$$-$RANDOM
5999   (umask 077 && mkdir $tmp)
6000 } ||
6001 {
6002    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6003    { (exit 1); exit 1; }
6004 }
6005
6006 EOF
6007
6008 cat >>$CONFIG_STATUS <<EOF
6009
6010 #
6011 # CONFIG_FILES section.
6012 #
6013
6014 # No need to generate the scripts if there are no CONFIG_FILES.
6015 # This happens for instance when ./config.status config.h
6016 if test -n "\$CONFIG_FILES"; then
6017   # Protect against being on the right side of a sed subst in config.status.
6018   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6019    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6020 s,@SHELL@,$SHELL,;t t
6021 s,@exec_prefix@,$exec_prefix,;t t
6022 s,@prefix@,$prefix,;t t
6023 s,@program_transform_name@,$program_transform_name,;t t
6024 s,@bindir@,$bindir,;t t
6025 s,@sbindir@,$sbindir,;t t
6026 s,@libexecdir@,$libexecdir,;t t
6027 s,@datarootdir@,$datarootdir,;t t
6028 s,@datadir@,$datadir,;t t
6029 s,@sysconfdir@,$sysconfdir,;t t
6030 s,@sharedstatedir@,$sharedstatedir,;t t
6031 s,@localstatedir@,$localstatedir,;t t
6032 s,@libdir@,$libdir,;t t
6033 s,@includedir@,$includedir,;t t
6034 s,@oldincludedir@,$oldincludedir,;t t
6035 s,@infodir@,$infodir,;t t
6036 s,@mandir@,$mandir,;t t
6037 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6038 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6039 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6040 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6041 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6042 s,@build_alias@,$build_alias,;t t
6043 s,@host_alias@,$host_alias,;t t
6044 s,@target_alias@,$target_alias,;t t
6045 s,@ECHO_C@,$ECHO_C,;t t
6046 s,@ECHO_N@,$ECHO_N,;t t
6047 s,@ECHO_T@,$ECHO_T,;t t
6048 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6049 s,@DEFS@,$DEFS,;t t
6050 s,@LIBS@,$LIBS,;t t
6051 s,@build@,$build,;t t
6052 s,@build_cpu@,$build_cpu,;t t
6053 s,@build_vendor@,$build_vendor,;t t
6054 s,@build_os@,$build_os,;t t
6055 s,@host@,$host,;t t
6056 s,@host_cpu@,$host_cpu,;t t
6057 s,@host_vendor@,$host_vendor,;t t
6058 s,@host_os@,$host_os,;t t
6059 s,@target@,$target,;t t
6060 s,@target_cpu@,$target_cpu,;t t
6061 s,@target_vendor@,$target_vendor,;t t
6062 s,@target_os@,$target_os,;t t
6063 s,@CC@,$CC,;t t
6064 s,@CFLAGS@,$CFLAGS,;t t
6065 s,@LDFLAGS@,$LDFLAGS,;t t
6066 s,@CPPFLAGS@,$CPPFLAGS,;t t
6067 s,@ac_ct_CC@,$ac_ct_CC,;t t
6068 s,@EXEEXT@,$EXEEXT,;t t
6069 s,@OBJEXT@,$OBJEXT,;t t
6070 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
6071 s,@SET_MAKE@,$SET_MAKE,;t t
6072 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6073 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6074 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6075 s,@CTAGS@,$CTAGS,;t t
6076 s,@ETAGS@,$ETAGS,;t t
6077 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
6078 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
6079 s,@AWK@,$AWK,;t t
6080 s,@LINT@,$LINT,;t t
6081 s,@LINT_OPTS@,$LINT_OPTS,;t t
6082 s,@CPP@,$CPP,;t t
6083 s,@SKELETON@,$SKELETON,;t t
6084 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
6085 s,@ECHO_LT@,$ECHO_LT,;t t
6086 s,@ECHO_LD@,$ECHO_LD,;t t
6087 s,@RULE_CC@,$RULE_CC,;t t
6088 s,@SHOW_CC@,$SHOW_CC,;t t
6089 s,@ECHO_CC@,$ECHO_CC,;t t
6090 s,@GROFF_PATH@,$GROFF_PATH,;t t
6091 s,@NROFF_PATH@,$NROFF_PATH,;t t
6092 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
6093 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
6094 s,@cf_man2html@,$cf_man2html,;t t
6095 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
6096 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
6097 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
6098 CEOF
6099
6100 EOF
6101
6102   cat >>$CONFIG_STATUS <<\EOF
6103   # Split the substitutions into bite-sized pieces for seds with
6104   # small command number limits, like on Digital OSF/1 and HP-UX.
6105   ac_max_sed_lines=48
6106   ac_sed_frag=1 # Number of current file.
6107   ac_beg=1 # First line for current file.
6108   ac_end=$ac_max_sed_lines # Line after last line for current file.
6109   ac_more_lines=:
6110   ac_sed_cmds=
6111   while $ac_more_lines; do
6112     if test $ac_beg -gt 1; then
6113       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6114     else
6115       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6116     fi
6117     if test ! -s $tmp/subs.frag; then
6118       ac_more_lines=false
6119     else
6120       # The purpose of the label and of the branching condition is to
6121       # speed up the sed processing (if there are no `@' at all, there
6122       # is no need to browse any of the substitutions).
6123       # These are the two extra sed commands mentioned above.
6124       (echo ':t
6125   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6126       # It is possible to make a multiline substitution using escaped newlines.
6127       # Ensure that we do not split the substitution between script fragments.
6128       ac_BEG=$ac_end
6129       ac_END=`expr $ac_end + $ac_max_sed_lines`
6130       sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
6131       if test -s $tmp/subs.next; then
6132         grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
6133         if test ! -s $tmp/subs.edit; then
6134           grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
6135           if test ! -s $tmp/subs.edit; then
6136             if test $ac_beg -gt 1; then
6137               ac_end=`expr $ac_end - 1`
6138               continue
6139             fi
6140           fi
6141         fi
6142       fi
6143
6144       if test -z "$ac_sed_cmds"; then
6145         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6146       else
6147         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6148       fi
6149       ac_sed_frag=`expr $ac_sed_frag + 1`
6150       ac_beg=$ac_end
6151       ac_end=`expr $ac_end + $ac_max_sed_lines`
6152     fi
6153   done
6154   if test -z "$ac_sed_cmds"; then
6155     ac_sed_cmds=cat
6156   fi
6157 fi # test -n "$CONFIG_FILES"
6158
6159 EOF
6160 cat >>$CONFIG_STATUS <<\EOF
6161 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6162   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6163   case $ac_file in
6164   - | *:- | *:-:* ) # input from stdin
6165         cat >$tmp/stdin
6166         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6167         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6168   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6169         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6170   * )   ac_file_in=$ac_file.in ;;
6171   esac
6172
6173   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6174   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6175          X"$ac_file" : 'X\(//\)[^/]' \| \
6176          X"$ac_file" : 'X\(//\)$' \| \
6177          X"$ac_file" : 'X\(/\)' \| \
6178          .     : '\(.\)' 2>/dev/null ||
6179 echo X"$ac_file" |
6180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6181           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6182           /^X\(\/\/\)$/{ s//\1/; q; }
6183           /^X\(\/\).*/{ s//\1/; q; }
6184           s/.*/./; q'`
6185   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6186     { case "$ac_dir" in
6187   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6188   *)                      as_incr_dir=.;;
6189 esac
6190 as_dummy="$ac_dir"
6191 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6192   case $as_mkdir_dir in
6193     # Skip DOS drivespec
6194     ?:) as_incr_dir=$as_mkdir_dir ;;
6195     *)
6196       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6197       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6198     ;;
6199   esac
6200 done; }
6201
6202     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6203     # A "../" for each directory in $ac_dir_suffix.
6204     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
6205   else
6206     ac_dir_suffix= ac_dots=
6207   fi
6208
6209   case $srcdir in
6210   .)  ac_srcdir=.
6211       if test -z "$ac_dots"; then
6212          ac_top_srcdir=.
6213       else
6214          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
6215       fi ;;
6216   [\\/]* | ?:[\\/]* )
6217       ac_srcdir=$srcdir$ac_dir_suffix;
6218       ac_top_srcdir=$srcdir ;;
6219   *) # Relative path.
6220     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
6221     ac_top_srcdir=$ac_dots$srcdir ;;
6222   esac
6223
6224   case $INSTALL in
6225   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6226   *) ac_INSTALL=$ac_dots$INSTALL ;;
6227   esac
6228
6229   if test x"$ac_file" != x-; then
6230     { echo "$as_me:6230: creating $ac_file" >&5
6231 echo "$as_me: creating $ac_file" >&6;}
6232     rm -f "$ac_file"
6233   fi
6234   # Let's still pretend it is `configure' which instantiates (i.e., don't
6235   # use $as_me), people would be surprised to read:
6236   #    /* config.h.  Generated automatically by config.status.  */
6237   configure_input="Generated automatically from `echo $ac_file_in |
6238                                                  sed 's,.*/,,'` by configure."
6239
6240   # First look for the input files in the build tree, otherwise in the
6241   # src tree.
6242   ac_file_inputs=`IFS=:
6243     for f in $ac_file_in; do
6244       case $f in
6245       -) echo $tmp/stdin ;;
6246       [\\/$]*)
6247          # Absolute (can't be DOS-style, as IFS=:)
6248          test -f "$f" || { { echo "$as_me:6248: error: cannot find input file: $f" >&5
6249 echo "$as_me: error: cannot find input file: $f" >&2;}
6250    { (exit 1); exit 1; }; }
6251          echo $f;;
6252       *) # Relative
6253          if test -f "$f"; then
6254            # Build tree
6255            echo $f
6256          elif test -f "$srcdir/$f"; then
6257            # Source tree
6258            echo $srcdir/$f
6259          else
6260            # /dev/null tree
6261            { { echo "$as_me:6261: error: cannot find input file: $f" >&5
6262 echo "$as_me: error: cannot find input file: $f" >&2;}
6263    { (exit 1); exit 1; }; }
6264          fi;;
6265       esac
6266     done` || { (exit 1); exit 1; }
6267 EOF
6268 cat >>$CONFIG_STATUS <<\EOF
6269   ac_warn_datarootdir=no
6270   if test x"$ac_file" != x-; then
6271     for ac_item in $ac_file_inputs
6272     do
6273       ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
6274       if test -n "$ac_seen"; then
6275         ac_used=`grep '@datarootdir@' $ac_item`
6276         if test -z "$ac_used"; then
6277           { echo "$as_me:6277: WARNING: datarootdir was used implicitly but not set:
6278 $ac_seen" >&5
6279 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
6280 $ac_seen" >&2;}
6281           ac_warn_datarootdir=yes
6282         fi
6283       fi
6284       ac_seen=`grep '${datarootdir}' $ac_item`
6285       if test -n "$ac_seen"; then
6286         { echo "$as_me:6286: WARNING: datarootdir was used explicitly but not set:
6287 $ac_seen" >&5
6288 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
6289 $ac_seen" >&2;}
6290         ac_warn_datarootdir=yes
6291       fi
6292     done
6293   fi
6294
6295 if test "x$ac_warn_datarootdir" = xyes; then
6296   ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
6297 fi
6298
6299 EOF
6300 cat >>$CONFIG_STATUS <<EOF
6301   sed "$ac_vpsub
6302 $extrasub
6303 EOF
6304 cat >>$CONFIG_STATUS <<\EOF
6305 :t
6306 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6307 s,@configure_input@,$configure_input,;t t
6308 s,@srcdir@,$ac_srcdir,;t t
6309 s,@top_srcdir@,$ac_top_srcdir,;t t
6310 s,@INSTALL@,$ac_INSTALL,;t t
6311 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6312   rm -f $tmp/stdin
6313   if test x"$ac_file" != x-; then
6314     cp $tmp/out $ac_file
6315
6316     for ac_name in prefix exec_prefix datarootdir
6317     do
6318         ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
6319         if test -n "$ac_seen"; then
6320             ac_init=`egrep '[   ]*'$ac_name'[   ]*=' $ac_file`
6321             if test -z "$ac_init"; then
6322               ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
6323               { echo "$as_me:6323: WARNING: Variable $ac_name is used but was not set:
6324 $ac_seen" >&5
6325 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
6326 $ac_seen" >&2;}
6327             fi
6328         fi
6329     done
6330     egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
6331     egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
6332     if test -s $tmp/out; then
6333       ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
6334       { echo "$as_me:6334: WARNING: Some variables may not be substituted:
6335 $ac_seen" >&5
6336 echo "$as_me: WARNING: Some variables may not be substituted:
6337 $ac_seen" >&2;}
6338     fi
6339   else
6340     cat $tmp/out
6341   fi
6342   rm -f $tmp/out
6343
6344 done
6345 EOF
6346 cat >>$CONFIG_STATUS <<\EOF
6347
6348 #
6349 # CONFIG_HEADER section.
6350 #
6351
6352 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6353 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6354 #
6355 # ac_d sets the value in "#define NAME VALUE" lines.
6356 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6357 ac_dB='[        ].*$,\1#\2'
6358 ac_dC=' '
6359 ac_dD=',;t'
6360 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6361 ac_iA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6362 ac_iB='\([      ]\),\1#\2define\3'
6363 ac_iC=' '
6364 ac_iD='\4,;t'
6365 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6366 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6367 ac_uB='$,\1#\2define\3'
6368 ac_uC=' '
6369 ac_uD=',;t'
6370
6371 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6372   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6373   case $ac_file in
6374   - | *:- | *:-:* ) # input from stdin
6375         cat >$tmp/stdin
6376         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6377         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6378   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6379         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6380   * )   ac_file_in=$ac_file.in ;;
6381   esac
6382
6383   test x"$ac_file" != x- && { echo "$as_me:6383: creating $ac_file" >&5
6384 echo "$as_me: creating $ac_file" >&6;}
6385
6386   # First look for the input files in the build tree, otherwise in the
6387   # src tree.
6388   ac_file_inputs=`IFS=:
6389     for f in $ac_file_in; do
6390       case $f in
6391       -) echo $tmp/stdin ;;
6392       [\\/$]*)
6393          # Absolute (can't be DOS-style, as IFS=:)
6394          test -f "$f" || { { echo "$as_me:6394: error: cannot find input file: $f" >&5
6395 echo "$as_me: error: cannot find input file: $f" >&2;}
6396    { (exit 1); exit 1; }; }
6397          echo $f;;
6398       *) # Relative
6399          if test -f "$f"; then
6400            # Build tree
6401            echo $f
6402          elif test -f "$srcdir/$f"; then
6403            # Source tree
6404            echo $srcdir/$f
6405          else
6406            # /dev/null tree
6407            { { echo "$as_me:6407: error: cannot find input file: $f" >&5
6408 echo "$as_me: error: cannot find input file: $f" >&2;}
6409    { (exit 1); exit 1; }; }
6410          fi;;
6411       esac
6412     done` || { (exit 1); exit 1; }
6413   # Remove the trailing spaces.
6414   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
6415
6416 EOF
6417
6418 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6419 # `conftest.undefs', that substitutes the proper values into
6420 # config.h.in to produce config.h.  The first handles `#define'
6421 # templates, and the second `#undef' templates.
6422 # And first: Protect against being on the right side of a sed subst in
6423 # config.status.  Protect against being in an unquoted here document
6424 # in config.status.
6425 rm -f conftest.defines conftest.undefs
6426 # Using a here document instead of a string reduces the quoting nightmare.
6427 # Putting comments in sed scripts is not portable.
6428 #
6429 # `end' is used to avoid that the second main sed command (meant for
6430 # 0-ary CPP macros) applies to n-ary macro definitions.
6431 # See the Autoconf documentation for `clear'.
6432 cat >confdef2sed.sed <<\EOF
6433 s/[\\&,]/\\&/g
6434 s,[\\$`],\\&,g
6435 t clear
6436 : clear
6437 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
6438 t end
6439 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6440 : end
6441 EOF
6442 # If some macros were called several times there might be several times
6443 # the same #defines, which is useless.  Nevertheless, we may not want to
6444 # sort them, since we want the *last* AC-DEFINE to be honored.
6445 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6446 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6447 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
6448 rm -f confdef2sed.sed
6449
6450 # This sed command replaces #undef with comments.  This is necessary, for
6451 # example, in the case of _POSIX_SOURCE, which is predefined and required
6452 # on some systems where configure will not decide to define it.
6453 cat >>conftest.undefs <<\EOF
6454 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6455 EOF
6456
6457 # Break up conftest.defines because some shells have a limit on the size
6458 # of here documents, and old seds have small limits too (100 cmds).
6459 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6460 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6461 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6462 echo '  :' >>$CONFIG_STATUS
6463 rm -f conftest.tail
6464 while grep . conftest.defines >/dev/null
6465 do
6466   # Write a limited-size here document to $tmp/defines.sed.
6467   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6468   # Speed up: don't consider the non `#define' lines.
6469   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6470   # Work around the forget-to-reset-the-flag bug.
6471   echo 't clr' >>$CONFIG_STATUS
6472   echo ': clr' >>$CONFIG_STATUS
6473   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6474   echo 'CEOF
6475   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6476   rm -f $tmp/in
6477   mv $tmp/out $tmp/in
6478 ' >>$CONFIG_STATUS
6479   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6480   rm -f conftest.defines
6481   mv conftest.tail conftest.defines
6482 done
6483 rm -f conftest.defines
6484 echo '  fi # egrep' >>$CONFIG_STATUS
6485 echo >>$CONFIG_STATUS
6486
6487 # Break up conftest.undefs because some shells have a limit on the size
6488 # of here documents, and old seds have small limits too (100 cmds).
6489 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6490 rm -f conftest.tail
6491 while grep . conftest.undefs >/dev/null
6492 do
6493   # Write a limited-size here document to $tmp/undefs.sed.
6494   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6495   # Speed up: don't consider the non `#undef'
6496   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6497   # Work around the forget-to-reset-the-flag bug.
6498   echo 't clr' >>$CONFIG_STATUS
6499   echo ': clr' >>$CONFIG_STATUS
6500   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6501   echo 'CEOF
6502   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6503   rm -f $tmp/in
6504   mv $tmp/out $tmp/in
6505 ' >>$CONFIG_STATUS
6506   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6507   rm -f conftest.undefs
6508   mv conftest.tail conftest.undefs
6509 done
6510 rm -f conftest.undefs
6511
6512 cat >>$CONFIG_STATUS <<\EOF
6513   # Let's still pretend it is `configure' which instantiates (i.e., don't
6514   # use $as_me), people would be surprised to read:
6515   #    /* config.h.  Generated automatically by config.status.  */
6516   if test x"$ac_file" = x-; then
6517     echo "/* Generated automatically by configure.  */" >$tmp/config.h
6518   else
6519     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
6520   fi
6521   cat $tmp/in >>$tmp/config.h
6522   rm -f $tmp/in
6523   if test x"$ac_file" != x-; then
6524     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6525       { echo "$as_me:6525: $ac_file is unchanged" >&5
6526 echo "$as_me: $ac_file is unchanged" >&6;}
6527     else
6528       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6529          X"$ac_file" : 'X\(//\)[^/]' \| \
6530          X"$ac_file" : 'X\(//\)$' \| \
6531          X"$ac_file" : 'X\(/\)' \| \
6532          .     : '\(.\)' 2>/dev/null ||
6533 echo X"$ac_file" |
6534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6535           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6536           /^X\(\/\/\)$/{ s//\1/; q; }
6537           /^X\(\/\).*/{ s//\1/; q; }
6538           s/.*/./; q'`
6539       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6540         { case "$ac_dir" in
6541   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6542   *)                      as_incr_dir=.;;
6543 esac
6544 as_dummy="$ac_dir"
6545 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6546   case $as_mkdir_dir in
6547     # Skip DOS drivespec
6548     ?:) as_incr_dir=$as_mkdir_dir ;;
6549     *)
6550       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6551       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6552     ;;
6553   esac
6554 done; }
6555
6556       fi
6557       rm -f $ac_file
6558       mv $tmp/config.h $ac_file
6559     fi
6560   else
6561     cat $tmp/config.h
6562     rm -f $tmp/config.h
6563   fi
6564 done
6565 EOF
6566
6567 cat >>$CONFIG_STATUS <<\EOF
6568
6569 { (exit 0); exit 0; }
6570 EOF
6571 chmod +x $CONFIG_STATUS
6572 ac_clean_files=$ac_clean_files_save
6573
6574 # configure is writing to config.log, and then calls config.status.
6575 # config.status does its own redirection, appending to config.log.
6576 # Unfortunately, on DOS this fails, as config.log is still kept open
6577 # by configure, so config.status won't be able to write to it; its
6578 # output is simply discarded.  So we exec the FD to /dev/null,
6579 # effectively closing config.log, so it can be properly (re)opened and
6580 # appended to by config.status.  When coming back to configure, we
6581 # need to make the FD available again.
6582 if test "$no_create" != yes; then
6583   ac_cs_success=:
6584   exec 5>/dev/null
6585   $SHELL $CONFIG_STATUS || ac_cs_success=false
6586   exec 5>>config.log
6587   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6588   # would make configure fail if this is the last instruction.
6589   $ac_cs_success || { (exit 1); exit 1; }
6590 fi
6591
6592 test -z "$cf_make_docs" && cf_make_docs=0
6593
6594 cf_output=makefile
6595 test -f "$cf_output" || cf_output=Makefile
6596
6597 if test "$cf_make_docs" = 0
6598 then
6599 cat >>$cf_output <<CF_EOF
6600 ################################################################################
6601 ## generated by CF_MAKE_DOCS
6602 .SUFFIXES : .html .1 .man .ps .pdf .txt
6603
6604 ${NROFF_NOTE}.1.txt :
6605 ${NROFF_NOTE}   \$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@
6606
6607 ${GROFF_NOTE}.ps.pdf :
6608 ${GROFF_NOTE}   ps2pdf \$*.ps
6609 ${GROFF_NOTE}
6610 ${GROFF_NOTE}.1.ps :
6611 ${GROFF_NOTE}   \$(SHELL) -c "tbl \$*.1 | groff -man" >\$@
6612 ${GROFF_NOTE}
6613 ${GROFF_NOTE}.1.txt :
6614 ${GROFF_NOTE}   GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -Tascii -man | col -bx" >\$@
6615
6616 ${MAN2HTML_NOTE}.1.html :
6617 ${MAN2HTML_NOTE}        ./${MAN2HTML_TEMP} \$* 1 man >\$@
6618
6619 CF_EOF
6620         cf_make_docs=1
6621 fi
6622
6623 for cf_name in yacc
6624 do
6625 cat >>$cf_output <<CF_EOF
6626 ################################################################################
6627 ${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
6628 ${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html
6629 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf
6630 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps
6631 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
6632
6633 clean \\
6634 docs-clean ::
6635 ${NROFF_NOTE}   rm -f $cf_name.txt
6636 ${MAN2HTML_NOTE}        rm -f $cf_name.html
6637 ${GROFF_NOTE}   rm -f $cf_name.pdf
6638 ${GROFF_NOTE}   rm -f $cf_name.ps
6639 ${GROFF_NOTE}   rm -f $cf_name.txt
6640
6641 ${NROFF_NOTE}$cf_name.txt  : $cf_name.1
6642 ${MAN2HTML_NOTE}$cf_name.html : $cf_name.1
6643 ${GROFF_NOTE}$cf_name.pdf  : $cf_name.ps
6644 ${GROFF_NOTE}$cf_name.ps   : $cf_name.1
6645 ${GROFF_NOTE}$cf_name.txt  : $cf_name.1
6646 CF_EOF
6647 done
6648