configure revision 1.1.1.13 1 #! /bin/sh
2 # From configure.in Revision: 1.31 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20260118.
5 #
6 # Copyright 2003-2025,2026 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
18
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 emulate sh
28 NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 set -o posix
31 fi
32
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
36 if expr a : '\(a\)' >/dev/null 2>&1; then
37 as_expr="expr"
38 else
39 as_expr="false"
40 fi
41
42 rm -f conf$$ conf$$.exe conf$$.file
43 echo >conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
49 as_ln_s='cp -p'
50 else
51 as_ln_s='ln -s'
52 fi
53 elif ln conf$$.file conf$$ 2>/dev/null; then
54 as_ln_s='ln'
55 else
56 as_ln_s='cp -p'
57 fi
58 rm -f conf$$ conf$$.exe conf$$.file
59
60 as_executable_p="test -f"
61
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64 as_unset="unset"
65 else
66 as_unset="false"
67 fi
68
69 # NLS nuisances.
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
79 # IFS
80 # We need space, tab and new line, in precisely that order.
81 as_nl='
82 '
83 IFS=" $as_nl"
84
85 # CDPATH.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
88 # Name of the host.
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
93 exec 6>&1
94
95 #
96 # Initializations.
97 #
98 ac_default_prefix=/usr/local
99 cross_compiling=no
100 subdirs=
101 MFLAGS=
102 MAKEFLAGS=
103 SHELL=${CONFIG_SHELL-/bin/sh}
104
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
109
110 ac_unique_file="main.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
113 #include <stdio.h>
114 #if HAVE_SYS_TYPES_H
115 # include <sys/types.h>
116 #endif
117 #if HAVE_SYS_STAT_H
118 # include <sys/stat.h>
119 #endif
120 #if STDC_HEADERS
121 # include <stdlib.h>
122 # include <stddef.h>
123 #else
124 # if HAVE_STDLIB_H
125 # include <stdlib.h>
126 # endif
127 #endif
128 #if HAVE_STRING_H
129 # if !STDC_HEADERS && HAVE_MEMORY_H
130 # include <memory.h>
131 # endif
132 # include <string.h>
133 #endif
134 #if HAVE_STRINGS_H
135 # include <strings.h>
136 #endif
137 #if HAVE_INTTYPES_H
138 # include <inttypes.h>
139 #else
140 # if HAVE_STDINT_H
141 # include <stdint.h>
142 # endif
143 #endif
144 #if HAVE_UNISTD_H
145 # include <unistd.h>
146 #endif"
147
148 # Initialize some variables set by options.
149 ac_init_help=
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
153 cache_file=/dev/null
154 exec_prefix=NONE
155 no_create=
156 no_recursion=
157 prefix=NONE
158 program_prefix=NONE
159 program_suffix=NONE
160 program_transform_name=s,x,x,
161 silent=
162 site=
163 srcdir=
164 verbose=
165 x_includes=NONE
166 x_libraries=NONE
167
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
187
188 # Identity of this package.
189 PACKAGE_NAME=
190 PACKAGE_TARNAME=
191 PACKAGE_VERSION=
192 PACKAGE_STRING=
193 PACKAGE_BUGREPORT=
194
195 ac_prev=
196 for ac_option
197 do
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
201 ac_prev=
202 continue
203 fi
204
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
206
207 # Accept the important Cygnus configure options, so we can diagnose typos.
208
209 case "$ac_option" in
210
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
212 ac_prev=bindir ;;
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 bindir=$ac_optarg ;;
215
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
220
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
227
228 --config-cache | -C)
229 cache_file=config.cache ;;
230
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
232 ac_prev=datadir ;;
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
234 | --da=*)
235 datadir=$ac_optarg ;;
236
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
243
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
252
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
260 case "$ac_option" in
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 *) ac_optarg=yes ;;
263 esac
264 eval "enable_$ac_feature='$ac_optarg'" ;;
265
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
274
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
277 with_gas=yes ;;
278
279 -help | --help | --hel | --he | -h)
280 ac_init_help=long ;;
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
285
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
290
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
297
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
299 ac_prev=infodir ;;
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
302
303 -libdir | --libdir | --libdi | --libd)
304 ac_prev=libdir ;;
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 libdir=$ac_optarg ;;
307
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
314
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
323
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
332
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
334 ac_prev=mandir ;;
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
336 mandir=$ac_optarg ;;
337
338 -nfp | --nfp | --nf)
339 # Obsolete; use --without-fp.
340 with_fp=no ;;
341
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
343 | --no-cr | --no-c)
344 no_create=yes ;;
345
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 no_recursion=yes ;;
349
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
358
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
360 ac_prev=prefix ;;
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 prefix=$ac_optarg ;;
363
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
370
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
377
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
394
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
397 silent=yes ;;
398
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
400 ac_prev=sbindir ;;
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
402 | --sbi=* | --sb=*)
403 sbindir=$ac_optarg ;;
404
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
408 | --sha | --sh)
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
413 | --sha=* | --sh=*)
414 sharedstatedir=$ac_optarg ;;
415
416 -site | --site | --sit)
417 ac_prev=site ;;
418 -site=* | --site=* | --sit=*)
419 site=$ac_optarg ;;
420
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
422 ac_prev=srcdir ;;
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 srcdir=$ac_optarg ;;
425
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
432
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
437
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 verbose=yes ;;
440
441 -version | --version | --versio | --versi | --vers | -V)
442 ac_init_version=: ;;
443
444 -with-* | --with-*)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
451 case "$ac_option" in
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 *) ac_optarg=yes ;;
454 esac
455 eval "with_$ac_package='$ac_optarg'" ;;
456
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
465
466 --x)
467 # Obsolete; use --with-x.
468 with_x=yes ;;
469
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
476
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
483
484 -*dir | -dvi* | -doc* | -html* | -local* | -pdf* | -ps* )
485 echo "$as_me: WARNING: unsupported option: $ac_option" >&2
486 ;;
487
488 -*) { echo "$as_me: error: unrecognized option: $ac_option
489 Try \`$0 --help' for more information." >&2
490 { (exit 1); exit 1; }; }
491 ;;
492
493 *=*)
494 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
495 # Reject names that are not valid shell variable names.
496 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
497 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
498 { (exit 1); exit 1; }; }
499 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
500 eval "$ac_envvar='$ac_optarg'"
501 export "$ac_envvar" ;;
502
503 *)
504 # FIXME: should be removed in autoconf 3.0.
505 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
506 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
507 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
508 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
509 ;;
510
511 esac
512 done
513
514 if test -n "$ac_prev"; then
515 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
516 { echo "$as_me: error: missing argument to $ac_option" >&2
517 { (exit 1); exit 1; }; }
518 fi
519
520 # Be sure to have absolute paths.
521 for ac_var in exec_prefix prefix
522 do
523 eval ac_val=$`echo "$ac_var"`
524 case "$ac_val" in
525 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
526 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
527 { (exit 1); exit 1; }; };;
528 esac
529 done
530
531 # Be sure to have absolute paths.
532 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
533 localstatedir libdir includedir oldincludedir infodir mandir
534 do
535 eval ac_val=$`echo "$ac_var"`
536 case "$ac_val" in
537 [\\/$]* | ?:[\\/]* ) ;;
538 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
539 { (exit 1); exit 1; }; };;
540 esac
541 done
542
543 # There might be people who depend on the old broken behavior: `$host'
544 # used to hold the argument of --host etc.
545 build=$build_alias
546 host=$host_alias
547 target=$target_alias
548
549 # FIXME: should be removed in autoconf 3.0.
550 if test "x$host_alias" != x; then
551 if test "x$build_alias" = x; then
552 cross_compiling=maybe
553 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
554 If a cross compiler is detected then cross compile mode will be used." >&2
555 elif test "x$build_alias" != "x$host_alias"; then
556 cross_compiling=yes
557 fi
558 fi
559
560 ac_tool_prefix=
561 test -n "$host_alias" && ac_tool_prefix=$host_alias-
562
563 test "$silent" = yes && exec 6>/dev/null
564
565 # Find the source files, if location was not specified.
566 if test -z "$srcdir"; then
567 ac_srcdir_defaulted=yes
568 # Try the directory containing this script, then its parent.
569 ac_prog=$0
570 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
571 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
572 srcdir=$ac_confdir
573 if test ! -r "$srcdir/$ac_unique_file"; then
574 srcdir=..
575 fi
576 else
577 ac_srcdir_defaulted=no
578 fi
579 if test ! -r "$srcdir/$ac_unique_file"; then
580 if test "$ac_srcdir_defaulted" = yes; then
581 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
582 { (exit 1); exit 1; }; }
583 else
584 { echo "$as_me: error: cannot find sources in $srcdir" >&2
585 { (exit 1); exit 1; }; }
586 fi
587 fi
588 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
589 ac_env_build_alias_set=${build_alias+set}
590 ac_env_build_alias_value=$build_alias
591 ac_cv_env_build_alias_set=${build_alias+set}
592 ac_cv_env_build_alias_value=$build_alias
593 ac_env_host_alias_set=${host_alias+set}
594 ac_env_host_alias_value=$host_alias
595 ac_cv_env_host_alias_set=${host_alias+set}
596 ac_cv_env_host_alias_value=$host_alias
597 ac_env_target_alias_set=${target_alias+set}
598 ac_env_target_alias_value=$target_alias
599 ac_cv_env_target_alias_set=${target_alias+set}
600 ac_cv_env_target_alias_value=$target_alias
601 ac_env_CC_set=${CC+set}
602 ac_env_CC_value=$CC
603 ac_cv_env_CC_set=${CC+set}
604 ac_cv_env_CC_value=$CC
605 ac_env_CFLAGS_set=${CFLAGS+set}
606 ac_env_CFLAGS_value=$CFLAGS
607 ac_cv_env_CFLAGS_set=${CFLAGS+set}
608 ac_cv_env_CFLAGS_value=$CFLAGS
609 ac_env_LDFLAGS_set=${LDFLAGS+set}
610 ac_env_LDFLAGS_value=$LDFLAGS
611 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
612 ac_cv_env_LDFLAGS_value=$LDFLAGS
613 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
614 ac_env_CPPFLAGS_value=$CPPFLAGS
615 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
616 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
617 ac_env_CPP_set=${CPP+set}
618 ac_env_CPP_value=$CPP
619 ac_cv_env_CPP_set=${CPP+set}
620 ac_cv_env_CPP_value=$CPP
621
622 #
623 # Report the --help message.
624 #
625 if test "$ac_init_help" = "long"; then
626 # Omit some internal or obsolete options to make the list less imposing.
627 # This message is too long to be a string in the A/UX 3.1 sh.
628 cat <<EOF
629 \`configure' configures this package to adapt to many kinds of systems.
630
631 Usage: $0 [OPTION]... [VAR=VALUE]...
632
633 To assign environment variables (e.g., CC, CFLAGS...), specify them as
634 VAR=VALUE. See below for descriptions of some of the useful variables.
635
636 Defaults for the options are specified in brackets.
637
638 Configuration:
639 -h, --help display this help and exit
640 --help=short display options specific to this package
641 --help=recursive display the short help of all the included packages
642 -V, --version display version information and exit
643 -q, --quiet, --silent do not print \`checking...' messages
644 --cache-file=FILE cache test results in FILE [disabled]
645 -C, --config-cache alias for \`--cache-file=config.cache'
646 -n, --no-create do not create output files
647 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648
649 EOF
650
651 cat <<EOF
652 Installation directories:
653 --prefix=PREFIX install architecture-independent files in PREFIX
654 [$ac_default_prefix]
655 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
656 [PREFIX]
657
658 By default, \`make install' will install all the files in
659 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
660 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
661 for instance \`--prefix=\$HOME'.
662
663 For better control, use the options below.
664
665 Fine tuning of the installation directories:
666 --bindir=DIR user executables [EPREFIX/bin]
667 --sbindir=DIR system admin executables [EPREFIX/sbin]
668 --libexecdir=DIR program executables [EPREFIX/libexec]
669 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
670 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
671 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
672 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
673 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
674 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
675 --libdir=DIR object code libraries [EPREFIX/lib]
676 --includedir=DIR C header files [PREFIX/include]
677 --oldincludedir=DIR C header files for non-gcc [/usr/include]
678 --infodir=DIR info documentation [DATAROOTDIR/info]
679 --mandir=DIR man documentation [DATAROOTDIR/man]
680 EOF
681
682 cat <<\EOF
683
684 Program names:
685 --program-prefix=PREFIX prepend PREFIX to installed program names
686 --program-suffix=SUFFIX append SUFFIX to installed program names
687 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
688
689 System types:
690 --build=BUILD configure for building on BUILD [guessed]
691 --host=HOST build programs to run on HOST [BUILD]
692 --target=TARGET configure for building compilers for TARGET [HOST]
693 EOF
694 fi
695
696 if test -n "$ac_init_help"; then
697
698 cat <<\EOF
699
700 Optional Packages:
701 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
702 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
703
704 Optional Features:
705 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
706 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
707
708 --with-system-type=XXX test: override derived host system-type
709 --with-max-table-size=N set the maximum table size = N (no default)
710 --disable-btyacc disable support for the btyacc backtracking
711 extension (default: enabled)
712 --enable-warnings test: turn on gcc compiler warnings
713 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
714 --disable-echo do not display "compiling" commands
715 --with-dmalloc test: use Gray Watson's dmalloc library
716 --with-dbmalloc test: use Conor Cahill's dbmalloc library
717 --with-valgrind test: use valgrind
718 --disable-leaks test: free permanent memory, analyze leaks
719 --with-manpage-format specify man page format: gzip/compress/bzip2/xz,
720 BSDI/normal and optionally formatted/catonly,
721 e.g., gzip,formatted
722 --with-man2html[=XXX] use XXX rather than groff
723
724 Some influential environment variables:
725 CC C compiler command
726 CFLAGS C compiler flags
727 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
728 nonstandard directory <lib dir>
729 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
730 headers in a nonstandard directory <include dir>
731 CPP C preprocessor
732
733 Use these variables to override the choices made by `configure' or to help
734 it to find libraries and programs with nonstandard names/locations.
735
736 EOF
737 fi
738
739 if test "$ac_init_help" = "recursive"; then
740 # If there are subdirs, report their specific --help.
741 ac_popdir=`pwd`
742 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
743 cd "$ac_subdir"
744 # A "../" for each directory in /$ac_subdir.
745 ac_dots=`echo "$ac_subdir" |
746 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
747
748 case "$srcdir" in
749 .) # No --srcdir option. We are building in place.
750 ac_sub_srcdir="$srcdir" ;;
751 [\\/]* | ?:[\\/]* ) # Absolute path.
752 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
753 *) # Relative path.
754 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
755 esac
756
757 # Check for guested configure; otherwise get Cygnus style configure.
758 if test -f "$ac_sub_srcdir/configure.gnu"; then
759 echo
760 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
761 elif test -f "$ac_sub_srcdir/configure"; then
762 echo
763 $SHELL "$ac_sub_srcdir/configure" --help=recursive
764 elif test -f "$ac_sub_srcdir/configure.ac" ||
765 test -f "$ac_sub_srcdir/configure.in"; then
766 echo
767 "$ac_configure" --help
768 else
769 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
770 fi
771 cd "$ac_popdir"
772 done
773 fi
774
775 test -n "$ac_init_help" && exit 0
776 if "$ac_init_version"; then
777 cat <<\EOF
778
779 Copyright 2003-2025,2026 Thomas E. Dickey
780 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
781 Free Software Foundation, Inc.
782 This configure script is free software; the Free Software Foundation
783 gives unlimited permission to copy, distribute and modify it.
784 EOF
785 exit 0
786 fi
787 exec 5>config.log
788 cat >&5 <<EOF
789 This file contains any messages produced by compilers while
790 running configure, to aid debugging if configure makes a mistake.
791
792 It was created by $as_me, which was
793 generated by GNU Autoconf 2.52.20260118. Invocation command line was
794
795 $ $0 $@
796
797 EOF
798 {
799 cat <<_ASUNAME
800 ## ---------- ##
801 ## Platform. ##
802 ## ---------- ##
803
804 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
805 uname -m = `(uname -m) 2>/dev/null || echo unknown`
806 uname -r = `(uname -r) 2>/dev/null || echo unknown`
807 uname -s = `(uname -s) 2>/dev/null || echo unknown`
808 uname -v = `(uname -v) 2>/dev/null || echo unknown`
809
810 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
811 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
812
813 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
814 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
815 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
816 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
817 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
818 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
819 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
820
821 PATH = $PATH
822
823 _ASUNAME
824 } >&5
825
826 cat >&5 <<EOF
827 ## ------------ ##
828 ## Core tests. ##
829 ## ------------ ##
830
831 EOF
832
833 # Keep a trace of the command line.
834 # Strip out --no-create and --no-recursion so they do not pile up.
835 # Also quote any args containing shell meta-characters.
836 ac_configure_args=
837 ac_sep=
838 for ac_arg
839 do
840 case "$ac_arg" in
841 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
842 | --no-cr | --no-c) ;;
843 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
844 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
845 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
846 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
847 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
848 ac_sep=" " ;;
849 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
850 ac_sep=" " ;;
851 esac
852 # Get rid of the leading space.
853 done
854
855 # When interrupted or exit'd, cleanup temporary files, and complete
856 # config.log. We remove comments because anyway the quotes in there
857 # would cause problems or look ugly.
858 trap 'exit_status=$?
859 # Save into config.log some information that might help in debugging.
860 echo >&5
861 echo "## ----------------- ##" >&5
862 echo "## Cache variables. ##" >&5
863 echo "## ----------------- ##" >&5
864 echo >&5
865 # The following way of writing the cache mishandles newlines in values,
866 {
867 (set) 2>&1 |
868 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
869 *ac_space=\ *)
870 sed -n \
871 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
873 ;;
874 *)
875 sed -n \
876 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
877 ;;
878 esac;
879 } >&5
880 sed "/^$/d" confdefs.h >conftest.log
881 if test -s conftest.log; then
882 echo >&5
883 echo "## ------------ ##" >&5
884 echo "## confdefs.h. ##" >&5
885 echo "## ------------ ##" >&5
886 echo >&5
887 cat conftest.log >&5
888 fi
889 (echo; echo) >&5
890 test "$ac_signal" != 0 &&
891 echo "$as_me: caught signal $ac_signal" >&5
892 echo "$as_me: exit $exit_status" >&5
893 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
894 exit $exit_status
895 ' 0
896 for ac_signal in 1 2 13 15; do
897 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
898 done
899 ac_signal=0
900
901 # confdefs.h avoids OS command line length limits that DEFS can exceed.
902 rm -rf conftest* confdefs.h
903 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
904 echo >confdefs.h
905
906 # Let the site file select an alternate cache file if it wants to.
907 # Prefer explicitly selected file to automatically selected ones.
908 if test -z "$CONFIG_SITE"; then
909 if test "x$prefix" != xNONE; then
910 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
911 else
912 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
913 fi
914 fi
915 for ac_site_file in $CONFIG_SITE; do
916 if test -r "$ac_site_file"; then
917 { echo "$as_me:917: loading site script $ac_site_file" >&5
918 echo "$as_me: loading site script $ac_site_file" >&6;}
919 cat "$ac_site_file" >&5
920 . "$ac_site_file"
921 fi
922 done
923
924 if test -r "$cache_file"; then
925 # Some versions of bash will fail to source /dev/null (special
926 # files actually), so we avoid doing that.
927 if test -f "$cache_file"; then
928 { echo "$as_me:928: loading cache $cache_file" >&5
929 echo "$as_me: loading cache $cache_file" >&6;}
930 case $cache_file in
931 [\\/]* | ?:[\\/]* ) . $cache_file;;
932 *) . ./$cache_file;;
933 esac
934 fi
935 else
936 { echo "$as_me:936: creating cache $cache_file" >&5
937 echo "$as_me: creating cache $cache_file" >&6;}
938 >$cache_file
939 fi
940
941 # Check that the precious variables saved in the cache have kept the same
942 # value.
943 ac_cache_corrupted=false
944 for ac_var in `(set) 2>&1 |
945 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
946 eval ac_old_set=\$ac_cv_env_${ac_var}_set
947 eval ac_new_set=\$ac_env_${ac_var}_set
948 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
949 eval ac_new_val="\$ac_env_${ac_var}_value"
950 case "$ac_old_set,$ac_new_set" in
951 set,)
952 { echo "$as_me:952: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
953 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
954 ac_cache_corrupted=: ;;
955 ,set)
956 { echo "$as_me:956: error: \`$ac_var' was not set in the previous run" >&5
957 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
958 ac_cache_corrupted=: ;;
959 ,);;
960 *)
961 if test "x$ac_old_val" != "x$ac_new_val"; then
962 { echo "$as_me:962: error: \`$ac_var' has changed since the previous run:" >&5
963 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
964 { echo "$as_me:964: former value: $ac_old_val" >&5
965 echo "$as_me: former value: $ac_old_val" >&2;}
966 { echo "$as_me:966: current value: $ac_new_val" >&5
967 echo "$as_me: current value: $ac_new_val" >&2;}
968 ac_cache_corrupted=:
969 fi;;
970 esac
971 # Pass precious variables to config.status. It doesn't matter if
972 # we pass some twice (in addition to the command line arguments).
973 if test "$ac_new_set" = set; then
974 case "$ac_new_val" in
975 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
976 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
977 ac_configure_args="$ac_configure_args '$ac_arg'"
978 ;;
979 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
980 ;;
981 esac
982 fi
983 done
984 if "$ac_cache_corrupted"; then
985 { echo "$as_me:985: error: changes in the environment can compromise the build" >&5
986 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
987 { { echo "$as_me:987: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
988 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
989 { (exit 1); exit 1; }; }
990 fi
991
992 ac_ext=c
993 ac_cpp='$CPP $CPPFLAGS'
994 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
995 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
997 ac_main_return="return"
998
999 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1000 *c*,-n*) ECHO_N=
1001 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1002 ECHO_T=' '
1003 ;;
1004 *c*,* ) ECHO_N=-n
1005 ECHO_C=
1006 ECHO_T=
1007 ;;
1008 *) ECHO_N=
1009 ECHO_C='\c'
1010 ECHO_T=
1011 ;;
1012 esac
1013 echo "#! $SHELL" >conftest.sh
1014 echo "exit 0" >>conftest.sh
1015 chmod +x conftest.sh
1016 if { (echo "$as_me:1016: PATH=\".;.\"; conftest.sh") >&5
1017 (PATH=".;."; conftest.sh) 2>&5
1018 ac_status=$?
1019 echo "$as_me:1019: \$? = $ac_status" >&5
1020 (exit "$ac_status"); }; then
1021 ac_path_separator=';'
1022 else
1023 ac_path_separator=:
1024 fi
1025 PATH_SEPARATOR="$ac_path_separator"
1026 rm -f conftest.sh
1027
1028 ac_config_headers="$ac_config_headers config.h:config_h.in"
1029
1030 ac_aux_dir=
1031 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1032 if test -f "$ac_dir/install-sh"; then
1033 ac_aux_dir=$ac_dir
1034 ac_install_sh="$ac_aux_dir/install-sh -c"
1035 break
1036 elif test -f "$ac_dir/install.sh"; then
1037 ac_aux_dir=$ac_dir
1038 ac_install_sh="$ac_aux_dir/install.sh -c"
1039 break
1040 elif test -f "$ac_dir/shtool"; then
1041 ac_aux_dir=$ac_dir
1042 ac_install_sh="$ac_aux_dir/shtool install -c"
1043 break
1044 fi
1045 done
1046 if test -z "$ac_aux_dir"; then
1047 { { echo "$as_me:1047: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1048 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1049 { (exit 1); exit 1; }; }
1050 fi
1051 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1052 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1053 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1054
1055 # Make sure we can run config.sub.
1056 $ac_config_sub sun4 >/dev/null 2>&1 ||
1057 { { echo "$as_me:1057: error: cannot run $ac_config_sub" >&5
1058 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1059 { (exit 1); exit 1; }; }
1060
1061 echo "$as_me:1061: checking build system type" >&5
1062 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1063 if test "${ac_cv_build+set}" = set; then
1064 echo $ECHO_N "(cached) $ECHO_C" >&6
1065 else
1066 ac_cv_build_alias=$build_alias
1067 test -z "$ac_cv_build_alias" &&
1068 ac_cv_build_alias=`$ac_config_guess`
1069 test -z "$ac_cv_build_alias" &&
1070 { { echo "$as_me:1070: error: cannot guess build type; you must specify one" >&5
1071 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1072 { (exit 1); exit 1; }; }
1073 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1074 { { echo "$as_me:1074: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1075 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1076 { (exit 1); exit 1; }; }
1077
1078 fi
1079 echo "$as_me:1079: result: $ac_cv_build" >&5
1080 echo "${ECHO_T}$ac_cv_build" >&6
1081 build=$ac_cv_build
1082 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1083 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1084 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1085
1086 echo "$as_me:1086: checking host system type" >&5
1087 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1088 if test "${ac_cv_host+set}" = set; then
1089 echo $ECHO_N "(cached) $ECHO_C" >&6
1090 else
1091 ac_cv_host_alias=$host_alias
1092 test -z "$ac_cv_host_alias" &&
1093 ac_cv_host_alias=$ac_cv_build_alias
1094 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1095 { { echo "$as_me:1095: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1096 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1097 { (exit 1); exit 1; }; }
1098
1099 fi
1100 echo "$as_me:1100: result: $ac_cv_host" >&5
1101 echo "${ECHO_T}$ac_cv_host" >&6
1102 host=$ac_cv_host
1103 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1104 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1105 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1106
1107 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1108 echo "$as_me:1108: checking target system type" >&5
1109 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1110 if test "${ac_cv_target+set}" = set; then
1111 echo $ECHO_N "(cached) $ECHO_C" >&6
1112 else
1113 ac_cv_target_alias=$target_alias
1114 test "x$ac_cv_target_alias" = "x" &&
1115 ac_cv_target_alias=$ac_cv_host_alias
1116 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1117 { { echo "$as_me:1117: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1118 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1119 { (exit 1); exit 1; }; }
1120
1121 fi
1122 echo "$as_me:1122: result: $ac_cv_target" >&5
1123 echo "${ECHO_T}$ac_cv_target" >&6
1124 target=$ac_cv_target
1125 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1126 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1127 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1128
1129 # The aliases save the names the user supplied, while $host etc.
1130 # will get canonicalized.
1131 test -n "$target_alias" &&
1132 test "$program_prefix$program_suffix$program_transform_name" = \
1133 NONENONEs,x,x, &&
1134 program_prefix=${target_alias}-
1135 system_name="$host_os"
1136 else
1137 system_name="`(uname -s -r) 2>/dev/null`"
1138 if test -z "$system_name" ; then
1139 system_name="`(hostname) 2>/dev/null`"
1140 fi
1141 fi
1142 test -n "$system_name" &&
1143 cat >>confdefs.h <<EOF
1144 #define SYSTEM_NAME "$system_name"
1145 EOF
1146
1147 if test "${cf_cv_system_name+set}" = set; then
1148 echo $ECHO_N "(cached) $ECHO_C" >&6
1149 else
1150 cf_cv_system_name="$system_name"
1151 fi
1152
1153 test -z "$system_name" && system_name="$cf_cv_system_name"
1154 test -n "$cf_cv_system_name" && echo "$as_me:1154: result: Configuring for $cf_cv_system_name" >&5
1155 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1156
1157 if test ".$system_name" != ".$cf_cv_system_name" ; then
1158 echo "$as_me:1158: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1159 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1160 { { echo "$as_me:1160: error: \"Please remove config.cache and try again.\"" >&5
1161 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1162 { (exit 1); exit 1; }; }
1163 fi
1164
1165 test "$program_prefix" != NONE &&
1166 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1167 # Use a double $ so make ignores it.
1168 test "$program_suffix" != NONE &&
1169 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1170 # Double any \ or $. echo might interpret backslashes.
1171 # By default was `s,x,x', remove it if useless.
1172 cat <<\_ACEOF >conftest.sed
1173 s/[\\$]/&&/g;s/;s,x,x,$//
1174 _ACEOF
1175 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1176 rm conftest.sed
1177
1178 ac_ext=c
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1181 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1183 ac_main_return="return"
1184 if test -n "$ac_tool_prefix"; then
1185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1187 echo "$as_me:1187: checking for $ac_word" >&5
1188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1189 if test "${ac_cv_prog_CC+set}" = set; then
1190 echo $ECHO_N "(cached) $ECHO_C" >&6
1191 else
1192 if test -n "$CC"; then
1193 ac_cv_prog_CC="$CC" # Let the user override the test.
1194 else
1195 ac_save_IFS=$IFS; IFS=$ac_path_separator
1196 ac_dummy="$PATH"
1197 for ac_dir in $ac_dummy; do
1198 IFS=$ac_save_IFS
1199 test -z "$ac_dir" && ac_dir=.
1200 $as_executable_p "$ac_dir/$ac_word" || continue
1201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1202 echo "$as_me:1202: found $ac_dir/$ac_word" >&5
1203 break
1204 done
1205
1206 fi
1207 fi
1208 CC=$ac_cv_prog_CC
1209 if test -n "$CC"; then
1210 echo "$as_me:1210: result: $CC" >&5
1211 echo "${ECHO_T}$CC" >&6
1212 else
1213 echo "$as_me:1213: result: no" >&5
1214 echo "${ECHO_T}no" >&6
1215 fi
1216
1217 fi
1218 if test -z "$ac_cv_prog_CC"; then
1219 ac_ct_CC=$CC
1220 # Extract the first word of "gcc", so it can be a program name with args.
1221 set dummy gcc; ac_word=$2
1222 echo "$as_me:1222: checking for $ac_word" >&5
1223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1226 else
1227 if test -n "$ac_ct_CC"; then
1228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1229 else
1230 ac_save_IFS=$IFS; IFS=$ac_path_separator
1231 ac_dummy="$PATH"
1232 for ac_dir in $ac_dummy; do
1233 IFS=$ac_save_IFS
1234 test -z "$ac_dir" && ac_dir=.
1235 $as_executable_p "$ac_dir/$ac_word" || continue
1236 ac_cv_prog_ac_ct_CC="gcc"
1237 echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1238 break
1239 done
1240
1241 fi
1242 fi
1243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1244 if test -n "$ac_ct_CC"; then
1245 echo "$as_me:1245: result: $ac_ct_CC" >&5
1246 echo "${ECHO_T}$ac_ct_CC" >&6
1247 else
1248 echo "$as_me:1248: result: no" >&5
1249 echo "${ECHO_T}no" >&6
1250 fi
1251
1252 CC=$ac_ct_CC
1253 else
1254 CC="$ac_cv_prog_CC"
1255 fi
1256
1257 if test -z "$CC"; then
1258 if test -n "$ac_tool_prefix"; then
1259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1260 set dummy ${ac_tool_prefix}cc; ac_word=$2
1261 echo "$as_me:1261: checking for $ac_word" >&5
1262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1263 if test "${ac_cv_prog_CC+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1265 else
1266 if test -n "$CC"; then
1267 ac_cv_prog_CC="$CC" # Let the user override the test.
1268 else
1269 ac_save_IFS=$IFS; IFS=$ac_path_separator
1270 ac_dummy="$PATH"
1271 for ac_dir in $ac_dummy; do
1272 IFS=$ac_save_IFS
1273 test -z "$ac_dir" && ac_dir=.
1274 $as_executable_p "$ac_dir/$ac_word" || continue
1275 ac_cv_prog_CC="${ac_tool_prefix}cc"
1276 echo "$as_me:1276: found $ac_dir/$ac_word" >&5
1277 break
1278 done
1279
1280 fi
1281 fi
1282 CC=$ac_cv_prog_CC
1283 if test -n "$CC"; then
1284 echo "$as_me:1284: result: $CC" >&5
1285 echo "${ECHO_T}$CC" >&6
1286 else
1287 echo "$as_me:1287: result: no" >&5
1288 echo "${ECHO_T}no" >&6
1289 fi
1290
1291 fi
1292 if test -z "$ac_cv_prog_CC"; then
1293 ac_ct_CC=$CC
1294 # Extract the first word of "cc", so it can be a program name with args.
1295 set dummy cc; ac_word=$2
1296 echo "$as_me:1296: checking for $ac_word" >&5
1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 else
1301 if test -n "$ac_ct_CC"; then
1302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1303 else
1304 ac_save_IFS=$IFS; IFS=$ac_path_separator
1305 ac_dummy="$PATH"
1306 for ac_dir in $ac_dummy; do
1307 IFS=$ac_save_IFS
1308 test -z "$ac_dir" && ac_dir=.
1309 $as_executable_p "$ac_dir/$ac_word" || continue
1310 ac_cv_prog_ac_ct_CC="cc"
1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
1312 break
1313 done
1314
1315 fi
1316 fi
1317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1318 if test -n "$ac_ct_CC"; then
1319 echo "$as_me:1319: result: $ac_ct_CC" >&5
1320 echo "${ECHO_T}$ac_ct_CC" >&6
1321 else
1322 echo "$as_me:1322: result: no" >&5
1323 echo "${ECHO_T}no" >&6
1324 fi
1325
1326 CC=$ac_ct_CC
1327 else
1328 CC="$ac_cv_prog_CC"
1329 fi
1330
1331 fi
1332 if test -z "$CC"; then
1333 # Extract the first word of "cc", so it can be a program name with args.
1334 set dummy cc; ac_word=$2
1335 echo "$as_me:1335: checking for $ac_word" >&5
1336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1337 if test "${ac_cv_prog_CC+set}" = set; then
1338 echo $ECHO_N "(cached) $ECHO_C" >&6
1339 else
1340 if test -n "$CC"; then
1341 ac_cv_prog_CC="$CC" # Let the user override the test.
1342 else
1343 ac_prog_rejected=no
1344 ac_save_IFS=$IFS; IFS=$ac_path_separator
1345 ac_dummy="$PATH"
1346 for ac_dir in $ac_dummy; do
1347 IFS=$ac_save_IFS
1348 test -z "$ac_dir" && ac_dir=.
1349 $as_executable_p "$ac_dir/$ac_word" || continue
1350 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1351 ac_prog_rejected=yes
1352 continue
1353 fi
1354 ac_cv_prog_CC="cc"
1355 echo "$as_me:1355: found $ac_dir/$ac_word" >&5
1356 break
1357 done
1358
1359 if test "$ac_prog_rejected" = yes; then
1360 # We found a bogon in the path, so make sure we never use it.
1361 set dummy $ac_cv_prog_CC
1362 shift
1363 if test $# != 0; then
1364 # We chose a different compiler from the bogus one.
1365 # However, it has the same basename, so the bogon will be chosen
1366 # first if we set CC to just the basename; use the full file name.
1367 shift
1368 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1369 shift
1370 ac_cv_prog_CC="$@"
1371 fi
1372 fi
1373 fi
1374 fi
1375 CC=$ac_cv_prog_CC
1376 if test -n "$CC"; then
1377 echo "$as_me:1377: result: $CC" >&5
1378 echo "${ECHO_T}$CC" >&6
1379 else
1380 echo "$as_me:1380: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1382 fi
1383
1384 fi
1385 if test -z "$CC"; then
1386 if test -n "$ac_tool_prefix"; then
1387 for ac_prog in cl
1388 do
1389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1391 echo "$as_me:1391: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1398 else
1399 ac_save_IFS=$IFS; IFS=$ac_path_separator
1400 ac_dummy="$PATH"
1401 for ac_dir in $ac_dummy; do
1402 IFS=$ac_save_IFS
1403 test -z "$ac_dir" && ac_dir=.
1404 $as_executable_p "$ac_dir/$ac_word" || continue
1405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1406 echo "$as_me:1406: found $ac_dir/$ac_word" >&5
1407 break
1408 done
1409
1410 fi
1411 fi
1412 CC=$ac_cv_prog_CC
1413 if test -n "$CC"; then
1414 echo "$as_me:1414: result: $CC" >&5
1415 echo "${ECHO_T}$CC" >&6
1416 else
1417 echo "$as_me:1417: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1419 fi
1420
1421 test -n "$CC" && break
1422 done
1423 fi
1424 if test -z "$CC"; then
1425 ac_ct_CC=$CC
1426 for ac_prog in cl
1427 do
1428 # Extract the first word of "$ac_prog", so it can be a program name with args.
1429 set dummy $ac_prog; ac_word=$2
1430 echo "$as_me:1430: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1437 else
1438 ac_save_IFS=$IFS; IFS=$ac_path_separator
1439 ac_dummy="$PATH"
1440 for ac_dir in $ac_dummy; do
1441 IFS=$ac_save_IFS
1442 test -z "$ac_dir" && ac_dir=.
1443 $as_executable_p "$ac_dir/$ac_word" || continue
1444 ac_cv_prog_ac_ct_CC="$ac_prog"
1445 echo "$as_me:1445: found $ac_dir/$ac_word" >&5
1446 break
1447 done
1448
1449 fi
1450 fi
1451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1452 if test -n "$ac_ct_CC"; then
1453 echo "$as_me:1453: result: $ac_ct_CC" >&5
1454 echo "${ECHO_T}$ac_ct_CC" >&6
1455 else
1456 echo "$as_me:1456: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1458 fi
1459
1460 test -n "$ac_ct_CC" && break
1461 done
1462
1463 CC=$ac_ct_CC
1464 fi
1465
1466 fi
1467
1468 test -z "$CC" && { { echo "$as_me:1468: error: no acceptable cc found in \$PATH" >&5
1469 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1470 { (exit 1); exit 1; }; }
1471
1472 # Provide some information about the compiler.
1473 echo "$as_me:1473:" \
1474 "checking for C compiler version" >&5
1475 ac_compiler=`set X $ac_compile; echo "$2"`
1476 { (eval echo "$as_me:1476: \"$ac_compiler --version </dev/null >&5\"") >&5
1477 (eval $ac_compiler --version </dev/null >&5) 2>&5
1478 ac_status=$?
1479 echo "$as_me:1479: \$? = $ac_status" >&5
1480 (exit "$ac_status"); }
1481 { (eval echo "$as_me:1481: \"$ac_compiler -v </dev/null >&5\"") >&5
1482 (eval $ac_compiler -v </dev/null >&5) 2>&5
1483 ac_status=$?
1484 echo "$as_me:1484: \$? = $ac_status" >&5
1485 (exit "$ac_status"); }
1486 { (eval echo "$as_me:1486: \"$ac_compiler -V </dev/null >&5\"") >&5
1487 (eval $ac_compiler -V </dev/null >&5) 2>&5
1488 ac_status=$?
1489 echo "$as_me:1489: \$? = $ac_status" >&5
1490 (exit "$ac_status"); }
1491
1492 cat >"conftest.$ac_ext" <<_ACEOF
1493 #line 1493 "configure"
1494 #include "confdefs.h"
1495
1496 int
1497 main (void)
1498 {
1499
1500 ;
1501 return 0;
1502 }
1503 _ACEOF
1504 ac_clean_files_save=$ac_clean_files
1505 ac_clean_files="$ac_clean_files a.out a.exe"
1506 # Try to create an executable without -o first, disregard a.out.
1507 # It will help us diagnose broken compilers, and finding out an intuition
1508 # of exeext.
1509 echo "$as_me:1509: checking for C compiler default output" >&5
1510 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1511 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1512 if { (eval echo "$as_me:1512: \"$ac_link_default\"") >&5
1513 (eval $ac_link_default) 2>&5
1514 ac_status=$?
1515 echo "$as_me:1515: \$? = $ac_status" >&5
1516 (exit "$ac_status"); }; then
1517 # Find the output, starting from the most likely. This scheme is
1518 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1519 # resort.
1520 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1521 ls a.out conftest 2>/dev/null;
1522 ls a.* conftest.* 2>/dev/null`; do
1523 case $ac_file in
1524 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1525 a.out ) # We found the default executable, but exeext='' is most
1526 # certainly right.
1527 break;;
1528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1529 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1530 export ac_cv_exeext
1531 break;;
1532 * ) break;;
1533 esac
1534 done
1535 else
1536 echo "$as_me: failed program was:" >&5
1537 cat "conftest.$ac_ext" >&5
1538 { { echo "$as_me:1538: error: C compiler cannot create executables" >&5
1539 echo "$as_me: error: C compiler cannot create executables" >&2;}
1540 { (exit 77); exit 77; }; }
1541 fi
1542
1543 ac_exeext=$ac_cv_exeext
1544 echo "$as_me:1544: result: $ac_file" >&5
1545 echo "${ECHO_T}$ac_file" >&6
1546
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 the C compiler works" >&5
1550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1552 # If not cross compiling, check that we can run a simple program.
1553 if test "$cross_compiling" != yes; then
1554 if { ac_try='./$ac_file'
1555 { (eval echo "$as_me:1555: \"$ac_try\"") >&5
1556 (eval $ac_try) 2>&5
1557 ac_status=$?
1558 echo "$as_me:1558: \$? = $ac_status" >&5
1559 (exit "$ac_status"); }; }; then
1560 cross_compiling=no
1561 else
1562 if test "$cross_compiling" = maybe; then
1563 cross_compiling=yes
1564 else
1565 { { echo "$as_me:1565: error: cannot run C compiled programs.
1566 If you meant to cross compile, use \`--host'." >&5
1567 echo "$as_me: error: cannot run C compiled programs.
1568 If you meant to cross compile, use \`--host'." >&2;}
1569 { (exit 1); exit 1; }; }
1570 fi
1571 fi
1572 fi
1573 echo "$as_me:1573: result: yes" >&5
1574 echo "${ECHO_T}yes" >&6
1575
1576 rm -f a.out a.exe "conftest$ac_cv_exeext"
1577 ac_clean_files=$ac_clean_files_save
1578 # Check the compiler produces executables we can run. If not, either
1579 # the compiler is broken, or we cross compile.
1580 echo "$as_me:1580: checking whether we are cross compiling" >&5
1581 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1582 echo "$as_me:1582: result: $cross_compiling" >&5
1583 echo "${ECHO_T}$cross_compiling" >&6
1584
1585 echo "$as_me:1585: checking for executable suffix" >&5
1586 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1587 if { (eval echo "$as_me:1587: \"$ac_link\"") >&5
1588 (eval $ac_link) 2>&5
1589 ac_status=$?
1590 echo "$as_me:1590: \$? = $ac_status" >&5
1591 (exit "$ac_status"); }; then
1592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1593 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1594 # work properly (i.e., refer to `conftest.exe'), while it won't with
1595 # `rm'.
1596 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1597 case $ac_file in
1598 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1600 export ac_cv_exeext
1601 break;;
1602 * ) break;;
1603 esac
1604 done
1605 else
1606 { { echo "$as_me:1606: error: cannot compute EXEEXT: cannot compile and link" >&5
1607 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1608 { (exit 1); exit 1; }; }
1609 fi
1610
1611 rm -f "conftest$ac_cv_exeext"
1612 echo "$as_me:1612: result: $ac_cv_exeext" >&5
1613 echo "${ECHO_T}$ac_cv_exeext" >&6
1614
1615 rm -f "conftest.$ac_ext"
1616 EXEEXT=$ac_cv_exeext
1617 ac_exeext=$EXEEXT
1618 echo "$as_me:1618: checking for object suffix" >&5
1619 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1620 if test "${ac_cv_objext+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623 cat >"conftest.$ac_ext" <<_ACEOF
1624 #line 1624 "configure"
1625 #include "confdefs.h"
1626
1627 int
1628 main (void)
1629 {
1630
1631 ;
1632 return 0;
1633 }
1634 _ACEOF
1635 rm -f conftest.o conftest.obj
1636 if { (eval echo "$as_me:1636: \"$ac_compile\"") >&5
1637 (eval $ac_compile) 2>&5
1638 ac_status=$?
1639 echo "$as_me:1639: \$? = $ac_status" >&5
1640 (exit "$ac_status"); }; then
1641 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1642 case $ac_file in
1643 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1644 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1645 break;;
1646 esac
1647 done
1648 else
1649 echo "$as_me: failed program was:" >&5
1650 cat "conftest.$ac_ext" >&5
1651 { { echo "$as_me:1651: error: cannot compute OBJEXT: cannot compile" >&5
1652 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1653 { (exit 1); exit 1; }; }
1654 fi
1655
1656 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
1657 fi
1658 echo "$as_me:1658: result: $ac_cv_objext" >&5
1659 echo "${ECHO_T}$ac_cv_objext" >&6
1660 OBJEXT=$ac_cv_objext
1661 ac_objext=$OBJEXT
1662 echo "$as_me:1662: checking whether we are using the GNU C compiler" >&5
1663 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1664 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 cat >"conftest.$ac_ext" <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1670
1671 int
1672 main (void)
1673 {
1674 #ifndef __GNUC__
1675 choke me
1676 #endif
1677
1678 ;
1679 return 0;
1680 }
1681 _ACEOF
1682 rm -f "conftest.$ac_objext"
1683 if { (eval echo "$as_me:1683: \"$ac_compile\"") >&5
1684 (eval $ac_compile) 2>&5
1685 ac_status=$?
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit "$ac_status"); } &&
1688 { ac_try='test -s "conftest.$ac_objext"'
1689 { (eval echo "$as_me:1689: \"$ac_try\"") >&5
1690 (eval $ac_try) 2>&5
1691 ac_status=$?
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit "$ac_status"); }; }; then
1694 ac_compiler_gnu=yes
1695 else
1696 echo "$as_me: failed program was:" >&5
1697 cat "conftest.$ac_ext" >&5
1698 ac_compiler_gnu=no
1699 fi
1700 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1701 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1702
1703 fi
1704 echo "$as_me:1704: result: $ac_cv_c_compiler_gnu" >&5
1705 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1706 GCC=`test $ac_compiler_gnu = yes && echo yes`
1707 ac_test_CFLAGS=${CFLAGS+set}
1708 ac_save_CFLAGS=$CFLAGS
1709 CFLAGS="-g"
1710 echo "$as_me:1710: checking whether $CC accepts -g" >&5
1711 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1712 if test "${ac_cv_prog_cc_g+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715 cat >"conftest.$ac_ext" <<_ACEOF
1716 #line 1716 "configure"
1717 #include "confdefs.h"
1718
1719 int
1720 main (void)
1721 {
1722
1723 ;
1724 return 0;
1725 }
1726 _ACEOF
1727 rm -f "conftest.$ac_objext"
1728 if { (eval echo "$as_me:1728: \"$ac_compile\"") >&5
1729 (eval $ac_compile) 2>&5
1730 ac_status=$?
1731 echo "$as_me:1731: \$? = $ac_status" >&5
1732 (exit "$ac_status"); } &&
1733 { ac_try='test -s "conftest.$ac_objext"'
1734 { (eval echo "$as_me:1734: \"$ac_try\"") >&5
1735 (eval $ac_try) 2>&5
1736 ac_status=$?
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit "$ac_status"); }; }; then
1739 ac_cv_prog_cc_g=yes
1740 else
1741 echo "$as_me: failed program was:" >&5
1742 cat "conftest.$ac_ext" >&5
1743 ac_cv_prog_cc_g=no
1744 fi
1745 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1746 fi
1747 echo "$as_me:1747: result: $ac_cv_prog_cc_g" >&5
1748 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1749 if test "$ac_test_CFLAGS" = set; then
1750 CFLAGS=$ac_save_CFLAGS
1751 elif test $ac_cv_prog_cc_g = yes; then
1752 if test "$GCC" = yes; then
1753 CFLAGS="-g -O2"
1754 else
1755 CFLAGS="-g"
1756 fi
1757 else
1758 if test "$GCC" = yes; then
1759 CFLAGS="-O2"
1760 else
1761 CFLAGS=
1762 fi
1763 fi
1764 # Some people use a C++ compiler to compile C. Since we use `exit',
1765 # in C++ we need to declare it. In case someone uses the same compiler
1766 # for both compiling C and C++ we need to have the C++ compiler decide
1767 # the declaration of exit, since it's the most demanding environment.
1768 cat >"conftest.$ac_ext" <<_ACEOF
1769 #ifndef __cplusplus
1770 choke me
1771 #endif
1772 _ACEOF
1773 rm -f "conftest.$ac_objext"
1774 if { (eval echo "$as_me:1774: \"$ac_compile\"") >&5
1775 (eval $ac_compile) 2>&5
1776 ac_status=$?
1777 echo "$as_me:1777: \$? = $ac_status" >&5
1778 (exit "$ac_status"); } &&
1779 { ac_try='test -s "conftest.$ac_objext"'
1780 { (eval echo "$as_me:1780: \"$ac_try\"") >&5
1781 (eval $ac_try) 2>&5
1782 ac_status=$?
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit "$ac_status"); }; }; then
1785 for ac_declaration in \
1786 ''\
1787 '#include <stdlib.h>' \
1788 'extern "C" void std::exit (int) throw (); using std::exit;' \
1789 'extern "C" void std::exit (int); using std::exit;' \
1790 'extern "C" void exit (int) throw ();' \
1791 'extern "C" void exit (int);' \
1792 'void exit (int);'
1793 do
1794 cat >"conftest.$ac_ext" <<_ACEOF
1795 #line 1795 "configure"
1796 #include "confdefs.h"
1797 #include <stdlib.h>
1798 $ac_declaration
1799 int
1800 main (void)
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 :
1820 else
1821 echo "$as_me: failed program was:" >&5
1822 cat "conftest.$ac_ext" >&5
1823 continue
1824 fi
1825 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1826 cat >"conftest.$ac_ext" <<_ACEOF
1827 #line 1827 "configure"
1828 #include "confdefs.h"
1829 $ac_declaration
1830 int
1831 main (void)
1832 {
1833 exit (42);
1834 ;
1835 return 0;
1836 }
1837 _ACEOF
1838 rm -f "conftest.$ac_objext"
1839 if { (eval echo "$as_me:1839: \"$ac_compile\"") >&5
1840 (eval $ac_compile) 2>&5
1841 ac_status=$?
1842 echo "$as_me:1842: \$? = $ac_status" >&5
1843 (exit "$ac_status"); } &&
1844 { ac_try='test -s "conftest.$ac_objext"'
1845 { (eval echo "$as_me:1845: \"$ac_try\"") >&5
1846 (eval $ac_try) 2>&5
1847 ac_status=$?
1848 echo "$as_me:1848: \$? = $ac_status" >&5
1849 (exit "$ac_status"); }; }; then
1850 break
1851 else
1852 echo "$as_me: failed program was:" >&5
1853 cat "conftest.$ac_ext" >&5
1854 fi
1855 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1856 done
1857 rm -rf conftest*
1858 if test -n "$ac_declaration"; then
1859 echo '#ifdef __cplusplus' >>confdefs.h
1860 echo "$ac_declaration" >>confdefs.h
1861 echo '#endif' >>confdefs.h
1862 fi
1863
1864 else
1865 echo "$as_me: failed program was:" >&5
1866 cat "conftest.$ac_ext" >&5
1867 fi
1868 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1869 ac_ext=c
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1872 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 ac_main_return="return"
1875
1876 GCC_VERSION=none
1877 if test "$GCC" = yes ; then
1878 echo "$as_me:1878: checking version of $CC" >&5
1879 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1880 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1881 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1882 echo "$as_me:1882: result: $GCC_VERSION" >&5
1883 echo "${ECHO_T}$GCC_VERSION" >&6
1884 fi
1885
1886 INTEL_COMPILER=no
1887
1888 if test "$GCC" = yes ; then
1889 case "$host_os" in
1890 (linux*|gnu*)
1891 echo "$as_me:1891: checking if this is really Intel C compiler" >&5
1892 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1893 cf_save_CFLAGS="$CFLAGS"
1894 CFLAGS="$CFLAGS -no-gcc"
1895 cat >"conftest.$ac_ext" <<_ACEOF
1896 #line 1896 "configure"
1897 #include "confdefs.h"
1898
1899 int
1900 main (void)
1901 {
1902
1903 #ifdef __INTEL_COMPILER
1904 #else
1905 #error __INTEL_COMPILER is not defined
1906 #endif
1907
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 rm -f "conftest.$ac_objext"
1913 if { (eval echo "$as_me:1913: \"$ac_compile\"") >&5
1914 (eval $ac_compile) 2>&5
1915 ac_status=$?
1916 echo "$as_me:1916: \$? = $ac_status" >&5
1917 (exit "$ac_status"); } &&
1918 { ac_try='test -s "conftest.$ac_objext"'
1919 { (eval echo "$as_me:1919: \"$ac_try\"") >&5
1920 (eval $ac_try) 2>&5
1921 ac_status=$?
1922 echo "$as_me:1922: \$? = $ac_status" >&5
1923 (exit "$ac_status"); }; }; then
1924 INTEL_COMPILER=yes
1925 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1926
1927 else
1928 echo "$as_me: failed program was:" >&5
1929 cat "conftest.$ac_ext" >&5
1930 fi
1931 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1932 CFLAGS="$cf_save_CFLAGS"
1933 echo "$as_me:1933: result: $INTEL_COMPILER" >&5
1934 echo "${ECHO_T}$INTEL_COMPILER" >&6
1935 ;;
1936 esac
1937 fi
1938
1939 CLANG_COMPILER=no
1940
1941 if test "$GCC" = yes ; then
1942 echo "$as_me:1942: checking if this is really Clang C compiler" >&5
1943 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1944 cf_save_CFLAGS="$CFLAGS"
1945 cat >"conftest.$ac_ext" <<_ACEOF
1946 #line 1946 "configure"
1947 #include "confdefs.h"
1948
1949 int
1950 main (void)
1951 {
1952
1953 #ifdef __clang__
1954 #else
1955 #error __clang__ is not defined
1956 #endif
1957
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 rm -f "conftest.$ac_objext"
1963 if { (eval echo "$as_me:1963: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1965 ac_status=$?
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit "$ac_status"); } &&
1968 { ac_try='test -s "conftest.$ac_objext"'
1969 { (eval echo "$as_me:1969: \"$ac_try\"") >&5
1970 (eval $ac_try) 2>&5
1971 ac_status=$?
1972 echo "$as_me:1972: \$? = $ac_status" >&5
1973 (exit "$ac_status"); }; }; then
1974 CLANG_COMPILER=yes
1975
1976 else
1977 echo "$as_me: failed program was:" >&5
1978 cat "conftest.$ac_ext" >&5
1979 fi
1980 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1981 CFLAGS="$cf_save_CFLAGS"
1982 echo "$as_me:1982: result: $CLANG_COMPILER" >&5
1983 echo "${ECHO_T}$CLANG_COMPILER" >&6
1984 fi
1985
1986 CLANG_VERSION=none
1987
1988 if test "x$CLANG_COMPILER" = "xyes" ; then
1989 case "$CC" in
1990 (c[1-9][0-9]|*/c[1-9][0-9])
1991 { echo "$as_me:1991: WARNING: replacing broken compiler alias $CC" >&5
1992 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
1993 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
1994 CC=clang
1995 ;;
1996 esac
1997
1998 echo "$as_me:1998: checking version of $CC" >&5
1999 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2000 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2001 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2002 echo "$as_me:2002: result: $CLANG_VERSION" >&5
2003 echo "${ECHO_T}$CLANG_VERSION" >&6
2004
2005 for cf_clang_opt in \
2006 -Qunused-arguments \
2007 -Wno-error=implicit-function-declaration
2008 do
2009 echo "$as_me:2009: checking if option $cf_clang_opt works" >&5
2010 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2011 cf_save_CFLAGS="$CFLAGS"
2012 CFLAGS="$CFLAGS $cf_clang_opt"
2013 cat >"conftest.$ac_ext" <<_ACEOF
2014 #line 2014 "configure"
2015 #include "confdefs.h"
2016
2017 #include <stdio.h>
2018 int
2019 main (void)
2020 {
2021
2022 printf("hello!\\n");
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2028 if { (eval echo "$as_me:2028: \"$ac_link\"") >&5
2029 (eval $ac_link) 2>&5
2030 ac_status=$?
2031 echo "$as_me:2031: \$? = $ac_status" >&5
2032 (exit "$ac_status"); } &&
2033 { ac_try='test -s "conftest$ac_exeext"'
2034 { (eval echo "$as_me:2034: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:2037: \$? = $ac_status" >&5
2038 (exit "$ac_status"); }; }; then
2039
2040 cf_clang_optok=yes
2041 else
2042 echo "$as_me: failed program was:" >&5
2043 cat "conftest.$ac_ext" >&5
2044
2045 cf_clang_optok=no
2046 fi
2047 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2048 echo "$as_me:2048: result: $cf_clang_optok" >&5
2049 echo "${ECHO_T}$cf_clang_optok" >&6
2050 CFLAGS="$cf_save_CFLAGS"
2051 if test "$cf_clang_optok" = yes; then
2052 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2053
2054 echo "${as_me:-configure}:2054: testing adding option $cf_clang_opt ..." 1>&5
2055
2056 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2057 CFLAGS="${CFLAGS}$cf_clang_opt"
2058
2059 fi
2060 done
2061 fi
2062
2063 echo "$as_me:2063: checking for $CC option to accept ANSI C" >&5
2064 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 ac_cv_prog_cc_stdc=no
2069 ac_save_CC=$CC
2070 cat >"conftest.$ac_ext" <<_ACEOF
2071 #line 2071 "configure"
2072 #include "confdefs.h"
2073 #include <stdarg.h>
2074 #include <stdio.h>
2075 #include <sys/types.h>
2076 #include <sys/stat.h>
2077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2078 struct buf { int x; };
2079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2080 static char *e (char **p, int i)
2081 {
2082 return p[i];
2083 }
2084 static char *f (char * (*g) (char **, int), char **p, ...)
2085 {
2086 char *s;
2087 va_list v;
2088 va_start (v,p);
2089 s = g (p, va_arg (v,int));
2090 va_end (v);
2091 return s;
2092 }
2093 int test (int i, double x);
2094 struct s1 {int (*f) (int a);};
2095 struct s2 {int (*f) (double a);};
2096 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2097 int argc;
2098 char **argv;
2099 int
2100 main (void)
2101 {
2102 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2103 ;
2104 return 0;
2105 }
2106 _ACEOF
2107 # Don't try gcc -ansi; that turns off useful extensions and
2108 # breaks some systems' header files.
2109 # AIX -qlanglvl=ansi
2110 # Ultrix and OSF/1 -std1
2111 # HP-UX 10.20 and later -Ae
2112 # HP-UX older versions -Aa -D_HPUX_SOURCE
2113 # SVR4 -Xc -D__EXTENSIONS__
2114 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2115 do
2116 CC="$ac_save_CC $ac_arg"
2117 rm -f "conftest.$ac_objext"
2118 if { (eval echo "$as_me:2118: \"$ac_compile\"") >&5
2119 (eval $ac_compile) 2>&5
2120 ac_status=$?
2121 echo "$as_me:2121: \$? = $ac_status" >&5
2122 (exit "$ac_status"); } &&
2123 { ac_try='test -s "conftest.$ac_objext"'
2124 { (eval echo "$as_me:2124: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:2127: \$? = $ac_status" >&5
2128 (exit "$ac_status"); }; }; then
2129 ac_cv_prog_cc_stdc=$ac_arg
2130 break
2131 else
2132 echo "$as_me: failed program was:" >&5
2133 cat "conftest.$ac_ext" >&5
2134 fi
2135 rm -f "conftest.$ac_objext"
2136 done
2137 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2138 CC=$ac_save_CC
2139
2140 fi
2141
2142 case "x$ac_cv_prog_cc_stdc" in
2143 x|xno)
2144 echo "$as_me:2144: result: none needed" >&5
2145 echo "${ECHO_T}none needed" >&6 ;;
2146 *)
2147 echo "$as_me:2147: result: $ac_cv_prog_cc_stdc" >&5
2148 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2149 CC="$CC $ac_cv_prog_cc_stdc" ;;
2150 esac
2151
2152 # This should have been defined by AC_PROG_CC
2153 : "${CC:=cc}"
2154
2155 echo "$as_me:2155: checking \$CFLAGS variable" >&5
2156 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2157 case "x$CFLAGS" in
2158 (*-[IUD]*)
2159 echo "$as_me:2159: result: broken" >&5
2160 echo "${ECHO_T}broken" >&6
2161 { echo "$as_me:2161: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2162 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2163 cf_flags="$CFLAGS"
2164 CFLAGS=
2165 for cf_arg in $cf_flags
2166 do
2167
2168 cf_fix_cppflags=no
2169 cf_new_cflags=
2170 cf_new_cppflags=
2171 cf_new_extra_cppflags=
2172
2173 for cf_add_cflags in $cf_arg
2174 do
2175 case "$cf_fix_cppflags" in
2176 (no)
2177 case "$cf_add_cflags" in
2178 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2179 case "$cf_add_cflags" in
2180 (-D*)
2181 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2182
2183 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2184 && test -z "${cf_tst_cflags}" \
2185 && cf_fix_cppflags=yes
2186
2187 if test "$cf_fix_cppflags" = yes ; then
2188
2189 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2190 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2191
2192 continue
2193 elif test "${cf_tst_cflags}" = "\"'" ; then
2194
2195 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2196 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2197
2198 continue
2199 fi
2200 ;;
2201 esac
2202 case "$CPPFLAGS" in
2203 (*$cf_add_cflags)
2204 ;;
2205 (*)
2206 case "$cf_add_cflags" in
2207 (-D*)
2208 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2209
2210 CPPFLAGS=`echo "$CPPFLAGS" | \
2211 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2212 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2213
2214 ;;
2215 esac
2216
2217 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2218 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2219
2220 ;;
2221 esac
2222 ;;
2223 (*)
2224
2225 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2226 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2227
2228 ;;
2229 esac
2230 ;;
2231 (yes)
2232
2233 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2234 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2235
2236 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2237
2238 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2239 && test -z "${cf_tst_cflags}" \
2240 && cf_fix_cppflags=no
2241 ;;
2242 esac
2243 done
2244
2245 if test -n "$cf_new_cflags" ; then
2246
2247 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2248 CFLAGS="${CFLAGS}$cf_new_cflags"
2249
2250 fi
2251
2252 if test -n "$cf_new_cppflags" ; then
2253
2254 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2255 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2256
2257 fi
2258
2259 if test -n "$cf_new_extra_cppflags" ; then
2260
2261 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2262 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2263
2264 fi
2265
2266 done
2267 ;;
2268 (*)
2269 echo "$as_me:2269: result: ok" >&5
2270 echo "${ECHO_T}ok" >&6
2271 ;;
2272 esac
2273
2274 echo "$as_me:2274: checking \$CC variable" >&5
2275 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2276 case "$CC" in
2277 (*[\ \ ]-*)
2278 echo "$as_me:2278: result: broken" >&5
2279 echo "${ECHO_T}broken" >&6
2280 { echo "$as_me:2280: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2281 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2282 # humor him...
2283 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2284 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
2285 CC="$cf_prog"
2286 for cf_arg in $cf_flags
2287 do
2288 case "x$cf_arg" in
2289 (x-[IUDfgOW]*)
2290
2291 cf_fix_cppflags=no
2292 cf_new_cflags=
2293 cf_new_cppflags=
2294 cf_new_extra_cppflags=
2295
2296 for cf_add_cflags in $cf_arg
2297 do
2298 case "$cf_fix_cppflags" in
2299 (no)
2300 case "$cf_add_cflags" in
2301 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2302 case "$cf_add_cflags" in
2303 (-D*)
2304 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2305
2306 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2307 && test -z "${cf_tst_cflags}" \
2308 && cf_fix_cppflags=yes
2309
2310 if test "$cf_fix_cppflags" = yes ; then
2311
2312 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2313 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2314
2315 continue
2316 elif test "${cf_tst_cflags}" = "\"'" ; then
2317
2318 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2319 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2320
2321 continue
2322 fi
2323 ;;
2324 esac
2325 case "$CPPFLAGS" in
2326 (*$cf_add_cflags)
2327 ;;
2328 (*)
2329 case "$cf_add_cflags" in
2330 (-D*)
2331 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2332
2333 CPPFLAGS=`echo "$CPPFLAGS" | \
2334 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2335 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2336
2337 ;;
2338 esac
2339
2340 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2341 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2342
2343 ;;
2344 esac
2345 ;;
2346 (*)
2347
2348 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2349 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2350
2351 ;;
2352 esac
2353 ;;
2354 (yes)
2355
2356 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2357 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2358
2359 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2360
2361 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2362 && test -z "${cf_tst_cflags}" \
2363 && cf_fix_cppflags=no
2364 ;;
2365 esac
2366 done
2367
2368 if test -n "$cf_new_cflags" ; then
2369
2370 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2371 CFLAGS="${CFLAGS}$cf_new_cflags"
2372
2373 fi
2374
2375 if test -n "$cf_new_cppflags" ; then
2376
2377 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2378 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2379
2380 fi
2381
2382 if test -n "$cf_new_extra_cppflags" ; then
2383
2384 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2385 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2386
2387 fi
2388
2389 ;;
2390 (*)
2391 CC="$CC $cf_arg"
2392 ;;
2393 esac
2394 done
2395 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2396
2397 echo "${as_me:-configure}:2397: testing resulting CC: '$CC' ..." 1>&5
2398
2399 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2400
2401 echo "${as_me:-configure}:2401: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2402
2403 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2404
2405 echo "${as_me:-configure}:2405: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2406
2407 ;;
2408 (*)
2409 echo "$as_me:2409: result: ok" >&5
2410 echo "${ECHO_T}ok" >&6
2411 ;;
2412 esac
2413
2414 echo "$as_me:2414: checking whether ${MAKE-make} sets \${MAKE}" >&5
2415 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2416 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2417 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420 cat >conftest.make <<\EOF
2421 all:
2422 @echo 'ac_maketemp="${MAKE}"'
2423 EOF
2424 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2425 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2426 if test -n "$ac_maketemp"; then
2427 eval ac_cv_prog_make_${ac_make}_set=yes
2428 else
2429 eval ac_cv_prog_make_${ac_make}_set=no
2430 fi
2431 rm -f conftest.make
2432 fi
2433 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2434 echo "$as_me:2434: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6
2436 SET_MAKE=
2437 else
2438 echo "$as_me:2438: result: no" >&5
2439 echo "${ECHO_T}no" >&6
2440 SET_MAKE="MAKE=${MAKE-make}"
2441 fi
2442
2443 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
2444
2445 system_name="$host_os"
2446 else
2447 system_name="`(uname -s -r) 2>/dev/null`"
2448 if test -z "$system_name" ; then
2449 system_name="`(hostname) 2>/dev/null`"
2450 fi
2451 fi
2452 test -n "$system_name" &&
2453 cat >>confdefs.h <<EOF
2454 #define SYSTEM_NAME "$system_name"
2455 EOF
2456
2457 if test "${cf_cv_system_name+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460 cf_cv_system_name="$system_name"
2461 fi
2462
2463 test -z "$system_name" && system_name="$cf_cv_system_name"
2464 test -n "$cf_cv_system_name" && echo "$as_me:2464: result: Configuring for $cf_cv_system_name" >&5
2465 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
2466
2467 if test ".$system_name" != ".$cf_cv_system_name" ; then
2468 echo "$as_me:2468: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
2469 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
2470 { { echo "$as_me:2470: error: \"Please remove config.cache and try again.\"" >&5
2471 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
2472 { (exit 1); exit 1; }; }
2473 fi
2474
2475 # Check whether --with-system-type or --without-system-type was given.
2476 if test "${with_system_type+set}" = set; then
2477 withval="$with_system_type"
2478 { echo "$as_me:2478: WARNING: overriding system type to $withval" >&5
2479 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
2480 cf_cv_system_name=$withval
2481 host_os=$withval
2482
2483 fi;
2484
2485 case "$cf_cv_system_name" in
2486 (cygwin*|msys*|mingw32*|mingw64|os2*)
2487 GLOB_FULLPATH_POSIX='/*'
2488 GLOB_FULLPATH_OTHER='[a-zA-Z]:[\\/]*'
2489 ;;
2490 (*)
2491 GLOB_FULLPATH_POSIX='/*'
2492 GLOB_FULLPATH_OTHER=$GLOB_FULLPATH_POSIX
2493 ;;
2494 esac
2495
2496 # Find a good install program. We prefer a C program (faster),
2497 # so one script is as good as another. But avoid the broken or
2498 # incompatible versions:
2499 # SysV /etc/install, /usr/sbin/install
2500 # SunOS /usr/etc/install
2501 # IRIX /sbin/install
2502 # AIX /bin/install
2503 # AmigaOS /C/install, which installs bootblocks on floppy discs
2504 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2505 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2506 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2507 # ./install, which can be erroneously created by make from ./install.sh.
2508 echo "$as_me:2508: checking for a BSD compatible install" >&5
2509 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2510 if test -z "$INSTALL"; then
2511 if test "${ac_cv_path_install+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 ac_save_IFS=$IFS; IFS=$ac_path_separator
2515 for ac_dir in $PATH; do
2516 IFS=$ac_save_IFS
2517 # Account for people who put trailing slashes in PATH elements.
2518 case $ac_dir/ in
2519 / | ./ | .// | /cC/* \
2520 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2521 | /usr/ucb/* ) ;;
2522 *)
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 if $as_executable_p "$ac_dir/$ac_prog"; then
2528 if test $ac_prog = install &&
2529 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2530 # AIX install. It has an incompatible calling convention.
2531 :
2532 elif test $ac_prog = install &&
2533 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2534 # program-specific install script used by HP pwplus--don't use.
2535 :
2536 else
2537 ac_cv_path_install="$ac_dir/$ac_prog -c"
2538 break 2
2539 fi
2540 fi
2541 done
2542 ;;
2543 esac
2544 done
2545
2546 fi
2547 if test "${ac_cv_path_install+set}" = set; then
2548 INSTALL=$ac_cv_path_install
2549 else
2550 # As a last resort, use the slow shell script. We don't cache a
2551 # path for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the path is relative.
2554 INSTALL=$ac_install_sh
2555 fi
2556 fi
2557 echo "$as_me:2557: result: $INSTALL" >&5
2558 echo "${ECHO_T}$INSTALL" >&6
2559
2560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561 # It thinks the first close brace ends the variable substitution.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2565
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567
2568 if test "x$INSTALL" = "x./install-sh -c"; then
2569 if test -f /usr/sbin/install ; then
2570 case "$host_os" in
2571 (linux*gnu*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc)
2572 INSTALL=/usr/sbin/install
2573 ;;
2574 esac
2575 fi
2576 fi
2577 case x$INSTALL in
2578 (x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
2579 ;;
2580 (*)
2581 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
2582 test -z "$cf_dir" && cf_dir=.
2583 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
2584 ;;
2585 esac
2586
2587 echo "$as_me:2587: checking if filesystem supports mixed-case filenames" >&5
2588 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2589 if test "${cf_cv_mixedcase+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592
2593 if test "$cross_compiling" = yes ; then
2594 case "$target_alias" in
2595 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
2596 cf_cv_mixedcase=no
2597 ;;
2598 (*)
2599 cf_cv_mixedcase=yes
2600 ;;
2601 esac
2602 else
2603 rm -f conftest CONFTEST
2604 echo test >conftest
2605 if test -f CONFTEST ; then
2606 cf_cv_mixedcase=no
2607 else
2608 cf_cv_mixedcase=yes
2609 fi
2610 rm -f conftest CONFTEST
2611 fi
2612
2613 fi
2614 echo "$as_me:2614: result: $cf_cv_mixedcase" >&5
2615 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2616 test "$cf_cv_mixedcase" = yes &&
2617 cat >>confdefs.h <<\EOF
2618 #define MIXEDCASE_FILENAMES 1
2619 EOF
2620
2621 for ac_prog in exctags ctags
2622 do
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 echo "$as_me:2625: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2627 if test "${ac_cv_prog_CTAGS+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 if test -n "$CTAGS"; then
2631 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2632 else
2633 ac_save_IFS=$IFS; IFS=$ac_path_separator
2634 ac_dummy="$PATH"
2635 for ac_dir in $ac_dummy; do
2636 IFS=$ac_save_IFS
2637 test -z "$ac_dir" && ac_dir=.
2638 $as_executable_p "$ac_dir/$ac_word" || continue
2639 ac_cv_prog_CTAGS="$ac_prog"
2640 echo "$as_me:2640: found $ac_dir/$ac_word" >&5
2641 break
2642 done
2643
2644 fi
2645 fi
2646 CTAGS=$ac_cv_prog_CTAGS
2647 if test -n "$CTAGS"; then
2648 echo "$as_me:2648: result: $CTAGS" >&5
2649 echo "${ECHO_T}$CTAGS" >&6
2650 else
2651 echo "$as_me:2651: result: no" >&5
2652 echo "${ECHO_T}no" >&6
2653 fi
2654
2655 test -n "$CTAGS" && break
2656 done
2657
2658 for ac_prog in exetags etags
2659 do
2660 # Extract the first word of "$ac_prog", so it can be a program name with args.
2661 set dummy $ac_prog; ac_word=$2
2662 echo "$as_me:2662: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2664 if test "${ac_cv_prog_ETAGS+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 if test -n "$ETAGS"; then
2668 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2669 else
2670 ac_save_IFS=$IFS; IFS=$ac_path_separator
2671 ac_dummy="$PATH"
2672 for ac_dir in $ac_dummy; do
2673 IFS=$ac_save_IFS
2674 test -z "$ac_dir" && ac_dir=.
2675 $as_executable_p "$ac_dir/$ac_word" || continue
2676 ac_cv_prog_ETAGS="$ac_prog"
2677 echo "$as_me:2677: found $ac_dir/$ac_word" >&5
2678 break
2679 done
2680
2681 fi
2682 fi
2683 ETAGS=$ac_cv_prog_ETAGS
2684 if test -n "$ETAGS"; then
2685 echo "$as_me:2685: result: $ETAGS" >&5
2686 echo "${ECHO_T}$ETAGS" >&6
2687 else
2688 echo "$as_me:2688: result: no" >&5
2689 echo "${ECHO_T}no" >&6
2690 fi
2691
2692 test -n "$ETAGS" && break
2693 done
2694
2695 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2696 set dummy ${CTAGS:-ctags}; ac_word=$2
2697 echo "$as_me:2697: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2699 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702 if test -n "$MAKE_LOWER_TAGS"; then
2703 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2704 else
2705 ac_save_IFS=$IFS; IFS=$ac_path_separator
2706 ac_dummy="$PATH"
2707 for ac_dir in $ac_dummy; do
2708 IFS=$ac_save_IFS
2709 test -z "$ac_dir" && ac_dir=.
2710 $as_executable_p "$ac_dir/$ac_word" || continue
2711 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2712 echo "$as_me:2712: found $ac_dir/$ac_word" >&5
2713 break
2714 done
2715
2716 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2717 fi
2718 fi
2719 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2720 if test -n "$MAKE_LOWER_TAGS"; then
2721 echo "$as_me:2721: result: $MAKE_LOWER_TAGS" >&5
2722 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2723 else
2724 echo "$as_me:2724: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2726 fi
2727
2728 if test "$cf_cv_mixedcase" = yes ; then
2729 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2730 set dummy ${ETAGS:-etags}; ac_word=$2
2731 echo "$as_me:2731: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$MAKE_UPPER_TAGS"; then
2737 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2738 else
2739 ac_save_IFS=$IFS; IFS=$ac_path_separator
2740 ac_dummy="$PATH"
2741 for ac_dir in $ac_dummy; do
2742 IFS=$ac_save_IFS
2743 test -z "$ac_dir" && ac_dir=.
2744 $as_executable_p "$ac_dir/$ac_word" || continue
2745 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2746 echo "$as_me:2746: found $ac_dir/$ac_word" >&5
2747 break
2748 done
2749
2750 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2751 fi
2752 fi
2753 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2754 if test -n "$MAKE_UPPER_TAGS"; then
2755 echo "$as_me:2755: result: $MAKE_UPPER_TAGS" >&5
2756 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2757 else
2758 echo "$as_me:2758: result: no" >&5
2759 echo "${ECHO_T}no" >&6
2760 fi
2761
2762 else
2763 MAKE_UPPER_TAGS=no
2764 fi
2765
2766 if test "$MAKE_UPPER_TAGS" = yes ; then
2767 MAKE_UPPER_TAGS=
2768 else
2769 MAKE_UPPER_TAGS="#"
2770 fi
2771
2772 if test "$MAKE_LOWER_TAGS" = yes ; then
2773 MAKE_LOWER_TAGS=
2774 else
2775 MAKE_LOWER_TAGS="#"
2776 fi
2777
2778 for ac_prog in mawk gawk nawk awk
2779 do
2780 # Extract the first word of "$ac_prog", so it can be a program name with args.
2781 set dummy $ac_prog; ac_word=$2
2782 echo "$as_me:2782: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_AWK+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 if test -n "$AWK"; then
2788 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2789 else
2790 ac_save_IFS=$IFS; IFS=$ac_path_separator
2791 ac_dummy="$PATH"
2792 for ac_dir in $ac_dummy; do
2793 IFS=$ac_save_IFS
2794 test -z "$ac_dir" && ac_dir=.
2795 $as_executable_p "$ac_dir/$ac_word" || continue
2796 ac_cv_prog_AWK="$ac_prog"
2797 echo "$as_me:2797: found $ac_dir/$ac_word" >&5
2798 break
2799 done
2800
2801 fi
2802 fi
2803 AWK=$ac_cv_prog_AWK
2804 if test -n "$AWK"; then
2805 echo "$as_me:2805: result: $AWK" >&5
2806 echo "${ECHO_T}$AWK" >&6
2807 else
2808 echo "$as_me:2808: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2810 fi
2811
2812 test -n "$AWK" && break
2813 done
2814
2815 test -z "$AWK" && { { echo "$as_me:2815: error: No awk program found" >&5
2816 echo "$as_me: error: No awk program found" >&2;}
2817 { (exit 1); exit 1; }; }
2818
2819 for ac_prog in lint cppcheck splint
2820 do
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy $ac_prog; ac_word=$2
2823 echo "$as_me:2823: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825 if test "${ac_cv_prog_LINT+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 if test -n "$LINT"; then
2829 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2830 else
2831 ac_save_IFS=$IFS; IFS=$ac_path_separator
2832 ac_dummy="$PATH"
2833 for ac_dir in $ac_dummy; do
2834 IFS=$ac_save_IFS
2835 test -z "$ac_dir" && ac_dir=.
2836 $as_executable_p "$ac_dir/$ac_word" || continue
2837 ac_cv_prog_LINT="$ac_prog"
2838 echo "$as_me:2838: found $ac_dir/$ac_word" >&5
2839 break
2840 done
2841
2842 fi
2843 fi
2844 LINT=$ac_cv_prog_LINT
2845 if test -n "$LINT"; then
2846 echo "$as_me:2846: result: $LINT" >&5
2847 echo "${ECHO_T}$LINT" >&6
2848 else
2849 echo "$as_me:2849: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2851 fi
2852
2853 test -n "$LINT" && break
2854 done
2855
2856 case "x$LINT" in
2857 (xlint|x*/lint) # NetBSD 10
2858 test -z "$LINT_OPTS" && LINT_OPTS="-chapbrxzgFS -v -Ac11"
2859 ;;
2860 (xcppcheck|x*/cppcheck)
2861 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all -D__CPPCHECK__"
2862 ;;
2863 esac
2864
2865 echo "$as_me:2865: checking if the POSIX test-macros are already defined" >&5
2866 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
2867 if test "${cf_cv_posix_visible+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870
2871 cat >"conftest.$ac_ext" <<_ACEOF
2872 #line 2872 "configure"
2873 #include "confdefs.h"
2874 #include <stdio.h>
2875 int
2876 main (void)
2877 {
2878
2879 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
2880 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
2881 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
2882 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
2883 #error conflicting symbols found
2884 #endif
2885
2886 ;
2887 return 0;
2888 }
2889 _ACEOF
2890 rm -f "conftest.$ac_objext"
2891 if { (eval echo "$as_me:2891: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>&5
2893 ac_status=$?
2894 echo "$as_me:2894: \$? = $ac_status" >&5
2895 (exit "$ac_status"); } &&
2896 { ac_try='test -s "conftest.$ac_objext"'
2897 { (eval echo "$as_me:2897: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:2900: \$? = $ac_status" >&5
2901 (exit "$ac_status"); }; }; then
2902 cf_cv_posix_visible=no
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 cat "conftest.$ac_ext" >&5
2906 cf_cv_posix_visible=yes
2907 fi
2908 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2909
2910 fi
2911 echo "$as_me:2911: result: $cf_cv_posix_visible" >&5
2912 echo "${ECHO_T}$cf_cv_posix_visible" >&6
2913
2914 if test "$cf_cv_posix_visible" = no; then
2915
2916 cf_XOPEN_SOURCE=500
2917 cf_POSIX_C_SOURCE=199506L
2918 cf_xopen_source=
2919
2920 case "$host_os" in
2921 (aix[4-7]*)
2922 cf_xopen_source="-D_ALL_SOURCE"
2923 ;;
2924 (darwin[0-8].*)
2925 cf_xopen_source="-D_APPLE_C_SOURCE"
2926 ;;
2927 (darwin*)
2928 cf_xopen_source="-D_DARWIN_C_SOURCE"
2929 cf_XOPEN_SOURCE=
2930 ;;
2931 (freebsd*|dragonfly*|midnightbsd*)
2932 # 5.x headers associate
2933 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2934 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2935 cf_POSIX_C_SOURCE=200112L
2936 cf_XOPEN_SOURCE=600
2937 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2938 ;;
2939 (hpux11*)
2940 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2941 ;;
2942 (hpux*)
2943 cf_xopen_source="-D_HPUX_SOURCE"
2944 ;;
2945 (irix[56].*)
2946 cf_xopen_source="-D_SGI_SOURCE"
2947 cf_XOPEN_SOURCE=
2948 ;;
2949 (linux*gnu*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc)
2950
2951 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
2952
2953 echo "$as_me:2953: checking if this is the GNU C library" >&5
2954 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
2955 if test "${cf_cv_gnu_library+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958
2959 cat >"conftest.$ac_ext" <<_ACEOF
2960 #line 2960 "configure"
2961 #include "confdefs.h"
2962 #include <sys/types.h>
2963 int
2964 main (void)
2965 {
2966
2967 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
2968 return 0;
2969 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
2970 return 0;
2971 #else
2972 # error not GNU C library
2973 #endif
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 rm -f "conftest.$ac_objext"
2979 if { (eval echo "$as_me:2979: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>&5
2981 ac_status=$?
2982 echo "$as_me:2982: \$? = $ac_status" >&5
2983 (exit "$ac_status"); } &&
2984 { ac_try='test -s "conftest.$ac_objext"'
2985 { (eval echo "$as_me:2985: \"$ac_try\"") >&5
2986 (eval $ac_try) 2>&5
2987 ac_status=$?
2988 echo "$as_me:2988: \$? = $ac_status" >&5
2989 (exit "$ac_status"); }; }; then
2990 cf_cv_gnu_library=yes
2991 else
2992 echo "$as_me: failed program was:" >&5
2993 cat "conftest.$ac_ext" >&5
2994 cf_cv_gnu_library=no
2995 fi
2996 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2997
2998 fi
2999 echo "$as_me:2999: result: $cf_cv_gnu_library" >&5
3000 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3001
3002 if test x$cf_cv_gnu_library = xyes; then
3003
3004 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3005 # was changed to help a little. newlib incorporated the change about 4
3006 # years later.
3007 echo "$as_me:3007: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3008 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3009 if test "${cf_cv_gnu_library_219+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012
3013 cf_save="$CPPFLAGS"
3014
3015 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3016 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3017
3018 cat >"conftest.$ac_ext" <<_ACEOF
3019 #line 3019 "configure"
3020 #include "confdefs.h"
3021 #include <sys/types.h>
3022 int
3023 main (void)
3024 {
3025
3026 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3027 return 0;
3028 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3029 return 0;
3030 #else
3031 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3032 #endif
3033 ;
3034 return 0;
3035 }
3036 _ACEOF
3037 rm -f "conftest.$ac_objext"
3038 if { (eval echo "$as_me:3038: \"$ac_compile\"") >&5
3039 (eval $ac_compile) 2>&5
3040 ac_status=$?
3041 echo "$as_me:3041: \$? = $ac_status" >&5
3042 (exit "$ac_status"); } &&
3043 { ac_try='test -s "conftest.$ac_objext"'
3044 { (eval echo "$as_me:3044: \"$ac_try\"") >&5
3045 (eval $ac_try) 2>&5
3046 ac_status=$?
3047 echo "$as_me:3047: \$? = $ac_status" >&5
3048 (exit "$ac_status"); }; }; then
3049 cf_cv_gnu_library_219=yes
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 cat "conftest.$ac_ext" >&5
3053 cf_cv_gnu_library_219=no
3054 fi
3055 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3056 CPPFLAGS="$cf_save"
3057
3058 fi
3059 echo "$as_me:3059: result: $cf_cv_gnu_library_219" >&5
3060 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3061
3062 if test "x$cf_cv_gnu_library_219" = xyes; then
3063 cf_save="$CPPFLAGS"
3064 echo "$as_me:3064: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3065 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3066 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069
3070 cf_fix_cppflags=no
3071 cf_new_cflags=
3072 cf_new_cppflags=
3073 cf_new_extra_cppflags=
3074
3075 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3076 do
3077 case "$cf_fix_cppflags" in
3078 (no)
3079 case "$cf_add_cflags" in
3080 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3081 case "$cf_add_cflags" in
3082 (-D*)
3083 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3084
3085 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3086 && test -z "${cf_tst_cflags}" \
3087 && cf_fix_cppflags=yes
3088
3089 if test "$cf_fix_cppflags" = yes ; then
3090
3091 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3092 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3093
3094 continue
3095 elif test "${cf_tst_cflags}" = "\"'" ; then
3096
3097 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3098 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3099
3100 continue
3101 fi
3102 ;;
3103 esac
3104 case "$CPPFLAGS" in
3105 (*$cf_add_cflags)
3106 ;;
3107 (*)
3108 case "$cf_add_cflags" in
3109 (-D*)
3110 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3111
3112 CPPFLAGS=`echo "$CPPFLAGS" | \
3113 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3114 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3115
3116 ;;
3117 esac
3118
3119 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3120 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3121
3122 ;;
3123 esac
3124 ;;
3125 (*)
3126
3127 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3128 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3129
3130 ;;
3131 esac
3132 ;;
3133 (yes)
3134
3135 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3136 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3137
3138 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3139
3140 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3141 && test -z "${cf_tst_cflags}" \
3142 && cf_fix_cppflags=no
3143 ;;
3144 esac
3145 done
3146
3147 if test -n "$cf_new_cflags" ; then
3148
3149 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3150 CFLAGS="${CFLAGS}$cf_new_cflags"
3151
3152 fi
3153
3154 if test -n "$cf_new_cppflags" ; then
3155
3156 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3157 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3158
3159 fi
3160
3161 if test -n "$cf_new_extra_cppflags" ; then
3162
3163 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3164 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3165
3166 fi
3167
3168 cat >"conftest.$ac_ext" <<_ACEOF
3169 #line 3169 "configure"
3170 #include "confdefs.h"
3171
3172 #include <limits.h>
3173 #include <sys/types.h>
3174
3175 int
3176 main (void)
3177 {
3178
3179 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3180 return 0;
3181 #else
3182 # error GNU C library is too old
3183 #endif
3184 ;
3185 return 0;
3186 }
3187 _ACEOF
3188 rm -f "conftest.$ac_objext"
3189 if { (eval echo "$as_me:3189: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>&5
3191 ac_status=$?
3192 echo "$as_me:3192: \$? = $ac_status" >&5
3193 (exit "$ac_status"); } &&
3194 { ac_try='test -s "conftest.$ac_objext"'
3195 { (eval echo "$as_me:3195: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:3198: \$? = $ac_status" >&5
3199 (exit "$ac_status"); }; }; then
3200 cf_cv_gnu_dftsrc_219=yes
3201 else
3202 echo "$as_me: failed program was:" >&5
3203 cat "conftest.$ac_ext" >&5
3204 cf_cv_gnu_dftsrc_219=no
3205 fi
3206 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3207
3208 fi
3209 echo "$as_me:3209: result: $cf_cv_gnu_dftsrc_219" >&5
3210 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3211 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3212 else
3213 cf_cv_gnu_dftsrc_219=maybe
3214 fi
3215
3216 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3217
3218 echo "$as_me:3218: checking if we must define _GNU_SOURCE" >&5
3219 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3220 if test "${cf_cv_gnu_source+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223
3224 cat >"conftest.$ac_ext" <<_ACEOF
3225 #line 3225 "configure"
3226 #include "confdefs.h"
3227 #include <sys/types.h>
3228 int
3229 main (void)
3230 {
3231
3232 #ifndef _XOPEN_SOURCE
3233 #error expected _XOPEN_SOURCE to be defined
3234 #endif
3235 ;
3236 return 0;
3237 }
3238 _ACEOF
3239 rm -f "conftest.$ac_objext"
3240 if { (eval echo "$as_me:3240: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3242 ac_status=$?
3243 echo "$as_me:3243: \$? = $ac_status" >&5
3244 (exit "$ac_status"); } &&
3245 { ac_try='test -s "conftest.$ac_objext"'
3246 { (eval echo "$as_me:3246: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:3249: \$? = $ac_status" >&5
3250 (exit "$ac_status"); }; }; then
3251 cf_cv_gnu_source=no
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 cat "conftest.$ac_ext" >&5
3255 cf_save="$CPPFLAGS"
3256
3257 cf_fix_cppflags=no
3258 cf_new_cflags=
3259 cf_new_cppflags=
3260 cf_new_extra_cppflags=
3261
3262 for cf_add_cflags in -D_GNU_SOURCE
3263 do
3264 case "$cf_fix_cppflags" in
3265 (no)
3266 case "$cf_add_cflags" in
3267 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3268 case "$cf_add_cflags" in
3269 (-D*)
3270 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3271
3272 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3273 && test -z "${cf_tst_cflags}" \
3274 && cf_fix_cppflags=yes
3275
3276 if test "$cf_fix_cppflags" = yes ; then
3277
3278 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3279 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3280
3281 continue
3282 elif test "${cf_tst_cflags}" = "\"'" ; then
3283
3284 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3285 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3286
3287 continue
3288 fi
3289 ;;
3290 esac
3291 case "$CPPFLAGS" in
3292 (*$cf_add_cflags)
3293 ;;
3294 (*)
3295 case "$cf_add_cflags" in
3296 (-D*)
3297 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3298
3299 CPPFLAGS=`echo "$CPPFLAGS" | \
3300 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3301 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3302
3303 ;;
3304 esac
3305
3306 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3307 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3308
3309 ;;
3310 esac
3311 ;;
3312 (*)
3313
3314 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3315 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3316
3317 ;;
3318 esac
3319 ;;
3320 (yes)
3321
3322 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3323 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3324
3325 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3326
3327 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3328 && test -z "${cf_tst_cflags}" \
3329 && cf_fix_cppflags=no
3330 ;;
3331 esac
3332 done
3333
3334 if test -n "$cf_new_cflags" ; then
3335
3336 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3337 CFLAGS="${CFLAGS}$cf_new_cflags"
3338
3339 fi
3340
3341 if test -n "$cf_new_cppflags" ; then
3342
3343 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3344 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3345
3346 fi
3347
3348 if test -n "$cf_new_extra_cppflags" ; then
3349
3350 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3351 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3352
3353 fi
3354
3355 cat >"conftest.$ac_ext" <<_ACEOF
3356 #line 3356 "configure"
3357 #include "confdefs.h"
3358 #include <sys/types.h>
3359 int
3360 main (void)
3361 {
3362
3363 #ifdef _XOPEN_SOURCE
3364 #error expected _XOPEN_SOURCE to be undefined
3365 #endif
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 rm -f "conftest.$ac_objext"
3371 if { (eval echo "$as_me:3371: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>&5
3373 ac_status=$?
3374 echo "$as_me:3374: \$? = $ac_status" >&5
3375 (exit "$ac_status"); } &&
3376 { ac_try='test -s "conftest.$ac_objext"'
3377 { (eval echo "$as_me:3377: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:3380: \$? = $ac_status" >&5
3381 (exit "$ac_status"); }; }; then
3382 cf_cv_gnu_source=no
3383 else
3384 echo "$as_me: failed program was:" >&5
3385 cat "conftest.$ac_ext" >&5
3386 cf_cv_gnu_source=yes
3387 fi
3388 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3389 CPPFLAGS="$cf_save"
3390
3391 fi
3392 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3393
3394 fi
3395 echo "$as_me:3395: result: $cf_cv_gnu_source" >&5
3396 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3397
3398 if test "$cf_cv_gnu_source" = yes
3399 then
3400 echo "$as_me:3400: checking if we should also define _DEFAULT_SOURCE" >&5
3401 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3402 if test "${cf_cv_default_source+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405
3406 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3407 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
3408
3409 cat >"conftest.$ac_ext" <<_ACEOF
3410 #line 3410 "configure"
3411 #include "confdefs.h"
3412 #include <sys/types.h>
3413 int
3414 main (void)
3415 {
3416
3417 #ifdef _DEFAULT_SOURCE
3418 #error expected _DEFAULT_SOURCE to be undefined
3419 #endif
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 rm -f "conftest.$ac_objext"
3425 if { (eval echo "$as_me:3425: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>&5
3427 ac_status=$?
3428 echo "$as_me:3428: \$? = $ac_status" >&5
3429 (exit "$ac_status"); } &&
3430 { ac_try='test -s "conftest.$ac_objext"'
3431 { (eval echo "$as_me:3431: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:3434: \$? = $ac_status" >&5
3435 (exit "$ac_status"); }; }; then
3436 cf_cv_default_source=no
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 cat "conftest.$ac_ext" >&5
3440 cf_cv_default_source=yes
3441 fi
3442 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3443
3444 fi
3445 echo "$as_me:3445: result: $cf_cv_default_source" >&5
3446 echo "${ECHO_T}$cf_cv_default_source" >&6
3447 if test "$cf_cv_default_source" = yes
3448 then
3449
3450 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3451 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3452
3453 fi
3454 fi
3455 fi
3456
3457 fi
3458
3459 ;;
3460 linux*musl)
3461 cf_xopen_source="-D_BSD_SOURCE"
3462 ;;
3463 (minix*)
3464 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3465 ;;
3466 (mirbsd*)
3467 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3468 cf_XOPEN_SOURCE=
3469
3470 if test "$cf_cv_posix_visible" = no; then
3471
3472 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3473
3474 cf_save_CFLAGS="$CFLAGS"
3475 cf_save_CPPFLAGS="$CPPFLAGS"
3476
3477 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3478 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3479 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3480
3481 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3482 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3483 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3484
3485 echo "$as_me:3485: checking if we should define _POSIX_C_SOURCE" >&5
3486 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3487 if test "${cf_cv_posix_c_source+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490
3491 echo "${as_me:-configure}:3491: testing if the symbol is already defined go no further ..." 1>&5
3492
3493 cat >"conftest.$ac_ext" <<_ACEOF
3494 #line 3494 "configure"
3495 #include "confdefs.h"
3496 #include <sys/types.h>
3497 int
3498 main (void)
3499 {
3500
3501 #ifndef _POSIX_C_SOURCE
3502 #error _POSIX_C_SOURCE is not defined
3503 #endif
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 rm -f "conftest.$ac_objext"
3509 if { (eval echo "$as_me:3509: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>&5
3511 ac_status=$?
3512 echo "$as_me:3512: \$? = $ac_status" >&5
3513 (exit "$ac_status"); } &&
3514 { ac_try='test -s "conftest.$ac_objext"'
3515 { (eval echo "$as_me:3515: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:3518: \$? = $ac_status" >&5
3519 (exit "$ac_status"); }; }; then
3520 cf_cv_posix_c_source=no
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 cat "conftest.$ac_ext" >&5
3524 cf_want_posix_source=no
3525 case .$cf_POSIX_C_SOURCE in
3526 (.[12]??*)
3527 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3528 ;;
3529 (.2)
3530 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3531 cf_want_posix_source=yes
3532 ;;
3533 (.*)
3534 cf_want_posix_source=yes
3535 ;;
3536 esac
3537 if test "$cf_want_posix_source" = yes ; then
3538 cat >"conftest.$ac_ext" <<_ACEOF
3539 #line 3539 "configure"
3540 #include "confdefs.h"
3541 #include <sys/types.h>
3542 int
3543 main (void)
3544 {
3545
3546 #ifdef _POSIX_SOURCE
3547 #error _POSIX_SOURCE is defined
3548 #endif
3549 ;
3550 return 0;
3551 }
3552 _ACEOF
3553 rm -f "conftest.$ac_objext"
3554 if { (eval echo "$as_me:3554: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>&5
3556 ac_status=$?
3557 echo "$as_me:3557: \$? = $ac_status" >&5
3558 (exit "$ac_status"); } &&
3559 { ac_try='test -s "conftest.$ac_objext"'
3560 { (eval echo "$as_me:3560: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:3563: \$? = $ac_status" >&5
3564 (exit "$ac_status"); }; }; then
3565 :
3566 else
3567 echo "$as_me: failed program was:" >&5
3568 cat "conftest.$ac_ext" >&5
3569 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3570 fi
3571 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3572 fi
3573
3574 echo "${as_me:-configure}:3574: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3575
3576 CFLAGS="$cf_trim_CFLAGS"
3577 CPPFLAGS="$cf_trim_CPPFLAGS"
3578
3579 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3580 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
3581
3582 echo "${as_me:-configure}:3582: testing if the second compile does not leave our definition intact error ..." 1>&5
3583
3584 cat >"conftest.$ac_ext" <<_ACEOF
3585 #line 3585 "configure"
3586 #include "confdefs.h"
3587 #include <sys/types.h>
3588 int
3589 main (void)
3590 {
3591
3592 #ifndef _POSIX_C_SOURCE
3593 #error _POSIX_C_SOURCE is not defined
3594 #endif
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 rm -f "conftest.$ac_objext"
3600 if { (eval echo "$as_me:3600: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>&5
3602 ac_status=$?
3603 echo "$as_me:3603: \$? = $ac_status" >&5
3604 (exit "$ac_status"); } &&
3605 { ac_try='test -s "conftest.$ac_objext"'
3606 { (eval echo "$as_me:3606: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:3609: \$? = $ac_status" >&5
3610 (exit "$ac_status"); }; }; then
3611 :
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 cat "conftest.$ac_ext" >&5
3615 cf_cv_posix_c_source=no
3616 fi
3617 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3618 CFLAGS="$cf_save_CFLAGS"
3619 CPPFLAGS="$cf_save_CPPFLAGS"
3620
3621 fi
3622 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3623
3624 fi
3625 echo "$as_me:3625: result: $cf_cv_posix_c_source" >&5
3626 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3627
3628 if test "$cf_cv_posix_c_source" != no ; then
3629 CFLAGS="$cf_trim_CFLAGS"
3630 CPPFLAGS="$cf_trim_CPPFLAGS"
3631
3632 cf_fix_cppflags=no
3633 cf_new_cflags=
3634 cf_new_cppflags=
3635 cf_new_extra_cppflags=
3636
3637 for cf_add_cflags in $cf_cv_posix_c_source
3638 do
3639 case "$cf_fix_cppflags" in
3640 (no)
3641 case "$cf_add_cflags" in
3642 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3643 case "$cf_add_cflags" in
3644 (-D*)
3645 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3646
3647 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3648 && test -z "${cf_tst_cflags}" \
3649 && cf_fix_cppflags=yes
3650
3651 if test "$cf_fix_cppflags" = yes ; then
3652
3653 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3654 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3655
3656 continue
3657 elif test "${cf_tst_cflags}" = "\"'" ; then
3658
3659 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3660 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3661
3662 continue
3663 fi
3664 ;;
3665 esac
3666 case "$CPPFLAGS" in
3667 (*$cf_add_cflags)
3668 ;;
3669 (*)
3670 case "$cf_add_cflags" in
3671 (-D*)
3672 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3673
3674 CPPFLAGS=`echo "$CPPFLAGS" | \
3675 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3676 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3677
3678 ;;
3679 esac
3680
3681 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3682 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3683
3684 ;;
3685 esac
3686 ;;
3687 (*)
3688
3689 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3690 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3691
3692 ;;
3693 esac
3694 ;;
3695 (yes)
3696
3697 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3698 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3699
3700 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3701
3702 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3703 && test -z "${cf_tst_cflags}" \
3704 && cf_fix_cppflags=no
3705 ;;
3706 esac
3707 done
3708
3709 if test -n "$cf_new_cflags" ; then
3710
3711 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3712 CFLAGS="${CFLAGS}$cf_new_cflags"
3713
3714 fi
3715
3716 if test -n "$cf_new_cppflags" ; then
3717
3718 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3719 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3720
3721 fi
3722
3723 if test -n "$cf_new_extra_cppflags" ; then
3724
3725 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3726 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3727
3728 fi
3729
3730 fi
3731
3732 fi # cf_cv_posix_visible
3733
3734 ;;
3735 (netbsd*)
3736 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3737 ;;
3738 (openbsd[6-9]*)
3739 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
3740 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
3741 # Abusing the conformance level is a workaround.
3742 { echo "$as_me:3742: WARNING: this system does not provide usable locale support" >&5
3743 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
3744 cf_xopen_source="-D_BSD_SOURCE"
3745 cf_XOPEN_SOURCE=700
3746 ;;
3747 (openbsd[4-5]*)
3748 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3749 cf_xopen_source="-D_BSD_SOURCE"
3750 cf_XOPEN_SOURCE=600
3751 ;;
3752 (openbsd*)
3753 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3754 ;;
3755 (osf[45]*)
3756 cf_xopen_source="-D_OSF_SOURCE"
3757 ;;
3758 (nto-qnx*)
3759 cf_xopen_source="-D_QNX_SOURCE"
3760 ;;
3761 (sco*)
3762 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3763 ;;
3764 (solaris2.*)
3765 cf_xopen_source="-D__EXTENSIONS__"
3766 cf_cv_xopen_source=broken
3767 ;;
3768 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3769 cf_XOPEN_SOURCE=
3770 cf_POSIX_C_SOURCE=
3771 ;;
3772 (*)
3773
3774 echo "$as_me:3774: checking if we should define _XOPEN_SOURCE" >&5
3775 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3776 if test "${cf_cv_xopen_source+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779
3780 cat >"conftest.$ac_ext" <<_ACEOF
3781 #line 3781 "configure"
3782 #include "confdefs.h"
3783
3784 $ac_includes_default
3785
3786 int
3787 main (void)
3788 {
3789
3790 #ifndef _XOPEN_SOURCE
3791 #error _XOPEN_SOURCE is not defined
3792 #endif
3793
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 rm -f "conftest.$ac_objext"
3799 if { (eval echo "$as_me:3799: \"$ac_compile\"") >&5
3800 (eval $ac_compile) 2>&5
3801 ac_status=$?
3802 echo "$as_me:3802: \$? = $ac_status" >&5
3803 (exit "$ac_status"); } &&
3804 { ac_try='test -s "conftest.$ac_objext"'
3805 { (eval echo "$as_me:3805: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:3808: \$? = $ac_status" >&5
3809 (exit "$ac_status"); }; }; then
3810 cf_cv_xopen_source=no
3811 else
3812 echo "$as_me: failed program was:" >&5
3813 cat "conftest.$ac_ext" >&5
3814 cf_save="$CPPFLAGS"
3815
3816 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3817 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3818
3819 cat >"conftest.$ac_ext" <<_ACEOF
3820 #line 3820 "configure"
3821 #include "confdefs.h"
3822
3823 $ac_includes_default
3824
3825 int
3826 main (void)
3827 {
3828
3829 #ifndef _XOPEN_SOURCE
3830 #error _XOPEN_SOURCE is not defined
3831 #endif
3832
3833 ;
3834 return 0;
3835 }
3836 _ACEOF
3837 rm -f "conftest.$ac_objext"
3838 if { (eval echo "$as_me:3838: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>&5
3840 ac_status=$?
3841 echo "$as_me:3841: \$? = $ac_status" >&5
3842 (exit "$ac_status"); } &&
3843 { ac_try='test -s "conftest.$ac_objext"'
3844 { (eval echo "$as_me:3844: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:3847: \$? = $ac_status" >&5
3848 (exit "$ac_status"); }; }; then
3849 cf_cv_xopen_source=no
3850 else
3851 echo "$as_me: failed program was:" >&5
3852 cat "conftest.$ac_ext" >&5
3853 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3854 fi
3855 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3856 CPPFLAGS="$cf_save"
3857
3858 fi
3859 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3860
3861 fi
3862 echo "$as_me:3862: result: $cf_cv_xopen_source" >&5
3863 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3864
3865 if test "$cf_cv_xopen_source" != no ; then
3866
3867 CFLAGS=`echo "$CFLAGS" | \
3868 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3869 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3870
3871 CPPFLAGS=`echo "$CPPFLAGS" | \
3872 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3873 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3874
3875 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3876
3877 for cf_add_cflags in $cf_temp_xopen_source
3878 do
3879 case "x$cf_add_cflags" in
3880 (x-[DU]*)
3881
3882 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
3883 while true
3884 do
3885 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
3886 test "$CFLAGS" != "$cf_old_cflag" || break
3887
3888 CFLAGS="$cf_old_cflag"
3889 done
3890
3891 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
3892 while true
3893 do
3894 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
3895 test "$CPPFLAGS" != "$cf_old_cflag" || break
3896
3897 CPPFLAGS="$cf_old_cflag"
3898 done
3899
3900 ;;
3901 esac
3902
3903 cf_fix_cppflags=no
3904 cf_new_cflags=
3905 cf_new_cppflags=
3906 cf_new_extra_cppflags=
3907
3908 for cf_add_cflags in $cf_add_cflags
3909 do
3910 case "$cf_fix_cppflags" in
3911 (no)
3912 case "$cf_add_cflags" in
3913 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3914 case "$cf_add_cflags" in
3915 (-D*)
3916 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3917
3918 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3919 && test -z "${cf_tst_cflags}" \
3920 && cf_fix_cppflags=yes
3921
3922 if test "$cf_fix_cppflags" = yes ; then
3923
3924 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3925 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3926
3927 continue
3928 elif test "${cf_tst_cflags}" = "\"'" ; then
3929
3930 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3931 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3932
3933 continue
3934 fi
3935 ;;
3936 esac
3937 case "$CPPFLAGS" in
3938 (*$cf_add_cflags)
3939 ;;
3940 (*)
3941 case "$cf_add_cflags" in
3942 (-D*)
3943 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3944
3945 CPPFLAGS=`echo "$CPPFLAGS" | \
3946 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3947 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3948
3949 ;;
3950 esac
3951
3952 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3953 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3954
3955 ;;
3956 esac
3957 ;;
3958 (*)
3959
3960 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3961 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3962
3963 ;;
3964 esac
3965 ;;
3966 (yes)
3967
3968 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3969 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3970
3971 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3972
3973 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3974 && test -z "${cf_tst_cflags}" \
3975 && cf_fix_cppflags=no
3976 ;;
3977 esac
3978 done
3979
3980 if test -n "$cf_new_cflags" ; then
3981
3982 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3983 CFLAGS="${CFLAGS}$cf_new_cflags"
3984
3985 fi
3986
3987 if test -n "$cf_new_cppflags" ; then
3988
3989 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3990 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3991
3992 fi
3993
3994 if test -n "$cf_new_extra_cppflags" ; then
3995
3996 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3997 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3998
3999 fi
4000
4001 done
4002
4003 fi
4004
4005 cf_save_xopen_cppflags="$CPPFLAGS"
4006
4007 if test "$cf_cv_posix_visible" = no; then
4008
4009 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4010
4011 cf_save_CFLAGS="$CFLAGS"
4012 cf_save_CPPFLAGS="$CPPFLAGS"
4013
4014 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4015 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4016 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4017
4018 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4019 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4020 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4021
4022 echo "$as_me:4022: checking if we should define _POSIX_C_SOURCE" >&5
4023 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4024 if test "${cf_cv_posix_c_source+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027
4028 echo "${as_me:-configure}:4028: testing if the symbol is already defined go no further ..." 1>&5
4029
4030 cat >"conftest.$ac_ext" <<_ACEOF
4031 #line 4031 "configure"
4032 #include "confdefs.h"
4033 #include <sys/types.h>
4034 int
4035 main (void)
4036 {
4037
4038 #ifndef _POSIX_C_SOURCE
4039 #error _POSIX_C_SOURCE is not defined
4040 #endif
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 rm -f "conftest.$ac_objext"
4046 if { (eval echo "$as_me:4046: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>&5
4048 ac_status=$?
4049 echo "$as_me:4049: \$? = $ac_status" >&5
4050 (exit "$ac_status"); } &&
4051 { ac_try='test -s "conftest.$ac_objext"'
4052 { (eval echo "$as_me:4052: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:4055: \$? = $ac_status" >&5
4056 (exit "$ac_status"); }; }; then
4057 cf_cv_posix_c_source=no
4058 else
4059 echo "$as_me: failed program was:" >&5
4060 cat "conftest.$ac_ext" >&5
4061 cf_want_posix_source=no
4062 case .$cf_POSIX_C_SOURCE in
4063 (.[12]??*)
4064 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4065 ;;
4066 (.2)
4067 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4068 cf_want_posix_source=yes
4069 ;;
4070 (.*)
4071 cf_want_posix_source=yes
4072 ;;
4073 esac
4074 if test "$cf_want_posix_source" = yes ; then
4075 cat >"conftest.$ac_ext" <<_ACEOF
4076 #line 4076 "configure"
4077 #include "confdefs.h"
4078 #include <sys/types.h>
4079 int
4080 main (void)
4081 {
4082
4083 #ifdef _POSIX_SOURCE
4084 #error _POSIX_SOURCE is defined
4085 #endif
4086 ;
4087 return 0;
4088 }
4089 _ACEOF
4090 rm -f "conftest.$ac_objext"
4091 if { (eval echo "$as_me:4091: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>&5
4093 ac_status=$?
4094 echo "$as_me:4094: \$? = $ac_status" >&5
4095 (exit "$ac_status"); } &&
4096 { ac_try='test -s "conftest.$ac_objext"'
4097 { (eval echo "$as_me:4097: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:4100: \$? = $ac_status" >&5
4101 (exit "$ac_status"); }; }; then
4102 :
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 cat "conftest.$ac_ext" >&5
4106 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4107 fi
4108 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4109 fi
4110
4111 echo "${as_me:-configure}:4111: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4112
4113 CFLAGS="$cf_trim_CFLAGS"
4114 CPPFLAGS="$cf_trim_CPPFLAGS"
4115
4116 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4117 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4118
4119 echo "${as_me:-configure}:4119: testing if the second compile does not leave our definition intact error ..." 1>&5
4120
4121 cat >"conftest.$ac_ext" <<_ACEOF
4122 #line 4122 "configure"
4123 #include "confdefs.h"
4124 #include <sys/types.h>
4125 int
4126 main (void)
4127 {
4128
4129 #ifndef _POSIX_C_SOURCE
4130 #error _POSIX_C_SOURCE is not defined
4131 #endif
4132 ;
4133 return 0;
4134 }
4135 _ACEOF
4136 rm -f "conftest.$ac_objext"
4137 if { (eval echo "$as_me:4137: \"$ac_compile\"") >&5
4138 (eval $ac_compile) 2>&5
4139 ac_status=$?
4140 echo "$as_me:4140: \$? = $ac_status" >&5
4141 (exit "$ac_status"); } &&
4142 { ac_try='test -s "conftest.$ac_objext"'
4143 { (eval echo "$as_me:4143: \"$ac_try\"") >&5
4144 (eval $ac_try) 2>&5
4145 ac_status=$?
4146 echo "$as_me:4146: \$? = $ac_status" >&5
4147 (exit "$ac_status"); }; }; then
4148 :
4149 else
4150 echo "$as_me: failed program was:" >&5
4151 cat "conftest.$ac_ext" >&5
4152 cf_cv_posix_c_source=no
4153 fi
4154 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4155 CFLAGS="$cf_save_CFLAGS"
4156 CPPFLAGS="$cf_save_CPPFLAGS"
4157
4158 fi
4159 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4160
4161 fi
4162 echo "$as_me:4162: result: $cf_cv_posix_c_source" >&5
4163 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4164
4165 if test "$cf_cv_posix_c_source" != no ; then
4166 CFLAGS="$cf_trim_CFLAGS"
4167 CPPFLAGS="$cf_trim_CPPFLAGS"
4168
4169 cf_fix_cppflags=no
4170 cf_new_cflags=
4171 cf_new_cppflags=
4172 cf_new_extra_cppflags=
4173
4174 for cf_add_cflags in $cf_cv_posix_c_source
4175 do
4176 case "$cf_fix_cppflags" in
4177 (no)
4178 case "$cf_add_cflags" in
4179 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4180 case "$cf_add_cflags" in
4181 (-D*)
4182 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4183
4184 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4185 && test -z "${cf_tst_cflags}" \
4186 && cf_fix_cppflags=yes
4187
4188 if test "$cf_fix_cppflags" = yes ; then
4189
4190 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4191 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4192
4193 continue
4194 elif test "${cf_tst_cflags}" = "\"'" ; then
4195
4196 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4197 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4198
4199 continue
4200 fi
4201 ;;
4202 esac
4203 case "$CPPFLAGS" in
4204 (*$cf_add_cflags)
4205 ;;
4206 (*)
4207 case "$cf_add_cflags" in
4208 (-D*)
4209 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4210
4211 CPPFLAGS=`echo "$CPPFLAGS" | \
4212 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4213 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4214
4215 ;;
4216 esac
4217
4218 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4219 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4220
4221 ;;
4222 esac
4223 ;;
4224 (*)
4225
4226 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4227 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4228
4229 ;;
4230 esac
4231 ;;
4232 (yes)
4233
4234 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4235 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4236
4237 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4238
4239 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4240 && test -z "${cf_tst_cflags}" \
4241 && cf_fix_cppflags=no
4242 ;;
4243 esac
4244 done
4245
4246 if test -n "$cf_new_cflags" ; then
4247
4248 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4249 CFLAGS="${CFLAGS}$cf_new_cflags"
4250
4251 fi
4252
4253 if test -n "$cf_new_cppflags" ; then
4254
4255 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4256 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4257
4258 fi
4259
4260 if test -n "$cf_new_extra_cppflags" ; then
4261
4262 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4263 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4264
4265 fi
4266
4267 fi
4268
4269 fi # cf_cv_posix_visible
4270
4271 # Some of these niche implementations use copy/paste, double-check...
4272 if test "$cf_cv_xopen_source" = no ; then
4273 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
4274
4275 echo "${as_me:-configure}:4275: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5
4276
4277 cat >"conftest.$ac_ext" <<_ACEOF
4278 #line 4278 "configure"
4279 #include "confdefs.h"
4280
4281 $ac_includes_default
4282
4283 int
4284 main (void)
4285 {
4286
4287 #ifndef _XOPEN_SOURCE
4288 #error _XOPEN_SOURCE is not defined
4289 #endif
4290
4291 ;
4292 return 0;
4293 }
4294 _ACEOF
4295 rm -f "conftest.$ac_objext"
4296 if { (eval echo "$as_me:4296: \"$ac_compile\"") >&5
4297 (eval $ac_compile) 2>&5
4298 ac_status=$?
4299 echo "$as_me:4299: \$? = $ac_status" >&5
4300 (exit "$ac_status"); } &&
4301 { ac_try='test -s "conftest.$ac_objext"'
4302 { (eval echo "$as_me:4302: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:4305: \$? = $ac_status" >&5
4306 (exit "$ac_status"); }; }; then
4307 :
4308 else
4309 echo "$as_me: failed program was:" >&5
4310 cat "conftest.$ac_ext" >&5
4311
4312 { echo "$as_me:4312: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
4313 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
4314 CPPFLAGS="$cf_save_xopen_cppflags"
4315 fi
4316 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4317 fi
4318 ;;
4319 esac
4320
4321 if test -n "$cf_xopen_source" ; then
4322
4323 for cf_add_cflags in $cf_xopen_source
4324 do
4325 case "x$cf_add_cflags" in
4326 (x-[DU]*)
4327
4328 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4329 while true
4330 do
4331 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4332 test "$CFLAGS" != "$cf_old_cflag" || break
4333 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
4334
4335 echo "${as_me:-configure}:4335: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
4336
4337 CFLAGS="$cf_old_cflag"
4338 done
4339
4340 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4341 while true
4342 do
4343 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4344 test "$CPPFLAGS" != "$cf_old_cflag" || break
4345 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
4346
4347 echo "${as_me:-configure}:4347: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
4348
4349 CPPFLAGS="$cf_old_cflag"
4350 done
4351
4352 ;;
4353 esac
4354
4355 cf_fix_cppflags=no
4356 cf_new_cflags=
4357 cf_new_cppflags=
4358 cf_new_extra_cppflags=
4359
4360 for cf_add_cflags in $cf_add_cflags
4361 do
4362 case "$cf_fix_cppflags" in
4363 (no)
4364 case "$cf_add_cflags" in
4365 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4366 case "$cf_add_cflags" in
4367 (-D*)
4368 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4369
4370 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4371 && test -z "${cf_tst_cflags}" \
4372 && cf_fix_cppflags=yes
4373
4374 if test "$cf_fix_cppflags" = yes ; then
4375
4376 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4377 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4378
4379 continue
4380 elif test "${cf_tst_cflags}" = "\"'" ; then
4381
4382 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4383 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4384
4385 continue
4386 fi
4387 ;;
4388 esac
4389 case "$CPPFLAGS" in
4390 (*$cf_add_cflags)
4391 ;;
4392 (*)
4393 case "$cf_add_cflags" in
4394 (-D*)
4395 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4396
4397 CPPFLAGS=`echo "$CPPFLAGS" | \
4398 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4399 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4400
4401 ;;
4402 esac
4403
4404 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4405 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4406
4407 ;;
4408 esac
4409 ;;
4410 (*)
4411
4412 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4413 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4414
4415 ;;
4416 esac
4417 ;;
4418 (yes)
4419
4420 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4421 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4422
4423 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4424
4425 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4426 && test -z "${cf_tst_cflags}" \
4427 && cf_fix_cppflags=no
4428 ;;
4429 esac
4430 done
4431
4432 if test -n "$cf_new_cflags" ; then
4433 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4434
4435 echo "${as_me:-configure}:4435: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4436
4437 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4438 CFLAGS="${CFLAGS}$cf_new_cflags"
4439
4440 fi
4441
4442 if test -n "$cf_new_cppflags" ; then
4443 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4444
4445 echo "${as_me:-configure}:4445: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4446
4447 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4448 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4449
4450 fi
4451
4452 if test -n "$cf_new_extra_cppflags" ; then
4453 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4454
4455 echo "${as_me:-configure}:4455: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4456
4457 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4458 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4459
4460 fi
4461
4462 done
4463
4464 fi
4465
4466 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4467 echo "$as_me:4467: checking if _XOPEN_SOURCE really is set" >&5
4468 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4469 cat >"conftest.$ac_ext" <<_ACEOF
4470 #line 4470 "configure"
4471 #include "confdefs.h"
4472 #include <stdlib.h>
4473 int
4474 main (void)
4475 {
4476
4477 #ifndef _XOPEN_SOURCE
4478 #error _XOPEN_SOURCE is not defined
4479 #endif
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 rm -f "conftest.$ac_objext"
4485 if { (eval echo "$as_me:4485: \"$ac_compile\"") >&5
4486 (eval $ac_compile) 2>&5
4487 ac_status=$?
4488 echo "$as_me:4488: \$? = $ac_status" >&5
4489 (exit "$ac_status"); } &&
4490 { ac_try='test -s "conftest.$ac_objext"'
4491 { (eval echo "$as_me:4491: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:4494: \$? = $ac_status" >&5
4495 (exit "$ac_status"); }; }; then
4496 cf_XOPEN_SOURCE_set=yes
4497 else
4498 echo "$as_me: failed program was:" >&5
4499 cat "conftest.$ac_ext" >&5
4500 cf_XOPEN_SOURCE_set=no
4501 fi
4502 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4503 echo "$as_me:4503: result: $cf_XOPEN_SOURCE_set" >&5
4504 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4505 if test "$cf_XOPEN_SOURCE_set" = yes
4506 then
4507 cat >"conftest.$ac_ext" <<_ACEOF
4508 #line 4508 "configure"
4509 #include "confdefs.h"
4510 #include <stdlib.h>
4511 int
4512 main (void)
4513 {
4514
4515 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4516 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4517 #endif
4518 ;
4519 return 0;
4520 }
4521 _ACEOF
4522 rm -f "conftest.$ac_objext"
4523 if { (eval echo "$as_me:4523: \"$ac_compile\"") >&5
4524 (eval $ac_compile) 2>&5
4525 ac_status=$?
4526 echo "$as_me:4526: \$? = $ac_status" >&5
4527 (exit "$ac_status"); } &&
4528 { ac_try='test -s "conftest.$ac_objext"'
4529 { (eval echo "$as_me:4529: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:4532: \$? = $ac_status" >&5
4533 (exit "$ac_status"); }; }; then
4534 cf_XOPEN_SOURCE_set_ok=yes
4535 else
4536 echo "$as_me: failed program was:" >&5
4537 cat "conftest.$ac_ext" >&5
4538 cf_XOPEN_SOURCE_set_ok=no
4539 fi
4540 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4541 if test "$cf_XOPEN_SOURCE_set_ok" = no
4542 then
4543 { echo "$as_me:4543: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4544 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4545 fi
4546 else
4547
4548 echo "$as_me:4548: checking if we should define _XOPEN_SOURCE" >&5
4549 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4550 if test "${cf_cv_xopen_source+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553
4554 cat >"conftest.$ac_ext" <<_ACEOF
4555 #line 4555 "configure"
4556 #include "confdefs.h"
4557
4558 $ac_includes_default
4559
4560 int
4561 main (void)
4562 {
4563
4564 #ifndef _XOPEN_SOURCE
4565 #error _XOPEN_SOURCE is not defined
4566 #endif
4567
4568 ;
4569 return 0;
4570 }
4571 _ACEOF
4572 rm -f "conftest.$ac_objext"
4573 if { (eval echo "$as_me:4573: \"$ac_compile\"") >&5
4574 (eval $ac_compile) 2>&5
4575 ac_status=$?
4576 echo "$as_me:4576: \$? = $ac_status" >&5
4577 (exit "$ac_status"); } &&
4578 { ac_try='test -s "conftest.$ac_objext"'
4579 { (eval echo "$as_me:4579: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:4582: \$? = $ac_status" >&5
4583 (exit "$ac_status"); }; }; then
4584 cf_cv_xopen_source=no
4585 else
4586 echo "$as_me: failed program was:" >&5
4587 cat "conftest.$ac_ext" >&5
4588 cf_save="$CPPFLAGS"
4589
4590 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4591 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4592
4593 cat >"conftest.$ac_ext" <<_ACEOF
4594 #line 4594 "configure"
4595 #include "confdefs.h"
4596
4597 $ac_includes_default
4598
4599 int
4600 main (void)
4601 {
4602
4603 #ifndef _XOPEN_SOURCE
4604 #error _XOPEN_SOURCE is not defined
4605 #endif
4606
4607 ;
4608 return 0;
4609 }
4610 _ACEOF
4611 rm -f "conftest.$ac_objext"
4612 if { (eval echo "$as_me:4612: \"$ac_compile\"") >&5
4613 (eval $ac_compile) 2>&5
4614 ac_status=$?
4615 echo "$as_me:4615: \$? = $ac_status" >&5
4616 (exit "$ac_status"); } &&
4617 { ac_try='test -s "conftest.$ac_objext"'
4618 { (eval echo "$as_me:4618: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:4621: \$? = $ac_status" >&5
4622 (exit "$ac_status"); }; }; then
4623 cf_cv_xopen_source=no
4624 else
4625 echo "$as_me: failed program was:" >&5
4626 cat "conftest.$ac_ext" >&5
4627 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4628 fi
4629 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4630 CPPFLAGS="$cf_save"
4631
4632 fi
4633 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4634
4635 fi
4636 echo "$as_me:4636: result: $cf_cv_xopen_source" >&5
4637 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4638
4639 if test "$cf_cv_xopen_source" != no ; then
4640
4641 CFLAGS=`echo "$CFLAGS" | \
4642 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4643 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4644
4645 CPPFLAGS=`echo "$CPPFLAGS" | \
4646 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4647 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4648
4649 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4650
4651 for cf_add_cflags in $cf_temp_xopen_source
4652 do
4653 case "x$cf_add_cflags" in
4654 (x-[DU]*)
4655
4656 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4657 while true
4658 do
4659 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4660 test "$CFLAGS" != "$cf_old_cflag" || break
4661
4662 CFLAGS="$cf_old_cflag"
4663 done
4664
4665 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4666 while true
4667 do
4668 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4669 test "$CPPFLAGS" != "$cf_old_cflag" || break
4670
4671 CPPFLAGS="$cf_old_cflag"
4672 done
4673
4674 ;;
4675 esac
4676
4677 cf_fix_cppflags=no
4678 cf_new_cflags=
4679 cf_new_cppflags=
4680 cf_new_extra_cppflags=
4681
4682 for cf_add_cflags in $cf_add_cflags
4683 do
4684 case "$cf_fix_cppflags" in
4685 (no)
4686 case "$cf_add_cflags" in
4687 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4688 case "$cf_add_cflags" in
4689 (-D*)
4690 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4691
4692 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4693 && test -z "${cf_tst_cflags}" \
4694 && cf_fix_cppflags=yes
4695
4696 if test "$cf_fix_cppflags" = yes ; then
4697
4698 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4699 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4700
4701 continue
4702 elif test "${cf_tst_cflags}" = "\"'" ; then
4703
4704 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4705 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4706
4707 continue
4708 fi
4709 ;;
4710 esac
4711 case "$CPPFLAGS" in
4712 (*$cf_add_cflags)
4713 ;;
4714 (*)
4715 case "$cf_add_cflags" in
4716 (-D*)
4717 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4718
4719 CPPFLAGS=`echo "$CPPFLAGS" | \
4720 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4721 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4722
4723 ;;
4724 esac
4725
4726 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4727 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4728
4729 ;;
4730 esac
4731 ;;
4732 (*)
4733
4734 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4735 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4736
4737 ;;
4738 esac
4739 ;;
4740 (yes)
4741
4742 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4743 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4744
4745 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4746
4747 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4748 && test -z "${cf_tst_cflags}" \
4749 && cf_fix_cppflags=no
4750 ;;
4751 esac
4752 done
4753
4754 if test -n "$cf_new_cflags" ; then
4755
4756 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4757 CFLAGS="${CFLAGS}$cf_new_cflags"
4758
4759 fi
4760
4761 if test -n "$cf_new_cppflags" ; then
4762
4763 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4764 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4765
4766 fi
4767
4768 if test -n "$cf_new_extra_cppflags" ; then
4769
4770 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4771 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4772
4773 fi
4774
4775 done
4776
4777 fi
4778
4779 fi
4780 fi
4781 fi # cf_cv_posix_visible
4782
4783 for ac_prog in ggrep grep
4784 do
4785 # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 echo "$as_me:4787: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_GREP+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792 if test -n "$GREP"; then
4793 ac_cv_prog_GREP="$GREP" # Let the user override the test.
4794 else
4795 ac_save_IFS=$IFS; IFS=$ac_path_separator
4796 ac_dummy="$PATH"
4797 for ac_dir in $ac_dummy; do
4798 IFS=$ac_save_IFS
4799 test -z "$ac_dir" && ac_dir=.
4800 $as_executable_p "$ac_dir/$ac_word" || continue
4801 ac_cv_prog_GREP="$ac_prog"
4802 echo "$as_me:4802: found $ac_dir/$ac_word" >&5
4803 break
4804 done
4805
4806 fi
4807 fi
4808 GREP=$ac_cv_prog_GREP
4809 if test -n "$GREP"; then
4810 echo "$as_me:4810: result: $GREP" >&5
4811 echo "${ECHO_T}$GREP" >&6
4812 else
4813 echo "$as_me:4813: result: no" >&5
4814 echo "${ECHO_T}no" >&6
4815 fi
4816
4817 test -n "$GREP" && break
4818 done
4819 test -n "$GREP" || GREP=": "
4820
4821 echo "$as_me:4821: checking for egrep" >&5
4822 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4823 if test "${ac_cv_path_EGREP+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4827 then ac_cv_path_EGREP="$GREP -E"
4828 else
4829 for ac_prog in gegrep egrep
4830 do
4831 # Extract the first word of "$ac_prog", so it can be a program name with args.
4832 set dummy $ac_prog; ac_word=$2
4833 echo "$as_me:4833: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4835 if test "${ac_cv_path_EGREP+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 case $EGREP in
4839 [\\/]* | ?:[\\/]*)
4840 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4841 ;;
4842 *)
4843 ac_save_IFS=$IFS; IFS=$ac_path_separator
4844 ac_dummy="$PATH"
4845 for ac_dir in $ac_dummy; do
4846 IFS=$ac_save_IFS
4847 test -z "$ac_dir" && ac_dir=.
4848 if $as_executable_p "$ac_dir/$ac_word"; then
4849 ac_cv_path_EGREP="$ac_dir/$ac_word"
4850 echo "$as_me:4850: found $ac_dir/$ac_word" >&5
4851 break
4852 fi
4853 done
4854
4855 ;;
4856 esac
4857 fi
4858 EGREP=$ac_cv_path_EGREP
4859
4860 if test -n "$EGREP"; then
4861 echo "$as_me:4861: result: $EGREP" >&5
4862 echo "${ECHO_T}$EGREP" >&6
4863 else
4864 echo "$as_me:4864: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4866 fi
4867
4868 test -n "$EGREP" && break
4869 done
4870 test -n "$EGREP" || EGREP=": "
4871
4872 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:4872: error: cannot find workable egrep" >&5
4873 echo "$as_me: error: cannot find workable egrep" >&2;}
4874 { (exit 1); exit 1; }; }
4875 fi
4876 fi
4877 echo "$as_me:4877: result: $ac_cv_path_EGREP" >&5
4878 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
4879 EGREP="$ac_cv_path_EGREP"
4880
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
4884 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886 ac_main_return="return"
4887 echo "$as_me:4887: checking how to run the C preprocessor" >&5
4888 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4889 # On Suns, sometimes $CPP names a directory.
4890 if test -n "$CPP" && test -d "$CPP"; then
4891 CPP=
4892 fi
4893 if test -z "$CPP"; then
4894 if test "${ac_cv_prog_CPP+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897 # Double quotes because CPP needs to be expanded
4898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4899 do
4900 ac_preproc_ok=false
4901 for ac_c_preproc_warn_flag in '' yes
4902 do
4903 # Use a header file that comes with gcc, so configuring glibc
4904 # with a fresh cross-compiler works.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat >"conftest.$ac_ext" <<_ACEOF
4908 #line 4908 "configure"
4909 #include "confdefs.h"
4910 #include <assert.h>
4911 Syntax error
4912 _ACEOF
4913 if { (eval echo "$as_me:4913: \"$ac_cpp "conftest.$ac_ext"\"") >&5
4914 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
4915 ac_status=$?
4916 $EGREP -v '^ *\+' conftest.er1 >conftest.err
4917 rm -f conftest.er1
4918 cat conftest.err >&5
4919 echo "$as_me:4919: \$? = $ac_status" >&5
4920 (exit "$ac_status"); } >/dev/null; then
4921 if test -s conftest.err; then
4922 ac_cpp_err=$ac_c_preproc_warn_flag
4923 else
4924 ac_cpp_err=
4925 fi
4926 else
4927 ac_cpp_err=yes
4928 fi
4929 if test -z "$ac_cpp_err"; then
4930 :
4931 else
4932 echo "$as_me: failed program was:" >&5
4933 cat "conftest.$ac_ext" >&5
4934 # Broken: fails on valid input.
4935 continue
4936 fi
4937 rm -f conftest.err "conftest.$ac_ext"
4938
4939 # OK, works on sane cases. Now check whether non-existent headers
4940 # can be detected and how.
4941 cat >"conftest.$ac_ext" <<_ACEOF
4942 #line 4942 "configure"
4943 #include "confdefs.h"
4944 #include <ac_nonexistent.h>
4945 _ACEOF
4946 if { (eval echo "$as_me:4946: \"$ac_cpp "conftest.$ac_ext"\"") >&5
4947 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
4948 ac_status=$?
4949 $EGREP -v '^ *\+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:4952: \$? = $ac_status" >&5
4953 (exit "$ac_status"); } >/dev/null; then
4954 if test -s conftest.err; then
4955 ac_cpp_err=$ac_c_preproc_warn_flag
4956 else
4957 ac_cpp_err=
4958 fi
4959 else
4960 ac_cpp_err=yes
4961 fi
4962 if test -z "$ac_cpp_err"; then
4963 # Broken: success on invalid input.
4964 continue
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 cat "conftest.$ac_ext" >&5
4968 # Passes both tests.
4969 ac_preproc_ok=:
4970 break
4971 fi
4972 rm -f conftest.err "conftest.$ac_ext"
4973
4974 done
4975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976 rm -f conftest.err "conftest.$ac_ext"
4977 if $ac_preproc_ok; then
4978 break
4979 fi
4980
4981 done
4982 ac_cv_prog_CPP=$CPP
4983
4984 fi
4985 CPP=$ac_cv_prog_CPP
4986 else
4987 ac_cv_prog_CPP=$CPP
4988 fi
4989 echo "$as_me:4989: result: $CPP" >&5
4990 echo "${ECHO_T}$CPP" >&6
4991 ac_preproc_ok=false
4992 for ac_c_preproc_warn_flag in '' yes
4993 do
4994 # Use a header file that comes with gcc, so configuring glibc
4995 # with a fresh cross-compiler works.
4996 # On the NeXT, cc -E runs the code through the compiler's parser,
4997 # not just through cpp. "Syntax error" is here to catch this case.
4998 cat >"conftest.$ac_ext" <<_ACEOF
4999 #line 4999 "configure"
5000 #include "confdefs.h"
5001 #include <assert.h>
5002 Syntax error
5003 _ACEOF
5004 if { (eval echo "$as_me:5004: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5005 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5006 ac_status=$?
5007 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:5010: \$? = $ac_status" >&5
5011 (exit "$ac_status"); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_c_preproc_warn_flag
5014 else
5015 ac_cpp_err=
5016 fi
5017 else
5018 ac_cpp_err=yes
5019 fi
5020 if test -z "$ac_cpp_err"; then
5021 :
5022 else
5023 echo "$as_me: failed program was:" >&5
5024 cat "conftest.$ac_ext" >&5
5025 # Broken: fails on valid input.
5026 continue
5027 fi
5028 rm -f conftest.err "conftest.$ac_ext"
5029
5030 # OK, works on sane cases. Now check whether non-existent headers
5031 # can be detected and how.
5032 cat >"conftest.$ac_ext" <<_ACEOF
5033 #line 5033 "configure"
5034 #include "confdefs.h"
5035 #include <ac_nonexistent.h>
5036 _ACEOF
5037 if { (eval echo "$as_me:5037: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5038 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5039 ac_status=$?
5040 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:5043: \$? = $ac_status" >&5
5044 (exit "$ac_status"); } >/dev/null; then
5045 if test -s conftest.err; then
5046 ac_cpp_err=$ac_c_preproc_warn_flag
5047 else
5048 ac_cpp_err=
5049 fi
5050 else
5051 ac_cpp_err=yes
5052 fi
5053 if test -z "$ac_cpp_err"; then
5054 # Broken: success on invalid input.
5055 continue
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 cat "conftest.$ac_ext" >&5
5059 # Passes both tests.
5060 ac_preproc_ok=:
5061 break
5062 fi
5063 rm -f conftest.err "conftest.$ac_ext"
5064
5065 done
5066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5067 rm -f conftest.err "conftest.$ac_ext"
5068 if $ac_preproc_ok; then
5069 :
5070 else
5071 { { echo "$as_me:5071: error: C preprocessor \"$CPP\" fails sanity check" >&5
5072 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5073 { (exit 1); exit 1; }; }
5074 fi
5075
5076 ac_ext=c
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
5079 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081 ac_main_return="return"
5082
5083 echo "$as_me:5083: checking for ANSI C header files" >&5
5084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5085 if test "${ac_cv_header_stdc+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088 cat >"conftest.$ac_ext" <<_ACEOF
5089 #line 5089 "configure"
5090 #include "confdefs.h"
5091 #include <stdlib.h>
5092 #include <stdarg.h>
5093 #include <string.h>
5094 #include <float.h>
5095
5096 _ACEOF
5097 if { (eval echo "$as_me:5097: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5098 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5099 ac_status=$?
5100 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:5103: \$? = $ac_status" >&5
5104 (exit "$ac_status"); } >/dev/null; then
5105 if test -s conftest.err; then
5106 ac_cpp_err=$ac_c_preproc_warn_flag
5107 else
5108 ac_cpp_err=
5109 fi
5110 else
5111 ac_cpp_err=yes
5112 fi
5113 if test -z "$ac_cpp_err"; then
5114 ac_cv_header_stdc=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 cat "conftest.$ac_ext" >&5
5118 ac_cv_header_stdc=no
5119 fi
5120 rm -f conftest.err "conftest.$ac_ext"
5121
5122 if test $ac_cv_header_stdc = yes; then
5123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5124 cat >"conftest.$ac_ext" <<_ACEOF
5125 #line 5125 "configure"
5126 #include "confdefs.h"
5127 #include <string.h>
5128
5129 _ACEOF
5130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5131 $EGREP "memchr" >/dev/null 2>&1; then
5132 :
5133 else
5134 ac_cv_header_stdc=no
5135 fi
5136 rm -rf conftest*
5137
5138 fi
5139
5140 if test $ac_cv_header_stdc = yes; then
5141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5142 cat >"conftest.$ac_ext" <<_ACEOF
5143 #line 5143 "configure"
5144 #include "confdefs.h"
5145 #include <stdlib.h>
5146
5147 _ACEOF
5148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5149 $EGREP "free" >/dev/null 2>&1; then
5150 :
5151 else
5152 ac_cv_header_stdc=no
5153 fi
5154 rm -rf conftest*
5155
5156 fi
5157
5158 if test $ac_cv_header_stdc = yes; then
5159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5160 if test "$cross_compiling" = yes; then
5161 :
5162 else
5163 cat >"conftest.$ac_ext" <<_ACEOF
5164 #line 5164 "configure"
5165 #include "confdefs.h"
5166 #include <ctype.h>
5167 #if ((' ' & 0x0FF) == 0x020)
5168 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5169 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5170 #else
5171 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5172 || ('j' <= (c) && (c) <= 'r') \
5173 || ('s' <= (c) && (c) <= 'z'))
5174 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5175 #endif
5176
5177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5178 int
5179 main (void)
5180 {
5181 int i;
5182 for (i = 0; i < 256; i++)
5183 if (XOR (islower (i), ISLOWER (i))
5184 || toupper (i) != TOUPPER (i))
5185 $ac_main_return(2);
5186 $ac_main_return (0);
5187 }
5188 _ACEOF
5189 rm -f "conftest$ac_exeext"
5190 if { (eval echo "$as_me:5190: \"$ac_link\"") >&5
5191 (eval $ac_link) 2>&5
5192 ac_status=$?
5193 echo "$as_me:5193: \$? = $ac_status" >&5
5194 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5195 { (eval echo "$as_me:5195: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:5198: \$? = $ac_status" >&5
5199 (exit "$ac_status"); }; }; then
5200 :
5201 else
5202 echo "$as_me: program exited with status $ac_status" >&5
5203 echo "$as_me: failed program was:" >&5
5204 cat "conftest.$ac_ext" >&5
5205 ac_cv_header_stdc=no
5206 fi
5207 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5208 fi
5209 fi
5210 fi
5211 echo "$as_me:5211: result: $ac_cv_header_stdc" >&5
5212 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5213 if test $ac_cv_header_stdc = yes; then
5214
5215 cat >>confdefs.h <<\EOF
5216 #define STDC_HEADERS 1
5217 EOF
5218
5219 fi
5220
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222
5223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5224 inttypes.h stdint.h unistd.h
5225 do
5226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5227 echo "$as_me:5227: checking for $ac_header" >&5
5228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 cat >"conftest.$ac_ext" <<_ACEOF
5233 #line 5233 "configure"
5234 #include "confdefs.h"
5235 $ac_includes_default
5236 #include <$ac_header>
5237 _ACEOF
5238 rm -f "conftest.$ac_objext"
5239 if { (eval echo "$as_me:5239: \"$ac_compile\"") >&5
5240 (eval $ac_compile) 2>&5
5241 ac_status=$?
5242 echo "$as_me:5242: \$? = $ac_status" >&5
5243 (exit "$ac_status"); } &&
5244 { ac_try='test -s "conftest.$ac_objext"'
5245 { (eval echo "$as_me:5245: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:5248: \$? = $ac_status" >&5
5249 (exit "$ac_status"); }; }; then
5250 eval "$as_ac_Header=yes"
5251 else
5252 echo "$as_me: failed program was:" >&5
5253 cat "conftest.$ac_ext" >&5
5254 eval "$as_ac_Header=no"
5255 fi
5256 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5257 fi
5258 echo "$as_me:5258: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5259 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5260 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5261 cat >>confdefs.h <<EOF
5262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5263 EOF
5264
5265 fi
5266 done
5267
5268 echo "$as_me:5268: checking whether exit is declared" >&5
5269 echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
5270 if test "${ac_cv_have_decl_exit+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 cat >"conftest.$ac_ext" <<_ACEOF
5274 #line 5274 "configure"
5275 #include "confdefs.h"
5276 $ac_includes_default
5277 int
5278 main (void)
5279 {
5280 #ifndef exit
5281 (void) exit;
5282 #endif
5283
5284 ;
5285 return 0;
5286 }
5287 _ACEOF
5288 rm -f "conftest.$ac_objext"
5289 if { (eval echo "$as_me:5289: \"$ac_compile\"") >&5
5290 (eval $ac_compile) 2>&5
5291 ac_status=$?
5292 echo "$as_me:5292: \$? = $ac_status" >&5
5293 (exit "$ac_status"); } &&
5294 { ac_try='test -s "conftest.$ac_objext"'
5295 { (eval echo "$as_me:5295: \"$ac_try\"") >&5
5296 (eval $ac_try) 2>&5
5297 ac_status=$?
5298 echo "$as_me:5298: \$? = $ac_status" >&5
5299 (exit "$ac_status"); }; }; then
5300 ac_cv_have_decl_exit=yes
5301 else
5302 echo "$as_me: failed program was:" >&5
5303 cat "conftest.$ac_ext" >&5
5304 ac_cv_have_decl_exit=no
5305 fi
5306 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5307 fi
5308 echo "$as_me:5308: result: $ac_cv_have_decl_exit" >&5
5309 echo "${ECHO_T}$ac_cv_have_decl_exit" >&6
5310
5311 for ac_header in fcntl.h
5312 do
5313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5314 echo "$as_me:5314: checking for $ac_header" >&5
5315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 cat >"conftest.$ac_ext" <<_ACEOF
5320 #line 5320 "configure"
5321 #include "confdefs.h"
5322 #include <$ac_header>
5323 _ACEOF
5324 if { (eval echo "$as_me:5324: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5325 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5326 ac_status=$?
5327 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 echo "$as_me:5330: \$? = $ac_status" >&5
5331 (exit "$ac_status"); } >/dev/null; then
5332 if test -s conftest.err; then
5333 ac_cpp_err=$ac_c_preproc_warn_flag
5334 else
5335 ac_cpp_err=
5336 fi
5337 else
5338 ac_cpp_err=yes
5339 fi
5340 if test -z "$ac_cpp_err"; then
5341 eval "$as_ac_Header=yes"
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 cat "conftest.$ac_ext" >&5
5345 eval "$as_ac_Header=no"
5346 fi
5347 rm -f conftest.err "conftest.$ac_ext"
5348 fi
5349 echo "$as_me:5349: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5350 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5351 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5352 cat >>confdefs.h <<EOF
5353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5354 EOF
5355
5356 fi
5357 done
5358
5359 for ac_header in \
5360 unistd.h \
5361
5362 do
5363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364 echo "$as_me:5364: checking for $ac_header" >&5
5365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 cat >"conftest.$ac_ext" <<_ACEOF
5370 #line 5370 "configure"
5371 #include "confdefs.h"
5372 #include <$ac_header>
5373 _ACEOF
5374 if { (eval echo "$as_me:5374: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5375 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5376 ac_status=$?
5377 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:5380: \$? = $ac_status" >&5
5381 (exit "$ac_status"); } >/dev/null; then
5382 if test -s conftest.err; then
5383 ac_cpp_err=$ac_c_preproc_warn_flag
5384 else
5385 ac_cpp_err=
5386 fi
5387 else
5388 ac_cpp_err=yes
5389 fi
5390 if test -z "$ac_cpp_err"; then
5391 eval "$as_ac_Header=yes"
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 cat "conftest.$ac_ext" >&5
5395 eval "$as_ac_Header=no"
5396 fi
5397 rm -f conftest.err "conftest.$ac_ext"
5398 fi
5399 echo "$as_me:5399: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5400 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5401 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5402 cat >>confdefs.h <<EOF
5403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5404 EOF
5405
5406 fi
5407 done
5408
5409 echo "$as_me:5409: checking for working mkstemp" >&5
5410 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
5411 if test "${cf_cv_func_mkstemp+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414
5415 rm -rf ./conftest*
5416 if test "$cross_compiling" = yes; then
5417 cf_cv_func_mkstemp=maybe
5418 else
5419 cat >"conftest.$ac_ext" <<_ACEOF
5420 #line 5420 "configure"
5421 #include "confdefs.h"
5422
5423 $ac_includes_default
5424
5425 int main(void)
5426 {
5427 static char tmpl[] = "conftestXXXXXX";
5428 char name[2][80];
5429 int n;
5430 int result = 0;
5431 int fd;
5432 struct stat sb;
5433
5434 umask(077);
5435 for (n = 0; n < 2; ++n) {
5436 strcpy(name[n], tmpl);
5437 if ((fd = mkstemp(name[n])) >= 0) {
5438 if (!strcmp(name[n], tmpl)
5439 || stat(name[n], &sb) != 0
5440 || (sb.st_mode & S_IFMT) != S_IFREG
5441 || (sb.st_mode & 077) != 0) {
5442 result = 1;
5443 }
5444 close(fd);
5445 }
5446 }
5447 if (result == 0
5448 && !strcmp(name[0], name[1]))
5449 result = 1;
5450 ${cf_cv_main_return:-return}(result);
5451 }
5452
5453 _ACEOF
5454 rm -f "conftest$ac_exeext"
5455 if { (eval echo "$as_me:5455: \"$ac_link\"") >&5
5456 (eval $ac_link) 2>&5
5457 ac_status=$?
5458 echo "$as_me:5458: \$? = $ac_status" >&5
5459 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5460 { (eval echo "$as_me:5460: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:5463: \$? = $ac_status" >&5
5464 (exit "$ac_status"); }; }; then
5465 cf_cv_func_mkstemp=yes
5466
5467 else
5468 echo "$as_me: program exited with status $ac_status" >&5
5469 echo "$as_me: failed program was:" >&5
5470 cat "conftest.$ac_ext" >&5
5471 cf_cv_func_mkstemp=no
5472
5473 fi
5474 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5475 fi
5476
5477 fi
5478 echo "$as_me:5478: result: $cf_cv_func_mkstemp" >&5
5479 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
5480 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
5481 echo "$as_me:5481: checking for mkstemp" >&5
5482 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
5483 if test "${ac_cv_func_mkstemp+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486 cat >"conftest.$ac_ext" <<_ACEOF
5487 #line 5487 "configure"
5488 #include "confdefs.h"
5489 #define mkstemp autoconf_temporary
5490 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
5491 #undef mkstemp
5492
5493 #ifdef __cplusplus
5494 extern "C"
5495 #endif
5496
5497 /* We use char because int might match the return type of a gcc2
5498 builtin and then its argument prototype would still apply. */
5499 char mkstemp (void);
5500
5501 int
5502 main (void)
5503 {
5504
5505 /* The GNU C library defines stubs for functions which it implements
5506 to always fail with ENOSYS. Some functions are actually named
5507 something starting with __ and the normal name is an alias. */
5508 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
5509 #error found stub for mkstemp
5510 #endif
5511
5512 return mkstemp ();
5513 ;
5514 return 0;
5515 }
5516 _ACEOF
5517 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5518 if { (eval echo "$as_me:5518: \"$ac_link\"") >&5
5519 (eval $ac_link) 2>&5
5520 ac_status=$?
5521 echo "$as_me:5521: \$? = $ac_status" >&5
5522 (exit "$ac_status"); } &&
5523 { ac_try='test -s "conftest$ac_exeext"'
5524 { (eval echo "$as_me:5524: \"$ac_try\"") >&5
5525 (eval $ac_try) 2>&5
5526 ac_status=$?
5527 echo "$as_me:5527: \$? = $ac_status" >&5
5528 (exit "$ac_status"); }; }; then
5529 ac_cv_func_mkstemp=yes
5530 else
5531 echo "$as_me: failed program was:" >&5
5532 cat "conftest.$ac_ext" >&5
5533 ac_cv_func_mkstemp=no
5534 fi
5535 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5536 fi
5537 echo "$as_me:5537: result: $ac_cv_func_mkstemp" >&5
5538 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
5539
5540 fi
5541 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
5542
5543 cat >>confdefs.h <<\EOF
5544 #define HAVE_MKSTEMP 1
5545 EOF
5546
5547 fi
5548
5549 for ac_header in getopt.h
5550 do
5551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5552 echo "$as_me:5552: checking for $ac_header" >&5
5553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 cat >"conftest.$ac_ext" <<_ACEOF
5558 #line 5558 "configure"
5559 #include "confdefs.h"
5560 #include <$ac_header>
5561 _ACEOF
5562 if { (eval echo "$as_me:5562: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5563 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5564 ac_status=$?
5565 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:5568: \$? = $ac_status" >&5
5569 (exit "$ac_status"); } >/dev/null; then
5570 if test -s conftest.err; then
5571 ac_cpp_err=$ac_c_preproc_warn_flag
5572 else
5573 ac_cpp_err=
5574 fi
5575 else
5576 ac_cpp_err=yes
5577 fi
5578 if test -z "$ac_cpp_err"; then
5579 eval "$as_ac_Header=yes"
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 cat "conftest.$ac_ext" >&5
5583 eval "$as_ac_Header=no"
5584 fi
5585 rm -f conftest.err "conftest.$ac_ext"
5586 fi
5587 echo "$as_me:5587: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5588 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5589 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5590 cat >>confdefs.h <<EOF
5591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5592 EOF
5593
5594 fi
5595 done
5596
5597 echo "$as_me:5597: checking for header declaring getopt variables" >&5
5598 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
5599 if test "${cf_cv_getopt_header+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602
5603 cf_cv_getopt_header=none
5604 for cf_header in stdio.h stdlib.h unistd.h getopt.h
5605 do
5606 cat >"conftest.$ac_ext" <<_ACEOF
5607 #line 5607 "configure"
5608 #include "confdefs.h"
5609
5610 #include <$cf_header>
5611 int
5612 main (void)
5613 {
5614 int x = optind; char *y = optarg; (void)x; (void)y
5615 ;
5616 return 0;
5617 }
5618 _ACEOF
5619 rm -f "conftest.$ac_objext"
5620 if { (eval echo "$as_me:5620: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>&5
5622 ac_status=$?
5623 echo "$as_me:5623: \$? = $ac_status" >&5
5624 (exit "$ac_status"); } &&
5625 { ac_try='test -s "conftest.$ac_objext"'
5626 { (eval echo "$as_me:5626: \"$ac_try\"") >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:5629: \$? = $ac_status" >&5
5630 (exit "$ac_status"); }; }; then
5631 cf_cv_getopt_header=$cf_header
5632 break
5633 else
5634 echo "$as_me: failed program was:" >&5
5635 cat "conftest.$ac_ext" >&5
5636 fi
5637 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5638 done
5639
5640 fi
5641 echo "$as_me:5641: result: $cf_cv_getopt_header" >&5
5642 echo "${ECHO_T}$cf_cv_getopt_header" >&6
5643 if test "$cf_cv_getopt_header" != none ; then
5644
5645 cat >>confdefs.h <<\EOF
5646 #define HAVE_GETOPT_HEADER 1
5647 EOF
5648
5649 fi
5650 if test "$cf_cv_getopt_header" = getopt.h ; then
5651
5652 cat >>confdefs.h <<\EOF
5653 #define NEED_GETOPT_H 1
5654 EOF
5655
5656 fi
5657
5658 for ac_func in getopt vsnprintf
5659 do
5660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5661 echo "$as_me:5661: checking for $ac_func" >&5
5662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5663 if eval "test \"\${$as_ac_var+set}\" = set"; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666 cat >"conftest.$ac_ext" <<_ACEOF
5667 #line 5667 "configure"
5668 #include "confdefs.h"
5669 #define $ac_func autoconf_temporary
5670 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
5671 #undef $ac_func
5672
5673 #ifdef __cplusplus
5674 extern "C"
5675 #endif
5676
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5679 char $ac_func (void);
5680
5681 int
5682 main (void)
5683 {
5684
5685 /* The GNU C library defines stubs for functions which it implements
5686 to always fail with ENOSYS. Some functions are actually named
5687 something starting with __ and the normal name is an alias. */
5688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5689 #error found stub for $ac_func
5690 #endif
5691
5692 return $ac_func ();
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5698 if { (eval echo "$as_me:5698: \"$ac_link\"") >&5
5699 (eval $ac_link) 2>&5
5700 ac_status=$?
5701 echo "$as_me:5701: \$? = $ac_status" >&5
5702 (exit "$ac_status"); } &&
5703 { ac_try='test -s "conftest$ac_exeext"'
5704 { (eval echo "$as_me:5704: \"$ac_try\"") >&5
5705 (eval $ac_try) 2>&5
5706 ac_status=$?
5707 echo "$as_me:5707: \$? = $ac_status" >&5
5708 (exit "$ac_status"); }; }; then
5709 eval "$as_ac_var=yes"
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 cat "conftest.$ac_ext" >&5
5713 eval "$as_ac_var=no"
5714 fi
5715 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5716 fi
5717 echo "$as_me:5717: result: `eval echo '${'"$as_ac_var"'}'`" >&5
5718 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
5719 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
5720 cat >>confdefs.h <<EOF
5721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5722 EOF
5723
5724 fi
5725 done
5726
5727 echo "$as_me:5727: checking for maximum table size" >&5
5728 echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
5729
5730 # Check whether --with-max-table-size or --without-max-table-size was given.
5731 if test "${with_max_table_size+set}" = set; then
5732 withval="$with_max_table_size"
5733
5734 fi;
5735 if test -n "$with_max_table_size"
5736 then
5737 echo "$as_me:5737: result: $with_max_table_size" >&5
5738 echo "${ECHO_T}$with_max_table_size" >&6
5739 check=`expr "$with_max_table_size" + 0`
5740 if test "x$check" != "x$with_max_table_size"
5741 then
5742 { { echo "$as_me:5742: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
5743 echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
5744 { (exit 1); exit 1; }; }
5745 fi
5746
5747 cat >>confdefs.h <<EOF
5748 #define MAXTABLE $with_max_table_size
5749 EOF
5750
5751 else
5752 echo "$as_me:5752: result: default" >&5
5753 echo "${ECHO_T}default" >&6
5754 fi
5755
5756 echo "$as_me:5756: checking if backtracking extension is wanted" >&5
5757 echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
5758
5759 # Check whether --enable-btyacc or --disable-btyacc was given.
5760 if test "${enable_btyacc+set}" = set; then
5761 enableval="$enable_btyacc"
5762 test "$enableval" != no && enableval=yes
5763 if test "$enableval" != "yes" ; then
5764 enable_btyacc=no
5765 else
5766 enable_btyacc=yes
5767 fi
5768 else
5769 enableval=yes
5770 enable_btyacc=yes
5771
5772 fi;
5773 echo "$as_me:5773: result: $enable_btyacc" >&5
5774 echo "${ECHO_T}$enable_btyacc" >&6
5775 if test "$enable_btyacc" = "no"; then
5776 SKELETON=yaccpar
5777 else
5778
5779 cat >>confdefs.h <<\EOF
5780 #define YYBTYACC 1
5781 EOF
5782
5783 SKELETON=btyaccpar
5784 fi
5785
5786 echo "$as_me:5786: checking for fgrep" >&5
5787 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5788 if test "${ac_cv_path_FGREP+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5792 then ac_cv_path_FGREP="$GREP -F"
5793 else
5794 for ac_prog in gfgrep fgrep
5795 do
5796 # Extract the first word of "$ac_prog", so it can be a program name with args.
5797 set dummy $ac_prog; ac_word=$2
5798 echo "$as_me:5798: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800 if test "${ac_cv_path_FGREP+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 case $FGREP in
5804 [\\/]* | ?:[\\/]*)
5805 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
5806 ;;
5807 *)
5808 ac_save_IFS=$IFS; IFS=$ac_path_separator
5809 ac_dummy="$PATH"
5810 for ac_dir in $ac_dummy; do
5811 IFS=$ac_save_IFS
5812 test -z "$ac_dir" && ac_dir=.
5813 if $as_executable_p "$ac_dir/$ac_word"; then
5814 ac_cv_path_FGREP="$ac_dir/$ac_word"
5815 echo "$as_me:5815: found $ac_dir/$ac_word" >&5
5816 break
5817 fi
5818 done
5819
5820 ;;
5821 esac
5822 fi
5823 FGREP=$ac_cv_path_FGREP
5824
5825 if test -n "$FGREP"; then
5826 echo "$as_me:5826: result: $FGREP" >&5
5827 echo "${ECHO_T}$FGREP" >&6
5828 else
5829 echo "$as_me:5829: result: no" >&5
5830 echo "${ECHO_T}no" >&6
5831 fi
5832
5833 test -n "$FGREP" && break
5834 done
5835 test -n "$FGREP" || FGREP=": "
5836
5837 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:5837: error: cannot find workable fgrep" >&5
5838 echo "$as_me: error: cannot find workable fgrep" >&2;}
5839 { (exit 1); exit 1; }; }
5840 fi
5841 fi
5842 echo "$as_me:5842: result: $ac_cv_path_FGREP" >&5
5843 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
5844 FGREP="$ac_cv_path_FGREP"
5845
5846 echo "$as_me:5846: checking if you want to use C11 _Noreturn feature" >&5
5847 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
5848
5849 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
5850 if test "${enable_stdnoreturn+set}" = set; then
5851 enableval="$enable_stdnoreturn"
5852 test "$enableval" != yes && enableval=no
5853 if test "$enableval" != "no" ; then
5854 enable_stdnoreturn=yes
5855 else
5856 enable_stdnoreturn=no
5857 fi
5858 else
5859 enableval=no
5860 enable_stdnoreturn=no
5861
5862 fi;
5863 echo "$as_me:5863: result: $enable_stdnoreturn" >&5
5864 echo "${ECHO_T}$enable_stdnoreturn" >&6
5865
5866 if test $enable_stdnoreturn = yes; then
5867 echo "$as_me:5867: checking for C11 _Noreturn feature" >&5
5868 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
5869 if test "${cf_cv_c11_noreturn+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872 cat >"conftest.$ac_ext" <<_ACEOF
5873 #line 5873 "configure"
5874 #include "confdefs.h"
5875
5876 $ac_includes_default
5877 #include <stdnoreturn.h>
5878 static _Noreturn void giveup(void) { exit(0); }
5879
5880 int
5881 main (void)
5882 {
5883 if (feof(stdin)) giveup()
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 rm -f "conftest.$ac_objext"
5889 if { (eval echo "$as_me:5889: \"$ac_compile\"") >&5
5890 (eval $ac_compile) 2>&5
5891 ac_status=$?
5892 echo "$as_me:5892: \$? = $ac_status" >&5
5893 (exit "$ac_status"); } &&
5894 { ac_try='test -s "conftest.$ac_objext"'
5895 { (eval echo "$as_me:5895: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:5898: \$? = $ac_status" >&5
5899 (exit "$ac_status"); }; }; then
5900 cf_cv_c11_noreturn=yes
5901 else
5902 echo "$as_me: failed program was:" >&5
5903 cat "conftest.$ac_ext" >&5
5904 cf_cv_c11_noreturn=no
5905 fi
5906 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5907
5908 fi
5909 echo "$as_me:5909: result: $cf_cv_c11_noreturn" >&5
5910 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
5911 else
5912 cf_cv_c11_noreturn=no,
5913 fi
5914
5915 if test "$cf_cv_c11_noreturn" = yes; then
5916
5917 cat >>confdefs.h <<\EOF
5918 #define HAVE_STDNORETURN_H 1
5919 EOF
5920
5921 cat >>confdefs.h <<EOF
5922 #define STDC_NORETURN _Noreturn
5923 EOF
5924
5925 HAVE_STDNORETURN_H=1
5926 else
5927 HAVE_STDNORETURN_H=0
5928 fi
5929
5930 if test "$GCC" = yes || test "$GXX" = yes
5931 then
5932
5933 if test "$GCC" = yes || test "$GXX" = yes
5934 then
5935 case $CFLAGS in
5936 (*-Werror=*)
5937 cf_temp_flags=
5938 for cf_temp_scan in $CFLAGS
5939 do
5940 case "x$cf_temp_scan" in
5941 (x-Werror=format*)
5942
5943 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
5944 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
5945
5946 ;;
5947 (x-Werror=*)
5948
5949 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
5950 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
5951
5952 ;;
5953 (*)
5954
5955 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
5956 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
5957
5958 ;;
5959 esac
5960 done
5961 if test "x$CFLAGS" != "x$cf_temp_flags"
5962 then
5963 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
5964
5965 echo "${as_me:-configure}:5965: testing repairing CFLAGS: $CFLAGS ..." 1>&5
5966
5967 CFLAGS="$cf_temp_flags"
5968 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
5969
5970 echo "${as_me:-configure}:5970: testing ... fixed $CFLAGS ..." 1>&5
5971
5972 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
5973
5974 echo "${as_me:-configure}:5974: testing ... extra $EXTRA_CFLAGS ..." 1>&5
5975
5976 fi
5977 ;;
5978 esac
5979 fi
5980
5981 if test "$GCC" = yes || test "$GXX" = yes
5982 then
5983 case $CPPFLAGS in
5984 (*-Werror=*)
5985 cf_temp_flags=
5986 for cf_temp_scan in $CPPFLAGS
5987 do
5988 case "x$cf_temp_scan" in
5989 (x-Werror=format*)
5990
5991 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
5992 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
5993
5994 ;;
5995 (x-Werror=*)
5996
5997 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
5998 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
5999
6000 ;;
6001 (*)
6002
6003 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
6004 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
6005
6006 ;;
6007 esac
6008 done
6009 if test "x$CPPFLAGS" != "x$cf_temp_flags"
6010 then
6011 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
6012
6013 echo "${as_me:-configure}:6013: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
6014
6015 CPPFLAGS="$cf_temp_flags"
6016 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
6017
6018 echo "${as_me:-configure}:6018: testing ... fixed $CPPFLAGS ..." 1>&5
6019
6020 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
6021
6022 echo "${as_me:-configure}:6022: testing ... extra $EXTRA_CFLAGS ..." 1>&5
6023
6024 fi
6025 ;;
6026 esac
6027 fi
6028
6029 if test "$GCC" = yes || test "$GXX" = yes
6030 then
6031 case $LDFLAGS in
6032 (*-Werror=*)
6033 cf_temp_flags=
6034 for cf_temp_scan in $LDFLAGS
6035 do
6036 case "x$cf_temp_scan" in
6037 (x-Werror=format*)
6038
6039 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
6040 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
6041
6042 ;;
6043 (x-Werror=*)
6044
6045 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
6046 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
6047
6048 ;;
6049 (*)
6050
6051 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
6052 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
6053
6054 ;;
6055 esac
6056 done
6057 if test "x$LDFLAGS" != "x$cf_temp_flags"
6058 then
6059 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
6060
6061 echo "${as_me:-configure}:6061: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
6062
6063 LDFLAGS="$cf_temp_flags"
6064 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
6065
6066 echo "${as_me:-configure}:6066: testing ... fixed $LDFLAGS ..." 1>&5
6067
6068 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
6069
6070 echo "${as_me:-configure}:6070: testing ... extra $EXTRA_CFLAGS ..." 1>&5
6071
6072 fi
6073 ;;
6074 esac
6075 fi
6076
6077 echo "$as_me:6077: checking if you want to turn on gcc warnings" >&5
6078 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
6079
6080 # Check whether --enable-warnings or --disable-warnings was given.
6081 if test "${enable_warnings+set}" = set; then
6082 enableval="$enable_warnings"
6083 test "$enableval" != yes && enableval=no
6084 if test "$enableval" != "no" ; then
6085 enable_warnings=yes
6086 else
6087 enable_warnings=no
6088 fi
6089 else
6090 enableval=no
6091 enable_warnings=no
6092
6093 fi;
6094 echo "$as_me:6094: result: $enable_warnings" >&5
6095 echo "${ECHO_T}$enable_warnings" >&6
6096 if test "$enable_warnings" = "yes"
6097 then
6098
6099 if test "x$have_x" = xyes; then echo "skipping X-const check"; fi
6100 cat > "conftest.$ac_ext" <<EOF
6101 #line 6101 "${as_me:-configure}"
6102 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
6103 EOF
6104 if test "$INTEL_COMPILER" = yes
6105 then
6106 # The "-wdXXX" options suppress warnings:
6107 # remark #1419: external declaration in primary source file
6108 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
6109 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
6110 # remark #193: zero used for undefined preprocessing identifier
6111 # remark #593: variable "curs_sb_left_arrow" was set but never used
6112 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
6113 # remark #869: parameter "tw" was never referenced
6114 # remark #981: operands are evaluated in unspecified order
6115 # warning #279: controlling expression is constant
6116
6117 echo "$as_me:6117: checking for $CC warning options" >&5
6118 echo $ECHO_N "checking for $CC warning options... $ECHO_C" >&6
6119 test -n "$verbose" && echo "$as_me:6119: result: " >&5
6120 echo "${ECHO_T}" >&6
6121 cf_save_CFLAGS="$CFLAGS"
6122 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
6123 for cf_opt in \
6124 wd1419 \
6125 wd1683 \
6126 wd1684 \
6127 wd193 \
6128 wd593 \
6129 wd279 \
6130 wd810 \
6131 wd869 \
6132 wd981
6133 do
6134 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
6135 if { (eval echo "$as_me:6135: \"$ac_compile\"") >&5
6136 (eval $ac_compile) 2>&5
6137 ac_status=$?
6138 echo "$as_me:6138: \$? = $ac_status" >&5
6139 (exit "$ac_status"); }; then
6140 test -n "$verbose" && echo "$as_me:6140: result: ... -$cf_opt" >&5
6141 echo "${ECHO_T}... -$cf_opt" >&6
6142 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
6143 fi
6144 done
6145 CFLAGS="$cf_save_CFLAGS"
6146 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
6147 then
6148 echo "$as_me:6148: checking for $CC warning options" >&5
6149 echo $ECHO_N "checking for $CC warning options... $ECHO_C" >&6
6150 test -n "$verbose" && echo "$as_me:6150: result: " >&5
6151 echo "${ECHO_T}" >&6
6152 cf_save_CFLAGS="$CFLAGS"
6153 cf_warn_CONST=""
6154 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
6155 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
6156 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
6157 for cf_opt in W Wall \
6158 Wbad-function-cast \
6159 Wcast-align \
6160 Wcast-qual \
6161 Wdeclaration-after-statement \
6162 Wextra \
6163 Winline \
6164 Wmissing-declarations \
6165 Wmissing-prototypes \
6166 Wnested-externs \
6167 Wpointer-arith \
6168 Wshadow \
6169 Wstrict-prototypes \
6170 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
6171 do
6172 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
6173 if { (eval echo "$as_me:6173: \"$ac_compile\"") >&5
6174 (eval $ac_compile) 2>&5
6175 ac_status=$?
6176 echo "$as_me:6176: \$? = $ac_status" >&5
6177 (exit "$ac_status"); }; then
6178 test -n "$verbose" && echo "$as_me:6178: result: ... -$cf_opt" >&5
6179 echo "${ECHO_T}... -$cf_opt" >&6
6180 case "$cf_opt" in
6181 (Winline)
6182 case "$GCC_VERSION" in
6183 ([34].*)
6184 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
6185
6186 echo "${as_me:-configure}:6186: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
6187
6188 continue;;
6189 esac
6190 ;;
6191 (Wpointer-arith)
6192 case "$GCC_VERSION" in
6193 ([12].*)
6194 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
6195
6196 echo "${as_me:-configure}:6196: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
6197
6198 continue;;
6199 esac
6200 ;;
6201 esac
6202 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
6203 fi
6204 done
6205 CFLAGS="$cf_save_CFLAGS"
6206 fi
6207 rm -rf ./conftest*
6208
6209 fi
6210
6211 if test "$GCC" = yes || test "$GXX" = yes
6212 then
6213 cat > conftest.i <<EOF
6214 #ifndef GCC_PRINTF
6215 #define GCC_PRINTF 0
6216 #endif
6217 #ifndef GCC_SCANF
6218 #define GCC_SCANF 0
6219 #endif
6220 #ifndef GCC_NORETURN
6221 #define GCC_NORETURN /* nothing */
6222 #endif
6223 #ifndef GCC_UNUSED
6224 #define GCC_UNUSED /* nothing */
6225 #endif
6226 EOF
6227 if test "$GCC" = yes
6228 then
6229 echo "$as_me:6229: checking for $CC __attribute__ directives" >&5
6230 echo $ECHO_N "checking for $CC __attribute__ directives... $ECHO_C" >&6
6231 test -n "$verbose" && echo "$as_me:6231: result: " >&5
6232 echo "${ECHO_T}" >&6
6233 cat > "conftest.$ac_ext" <<EOF
6234 #line 6234 "${as_me:-configure}"
6235 #include <stdio.h>
6236 #include "confdefs.h"
6237 #include "conftest.h"
6238 #include "conftest.i"
6239 #if GCC_PRINTF
6240 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
6241 #else
6242 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
6243 #endif
6244 #if GCC_SCANF
6245 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
6246 #else
6247 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
6248 #endif
6249 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
6250 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
6251 extern GCC_NORETURN void foo(void);
6252 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
6253 EOF
6254 cf_printf_attribute=no
6255 cf_scanf_attribute=no
6256 for cf_attribute in scanf printf unused noreturn
6257 do
6258
6259 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6260
6261 cf_directive="__attribute__(($cf_attribute))"
6262 echo "checking for $CC $cf_directive" 1>&5
6263
6264 case "$cf_attribute" in
6265 (printf)
6266 cf_printf_attribute=yes
6267 cat >conftest.h <<EOF
6268 #define GCC_$cf_ATTRIBUTE 1
6269 EOF
6270 ;;
6271 (scanf)
6272 cf_scanf_attribute=yes
6273 cat >conftest.h <<EOF
6274 #define GCC_$cf_ATTRIBUTE 1
6275 EOF
6276 ;;
6277 (*)
6278 cat >conftest.h <<EOF
6279 #define GCC_$cf_ATTRIBUTE $cf_directive
6280 EOF
6281 ;;
6282 esac
6283
6284 if { (eval echo "$as_me:6284: \"$ac_compile\"") >&5
6285 (eval $ac_compile) 2>&5
6286 ac_status=$?
6287 echo "$as_me:6287: \$? = $ac_status" >&5
6288 (exit "$ac_status"); }; then
6289 test -n "$verbose" && echo "$as_me:6289: result: ... $cf_attribute" >&5
6290 echo "${ECHO_T}... $cf_attribute" >&6
6291 cat conftest.h >>confdefs.h
6292 case "$cf_attribute" in
6293 (noreturn)
6294
6295 cat >>confdefs.h <<EOF
6296 #define GCC_NORETURN $cf_directive
6297 EOF
6298
6299 ;;
6300 (printf)
6301 cf_value='/* nothing */'
6302 if test "$cf_printf_attribute" != no ; then
6303 cf_value='__attribute__((format(printf,fmt,var)))'
6304
6305 cat >>confdefs.h <<\EOF
6306 #define GCC_PRINTF 1
6307 EOF
6308
6309 fi
6310
6311 cat >>confdefs.h <<EOF
6312 #define GCC_PRINTFLIKE(fmt,var) $cf_value
6313 EOF
6314
6315 ;;
6316 (scanf)
6317 cf_value='/* nothing */'
6318 if test "$cf_scanf_attribute" != no ; then
6319 cf_value='__attribute__((format(scanf,fmt,var)))'
6320
6321 cat >>confdefs.h <<\EOF
6322 #define GCC_SCANF 1
6323 EOF
6324
6325 fi
6326
6327 cat >>confdefs.h <<EOF
6328 #define GCC_SCANFLIKE(fmt,var) $cf_value
6329 EOF
6330
6331 ;;
6332 (unused)
6333
6334 cat >>confdefs.h <<EOF
6335 #define GCC_UNUSED $cf_directive
6336 EOF
6337
6338 ;;
6339 esac
6340 fi
6341 done
6342 else
6343 ${FGREP-fgrep} define conftest.i >>confdefs.h
6344 fi
6345 rm -rf ./conftest*
6346 fi
6347
6348 fi
6349
6350 echo "$as_me:6350: checking if you want to see long compiling messages" >&5
6351 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
6352
6353 # Check whether --enable-echo or --disable-echo was given.
6354 if test "${enable_echo+set}" = set; then
6355 enableval="$enable_echo"
6356 test "$enableval" != no && enableval=yes
6357 if test "$enableval" != "yes" ; then
6358
6359 ECHO_LT='--silent'
6360 ECHO_LD='@echo linking $@;'
6361 RULE_CC='@echo compiling $<'
6362 SHOW_CC='@echo compiling $@'
6363 ECHO_CC='@'
6364
6365 else
6366
6367 ECHO_LT=''
6368 ECHO_LD=''
6369 RULE_CC=''
6370 SHOW_CC=''
6371 ECHO_CC=''
6372
6373 fi
6374 else
6375 enableval=yes
6376
6377 ECHO_LT=''
6378 ECHO_LD=''
6379 RULE_CC=''
6380 SHOW_CC=''
6381 ECHO_CC=''
6382
6383 fi;
6384 echo "$as_me:6384: result: $enableval" >&5
6385 echo "${ECHO_T}$enableval" >&6
6386
6387 echo "$as_me:6387: checking if you want to use dmalloc for testing" >&5
6388 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
6389
6390 # Check whether --with-dmalloc or --without-dmalloc was given.
6391 if test "${with_dmalloc+set}" = set; then
6392 withval="$with_dmalloc"
6393 case "x$withval" in
6394 (x|xno) ;;
6395 (*)
6396 : "${with_cflags:=-g}"
6397 : "${enable_leaks:=no}"
6398 with_dmalloc=yes
6399
6400 cat >>confdefs.h <<EOF
6401 #define USE_DMALLOC 1
6402 EOF
6403
6404 ;;
6405 esac
6406 else
6407 with_dmalloc=
6408 fi;
6409 echo "$as_me:6409: result: ${with_dmalloc:-no}" >&5
6410 echo "${ECHO_T}${with_dmalloc:-no}" >&6
6411
6412 case ".$with_cflags" in
6413 (.*-g*)
6414 case .$CFLAGS in
6415 (.*-g*)
6416 ;;
6417 (*)
6418
6419 cf_fix_cppflags=no
6420 cf_new_cflags=
6421 cf_new_cppflags=
6422 cf_new_extra_cppflags=
6423
6424 for cf_add_cflags in -g
6425 do
6426 case "$cf_fix_cppflags" in
6427 (no)
6428 case "$cf_add_cflags" in
6429 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
6430 case "$cf_add_cflags" in
6431 (-D*)
6432 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6433
6434 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6435 && test -z "${cf_tst_cflags}" \
6436 && cf_fix_cppflags=yes
6437
6438 if test "$cf_fix_cppflags" = yes ; then
6439
6440 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6441 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6442
6443 continue
6444 elif test "${cf_tst_cflags}" = "\"'" ; then
6445
6446 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6447 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6448
6449 continue
6450 fi
6451 ;;
6452 esac
6453 case "$CPPFLAGS" in
6454 (*$cf_add_cflags)
6455 ;;
6456 (*)
6457 case "$cf_add_cflags" in
6458 (-D*)
6459 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6460
6461 CPPFLAGS=`echo "$CPPFLAGS" | \
6462 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6463 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6464
6465 ;;
6466 esac
6467
6468 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
6469 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
6470
6471 ;;
6472 esac
6473 ;;
6474 (*)
6475
6476 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
6477 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
6478
6479 ;;
6480 esac
6481 ;;
6482 (yes)
6483
6484 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6485 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6486
6487 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
6488
6489 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6490 && test -z "${cf_tst_cflags}" \
6491 && cf_fix_cppflags=no
6492 ;;
6493 esac
6494 done
6495
6496 if test -n "$cf_new_cflags" ; then
6497
6498 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
6499 CFLAGS="${CFLAGS}$cf_new_cflags"
6500
6501 fi
6502
6503 if test -n "$cf_new_cppflags" ; then
6504
6505 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6506 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
6507
6508 fi
6509
6510 if test -n "$cf_new_extra_cppflags" ; then
6511
6512 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
6513 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
6514
6515 fi
6516
6517 ;;
6518 esac
6519 ;;
6520 esac
6521
6522 if test "$with_dmalloc" = yes ; then
6523 echo "$as_me:6523: checking for dmalloc.h" >&5
6524 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
6525 if test "${ac_cv_header_dmalloc_h+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528 cat >"conftest.$ac_ext" <<_ACEOF
6529 #line 6529 "configure"
6530 #include "confdefs.h"
6531 #include <dmalloc.h>
6532 _ACEOF
6533 if { (eval echo "$as_me:6533: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6534 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6535 ac_status=$?
6536 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:6539: \$? = $ac_status" >&5
6540 (exit "$ac_status"); } >/dev/null; then
6541 if test -s conftest.err; then
6542 ac_cpp_err=$ac_c_preproc_warn_flag
6543 else
6544 ac_cpp_err=
6545 fi
6546 else
6547 ac_cpp_err=yes
6548 fi
6549 if test -z "$ac_cpp_err"; then
6550 ac_cv_header_dmalloc_h=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 cat "conftest.$ac_ext" >&5
6554 ac_cv_header_dmalloc_h=no
6555 fi
6556 rm -f conftest.err "conftest.$ac_ext"
6557 fi
6558 echo "$as_me:6558: result: $ac_cv_header_dmalloc_h" >&5
6559 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
6560 if test "$ac_cv_header_dmalloc_h" = yes; then
6561
6562 echo "$as_me:6562: checking for dmalloc_debug in -ldmalloc" >&5
6563 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
6564 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 ac_check_lib_save_LIBS=$LIBS
6568 LIBS="-ldmalloc $LIBS"
6569 cat >"conftest.$ac_ext" <<_ACEOF
6570 #line 6570 "configure"
6571 #include "confdefs.h"
6572
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 #ifdef __cplusplus
6575 extern "C"
6576 #endif
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579 char dmalloc_debug (void);
6580 int
6581 main (void)
6582 {
6583 dmalloc_debug ();
6584 ;
6585 return 0;
6586 }
6587 _ACEOF
6588 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6589 if { (eval echo "$as_me:6589: \"$ac_link\"") >&5
6590 (eval $ac_link) 2>&5
6591 ac_status=$?
6592 echo "$as_me:6592: \$? = $ac_status" >&5
6593 (exit "$ac_status"); } &&
6594 { ac_try='test -s "conftest$ac_exeext"'
6595 { (eval echo "$as_me:6595: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:6598: \$? = $ac_status" >&5
6599 (exit "$ac_status"); }; }; then
6600 ac_cv_lib_dmalloc_dmalloc_debug=yes
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 cat "conftest.$ac_ext" >&5
6604 ac_cv_lib_dmalloc_dmalloc_debug=no
6605 fi
6606 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6607 LIBS=$ac_check_lib_save_LIBS
6608 fi
6609 echo "$as_me:6609: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
6610 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
6611 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
6612 cat >>confdefs.h <<EOF
6613 #define HAVE_LIBDMALLOC 1
6614 EOF
6615
6616 LIBS="-ldmalloc $LIBS"
6617
6618 fi
6619
6620 fi
6621
6622 fi
6623
6624 echo "$as_me:6624: checking if you want to use dbmalloc for testing" >&5
6625 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
6626
6627 # Check whether --with-dbmalloc or --without-dbmalloc was given.
6628 if test "${with_dbmalloc+set}" = set; then
6629 withval="$with_dbmalloc"
6630 case "x$withval" in
6631 (x|xno) ;;
6632 (*)
6633 : "${with_cflags:=-g}"
6634 : "${enable_leaks:=no}"
6635 with_dbmalloc=yes
6636
6637 cat >>confdefs.h <<EOF
6638 #define USE_DBMALLOC 1
6639 EOF
6640
6641 ;;
6642 esac
6643 else
6644 with_dbmalloc=
6645 fi;
6646 echo "$as_me:6646: result: ${with_dbmalloc:-no}" >&5
6647 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
6648
6649 case ".$with_cflags" in
6650 (.*-g*)
6651 case .$CFLAGS in
6652 (.*-g*)
6653 ;;
6654 (*)
6655
6656 cf_fix_cppflags=no
6657 cf_new_cflags=
6658 cf_new_cppflags=
6659 cf_new_extra_cppflags=
6660
6661 for cf_add_cflags in -g
6662 do
6663 case "$cf_fix_cppflags" in
6664 (no)
6665 case "$cf_add_cflags" in
6666 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
6667 case "$cf_add_cflags" in
6668 (-D*)
6669 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6670
6671 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6672 && test -z "${cf_tst_cflags}" \
6673 && cf_fix_cppflags=yes
6674
6675 if test "$cf_fix_cppflags" = yes ; then
6676
6677 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6678 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6679
6680 continue
6681 elif test "${cf_tst_cflags}" = "\"'" ; then
6682
6683 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6684 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6685
6686 continue
6687 fi
6688 ;;
6689 esac
6690 case "$CPPFLAGS" in
6691 (*$cf_add_cflags)
6692 ;;
6693 (*)
6694 case "$cf_add_cflags" in
6695 (-D*)
6696 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6697
6698 CPPFLAGS=`echo "$CPPFLAGS" | \
6699 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6700 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6701
6702 ;;
6703 esac
6704
6705 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
6706 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
6707
6708 ;;
6709 esac
6710 ;;
6711 (*)
6712
6713 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
6714 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
6715
6716 ;;
6717 esac
6718 ;;
6719 (yes)
6720
6721 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6722 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6723
6724 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
6725
6726 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6727 && test -z "${cf_tst_cflags}" \
6728 && cf_fix_cppflags=no
6729 ;;
6730 esac
6731 done
6732
6733 if test -n "$cf_new_cflags" ; then
6734
6735 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
6736 CFLAGS="${CFLAGS}$cf_new_cflags"
6737
6738 fi
6739
6740 if test -n "$cf_new_cppflags" ; then
6741
6742 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6743 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
6744
6745 fi
6746
6747 if test -n "$cf_new_extra_cppflags" ; then
6748
6749 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
6750 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
6751
6752 fi
6753
6754 ;;
6755 esac
6756 ;;
6757 esac
6758
6759 if test "$with_dbmalloc" = yes ; then
6760 echo "$as_me:6760: checking for dbmalloc.h" >&5
6761 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
6762 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 cat >"conftest.$ac_ext" <<_ACEOF
6766 #line 6766 "configure"
6767 #include "confdefs.h"
6768 #include <dbmalloc.h>
6769 _ACEOF
6770 if { (eval echo "$as_me:6770: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6771 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6772 ac_status=$?
6773 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6774 rm -f conftest.er1
6775 cat conftest.err >&5
6776 echo "$as_me:6776: \$? = $ac_status" >&5
6777 (exit "$ac_status"); } >/dev/null; then
6778 if test -s conftest.err; then
6779 ac_cpp_err=$ac_c_preproc_warn_flag
6780 else
6781 ac_cpp_err=
6782 fi
6783 else
6784 ac_cpp_err=yes
6785 fi
6786 if test -z "$ac_cpp_err"; then
6787 ac_cv_header_dbmalloc_h=yes
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 cat "conftest.$ac_ext" >&5
6791 ac_cv_header_dbmalloc_h=no
6792 fi
6793 rm -f conftest.err "conftest.$ac_ext"
6794 fi
6795 echo "$as_me:6795: result: $ac_cv_header_dbmalloc_h" >&5
6796 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
6797 if test "$ac_cv_header_dbmalloc_h" = yes; then
6798
6799 echo "$as_me:6799: checking for debug_malloc in -ldbmalloc" >&5
6800 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
6801 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 ac_check_lib_save_LIBS=$LIBS
6805 LIBS="-ldbmalloc $LIBS"
6806 cat >"conftest.$ac_ext" <<_ACEOF
6807 #line 6807 "configure"
6808 #include "confdefs.h"
6809
6810 /* Override any gcc2 internal prototype to avoid an error. */
6811 #ifdef __cplusplus
6812 extern "C"
6813 #endif
6814 /* We use char because int might match the return type of a gcc2
6815 builtin and then its argument prototype would still apply. */
6816 char debug_malloc (void);
6817 int
6818 main (void)
6819 {
6820 debug_malloc ();
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6826 if { (eval echo "$as_me:6826: \"$ac_link\"") >&5
6827 (eval $ac_link) 2>&5
6828 ac_status=$?
6829 echo "$as_me:6829: \$? = $ac_status" >&5
6830 (exit "$ac_status"); } &&
6831 { ac_try='test -s "conftest$ac_exeext"'
6832 { (eval echo "$as_me:6832: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:6835: \$? = $ac_status" >&5
6836 (exit "$ac_status"); }; }; then
6837 ac_cv_lib_dbmalloc_debug_malloc=yes
6838 else
6839 echo "$as_me: failed program was:" >&5
6840 cat "conftest.$ac_ext" >&5
6841 ac_cv_lib_dbmalloc_debug_malloc=no
6842 fi
6843 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6844 LIBS=$ac_check_lib_save_LIBS
6845 fi
6846 echo "$as_me:6846: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
6847 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
6848 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
6849 cat >>confdefs.h <<EOF
6850 #define HAVE_LIBDBMALLOC 1
6851 EOF
6852
6853 LIBS="-ldbmalloc $LIBS"
6854
6855 fi
6856
6857 fi
6858
6859 fi
6860
6861 echo "$as_me:6861: checking if you want to use valgrind for testing" >&5
6862 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
6863
6864 # Check whether --with-valgrind or --without-valgrind was given.
6865 if test "${with_valgrind+set}" = set; then
6866 withval="$with_valgrind"
6867 case "x$withval" in
6868 (x|xno) ;;
6869 (*)
6870 : "${with_cflags:=-g}"
6871 : "${enable_leaks:=no}"
6872 with_valgrind=yes
6873
6874 cat >>confdefs.h <<EOF
6875 #define USE_VALGRIND 1
6876 EOF
6877
6878 ;;
6879 esac
6880 else
6881 with_valgrind=
6882 fi;
6883 echo "$as_me:6883: result: ${with_valgrind:-no}" >&5
6884 echo "${ECHO_T}${with_valgrind:-no}" >&6
6885
6886 case ".$with_cflags" in
6887 (.*-g*)
6888 case .$CFLAGS in
6889 (.*-g*)
6890 ;;
6891 (*)
6892
6893 cf_fix_cppflags=no
6894 cf_new_cflags=
6895 cf_new_cppflags=
6896 cf_new_extra_cppflags=
6897
6898 for cf_add_cflags in -g
6899 do
6900 case "$cf_fix_cppflags" in
6901 (no)
6902 case "$cf_add_cflags" in
6903 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
6904 case "$cf_add_cflags" in
6905 (-D*)
6906 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6907
6908 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6909 && test -z "${cf_tst_cflags}" \
6910 && cf_fix_cppflags=yes
6911
6912 if test "$cf_fix_cppflags" = yes ; then
6913
6914 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6915 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6916
6917 continue
6918 elif test "${cf_tst_cflags}" = "\"'" ; then
6919
6920 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6921 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6922
6923 continue
6924 fi
6925 ;;
6926 esac
6927 case "$CPPFLAGS" in
6928 (*$cf_add_cflags)
6929 ;;
6930 (*)
6931 case "$cf_add_cflags" in
6932 (-D*)
6933 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6934
6935 CPPFLAGS=`echo "$CPPFLAGS" | \
6936 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6937 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6938
6939 ;;
6940 esac
6941
6942 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
6943 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
6944
6945 ;;
6946 esac
6947 ;;
6948 (*)
6949
6950 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
6951 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
6952
6953 ;;
6954 esac
6955 ;;
6956 (yes)
6957
6958 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6959 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6960
6961 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
6962
6963 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6964 && test -z "${cf_tst_cflags}" \
6965 && cf_fix_cppflags=no
6966 ;;
6967 esac
6968 done
6969
6970 if test -n "$cf_new_cflags" ; then
6971
6972 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
6973 CFLAGS="${CFLAGS}$cf_new_cflags"
6974
6975 fi
6976
6977 if test -n "$cf_new_cppflags" ; then
6978
6979 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6980 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
6981
6982 fi
6983
6984 if test -n "$cf_new_extra_cppflags" ; then
6985
6986 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
6987 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
6988
6989 fi
6990
6991 ;;
6992 esac
6993 ;;
6994 esac
6995
6996 echo "$as_me:6996: checking if you want to perform memory-leak testing" >&5
6997 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
6998
6999 # Check whether --enable-leaks or --disable-leaks was given.
7000 if test "${enable_leaks+set}" = set; then
7001 enableval="$enable_leaks"
7002 enable_leaks=$enableval
7003 else
7004 enable_leaks=yes
7005 fi;
7006 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
7007 echo "$as_me:7007: result: $with_no_leaks" >&5
7008 echo "${ECHO_T}$with_no_leaks" >&6
7009
7010 if test "$enable_leaks" = no ; then
7011
7012 cat >>confdefs.h <<\EOF
7013 #define NO_LEAKS 1
7014 EOF
7015
7016 cat >>confdefs.h <<\EOF
7017 #define YY_NO_LEAKS 1
7018 EOF
7019
7020 fi
7021
7022 echo "$as_me:7022: checking for PATH separator" >&5
7023 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
7024 case "$cf_cv_system_name" in
7025 (os2*) PATH_SEPARATOR=';' ;;
7026 (*) ${PATH_SEPARATOR:=':'} ;;
7027 esac
7028
7029 echo "$as_me:7029: result: $PATH_SEPARATOR" >&5
7030 echo "${ECHO_T}$PATH_SEPARATOR" >&6
7031
7032 echo "$as_me:7032: checking format of man pages" >&5
7033 echo $ECHO_N "checking format of man pages... $ECHO_C" >&6
7034
7035 # Check whether --with-manpage-format or --without-manpage-format was given.
7036 if test "${with_manpage_format+set}" = set; then
7037 withval="$with_manpage_format"
7038 MANPAGE_FORMAT=$withval
7039 else
7040 MANPAGE_FORMAT=unknown
7041 fi;
7042
7043 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
7044 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
7045
7046 cf_unknown=
7047
7048 case "$MANPAGE_FORMAT" in
7049 (unknown)
7050 if test -z "$MANPATH" ; then
7051 MANPATH="/usr/man:/usr/share/man"
7052 fi
7053
7054 # look for the 'date' man page (it is most likely to be installed!)
7055 MANPAGE_FORMAT=
7056 cf_preform="no"
7057 cf_catonly="yes"
7058 cf_example="date"
7059
7060 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
7061 for cf_dir in $MANPATH; do
7062 test -z "$cf_dir" && cf_dir=/usr/man
7063 for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example
7064 do
7065 cf_test=`echo "$cf_name" | sed -e 's/*//'`
7066 if test "x$cf_test" = "x$cf_name" ; then
7067
7068 case "$cf_name" in
7069 (*.bz2) MANPAGE_FORMAT="$MANPAGE_FORMAT bzip2";;
7070 (*.xz) MANPAGE_FORMAT="$MANPAGE_FORMAT xz";;
7071 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
7072 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
7073 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
7074 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
7075 esac
7076
7077 case "$cf_name" in
7078 ($cf_dir/man*)
7079 cf_catonly=no
7080 ;;
7081 ($cf_dir/cat*)
7082 cf_preform=yes
7083 ;;
7084 esac
7085 break
7086 fi
7087
7088 # if we found a match in either man* or cat*, stop looking
7089 if test -n "$MANPAGE_FORMAT" ; then
7090 cf_found=no
7091 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
7092 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
7093 case "$cf_name" in
7094 ($cf_dir/cat*)
7095 cf_found=yes
7096 ;;
7097 esac
7098 test "$cf_found" = yes && break
7099 fi
7100 done
7101 # only check the first directory in $MANPATH where we find man pages
7102 if test -n "$MANPAGE_FORMAT" ; then
7103 break
7104 fi
7105 done
7106 # if we did not find the example, just assume it is normal
7107 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
7108 IFS="$ac_save_ifs"
7109 ;;
7110 (*)
7111 for cf_option in $MANPAGE_FORMAT; do
7112 case "$cf_option" in
7113 (xz|bzip2|gzip|compress|BSDI|normal|formatted|catonly)
7114 ;;
7115 (*)
7116 cf_unknown="$cf_unknown $cf_option"
7117 ;;
7118 esac
7119 done
7120 ;;
7121 esac
7122
7123 echo "$as_me:7123: result: $MANPAGE_FORMAT" >&5
7124 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
7125 if test -n "$cf_unknown" ; then
7126 { echo "$as_me:7126: WARNING: Unexpected man page format $cf_unknown" >&5
7127 echo "$as_me: WARNING: Unexpected man page format $cf_unknown" >&2;}
7128 fi
7129
7130 cf_manpage_format=no
7131 cf_manpage_inboth=no
7132 cf_manpage_so_strip=
7133 cf_manpage_compress=
7134 cf_manpage_coptions=
7135
7136 for cf_item in $MANPAGE_FORMAT
7137 do
7138 case "$cf_item" in
7139 (catonly)
7140 cf_manpage_format=yes
7141 cf_manpage_inboth=no
7142 ;;
7143 (formatted)
7144 cf_manpage_format=yes
7145 cf_manpage_inboth=yes
7146 ;;
7147 (compress)
7148 cf_manpage_so_strip="Z"
7149 cf_manpage_compress=compress
7150 ;;
7151 (gzip)
7152 cf_manpage_so_strip="gz"
7153 cf_manpage_compress=gzip
7154 cf_manpage_coptions=-n
7155 ;;
7156 (bzip2)
7157 cf_manpage_so_strip="bz2"
7158 cf_manpage_compress=bzip2
7159 ;;
7160 (xz)
7161 cf_manpage_so_strip="xz"
7162 cf_manpage_compress=xz
7163 ;;
7164 esac
7165 done
7166
7167 echo "$as_me:7167: checking whether ln -s works" >&5
7168 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7169 LN_S=$as_ln_s
7170 if test "$LN_S" = "ln -s"; then
7171 echo "$as_me:7171: result: yes" >&5
7172 echo "${ECHO_T}yes" >&6
7173 else
7174 echo "$as_me:7174: result: no, using $LN_S" >&5
7175 echo "${ECHO_T}no, using $LN_S" >&6
7176 fi
7177
7178 cf_install_man=install-man
7179 ac_config_files="$ac_config_files $cf_install_man"
7180 cf_install_man=$cf_install_man.in
7181 echo $as_me: creating $cf_install_man
7182 cat >$cf_install_man <<"CF_EOF"
7183 #!/bin/sh
7184 # generated by CF_INSTALL_MAN
7185
7186 LANG=C; export LANG
7187 LC_ALL=C; export LC_ALL
7188 LC_CTYPE=C; export LC_CTYPE
7189 LANGUAGE=C; export LANGUAGE
7190
7191 INSTALL="@INSTALL@"
7192 INSTALL_DATA="@INSTALL_DATA@"
7193
7194 usage() {
7195 cat <<EOF
7196 Usage: install-man [-l] [source] target
7197 EOF
7198 exit 1
7199 }
7200
7201 failed() {
7202 echo "?? $*" >&2
7203 exit 1
7204 }
7205
7206 test $# != 0 || usage
7207 OPTS=
7208 case "x$1" in
7209 (x-l)
7210 OPTS="link"
7211 shift
7212 ;;
7213 (x-*)
7214 usage
7215 ;;
7216 esac
7217
7218 source=
7219 if test $# = 2 ; then
7220 source=$1; shift
7221 target=$1
7222 elif test $# = 1 ; then
7223 test -n "$OPTS" && usage
7224 target=$1
7225 else
7226 usage
7227 fi
7228
7229 origin_name=`echo "$source" |sed -e 's%^.*/%%' -e 's%\..*%%'`
7230 actual_name=`echo "$origin_name" |sed '@program_transform_name@'`
7231 leading_cap=`echo "$actual_name" | sed -e 's%^\(.\).*$%\1%' | tr a-z A-Z``echo "$actual_name" | sed -e 's%^.%%'`
7232 capitalized=`echo "$actual_name" | tr a-z A-Z`
7233
7234 cf_tmpdir=`mktemp -d`
7235 trap 'rm -rf "$cf_tmpdir"; exit 1' 1 2 3 15
7236 trap 'rm -rf "$cf_tmpdir"; exit 0' 0
7237
7238 if test -n "$source" ; then
7239 suffix=
7240 test -n "@cf_manpage_so_strip" && suffix=".@cf_manpage_so_strip@"
7241 if test "x$OPTS" = xlink ; then
7242 source_dir=`echo "$source" | sed -e "s%/[^/]*$%%"`
7243 target_dir=`echo "$target" | sed -e "s%/[^/]*$%%"`
7244 sourcelink="${source}${suffix}"
7245 targetfile="${target}${suffix}"
7246 targetlink="${target_dir}/${sourcelink}"
7247 if test ! -d "$target_dir" ; then
7248 failed "target directory does not exist: $target_dir"
7249 elif test ! -f "$targetfile" ; then
7250 failed "target file does not exist: $targetfile"
7251 elif test "$source" != "$source_dir" ; then
7252 failed "unexpected directory for source-link: $source_dir"
7253 fi
7254 test -f "$targetlink" && failed "already exists $targetlink"
7255 ( cd "$target_dir" && @LN_S@ "`echo "$targetfile" | sed -e 's%^.*/%%'`" "$sourcelink" )
7256 test -f "$targetlink" || failed "cannot create $targetlink"
7257 target="$targetlink"
7258 else
7259 echo "** installing $source to $target"
7260 interim="$cf_tmpdir"/"`basename $source`"
7261 if test "x$origin_name" != "x$actual_name" ; then
7262 sed \
7263 -e "/^.ds N/s%N.*%N $leading_cap%" \
7264 -e "/^.ds n/s%n.*%n $actual_name%" \
7265 -e "/^\.TH/s%[ ][ ]*[^ ][^ ]*% $capitalized%" \
7266 -e "/^\.SH[ ][ ]*NAME/,/[ ]\\\\-[ ]/s%^\\\\\\*[Nn]%$actual_name%" \
7267 "$source" >"$interim" || exit 1
7268 diff -c "$source" "$interim"
7269 else
7270 cp "$source" "$interim" || exit 1
7271 fi
7272 if test -n "@cf_manpage_compress@" ; then
7273 @cf_manpage_compress@ @cf_manpage_coptions@ "$interim"
7274 source="${interim}${suffix}"
7275 fi
7276 if test -d "$target" ; then
7277 target="$target"/"$source"
7278 else
7279 test -n "@cf_manpage_compress@" && target="${target}.@cf_manpage_so_strip@"
7280 fi
7281 $INSTALL_DATA "$source" "$target" || exit 1
7282 fi
7283 echo "...installed $target"
7284 else
7285 echo "** removing $target"
7286 test -n "@cf_manpage_compress@" && target="${target}.@cf_manpage_so_strip@"
7287 if test -f "$target" ; then
7288 rm -f "$target"
7289 echo "...removed $target"
7290 else
7291 echo "...not found"
7292 fi
7293 fi
7294 exit 0
7295 CF_EOF
7296
7297 # Extract the first word of "groff", so it can be a program name with args.
7298 set dummy groff; ac_word=$2
7299 echo "$as_me:7299: checking for $ac_word" >&5
7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7301 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304 case $GROFF_PATH in
7305 [\\/]* | ?:[\\/]*)
7306 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
7307 ;;
7308 *)
7309 ac_save_IFS=$IFS; IFS=$ac_path_separator
7310 ac_dummy="$PATH"
7311 for ac_dir in $ac_dummy; do
7312 IFS=$ac_save_IFS
7313 test -z "$ac_dir" && ac_dir=.
7314 if $as_executable_p "$ac_dir/$ac_word"; then
7315 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
7316 echo "$as_me:7316: found $ac_dir/$ac_word" >&5
7317 break
7318 fi
7319 done
7320
7321 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
7322 ;;
7323 esac
7324 fi
7325 GROFF_PATH=$ac_cv_path_GROFF_PATH
7326
7327 if test -n "$GROFF_PATH"; then
7328 echo "$as_me:7328: result: $GROFF_PATH" >&5
7329 echo "${ECHO_T}$GROFF_PATH" >&6
7330 else
7331 echo "$as_me:7331: result: no" >&5
7332 echo "${ECHO_T}no" >&6
7333 fi
7334
7335 for ac_prog in nroff mandoc
7336 do
7337 # Extract the first word of "$ac_prog", so it can be a program name with args.
7338 set dummy $ac_prog; ac_word=$2
7339 echo "$as_me:7339: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341 if test "${ac_cv_path_NROFF_PATH+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 case $NROFF_PATH in
7345 [\\/]* | ?:[\\/]*)
7346 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
7347 ;;
7348 *)
7349 ac_save_IFS=$IFS; IFS=$ac_path_separator
7350 ac_dummy="$PATH"
7351 for ac_dir in $ac_dummy; do
7352 IFS=$ac_save_IFS
7353 test -z "$ac_dir" && ac_dir=.
7354 if $as_executable_p "$ac_dir/$ac_word"; then
7355 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
7356 echo "$as_me:7356: found $ac_dir/$ac_word" >&5
7357 break
7358 fi
7359 done
7360
7361 ;;
7362 esac
7363 fi
7364 NROFF_PATH=$ac_cv_path_NROFF_PATH
7365
7366 if test -n "$NROFF_PATH"; then
7367 echo "$as_me:7367: result: $NROFF_PATH" >&5
7368 echo "${ECHO_T}$NROFF_PATH" >&6
7369 else
7370 echo "$as_me:7370: result: no" >&5
7371 echo "${ECHO_T}no" >&6
7372 fi
7373
7374 test -n "$NROFF_PATH" && break
7375 done
7376 test -n "$NROFF_PATH" || NROFF_PATH="no"
7377
7378 # Extract the first word of "tbl", so it can be a program name with args.
7379 set dummy tbl; ac_word=$2
7380 echo "$as_me:7380: checking for $ac_word" >&5
7381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7382 if test "${ac_cv_path_TBL_PATH+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 case $TBL_PATH in
7386 [\\/]* | ?:[\\/]*)
7387 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path.
7388 ;;
7389 *)
7390 ac_save_IFS=$IFS; IFS=$ac_path_separator
7391 ac_dummy="$PATH"
7392 for ac_dir in $ac_dummy; do
7393 IFS=$ac_save_IFS
7394 test -z "$ac_dir" && ac_dir=.
7395 if $as_executable_p "$ac_dir/$ac_word"; then
7396 ac_cv_path_TBL_PATH="$ac_dir/$ac_word"
7397 echo "$as_me:7397: found $ac_dir/$ac_word" >&5
7398 break
7399 fi
7400 done
7401
7402 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat"
7403 ;;
7404 esac
7405 fi
7406 TBL_PATH=$ac_cv_path_TBL_PATH
7407
7408 if test -n "$TBL_PATH"; then
7409 echo "$as_me:7409: result: $TBL_PATH" >&5
7410 echo "${ECHO_T}$TBL_PATH" >&6
7411 else
7412 echo "$as_me:7412: result: no" >&5
7413 echo "${ECHO_T}no" >&6
7414 fi
7415
7416 if test "x$GROFF_PATH" = xno
7417 then
7418 NROFF_NOTE=
7419 GROFF_NOTE="#"
7420 else
7421 NROFF_NOTE="#"
7422 GROFF_NOTE=
7423 fi
7424
7425 case "x${with_man2html}" in
7426 (xno)
7427 cf_man2html=no
7428 ;;
7429 (x|xyes)
7430 # Extract the first word of "man2html", so it can be a program name with args.
7431 set dummy man2html; ac_word=$2
7432 echo "$as_me:7432: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434 if test "${ac_cv_path_cf_man2html+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437 case $cf_man2html in
7438 [\\/]* | ?:[\\/]*)
7439 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
7440 ;;
7441 *)
7442 ac_save_IFS=$IFS; IFS=$ac_path_separator
7443 ac_dummy="$PATH"
7444 for ac_dir in $ac_dummy; do
7445 IFS=$ac_save_IFS
7446 test -z "$ac_dir" && ac_dir=.
7447 if $as_executable_p "$ac_dir/$ac_word"; then
7448 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
7449 echo "$as_me:7449: found $ac_dir/$ac_word" >&5
7450 break
7451 fi
7452 done
7453
7454 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
7455 ;;
7456 esac
7457 fi
7458 cf_man2html=$ac_cv_path_cf_man2html
7459
7460 if test -n "$cf_man2html"; then
7461 echo "$as_me:7461: result: $cf_man2html" >&5
7462 echo "${ECHO_T}$cf_man2html" >&6
7463 else
7464 echo "$as_me:7464: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7466 fi
7467
7468 case "x$cf_man2html" in
7469 (x/*)
7470 echo "$as_me:7470: checking for the modified Earl Hood script" >&5
7471 echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6
7472 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null )
7473 then
7474 cf_man2html_ok=yes
7475 else
7476 cf_man2html=no
7477 cf_man2html_ok=no
7478 fi
7479 echo "$as_me:7479: result: $cf_man2html_ok" >&5
7480 echo "${ECHO_T}$cf_man2html_ok" >&6
7481 ;;
7482 (*)
7483 cf_man2html=no
7484 ;;
7485 esac
7486 esac
7487
7488 echo "$as_me:7488: checking for program to convert manpage to html" >&5
7489 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
7490
7491 # Check whether --with-man2html or --without-man2html was given.
7492 if test "${with_man2html+set}" = set; then
7493 withval="$with_man2html"
7494 cf_man2html=$withval
7495 else
7496 cf_man2html=$cf_man2html
7497 fi;
7498
7499 cf_with_groff=no
7500
7501 case $cf_man2html in
7502 (yes)
7503 echo "$as_me:7503: result: man2html" >&5
7504 echo "${ECHO_T}man2html" >&6
7505 # Extract the first word of "man2html", so it can be a program name with args.
7506 set dummy man2html; ac_word=$2
7507 echo "$as_me:7507: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7509 if test "${ac_cv_path_cf_man2html+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512 case $cf_man2html in
7513 [\\/]* | ?:[\\/]*)
7514 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
7515 ;;
7516 *)
7517 ac_save_IFS=$IFS; IFS=$ac_path_separator
7518 ac_dummy="$PATH"
7519 for ac_dir in $ac_dummy; do
7520 IFS=$ac_save_IFS
7521 test -z "$ac_dir" && ac_dir=.
7522 if $as_executable_p "$ac_dir/$ac_word"; then
7523 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
7524 echo "$as_me:7524: found $ac_dir/$ac_word" >&5
7525 break
7526 fi
7527 done
7528
7529 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
7530 ;;
7531 esac
7532 fi
7533 cf_man2html=$ac_cv_path_cf_man2html
7534
7535 if test -n "$cf_man2html"; then
7536 echo "$as_me:7536: result: $cf_man2html" >&5
7537 echo "${ECHO_T}$cf_man2html" >&6
7538 else
7539 echo "$as_me:7539: result: no" >&5
7540 echo "${ECHO_T}no" >&6
7541 fi
7542
7543 ;;
7544 (no|groff|*/groff*)
7545 cf_with_groff=yes
7546 cf_man2html=$GROFF_PATH
7547 echo "$as_me:7547: result: $cf_man2html" >&5
7548 echo "${ECHO_T}$cf_man2html" >&6
7549 ;;
7550 (*)
7551 echo "$as_me:7551: result: $cf_man2html" >&5
7552 echo "${ECHO_T}$cf_man2html" >&6
7553 ;;
7554 esac
7555
7556 MAN2HTML_TEMP="man2html.tmp"
7557 cat >$MAN2HTML_TEMP <<CF_EOF
7558 #!$SHELL
7559 # Temporary script generated by CF_WITH_MAN2HTML
7560 # Convert inputs to html, sending result to standard output.
7561 #
7562 # Parameters:
7563 # \${1} = rootname of file to convert
7564 # \${2} = suffix of file to convert, e.g., "1"
7565 # \${3} = macros to use, e.g., "man"
7566 #
7567 ROOT=\$1
7568 TYPE=\$2
7569 MACS=\$3
7570
7571 unset LANG
7572 unset LC_ALL
7573 unset LC_CTYPE
7574 unset LANGUAGE
7575 GROFF_NO_SGR=stupid
7576 export GROFF_NO_SGR
7577
7578 CF_EOF
7579
7580 NROFF_OPTS=
7581 if test "x$cf_with_groff" = xyes
7582 then
7583 MAN2HTML_NOTE="$GROFF_NOTE"
7584 MAN2HTML_PATH="$GROFF_PATH"
7585 cat >>$MAN2HTML_TEMP <<CF_EOF
7586 $SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
7587 CF_EOF
7588 else
7589 # disable hyphenation if this is groff
7590 if test "x$GROFF_PATH" != xno
7591 then
7592 echo "$as_me:7592: checking if nroff is really groff" >&5
7593 echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6
7594 cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`"
7595 test -n "$cf_check_groff" && cf_check_groff=yes
7596 test -n "$cf_check_groff" || cf_check_groff=no
7597 echo "$as_me:7597: result: $cf_check_groff" >&5
7598 echo "${ECHO_T}$cf_check_groff" >&6
7599 test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0"
7600 fi
7601 MAN2HTML_NOTE=""
7602
7603 if test "x$prefix" != xNONE; then
7604 cf_path_syntax="$prefix"
7605 else
7606 cf_path_syntax="$ac_default_prefix"
7607 fi
7608
7609 case "x$cf_man2html" in
7610 (x\$\(*\)*|x\'*\'*)
7611 ;;
7612 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
7613 ;;
7614 (x\$\{*prefix\}*|x\$\{*dir\}*)
7615 eval cf_man2html="$cf_man2html"
7616 case "x$cf_man2html" in
7617 (xNONE/*)
7618 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%`
7619 ;;
7620 esac
7621 ;;
7622 (xno|xNONE/*)
7623 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%`
7624 ;;
7625 (*)
7626 { { echo "$as_me:7626: error: expected a pathname, not \"$cf_man2html\"" >&5
7627 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
7628 { (exit 1); exit 1; }; }
7629 ;;
7630 esac
7631
7632 MAN2HTML_PATH="$cf_man2html"
7633 echo "$as_me:7633: checking for $cf_man2html top/bottom margins" >&5
7634 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
7635
7636 # for this example, expect 3 lines of content, the remainder is head/foot
7637 cat >conftest.in <<CF_EOF
7638 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
7639 .SH SECTION
7640 MARKER
7641 CF_EOF
7642
7643 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
7644
7645 cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`"
7646 cf_man2html_top=`expr "$cf_man2html_1st" - 2`
7647 cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`"
7648 cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"`
7649 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
7650
7651 echo "$as_me:7651: result: $cf_man2html_top_bot" >&5
7652 echo "${ECHO_T}$cf_man2html_top_bot" >&6
7653
7654 echo "$as_me:7654: checking for pagesize to use" >&5
7655 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
7656 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
7657 do
7658 cat >>conftest.in <<CF_EOF
7659 .nf
7660 0
7661 1
7662 2
7663 3
7664 4
7665 5
7666 6
7667 7
7668 8
7669 9
7670 CF_EOF
7671 done
7672
7673 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
7674 cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`"
7675 test -z "$cf_man2html_page" && cf_man2html_page=99999
7676 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
7677
7678 rm -rf conftest*
7679 echo "$as_me:7679: result: $cf_man2html_page" >&5
7680 echo "${ECHO_T}$cf_man2html_page" >&6
7681
7682 cat >>$MAN2HTML_TEMP <<CF_EOF
7683 : \${MAN2HTML_PATH=$MAN2HTML_PATH}
7684 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page"
7685 case \${TYPE} in
7686 (ms)
7687 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
7688 ;;
7689 (*)
7690 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
7691 ;;
7692 esac
7693 CF_EOF
7694 fi
7695
7696 chmod 700 $MAN2HTML_TEMP
7697
7698 echo "$as_me:7698: checking for mode_t" >&5
7699 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7700 if test "${ac_cv_type_mode_t+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703 cat >"conftest.$ac_ext" <<_ACEOF
7704 #line 7704 "configure"
7705 #include "confdefs.h"
7706 $ac_includes_default
7707 int
7708 main (void)
7709 {
7710 if ((mode_t *) 0)
7711 return 0;
7712 if (sizeof (mode_t))
7713 return 0;
7714 ;
7715 return 0;
7716 }
7717 _ACEOF
7718 rm -f "conftest.$ac_objext"
7719 if { (eval echo "$as_me:7719: \"$ac_compile\"") >&5
7720 (eval $ac_compile) 2>&5
7721 ac_status=$?
7722 echo "$as_me:7722: \$? = $ac_status" >&5
7723 (exit "$ac_status"); } &&
7724 { ac_try='test -s "conftest.$ac_objext"'
7725 { (eval echo "$as_me:7725: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:7728: \$? = $ac_status" >&5
7729 (exit "$ac_status"); }; }; then
7730 ac_cv_type_mode_t=yes
7731 else
7732 echo "$as_me: failed program was:" >&5
7733 cat "conftest.$ac_ext" >&5
7734 ac_cv_type_mode_t=no
7735 fi
7736 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7737 fi
7738 echo "$as_me:7738: result: $ac_cv_type_mode_t" >&5
7739 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7740 if test "$ac_cv_type_mode_t" = yes; then
7741 :
7742 else
7743
7744 cat >>confdefs.h <<EOF
7745 #define mode_t int
7746 EOF
7747
7748 fi
7749
7750 ### output makefile
7751 ac_config_files="$ac_config_files makefile"
7752 cat >confcache <<\_ACEOF
7753 # This file is a shell script that caches the results of configure
7754 # tests run on this system so they can be shared between configure
7755 # scripts and configure runs, see configure's option --config-cache.
7756 # It is not useful on other systems. If it contains results you don't
7757 # want to keep, you may remove or edit it.
7758 #
7759 # config.status only pays attention to the cache file if you give it
7760 # the --recheck option to rerun configure.
7761 #
7762 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7763 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7764 # following values.
7765
7766 _ACEOF
7767
7768 # The following way of writing the cache mishandles newlines in values,
7769 # but we know of no workaround that is simple, portable, and efficient.
7770 # So, don't put newlines in cache variables' values.
7771 # Ultrix sh set writes to stderr and can't be redirected directly,
7772 # and sets the high bit in the cache file unless we assign to the vars.
7773 {
7774 (set) 2>&1 |
7775 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7776 *ac_space=\ *)
7777 # `set' does not quote correctly, so add quotes (double-quote
7778 # substitution turns \\\\ into \\, and sed turns \\ into \).
7779 sed -n \
7780 "s/'/'\\\\''/g;
7781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7782 ;;
7783 *)
7784 # `set' quotes correctly as required by POSIX, so do not add quotes.
7785 sed -n \
7786 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7787 ;;
7788 esac;
7789 } |
7790 sed '
7791 t clear
7792 : clear
7793 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7794 t end
7795 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7796 : end' >>confcache
7797 if cmp -s $cache_file confcache; then :; else
7798 if test -w $cache_file; then
7799 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7800 cat confcache >$cache_file
7801 else
7802 echo "not updating unwritable cache $cache_file"
7803 fi
7804 fi
7805 rm -f confcache
7806
7807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7808 # Let make expand exec_prefix.
7809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7810
7811 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7812 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7813 # trailing colons and then remove the whole line if VPATH becomes empty
7814 # (actually we leave an empty line to preserve line numbers).
7815 if test "x$srcdir" = x.; then
7816 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7817 s/:*\$(srcdir):*/:/;
7818 s/:*\${srcdir}:*/:/;
7819 s/:*@srcdir@:*/:/;
7820 s/^\([^=]*=[ ]*\):*/\1/;
7821 s/:*$//;
7822 s/^[^=]*=[ ]*$//;
7823 }'
7824 fi
7825
7826 DEFS=-DHAVE_CONFIG_H
7827
7828 : "${CONFIG_STATUS=./config.status}"
7829 ac_clean_files_save=$ac_clean_files
7830 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7831 { echo "$as_me:7831: creating $CONFIG_STATUS" >&5
7832 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7833 cat >"$CONFIG_STATUS" <<_ACEOF
7834 #! $SHELL
7835 # Generated automatically by configure.
7836 # Run this file to recreate the current configuration.
7837 # Compiler output produced by configure, useful for debugging
7838 # configure, is in config.log if it exists.
7839
7840 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
7841
7842 debug=false
7843 SHELL=\${CONFIG_SHELL-$SHELL}
7844 ac_cs_invocation="\$0 \$@"
7845
7846 CLICOLOR_FORCE= GREP_OPTIONS=
7847 unset CLICOLOR_FORCE GREP_OPTIONS
7848 _ACEOF
7849
7850 cat >>"$CONFIG_STATUS" <<\_ACEOF
7851 # Be Bourne compatible
7852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7853 emulate sh
7854 NULLCMD=:
7855 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7856 set -o posix
7857 fi
7858
7859 # Name of the executable.
7860 as_me=`echo "$0" |sed 's,.*[\\/],,'`
7861
7862 if expr a : '\(a\)' >/dev/null 2>&1; then
7863 as_expr="expr"
7864 else
7865 as_expr="false"
7866 fi
7867
7868 rm -f conf$$ conf$$.exe conf$$.file
7869 echo >conf$$.file
7870 if ln -s conf$$.file conf$$ 2>/dev/null; then
7871 # We could just check for DJGPP; but this test a) works b) is more generic
7872 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7873 if test -f conf$$.exe; then
7874 # Don't use ln at all; we don't have any links
7875 as_ln_s='cp -p'
7876 else
7877 as_ln_s='ln -s'
7878 fi
7879 elif ln conf$$.file conf$$ 2>/dev/null; then
7880 as_ln_s='ln'
7881 else
7882 as_ln_s='cp -p'
7883 fi
7884 rm -f conf$$ conf$$.exe conf$$.file
7885
7886 as_executable_p="test -f"
7887
7888 # Support unset when possible.
7889 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7890 as_unset="unset"
7891 else
7892 as_unset="false"
7893 fi
7894
7895 # NLS nuisances.
7896 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7897 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7898 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7899 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7900 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7901 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7902 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7903 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7904
7905 # IFS
7906 # We need space, tab and new line, in precisely that order.
7907 as_nl='
7908 '
7909 IFS=" $as_nl"
7910
7911 # CDPATH.
7912 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7913
7914 exec 6>&1
7915
7916 _ACEOF
7917
7918 # Files that config.status was made for.
7919 if test -n "$ac_config_files"; then
7920 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
7921 fi
7922
7923 if test -n "$ac_config_headers"; then
7924 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
7925 fi
7926
7927 if test -n "$ac_config_links"; then
7928 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
7929 fi
7930
7931 if test -n "$ac_config_commands"; then
7932 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
7933 fi
7934
7935 cat >>"$CONFIG_STATUS" <<\EOF
7936
7937 ac_cs_usage="\
7938 \`$as_me' instantiates files from templates according to the
7939 current configuration.
7940
7941 Usage: $0 [OPTIONS] [FILE]...
7942
7943 -h, --help print this help, then exit
7944 -V, --version print version number, then exit
7945 -d, --debug don't remove temporary files
7946 --recheck update $as_me by reconfiguring in the same conditions
7947 --file=FILE[:TEMPLATE]
7948 instantiate the configuration file FILE
7949 --header=FILE[:TEMPLATE]
7950 instantiate the configuration header FILE
7951
7952 Configuration files:
7953 $config_files
7954
7955 Configuration headers:
7956 $config_headers
7957
7958 Report bugs to <dickey@invisible-island.net>."
7959 EOF
7960
7961 cat >>"$CONFIG_STATUS" <<EOF
7962 ac_cs_version="\\
7963 config.status
7964 configured by $0, generated by GNU Autoconf 2.52.20260118,
7965 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7966
7967 Copyright 2003-2023,2025 Thomas E. Dickey
7968 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7969 Free Software Foundation, Inc.
7970 This config.status script is free software; the Free Software Foundation
7971 gives unlimited permission to copy, distribute and modify it."
7972 srcdir="$srcdir"
7973 INSTALL="$INSTALL"
7974 EOF
7975
7976 cat >>"$CONFIG_STATUS" <<\EOF
7977 # If no file are specified by the user, then we need to provide default
7978 # value. By we need to know if files were specified by the user.
7979 ac_need_defaults=:
7980 while test $# != 0
7981 do
7982 case $1 in
7983 --*=*)
7984 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7985 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7986 shift
7987 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7988 shift
7989 ;;
7990 -*);;
7991 *) # This is not an option, so the user has probably given explicit
7992 # arguments.
7993 ac_need_defaults=false;;
7994 esac
7995
7996 case $1 in
7997 # Handling of the options.
7998 EOF
7999 cat >>"$CONFIG_STATUS" <<EOF
8000 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8001 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8002 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8003 EOF
8004 cat >>"$CONFIG_STATUS" <<\EOF
8005 --version | --vers* | -V )
8006 echo "$ac_cs_version"; exit 0 ;;
8007 --he | --h)
8008 # Conflict between --help and --header
8009 { { echo "$as_me:8009: error: ambiguous option: $1
8010 Try \`$0 --help' for more information." >&5
8011 echo "$as_me: error: ambiguous option: $1
8012 Try \`$0 --help' for more information." >&2;}
8013 { (exit 1); exit 1; }; };;
8014 --help | --hel | -h )
8015 echo "$ac_cs_usage"; exit 0 ;;
8016 --debug | --d* | -d )
8017 debug=: ;;
8018 --file | --fil | --fi | --f )
8019 shift
8020 CONFIG_FILES="$CONFIG_FILES $1"
8021 ac_need_defaults=false;;
8022 --header | --heade | --head | --hea )
8023 shift
8024 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8025 ac_need_defaults=false;;
8026
8027 # This is an error.
8028 -*) { { echo "$as_me:8028: error: unrecognized option: $1
8029 Try \`$0 --help' for more information." >&5
8030 echo "$as_me: error: unrecognized option: $1
8031 Try \`$0 --help' for more information." >&2;}
8032 { (exit 1); exit 1; }; } ;;
8033
8034 *) ac_config_targets="$ac_config_targets $1" ;;
8035
8036 esac
8037 shift
8038 done
8039
8040 exec 5>>config.log
8041 cat >&5 << _ACEOF
8042
8043 ## ----------------------- ##
8044 ## Running config.status. ##
8045 ## ----------------------- ##
8046
8047 This file was extended by $as_me 2.52.20260118, executed with
8048 CONFIG_FILES = $CONFIG_FILES
8049 CONFIG_HEADERS = $CONFIG_HEADERS
8050 CONFIG_LINKS = $CONFIG_LINKS
8051 CONFIG_COMMANDS = $CONFIG_COMMANDS
8052 > "$ac_cs_invocation"
8053 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8054
8055 _ACEOF
8056 EOF
8057
8058 cat >>"$CONFIG_STATUS" <<\EOF
8059 for ac_config_target in $ac_config_targets
8060 do
8061 case "$ac_config_target" in
8062 # Handling of arguments.
8063 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
8064 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
8065 *) { { echo "$as_me:8065: error: invalid argument: $ac_config_target" >&5
8066 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8067 { (exit 1); exit 1; }; };;
8068 esac
8069 done
8070
8071 # If the user did not use the arguments to specify the items to instantiate,
8072 # then the envvar interface is used. Set only those that are not.
8073 # We use the long form for the default assignment because of an extremely
8074 # bizarre bug on SunOS 4.1.3.
8075 if "$ac_need_defaults"; then
8076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8078 fi
8079
8080 # Create a temporary directory, and hook for its removal unless debugging.
8081 $debug ||
8082 {
8083 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8084 trap '{ (exit 1); exit 1; }' 1 2 13 15
8085 }
8086
8087 # Create a (secure) tmp directory for tmp files.
8088 : "${TMPDIR=/tmp}"
8089 {
8090 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8091 test -n "$tmp" && test -d "$tmp"
8092 } ||
8093 {
8094 tmp=$TMPDIR/cs$$-$RANDOM
8095 (umask 077 && mkdir "$tmp")
8096 } ||
8097 {
8098 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8099 { (exit 1); exit 1; }
8100 }
8101
8102 EOF
8103
8104 cat >>"$CONFIG_STATUS" <<EOF
8105
8106 #
8107 # CONFIG_FILES section.
8108 #
8109
8110 # No need to generate the scripts if there are no CONFIG_FILES.
8111 # This happens for instance when ./config.status config.h
8112 if test -n "\$CONFIG_FILES"; then
8113 # Protect against being on the right side of a sed subst in config.status.
8114 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8115 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF
8116 s,@X_CFLAGS@,$X_CFLAGS,;t t
8117 s,@X_LIBS@,$X_LIBS,;t t
8118 s,@SHELL@,$SHELL,;t t
8119 s,@exec_prefix@,$exec_prefix,;t t
8120 s,@prefix@,$prefix,;t t
8121 s,@program_transform_name@,$program_transform_name,;t t
8122 s,@bindir@,$bindir,;t t
8123 s,@sbindir@,$sbindir,;t t
8124 s,@libexecdir@,$libexecdir,;t t
8125 s,@datarootdir@,$datarootdir,;t t
8126 s,@datadir@,$datadir,;t t
8127 s,@sysconfdir@,$sysconfdir,;t t
8128 s,@sharedstatedir@,$sharedstatedir,;t t
8129 s,@localstatedir@,$localstatedir,;t t
8130 s,@runstatedir@,$runstatedir,;t t
8131 s,@libdir@,$libdir,;t t
8132 s,@includedir@,$includedir,;t t
8133 s,@oldincludedir@,$oldincludedir,;t t
8134 s,@infodir@,$infodir,;t t
8135 s,@mandir@,$mandir,;t t
8136 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8137 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8138 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8139 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8140 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8141 s,@build_alias@,$build_alias,;t t
8142 s,@host_alias@,$host_alias,;t t
8143 s,@target_alias@,$target_alias,;t t
8144 s,@ECHO_C@,$ECHO_C,;t t
8145 s,@ECHO_N@,$ECHO_N,;t t
8146 s,@ECHO_T@,$ECHO_T,;t t
8147 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8148 s,@DEFS@,$DEFS,;t t
8149 s,@LIBS@,$LIBS,;t t
8150 s,@build@,$build,;t t
8151 s,@build_cpu@,$build_cpu,;t t
8152 s,@build_vendor@,$build_vendor,;t t
8153 s,@build_os@,$build_os,;t t
8154 s,@host@,$host,;t t
8155 s,@host_cpu@,$host_cpu,;t t
8156 s,@host_vendor@,$host_vendor,;t t
8157 s,@host_os@,$host_os,;t t
8158 s,@target@,$target,;t t
8159 s,@target_cpu@,$target_cpu,;t t
8160 s,@target_vendor@,$target_vendor,;t t
8161 s,@target_os@,$target_os,;t t
8162 s,@CC@,$CC,;t t
8163 s,@CFLAGS@,$CFLAGS,;t t
8164 s,@LDFLAGS@,$LDFLAGS,;t t
8165 s,@CPPFLAGS@,$CPPFLAGS,;t t
8166 s,@ac_ct_CC@,$ac_ct_CC,;t t
8167 s,@EXEEXT@,$EXEEXT,;t t
8168 s,@OBJEXT@,$OBJEXT,;t t
8169 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
8170 s,@SET_MAKE@,$SET_MAKE,;t t
8171 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8172 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8173 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8174 s,@GLOB_FULLPATH_POSIX@,$GLOB_FULLPATH_POSIX,;t t
8175 s,@GLOB_FULLPATH_OTHER@,$GLOB_FULLPATH_OTHER,;t t
8176 s,@CTAGS@,$CTAGS,;t t
8177 s,@ETAGS@,$ETAGS,;t t
8178 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
8179 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
8180 s,@AWK@,$AWK,;t t
8181 s,@LINT@,$LINT,;t t
8182 s,@LINT_OPTS@,$LINT_OPTS,;t t
8183 s,@LINT_LIBS@,$LINT_LIBS,;t t
8184 s,@CPP@,$CPP,;t t
8185 s,@GREP@,$GREP,;t t
8186 s,@EGREP@,$EGREP,;t t
8187 s,@SKELETON@,$SKELETON,;t t
8188 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
8189 s,@FGREP@,$FGREP,;t t
8190 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
8191 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
8192 s,@ECHO_LT@,$ECHO_LT,;t t
8193 s,@ECHO_LD@,$ECHO_LD,;t t
8194 s,@RULE_CC@,$RULE_CC,;t t
8195 s,@SHOW_CC@,$SHOW_CC,;t t
8196 s,@ECHO_CC@,$ECHO_CC,;t t
8197 s,@cf_manpage_format@,$cf_manpage_format,;t t
8198 s,@cf_manpage_inboth@,$cf_manpage_inboth,;t t
8199 s,@cf_manpage_so_strip@,$cf_manpage_so_strip,;t t
8200 s,@cf_manpage_compress@,$cf_manpage_compress,;t t
8201 s,@cf_manpage_coptions@,$cf_manpage_coptions,;t t
8202 s,@LN_S@,$LN_S,;t t
8203 s,@GROFF_PATH@,$GROFF_PATH,;t t
8204 s,@NROFF_PATH@,$NROFF_PATH,;t t
8205 s,@TBL_PATH@,$TBL_PATH,;t t
8206 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
8207 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
8208 s,@cf_man2html@,$cf_man2html,;t t
8209 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
8210 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
8211 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
8212 CEOF
8213
8214 EOF
8215
8216 cat >>"$CONFIG_STATUS" <<\EOF
8217 # Split the substitutions into bite-sized pieces for seds with
8218 # small command number limits, like on Digital OSF/1 and HP-UX.
8219 ac_max_sed_lines=48
8220 ac_sed_frag=1 # Number of current file.
8221 ac_beg=1 # First line for current file.
8222 ac_end=$ac_max_sed_lines # Line after last line for current file.
8223 ac_more_lines=:
8224 ac_sed_cmds=
8225 while "$ac_more_lines"; do
8226 if test "$ac_beg" -gt 1; then
8227 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
8228 else
8229 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
8230 fi
8231 if test ! -s "$tmp"/subs.frag; then
8232 ac_more_lines=false
8233 else
8234 # The purpose of the label and of the branching condition is to
8235 # speed up the sed processing (if there are no `@' at all, there
8236 # is no need to browse any of the substitutions).
8237 # These are the two extra sed commands mentioned above.
8238 (echo ':t
8239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && sed -e 's/\\\\*$//g' -e 's/$/\\/' -e 's/;t t\\/;t t/' -e 't' -e '3,'$ac_max_sed_lines's/$/\\/' "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
8240 # It is possible to make a multiline substitution using escaped newlines.
8241 # Ensure that we do not split the substitution between script fragments.
8242 ac_BEG=$ac_end
8243 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
8244 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
8245 if test -s "$tmp"/subs.next; then
8246 grep '^s,@[^@,][^@,]*@,.*$' "$tmp"/subs.next | grep -v '^s,@.*;t t$' >"$tmp"/subs.edit
8247 if test ! -s "$tmp"/subs.edit; then
8248 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
8249 if test ! -s "$tmp"/subs.edit; then
8250 if test "$ac_beg" -gt 1; then
8251 ac_end=`expr "$ac_end" - 1`
8252 continue
8253 fi
8254 fi
8255 fi
8256 fi
8257
8258 if test -z "$ac_sed_cmds"; then
8259 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
8260 else
8261 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
8262 fi
8263 ac_sed_frag=`expr "$ac_sed_frag" + 1`
8264 ac_beg=$ac_end
8265 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
8266 fi
8267 done
8268 if test -z "$ac_sed_cmds"; then
8269 ac_sed_cmds="cat"
8270 fi
8271 fi # test -n "$CONFIG_FILES"
8272
8273 EOF
8274 cat >>"$CONFIG_STATUS" <<\EOF
8275 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8277 case "$ac_file" in
8278 - | *:- | *:-:* ) # input from stdin
8279 cat >"$tmp"/stdin
8280 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8281 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8282 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8284 * ) ac_file_in=$ac_file.in ;;
8285 esac
8286
8287 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8288 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8289 X"$ac_file" : 'X\(//\)[^/]' \| \
8290 X"$ac_file" : 'X\(//\)$' \| \
8291 X"$ac_file" : 'X\(/\)' \| \
8292 . : '\(.\)' 2>/dev/null ||
8293 echo X"$ac_file" |
8294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8296 /^X\(\/\/\)$/{ s//\1/; q; }
8297 /^X\(\/\).*/{ s//\1/; q; }
8298 s/.*/./; q'`
8299 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8300 { case "$ac_dir" in
8301 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8302 *) as_incr_dir=.;;
8303 esac
8304 as_dummy="$ac_dir"
8305 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8306 case $as_mkdir_dir in
8307 # Skip DOS drivespec
8308 ?:) as_incr_dir=$as_mkdir_dir ;;
8309 *)
8310 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8311 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8312 ;;
8313 esac
8314 done; }
8315
8316 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
8317 # A "../" for each directory in $ac_dir_suffix.
8318 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8319 else
8320 ac_dir_suffix= ac_dots=
8321 fi
8322
8323 case "$srcdir" in
8324 .) ac_srcdir=.
8325 if test -z "$ac_dots"; then
8326 ac_top_srcdir=.
8327 else
8328 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
8329 fi ;;
8330 [\\/]* | ?:[\\/]* )
8331 ac_srcdir="$srcdir$ac_dir_suffix";
8332 ac_top_srcdir="$srcdir" ;;
8333 *) # Relative path.
8334 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
8335 ac_top_srcdir="$ac_dots$srcdir" ;;
8336 esac
8337
8338 case $INSTALL in
8339 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8340 *) ac_INSTALL=$ac_dots$INSTALL ;;
8341 esac
8342
8343 if test x"$ac_file" != x-; then
8344 { echo "$as_me:8344: creating $ac_file" >&5
8345 echo "$as_me: creating $ac_file" >&6;}
8346 rm -f "$ac_file"
8347 fi
8348 # Let's still pretend it is `configure' which instantiates (i.e., don't
8349 # use $as_me), people would be surprised to read:
8350 # /* config.h. Generated automatically by config.status. */
8351 configure_input="Generated automatically from `echo $ac_file_in |
8352 sed 's,.*/,,'` by configure."
8353
8354 # First look for the input files in the build tree, otherwise in the
8355 # src tree.
8356 ac_file_inputs=`IFS=:
8357 for f in $ac_file_in; do
8358 case $f in
8359 -) echo "$tmp"/stdin ;;
8360 [\\/$]*)
8361 # Absolute (can't be DOS-style, as IFS=:)
8362 test -f "$f" || { { echo "$as_me:8362: error: cannot find input file: $f" >&5
8363 echo "$as_me: error: cannot find input file: $f" >&2;}
8364 { (exit 1); exit 1; }; }
8365 echo "$f";;
8366 *) # Relative
8367 if test -f "$f"; then
8368 # Build tree
8369 echo "$f"
8370 elif test -f "$srcdir/$f"; then
8371 # Source tree
8372 echo "$srcdir/$f"
8373 else
8374 # /dev/null tree
8375 { { echo "$as_me:8375: error: cannot find input file: $f" >&5
8376 echo "$as_me: error: cannot find input file: $f" >&2;}
8377 { (exit 1); exit 1; }; }
8378 fi;;
8379 esac
8380 done` || { (exit 1); exit 1; }
8381 EOF
8382 cat >>"$CONFIG_STATUS" <<\EOF
8383 ac_warn_datarootdir=no
8384 if test x"$ac_file" != x-; then
8385 for ac_item in $ac_file_inputs
8386 do
8387 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
8388 if test -n "$ac_seen"; then
8389 ac_used=`grep '@datarootdir@' "$ac_item"`
8390 if test -z "$ac_used"; then
8391 { echo "$as_me:8391: WARNING: datarootdir was used implicitly but not set:
8392 $ac_seen" >&5
8393 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
8394 $ac_seen" >&2;}
8395 ac_warn_datarootdir=yes
8396 fi
8397 fi
8398 ac_seen=`grep '${datarootdir}' "$ac_item"`
8399 if test -n "$ac_seen"; then
8400 { echo "$as_me:8400: WARNING: datarootdir was used explicitly but not set:
8401 $ac_seen" >&5
8402 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
8403 $ac_seen" >&2;}
8404 ac_warn_datarootdir=yes
8405 fi
8406 done
8407 fi
8408
8409 if test "x$ac_warn_datarootdir" = xyes; then
8410 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
8411 fi
8412
8413 EOF
8414 cat >>"$CONFIG_STATUS" <<EOF
8415 sed "$ac_vpsub
8416 $extrasub
8417 EOF
8418 cat >>"$CONFIG_STATUS" <<\EOF
8419 :t
8420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8421 s,@configure_input@,$configure_input,;t t
8422 s,@srcdir@,$ac_srcdir,;t t
8423 s,@top_srcdir@,$ac_top_srcdir,;t t
8424 s,@INSTALL@,$ac_INSTALL,;t t
8425 " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
8426 rm -f "$tmp"/stdin
8427 EOF
8428 test -n "${FGREP}" || FGREP="grep -F"
8429 test -n "${EGREP}" || EGREP="grep -E"
8430 cat >>"$CONFIG_STATUS" <<EOF
8431 test -n "\${FGREP}" || FGREP="$FGREP"
8432 test -n "\${EGREP}" || EGREP="$EGREP"
8433 EOF
8434 cat >>"$CONFIG_STATUS" <<\EOF
8435 if test x"$ac_file" != x-; then
8436 cp "$tmp/out" "$ac_file"
8437
8438 for ac_name in prefix exec_prefix datarootdir
8439 do
8440 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
8441 if test -n "$ac_seen"; then
8442 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
8443 if test -z "$ac_init"; then
8444 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
8445 { echo "$as_me:8445: WARNING: Variable $ac_name is used but was not set:
8446 $ac_seen" >&5
8447 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
8448 $ac_seen" >&2;}
8449 fi
8450 fi
8451 done
8452 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
8453 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
8454 if test -s "$tmp"/out; then
8455 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
8456 { echo "$as_me:8456: WARNING: Some variables may not be substituted:
8457 $ac_seen" >&5
8458 echo "$as_me: WARNING: Some variables may not be substituted:
8459 $ac_seen" >&2;}
8460 fi
8461 else
8462 cat "$tmp"/out
8463 fi
8464 rm -f "$tmp"/out
8465
8466 done
8467 EOF
8468 cat >>"$CONFIG_STATUS" <<\EOF
8469
8470 #
8471 # CONFIG_HEADER section.
8472 #
8473
8474 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8475 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8476 #
8477 # ac_d sets the value in "#define NAME VALUE" lines.
8478 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8479 ac_dB='[ ].*$,\1#\2'
8480 ac_dC=' '
8481 ac_dD=',;t'
8482 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8483 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8484 ac_iB='\([ ]\),\1#\2define\3'
8485 ac_iC=' '
8486 ac_iD='\4,;t'
8487 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8488 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8489 ac_uB='$,\1#\2define\3'
8490 ac_uC=' '
8491 ac_uD=',;t'
8492
8493 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8494 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8495 case "$ac_file" in
8496 - | *:- | *:-:* ) # input from stdin
8497 cat >"$tmp"/stdin
8498 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8499 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8500 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8501 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8502 * ) ac_file_in=$ac_file.in ;;
8503 esac
8504
8505 test x"$ac_file" != x- && { echo "$as_me:8505: creating $ac_file" >&5
8506 echo "$as_me: creating $ac_file" >&6;}
8507
8508 # First look for the input files in the build tree, otherwise in the
8509 # src tree.
8510 ac_file_inputs=`IFS=:
8511 for f in $ac_file_in; do
8512 case $f in
8513 -) echo "$tmp"/stdin ;;
8514 [\\/$]*)
8515 # Absolute (can't be DOS-style, as IFS=:)
8516 test -f "$f" || { { echo "$as_me:8516: error: cannot find input file: $f" >&5
8517 echo "$as_me: error: cannot find input file: $f" >&2;}
8518 { (exit 1); exit 1; }; }
8519 echo $f;;
8520 *) # Relative
8521 if test -f "$f"; then
8522 # Build tree
8523 echo $f
8524 elif test -f "$srcdir/$f"; then
8525 # Source tree
8526 echo "$srcdir/$f"
8527 else
8528 # /dev/null tree
8529 { { echo "$as_me:8529: error: cannot find input file: $f" >&5
8530 echo "$as_me: error: cannot find input file: $f" >&2;}
8531 { (exit 1); exit 1; }; }
8532 fi;;
8533 esac
8534 done` || { (exit 1); exit 1; }
8535 # Remove the trailing spaces.
8536 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in
8537
8538 EOF
8539
8540 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8541 # `conftest.undefs', that substitutes the proper values into
8542 # config.h.in to produce config.h. The first handles `#define'
8543 # templates, and the second `#undef' templates.
8544 # And first: Protect against being on the right side of a sed subst in
8545 # config.status. Protect against being in an unquoted here document
8546 # in config.status.
8547 rm -f conftest.defines conftest.undefs
8548 # Using a here document instead of a string reduces the quoting nightmare.
8549 # Putting comments in sed scripts is not portable.
8550 #
8551 # `end' is used to avoid that the second main sed command (meant for
8552 # 0-ary CPP macros) applies to n-ary macro definitions.
8553 # See the Autoconf documentation for `clear'.
8554 cat >confdef2sed.sed <<\EOF
8555 s/[\\&,]/\\&/g
8556 s,[\\$`],\\&,g
8557 t clear
8558 : clear
8559 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8560 t end
8561 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8562 : end
8563 EOF
8564 # If some macros were called several times there might be several times
8565 # the same #defines, which is useless. Nevertheless, we may not want to
8566 # sort them, since we want the *last* AC-DEFINE to be honored.
8567 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8568 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8569 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
8570 rm -f confdef2sed.sed
8571
8572 # This sed command replaces #undef with comments. This is necessary, for
8573 # example, in the case of _POSIX_SOURCE, which is predefined and required
8574 # on some systems where configure will not decide to define it.
8575 cat >>conftest.undefs <<\EOF
8576 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8577 EOF
8578
8579 # Break up conftest.defines because some shells have a limit on the size
8580 # of here documents, and old seds have small limits too (100 cmds).
8581 echo ' # Handle all the #define templates only if necessary.' >>"$CONFIG_STATUS"
8582 echo ' test -n "${EGREP}" || EGREP="grep -E"' >>"$CONFIG_STATUS"
8583 echo ' if ${EGREP} "^[ ]*#[ ]*define" "$tmp"/in >/dev/null; then' >>"$CONFIG_STATUS"
8584 echo ' # If there are no defines, we may have an empty if/fi' >>"$CONFIG_STATUS"
8585 echo ' :' >>"$CONFIG_STATUS"
8586 rm -f conftest.tail
8587 while grep . conftest.defines >/dev/null
8588 do
8589 # Write a limited-size here document to "$tmp"/defines.sed.
8590 echo ' cat >"$tmp"/defines.sed <<CEOF' >>"$CONFIG_STATUS"
8591 # Speed up: don't consider the non `#define' lines.
8592 echo '/^[ ]*#[ ]*define/!b' >>"$CONFIG_STATUS"
8593 # Work around the forget-to-reset-the-flag bug.
8594 echo 't clr' >>"$CONFIG_STATUS"
8595 echo ': clr' >>"$CONFIG_STATUS"
8596 sed "${ac_max_here_lines}q" conftest.defines >>"$CONFIG_STATUS"
8597 echo 'CEOF
8598 sed -f "$tmp"/defines.sed "$tmp"/in >"$tmp"/out
8599 rm -f "$tmp"/in
8600 mv "$tmp"/out "$tmp"/in
8601 ' >>"$CONFIG_STATUS"
8602 sed "1,${ac_max_here_lines}d" conftest.defines >conftest.tail
8603 rm -f conftest.defines
8604 mv conftest.tail conftest.defines
8605 done
8606 rm -f conftest.defines
8607 echo ' fi # grep' >>"$CONFIG_STATUS"
8608 echo >>"$CONFIG_STATUS"
8609
8610 # Break up conftest.undefs because some shells have a limit on the size
8611 # of here documents, and old seds have small limits too (100 cmds).
8612 echo ' # Handle all the #undef templates' >>"$CONFIG_STATUS"
8613 rm -f conftest.tail
8614 while grep . conftest.undefs >/dev/null
8615 do
8616 # Write a limited-size here document to "$tmp"/undefs.sed.
8617 echo ' cat >"$tmp"/undefs.sed <<CEOF' >>"$CONFIG_STATUS"
8618 # Speed up: don't consider the non `#undef'
8619 echo '/^[ ]*#[ ]*undef/!b' >>"$CONFIG_STATUS"
8620 # Work around the forget-to-reset-the-flag bug.
8621 echo 't clr' >>"$CONFIG_STATUS"
8622 echo ': clr' >>"$CONFIG_STATUS"
8623 sed "${ac_max_here_lines}q" conftest.undefs >>"$CONFIG_STATUS"
8624 echo 'CEOF
8625 sed -f "$tmp"/undefs.sed "$tmp"/in >"$tmp"/out
8626 rm -f "$tmp"/in
8627 mv "$tmp"/out "$tmp"/in
8628 ' >>"$CONFIG_STATUS"
8629 sed "1,${ac_max_here_lines}d" conftest.undefs >conftest.tail
8630 rm -f conftest.undefs
8631 mv conftest.tail conftest.undefs
8632 done
8633 rm -f conftest.undefs
8634
8635 cat >>"$CONFIG_STATUS" <<\EOF
8636 # Let's still pretend it is `configure' which instantiates (i.e., don't
8637 # use $as_me), people would be surprised to read:
8638 # /* config.h. Generated automatically by config.status. */
8639 if test x"$ac_file" = x-; then
8640 echo "/* Generated automatically by configure. */" >"$tmp"/config.h
8641 else
8642 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h
8643 fi
8644 cat "$tmp"/in >>"$tmp"/config.h
8645 rm -f "$tmp"/in
8646 if test x"$ac_file" != x-; then
8647 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
8648 { echo "$as_me:8648: $ac_file is unchanged" >&5
8649 echo "$as_me: $ac_file is unchanged" >&6;}
8650 else
8651 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8652 X"$ac_file" : 'X\(//\)[^/]' \| \
8653 X"$ac_file" : 'X\(//\)$' \| \
8654 X"$ac_file" : 'X\(/\)' \| \
8655 . : '\(.\)' 2>/dev/null ||
8656 echo X"$ac_file" |
8657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8659 /^X\(\/\/\)$/{ s//\1/; q; }
8660 /^X\(\/\).*/{ s//\1/; q; }
8661 s/.*/./; q'`
8662 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8663 { case "$ac_dir" in
8664 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8665 *) as_incr_dir=.;;
8666 esac
8667 as_dummy="$ac_dir"
8668 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8669 case $as_mkdir_dir in
8670 # Skip DOS drivespec
8671 ?:) as_incr_dir=$as_mkdir_dir ;;
8672 *)
8673 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8674 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8675 ;;
8676 esac
8677 done; }
8678
8679 fi
8680 rm -f "$ac_file"
8681 mv "$tmp/config.h" "$ac_file"
8682 fi
8683 else
8684 cat "$tmp"/config.h
8685 rm -f "$tmp"/config.h
8686 fi
8687 done
8688 EOF
8689
8690 cat >>"$CONFIG_STATUS" <<\EOF
8691
8692 { (exit 0); exit 0; }
8693 EOF
8694 chmod +x "$CONFIG_STATUS"
8695 ac_clean_files=$ac_clean_files_save
8696
8697 # configure is writing to config.log, and then calls config.status.
8698 # config.status does its own redirection, appending to config.log.
8699 # Unfortunately, on DOS this fails, as config.log is still kept open
8700 # by configure, so config.status won't be able to write to it; its
8701 # output is simply discarded. So we exec the FD to /dev/null,
8702 # effectively closing config.log, so it can be properly (re)opened and
8703 # appended to by config.status. When coming back to configure, we
8704 # need to make the FD available again.
8705 if test "$no_create" != yes; then
8706 ac_cs_success=:
8707 exec 5>/dev/null
8708 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
8709 exec 5>>config.log
8710 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8711 # would make configure fail if this is the last instruction.
8712 "$ac_cs_success" || { (exit 1); exit 1; }
8713 fi
8714
8715 test -z "$cf_make_docs" && cf_make_docs=0
8716
8717 cf_output=makefile
8718 test -f "$cf_output" || cf_output=Makefile
8719
8720 if test "$cf_make_docs" = 0
8721 then
8722 cat >>$cf_output <<CF_EOF
8723 ################################################################################
8724 ## generated by CF_MAKE_DOCS
8725 .SUFFIXES : .html .1 .man .ps .pdf .txt
8726
8727 ${NROFF_NOTE}.1.txt :
8728 ${NROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@
8729
8730 ${GROFF_NOTE}.ps.pdf :
8731 ${GROFF_NOTE} ps2pdf \$*.ps
8732 ${GROFF_NOTE}
8733 ${GROFF_NOTE}.1.ps :
8734 ${GROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | groff -man" >\$@
8735 ${GROFF_NOTE}
8736 ${GROFF_NOTE}.1.txt :
8737 ${GROFF_NOTE} GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -rHY=0 -Tascii -man | col -bx" >\$@
8738
8739 ${MAN2HTML_NOTE}.1.html :
8740 ${MAN2HTML_NOTE} ./${MAN2HTML_TEMP} \$* 1 man >\$@
8741
8742 CF_EOF
8743 cf_make_docs=1
8744 fi
8745
8746 for cf_name in yacc
8747 do
8748 cat >>$cf_output <<CF_EOF
8749 ################################################################################
8750 ${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
8751 ${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html
8752 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf
8753 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps
8754 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
8755
8756 clean \\
8757 docs-clean ::
8758 ${NROFF_NOTE} rm -f $cf_name.txt
8759 ${MAN2HTML_NOTE} rm -f $cf_name.html
8760 ${GROFF_NOTE} rm -f $cf_name.pdf
8761 ${GROFF_NOTE} rm -f $cf_name.ps
8762 ${GROFF_NOTE} rm -f $cf_name.txt
8763
8764 ${NROFF_NOTE}$cf_name.txt : $cf_name.1
8765 ${MAN2HTML_NOTE}$cf_name.html : $cf_name.1
8766 ${GROFF_NOTE}$cf_name.pdf : $cf_name.ps
8767 ${GROFF_NOTE}$cf_name.ps : $cf_name.1
8768 ${GROFF_NOTE}$cf_name.txt : $cf_name.1
8769 CF_EOF
8770 done
8771
8772