Imported Upstream version 20160606
[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/^[^    ]*[     ][      ]*//'`
1959         CC=`echo "$CC" | sed -e 's/[    ].*//'`
1960
1961 cf_fix_cppflags=no
1962 cf_new_cflags=
1963 cf_new_cppflags=
1964 cf_new_extra_cppflags=
1965
1966 for cf_add_cflags in $cf_flags
1967 do
1968 case $cf_fix_cppflags in
1969 (no)
1970         case $cf_add_cflags in
1971         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1972                 case $cf_add_cflags in
1973                 (-D*)
1974                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1975
1976                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1977                                 && test -z "${cf_tst_cflags}" \
1978                                 && cf_fix_cppflags=yes
1979
1980                         if test $cf_fix_cppflags = yes ; then
1981                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1982                                 continue
1983                         elif test "${cf_tst_cflags}" = "\"'" ; then
1984                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1985                                 continue
1986                         fi
1987                         ;;
1988                 esac
1989                 case "$CPPFLAGS" in
1990                 (*$cf_add_cflags)
1991                         ;;
1992                 (*)
1993                         case $cf_add_cflags in
1994                         (-D*)
1995                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1996
1997 CPPFLAGS=`echo "$CPPFLAGS" | \
1998         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
1999                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
2000
2001                                 ;;
2002                         esac
2003                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2004                         ;;
2005                 esac
2006                 ;;
2007         (*)
2008                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2009                 ;;
2010         esac
2011         ;;
2012 (yes)
2013         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2014
2015         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2016
2017         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2018                 && test -z "${cf_tst_cflags}" \
2019                 && cf_fix_cppflags=no
2020         ;;
2021 esac
2022 done
2023
2024 if test -n "$cf_new_cflags" ; then
2025
2026         CFLAGS="$CFLAGS $cf_new_cflags"
2027 fi
2028
2029 if test -n "$cf_new_cppflags" ; then
2030
2031         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2032 fi
2033
2034 if test -n "$cf_new_extra_cppflags" ; then
2035
2036         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2037 fi
2038
2039         test -n "$verbose" && echo "    resulting CC: '$CC'" 1>&6
2040
2041 echo "${as_me:-configure}:2041: testing resulting CC: '$CC' ..." 1>&5
2042
2043         test -n "$verbose" && echo "    resulting CFLAGS: '$CFLAGS'" 1>&6
2044
2045 echo "${as_me:-configure}:2045: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2046
2047         test -n "$verbose" && echo "    resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2048
2049 echo "${as_me:-configure}:2049: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2050
2051         ;;
2052 (*)
2053         echo "$as_me:2053: result: ok" >&5
2054 echo "${ECHO_T}ok" >&6
2055         ;;
2056 esac
2057
2058 echo "$as_me:2058: checking whether ${MAKE-make} sets \${MAKE}" >&5
2059 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2060 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2061 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.make <<\EOF
2065 all:
2066         @echo 'ac_maketemp="${MAKE}"'
2067 EOF
2068 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2069 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2070 if test -n "$ac_maketemp"; then
2071   eval ac_cv_prog_make_${ac_make}_set=yes
2072 else
2073   eval ac_cv_prog_make_${ac_make}_set=no
2074 fi
2075 rm -f conftest.make
2076 fi
2077 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2078   echo "$as_me:2078: result: yes" >&5
2079 echo "${ECHO_T}yes" >&6
2080   SET_MAKE=
2081 else
2082   echo "$as_me:2082: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084   SET_MAKE="MAKE=${MAKE-make}"
2085 fi
2086
2087 # Find a good install program.  We prefer a C program (faster),
2088 # so one script is as good as another.  But avoid the broken or
2089 # incompatible versions:
2090 # SysV /etc/install, /usr/sbin/install
2091 # SunOS /usr/etc/install
2092 # IRIX /sbin/install
2093 # AIX /bin/install
2094 # AmigaOS /C/install, which installs bootblocks on floppy discs
2095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2098 # ./install, which can be erroneously created by make from ./install.sh.
2099 echo "$as_me:2099: checking for a BSD compatible install" >&5
2100 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2101 if test -z "$INSTALL"; then
2102 if test "${ac_cv_path_install+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105     ac_save_IFS=$IFS; IFS=$ac_path_separator
2106   for ac_dir in $PATH; do
2107     IFS=$ac_save_IFS
2108     # Account for people who put trailing slashes in PATH elements.
2109     case $ac_dir/ in
2110     / | ./ | .// | /cC/* \
2111     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2112     | /usr/ucb/* ) ;;
2113     *)
2114       # OSF1 and SCO ODT 3.0 have their own names for install.
2115       # Don't use installbsd from OSF since it installs stuff as root
2116       # by default.
2117       for ac_prog in ginstall scoinst install; do
2118         if $as_executable_p "$ac_dir/$ac_prog"; then
2119           if test $ac_prog = install &&
2120             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2121             # AIX install.  It has an incompatible calling convention.
2122             :
2123           elif test $ac_prog = install &&
2124             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2125             # program-specific install script used by HP pwplus--don't use.
2126             :
2127           else
2128             ac_cv_path_install="$ac_dir/$ac_prog -c"
2129             break 2
2130           fi
2131         fi
2132       done
2133       ;;
2134     esac
2135   done
2136
2137 fi
2138   if test "${ac_cv_path_install+set}" = set; then
2139     INSTALL=$ac_cv_path_install
2140   else
2141     # As a last resort, use the slow shell script.  We don't cache a
2142     # path for INSTALL within a source directory, because that will
2143     # break other packages using the cache if that directory is
2144     # removed, or if the path is relative.
2145     INSTALL=$ac_install_sh
2146   fi
2147 fi
2148 echo "$as_me:2148: result: $INSTALL" >&5
2149 echo "${ECHO_T}$INSTALL" >&6
2150
2151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2152 # It thinks the first close brace ends the variable substitution.
2153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2154
2155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2156
2157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2158
2159 echo "$as_me:2159: checking if filesystem supports mixed-case filenames" >&5
2160 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2161 if test "${cf_cv_mixedcase+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164
2165 if test "$cross_compiling" = yes ; then
2166         case $target_alias in
2167         (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2168                 cf_cv_mixedcase=no
2169                 ;;
2170         (*)
2171                 cf_cv_mixedcase=yes
2172                 ;;
2173         esac
2174 else
2175         rm -f conftest CONFTEST
2176         echo test >conftest
2177         if test -f CONFTEST ; then
2178                 cf_cv_mixedcase=no
2179         else
2180                 cf_cv_mixedcase=yes
2181         fi
2182         rm -f conftest CONFTEST
2183 fi
2184
2185 fi
2186 echo "$as_me:2186: result: $cf_cv_mixedcase" >&5
2187 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2188 test "$cf_cv_mixedcase" = yes &&
2189 cat >>confdefs.h <<\EOF
2190 #define MIXEDCASE_FILENAMES 1
2191 EOF
2192
2193 for ac_prog in exctags ctags
2194 do
2195   # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 echo "$as_me:2197: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_CTAGS+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   if test -n "$CTAGS"; then
2203   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2204 else
2205   ac_save_IFS=$IFS; IFS=$ac_path_separator
2206 ac_dummy="$PATH"
2207 for ac_dir in $ac_dummy; do
2208   IFS=$ac_save_IFS
2209   test -z "$ac_dir" && ac_dir=.
2210   $as_executable_p "$ac_dir/$ac_word" || continue
2211 ac_cv_prog_CTAGS="$ac_prog"
2212 echo "$as_me:2212: found $ac_dir/$ac_word" >&5
2213 break
2214 done
2215
2216 fi
2217 fi
2218 CTAGS=$ac_cv_prog_CTAGS
2219 if test -n "$CTAGS"; then
2220   echo "$as_me:2220: result: $CTAGS" >&5
2221 echo "${ECHO_T}$CTAGS" >&6
2222 else
2223   echo "$as_me:2223: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2226
2227   test -n "$CTAGS" && break
2228 done
2229
2230 for ac_prog in exetags etags
2231 do
2232   # Extract the first word of "$ac_prog", so it can be a program name with args.
2233 set dummy $ac_prog; ac_word=$2
2234 echo "$as_me:2234: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236 if test "${ac_cv_prog_ETAGS+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   if test -n "$ETAGS"; then
2240   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2241 else
2242   ac_save_IFS=$IFS; IFS=$ac_path_separator
2243 ac_dummy="$PATH"
2244 for ac_dir in $ac_dummy; do
2245   IFS=$ac_save_IFS
2246   test -z "$ac_dir" && ac_dir=.
2247   $as_executable_p "$ac_dir/$ac_word" || continue
2248 ac_cv_prog_ETAGS="$ac_prog"
2249 echo "$as_me:2249: found $ac_dir/$ac_word" >&5
2250 break
2251 done
2252
2253 fi
2254 fi
2255 ETAGS=$ac_cv_prog_ETAGS
2256 if test -n "$ETAGS"; then
2257   echo "$as_me:2257: result: $ETAGS" >&5
2258 echo "${ECHO_T}$ETAGS" >&6
2259 else
2260   echo "$as_me:2260: result: no" >&5
2261 echo "${ECHO_T}no" >&6
2262 fi
2263
2264   test -n "$ETAGS" && break
2265 done
2266
2267 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2268 set dummy ${CTAGS:-ctags}; ac_word=$2
2269 echo "$as_me:2269: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$MAKE_LOWER_TAGS"; then
2275   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2276 else
2277   ac_save_IFS=$IFS; IFS=$ac_path_separator
2278 ac_dummy="$PATH"
2279 for ac_dir in $ac_dummy; do
2280   IFS=$ac_save_IFS
2281   test -z "$ac_dir" && ac_dir=.
2282   $as_executable_p "$ac_dir/$ac_word" || continue
2283 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2284 echo "$as_me:2284: found $ac_dir/$ac_word" >&5
2285 break
2286 done
2287
2288   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2289 fi
2290 fi
2291 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2292 if test -n "$MAKE_LOWER_TAGS"; then
2293   echo "$as_me:2293: result: $MAKE_LOWER_TAGS" >&5
2294 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2295 else
2296   echo "$as_me:2296: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2298 fi
2299
2300 if test "$cf_cv_mixedcase" = yes ; then
2301         # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2302 set dummy ${ETAGS:-etags}; ac_word=$2
2303 echo "$as_me:2303: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -n "$MAKE_UPPER_TAGS"; then
2309   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2310 else
2311   ac_save_IFS=$IFS; IFS=$ac_path_separator
2312 ac_dummy="$PATH"
2313 for ac_dir in $ac_dummy; do
2314   IFS=$ac_save_IFS
2315   test -z "$ac_dir" && ac_dir=.
2316   $as_executable_p "$ac_dir/$ac_word" || continue
2317 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2318 echo "$as_me:2318: found $ac_dir/$ac_word" >&5
2319 break
2320 done
2321
2322   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2323 fi
2324 fi
2325 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2326 if test -n "$MAKE_UPPER_TAGS"; then
2327   echo "$as_me:2327: result: $MAKE_UPPER_TAGS" >&5
2328 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2329 else
2330   echo "$as_me:2330: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2332 fi
2333
2334 else
2335         MAKE_UPPER_TAGS=no
2336 fi
2337
2338 if test "$MAKE_UPPER_TAGS" = yes ; then
2339         MAKE_UPPER_TAGS=
2340 else
2341         MAKE_UPPER_TAGS="#"
2342 fi
2343
2344 if test "$MAKE_LOWER_TAGS" = yes ; then
2345         MAKE_LOWER_TAGS=
2346 else
2347         MAKE_LOWER_TAGS="#"
2348 fi
2349
2350 for ac_prog in mawk gawk nawk awk
2351 do
2352   # Extract the first word of "$ac_prog", so it can be a program name with args.
2353 set dummy $ac_prog; ac_word=$2
2354 echo "$as_me:2354: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_AWK+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   if test -n "$AWK"; then
2360   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2361 else
2362   ac_save_IFS=$IFS; IFS=$ac_path_separator
2363 ac_dummy="$PATH"
2364 for ac_dir in $ac_dummy; do
2365   IFS=$ac_save_IFS
2366   test -z "$ac_dir" && ac_dir=.
2367   $as_executable_p "$ac_dir/$ac_word" || continue
2368 ac_cv_prog_AWK="$ac_prog"
2369 echo "$as_me:2369: found $ac_dir/$ac_word" >&5
2370 break
2371 done
2372
2373 fi
2374 fi
2375 AWK=$ac_cv_prog_AWK
2376 if test -n "$AWK"; then
2377   echo "$as_me:2377: result: $AWK" >&5
2378 echo "${ECHO_T}$AWK" >&6
2379 else
2380   echo "$as_me:2380: result: no" >&5
2381 echo "${ECHO_T}no" >&6
2382 fi
2383
2384   test -n "$AWK" && break
2385 done
2386
2387 test -z "$AWK" && { { echo "$as_me:2387: error: No awk program found" >&5
2388 echo "$as_me: error: No awk program found" >&2;}
2389    { (exit 1); exit 1; }; }
2390
2391 for ac_prog in lint cppcheck splint
2392 do
2393   # Extract the first word of "$ac_prog", so it can be a program name with args.
2394 set dummy $ac_prog; ac_word=$2
2395 echo "$as_me:2395: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2397 if test "${ac_cv_prog_LINT+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$LINT"; then
2401   ac_cv_prog_LINT="$LINT" # Let the user override the test.
2402 else
2403   ac_save_IFS=$IFS; IFS=$ac_path_separator
2404 ac_dummy="$PATH"
2405 for ac_dir in $ac_dummy; do
2406   IFS=$ac_save_IFS
2407   test -z "$ac_dir" && ac_dir=.
2408   $as_executable_p "$ac_dir/$ac_word" || continue
2409 ac_cv_prog_LINT="$ac_prog"
2410 echo "$as_me:2410: found $ac_dir/$ac_word" >&5
2411 break
2412 done
2413
2414 fi
2415 fi
2416 LINT=$ac_cv_prog_LINT
2417 if test -n "$LINT"; then
2418   echo "$as_me:2418: result: $LINT" >&5
2419 echo "${ECHO_T}$LINT" >&6
2420 else
2421   echo "$as_me:2421: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425   test -n "$LINT" && break
2426 done
2427
2428 cf_XOPEN_SOURCE=500
2429 cf_POSIX_C_SOURCE=199506L
2430 cf_xopen_source=
2431
2432 case $host_os in
2433 (aix[4-7]*)
2434         cf_xopen_source="-D_ALL_SOURCE"
2435         ;;
2436 (cygwin|msys)
2437         cf_XOPEN_SOURCE=600
2438         ;;
2439 (darwin[0-8].*)
2440         cf_xopen_source="-D_APPLE_C_SOURCE"
2441         ;;
2442 (darwin*)
2443         cf_xopen_source="-D_DARWIN_C_SOURCE"
2444         cf_XOPEN_SOURCE=
2445         ;;
2446 (freebsd*|dragonfly*)
2447         # 5.x headers associate
2448         #       _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2449         #       _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2450         cf_POSIX_C_SOURCE=200112L
2451         cf_XOPEN_SOURCE=600
2452         cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2453         ;;
2454 (hpux11*)
2455         cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2456         ;;
2457 (hpux*)
2458         cf_xopen_source="-D_HPUX_SOURCE"
2459         ;;
2460 (irix[56].*)
2461         cf_xopen_source="-D_SGI_SOURCE"
2462         cf_XOPEN_SOURCE=
2463         ;;
2464 (linux*|gnu*|mint*|k*bsd*-gnu)
2465
2466 echo "$as_me:2466: checking if we must define _GNU_SOURCE" >&5
2467 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2468 if test "${cf_cv_gnu_source+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #line 2473 "configure"
2474 #include "confdefs.h"
2475 #include <sys/types.h>
2476 int
2477 main ()
2478 {
2479
2480 #ifndef _XOPEN_SOURCE
2481 make an error
2482 #endif
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:2488: \"$ac_compile\"") >&5
2489   (eval $ac_compile) 2>&5
2490   ac_status=$?
2491   echo "$as_me:2491: \$? = $ac_status" >&5
2492   (exit $ac_status); } &&
2493          { ac_try='test -s conftest.$ac_objext'
2494   { (eval echo "$as_me:2494: \"$ac_try\"") >&5
2495   (eval $ac_try) 2>&5
2496   ac_status=$?
2497   echo "$as_me:2497: \$? = $ac_status" >&5
2498   (exit $ac_status); }; }; then
2499   cf_cv_gnu_source=no
2500 else
2501   echo "$as_me: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2503 cf_save="$CPPFLAGS"
2504          CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2505          cat >conftest.$ac_ext <<_ACEOF
2506 #line 2506 "configure"
2507 #include "confdefs.h"
2508 #include <sys/types.h>
2509 int
2510 main ()
2511 {
2512
2513 #ifdef _XOPEN_SOURCE
2514 make an error
2515 #endif
2516   ;
2517   return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:2521: \"$ac_compile\"") >&5
2522   (eval $ac_compile) 2>&5
2523   ac_status=$?
2524   echo "$as_me:2524: \$? = $ac_status" >&5
2525   (exit $ac_status); } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (eval echo "$as_me:2527: \"$ac_try\"") >&5
2528   (eval $ac_try) 2>&5
2529   ac_status=$?
2530   echo "$as_me:2530: \$? = $ac_status" >&5
2531   (exit $ac_status); }; }; then
2532   cf_cv_gnu_source=no
2533 else
2534   echo "$as_me: failed program was:" >&5
2535 cat conftest.$ac_ext >&5
2536 cf_cv_gnu_source=yes
2537 fi
2538 rm -f conftest.$ac_objext conftest.$ac_ext
2539         CPPFLAGS="$cf_save"
2540
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543
2544 fi
2545 echo "$as_me:2545: result: $cf_cv_gnu_source" >&5
2546 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2547 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2548
2549         ;;
2550 (minix*)
2551         cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
2552         ;;
2553 (mirbsd*)
2554         # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2555         cf_XOPEN_SOURCE=
2556
2557 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2558
2559 cf_save_CFLAGS="$CFLAGS"
2560 cf_save_CPPFLAGS="$CPPFLAGS"
2561
2562 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2563         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
2564                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
2565
2566 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2567         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
2568                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
2569
2570 echo "$as_me:2570: checking if we should define _POSIX_C_SOURCE" >&5
2571 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2572 if test "${cf_cv_posix_c_source+set}" = set; then
2573   echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575
2576 echo "${as_me:-configure}:2576: testing if the symbol is already defined go no further ..." 1>&5
2577
2578         cat >conftest.$ac_ext <<_ACEOF
2579 #line 2579 "configure"
2580 #include "confdefs.h"
2581 #include <sys/types.h>
2582 int
2583 main ()
2584 {
2585
2586 #ifndef _POSIX_C_SOURCE
2587 make an error
2588 #endif
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:2594: \"$ac_compile\"") >&5
2595   (eval $ac_compile) 2>&5
2596   ac_status=$?
2597   echo "$as_me:2597: \$? = $ac_status" >&5
2598   (exit $ac_status); } &&
2599          { ac_try='test -s conftest.$ac_objext'
2600   { (eval echo "$as_me:2600: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:2603: \$? = $ac_status" >&5
2604   (exit $ac_status); }; }; then
2605   cf_cv_posix_c_source=no
2606 else
2607   echo "$as_me: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2609 cf_want_posix_source=no
2610          case .$cf_POSIX_C_SOURCE in
2611          (.[12]??*)
2612                 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2613                 ;;
2614          (.2)
2615                 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2616                 cf_want_posix_source=yes
2617                 ;;
2618          (.*)
2619                 cf_want_posix_source=yes
2620                 ;;
2621          esac
2622          if test "$cf_want_posix_source" = yes ; then
2623                 cat >conftest.$ac_ext <<_ACEOF
2624 #line 2624 "configure"
2625 #include "confdefs.h"
2626 #include <sys/types.h>
2627 int
2628 main ()
2629 {
2630
2631 #ifdef _POSIX_SOURCE
2632 make an error
2633 #endif
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:2639: \"$ac_compile\"") >&5
2640   (eval $ac_compile) 2>&5
2641   ac_status=$?
2642   echo "$as_me:2642: \$? = $ac_status" >&5
2643   (exit $ac_status); } &&
2644          { ac_try='test -s conftest.$ac_objext'
2645   { (eval echo "$as_me:2645: \"$ac_try\"") >&5
2646   (eval $ac_try) 2>&5
2647   ac_status=$?
2648   echo "$as_me:2648: \$? = $ac_status" >&5
2649   (exit $ac_status); }; }; then
2650   :
2651 else
2652   echo "$as_me: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2654 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2655 fi
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2657          fi
2658
2659 echo "${as_me:-configure}:2659: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2660
2661          CFLAGS="$cf_trim_CFLAGS"
2662          CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2663
2664 echo "${as_me:-configure}:2664: testing if the second compile does not leave our definition intact error ..." 1>&5
2665
2666          cat >conftest.$ac_ext <<_ACEOF
2667 #line 2667 "configure"
2668 #include "confdefs.h"
2669 #include <sys/types.h>
2670 int
2671 main ()
2672 {
2673
2674 #ifndef _POSIX_C_SOURCE
2675 make an error
2676 #endif
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:2682: \"$ac_compile\"") >&5
2683   (eval $ac_compile) 2>&5
2684   ac_status=$?
2685   echo "$as_me:2685: \$? = $ac_status" >&5
2686   (exit $ac_status); } &&
2687          { ac_try='test -s conftest.$ac_objext'
2688   { (eval echo "$as_me:2688: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:2691: \$? = $ac_status" >&5
2692   (exit $ac_status); }; }; then
2693   :
2694 else
2695   echo "$as_me: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2697 cf_cv_posix_c_source=no
2698 fi
2699 rm -f conftest.$ac_objext conftest.$ac_ext
2700          CFLAGS="$cf_save_CFLAGS"
2701          CPPFLAGS="$cf_save_CPPFLAGS"
2702
2703 fi
2704 rm -f conftest.$ac_objext conftest.$ac_ext
2705
2706 fi
2707 echo "$as_me:2707: result: $cf_cv_posix_c_source" >&5
2708 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2709
2710 if test "$cf_cv_posix_c_source" != no ; then
2711         CFLAGS="$cf_trim_CFLAGS"
2712         CPPFLAGS="$cf_trim_CPPFLAGS"
2713
2714 cf_fix_cppflags=no
2715 cf_new_cflags=
2716 cf_new_cppflags=
2717 cf_new_extra_cppflags=
2718
2719 for cf_add_cflags in $cf_cv_posix_c_source
2720 do
2721 case $cf_fix_cppflags in
2722 (no)
2723         case $cf_add_cflags in
2724         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2725                 case $cf_add_cflags in
2726                 (-D*)
2727                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2728
2729                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2730                                 && test -z "${cf_tst_cflags}" \
2731                                 && cf_fix_cppflags=yes
2732
2733                         if test $cf_fix_cppflags = yes ; then
2734                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2735                                 continue
2736                         elif test "${cf_tst_cflags}" = "\"'" ; then
2737                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2738                                 continue
2739                         fi
2740                         ;;
2741                 esac
2742                 case "$CPPFLAGS" in
2743                 (*$cf_add_cflags)
2744                         ;;
2745                 (*)
2746                         case $cf_add_cflags in
2747                         (-D*)
2748                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2749
2750 CPPFLAGS=`echo "$CPPFLAGS" | \
2751         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
2752                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
2753
2754                                 ;;
2755                         esac
2756                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2757                         ;;
2758                 esac
2759                 ;;
2760         (*)
2761                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2762                 ;;
2763         esac
2764         ;;
2765 (yes)
2766         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2767
2768         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2769
2770         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2771                 && test -z "${cf_tst_cflags}" \
2772                 && cf_fix_cppflags=no
2773         ;;
2774 esac
2775 done
2776
2777 if test -n "$cf_new_cflags" ; then
2778
2779         CFLAGS="$CFLAGS $cf_new_cflags"
2780 fi
2781
2782 if test -n "$cf_new_cppflags" ; then
2783
2784         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2785 fi
2786
2787 if test -n "$cf_new_extra_cppflags" ; then
2788
2789         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2790 fi
2791
2792 fi
2793
2794         ;;
2795 (netbsd*)
2796         cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2797         ;;
2798 (openbsd[4-9]*)
2799         # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
2800         cf_xopen_source="-D_BSD_SOURCE"
2801         cf_XOPEN_SOURCE=600
2802         ;;
2803 (openbsd*)
2804         # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2805         ;;
2806 (os2*)
2807         cf_XOPEN_SOURCE=
2808         ;;
2809 (osf[45]*)
2810         cf_xopen_source="-D_OSF_SOURCE"
2811         ;;
2812 (nto-qnx*)
2813         cf_xopen_source="-D_QNX_SOURCE"
2814         ;;
2815 (sco*)
2816         # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2817         ;;
2818 (solaris2.*)
2819         cf_xopen_source="-D__EXTENSIONS__"
2820         cf_cv_xopen_source=broken
2821         ;;
2822 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
2823         cf_XOPEN_SOURCE=
2824         cf_POSIX_C_SOURCE=
2825         ;;
2826 (*)
2827
2828 echo "$as_me:2828: checking if we should define _XOPEN_SOURCE" >&5
2829 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2830 if test "${cf_cv_xopen_source+set}" = set; then
2831   echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833
2834         cat >conftest.$ac_ext <<_ACEOF
2835 #line 2835 "configure"
2836 #include "confdefs.h"
2837
2838 #include <stdlib.h>
2839 #include <string.h>
2840 #include <sys/types.h>
2841
2842 int
2843 main ()
2844 {
2845
2846 #ifndef _XOPEN_SOURCE
2847 make an error
2848 #endif
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5
2855   (eval $ac_compile) 2>&5
2856   ac_status=$?
2857   echo "$as_me:2857: \$? = $ac_status" >&5
2858   (exit $ac_status); } &&
2859          { ac_try='test -s conftest.$ac_objext'
2860   { (eval echo "$as_me:2860: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:2863: \$? = $ac_status" >&5
2864   (exit $ac_status); }; }; then
2865   cf_cv_xopen_source=no
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2869 cf_save="$CPPFLAGS"
2870          CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2871          cat >conftest.$ac_ext <<_ACEOF
2872 #line 2872 "configure"
2873 #include "confdefs.h"
2874
2875 #include <stdlib.h>
2876 #include <string.h>
2877 #include <sys/types.h>
2878
2879 int
2880 main ()
2881 {
2882
2883 #ifdef _XOPEN_SOURCE
2884 make an error
2885 #endif
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:2891: \"$ac_compile\"") >&5
2892   (eval $ac_compile) 2>&5
2893   ac_status=$?
2894   echo "$as_me:2894: \$? = $ac_status" >&5
2895   (exit $ac_status); } &&
2896          { ac_try='test -s conftest.$ac_objext'
2897   { (eval echo "$as_me:2897: \"$ac_try\"") >&5
2898   (eval $ac_try) 2>&5
2899   ac_status=$?
2900   echo "$as_me:2900: \$? = $ac_status" >&5
2901   (exit $ac_status); }; }; then
2902   cf_cv_xopen_source=no
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 cf_cv_xopen_source=$cf_XOPEN_SOURCE
2907 fi
2908 rm -f conftest.$ac_objext conftest.$ac_ext
2909         CPPFLAGS="$cf_save"
2910
2911 fi
2912 rm -f conftest.$ac_objext conftest.$ac_ext
2913
2914 fi
2915 echo "$as_me:2915: result: $cf_cv_xopen_source" >&5
2916 echo "${ECHO_T}$cf_cv_xopen_source" >&6
2917
2918 if test "$cf_cv_xopen_source" != no ; then
2919
2920 CFLAGS=`echo "$CFLAGS" | \
2921         sed     -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?[         ]/ /g' \
2922                 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?$//g'`
2923
2924 CPPFLAGS=`echo "$CPPFLAGS" | \
2925         sed     -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?[         ]/ /g' \
2926                 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?$//g'`
2927
2928         cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
2929
2930 cf_fix_cppflags=no
2931 cf_new_cflags=
2932 cf_new_cppflags=
2933 cf_new_extra_cppflags=
2934
2935 for cf_add_cflags in $cf_temp_xopen_source
2936 do
2937 case $cf_fix_cppflags in
2938 (no)
2939         case $cf_add_cflags in
2940         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2941                 case $cf_add_cflags in
2942                 (-D*)
2943                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2944
2945                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2946                                 && test -z "${cf_tst_cflags}" \
2947                                 && cf_fix_cppflags=yes
2948
2949                         if test $cf_fix_cppflags = yes ; then
2950                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2951                                 continue
2952                         elif test "${cf_tst_cflags}" = "\"'" ; then
2953                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2954                                 continue
2955                         fi
2956                         ;;
2957                 esac
2958                 case "$CPPFLAGS" in
2959                 (*$cf_add_cflags)
2960                         ;;
2961                 (*)
2962                         case $cf_add_cflags in
2963                         (-D*)
2964                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2965
2966 CPPFLAGS=`echo "$CPPFLAGS" | \
2967         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
2968                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
2969
2970                                 ;;
2971                         esac
2972                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2973                         ;;
2974                 esac
2975                 ;;
2976         (*)
2977                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2978                 ;;
2979         esac
2980         ;;
2981 (yes)
2982         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2983
2984         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2985
2986         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2987                 && test -z "${cf_tst_cflags}" \
2988                 && cf_fix_cppflags=no
2989         ;;
2990 esac
2991 done
2992
2993 if test -n "$cf_new_cflags" ; then
2994
2995         CFLAGS="$CFLAGS $cf_new_cflags"
2996 fi
2997
2998 if test -n "$cf_new_cppflags" ; then
2999
3000         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3001 fi
3002
3003 if test -n "$cf_new_extra_cppflags" ; then
3004
3005         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3006 fi
3007
3008 fi
3009
3010 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3011
3012 cf_save_CFLAGS="$CFLAGS"
3013 cf_save_CPPFLAGS="$CPPFLAGS"
3014
3015 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3016         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
3017                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
3018
3019 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3020         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
3021                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
3022
3023 echo "$as_me:3023: checking if we should define _POSIX_C_SOURCE" >&5
3024 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3025 if test "${cf_cv_posix_c_source+set}" = set; then
3026   echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028
3029 echo "${as_me:-configure}:3029: testing if the symbol is already defined go no further ..." 1>&5
3030
3031         cat >conftest.$ac_ext <<_ACEOF
3032 #line 3032 "configure"
3033 #include "confdefs.h"
3034 #include <sys/types.h>
3035 int
3036 main ()
3037 {
3038
3039 #ifndef _POSIX_C_SOURCE
3040 make an error
3041 #endif
3042   ;
3043   return 0;
3044 }
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (eval echo "$as_me:3047: \"$ac_compile\"") >&5
3048   (eval $ac_compile) 2>&5
3049   ac_status=$?
3050   echo "$as_me:3050: \$? = $ac_status" >&5
3051   (exit $ac_status); } &&
3052          { ac_try='test -s conftest.$ac_objext'
3053   { (eval echo "$as_me:3053: \"$ac_try\"") >&5
3054   (eval $ac_try) 2>&5
3055   ac_status=$?
3056   echo "$as_me:3056: \$? = $ac_status" >&5
3057   (exit $ac_status); }; }; then
3058   cf_cv_posix_c_source=no
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3062 cf_want_posix_source=no
3063          case .$cf_POSIX_C_SOURCE in
3064          (.[12]??*)
3065                 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3066                 ;;
3067          (.2)
3068                 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3069                 cf_want_posix_source=yes
3070                 ;;
3071          (.*)
3072                 cf_want_posix_source=yes
3073                 ;;
3074          esac
3075          if test "$cf_want_posix_source" = yes ; then
3076                 cat >conftest.$ac_ext <<_ACEOF
3077 #line 3077 "configure"
3078 #include "confdefs.h"
3079 #include <sys/types.h>
3080 int
3081 main ()
3082 {
3083
3084 #ifdef _POSIX_SOURCE
3085 make an error
3086 #endif
3087   ;
3088   return 0;
3089 }
3090 _ACEOF
3091 rm -f conftest.$ac_objext
3092 if { (eval echo "$as_me:3092: \"$ac_compile\"") >&5
3093   (eval $ac_compile) 2>&5
3094   ac_status=$?
3095   echo "$as_me:3095: \$? = $ac_status" >&5
3096   (exit $ac_status); } &&
3097          { ac_try='test -s conftest.$ac_objext'
3098   { (eval echo "$as_me:3098: \"$ac_try\"") >&5
3099   (eval $ac_try) 2>&5
3100   ac_status=$?
3101   echo "$as_me:3101: \$? = $ac_status" >&5
3102   (exit $ac_status); }; }; then
3103   :
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3107 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3108 fi
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3110          fi
3111
3112 echo "${as_me:-configure}:3112: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3113
3114          CFLAGS="$cf_trim_CFLAGS"
3115          CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3116
3117 echo "${as_me:-configure}:3117: testing if the second compile does not leave our definition intact error ..." 1>&5
3118
3119          cat >conftest.$ac_ext <<_ACEOF
3120 #line 3120 "configure"
3121 #include "confdefs.h"
3122 #include <sys/types.h>
3123 int
3124 main ()
3125 {
3126
3127 #ifndef _POSIX_C_SOURCE
3128 make an error
3129 #endif
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (eval echo "$as_me:3135: \"$ac_compile\"") >&5
3136   (eval $ac_compile) 2>&5
3137   ac_status=$?
3138   echo "$as_me:3138: \$? = $ac_status" >&5
3139   (exit $ac_status); } &&
3140          { ac_try='test -s conftest.$ac_objext'
3141   { (eval echo "$as_me:3141: \"$ac_try\"") >&5
3142   (eval $ac_try) 2>&5
3143   ac_status=$?
3144   echo "$as_me:3144: \$? = $ac_status" >&5
3145   (exit $ac_status); }; }; then
3146   :
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3150 cf_cv_posix_c_source=no
3151 fi
3152 rm -f conftest.$ac_objext conftest.$ac_ext
3153          CFLAGS="$cf_save_CFLAGS"
3154          CPPFLAGS="$cf_save_CPPFLAGS"
3155
3156 fi
3157 rm -f conftest.$ac_objext conftest.$ac_ext
3158
3159 fi
3160 echo "$as_me:3160: result: $cf_cv_posix_c_source" >&5
3161 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3162
3163 if test "$cf_cv_posix_c_source" != no ; then
3164         CFLAGS="$cf_trim_CFLAGS"
3165         CPPFLAGS="$cf_trim_CPPFLAGS"
3166
3167 cf_fix_cppflags=no
3168 cf_new_cflags=
3169 cf_new_cppflags=
3170 cf_new_extra_cppflags=
3171
3172 for cf_add_cflags in $cf_cv_posix_c_source
3173 do
3174 case $cf_fix_cppflags in
3175 (no)
3176         case $cf_add_cflags in
3177         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3178                 case $cf_add_cflags in
3179                 (-D*)
3180                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3181
3182                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3183                                 && test -z "${cf_tst_cflags}" \
3184                                 && cf_fix_cppflags=yes
3185
3186                         if test $cf_fix_cppflags = yes ; then
3187                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3188                                 continue
3189                         elif test "${cf_tst_cflags}" = "\"'" ; then
3190                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3191                                 continue
3192                         fi
3193                         ;;
3194                 esac
3195                 case "$CPPFLAGS" in
3196                 (*$cf_add_cflags)
3197                         ;;
3198                 (*)
3199                         case $cf_add_cflags in
3200                         (-D*)
3201                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3202
3203 CPPFLAGS=`echo "$CPPFLAGS" | \
3204         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
3205                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
3206
3207                                 ;;
3208                         esac
3209                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3210                         ;;
3211                 esac
3212                 ;;
3213         (*)
3214                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3215                 ;;
3216         esac
3217         ;;
3218 (yes)
3219         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3220
3221         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3222
3223         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3224                 && test -z "${cf_tst_cflags}" \
3225                 && cf_fix_cppflags=no
3226         ;;
3227 esac
3228 done
3229
3230 if test -n "$cf_new_cflags" ; then
3231
3232         CFLAGS="$CFLAGS $cf_new_cflags"
3233 fi
3234
3235 if test -n "$cf_new_cppflags" ; then
3236
3237         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3238 fi
3239
3240 if test -n "$cf_new_extra_cppflags" ; then
3241
3242         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3243 fi
3244
3245 fi
3246
3247         ;;
3248 esac
3249
3250 if test -n "$cf_xopen_source" ; then
3251
3252 cf_fix_cppflags=no
3253 cf_new_cflags=
3254 cf_new_cppflags=
3255 cf_new_extra_cppflags=
3256
3257 for cf_add_cflags in $cf_xopen_source
3258 do
3259 case $cf_fix_cppflags in
3260 (no)
3261         case $cf_add_cflags in
3262         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3263                 case $cf_add_cflags in
3264                 (-D*)
3265                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3266
3267                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3268                                 && test -z "${cf_tst_cflags}" \
3269                                 && cf_fix_cppflags=yes
3270
3271                         if test $cf_fix_cppflags = yes ; then
3272                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3273                                 continue
3274                         elif test "${cf_tst_cflags}" = "\"'" ; then
3275                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3276                                 continue
3277                         fi
3278                         ;;
3279                 esac
3280                 case "$CPPFLAGS" in
3281                 (*$cf_add_cflags)
3282                         ;;
3283                 (*)
3284                         case $cf_add_cflags in
3285                         (-D*)
3286                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3287
3288 CPPFLAGS=`echo "$CPPFLAGS" | \
3289         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
3290                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
3291
3292                                 ;;
3293                         esac
3294                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3295                         ;;
3296                 esac
3297                 ;;
3298         (*)
3299                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3300                 ;;
3301         esac
3302         ;;
3303 (yes)
3304         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3305
3306         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3307
3308         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3309                 && test -z "${cf_tst_cflags}" \
3310                 && cf_fix_cppflags=no
3311         ;;
3312 esac
3313 done
3314
3315 if test -n "$cf_new_cflags" ; then
3316         test -n "$verbose" && echo "    add to \$CFLAGS $cf_new_cflags" 1>&6
3317
3318 echo "${as_me:-configure}:3318: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3319
3320         CFLAGS="$CFLAGS $cf_new_cflags"
3321 fi
3322
3323 if test -n "$cf_new_cppflags" ; then
3324         test -n "$verbose" && echo "    add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3325
3326 echo "${as_me:-configure}:3326: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3327
3328         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3329 fi
3330
3331 if test -n "$cf_new_extra_cppflags" ; then
3332         test -n "$verbose" && echo "    add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3333
3334 echo "${as_me:-configure}:3334: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
3335
3336         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3337 fi
3338
3339 fi
3340
3341 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3342         echo "$as_me:3342: checking if _XOPEN_SOURCE really is set" >&5
3343 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3344         cat >conftest.$ac_ext <<_ACEOF
3345 #line 3345 "configure"
3346 #include "confdefs.h"
3347 #include <stdlib.h>
3348 int
3349 main ()
3350 {
3351
3352 #ifndef _XOPEN_SOURCE
3353 make an error
3354 #endif
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:3360: \"$ac_compile\"") >&5
3361   (eval $ac_compile) 2>&5
3362   ac_status=$?
3363   echo "$as_me:3363: \$? = $ac_status" >&5
3364   (exit $ac_status); } &&
3365          { ac_try='test -s conftest.$ac_objext'
3366   { (eval echo "$as_me:3366: \"$ac_try\"") >&5
3367   (eval $ac_try) 2>&5
3368   ac_status=$?
3369   echo "$as_me:3369: \$? = $ac_status" >&5
3370   (exit $ac_status); }; }; then
3371   cf_XOPEN_SOURCE_set=yes
3372 else
3373   echo "$as_me: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3375 cf_XOPEN_SOURCE_set=no
3376 fi
3377 rm -f conftest.$ac_objext conftest.$ac_ext
3378         echo "$as_me:3378: result: $cf_XOPEN_SOURCE_set" >&5
3379 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3380         if test $cf_XOPEN_SOURCE_set = yes
3381         then
3382                 cat >conftest.$ac_ext <<_ACEOF
3383 #line 3383 "configure"
3384 #include "confdefs.h"
3385 #include <stdlib.h>
3386 int
3387 main ()
3388 {
3389
3390 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3391 make an error
3392 #endif
3393   ;
3394   return 0;
3395 }
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:3398: \"$ac_compile\"") >&5
3399   (eval $ac_compile) 2>&5
3400   ac_status=$?
3401   echo "$as_me:3401: \$? = $ac_status" >&5
3402   (exit $ac_status); } &&
3403          { ac_try='test -s conftest.$ac_objext'
3404   { (eval echo "$as_me:3404: \"$ac_try\"") >&5
3405   (eval $ac_try) 2>&5
3406   ac_status=$?
3407   echo "$as_me:3407: \$? = $ac_status" >&5
3408   (exit $ac_status); }; }; then
3409   cf_XOPEN_SOURCE_set_ok=yes
3410 else
3411   echo "$as_me: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 cf_XOPEN_SOURCE_set_ok=no
3414 fi
3415 rm -f conftest.$ac_objext conftest.$ac_ext
3416                 if test $cf_XOPEN_SOURCE_set_ok = no
3417                 then
3418                         { echo "$as_me:3418: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3419 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3420                 fi
3421         else
3422
3423 echo "$as_me:3423: checking if we should define _XOPEN_SOURCE" >&5
3424 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3425 if test "${cf_cv_xopen_source+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428
3429         cat >conftest.$ac_ext <<_ACEOF
3430 #line 3430 "configure"
3431 #include "confdefs.h"
3432
3433 #include <stdlib.h>
3434 #include <string.h>
3435 #include <sys/types.h>
3436
3437 int
3438 main ()
3439 {
3440
3441 #ifndef _XOPEN_SOURCE
3442 make an error
3443 #endif
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:3449: \"$ac_compile\"") >&5
3450   (eval $ac_compile) 2>&5
3451   ac_status=$?
3452   echo "$as_me:3452: \$? = $ac_status" >&5
3453   (exit $ac_status); } &&
3454          { ac_try='test -s conftest.$ac_objext'
3455   { (eval echo "$as_me:3455: \"$ac_try\"") >&5
3456   (eval $ac_try) 2>&5
3457   ac_status=$?
3458   echo "$as_me:3458: \$? = $ac_status" >&5
3459   (exit $ac_status); }; }; then
3460   cf_cv_xopen_source=no
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3464 cf_save="$CPPFLAGS"
3465          CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3466          cat >conftest.$ac_ext <<_ACEOF
3467 #line 3467 "configure"
3468 #include "confdefs.h"
3469
3470 #include <stdlib.h>
3471 #include <string.h>
3472 #include <sys/types.h>
3473
3474 int
3475 main ()
3476 {
3477
3478 #ifdef _XOPEN_SOURCE
3479 make an error
3480 #endif
3481   ;
3482   return 0;
3483 }
3484 _ACEOF
3485 rm -f conftest.$ac_objext
3486 if { (eval echo "$as_me:3486: \"$ac_compile\"") >&5
3487   (eval $ac_compile) 2>&5
3488   ac_status=$?
3489   echo "$as_me:3489: \$? = $ac_status" >&5
3490   (exit $ac_status); } &&
3491          { ac_try='test -s conftest.$ac_objext'
3492   { (eval echo "$as_me:3492: \"$ac_try\"") >&5
3493   (eval $ac_try) 2>&5
3494   ac_status=$?
3495   echo "$as_me:3495: \$? = $ac_status" >&5
3496   (exit $ac_status); }; }; then
3497   cf_cv_xopen_source=no
3498 else
3499   echo "$as_me: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3501 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3502 fi
3503 rm -f conftest.$ac_objext conftest.$ac_ext
3504         CPPFLAGS="$cf_save"
3505
3506 fi
3507 rm -f conftest.$ac_objext conftest.$ac_ext
3508
3509 fi
3510 echo "$as_me:3510: result: $cf_cv_xopen_source" >&5
3511 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3512
3513 if test "$cf_cv_xopen_source" != no ; then
3514
3515 CFLAGS=`echo "$CFLAGS" | \
3516         sed     -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?[         ]/ /g' \
3517                 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?$//g'`
3518
3519 CPPFLAGS=`echo "$CPPFLAGS" | \
3520         sed     -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?[         ]/ /g' \
3521                 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?$//g'`
3522
3523         cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3524
3525 cf_fix_cppflags=no
3526 cf_new_cflags=
3527 cf_new_cppflags=
3528 cf_new_extra_cppflags=
3529
3530 for cf_add_cflags in $cf_temp_xopen_source
3531 do
3532 case $cf_fix_cppflags in
3533 (no)
3534         case $cf_add_cflags in
3535         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3536                 case $cf_add_cflags in
3537                 (-D*)
3538                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3539
3540                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3541                                 && test -z "${cf_tst_cflags}" \
3542                                 && cf_fix_cppflags=yes
3543
3544                         if test $cf_fix_cppflags = yes ; then
3545                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3546                                 continue
3547                         elif test "${cf_tst_cflags}" = "\"'" ; then
3548                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3549                                 continue
3550                         fi
3551                         ;;
3552                 esac
3553                 case "$CPPFLAGS" in
3554                 (*$cf_add_cflags)
3555                         ;;
3556                 (*)
3557                         case $cf_add_cflags in
3558                         (-D*)
3559                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3560
3561 CPPFLAGS=`echo "$CPPFLAGS" | \
3562         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
3563                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
3564
3565                                 ;;
3566                         esac
3567                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3568                         ;;
3569                 esac
3570                 ;;
3571         (*)
3572                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3573                 ;;
3574         esac
3575         ;;
3576 (yes)
3577         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3578
3579         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3580
3581         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3582                 && test -z "${cf_tst_cflags}" \
3583                 && cf_fix_cppflags=no
3584         ;;
3585 esac
3586 done
3587
3588 if test -n "$cf_new_cflags" ; then
3589
3590         CFLAGS="$CFLAGS $cf_new_cflags"
3591 fi
3592
3593 if test -n "$cf_new_cppflags" ; then
3594
3595         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3596 fi
3597
3598 if test -n "$cf_new_extra_cppflags" ; then
3599
3600         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3601 fi
3602
3603 fi
3604
3605         fi
3606 fi
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 ac_main_return=return
3614 echo "$as_me:3614: checking how to run the C preprocessor" >&5
3615 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3616 # On Suns, sometimes $CPP names a directory.
3617 if test -n "$CPP" && test -d "$CPP"; then
3618   CPP=
3619 fi
3620 if test -z "$CPP"; then
3621   if test "${ac_cv_prog_CPP+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624       # Double quotes because CPP needs to be expanded
3625     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3626     do
3627       ac_preproc_ok=false
3628 for ac_c_preproc_warn_flag in '' yes
3629 do
3630   # Use a header file that comes with gcc, so configuring glibc
3631   # with a fresh cross-compiler works.
3632   # On the NeXT, cc -E runs the code through the compiler's parser,
3633   # not just through cpp. "Syntax error" is here to catch this case.
3634   cat >conftest.$ac_ext <<_ACEOF
3635 #line 3635 "configure"
3636 #include "confdefs.h"
3637 #include <assert.h>
3638                      Syntax error
3639 _ACEOF
3640 if { (eval echo "$as_me:3640: \"$ac_cpp conftest.$ac_ext\"") >&5
3641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3642   ac_status=$?
3643   egrep -v '^ *\+' conftest.er1 >conftest.err
3644   rm -f conftest.er1
3645   cat conftest.err >&5
3646   echo "$as_me:3646: \$? = $ac_status" >&5
3647   (exit $ac_status); } >/dev/null; then
3648   if test -s conftest.err; then
3649     ac_cpp_err=$ac_c_preproc_warn_flag
3650   else
3651     ac_cpp_err=
3652   fi
3653 else
3654   ac_cpp_err=yes
3655 fi
3656 if test -z "$ac_cpp_err"; then
3657   :
3658 else
3659   echo "$as_me: failed program was:" >&5
3660   cat conftest.$ac_ext >&5
3661   # Broken: fails on valid input.
3662 continue
3663 fi
3664 rm -f conftest.err conftest.$ac_ext
3665
3666   # OK, works on sane cases.  Now check whether non-existent headers
3667   # can be detected and how.
3668   cat >conftest.$ac_ext <<_ACEOF
3669 #line 3669 "configure"
3670 #include "confdefs.h"
3671 #include <ac_nonexistent.h>
3672 _ACEOF
3673 if { (eval echo "$as_me:3673: \"$ac_cpp conftest.$ac_ext\"") >&5
3674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3675   ac_status=$?
3676   egrep -v '^ *\+' conftest.er1 >conftest.err
3677   rm -f conftest.er1
3678   cat conftest.err >&5
3679   echo "$as_me:3679: \$? = $ac_status" >&5
3680   (exit $ac_status); } >/dev/null; then
3681   if test -s conftest.err; then
3682     ac_cpp_err=$ac_c_preproc_warn_flag
3683   else
3684     ac_cpp_err=
3685   fi
3686 else
3687   ac_cpp_err=yes
3688 fi
3689 if test -z "$ac_cpp_err"; then
3690   # Broken: success on invalid input.
3691 continue
3692 else
3693   echo "$as_me: failed program was:" >&5
3694   cat conftest.$ac_ext >&5
3695   # Passes both tests.
3696 ac_preproc_ok=:
3697 break
3698 fi
3699 rm -f conftest.err conftest.$ac_ext
3700
3701 done
3702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3703 rm -f conftest.err conftest.$ac_ext
3704 if $ac_preproc_ok; then
3705   break
3706 fi
3707
3708     done
3709     ac_cv_prog_CPP=$CPP
3710
3711 fi
3712   CPP=$ac_cv_prog_CPP
3713 else
3714   ac_cv_prog_CPP=$CPP
3715 fi
3716 echo "$as_me:3716: result: $CPP" >&5
3717 echo "${ECHO_T}$CPP" >&6
3718 ac_preproc_ok=false
3719 for ac_c_preproc_warn_flag in '' yes
3720 do
3721   # Use a header file that comes with gcc, so configuring glibc
3722   # with a fresh cross-compiler works.
3723   # On the NeXT, cc -E runs the code through the compiler's parser,
3724   # not just through cpp. "Syntax error" is here to catch this case.
3725   cat >conftest.$ac_ext <<_ACEOF
3726 #line 3726 "configure"
3727 #include "confdefs.h"
3728 #include <assert.h>
3729                      Syntax error
3730 _ACEOF
3731 if { (eval echo "$as_me:3731: \"$ac_cpp conftest.$ac_ext\"") >&5
3732   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3733   ac_status=$?
3734   egrep -v '^ *\+' conftest.er1 >conftest.err
3735   rm -f conftest.er1
3736   cat conftest.err >&5
3737   echo "$as_me:3737: \$? = $ac_status" >&5
3738   (exit $ac_status); } >/dev/null; then
3739   if test -s conftest.err; then
3740     ac_cpp_err=$ac_c_preproc_warn_flag
3741   else
3742     ac_cpp_err=
3743   fi
3744 else
3745   ac_cpp_err=yes
3746 fi
3747 if test -z "$ac_cpp_err"; then
3748   :
3749 else
3750   echo "$as_me: failed program was:" >&5
3751   cat conftest.$ac_ext >&5
3752   # Broken: fails on valid input.
3753 continue
3754 fi
3755 rm -f conftest.err conftest.$ac_ext
3756
3757   # OK, works on sane cases.  Now check whether non-existent headers
3758   # can be detected and how.
3759   cat >conftest.$ac_ext <<_ACEOF
3760 #line 3760 "configure"
3761 #include "confdefs.h"
3762 #include <ac_nonexistent.h>
3763 _ACEOF
3764 if { (eval echo "$as_me:3764: \"$ac_cpp conftest.$ac_ext\"") >&5
3765   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3766   ac_status=$?
3767   egrep -v '^ *\+' conftest.er1 >conftest.err
3768   rm -f conftest.er1
3769   cat conftest.err >&5
3770   echo "$as_me:3770: \$? = $ac_status" >&5
3771   (exit $ac_status); } >/dev/null; then
3772   if test -s conftest.err; then
3773     ac_cpp_err=$ac_c_preproc_warn_flag
3774   else
3775     ac_cpp_err=
3776   fi
3777 else
3778   ac_cpp_err=yes
3779 fi
3780 if test -z "$ac_cpp_err"; then
3781   # Broken: success on invalid input.
3782 continue
3783 else
3784   echo "$as_me: failed program was:" >&5
3785   cat conftest.$ac_ext >&5
3786   # Passes both tests.
3787 ac_preproc_ok=:
3788 break
3789 fi
3790 rm -f conftest.err conftest.$ac_ext
3791
3792 done
3793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3794 rm -f conftest.err conftest.$ac_ext
3795 if $ac_preproc_ok; then
3796   :
3797 else
3798   { { echo "$as_me:3798: error: C preprocessor \"$CPP\" fails sanity check" >&5
3799 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3800    { (exit 1); exit 1; }; }
3801 fi
3802
3803 ac_ext=c
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808 ac_main_return=return
3809
3810 for ac_header in fcntl.h
3811 do
3812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3813 echo "$as_me:3813: checking for $ac_header" >&5
3814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   cat >conftest.$ac_ext <<_ACEOF
3819 #line 3819 "configure"
3820 #include "confdefs.h"
3821 #include <$ac_header>
3822 _ACEOF
3823 if { (eval echo "$as_me:3823: \"$ac_cpp conftest.$ac_ext\"") >&5
3824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3825   ac_status=$?
3826   egrep -v '^ *\+' conftest.er1 >conftest.err
3827   rm -f conftest.er1
3828   cat conftest.err >&5
3829   echo "$as_me:3829: \$? = $ac_status" >&5
3830   (exit $ac_status); } >/dev/null; then
3831   if test -s conftest.err; then
3832     ac_cpp_err=$ac_c_preproc_warn_flag
3833   else
3834     ac_cpp_err=
3835   fi
3836 else
3837   ac_cpp_err=yes
3838 fi
3839 if test -z "$ac_cpp_err"; then
3840   eval "$as_ac_Header=yes"
3841 else
3842   echo "$as_me: failed program was:" >&5
3843   cat conftest.$ac_ext >&5
3844   eval "$as_ac_Header=no"
3845 fi
3846 rm -f conftest.err conftest.$ac_ext
3847 fi
3848 echo "$as_me:3848: result: `eval echo '${'$as_ac_Header'}'`" >&5
3849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3851   cat >>confdefs.h <<EOF
3852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3853 EOF
3854
3855 fi
3856 done
3857
3858 echo "$as_me:3858: checking for working mkstemp" >&5
3859 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
3860 if test "${cf_cv_func_mkstemp+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863
3864 rm -rf conftest*
3865 if test "$cross_compiling" = yes; then
3866   cf_cv_func_mkstemp=maybe
3867 else
3868   cat >conftest.$ac_ext <<_ACEOF
3869 #line 3869 "configure"
3870 #include "confdefs.h"
3871
3872 #include <sys/types.h>
3873 #include <stdlib.h>
3874 #include <stdio.h>
3875 #include <string.h>
3876 #include <sys/stat.h>
3877 int main()
3878 {
3879         char *tmpl = "conftestXXXXXX";
3880         char name[2][80];
3881         int n;
3882         int result = 0;
3883         int fd;
3884         struct stat sb;
3885
3886         umask(077);
3887         for (n = 0; n < 2; ++n) {
3888                 strcpy(name[n], tmpl);
3889                 if ((fd = mkstemp(name[n])) >= 0) {
3890                         if (!strcmp(name[n], tmpl)
3891                          || stat(name[n], &sb) != 0
3892                          || (sb.st_mode & S_IFMT) != S_IFREG
3893                          || (sb.st_mode & 077) != 0) {
3894                                 result = 1;
3895                         }
3896                         close(fd);
3897                 }
3898         }
3899         if (result == 0
3900          && !strcmp(name[0], name[1]))
3901                 result = 1;
3902         ${cf_cv_main_return:-return}(result);
3903 }
3904
3905 _ACEOF
3906 rm -f conftest$ac_exeext
3907 if { (eval echo "$as_me:3907: \"$ac_link\"") >&5
3908   (eval $ac_link) 2>&5
3909   ac_status=$?
3910   echo "$as_me:3910: \$? = $ac_status" >&5
3911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3912   { (eval echo "$as_me:3912: \"$ac_try\"") >&5
3913   (eval $ac_try) 2>&5
3914   ac_status=$?
3915   echo "$as_me:3915: \$? = $ac_status" >&5
3916   (exit $ac_status); }; }; then
3917   cf_cv_func_mkstemp=yes
3918
3919 else
3920   echo "$as_me: program exited with status $ac_status" >&5
3921 echo "$as_me: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3923 cf_cv_func_mkstemp=no
3924
3925 fi
3926 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3927 fi
3928
3929 fi
3930 echo "$as_me:3930: result: $cf_cv_func_mkstemp" >&5
3931 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
3932 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
3933         echo "$as_me:3933: checking for mkstemp" >&5
3934 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
3935 if test "${ac_cv_func_mkstemp+set}" = set; then
3936   echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938   cat >conftest.$ac_ext <<_ACEOF
3939 #line 3939 "configure"
3940 #include "confdefs.h"
3941 /* System header to define __stub macros and hopefully few prototypes,
3942     which can conflict with char mkstemp (); below.  */
3943 #include <assert.h>
3944 /* Override any gcc2 internal prototype to avoid an error.  */
3945 #ifdef __cplusplus
3946 extern "C"
3947 #endif
3948 /* We use char because int might match the return type of a gcc2
3949    builtin and then its argument prototype would still apply.  */
3950 char mkstemp ();
3951 char (*f) ();
3952
3953 int
3954 main ()
3955 {
3956 /* The GNU C library defines this for functions which it implements
3957     to always fail with ENOSYS.  Some functions are actually named
3958     something starting with __ and the normal name is an alias.  */
3959 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
3960 choke me
3961 #else
3962 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3963 #endif
3964
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 rm -f conftest.$ac_objext conftest$ac_exeext
3970 if { (eval echo "$as_me:3970: \"$ac_link\"") >&5
3971   (eval $ac_link) 2>&5
3972   ac_status=$?
3973   echo "$as_me:3973: \$? = $ac_status" >&5
3974   (exit $ac_status); } &&
3975          { ac_try='test -s conftest$ac_exeext'
3976   { (eval echo "$as_me:3976: \"$ac_try\"") >&5
3977   (eval $ac_try) 2>&5
3978   ac_status=$?
3979   echo "$as_me:3979: \$? = $ac_status" >&5
3980   (exit $ac_status); }; }; then
3981   ac_cv_func_mkstemp=yes
3982 else
3983   echo "$as_me: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3985 ac_cv_func_mkstemp=no
3986 fi
3987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3988 fi
3989 echo "$as_me:3989: result: $ac_cv_func_mkstemp" >&5
3990 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
3991
3992 fi
3993 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
3994
3995 cat >>confdefs.h <<\EOF
3996 #define HAVE_MKSTEMP 1
3997 EOF
3998
3999 fi
4000
4001 for ac_func in vsnprintf
4002 do
4003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4004 echo "$as_me:4004: checking for $ac_func" >&5
4005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4006 if eval "test \"\${$as_ac_var+set}\" = set"; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   cat >conftest.$ac_ext <<_ACEOF
4010 #line 4010 "configure"
4011 #include "confdefs.h"
4012 /* System header to define __stub macros and hopefully few prototypes,
4013     which can conflict with char $ac_func (); below.  */
4014 #include <assert.h>
4015 /* Override any gcc2 internal prototype to avoid an error.  */
4016 #ifdef __cplusplus
4017 extern "C"
4018 #endif
4019 /* We use char because int might match the return type of a gcc2
4020    builtin and then its argument prototype would still apply.  */
4021 char $ac_func ();
4022 char (*f) ();
4023
4024 int
4025 main ()
4026 {
4027 /* The GNU C library defines this for functions which it implements
4028     to always fail with ENOSYS.  Some functions are actually named
4029     something starting with __ and the normal name is an alias.  */
4030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4031 choke me
4032 #else
4033 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4034 #endif
4035
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 rm -f conftest.$ac_objext conftest$ac_exeext
4041 if { (eval echo "$as_me:4041: \"$ac_link\"") >&5
4042   (eval $ac_link) 2>&5
4043   ac_status=$?
4044   echo "$as_me:4044: \$? = $ac_status" >&5
4045   (exit $ac_status); } &&
4046          { ac_try='test -s conftest$ac_exeext'
4047   { (eval echo "$as_me:4047: \"$ac_try\"") >&5
4048   (eval $ac_try) 2>&5
4049   ac_status=$?
4050   echo "$as_me:4050: \$? = $ac_status" >&5
4051   (exit $ac_status); }; }; then
4052   eval "$as_ac_var=yes"
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4056 eval "$as_ac_var=no"
4057 fi
4058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4059 fi
4060 echo "$as_me:4060: result: `eval echo '${'$as_ac_var'}'`" >&5
4061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4062 if test `eval echo '${'$as_ac_var'}'` = yes; then
4063   cat >>confdefs.h <<EOF
4064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4065 EOF
4066
4067 fi
4068 done
4069
4070 echo "$as_me:4070: checking for maximum table size" >&5
4071 echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
4072
4073 # Check whether --with-max-table-size or --without-max-table-size was given.
4074 if test "${with_max_table_size+set}" = set; then
4075   withval="$with_max_table_size"
4076
4077 fi;
4078 if test -n "$with_max_table_size"
4079 then
4080         echo "$as_me:4080: result: $with_max_table_size" >&5
4081 echo "${ECHO_T}$with_max_table_size" >&6
4082         check=`expr "$with_max_table_size" + 0`
4083         if test "x$check" != "x$with_max_table_size"
4084         then
4085                 { { echo "$as_me:4085: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
4086 echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
4087    { (exit 1); exit 1; }; }
4088         fi
4089
4090 cat >>confdefs.h <<EOF
4091 #define MAXTABLE $with_max_table_size
4092 EOF
4093
4094 else
4095         echo "$as_me:4095: result: default" >&5
4096 echo "${ECHO_T}default" >&6
4097 fi
4098
4099 echo "$as_me:4099: checking if backtracking extension is wanted" >&5
4100 echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
4101
4102 # Check whether --enable-btyacc or --disable-btyacc was given.
4103 if test "${enable_btyacc+set}" = set; then
4104   enableval="$enable_btyacc"
4105
4106 fi;
4107 echo "$as_me:4107: result: $enable_btyacc" >&5
4108 echo "${ECHO_T}$enable_btyacc" >&6
4109 if test "$enable_btyacc" = "yes"; then
4110
4111 cat >>confdefs.h <<\EOF
4112 #define YYBTYACC 1
4113 EOF
4114
4115         SKELETON=btyaccpar
4116 else
4117         SKELETON=yaccpar
4118 fi
4119
4120 if ( test "$GCC" = yes || test "$GXX" = yes )
4121 then
4122 echo "$as_me:4122: checking if you want to check for gcc warnings" >&5
4123 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
4124
4125 # Check whether --with-warnings or --without-warnings was given.
4126 if test "${with_warnings+set}" = set; then
4127   withval="$with_warnings"
4128   cf_opt_with_warnings=$withval
4129 else
4130   cf_opt_with_warnings=no
4131 fi;
4132 echo "$as_me:4132: result: $cf_opt_with_warnings" >&5
4133 echo "${ECHO_T}$cf_opt_with_warnings" >&6
4134 if test "$cf_opt_with_warnings" != no ; then
4135
4136 if test "$GCC" = yes
4137 then
4138 cat > conftest.i <<EOF
4139 #ifndef GCC_PRINTF
4140 #define GCC_PRINTF 0
4141 #endif
4142 #ifndef GCC_SCANF
4143 #define GCC_SCANF 0
4144 #endif
4145 #ifndef GCC_NORETURN
4146 #define GCC_NORETURN /* nothing */
4147 #endif
4148 #ifndef GCC_UNUSED
4149 #define GCC_UNUSED /* nothing */
4150 #endif
4151 EOF
4152 if test "$GCC" = yes
4153 then
4154         { echo "$as_me:4154: checking for $CC __attribute__ directives..." >&5
4155 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4156 cat > conftest.$ac_ext <<EOF
4157 #line 4157 "${as_me:-configure}"
4158 #include "confdefs.h"
4159 #include "conftest.h"
4160 #include "conftest.i"
4161 #if     GCC_PRINTF
4162 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4163 #else
4164 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4165 #endif
4166 #if     GCC_SCANF
4167 #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
4168 #else
4169 #define GCC_SCANFLIKE(fmt,var)  /*nothing*/
4170 #endif
4171 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4172 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4173 extern void foo(void) GCC_NORETURN;
4174 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4175 EOF
4176         cf_printf_attribute=no
4177         cf_scanf_attribute=no
4178         for cf_attribute in scanf printf unused noreturn
4179         do
4180
4181 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4182
4183                 cf_directive="__attribute__(($cf_attribute))"
4184                 echo "checking for $CC $cf_directive" 1>&5
4185
4186                 case $cf_attribute in
4187                 (printf)
4188                         cf_printf_attribute=yes
4189                         cat >conftest.h <<EOF
4190 #define GCC_$cf_ATTRIBUTE 1
4191 EOF
4192                         ;;
4193                 (scanf)
4194                         cf_scanf_attribute=yes
4195                         cat >conftest.h <<EOF
4196 #define GCC_$cf_ATTRIBUTE 1
4197 EOF
4198                         ;;
4199                 (*)
4200                         cat >conftest.h <<EOF
4201 #define GCC_$cf_ATTRIBUTE $cf_directive
4202 EOF
4203                         ;;
4204                 esac
4205
4206                 if { (eval echo "$as_me:4206: \"$ac_compile\"") >&5
4207   (eval $ac_compile) 2>&5
4208   ac_status=$?
4209   echo "$as_me:4209: \$? = $ac_status" >&5
4210   (exit $ac_status); }; then
4211                         test -n "$verbose" && echo "$as_me:4211: result: ... $cf_attribute" >&5
4212 echo "${ECHO_T}... $cf_attribute" >&6
4213                         cat conftest.h >>confdefs.h
4214                         case $cf_attribute in
4215                         (noreturn)
4216
4217 cat >>confdefs.h <<EOF
4218 #define GCC_NORETURN $cf_directive
4219 EOF
4220
4221                                 ;;
4222                         (printf)
4223                                 cf_value='/* nothing */'
4224                                 if test "$cf_printf_attribute" != no ; then
4225                                         cf_value='__attribute__((format(printf,fmt,var)))'
4226
4227 cat >>confdefs.h <<\EOF
4228 #define GCC_PRINTF 1
4229 EOF
4230
4231                                 fi
4232
4233 cat >>confdefs.h <<EOF
4234 #define GCC_PRINTFLIKE(fmt,var) $cf_value
4235 EOF
4236
4237                                 ;;
4238                         (scanf)
4239                                 cf_value='/* nothing */'
4240                                 if test "$cf_scanf_attribute" != no ; then
4241                                         cf_value='__attribute__((format(scanf,fmt,var)))'
4242
4243 cat >>confdefs.h <<\EOF
4244 #define GCC_SCANF 1
4245 EOF
4246
4247                                 fi
4248
4249 cat >>confdefs.h <<EOF
4250 #define GCC_SCANFLIKE(fmt,var) $cf_value
4251 EOF
4252
4253                                 ;;
4254                         (unused)
4255
4256 cat >>confdefs.h <<EOF
4257 #define GCC_UNUSED $cf_directive
4258 EOF
4259
4260                                 ;;
4261                         esac
4262                 fi
4263         done
4264 else
4265         fgrep define conftest.i >>confdefs.h
4266 fi
4267 rm -rf conftest*
4268 fi
4269
4270 INTEL_COMPILER=no
4271
4272 if test "$GCC" = yes ; then
4273         case $host_os in
4274         (linux*|gnu*)
4275                 echo "$as_me:4275: checking if this is really Intel C compiler" >&5
4276 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4277                 cf_save_CFLAGS="$CFLAGS"
4278                 CFLAGS="$CFLAGS -no-gcc"
4279                 cat >conftest.$ac_ext <<_ACEOF
4280 #line 4280 "configure"
4281 #include "confdefs.h"
4282
4283 int
4284 main ()
4285 {
4286
4287 #ifdef __INTEL_COMPILER
4288 #else
4289 make an error
4290 #endif
4291
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 rm -f conftest.$ac_objext
4297 if { (eval echo "$as_me:4297: \"$ac_compile\"") >&5
4298   (eval $ac_compile) 2>&5
4299   ac_status=$?
4300   echo "$as_me:4300: \$? = $ac_status" >&5
4301   (exit $ac_status); } &&
4302          { ac_try='test -s conftest.$ac_objext'
4303   { (eval echo "$as_me:4303: \"$ac_try\"") >&5
4304   (eval $ac_try) 2>&5
4305   ac_status=$?
4306   echo "$as_me:4306: \$? = $ac_status" >&5
4307   (exit $ac_status); }; }; then
4308   INTEL_COMPILER=yes
4309 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
4310
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 cat conftest.$ac_ext >&5
4314 fi
4315 rm -f conftest.$ac_objext conftest.$ac_ext
4316                 CFLAGS="$cf_save_CFLAGS"
4317                 echo "$as_me:4317: result: $INTEL_COMPILER" >&5
4318 echo "${ECHO_T}$INTEL_COMPILER" >&6
4319                 ;;
4320         esac
4321 fi
4322
4323 CLANG_COMPILER=no
4324
4325 if test "$GCC" = yes ; then
4326         echo "$as_me:4326: checking if this is really Clang C compiler" >&5
4327 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
4328         cf_save_CFLAGS="$CFLAGS"
4329         CFLAGS="$CFLAGS -Qunused-arguments"
4330         cat >conftest.$ac_ext <<_ACEOF
4331 #line 4331 "configure"
4332 #include "confdefs.h"
4333
4334 int
4335 main ()
4336 {
4337
4338 #ifdef __clang__
4339 #else
4340 make an error
4341 #endif
4342
4343   ;
4344   return 0;
4345 }
4346 _ACEOF
4347 rm -f conftest.$ac_objext
4348 if { (eval echo "$as_me:4348: \"$ac_compile\"") >&5
4349   (eval $ac_compile) 2>&5
4350   ac_status=$?
4351   echo "$as_me:4351: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -s conftest.$ac_objext'
4354   { (eval echo "$as_me:4354: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:4357: \$? = $ac_status" >&5
4358   (exit $ac_status); }; }; then
4359   CLANG_COMPILER=yes
4360 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
4361
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4365 fi
4366 rm -f conftest.$ac_objext conftest.$ac_ext
4367         CFLAGS="$cf_save_CFLAGS"
4368         echo "$as_me:4368: result: $CLANG_COMPILER" >&5
4369 echo "${ECHO_T}$CLANG_COMPILER" >&6
4370 fi
4371
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4373 "${as_me:-configure}"
4374 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4375 EOF
4376
4377 if test "$INTEL_COMPILER" = yes
4378 then
4379 # The "-wdXXX" options suppress warnings:
4380 # remark #1419: external declaration in primary source file
4381 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4382 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4383 # remark #193: zero used for undefined preprocessing identifier
4384 # remark #593: variable "curs_sb_left_arrow" was set but never used
4385 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4386 # remark #869: parameter "tw" was never referenced
4387 # remark #981: operands are evaluated in unspecified order
4388 # warning #279: controlling expression is constant
4389
4390         { echo "$as_me:4390: checking for $CC warning options..." >&5
4391 echo "$as_me: checking for $CC warning options..." >&6;}
4392         cf_save_CFLAGS="$CFLAGS"
4393         EXTRA_CFLAGS="-Wall"
4394         for cf_opt in \
4395                 wd1419 \
4396                 wd1683 \
4397                 wd1684 \
4398                 wd193 \
4399                 wd593 \
4400                 wd279 \
4401                 wd810 \
4402                 wd869 \
4403                 wd981
4404         do
4405                 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4406                 if { (eval echo "$as_me:4406: \"$ac_compile\"") >&5
4407   (eval $ac_compile) 2>&5
4408   ac_status=$?
4409   echo "$as_me:4409: \$? = $ac_status" >&5
4410   (exit $ac_status); }; then
4411                         test -n "$verbose" && echo "$as_me:4411: result: ... -$cf_opt" >&5
4412 echo "${ECHO_T}... -$cf_opt" >&6
4413                         EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4414                 fi
4415         done
4416         CFLAGS="$cf_save_CFLAGS"
4417
4418 elif test "$GCC" = yes
4419 then
4420         { echo "$as_me:4420: checking for $CC warning options..." >&5
4421 echo "$as_me: checking for $CC warning options..." >&6;}
4422         cf_save_CFLAGS="$CFLAGS"
4423         EXTRA_CFLAGS=
4424         cf_warn_CONST=""
4425         test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4426         cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
4427         test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
4428         for cf_opt in W Wall \
4429                 Wbad-function-cast \
4430                 Wcast-align \
4431                 Wcast-qual \
4432                 Wdeclaration-after-statement \
4433                 Wextra \
4434                 Winline \
4435                 Wmissing-declarations \
4436                 Wmissing-prototypes \
4437                 Wnested-externs \
4438                 Wpointer-arith \
4439                 Wshadow \
4440                 Wstrict-prototypes \
4441                 Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
4442         do
4443                 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4444                 if { (eval echo "$as_me:4444: \"$ac_compile\"") >&5
4445   (eval $ac_compile) 2>&5
4446   ac_status=$?
4447   echo "$as_me:4447: \$? = $ac_status" >&5
4448   (exit $ac_status); }; then
4449                         test -n "$verbose" && echo "$as_me:4449: result: ... -$cf_opt" >&5
4450 echo "${ECHO_T}... -$cf_opt" >&6
4451                         case $cf_opt in
4452                         (Wcast-qual)
4453                                 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4454                                 ;;
4455                         (Winline)
4456                                 case $GCC_VERSION in
4457                                 ([34].*)
4458                                         test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
4459
4460 echo "${as_me:-configure}:4460: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4461
4462                                         continue;;
4463                                 esac
4464                                 ;;
4465                         (Wpointer-arith)
4466                                 case $GCC_VERSION in
4467                                 ([12].*)
4468                                         test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
4469
4470 echo "${as_me:-configure}:4470: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4471
4472                                         continue;;
4473                                 esac
4474                                 ;;
4475                         esac
4476                         EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4477                 fi
4478         done
4479         CFLAGS="$cf_save_CFLAGS"
4480 fi
4481 rm -rf conftest*
4482
4483 fi
4484 fi
4485
4486 echo "$as_me:4486: checking if you want to see long compiling messages" >&5
4487 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4488
4489 # Check whether --enable-echo or --disable-echo was given.
4490 if test "${enable_echo+set}" = set; then
4491   enableval="$enable_echo"
4492   test "$enableval" != no && enableval=yes
4493         if test "$enableval" != "yes" ; then
4494
4495         ECHO_LT='--silent'
4496         ECHO_LD='@echo linking $@;'
4497         RULE_CC='@echo compiling $<'
4498         SHOW_CC='@echo compiling $@'
4499         ECHO_CC='@'
4500
4501         else
4502
4503         ECHO_LT=''
4504         ECHO_LD=''
4505         RULE_CC=''
4506         SHOW_CC=''
4507         ECHO_CC=''
4508
4509         fi
4510 else
4511   enableval=yes
4512
4513         ECHO_LT=''
4514         ECHO_LD=''
4515         RULE_CC=''
4516         SHOW_CC=''
4517         ECHO_CC=''
4518
4519 fi;
4520 echo "$as_me:4520: result: $enableval" >&5
4521 echo "${ECHO_T}$enableval" >&6
4522
4523 echo "$as_me:4523: checking if you want to use dmalloc for testing" >&5
4524 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4525
4526 # Check whether --with-dmalloc or --without-dmalloc was given.
4527 if test "${with_dmalloc+set}" = set; then
4528   withval="$with_dmalloc"
4529
4530 cat >>confdefs.h <<EOF
4531 #define USE_DMALLOC 1
4532 EOF
4533
4534         : ${with_cflags:=-g}
4535         : ${with_no_leaks:=yes}
4536          with_dmalloc=yes
4537 else
4538   with_dmalloc=
4539 fi;
4540 echo "$as_me:4540: result: ${with_dmalloc:-no}" >&5
4541 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4542
4543 case .$with_cflags in
4544 (.*-g*)
4545         case .$CFLAGS in
4546         (.*-g*)
4547                 ;;
4548         (*)
4549
4550 cf_fix_cppflags=no
4551 cf_new_cflags=
4552 cf_new_cppflags=
4553 cf_new_extra_cppflags=
4554
4555 for cf_add_cflags in -g
4556 do
4557 case $cf_fix_cppflags in
4558 (no)
4559         case $cf_add_cflags in
4560         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4561                 case $cf_add_cflags in
4562                 (-D*)
4563                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4564
4565                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4566                                 && test -z "${cf_tst_cflags}" \
4567                                 && cf_fix_cppflags=yes
4568
4569                         if test $cf_fix_cppflags = yes ; then
4570                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4571                                 continue
4572                         elif test "${cf_tst_cflags}" = "\"'" ; then
4573                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4574                                 continue
4575                         fi
4576                         ;;
4577                 esac
4578                 case "$CPPFLAGS" in
4579                 (*$cf_add_cflags)
4580                         ;;
4581                 (*)
4582                         case $cf_add_cflags in
4583                         (-D*)
4584                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4585
4586 CPPFLAGS=`echo "$CPPFLAGS" | \
4587         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
4588                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
4589
4590                                 ;;
4591                         esac
4592                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4593                         ;;
4594                 esac
4595                 ;;
4596         (*)
4597                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4598                 ;;
4599         esac
4600         ;;
4601 (yes)
4602         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4603
4604         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4605
4606         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4607                 && test -z "${cf_tst_cflags}" \
4608                 && cf_fix_cppflags=no
4609         ;;
4610 esac
4611 done
4612
4613 if test -n "$cf_new_cflags" ; then
4614
4615         CFLAGS="$CFLAGS $cf_new_cflags"
4616 fi
4617
4618 if test -n "$cf_new_cppflags" ; then
4619
4620         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4621 fi
4622
4623 if test -n "$cf_new_extra_cppflags" ; then
4624
4625         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4626 fi
4627
4628                 ;;
4629         esac
4630         ;;
4631 esac
4632
4633 if test "$with_dmalloc" = yes ; then
4634         echo "$as_me:4634: checking for dmalloc.h" >&5
4635 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4636 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   cat >conftest.$ac_ext <<_ACEOF
4640 #line 4640 "configure"
4641 #include "confdefs.h"
4642 #include <dmalloc.h>
4643 _ACEOF
4644 if { (eval echo "$as_me:4644: \"$ac_cpp conftest.$ac_ext\"") >&5
4645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4646   ac_status=$?
4647   egrep -v '^ *\+' conftest.er1 >conftest.err
4648   rm -f conftest.er1
4649   cat conftest.err >&5
4650   echo "$as_me:4650: \$? = $ac_status" >&5
4651   (exit $ac_status); } >/dev/null; then
4652   if test -s conftest.err; then
4653     ac_cpp_err=$ac_c_preproc_warn_flag
4654   else
4655     ac_cpp_err=
4656   fi
4657 else
4658   ac_cpp_err=yes
4659 fi
4660 if test -z "$ac_cpp_err"; then
4661   ac_cv_header_dmalloc_h=yes
4662 else
4663   echo "$as_me: failed program was:" >&5
4664   cat conftest.$ac_ext >&5
4665   ac_cv_header_dmalloc_h=no
4666 fi
4667 rm -f conftest.err conftest.$ac_ext
4668 fi
4669 echo "$as_me:4669: result: $ac_cv_header_dmalloc_h" >&5
4670 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4671 if test $ac_cv_header_dmalloc_h = yes; then
4672
4673 echo "$as_me:4673: checking for dmalloc_debug in -ldmalloc" >&5
4674 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4675 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   ac_check_lib_save_LIBS=$LIBS
4679 LIBS="-ldmalloc  $LIBS"
4680 cat >conftest.$ac_ext <<_ACEOF
4681 #line 4681 "configure"
4682 #include "confdefs.h"
4683
4684 /* Override any gcc2 internal prototype to avoid an error.  */
4685 #ifdef __cplusplus
4686 extern "C"
4687 #endif
4688 /* We use char because int might match the return type of a gcc2
4689    builtin and then its argument prototype would still apply.  */
4690 char dmalloc_debug ();
4691 int
4692 main ()
4693 {
4694 dmalloc_debug ();
4695   ;
4696   return 0;
4697 }
4698 _ACEOF
4699 rm -f conftest.$ac_objext conftest$ac_exeext
4700 if { (eval echo "$as_me:4700: \"$ac_link\"") >&5
4701   (eval $ac_link) 2>&5
4702   ac_status=$?
4703   echo "$as_me:4703: \$? = $ac_status" >&5
4704   (exit $ac_status); } &&
4705          { ac_try='test -s conftest$ac_exeext'
4706   { (eval echo "$as_me:4706: \"$ac_try\"") >&5
4707   (eval $ac_try) 2>&5
4708   ac_status=$?
4709   echo "$as_me:4709: \$? = $ac_status" >&5
4710   (exit $ac_status); }; }; then
4711   ac_cv_lib_dmalloc_dmalloc_debug=yes
4712 else
4713   echo "$as_me: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4715 ac_cv_lib_dmalloc_dmalloc_debug=no
4716 fi
4717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4718 LIBS=$ac_check_lib_save_LIBS
4719 fi
4720 echo "$as_me:4720: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4721 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4722 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4723   cat >>confdefs.h <<EOF
4724 #define HAVE_LIBDMALLOC 1
4725 EOF
4726
4727   LIBS="-ldmalloc $LIBS"
4728
4729 fi
4730
4731 fi
4732
4733 fi
4734
4735 echo "$as_me:4735: checking if you want to use dbmalloc for testing" >&5
4736 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4737
4738 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4739 if test "${with_dbmalloc+set}" = set; then
4740   withval="$with_dbmalloc"
4741
4742 cat >>confdefs.h <<EOF
4743 #define USE_DBMALLOC 1
4744 EOF
4745
4746         : ${with_cflags:=-g}
4747         : ${with_no_leaks:=yes}
4748          with_dbmalloc=yes
4749 else
4750   with_dbmalloc=
4751 fi;
4752 echo "$as_me:4752: result: ${with_dbmalloc:-no}" >&5
4753 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4754
4755 case .$with_cflags in
4756 (.*-g*)
4757         case .$CFLAGS in
4758         (.*-g*)
4759                 ;;
4760         (*)
4761
4762 cf_fix_cppflags=no
4763 cf_new_cflags=
4764 cf_new_cppflags=
4765 cf_new_extra_cppflags=
4766
4767 for cf_add_cflags in -g
4768 do
4769 case $cf_fix_cppflags in
4770 (no)
4771         case $cf_add_cflags in
4772         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4773                 case $cf_add_cflags in
4774                 (-D*)
4775                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4776
4777                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4778                                 && test -z "${cf_tst_cflags}" \
4779                                 && cf_fix_cppflags=yes
4780
4781                         if test $cf_fix_cppflags = yes ; then
4782                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4783                                 continue
4784                         elif test "${cf_tst_cflags}" = "\"'" ; then
4785                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4786                                 continue
4787                         fi
4788                         ;;
4789                 esac
4790                 case "$CPPFLAGS" in
4791                 (*$cf_add_cflags)
4792                         ;;
4793                 (*)
4794                         case $cf_add_cflags in
4795                         (-D*)
4796                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4797
4798 CPPFLAGS=`echo "$CPPFLAGS" | \
4799         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
4800                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
4801
4802                                 ;;
4803                         esac
4804                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4805                         ;;
4806                 esac
4807                 ;;
4808         (*)
4809                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4810                 ;;
4811         esac
4812         ;;
4813 (yes)
4814         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4815
4816         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4817
4818         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4819                 && test -z "${cf_tst_cflags}" \
4820                 && cf_fix_cppflags=no
4821         ;;
4822 esac
4823 done
4824
4825 if test -n "$cf_new_cflags" ; then
4826
4827         CFLAGS="$CFLAGS $cf_new_cflags"
4828 fi
4829
4830 if test -n "$cf_new_cppflags" ; then
4831
4832         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4833 fi
4834
4835 if test -n "$cf_new_extra_cppflags" ; then
4836
4837         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4838 fi
4839
4840                 ;;
4841         esac
4842         ;;
4843 esac
4844
4845 if test "$with_dbmalloc" = yes ; then
4846         echo "$as_me:4846: checking for dbmalloc.h" >&5
4847 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4848 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851   cat >conftest.$ac_ext <<_ACEOF
4852 #line 4852 "configure"
4853 #include "confdefs.h"
4854 #include <dbmalloc.h>
4855 _ACEOF
4856 if { (eval echo "$as_me:4856: \"$ac_cpp conftest.$ac_ext\"") >&5
4857   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4858   ac_status=$?
4859   egrep -v '^ *\+' conftest.er1 >conftest.err
4860   rm -f conftest.er1
4861   cat conftest.err >&5
4862   echo "$as_me:4862: \$? = $ac_status" >&5
4863   (exit $ac_status); } >/dev/null; then
4864   if test -s conftest.err; then
4865     ac_cpp_err=$ac_c_preproc_warn_flag
4866   else
4867     ac_cpp_err=
4868   fi
4869 else
4870   ac_cpp_err=yes
4871 fi
4872 if test -z "$ac_cpp_err"; then
4873   ac_cv_header_dbmalloc_h=yes
4874 else
4875   echo "$as_me: failed program was:" >&5
4876   cat conftest.$ac_ext >&5
4877   ac_cv_header_dbmalloc_h=no
4878 fi
4879 rm -f conftest.err conftest.$ac_ext
4880 fi
4881 echo "$as_me:4881: result: $ac_cv_header_dbmalloc_h" >&5
4882 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4883 if test $ac_cv_header_dbmalloc_h = yes; then
4884
4885 echo "$as_me:4885: checking for debug_malloc in -ldbmalloc" >&5
4886 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4887 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   ac_check_lib_save_LIBS=$LIBS
4891 LIBS="-ldbmalloc  $LIBS"
4892 cat >conftest.$ac_ext <<_ACEOF
4893 #line 4893 "configure"
4894 #include "confdefs.h"
4895
4896 /* Override any gcc2 internal prototype to avoid an error.  */
4897 #ifdef __cplusplus
4898 extern "C"
4899 #endif
4900 /* We use char because int might match the return type of a gcc2
4901    builtin and then its argument prototype would still apply.  */
4902 char debug_malloc ();
4903 int
4904 main ()
4905 {
4906 debug_malloc ();
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (eval echo "$as_me:4912: \"$ac_link\"") >&5
4913   (eval $ac_link) 2>&5
4914   ac_status=$?
4915   echo "$as_me:4915: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -s conftest$ac_exeext'
4918   { (eval echo "$as_me:4918: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:4921: \$? = $ac_status" >&5
4922   (exit $ac_status); }; }; then
4923   ac_cv_lib_dbmalloc_debug_malloc=yes
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4927 ac_cv_lib_dbmalloc_debug_malloc=no
4928 fi
4929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4930 LIBS=$ac_check_lib_save_LIBS
4931 fi
4932 echo "$as_me:4932: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4933 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4934 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4935   cat >>confdefs.h <<EOF
4936 #define HAVE_LIBDBMALLOC 1
4937 EOF
4938
4939   LIBS="-ldbmalloc $LIBS"
4940
4941 fi
4942
4943 fi
4944
4945 fi
4946
4947 echo "$as_me:4947: checking if you want to use valgrind for testing" >&5
4948 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4949
4950 # Check whether --with-valgrind or --without-valgrind was given.
4951 if test "${with_valgrind+set}" = set; then
4952   withval="$with_valgrind"
4953
4954 cat >>confdefs.h <<EOF
4955 #define USE_VALGRIND 1
4956 EOF
4957
4958         : ${with_cflags:=-g}
4959         : ${with_no_leaks:=yes}
4960          with_valgrind=yes
4961 else
4962   with_valgrind=
4963 fi;
4964 echo "$as_me:4964: result: ${with_valgrind:-no}" >&5
4965 echo "${ECHO_T}${with_valgrind:-no}" >&6
4966
4967 case .$with_cflags in
4968 (.*-g*)
4969         case .$CFLAGS in
4970         (.*-g*)
4971                 ;;
4972         (*)
4973
4974 cf_fix_cppflags=no
4975 cf_new_cflags=
4976 cf_new_cppflags=
4977 cf_new_extra_cppflags=
4978
4979 for cf_add_cflags in -g
4980 do
4981 case $cf_fix_cppflags in
4982 (no)
4983         case $cf_add_cflags in
4984         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4985                 case $cf_add_cflags in
4986                 (-D*)
4987                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4988
4989                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4990                                 && test -z "${cf_tst_cflags}" \
4991                                 && cf_fix_cppflags=yes
4992
4993                         if test $cf_fix_cppflags = yes ; then
4994                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4995                                 continue
4996                         elif test "${cf_tst_cflags}" = "\"'" ; then
4997                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4998                                 continue
4999                         fi
5000                         ;;
5001                 esac
5002                 case "$CPPFLAGS" in
5003                 (*$cf_add_cflags)
5004                         ;;
5005                 (*)
5006                         case $cf_add_cflags in
5007                         (-D*)
5008                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5009
5010 CPPFLAGS=`echo "$CPPFLAGS" | \
5011         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
5012                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
5013
5014                                 ;;
5015                         esac
5016                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
5017                         ;;
5018                 esac
5019                 ;;
5020         (*)
5021                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
5022                 ;;
5023         esac
5024         ;;
5025 (yes)
5026         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5027
5028         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
5029
5030         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5031                 && test -z "${cf_tst_cflags}" \
5032                 && cf_fix_cppflags=no
5033         ;;
5034 esac
5035 done
5036
5037 if test -n "$cf_new_cflags" ; then
5038
5039         CFLAGS="$CFLAGS $cf_new_cflags"
5040 fi
5041
5042 if test -n "$cf_new_cppflags" ; then
5043
5044         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
5045 fi
5046
5047 if test -n "$cf_new_extra_cppflags" ; then
5048
5049         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
5050 fi
5051
5052                 ;;
5053         esac
5054         ;;
5055 esac
5056
5057 echo "$as_me:5057: checking if you want to perform memory-leak testing" >&5
5058 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
5059
5060 # Check whether --enable-leaks or --disable-leaks was given.
5061 if test "${enable_leaks+set}" = set; then
5062   enableval="$enable_leaks"
5063   if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
5064 else
5065   : ${with_no_leaks:=no}
5066 fi;
5067 echo "$as_me:5067: result: $with_no_leaks" >&5
5068 echo "${ECHO_T}$with_no_leaks" >&6
5069
5070 if test "$with_no_leaks" = yes ; then
5071
5072 cat >>confdefs.h <<\EOF
5073 #define NO_LEAKS 1
5074 EOF
5075
5076 cat >>confdefs.h <<\EOF
5077 #define YY_NO_LEAKS 1
5078 EOF
5079
5080 fi
5081
5082 # Extract the first word of "groff", so it can be a program name with args.
5083 set dummy groff; ac_word=$2
5084 echo "$as_me:5084: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   case $GROFF_PATH in
5090   [\\/]* | ?:[\\/]*)
5091   ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
5092   ;;
5093   *)
5094   ac_save_IFS=$IFS; IFS=$ac_path_separator
5095 ac_dummy="$PATH"
5096 for ac_dir in $ac_dummy; do
5097   IFS=$ac_save_IFS
5098   test -z "$ac_dir" && ac_dir=.
5099   if $as_executable_p "$ac_dir/$ac_word"; then
5100    ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
5101    echo "$as_me:5101: found $ac_dir/$ac_word" >&5
5102    break
5103 fi
5104 done
5105
5106   test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
5107   ;;
5108 esac
5109 fi
5110 GROFF_PATH=$ac_cv_path_GROFF_PATH
5111
5112 if test -n "$GROFF_PATH"; then
5113   echo "$as_me:5113: result: $GROFF_PATH" >&5
5114 echo "${ECHO_T}$GROFF_PATH" >&6
5115 else
5116   echo "$as_me:5116: result: no" >&5
5117 echo "${ECHO_T}no" >&6
5118 fi
5119
5120 # Extract the first word of "nroff", so it can be a program name with args.
5121 set dummy nroff; ac_word=$2
5122 echo "$as_me:5122: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5124 if test "${ac_cv_path_NROFF_PATH+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127   case $NROFF_PATH in
5128   [\\/]* | ?:[\\/]*)
5129   ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
5130   ;;
5131   *)
5132   ac_save_IFS=$IFS; IFS=$ac_path_separator
5133 ac_dummy="$PATH"
5134 for ac_dir in $ac_dummy; do
5135   IFS=$ac_save_IFS
5136   test -z "$ac_dir" && ac_dir=.
5137   if $as_executable_p "$ac_dir/$ac_word"; then
5138    ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
5139    echo "$as_me:5139: found $ac_dir/$ac_word" >&5
5140    break
5141 fi
5142 done
5143
5144   test -z "$ac_cv_path_NROFF_PATH" && ac_cv_path_NROFF_PATH="no"
5145   ;;
5146 esac
5147 fi
5148 NROFF_PATH=$ac_cv_path_NROFF_PATH
5149
5150 if test -n "$NROFF_PATH"; then
5151   echo "$as_me:5151: result: $NROFF_PATH" >&5
5152 echo "${ECHO_T}$NROFF_PATH" >&6
5153 else
5154   echo "$as_me:5154: result: no" >&5
5155 echo "${ECHO_T}no" >&6
5156 fi
5157
5158 if test "x$GROFF_PATH" = xno
5159 then
5160         NROFF_NOTE=
5161         GROFF_NOTE="#"
5162 else
5163         NROFF_NOTE="#"
5164         GROFF_NOTE=
5165 fi
5166
5167 echo "$as_me:5167: checking for program to convert manpage to html" >&5
5168 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
5169
5170 # Check whether --with-man2html or --without-man2html was given.
5171 if test "${with_man2html+set}" = set; then
5172   withval="$with_man2html"
5173   cf_man2html=$withval
5174 else
5175   cf_man2html=$GROFF_PATH
5176 fi;
5177
5178 cf_with_groff=no
5179
5180 case $cf_man2html in
5181 (yes)
5182         echo "$as_me:5182: result: man2html" >&5
5183 echo "${ECHO_T}man2html" >&6
5184         # Extract the first word of "man2html", so it can be a program name with args.
5185 set dummy man2html; ac_word=$2
5186 echo "$as_me:5186: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188 if test "${ac_cv_path_cf_man2html+set}" = set; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191   case $cf_man2html in
5192   [\\/]* | ?:[\\/]*)
5193   ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
5194   ;;
5195   *)
5196   ac_save_IFS=$IFS; IFS=$ac_path_separator
5197 ac_dummy="$PATH"
5198 for ac_dir in $ac_dummy; do
5199   IFS=$ac_save_IFS
5200   test -z "$ac_dir" && ac_dir=.
5201   if $as_executable_p "$ac_dir/$ac_word"; then
5202    ac_cv_path_cf_man2html="$ac_dir/$ac_word"
5203    echo "$as_me:5203: found $ac_dir/$ac_word" >&5
5204    break
5205 fi
5206 done
5207
5208   test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
5209   ;;
5210 esac
5211 fi
5212 cf_man2html=$ac_cv_path_cf_man2html
5213
5214 if test -n "$cf_man2html"; then
5215   echo "$as_me:5215: result: $cf_man2html" >&5
5216 echo "${ECHO_T}$cf_man2html" >&6
5217 else
5218   echo "$as_me:5218: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5220 fi
5221
5222         ;;
5223 (no|groff|*/groff*)
5224         cf_with_groff=yes
5225         cf_man2html=$GROFF_PATH
5226         echo "$as_me:5226: result: $cf_man2html" >&5
5227 echo "${ECHO_T}$cf_man2html" >&6
5228         ;;
5229 (*)
5230         echo "$as_me:5230: result: $cf_man2html" >&5
5231 echo "${ECHO_T}$cf_man2html" >&6
5232         ;;
5233 esac
5234
5235 MAN2HTML_TEMP="man2html.tmp"
5236         cat >$MAN2HTML_TEMP <<CF_EOF
5237 #!$SHELL
5238 # Temporary script generated by CF_WITH_MAN2HTML
5239 # Convert inputs to html, sending result to standard output.
5240 #
5241 # Parameters:
5242 # \${1} = rootname of file to convert
5243 # \${2} = suffix of file to convert, e.g., "1"
5244 # \${3} = macros to use, e.g., "man"
5245 #
5246 ROOT=\$1
5247 TYPE=\$2
5248 MACS=\$3
5249
5250 unset LANG
5251 unset LC_ALL
5252 unset LC_CTYPE
5253 unset LANGUAGE
5254 GROFF_NO_SGR=stupid
5255 export GROFF_NO_SGR
5256
5257 CF_EOF
5258
5259 if test "x$cf_with_groff" = xyes
5260 then
5261         MAN2HTML_NOTE="$GROFF_NOTE"
5262         MAN2HTML_PATH="$GROFF_PATH"
5263         cat >>$MAN2HTML_TEMP <<CF_EOF
5264 $SHELL -c "tbl \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
5265 CF_EOF
5266 else
5267         MAN2HTML_NOTE=""
5268
5269 if test "x$prefix" != xNONE; then
5270         cf_path_syntax="$prefix"
5271 else
5272         cf_path_syntax="$ac_default_prefix"
5273 fi
5274
5275 case ".$cf_man2html" in
5276 (.\$\(*\)*|.\'*\'*)
5277         ;;
5278 (..|./*|.\\*)
5279         ;;
5280 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5281         ;;
5282 (.\${*prefix}*|.\${*dir}*)
5283         eval cf_man2html="$cf_man2html"
5284         case ".$cf_man2html" in
5285         (.NONE/*)
5286                 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
5287                 ;;
5288         esac
5289         ;;
5290 (.no|.NONE/*)
5291         cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
5292         ;;
5293 (*)
5294         { { echo "$as_me:5294: error: expected a pathname, not \"$cf_man2html\"" >&5
5295 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
5296    { (exit 1); exit 1; }; }
5297         ;;
5298 esac
5299
5300         MAN2HTML_PATH="$cf_man2html"
5301         echo "$as_me:5301: checking for $cf_man2html top/bottom margins" >&5
5302 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
5303
5304         # for this example, expect 3 lines of content, the remainder is head/foot
5305         cat >conftest.in <<CF_EOF
5306 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
5307 .SH SECTION
5308 MARKER
5309 CF_EOF
5310
5311         LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out
5312
5313         cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
5314         cf_man2html_top=`expr $cf_man2html_1st - 2`
5315         cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'`
5316         cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top`
5317         cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
5318
5319         echo "$as_me:5319: result: $cf_man2html_top_bot" >&5
5320 echo "${ECHO_T}$cf_man2html_top_bot" >&6
5321
5322         echo "$as_me:5322: checking for pagesize to use" >&5
5323 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
5324         for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
5325         do
5326         cat >>conftest.in <<CF_EOF
5327 .nf
5328 0
5329 1
5330 2
5331 3
5332 4
5333 5
5334 6
5335 7
5336 8
5337 9
5338 CF_EOF
5339         done
5340
5341         LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out
5342         cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
5343         test -z "$cf_man2html_page" && cf_man2html_page=99999
5344         test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
5345
5346         rm -rf conftest*
5347         echo "$as_me:5347: result: $cf_man2html_page" >&5
5348 echo "${ECHO_T}$cf_man2html_page" >&6
5349
5350         cat >>$MAN2HTML_TEMP <<CF_EOF
5351 : \${MAN2HTML_PATH=$MAN2HTML_PATH}
5352 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page"
5353 case \${TYPE} in
5354 (ms)
5355         tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
5356         ;;
5357 (*)
5358         tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
5359         ;;
5360 esac
5361 CF_EOF
5362 fi
5363
5364 chmod 700 $MAN2HTML_TEMP
5365
5366 echo "$as_me:5366: checking for ANSI C header files" >&5
5367 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5368 if test "${ac_cv_header_stdc+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   cat >conftest.$ac_ext <<_ACEOF
5372 #line 5372 "configure"
5373 #include "confdefs.h"
5374 #include <stdlib.h>
5375 #include <stdarg.h>
5376 #include <string.h>
5377 #include <float.h>
5378
5379 _ACEOF
5380 if { (eval echo "$as_me:5380: \"$ac_cpp conftest.$ac_ext\"") >&5
5381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5382   ac_status=$?
5383   egrep -v '^ *\+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   echo "$as_me:5386: \$? = $ac_status" >&5
5387   (exit $ac_status); } >/dev/null; then
5388   if test -s conftest.err; then
5389     ac_cpp_err=$ac_c_preproc_warn_flag
5390   else
5391     ac_cpp_err=
5392   fi
5393 else
5394   ac_cpp_err=yes
5395 fi
5396 if test -z "$ac_cpp_err"; then
5397   ac_cv_header_stdc=yes
5398 else
5399   echo "$as_me: failed program was:" >&5
5400   cat conftest.$ac_ext >&5
5401   ac_cv_header_stdc=no
5402 fi
5403 rm -f conftest.err conftest.$ac_ext
5404
5405 if test $ac_cv_header_stdc = yes; then
5406   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5407   cat >conftest.$ac_ext <<_ACEOF
5408 #line 5408 "configure"
5409 #include "confdefs.h"
5410 #include <string.h>
5411
5412 _ACEOF
5413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5414   egrep "memchr" >/dev/null 2>&1; then
5415   :
5416 else
5417   ac_cv_header_stdc=no
5418 fi
5419 rm -rf conftest*
5420
5421 fi
5422
5423 if test $ac_cv_header_stdc = yes; then
5424   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5425   cat >conftest.$ac_ext <<_ACEOF
5426 #line 5426 "configure"
5427 #include "confdefs.h"
5428 #include <stdlib.h>
5429
5430 _ACEOF
5431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5432   egrep "free" >/dev/null 2>&1; then
5433   :
5434 else
5435   ac_cv_header_stdc=no
5436 fi
5437 rm -rf conftest*
5438
5439 fi
5440
5441 if test $ac_cv_header_stdc = yes; then
5442   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5443   if test "$cross_compiling" = yes; then
5444   :
5445 else
5446   cat >conftest.$ac_ext <<_ACEOF
5447 #line 5447 "configure"
5448 #include "confdefs.h"
5449 #include <ctype.h>
5450 #if ((' ' & 0x0FF) == 0x020)
5451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5453 #else
5454 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5455                      || ('j' <= (c) && (c) <= 'r') \
5456                      || ('s' <= (c) && (c) <= 'z'))
5457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5458 #endif
5459
5460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5461 int
5462 main ()
5463 {
5464   int i;
5465   for (i = 0; i < 256; i++)
5466     if (XOR (islower (i), ISLOWER (i))
5467         || toupper (i) != TOUPPER (i))
5468       $ac_main_return(2);
5469   $ac_main_return (0);
5470 }
5471 _ACEOF
5472 rm -f conftest$ac_exeext
5473 if { (eval echo "$as_me:5473: \"$ac_link\"") >&5
5474   (eval $ac_link) 2>&5
5475   ac_status=$?
5476   echo "$as_me:5476: \$? = $ac_status" >&5
5477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5478   { (eval echo "$as_me:5478: \"$ac_try\"") >&5
5479   (eval $ac_try) 2>&5
5480   ac_status=$?
5481   echo "$as_me:5481: \$? = $ac_status" >&5
5482   (exit $ac_status); }; }; then
5483   :
5484 else
5485   echo "$as_me: program exited with status $ac_status" >&5
5486 echo "$as_me: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5488 ac_cv_header_stdc=no
5489 fi
5490 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5491 fi
5492 fi
5493 fi
5494 echo "$as_me:5494: result: $ac_cv_header_stdc" >&5
5495 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5496 if test $ac_cv_header_stdc = yes; then
5497
5498 cat >>confdefs.h <<\EOF
5499 #define STDC_HEADERS 1
5500 EOF
5501
5502 fi
5503
5504 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5505
5506 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5507                   inttypes.h stdint.h unistd.h
5508 do
5509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5510 echo "$as_me:5510: checking for $ac_header" >&5
5511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   cat >conftest.$ac_ext <<_ACEOF
5516 #line 5516 "configure"
5517 #include "confdefs.h"
5518 $ac_includes_default
5519 #include <$ac_header>
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (eval echo "$as_me:5522: \"$ac_compile\"") >&5
5523   (eval $ac_compile) 2>&5
5524   ac_status=$?
5525   echo "$as_me:5525: \$? = $ac_status" >&5
5526   (exit $ac_status); } &&
5527          { ac_try='test -s conftest.$ac_objext'
5528   { (eval echo "$as_me:5528: \"$ac_try\"") >&5
5529   (eval $ac_try) 2>&5
5530   ac_status=$?
5531   echo "$as_me:5531: \$? = $ac_status" >&5
5532   (exit $ac_status); }; }; then
5533   eval "$as_ac_Header=yes"
5534 else
5535   echo "$as_me: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5537 eval "$as_ac_Header=no"
5538 fi
5539 rm -f conftest.$ac_objext conftest.$ac_ext
5540 fi
5541 echo "$as_me:5541: result: `eval echo '${'$as_ac_Header'}'`" >&5
5542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5544   cat >>confdefs.h <<EOF
5545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5546 EOF
5547
5548 fi
5549 done
5550
5551 echo "$as_me:5551: checking for mode_t" >&5
5552 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5553 if test "${ac_cv_type_mode_t+set}" = set; then
5554   echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556   cat >conftest.$ac_ext <<_ACEOF
5557 #line 5557 "configure"
5558 #include "confdefs.h"
5559 $ac_includes_default
5560 int
5561 main ()
5562 {
5563 if ((mode_t *) 0)
5564   return 0;
5565 if (sizeof (mode_t))
5566   return 0;
5567   ;
5568   return 0;
5569 }
5570 _ACEOF
5571 rm -f conftest.$ac_objext
5572 if { (eval echo "$as_me:5572: \"$ac_compile\"") >&5
5573   (eval $ac_compile) 2>&5
5574   ac_status=$?
5575   echo "$as_me:5575: \$? = $ac_status" >&5
5576   (exit $ac_status); } &&
5577          { ac_try='test -s conftest.$ac_objext'
5578   { (eval echo "$as_me:5578: \"$ac_try\"") >&5
5579   (eval $ac_try) 2>&5
5580   ac_status=$?
5581   echo "$as_me:5581: \$? = $ac_status" >&5
5582   (exit $ac_status); }; }; then
5583   ac_cv_type_mode_t=yes
5584 else
5585   echo "$as_me: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5587 ac_cv_type_mode_t=no
5588 fi
5589 rm -f conftest.$ac_objext conftest.$ac_ext
5590 fi
5591 echo "$as_me:5591: result: $ac_cv_type_mode_t" >&5
5592 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5593 if test $ac_cv_type_mode_t = yes; then
5594   :
5595 else
5596
5597 cat >>confdefs.h <<EOF
5598 #define mode_t int
5599 EOF
5600
5601 fi
5602
5603 ###     output makefile
5604 ac_config_files="$ac_config_files makefile"
5605 cat >confcache <<\_ACEOF
5606 # This file is a shell script that caches the results of configure
5607 # tests run on this system so they can be shared between configure
5608 # scripts and configure runs, see configure's option --config-cache.
5609 # It is not useful on other systems.  If it contains results you don't
5610 # want to keep, you may remove or edit it.
5611 #
5612 # config.status only pays attention to the cache file if you give it
5613 # the --recheck option to rerun configure.
5614 #
5615 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5617 # following values.
5618
5619 _ACEOF
5620
5621 # The following way of writing the cache mishandles newlines in values,
5622 # but we know of no workaround that is simple, portable, and efficient.
5623 # So, don't put newlines in cache variables' values.
5624 # Ultrix sh set writes to stderr and can't be redirected directly,
5625 # and sets the high bit in the cache file unless we assign to the vars.
5626 {
5627   (set) 2>&1 |
5628     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5629     *ac_space=\ *)
5630       # `set' does not quote correctly, so add quotes (double-quote
5631       # substitution turns \\\\ into \\, and sed turns \\ into \).
5632       sed -n \
5633         "s/'/'\\\\''/g;
5634           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5635       ;;
5636     *)
5637       # `set' quotes correctly as required by POSIX, so do not add quotes.
5638       sed -n \
5639         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5640       ;;
5641     esac;
5642 } |
5643   sed '
5644      t clear
5645      : clear
5646      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5647      t end
5648      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5649      : end' >>confcache
5650 if cmp -s $cache_file confcache; then :; else
5651   if test -w $cache_file; then
5652     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5653     cat confcache >$cache_file
5654   else
5655     echo "not updating unwritable cache $cache_file"
5656   fi
5657 fi
5658 rm -f confcache
5659
5660 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5661 # Let make expand exec_prefix.
5662 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5663
5664 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5665 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5666 # trailing colons and then remove the whole line if VPATH becomes empty
5667 # (actually we leave an empty line to preserve line numbers).
5668 if test "x$srcdir" = x.; then
5669   ac_vpsub='/^[         ]*VPATH[        ]*=/{
5670 s/:*\$(srcdir):*/:/;
5671 s/:*\${srcdir}:*/:/;
5672 s/:*@srcdir@:*/:/;
5673 s/^\([^=]*=[    ]*\):*/\1/;
5674 s/:*$//;
5675 s/^[^=]*=[      ]*$//;
5676 }'
5677 fi
5678
5679 DEFS=-DHAVE_CONFIG_H
5680
5681 : ${CONFIG_STATUS=./config.status}
5682 ac_clean_files_save=$ac_clean_files
5683 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5684 { echo "$as_me:5684: creating $CONFIG_STATUS" >&5
5685 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5686 cat >$CONFIG_STATUS <<_ACEOF
5687 #! $SHELL
5688 # Generated automatically by configure.
5689 # Run this file to recreate the current configuration.
5690 # Compiler output produced by configure, useful for debugging
5691 # configure, is in config.log if it exists.
5692
5693 debug=false
5694 SHELL=\${CONFIG_SHELL-$SHELL}
5695 ac_cs_invocation="\$0 \$@"
5696
5697 _ACEOF
5698
5699 cat >>$CONFIG_STATUS <<\_ACEOF
5700 # Be Bourne compatible
5701 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5702   emulate sh
5703   NULLCMD=:
5704 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5705   set -o posix
5706 fi
5707
5708 # Name of the executable.
5709 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5710
5711 if expr a : '\(a\)' >/dev/null 2>&1; then
5712   as_expr=expr
5713 else
5714   as_expr=false
5715 fi
5716
5717 rm -f conf$$ conf$$.exe conf$$.file
5718 echo >conf$$.file
5719 if ln -s conf$$.file conf$$ 2>/dev/null; then
5720   # We could just check for DJGPP; but this test a) works b) is more generic
5721   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5722   if test -f conf$$.exe; then
5723     # Don't use ln at all; we don't have any links
5724     as_ln_s='cp -p'
5725   else
5726     as_ln_s='ln -s'
5727   fi
5728 elif ln conf$$.file conf$$ 2>/dev/null; then
5729   as_ln_s=ln
5730 else
5731   as_ln_s='cp -p'
5732 fi
5733 rm -f conf$$ conf$$.exe conf$$.file
5734
5735 as_executable_p="test -f"
5736
5737 # Support unset when possible.
5738 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5739   as_unset=unset
5740 else
5741   as_unset=false
5742 fi
5743
5744 # NLS nuisances.
5745 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5746 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5747 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5748 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5749 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5750 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5751 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5752 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5753
5754 # IFS
5755 # We need space, tab and new line, in precisely that order.
5756 as_nl='
5757 '
5758 IFS="   $as_nl"
5759
5760 # CDPATH.
5761 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5762
5763 exec 6>&1
5764
5765 _ACEOF
5766
5767 # Files that config.status was made for.
5768 if test -n "$ac_config_files"; then
5769   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5770 fi
5771
5772 if test -n "$ac_config_headers"; then
5773   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5774 fi
5775
5776 if test -n "$ac_config_links"; then
5777   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5778 fi
5779
5780 if test -n "$ac_config_commands"; then
5781   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5782 fi
5783
5784 cat >>$CONFIG_STATUS <<\EOF
5785
5786 ac_cs_usage="\
5787 \`$as_me' instantiates files from templates according to the
5788 current configuration.
5789
5790 Usage: $0 [OPTIONS] [FILE]...
5791
5792   -h, --help       print this help, then exit
5793   -V, --version    print version number, then exit
5794   -d, --debug      don't remove temporary files
5795       --recheck    update $as_me by reconfiguring in the same conditions
5796   --file=FILE[:TEMPLATE]
5797                    instantiate the configuration file FILE
5798   --header=FILE[:TEMPLATE]
5799                    instantiate the configuration header FILE
5800
5801 Configuration files:
5802 $config_files
5803
5804 Configuration headers:
5805 $config_headers
5806
5807 Report bugs to <dickey@invisible-island.net>."
5808 EOF
5809
5810 cat >>$CONFIG_STATUS <<EOF
5811 ac_cs_version="\\
5812 config.status
5813 configured by $0, generated by GNU Autoconf 2.52.20150926,
5814   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5815
5816 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5817 Free Software Foundation, Inc.
5818 This config.status script is free software; the Free Software Foundation
5819 gives unlimited permission to copy, distribute and modify it."
5820 srcdir=$srcdir
5821 INSTALL="$INSTALL"
5822 EOF
5823
5824 cat >>$CONFIG_STATUS <<\EOF
5825 # If no file are specified by the user, then we need to provide default
5826 # value.  By we need to know if files were specified by the user.
5827 ac_need_defaults=:
5828 while test $# != 0
5829 do
5830   case $1 in
5831   --*=*)
5832     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5833     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5834     shift
5835     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5836     shift
5837     ;;
5838   -*);;
5839   *) # This is not an option, so the user has probably given explicit
5840      # arguments.
5841      ac_need_defaults=false;;
5842   esac
5843
5844   case $1 in
5845   # Handling of the options.
5846 EOF
5847 cat >>$CONFIG_STATUS <<EOF
5848   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5849     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5850     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5851 EOF
5852 cat >>$CONFIG_STATUS <<\EOF
5853   --version | --vers* | -V )
5854     echo "$ac_cs_version"; exit 0 ;;
5855   --he | --h)
5856     # Conflict between --help and --header
5857     { { echo "$as_me:5857: error: ambiguous option: $1
5858 Try \`$0 --help' for more information." >&5
5859 echo "$as_me: error: ambiguous option: $1
5860 Try \`$0 --help' for more information." >&2;}
5861    { (exit 1); exit 1; }; };;
5862   --help | --hel | -h )
5863     echo "$ac_cs_usage"; exit 0 ;;
5864   --debug | --d* | -d )
5865     debug=: ;;
5866   --file | --fil | --fi | --f )
5867     shift
5868     CONFIG_FILES="$CONFIG_FILES $1"
5869     ac_need_defaults=false;;
5870   --header | --heade | --head | --hea )
5871     shift
5872     CONFIG_HEADERS="$CONFIG_HEADERS $1"
5873     ac_need_defaults=false;;
5874
5875   # This is an error.
5876   -*) { { echo "$as_me:5876: error: unrecognized option: $1
5877 Try \`$0 --help' for more information." >&5
5878 echo "$as_me: error: unrecognized option: $1
5879 Try \`$0 --help' for more information." >&2;}
5880    { (exit 1); exit 1; }; } ;;
5881
5882   *) ac_config_targets="$ac_config_targets $1" ;;
5883
5884   esac
5885   shift
5886 done
5887
5888 exec 5>>config.log
5889 cat >&5 << _ACEOF
5890
5891 ## ----------------------- ##
5892 ## Running config.status.  ##
5893 ## ----------------------- ##
5894
5895 This file was extended by $as_me 2.52.20150926, executed with
5896   CONFIG_FILES    = $CONFIG_FILES
5897   CONFIG_HEADERS  = $CONFIG_HEADERS
5898   CONFIG_LINKS    = $CONFIG_LINKS
5899   CONFIG_COMMANDS = $CONFIG_COMMANDS
5900   > $ac_cs_invocation
5901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5902
5903 _ACEOF
5904 EOF
5905
5906 cat >>$CONFIG_STATUS <<\EOF
5907 for ac_config_target in $ac_config_targets
5908 do
5909   case "$ac_config_target" in
5910   # Handling of arguments.
5911   "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
5912   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
5913   *) { { echo "$as_me:5913: error: invalid argument: $ac_config_target" >&5
5914 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5915    { (exit 1); exit 1; }; };;
5916   esac
5917 done
5918
5919 # If the user did not use the arguments to specify the items to instantiate,
5920 # then the envvar interface is used.  Set only those that are not.
5921 # We use the long form for the default assignment because of an extremely
5922 # bizarre bug on SunOS 4.1.3.
5923 if $ac_need_defaults; then
5924   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5925   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5926 fi
5927
5928 # Create a temporary directory, and hook for its removal unless debugging.
5929 $debug ||
5930 {
5931   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5932   trap '{ (exit 1); exit 1; }' 1 2 13 15
5933 }
5934
5935 # Create a (secure) tmp directory for tmp files.
5936 : ${TMPDIR=/tmp}
5937 {
5938   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5939   test -n "$tmp" && test -d "$tmp"
5940 }  ||
5941 {
5942   tmp=$TMPDIR/cs$$-$RANDOM
5943   (umask 077 && mkdir $tmp)
5944 } ||
5945 {
5946    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5947    { (exit 1); exit 1; }
5948 }
5949
5950 EOF
5951
5952 cat >>$CONFIG_STATUS <<EOF
5953
5954 #
5955 # CONFIG_FILES section.
5956 #
5957
5958 # No need to generate the scripts if there are no CONFIG_FILES.
5959 # This happens for instance when ./config.status config.h
5960 if test -n "\$CONFIG_FILES"; then
5961   # Protect against being on the right side of a sed subst in config.status.
5962   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5963    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5964 s,@SHELL@,$SHELL,;t t
5965 s,@exec_prefix@,$exec_prefix,;t t
5966 s,@prefix@,$prefix,;t t
5967 s,@program_transform_name@,$program_transform_name,;t t
5968 s,@bindir@,$bindir,;t t
5969 s,@sbindir@,$sbindir,;t t
5970 s,@libexecdir@,$libexecdir,;t t
5971 s,@datarootdir@,$datarootdir,;t t
5972 s,@datadir@,$datadir,;t t
5973 s,@sysconfdir@,$sysconfdir,;t t
5974 s,@sharedstatedir@,$sharedstatedir,;t t
5975 s,@localstatedir@,$localstatedir,;t t
5976 s,@libdir@,$libdir,;t t
5977 s,@includedir@,$includedir,;t t
5978 s,@oldincludedir@,$oldincludedir,;t t
5979 s,@infodir@,$infodir,;t t
5980 s,@mandir@,$mandir,;t t
5981 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5982 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5983 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5984 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5985 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5986 s,@build_alias@,$build_alias,;t t
5987 s,@host_alias@,$host_alias,;t t
5988 s,@target_alias@,$target_alias,;t t
5989 s,@ECHO_C@,$ECHO_C,;t t
5990 s,@ECHO_N@,$ECHO_N,;t t
5991 s,@ECHO_T@,$ECHO_T,;t t
5992 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5993 s,@DEFS@,$DEFS,;t t
5994 s,@LIBS@,$LIBS,;t t
5995 s,@build@,$build,;t t
5996 s,@build_cpu@,$build_cpu,;t t
5997 s,@build_vendor@,$build_vendor,;t t
5998 s,@build_os@,$build_os,;t t
5999 s,@host@,$host,;t t
6000 s,@host_cpu@,$host_cpu,;t t
6001 s,@host_vendor@,$host_vendor,;t t
6002 s,@host_os@,$host_os,;t t
6003 s,@target@,$target,;t t
6004 s,@target_cpu@,$target_cpu,;t t
6005 s,@target_vendor@,$target_vendor,;t t
6006 s,@target_os@,$target_os,;t t
6007 s,@CC@,$CC,;t t
6008 s,@CFLAGS@,$CFLAGS,;t t
6009 s,@LDFLAGS@,$LDFLAGS,;t t
6010 s,@CPPFLAGS@,$CPPFLAGS,;t t
6011 s,@ac_ct_CC@,$ac_ct_CC,;t t
6012 s,@EXEEXT@,$EXEEXT,;t t
6013 s,@OBJEXT@,$OBJEXT,;t t
6014 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
6015 s,@SET_MAKE@,$SET_MAKE,;t t
6016 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6017 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6018 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6019 s,@CTAGS@,$CTAGS,;t t
6020 s,@ETAGS@,$ETAGS,;t t
6021 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
6022 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
6023 s,@AWK@,$AWK,;t t
6024 s,@LINT@,$LINT,;t t
6025 s,@LINT_OPTS@,$LINT_OPTS,;t t
6026 s,@CPP@,$CPP,;t t
6027 s,@SKELETON@,$SKELETON,;t t
6028 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
6029 s,@ECHO_LT@,$ECHO_LT,;t t
6030 s,@ECHO_LD@,$ECHO_LD,;t t
6031 s,@RULE_CC@,$RULE_CC,;t t
6032 s,@SHOW_CC@,$SHOW_CC,;t t
6033 s,@ECHO_CC@,$ECHO_CC,;t t
6034 s,@GROFF_PATH@,$GROFF_PATH,;t t
6035 s,@NROFF_PATH@,$NROFF_PATH,;t t
6036 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
6037 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
6038 s,@cf_man2html@,$cf_man2html,;t t
6039 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
6040 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
6041 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
6042 CEOF
6043
6044 EOF
6045
6046   cat >>$CONFIG_STATUS <<\EOF
6047   # Split the substitutions into bite-sized pieces for seds with
6048   # small command number limits, like on Digital OSF/1 and HP-UX.
6049   ac_max_sed_lines=48
6050   ac_sed_frag=1 # Number of current file.
6051   ac_beg=1 # First line for current file.
6052   ac_end=$ac_max_sed_lines # Line after last line for current file.
6053   ac_more_lines=:
6054   ac_sed_cmds=
6055   while $ac_more_lines; do
6056     if test $ac_beg -gt 1; then
6057       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6058     else
6059       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6060     fi
6061     if test ! -s $tmp/subs.frag; then
6062       ac_more_lines=false
6063     else
6064       # The purpose of the label and of the branching condition is to
6065       # speed up the sed processing (if there are no `@' at all, there
6066       # is no need to browse any of the substitutions).
6067       # These are the two extra sed commands mentioned above.
6068       (echo ':t
6069   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6070       # It is possible to make a multiline substitution using escaped newlines.
6071       # Ensure that we do not split the substitution between script fragments.
6072       ac_BEG=$ac_end
6073       ac_END=`expr $ac_end + $ac_max_sed_lines`
6074       sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
6075       if test -s $tmp/subs.next; then
6076         grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
6077         if test ! -s $tmp/subs.edit; then
6078           grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
6079           if test ! -s $tmp/subs.edit; then
6080             if test $ac_beg -gt 1; then
6081               ac_end=`expr $ac_end - 1`
6082               continue
6083             fi
6084           fi
6085         fi
6086       fi
6087
6088       if test -z "$ac_sed_cmds"; then
6089         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6090       else
6091         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6092       fi
6093       ac_sed_frag=`expr $ac_sed_frag + 1`
6094       ac_beg=$ac_end
6095       ac_end=`expr $ac_end + $ac_max_sed_lines`
6096     fi
6097   done
6098   if test -z "$ac_sed_cmds"; then
6099     ac_sed_cmds=cat
6100   fi
6101 fi # test -n "$CONFIG_FILES"
6102
6103 EOF
6104 cat >>$CONFIG_STATUS <<\EOF
6105 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6106   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6107   case $ac_file in
6108   - | *:- | *:-:* ) # input from stdin
6109         cat >$tmp/stdin
6110         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6111         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6112   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6113         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6114   * )   ac_file_in=$ac_file.in ;;
6115   esac
6116
6117   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6118   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6119          X"$ac_file" : 'X\(//\)[^/]' \| \
6120          X"$ac_file" : 'X\(//\)$' \| \
6121          X"$ac_file" : 'X\(/\)' \| \
6122          .     : '\(.\)' 2>/dev/null ||
6123 echo X"$ac_file" |
6124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6125           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6126           /^X\(\/\/\)$/{ s//\1/; q; }
6127           /^X\(\/\).*/{ s//\1/; q; }
6128           s/.*/./; q'`
6129   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6130     { case "$ac_dir" in
6131   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6132   *)                      as_incr_dir=.;;
6133 esac
6134 as_dummy="$ac_dir"
6135 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6136   case $as_mkdir_dir in
6137     # Skip DOS drivespec
6138     ?:) as_incr_dir=$as_mkdir_dir ;;
6139     *)
6140       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6141       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6142     ;;
6143   esac
6144 done; }
6145
6146     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6147     # A "../" for each directory in $ac_dir_suffix.
6148     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
6149   else
6150     ac_dir_suffix= ac_dots=
6151   fi
6152
6153   case $srcdir in
6154   .)  ac_srcdir=.
6155       if test -z "$ac_dots"; then
6156          ac_top_srcdir=.
6157       else
6158          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
6159       fi ;;
6160   [\\/]* | ?:[\\/]* )
6161       ac_srcdir=$srcdir$ac_dir_suffix;
6162       ac_top_srcdir=$srcdir ;;
6163   *) # Relative path.
6164     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
6165     ac_top_srcdir=$ac_dots$srcdir ;;
6166   esac
6167
6168   case $INSTALL in
6169   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6170   *) ac_INSTALL=$ac_dots$INSTALL ;;
6171   esac
6172
6173   if test x"$ac_file" != x-; then
6174     { echo "$as_me:6174: creating $ac_file" >&5
6175 echo "$as_me: creating $ac_file" >&6;}
6176     rm -f "$ac_file"
6177   fi
6178   # Let's still pretend it is `configure' which instantiates (i.e., don't
6179   # use $as_me), people would be surprised to read:
6180   #    /* config.h.  Generated automatically by config.status.  */
6181   configure_input="Generated automatically from `echo $ac_file_in |
6182                                                  sed 's,.*/,,'` by configure."
6183
6184   # First look for the input files in the build tree, otherwise in the
6185   # src tree.
6186   ac_file_inputs=`IFS=:
6187     for f in $ac_file_in; do
6188       case $f in
6189       -) echo $tmp/stdin ;;
6190       [\\/$]*)
6191          # Absolute (can't be DOS-style, as IFS=:)
6192          test -f "$f" || { { echo "$as_me:6192: error: cannot find input file: $f" >&5
6193 echo "$as_me: error: cannot find input file: $f" >&2;}
6194    { (exit 1); exit 1; }; }
6195          echo $f;;
6196       *) # Relative
6197          if test -f "$f"; then
6198            # Build tree
6199            echo $f
6200          elif test -f "$srcdir/$f"; then
6201            # Source tree
6202            echo $srcdir/$f
6203          else
6204            # /dev/null tree
6205            { { echo "$as_me:6205: error: cannot find input file: $f" >&5
6206 echo "$as_me: error: cannot find input file: $f" >&2;}
6207    { (exit 1); exit 1; }; }
6208          fi;;
6209       esac
6210     done` || { (exit 1); exit 1; }
6211 EOF
6212 cat >>$CONFIG_STATUS <<\EOF
6213   ac_warn_datarootdir=no
6214   if test x"$ac_file" != x-; then
6215     for ac_item in $ac_file_inputs
6216     do
6217       ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
6218       if test -n "$ac_seen"; then
6219         ac_used=`grep '@datarootdir@' $ac_item`
6220         if test -z "$ac_used"; then
6221           { echo "$as_me:6221: WARNING: datarootdir was used implicitly but not set:
6222 $ac_seen" >&5
6223 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
6224 $ac_seen" >&2;}
6225           ac_warn_datarootdir=yes
6226         fi
6227       fi
6228       ac_seen=`grep '${datarootdir}' $ac_item`
6229       if test -n "$ac_seen"; then
6230         { echo "$as_me:6230: WARNING: datarootdir was used explicitly but not set:
6231 $ac_seen" >&5
6232 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
6233 $ac_seen" >&2;}
6234         ac_warn_datarootdir=yes
6235       fi
6236     done
6237   fi
6238
6239 if test "x$ac_warn_datarootdir" = xyes; then
6240   ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
6241 fi
6242
6243 EOF
6244 cat >>$CONFIG_STATUS <<EOF
6245   sed "$ac_vpsub
6246 $extrasub
6247 EOF
6248 cat >>$CONFIG_STATUS <<\EOF
6249 :t
6250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6251 s,@configure_input@,$configure_input,;t t
6252 s,@srcdir@,$ac_srcdir,;t t
6253 s,@top_srcdir@,$ac_top_srcdir,;t t
6254 s,@INSTALL@,$ac_INSTALL,;t t
6255 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6256   rm -f $tmp/stdin
6257   if test x"$ac_file" != x-; then
6258     cp $tmp/out $ac_file
6259
6260     for ac_name in prefix exec_prefix datarootdir
6261     do
6262         ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
6263         if test -n "$ac_seen"; then
6264             ac_init=`egrep '[   ]*'$ac_name'[   ]*=' $ac_file`
6265             if test -z "$ac_init"; then
6266               ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
6267               { echo "$as_me:6267: WARNING: Variable $ac_name is used but was not set:
6268 $ac_seen" >&5
6269 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
6270 $ac_seen" >&2;}
6271             fi
6272         fi
6273     done
6274     egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
6275     egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
6276     if test -s $tmp/out; then
6277       ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
6278       { echo "$as_me:6278: WARNING: Some variables may not be substituted:
6279 $ac_seen" >&5
6280 echo "$as_me: WARNING: Some variables may not be substituted:
6281 $ac_seen" >&2;}
6282     fi
6283   else
6284     cat $tmp/out
6285   fi
6286   rm -f $tmp/out
6287
6288 done
6289 EOF
6290 cat >>$CONFIG_STATUS <<\EOF
6291
6292 #
6293 # CONFIG_HEADER section.
6294 #
6295
6296 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6297 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6298 #
6299 # ac_d sets the value in "#define NAME VALUE" lines.
6300 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6301 ac_dB='[        ].*$,\1#\2'
6302 ac_dC=' '
6303 ac_dD=',;t'
6304 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6305 ac_iA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6306 ac_iB='\([      ]\),\1#\2define\3'
6307 ac_iC=' '
6308 ac_iD='\4,;t'
6309 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6310 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6311 ac_uB='$,\1#\2define\3'
6312 ac_uC=' '
6313 ac_uD=',;t'
6314
6315 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6316   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6317   case $ac_file in
6318   - | *:- | *:-:* ) # input from stdin
6319         cat >$tmp/stdin
6320         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6321         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6322   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6323         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6324   * )   ac_file_in=$ac_file.in ;;
6325   esac
6326
6327   test x"$ac_file" != x- && { echo "$as_me:6327: creating $ac_file" >&5
6328 echo "$as_me: creating $ac_file" >&6;}
6329
6330   # First look for the input files in the build tree, otherwise in the
6331   # src tree.
6332   ac_file_inputs=`IFS=:
6333     for f in $ac_file_in; do
6334       case $f in
6335       -) echo $tmp/stdin ;;
6336       [\\/$]*)
6337          # Absolute (can't be DOS-style, as IFS=:)
6338          test -f "$f" || { { echo "$as_me:6338: error: cannot find input file: $f" >&5
6339 echo "$as_me: error: cannot find input file: $f" >&2;}
6340    { (exit 1); exit 1; }; }
6341          echo $f;;
6342       *) # Relative
6343          if test -f "$f"; then
6344            # Build tree
6345            echo $f
6346          elif test -f "$srcdir/$f"; then
6347            # Source tree
6348            echo $srcdir/$f
6349          else
6350            # /dev/null tree
6351            { { echo "$as_me:6351: error: cannot find input file: $f" >&5
6352 echo "$as_me: error: cannot find input file: $f" >&2;}
6353    { (exit 1); exit 1; }; }
6354          fi;;
6355       esac
6356     done` || { (exit 1); exit 1; }
6357   # Remove the trailing spaces.
6358   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
6359
6360 EOF
6361
6362 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6363 # `conftest.undefs', that substitutes the proper values into
6364 # config.h.in to produce config.h.  The first handles `#define'
6365 # templates, and the second `#undef' templates.
6366 # And first: Protect against being on the right side of a sed subst in
6367 # config.status.  Protect against being in an unquoted here document
6368 # in config.status.
6369 rm -f conftest.defines conftest.undefs
6370 # Using a here document instead of a string reduces the quoting nightmare.
6371 # Putting comments in sed scripts is not portable.
6372 #
6373 # `end' is used to avoid that the second main sed command (meant for
6374 # 0-ary CPP macros) applies to n-ary macro definitions.
6375 # See the Autoconf documentation for `clear'.
6376 cat >confdef2sed.sed <<\EOF
6377 s/[\\&,]/\\&/g
6378 s,[\\$`],\\&,g
6379 t clear
6380 : clear
6381 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
6382 t end
6383 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6384 : end
6385 EOF
6386 # If some macros were called several times there might be several times
6387 # the same #defines, which is useless.  Nevertheless, we may not want to
6388 # sort them, since we want the *last* AC-DEFINE to be honored.
6389 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6390 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6391 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
6392 rm -f confdef2sed.sed
6393
6394 # This sed command replaces #undef with comments.  This is necessary, for
6395 # example, in the case of _POSIX_SOURCE, which is predefined and required
6396 # on some systems where configure will not decide to define it.
6397 cat >>conftest.undefs <<\EOF
6398 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6399 EOF
6400
6401 # Break up conftest.defines because some shells have a limit on the size
6402 # of here documents, and old seds have small limits too (100 cmds).
6403 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6404 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6405 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6406 echo '  :' >>$CONFIG_STATUS
6407 rm -f conftest.tail
6408 while grep . conftest.defines >/dev/null
6409 do
6410   # Write a limited-size here document to $tmp/defines.sed.
6411   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6412   # Speed up: don't consider the non `#define' lines.
6413   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6414   # Work around the forget-to-reset-the-flag bug.
6415   echo 't clr' >>$CONFIG_STATUS
6416   echo ': clr' >>$CONFIG_STATUS
6417   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6418   echo 'CEOF
6419   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6420   rm -f $tmp/in
6421   mv $tmp/out $tmp/in
6422 ' >>$CONFIG_STATUS
6423   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6424   rm -f conftest.defines
6425   mv conftest.tail conftest.defines
6426 done
6427 rm -f conftest.defines
6428 echo '  fi # egrep' >>$CONFIG_STATUS
6429 echo >>$CONFIG_STATUS
6430
6431 # Break up conftest.undefs because some shells have a limit on the size
6432 # of here documents, and old seds have small limits too (100 cmds).
6433 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6434 rm -f conftest.tail
6435 while grep . conftest.undefs >/dev/null
6436 do
6437   # Write a limited-size here document to $tmp/undefs.sed.
6438   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6439   # Speed up: don't consider the non `#undef'
6440   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6441   # Work around the forget-to-reset-the-flag bug.
6442   echo 't clr' >>$CONFIG_STATUS
6443   echo ': clr' >>$CONFIG_STATUS
6444   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6445   echo 'CEOF
6446   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6447   rm -f $tmp/in
6448   mv $tmp/out $tmp/in
6449 ' >>$CONFIG_STATUS
6450   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6451   rm -f conftest.undefs
6452   mv conftest.tail conftest.undefs
6453 done
6454 rm -f conftest.undefs
6455
6456 cat >>$CONFIG_STATUS <<\EOF
6457   # Let's still pretend it is `configure' which instantiates (i.e., don't
6458   # use $as_me), people would be surprised to read:
6459   #    /* config.h.  Generated automatically by config.status.  */
6460   if test x"$ac_file" = x-; then
6461     echo "/* Generated automatically by configure.  */" >$tmp/config.h
6462   else
6463     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
6464   fi
6465   cat $tmp/in >>$tmp/config.h
6466   rm -f $tmp/in
6467   if test x"$ac_file" != x-; then
6468     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6469       { echo "$as_me:6469: $ac_file is unchanged" >&5
6470 echo "$as_me: $ac_file is unchanged" >&6;}
6471     else
6472       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6473          X"$ac_file" : 'X\(//\)[^/]' \| \
6474          X"$ac_file" : 'X\(//\)$' \| \
6475          X"$ac_file" : 'X\(/\)' \| \
6476          .     : '\(.\)' 2>/dev/null ||
6477 echo X"$ac_file" |
6478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6479           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6480           /^X\(\/\/\)$/{ s//\1/; q; }
6481           /^X\(\/\).*/{ s//\1/; q; }
6482           s/.*/./; q'`
6483       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6484         { case "$ac_dir" in
6485   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6486   *)                      as_incr_dir=.;;
6487 esac
6488 as_dummy="$ac_dir"
6489 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6490   case $as_mkdir_dir in
6491     # Skip DOS drivespec
6492     ?:) as_incr_dir=$as_mkdir_dir ;;
6493     *)
6494       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6495       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6496     ;;
6497   esac
6498 done; }
6499
6500       fi
6501       rm -f $ac_file
6502       mv $tmp/config.h $ac_file
6503     fi
6504   else
6505     cat $tmp/config.h
6506     rm -f $tmp/config.h
6507   fi
6508 done
6509 EOF
6510
6511 cat >>$CONFIG_STATUS <<\EOF
6512
6513 { (exit 0); exit 0; }
6514 EOF
6515 chmod +x $CONFIG_STATUS
6516 ac_clean_files=$ac_clean_files_save
6517
6518 # configure is writing to config.log, and then calls config.status.
6519 # config.status does its own redirection, appending to config.log.
6520 # Unfortunately, on DOS this fails, as config.log is still kept open
6521 # by configure, so config.status won't be able to write to it; its
6522 # output is simply discarded.  So we exec the FD to /dev/null,
6523 # effectively closing config.log, so it can be properly (re)opened and
6524 # appended to by config.status.  When coming back to configure, we
6525 # need to make the FD available again.
6526 if test "$no_create" != yes; then
6527   ac_cs_success=:
6528   exec 5>/dev/null
6529   $SHELL $CONFIG_STATUS || ac_cs_success=false
6530   exec 5>>config.log
6531   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6532   # would make configure fail if this is the last instruction.
6533   $ac_cs_success || { (exit 1); exit 1; }
6534 fi
6535
6536 test -z "$cf_make_docs" && cf_make_docs=0
6537
6538 cf_output=makefile
6539 test -f "$cf_output" || cf_output=Makefile
6540
6541 if test "$cf_make_docs" = 0
6542 then
6543 cat >>$cf_output <<CF_EOF
6544 ################################################################################
6545 ## generated by CF_MAKE_DOCS
6546 .SUFFIXES : .html .1 .man .ps .pdf .txt
6547
6548 ${NROFF_NOTE}.1.txt :
6549 ${NROFF_NOTE}   \$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@
6550
6551 ${GROFF_NOTE}.ps.pdf :
6552 ${GROFF_NOTE}   ps2pdf \$*.ps
6553 ${GROFF_NOTE}
6554 ${GROFF_NOTE}.1.ps :
6555 ${GROFF_NOTE}   \$(SHELL) -c "tbl \$*.1 | groff -man" >\$@
6556 ${GROFF_NOTE}
6557 ${GROFF_NOTE}.1.txt :
6558 ${GROFF_NOTE}   GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -Tascii -man | col -bx" >\$@
6559
6560 ${MAN2HTML_NOTE}.1.html :
6561 ${MAN2HTML_NOTE}        ./${MAN2HTML_TEMP} \$* 1 man >\$@
6562
6563 CF_EOF
6564         cf_make_docs=1
6565 fi
6566
6567 for cf_name in yacc
6568 do
6569 cat >>$cf_output <<CF_EOF
6570 ################################################################################
6571 ${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
6572 ${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html
6573 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf
6574 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps
6575 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
6576
6577 clean \\
6578 docs-clean ::
6579 ${NROFF_NOTE}   rm -f $cf_name.txt
6580 ${MAN2HTML_NOTE}        rm -f $cf_name.html
6581 ${GROFF_NOTE}   rm -f $cf_name.pdf
6582 ${GROFF_NOTE}   rm -f $cf_name.ps
6583 ${GROFF_NOTE}   rm -f $cf_name.txt
6584
6585 ${NROFF_NOTE}$cf_name.txt  : $cf_name.1
6586 ${MAN2HTML_NOTE}$cf_name.html : $cf_name.1
6587 ${GROFF_NOTE}$cf_name.pdf  : $cf_name.ps
6588 ${GROFF_NOTE}$cf_name.ps   : $cf_name.1
6589 ${GROFF_NOTE}$cf_name.txt  : $cf_name.1
6590 CF_EOF
6591 done
6592