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