Remove building with NOCRYPTO option
[minix.git] / external / bsd / byacc / dist / configure
blob253c1cf1bc0d43b2bd9663a129171e1fc7051954
1 #! /bin/sh
2 # From configure.in Revision: 1.20 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20121002.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 emulate sh
27 NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36 as_expr=expr
37 else
38 as_expr=false
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
48 as_ln_s='cp -p'
49 else
50 as_ln_s='ln -s'
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53 as_ln_s=ln
54 else
55 as_ln_s='cp -p'
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63 as_unset=unset
64 else
65 as_unset=false
68 # NLS nuisances.
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # IFS
79 # We need space, tab and new line, in precisely that order.
80 as_nl='
82 IFS=" $as_nl"
84 # CDPATH.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # Name of the host.
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92 exec 6>&1
95 # Initializations.
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="main.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 # include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 # include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 # include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
186 PACKAGE_NAME=
187 PACKAGE_TARNAME=
188 PACKAGE_VERSION=
189 PACKAGE_STRING=
190 PACKAGE_BUGREPORT=
192 ac_prev=
193 for ac_option
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
198 ac_prev=
199 continue
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
206 case $ac_option in
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 ac_prev=bindir ;;
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 bindir=$ac_optarg ;;
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
225 --config-cache | -C)
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 ac_prev=datadir ;;
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 | --da=*)
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
257 case $ac_option in
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
259 *) ac_optarg=yes ;;
260 esac
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
274 with_gas=yes ;;
276 -help | --help | --hel | --he | -h)
277 ac_init_help=long ;;
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
296 ac_prev=infodir ;;
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
301 ac_prev=libdir ;;
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
303 libdir=$ac_optarg ;;
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
322 ac_prev=mandir ;;
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
324 mandir=$ac_optarg ;;
326 -nfp | --nfp | --nf)
327 # Obsolete; use --without-fp.
328 with_fp=no ;;
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
331 | --no-cr | --no-c)
332 no_create=yes ;;
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
336 no_recursion=yes ;;
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
348 ac_prev=prefix ;;
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
350 prefix=$ac_optarg ;;
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
385 silent=yes ;;
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
388 ac_prev=sbindir ;;
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
390 | --sbi=* | --sb=*)
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
396 | --sha | --sh)
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
401 | --sha=* | --sh=*)
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
405 ac_prev=site ;;
406 -site=* | --site=* | --sit=*)
407 site=$ac_optarg ;;
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
410 ac_prev=srcdir ;;
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
412 srcdir=$ac_optarg ;;
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
427 verbose=yes ;;
429 -version | --version | --versio | --versi | --vers | -V)
430 ac_init_version=: ;;
432 -with-* | --with-*)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
439 case $ac_option in
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
441 *) ac_optarg=yes ;;
442 esac
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
454 --x)
455 # Obsolete; use --with-x.
456 with_x=yes ;;
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
477 *=*)
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
485 export $ac_envvar ;;
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
495 esac
496 done
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
508 case $ac_val in
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
512 esac
513 done
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
520 case $ac_val in
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
524 esac
525 done
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
529 build=$build_alias
530 host=$host_alias
531 target=$target_alias
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
540 cross_compiling=yes
544 ac_tool_prefix=
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
553 ac_prog=$0
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
556 srcdir=$ac_confdir
557 if test ! -r $srcdir/$ac_unique_file; then
558 srcdir=..
560 else
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
567 else
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
586 ac_env_CC_value=$CC
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
607 # Report the --help message.
609 if test "$ac_init_help" = "long"; then
610 # Omit some internal or obsolete options to make the list less imposing.
611 # This message is too long to be a string in the A/UX 3.1 sh.
612 cat <<EOF
613 \`configure' configures this package to adapt to many kinds of systems.
615 Usage: $0 [OPTION]... [VAR=VALUE]...
617 To assign environment variables (e.g., CC, CFLAGS...), specify them as
618 VAR=VALUE. See below for descriptions of some of the useful variables.
620 Defaults for the options are specified in brackets.
622 Configuration:
623 -h, --help display this help and exit
624 --help=short display options specific to this package
625 --help=recursive display the short help of all the included packages
626 -V, --version display version information and exit
627 -q, --quiet, --silent do not print \`checking...' messages
628 --cache-file=FILE cache test results in FILE [disabled]
629 -C, --config-cache alias for \`--cache-file=config.cache'
630 -n, --no-create do not create output files
631 --srcdir=DIR find the sources in DIR [configure dir or \`..']
635 cat <<EOF
636 Installation directories:
637 --prefix=PREFIX install architecture-independent files in PREFIX
638 [$ac_default_prefix]
639 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
640 [PREFIX]
642 By default, \`make install' will install all the files in
643 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
644 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
645 for instance \`--prefix=\$HOME'.
647 For better control, use the options below.
649 Fine tuning of the installation directories:
650 --bindir=DIR user executables [EPREFIX/bin]
651 --sbindir=DIR system admin executables [EPREFIX/sbin]
652 --libexecdir=DIR program executables [EPREFIX/libexec]
653 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
654 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
655 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
656 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
657 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
658 --libdir=DIR object code libraries [EPREFIX/lib]
659 --includedir=DIR C header files [PREFIX/include]
660 --oldincludedir=DIR C header files for non-gcc [/usr/include]
661 --infodir=DIR info documentation [DATAROOTDIR/info]
662 --mandir=DIR man documentation [DATAROOTDIR/man]
665 cat <<\EOF
667 Program names:
668 --program-prefix=PREFIX prepend PREFIX to installed program names
669 --program-suffix=SUFFIX append SUFFIX to installed program names
670 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
672 System types:
673 --build=BUILD configure for building on BUILD [guessed]
674 --host=HOST build programs to run on HOST [BUILD]
675 --target=TARGET configure for building compilers for TARGET [HOST]
679 if test -n "$ac_init_help"; then
681 cat <<\EOF
683 Optional Packages:
684 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
685 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
687 Optional Features:
688 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
689 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
691 --with-max-table-size=N set the maximum table size = N (no default)
692 --enable-btyacc turn on support for the btyacc backtracking
693 extension (default: no)
694 --with-warnings test: turn on gcc warnings
695 --disable-echo do not display "compiling" commands
696 --with-dmalloc test: use Gray Watson's dmalloc library
697 --with-dbmalloc test: use Conor Cahill's dbmalloc library
698 --with-valgrind test: use valgrind
699 --disable-leaks test: free permanent memory, analyze leaks
701 Some influential environment variables:
702 CC C compiler command
703 CFLAGS C compiler flags
704 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
705 nonstandard directory <lib dir>
706 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
707 headers in a nonstandard directory <include dir>
708 CPP C preprocessor
710 Use these variables to override the choices made by `configure' or to help
711 it to find libraries and programs with nonstandard names/locations.
716 if test "$ac_init_help" = "recursive"; then
717 # If there are subdirs, report their specific --help.
718 ac_popdir=`pwd`
719 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
720 cd $ac_subdir
721 # A "../" for each directory in /$ac_subdir.
722 ac_dots=`echo $ac_subdir |
723 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
725 case $srcdir in
726 .) # No --srcdir option. We are building in place.
727 ac_sub_srcdir=$srcdir ;;
728 [\\/]* | ?:[\\/]* ) # Absolute path.
729 ac_sub_srcdir=$srcdir/$ac_subdir ;;
730 *) # Relative path.
731 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
732 esac
734 # Check for guested configure; otherwise get Cygnus style configure.
735 if test -f $ac_sub_srcdir/configure.gnu; then
736 echo
737 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
738 elif test -f $ac_sub_srcdir/configure; then
739 echo
740 $SHELL $ac_sub_srcdir/configure --help=recursive
741 elif test -f $ac_sub_srcdir/configure.ac ||
742 test -f $ac_sub_srcdir/configure.in; then
743 echo
744 $ac_configure --help
745 else
746 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
748 cd $ac_popdir
749 done
752 test -n "$ac_init_help" && exit 0
753 if $ac_init_version; then
754 cat <<\EOF
756 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
757 Free Software Foundation, Inc.
758 This configure script is free software; the Free Software Foundation
759 gives unlimited permission to copy, distribute and modify it.
761 exit 0
763 exec 5>config.log
764 cat >&5 <<EOF
765 This file contains any messages produced by compilers while
766 running configure, to aid debugging if configure makes a mistake.
768 It was created by $as_me, which was
769 generated by GNU Autoconf 2.52.20121002. Invocation command line was
771 $ $0 $@
775 cat <<_ASUNAME
776 ## ---------- ##
777 ## Platform. ##
778 ## ---------- ##
780 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
781 uname -m = `(uname -m) 2>/dev/null || echo unknown`
782 uname -r = `(uname -r) 2>/dev/null || echo unknown`
783 uname -s = `(uname -s) 2>/dev/null || echo unknown`
784 uname -v = `(uname -v) 2>/dev/null || echo unknown`
786 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
787 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
789 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
790 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
791 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
792 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
793 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
794 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
795 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
797 PATH = $PATH
799 _ASUNAME
800 } >&5
802 cat >&5 <<EOF
803 ## ------------ ##
804 ## Core tests. ##
805 ## ------------ ##
809 # Keep a trace of the command line.
810 # Strip out --no-create and --no-recursion so they do not pile up.
811 # Also quote any args containing shell meta-characters.
812 ac_configure_args=
813 ac_sep=
814 for ac_arg
816 case $ac_arg in
817 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
818 | --no-cr | --no-c) ;;
819 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
820 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
821 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
822 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
823 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
824 ac_sep=" " ;;
825 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
826 ac_sep=" " ;;
827 esac
828 # Get rid of the leading space.
829 done
831 # When interrupted or exit'd, cleanup temporary files, and complete
832 # config.log. We remove comments because anyway the quotes in there
833 # would cause problems or look ugly.
834 trap 'exit_status=$?
835 # Save into config.log some information that might help in debugging.
836 echo >&5
837 echo "## ----------------- ##" >&5
838 echo "## Cache variables. ##" >&5
839 echo "## ----------------- ##" >&5
840 echo >&5
841 # The following way of writing the cache mishandles newlines in values,
843 (set) 2>&1 |
844 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
845 *ac_space=\ *)
846 sed -n \
847 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
851 sed -n \
852 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
854 esac;
855 } >&5
856 sed "/^$/d" confdefs.h >conftest.log
857 if test -s conftest.log; then
858 echo >&5
859 echo "## ------------ ##" >&5
860 echo "## confdefs.h. ##" >&5
861 echo "## ------------ ##" >&5
862 echo >&5
863 cat conftest.log >&5
865 (echo; echo) >&5
866 test "$ac_signal" != 0 &&
867 echo "$as_me: caught signal $ac_signal" >&5
868 echo "$as_me: exit $exit_status" >&5
869 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
870 exit $exit_status
872 for ac_signal in 1 2 13 15; do
873 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
874 done
875 ac_signal=0
877 # confdefs.h avoids OS command line length limits that DEFS can exceed.
878 rm -rf conftest* confdefs.h
879 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
880 echo >confdefs.h
882 # Let the site file select an alternate cache file if it wants to.
883 # Prefer explicitly selected file to automatically selected ones.
884 if test -z "$CONFIG_SITE"; then
885 if test "x$prefix" != xNONE; then
886 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
887 else
888 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
891 for ac_site_file in $CONFIG_SITE; do
892 if test -r "$ac_site_file"; then
893 { echo "$as_me:893: loading site script $ac_site_file" >&5
894 echo "$as_me: loading site script $ac_site_file" >&6;}
895 cat "$ac_site_file" >&5
896 . "$ac_site_file"
898 done
900 if test -r "$cache_file"; then
901 # Some versions of bash will fail to source /dev/null (special
902 # files actually), so we avoid doing that.
903 if test -f "$cache_file"; then
904 { echo "$as_me:904: loading cache $cache_file" >&5
905 echo "$as_me: loading cache $cache_file" >&6;}
906 case $cache_file in
907 [\\/]* | ?:[\\/]* ) . $cache_file;;
908 *) . ./$cache_file;;
909 esac
911 else
912 { echo "$as_me:912: creating cache $cache_file" >&5
913 echo "$as_me: creating cache $cache_file" >&6;}
914 >$cache_file
917 # Check that the precious variables saved in the cache have kept the same
918 # value.
919 ac_cache_corrupted=false
920 for ac_var in `(set) 2>&1 |
921 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
923 eval ac_new_set=\$ac_env_${ac_var}_set
924 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
925 eval ac_new_val="\$ac_env_${ac_var}_value"
926 case $ac_old_set,$ac_new_set in
927 set,)
928 { echo "$as_me:928: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
929 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
930 ac_cache_corrupted=: ;;
931 ,set)
932 { echo "$as_me:932: error: \`$ac_var' was not set in the previous run" >&5
933 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
934 ac_cache_corrupted=: ;;
935 ,);;
937 if test "x$ac_old_val" != "x$ac_new_val"; then
938 { echo "$as_me:938: error: \`$ac_var' has changed since the previous run:" >&5
939 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
940 { echo "$as_me:940: former value: $ac_old_val" >&5
941 echo "$as_me: former value: $ac_old_val" >&2;}
942 { echo "$as_me:942: current value: $ac_new_val" >&5
943 echo "$as_me: current value: $ac_new_val" >&2;}
944 ac_cache_corrupted=:
945 fi;;
946 esac
947 # Pass precious variables to config.status. It doesn't matter if
948 # we pass some twice (in addition to the command line arguments).
949 if test "$ac_new_set" = set; then
950 case $ac_new_val in
951 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
952 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
953 ac_configure_args="$ac_configure_args '$ac_arg'"
955 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
957 esac
959 done
960 if $ac_cache_corrupted; then
961 { echo "$as_me:961: error: changes in the environment can compromise the build" >&5
962 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
963 { { echo "$as_me:963: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
964 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
965 { (exit 1); exit 1; }; }
968 ac_ext=c
969 ac_cpp='$CPP $CPPFLAGS'
970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
973 ac_main_return=return
975 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
976 *c*,-n*) ECHO_N= ECHO_C='
977 ' ECHO_T=' ' ;;
978 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
979 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
980 esac
981 echo "#! $SHELL" >conftest.sh
982 echo "exit 0" >>conftest.sh
983 chmod +x conftest.sh
984 if { (echo "$as_me:984: PATH=\".;.\"; conftest.sh") >&5
985 (PATH=".;."; conftest.sh) 2>&5
986 ac_status=$?
987 echo "$as_me:987: \$? = $ac_status" >&5
988 (exit $ac_status); }; then
989 ac_path_separator=';'
990 else
991 ac_path_separator=:
993 PATH_SEPARATOR="$ac_path_separator"
994 rm -f conftest.sh
996 ac_config_headers="$ac_config_headers config.h:config_h.in"
998 ac_aux_dir=
999 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1000 if test -f $ac_dir/install-sh; then
1001 ac_aux_dir=$ac_dir
1002 ac_install_sh="$ac_aux_dir/install-sh -c"
1003 break
1004 elif test -f $ac_dir/install.sh; then
1005 ac_aux_dir=$ac_dir
1006 ac_install_sh="$ac_aux_dir/install.sh -c"
1007 break
1008 elif test -f $ac_dir/shtool; then
1009 ac_aux_dir=$ac_dir
1010 ac_install_sh="$ac_aux_dir/shtool install -c"
1011 break
1013 done
1014 if test -z "$ac_aux_dir"; then
1015 { { echo "$as_me:1015: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1016 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1017 { (exit 1); exit 1; }; }
1019 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1020 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1021 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1023 # Make sure we can run config.sub.
1024 $ac_config_sub sun4 >/dev/null 2>&1 ||
1025 { { echo "$as_me:1025: error: cannot run $ac_config_sub" >&5
1026 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1027 { (exit 1); exit 1; }; }
1029 echo "$as_me:1029: checking build system type" >&5
1030 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1031 if test "${ac_cv_build+set}" = set; then
1032 echo $ECHO_N "(cached) $ECHO_C" >&6
1033 else
1034 ac_cv_build_alias=$build_alias
1035 test -z "$ac_cv_build_alias" &&
1036 ac_cv_build_alias=`$ac_config_guess`
1037 test -z "$ac_cv_build_alias" &&
1038 { { echo "$as_me:1038: error: cannot guess build type; you must specify one" >&5
1039 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1040 { (exit 1); exit 1; }; }
1041 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1042 { { echo "$as_me:1042: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1043 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1044 { (exit 1); exit 1; }; }
1047 echo "$as_me:1047: result: $ac_cv_build" >&5
1048 echo "${ECHO_T}$ac_cv_build" >&6
1049 build=$ac_cv_build
1050 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1051 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1052 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1054 echo "$as_me:1054: checking host system type" >&5
1055 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1056 if test "${ac_cv_host+set}" = set; then
1057 echo $ECHO_N "(cached) $ECHO_C" >&6
1058 else
1059 ac_cv_host_alias=$host_alias
1060 test -z "$ac_cv_host_alias" &&
1061 ac_cv_host_alias=$ac_cv_build_alias
1062 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1063 { { echo "$as_me:1063: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1064 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1065 { (exit 1); exit 1; }; }
1068 echo "$as_me:1068: result: $ac_cv_host" >&5
1069 echo "${ECHO_T}$ac_cv_host" >&6
1070 host=$ac_cv_host
1071 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1076 echo "$as_me:1076: checking target system type" >&5
1077 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1078 if test "${ac_cv_target+set}" = set; then
1079 echo $ECHO_N "(cached) $ECHO_C" >&6
1080 else
1081 ac_cv_target_alias=$target_alias
1082 test "x$ac_cv_target_alias" = "x" &&
1083 ac_cv_target_alias=$ac_cv_host_alias
1084 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1085 { { echo "$as_me:1085: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1086 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1087 { (exit 1); exit 1; }; }
1090 echo "$as_me:1090: result: $ac_cv_target" >&5
1091 echo "${ECHO_T}$ac_cv_target" >&6
1092 target=$ac_cv_target
1093 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1094 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1095 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1097 # The aliases save the names the user supplied, while $host etc.
1098 # will get canonicalized.
1099 test -n "$target_alias" &&
1100 test "$program_prefix$program_suffix$program_transform_name" = \
1101 NONENONEs,x,x, &&
1102 program_prefix=${target_alias}-
1103 system_name="$host_os"
1104 else
1105 system_name="`(uname -s -r) 2>/dev/null`"
1106 if test -z "$system_name" ; then
1107 system_name="`(hostname) 2>/dev/null`"
1110 test -n "$system_name" &&
1111 cat >>confdefs.h <<EOF
1112 #define SYSTEM_NAME "$system_name"
1115 if test "${cf_cv_system_name+set}" = set; then
1116 echo $ECHO_N "(cached) $ECHO_C" >&6
1117 else
1118 cf_cv_system_name="$system_name"
1121 test -z "$system_name" && system_name="$cf_cv_system_name"
1122 test -n "$cf_cv_system_name" && echo "$as_me:1122: result: Configuring for $cf_cv_system_name" >&5
1123 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1125 if test ".$system_name" != ".$cf_cv_system_name" ; then
1126 echo "$as_me:1126: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1127 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1128 { { echo "$as_me:1128: error: \"Please remove config.cache and try again.\"" >&5
1129 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1130 { (exit 1); exit 1; }; }
1133 test "$program_prefix" != NONE &&
1134 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1135 # Use a double $ so make ignores it.
1136 test "$program_suffix" != NONE &&
1137 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1138 # Double any \ or $. echo might interpret backslashes.
1139 # By default was `s,x,x', remove it if useless.
1140 cat <<\_ACEOF >conftest.sed
1141 s/[\\$]/&&/g;s/;s,x,x,$//
1142 _ACEOF
1143 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1144 rm conftest.sed
1146 ac_ext=c
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1151 ac_main_return=return
1152 if test -n "$ac_tool_prefix"; then
1153 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1154 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1155 echo "$as_me:1155: checking for $ac_word" >&5
1156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1157 if test "${ac_cv_prog_CC+set}" = set; then
1158 echo $ECHO_N "(cached) $ECHO_C" >&6
1159 else
1160 if test -n "$CC"; then
1161 ac_cv_prog_CC="$CC" # Let the user override the test.
1162 else
1163 ac_save_IFS=$IFS; IFS=$ac_path_separator
1164 ac_dummy="$PATH"
1165 for ac_dir in $ac_dummy; do
1166 IFS=$ac_save_IFS
1167 test -z "$ac_dir" && ac_dir=.
1168 $as_executable_p "$ac_dir/$ac_word" || continue
1169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1170 echo "$as_me:1170: found $ac_dir/$ac_word" >&5
1171 break
1172 done
1176 CC=$ac_cv_prog_CC
1177 if test -n "$CC"; then
1178 echo "$as_me:1178: result: $CC" >&5
1179 echo "${ECHO_T}$CC" >&6
1180 else
1181 echo "$as_me:1181: result: no" >&5
1182 echo "${ECHO_T}no" >&6
1186 if test -z "$ac_cv_prog_CC"; then
1187 ac_ct_CC=$CC
1188 # Extract the first word of "gcc", so it can be a program name with args.
1189 set dummy gcc; ac_word=$2
1190 echo "$as_me:1190: checking for $ac_word" >&5
1191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1193 echo $ECHO_N "(cached) $ECHO_C" >&6
1194 else
1195 if test -n "$ac_ct_CC"; then
1196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1197 else
1198 ac_save_IFS=$IFS; IFS=$ac_path_separator
1199 ac_dummy="$PATH"
1200 for ac_dir in $ac_dummy; do
1201 IFS=$ac_save_IFS
1202 test -z "$ac_dir" && ac_dir=.
1203 $as_executable_p "$ac_dir/$ac_word" || continue
1204 ac_cv_prog_ac_ct_CC="gcc"
1205 echo "$as_me:1205: found $ac_dir/$ac_word" >&5
1206 break
1207 done
1211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1212 if test -n "$ac_ct_CC"; then
1213 echo "$as_me:1213: result: $ac_ct_CC" >&5
1214 echo "${ECHO_T}$ac_ct_CC" >&6
1215 else
1216 echo "$as_me:1216: result: no" >&5
1217 echo "${ECHO_T}no" >&6
1220 CC=$ac_ct_CC
1221 else
1222 CC="$ac_cv_prog_CC"
1225 if test -z "$CC"; then
1226 if test -n "$ac_tool_prefix"; then
1227 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1228 set dummy ${ac_tool_prefix}cc; ac_word=$2
1229 echo "$as_me:1229: checking for $ac_word" >&5
1230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1231 if test "${ac_cv_prog_CC+set}" = set; then
1232 echo $ECHO_N "(cached) $ECHO_C" >&6
1233 else
1234 if test -n "$CC"; then
1235 ac_cv_prog_CC="$CC" # Let the user override the test.
1236 else
1237 ac_save_IFS=$IFS; IFS=$ac_path_separator
1238 ac_dummy="$PATH"
1239 for ac_dir in $ac_dummy; do
1240 IFS=$ac_save_IFS
1241 test -z "$ac_dir" && ac_dir=.
1242 $as_executable_p "$ac_dir/$ac_word" || continue
1243 ac_cv_prog_CC="${ac_tool_prefix}cc"
1244 echo "$as_me:1244: found $ac_dir/$ac_word" >&5
1245 break
1246 done
1250 CC=$ac_cv_prog_CC
1251 if test -n "$CC"; then
1252 echo "$as_me:1252: result: $CC" >&5
1253 echo "${ECHO_T}$CC" >&6
1254 else
1255 echo "$as_me:1255: result: no" >&5
1256 echo "${ECHO_T}no" >&6
1260 if test -z "$ac_cv_prog_CC"; then
1261 ac_ct_CC=$CC
1262 # Extract the first word of "cc", so it can be a program name with args.
1263 set dummy cc; ac_word=$2
1264 echo "$as_me:1264: checking for $ac_word" >&5
1265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1268 else
1269 if test -n "$ac_ct_CC"; then
1270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1271 else
1272 ac_save_IFS=$IFS; IFS=$ac_path_separator
1273 ac_dummy="$PATH"
1274 for ac_dir in $ac_dummy; do
1275 IFS=$ac_save_IFS
1276 test -z "$ac_dir" && ac_dir=.
1277 $as_executable_p "$ac_dir/$ac_word" || continue
1278 ac_cv_prog_ac_ct_CC="cc"
1279 echo "$as_me:1279: found $ac_dir/$ac_word" >&5
1280 break
1281 done
1285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1286 if test -n "$ac_ct_CC"; then
1287 echo "$as_me:1287: result: $ac_ct_CC" >&5
1288 echo "${ECHO_T}$ac_ct_CC" >&6
1289 else
1290 echo "$as_me:1290: result: no" >&5
1291 echo "${ECHO_T}no" >&6
1294 CC=$ac_ct_CC
1295 else
1296 CC="$ac_cv_prog_CC"
1300 if test -z "$CC"; then
1301 # Extract the first word of "cc", so it can be a program name with args.
1302 set dummy cc; ac_word=$2
1303 echo "$as_me:1303: checking for $ac_word" >&5
1304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1305 if test "${ac_cv_prog_CC+set}" = set; then
1306 echo $ECHO_N "(cached) $ECHO_C" >&6
1307 else
1308 if test -n "$CC"; then
1309 ac_cv_prog_CC="$CC" # Let the user override the test.
1310 else
1311 ac_prog_rejected=no
1312 ac_save_IFS=$IFS; IFS=$ac_path_separator
1313 ac_dummy="$PATH"
1314 for ac_dir in $ac_dummy; do
1315 IFS=$ac_save_IFS
1316 test -z "$ac_dir" && ac_dir=.
1317 $as_executable_p "$ac_dir/$ac_word" || continue
1318 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1319 ac_prog_rejected=yes
1320 continue
1322 ac_cv_prog_CC="cc"
1323 echo "$as_me:1323: found $ac_dir/$ac_word" >&5
1324 break
1325 done
1327 if test $ac_prog_rejected = yes; then
1328 # We found a bogon in the path, so make sure we never use it.
1329 set dummy $ac_cv_prog_CC
1330 shift
1331 if test $# != 0; then
1332 # We chose a different compiler from the bogus one.
1333 # However, it has the same basename, so the bogon will be chosen
1334 # first if we set CC to just the basename; use the full file name.
1335 shift
1336 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1337 shift
1338 ac_cv_prog_CC="$@"
1343 CC=$ac_cv_prog_CC
1344 if test -n "$CC"; then
1345 echo "$as_me:1345: result: $CC" >&5
1346 echo "${ECHO_T}$CC" >&6
1347 else
1348 echo "$as_me:1348: result: no" >&5
1349 echo "${ECHO_T}no" >&6
1353 if test -z "$CC"; then
1354 if test -n "$ac_tool_prefix"; then
1355 for ac_prog in cl
1357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1359 echo "$as_me:1359: checking for $ac_word" >&5
1360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1361 if test "${ac_cv_prog_CC+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 if test -n "$CC"; then
1365 ac_cv_prog_CC="$CC" # Let the user override the test.
1366 else
1367 ac_save_IFS=$IFS; IFS=$ac_path_separator
1368 ac_dummy="$PATH"
1369 for ac_dir in $ac_dummy; do
1370 IFS=$ac_save_IFS
1371 test -z "$ac_dir" && ac_dir=.
1372 $as_executable_p "$ac_dir/$ac_word" || continue
1373 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1374 echo "$as_me:1374: found $ac_dir/$ac_word" >&5
1375 break
1376 done
1380 CC=$ac_cv_prog_CC
1381 if test -n "$CC"; then
1382 echo "$as_me:1382: result: $CC" >&5
1383 echo "${ECHO_T}$CC" >&6
1384 else
1385 echo "$as_me:1385: result: no" >&5
1386 echo "${ECHO_T}no" >&6
1389 test -n "$CC" && break
1390 done
1392 if test -z "$CC"; then
1393 ac_ct_CC=$CC
1394 for ac_prog in cl
1396 # Extract the first word of "$ac_prog", so it can be a program name with args.
1397 set dummy $ac_prog; ac_word=$2
1398 echo "$as_me:1398: checking for $ac_word" >&5
1399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 else
1403 if test -n "$ac_ct_CC"; then
1404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1405 else
1406 ac_save_IFS=$IFS; IFS=$ac_path_separator
1407 ac_dummy="$PATH"
1408 for ac_dir in $ac_dummy; do
1409 IFS=$ac_save_IFS
1410 test -z "$ac_dir" && ac_dir=.
1411 $as_executable_p "$ac_dir/$ac_word" || continue
1412 ac_cv_prog_ac_ct_CC="$ac_prog"
1413 echo "$as_me:1413: found $ac_dir/$ac_word" >&5
1414 break
1415 done
1419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1420 if test -n "$ac_ct_CC"; then
1421 echo "$as_me:1421: result: $ac_ct_CC" >&5
1422 echo "${ECHO_T}$ac_ct_CC" >&6
1423 else
1424 echo "$as_me:1424: result: no" >&5
1425 echo "${ECHO_T}no" >&6
1428 test -n "$ac_ct_CC" && break
1429 done
1431 CC=$ac_ct_CC
1436 test -z "$CC" && { { echo "$as_me:1436: error: no acceptable cc found in \$PATH" >&5
1437 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1438 { (exit 1); exit 1; }; }
1440 # Provide some information about the compiler.
1441 echo "$as_me:1441:" \
1442 "checking for C compiler version" >&5
1443 ac_compiler=`set X $ac_compile; echo $2`
1444 { (eval echo "$as_me:1444: \"$ac_compiler --version </dev/null >&5\"") >&5
1445 (eval $ac_compiler --version </dev/null >&5) 2>&5
1446 ac_status=$?
1447 echo "$as_me:1447: \$? = $ac_status" >&5
1448 (exit $ac_status); }
1449 { (eval echo "$as_me:1449: \"$ac_compiler -v </dev/null >&5\"") >&5
1450 (eval $ac_compiler -v </dev/null >&5) 2>&5
1451 ac_status=$?
1452 echo "$as_me:1452: \$? = $ac_status" >&5
1453 (exit $ac_status); }
1454 { (eval echo "$as_me:1454: \"$ac_compiler -V </dev/null >&5\"") >&5
1455 (eval $ac_compiler -V </dev/null >&5) 2>&5
1456 ac_status=$?
1457 echo "$as_me:1457: \$? = $ac_status" >&5
1458 (exit $ac_status); }
1460 cat >conftest.$ac_ext <<_ACEOF
1461 #line 1461 "configure"
1462 #include "confdefs.h"
1465 main ()
1469 return 0;
1471 _ACEOF
1472 ac_clean_files_save=$ac_clean_files
1473 ac_clean_files="$ac_clean_files a.out a.exe"
1474 # Try to create an executable without -o first, disregard a.out.
1475 # It will help us diagnose broken compilers, and finding out an intuition
1476 # of exeext.
1477 echo "$as_me:1477: checking for C compiler default output" >&5
1478 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1479 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1480 if { (eval echo "$as_me:1480: \"$ac_link_default\"") >&5
1481 (eval $ac_link_default) 2>&5
1482 ac_status=$?
1483 echo "$as_me:1483: \$? = $ac_status" >&5
1484 (exit $ac_status); }; then
1485 # Find the output, starting from the most likely. This scheme is
1486 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1487 # resort.
1488 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1489 ls a.out conftest 2>/dev/null;
1490 ls a.* conftest.* 2>/dev/null`; do
1491 case $ac_file in
1492 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1493 a.out ) # We found the default executable, but exeext='' is most
1494 # certainly right.
1495 break;;
1496 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1497 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1498 export ac_cv_exeext
1499 break;;
1500 * ) break;;
1501 esac
1502 done
1503 else
1504 echo "$as_me: failed program was:" >&5
1505 cat conftest.$ac_ext >&5
1506 { { echo "$as_me:1506: error: C compiler cannot create executables" >&5
1507 echo "$as_me: error: C compiler cannot create executables" >&2;}
1508 { (exit 77); exit 77; }; }
1511 ac_exeext=$ac_cv_exeext
1512 echo "$as_me:1512: result: $ac_file" >&5
1513 echo "${ECHO_T}$ac_file" >&6
1515 # Check the compiler produces executables we can run. If not, either
1516 # the compiler is broken, or we cross compile.
1517 echo "$as_me:1517: checking whether the C compiler works" >&5
1518 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1519 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1520 # If not cross compiling, check that we can run a simple program.
1521 if test "$cross_compiling" != yes; then
1522 if { ac_try='./$ac_file'
1523 { (eval echo "$as_me:1523: \"$ac_try\"") >&5
1524 (eval $ac_try) 2>&5
1525 ac_status=$?
1526 echo "$as_me:1526: \$? = $ac_status" >&5
1527 (exit $ac_status); }; }; then
1528 cross_compiling=no
1529 else
1530 if test "$cross_compiling" = maybe; then
1531 cross_compiling=yes
1532 else
1533 { { echo "$as_me:1533: error: cannot run C compiled programs.
1534 If you meant to cross compile, use \`--host'." >&5
1535 echo "$as_me: error: cannot run C compiled programs.
1536 If you meant to cross compile, use \`--host'." >&2;}
1537 { (exit 1); exit 1; }; }
1541 echo "$as_me:1541: result: yes" >&5
1542 echo "${ECHO_T}yes" >&6
1544 rm -f a.out a.exe conftest$ac_cv_exeext
1545 ac_clean_files=$ac_clean_files_save
1546 # Check the compiler produces executables we can run. If not, either
1547 # the compiler is broken, or we cross compile.
1548 echo "$as_me:1548: checking whether we are cross compiling" >&5
1549 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1550 echo "$as_me:1550: result: $cross_compiling" >&5
1551 echo "${ECHO_T}$cross_compiling" >&6
1553 echo "$as_me:1553: checking for executable suffix" >&5
1554 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1555 if { (eval echo "$as_me:1555: \"$ac_link\"") >&5
1556 (eval $ac_link) 2>&5
1557 ac_status=$?
1558 echo "$as_me:1558: \$? = $ac_status" >&5
1559 (exit $ac_status); }; then
1560 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1561 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1562 # work properly (i.e., refer to `conftest.exe'), while it won't with
1563 # `rm'.
1564 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1565 case $ac_file in
1566 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1567 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1568 export ac_cv_exeext
1569 break;;
1570 * ) break;;
1571 esac
1572 done
1573 else
1574 { { echo "$as_me:1574: error: cannot compute EXEEXT: cannot compile and link" >&5
1575 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1576 { (exit 1); exit 1; }; }
1579 rm -f conftest$ac_cv_exeext
1580 echo "$as_me:1580: result: $ac_cv_exeext" >&5
1581 echo "${ECHO_T}$ac_cv_exeext" >&6
1583 rm -f conftest.$ac_ext
1584 EXEEXT=$ac_cv_exeext
1585 ac_exeext=$EXEEXT
1586 echo "$as_me:1586: checking for object suffix" >&5
1587 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1588 if test "${ac_cv_objext+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591 cat >conftest.$ac_ext <<_ACEOF
1592 #line 1592 "configure"
1593 #include "confdefs.h"
1596 main ()
1600 return 0;
1602 _ACEOF
1603 rm -f conftest.o conftest.obj
1604 if { (eval echo "$as_me:1604: \"$ac_compile\"") >&5
1605 (eval $ac_compile) 2>&5
1606 ac_status=$?
1607 echo "$as_me:1607: \$? = $ac_status" >&5
1608 (exit $ac_status); }; then
1609 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1610 case $ac_file in
1611 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1612 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1613 break;;
1614 esac
1615 done
1616 else
1617 echo "$as_me: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1619 { { echo "$as_me:1619: error: cannot compute OBJEXT: cannot compile" >&5
1620 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1621 { (exit 1); exit 1; }; }
1624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1626 echo "$as_me:1626: result: $ac_cv_objext" >&5
1627 echo "${ECHO_T}$ac_cv_objext" >&6
1628 OBJEXT=$ac_cv_objext
1629 ac_objext=$OBJEXT
1630 echo "$as_me:1630: checking whether we are using the GNU C compiler" >&5
1631 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1632 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635 cat >conftest.$ac_ext <<_ACEOF
1636 #line 1636 "configure"
1637 #include "confdefs.h"
1640 main ()
1642 #ifndef __GNUC__
1643 choke me
1644 #endif
1647 return 0;
1649 _ACEOF
1650 rm -f conftest.$ac_objext
1651 if { (eval echo "$as_me:1651: \"$ac_compile\"") >&5
1652 (eval $ac_compile) 2>&5
1653 ac_status=$?
1654 echo "$as_me:1654: \$? = $ac_status" >&5
1655 (exit $ac_status); } &&
1656 { ac_try='test -s conftest.$ac_objext'
1657 { (eval echo "$as_me:1657: \"$ac_try\"") >&5
1658 (eval $ac_try) 2>&5
1659 ac_status=$?
1660 echo "$as_me:1660: \$? = $ac_status" >&5
1661 (exit $ac_status); }; }; then
1662 ac_compiler_gnu=yes
1663 else
1664 echo "$as_me: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 ac_compiler_gnu=no
1668 rm -f conftest.$ac_objext conftest.$ac_ext
1669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1672 echo "$as_me:1672: result: $ac_cv_c_compiler_gnu" >&5
1673 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1674 GCC=`test $ac_compiler_gnu = yes && echo yes`
1675 ac_test_CFLAGS=${CFLAGS+set}
1676 ac_save_CFLAGS=$CFLAGS
1677 CFLAGS="-g"
1678 echo "$as_me:1678: checking whether $CC accepts -g" >&5
1679 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1680 if test "${ac_cv_prog_cc_g+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 cat >conftest.$ac_ext <<_ACEOF
1684 #line 1684 "configure"
1685 #include "confdefs.h"
1688 main ()
1692 return 0;
1694 _ACEOF
1695 rm -f conftest.$ac_objext
1696 if { (eval echo "$as_me:1696: \"$ac_compile\"") >&5
1697 (eval $ac_compile) 2>&5
1698 ac_status=$?
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); } &&
1701 { ac_try='test -s conftest.$ac_objext'
1702 { (eval echo "$as_me:1702: \"$ac_try\"") >&5
1703 (eval $ac_try) 2>&5
1704 ac_status=$?
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); }; }; then
1707 ac_cv_prog_cc_g=yes
1708 else
1709 echo "$as_me: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1711 ac_cv_prog_cc_g=no
1713 rm -f conftest.$ac_objext conftest.$ac_ext
1715 echo "$as_me:1715: result: $ac_cv_prog_cc_g" >&5
1716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1717 if test "$ac_test_CFLAGS" = set; then
1718 CFLAGS=$ac_save_CFLAGS
1719 elif test $ac_cv_prog_cc_g = yes; then
1720 if test "$GCC" = yes; then
1721 CFLAGS="-g -O2"
1722 else
1723 CFLAGS="-g"
1725 else
1726 if test "$GCC" = yes; then
1727 CFLAGS="-O2"
1728 else
1729 CFLAGS=
1732 # Some people use a C++ compiler to compile C. Since we use `exit',
1733 # in C++ we need to declare it. In case someone uses the same compiler
1734 # for both compiling C and C++ we need to have the C++ compiler decide
1735 # the declaration of exit, since it's the most demanding environment.
1736 cat >conftest.$ac_ext <<_ACEOF
1737 #ifndef __cplusplus
1738 choke me
1739 #endif
1740 _ACEOF
1741 rm -f conftest.$ac_objext
1742 if { (eval echo "$as_me:1742: \"$ac_compile\"") >&5
1743 (eval $ac_compile) 2>&5
1744 ac_status=$?
1745 echo "$as_me:1745: \$? = $ac_status" >&5
1746 (exit $ac_status); } &&
1747 { ac_try='test -s conftest.$ac_objext'
1748 { (eval echo "$as_me:1748: \"$ac_try\"") >&5
1749 (eval $ac_try) 2>&5
1750 ac_status=$?
1751 echo "$as_me:1751: \$? = $ac_status" >&5
1752 (exit $ac_status); }; }; then
1753 for ac_declaration in \
1755 '#include <stdlib.h>' \
1756 'extern "C" void std::exit (int) throw (); using std::exit;' \
1757 'extern "C" void std::exit (int); using std::exit;' \
1758 'extern "C" void exit (int) throw ();' \
1759 'extern "C" void exit (int);' \
1760 'void exit (int);'
1762 cat >conftest.$ac_ext <<_ACEOF
1763 #line 1763 "configure"
1764 #include "confdefs.h"
1765 #include <stdlib.h>
1766 $ac_declaration
1768 main ()
1770 exit (42);
1772 return 0;
1774 _ACEOF
1775 rm -f conftest.$ac_objext
1776 if { (eval echo "$as_me:1776: \"$ac_compile\"") >&5
1777 (eval $ac_compile) 2>&5
1778 ac_status=$?
1779 echo "$as_me:1779: \$? = $ac_status" >&5
1780 (exit $ac_status); } &&
1781 { ac_try='test -s conftest.$ac_objext'
1782 { (eval echo "$as_me:1782: \"$ac_try\"") >&5
1783 (eval $ac_try) 2>&5
1784 ac_status=$?
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1788 else
1789 echo "$as_me: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1791 continue
1793 rm -f conftest.$ac_objext conftest.$ac_ext
1794 cat >conftest.$ac_ext <<_ACEOF
1795 #line 1795 "configure"
1796 #include "confdefs.h"
1797 $ac_declaration
1799 main ()
1801 exit (42);
1803 return 0;
1805 _ACEOF
1806 rm -f conftest.$ac_objext
1807 if { (eval echo "$as_me:1807: \"$ac_compile\"") >&5
1808 (eval $ac_compile) 2>&5
1809 ac_status=$?
1810 echo "$as_me:1810: \$? = $ac_status" >&5
1811 (exit $ac_status); } &&
1812 { ac_try='test -s conftest.$ac_objext'
1813 { (eval echo "$as_me:1813: \"$ac_try\"") >&5
1814 (eval $ac_try) 2>&5
1815 ac_status=$?
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); }; }; then
1818 break
1819 else
1820 echo "$as_me: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1823 rm -f conftest.$ac_objext conftest.$ac_ext
1824 done
1825 rm -rf conftest*
1826 if test -n "$ac_declaration"; then
1827 echo '#ifdef __cplusplus' >>confdefs.h
1828 echo $ac_declaration >>confdefs.h
1829 echo '#endif' >>confdefs.h
1832 else
1833 echo "$as_me: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1836 rm -f conftest.$ac_objext conftest.$ac_ext
1837 ac_ext=c
1838 ac_cpp='$CPP $CPPFLAGS'
1839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1842 ac_main_return=return
1844 GCC_VERSION=none
1845 if test "$GCC" = yes ; then
1846 echo "$as_me:1846: checking version of $CC" >&5
1847 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1848 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1849 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1850 echo "$as_me:1850: result: $GCC_VERSION" >&5
1851 echo "${ECHO_T}$GCC_VERSION" >&6
1854 echo "$as_me:1854: checking for $CC option to accept ANSI C" >&5
1855 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1856 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 ac_cv_prog_cc_stdc=no
1860 ac_save_CC=$CC
1861 cat >conftest.$ac_ext <<_ACEOF
1862 #line 1862 "configure"
1863 #include "confdefs.h"
1864 #include <stdarg.h>
1865 #include <stdio.h>
1866 #include <sys/types.h>
1867 #include <sys/stat.h>
1868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1869 struct buf { int x; };
1870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1871 static char *e (p, i)
1872 char **p;
1873 int i;
1875 return p[i];
1877 static char *f (char * (*g) (char **, int), char **p, ...)
1879 char *s;
1880 va_list v;
1881 va_start (v,p);
1882 s = g (p, va_arg (v,int));
1883 va_end (v);
1884 return s;
1886 int test (int i, double x);
1887 struct s1 {int (*f) (int a);};
1888 struct s2 {int (*f) (double a);};
1889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1890 int argc;
1891 char **argv;
1893 main ()
1895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1897 return 0;
1899 _ACEOF
1900 # Don't try gcc -ansi; that turns off useful extensions and
1901 # breaks some systems' header files.
1902 # AIX -qlanglvl=ansi
1903 # Ultrix and OSF/1 -std1
1904 # HP-UX 10.20 and later -Ae
1905 # HP-UX older versions -Aa -D_HPUX_SOURCE
1906 # SVR4 -Xc -D__EXTENSIONS__
1907 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1909 CC="$ac_save_CC $ac_arg"
1910 rm -f conftest.$ac_objext
1911 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1913 ac_status=$?
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); } &&
1916 { ac_try='test -s conftest.$ac_objext'
1917 { (eval echo "$as_me:1917: \"$ac_try\"") >&5
1918 (eval $ac_try) 2>&5
1919 ac_status=$?
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1922 ac_cv_prog_cc_stdc=$ac_arg
1923 break
1924 else
1925 echo "$as_me: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1928 rm -f conftest.$ac_objext
1929 done
1930 rm -f conftest.$ac_ext conftest.$ac_objext
1931 CC=$ac_save_CC
1935 case "x$ac_cv_prog_cc_stdc" in
1936 x|xno)
1937 echo "$as_me:1937: result: none needed" >&5
1938 echo "${ECHO_T}none needed" >&6 ;;
1940 echo "$as_me:1940: result: $ac_cv_prog_cc_stdc" >&5
1941 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1942 CC="$CC $ac_cv_prog_cc_stdc" ;;
1943 esac
1945 # This should have been defined by AC_PROG_CC
1946 : ${CC:=cc}
1948 echo "$as_me:1948: checking \$CC variable" >&5
1949 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1950 case "$CC" in #(vi
1951 *[\ \ ]-[IUD]*)
1952 echo "$as_me:1952: result: broken" >&5
1953 echo "${ECHO_T}broken" >&6
1954 { echo "$as_me:1954: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1955 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1956 # humor him...
1957 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1958 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1960 cf_fix_cppflags=no
1961 cf_new_cflags=
1962 cf_new_cppflags=
1963 cf_new_extra_cppflags=
1965 for cf_add_cflags in $cf_flags
1967 case $cf_fix_cppflags in
1969 case $cf_add_cflags in #(vi
1970 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1971 case $cf_add_cflags in
1972 -D*)
1973 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1975 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1976 && test -z "${cf_tst_cflags}" \
1977 && cf_fix_cppflags=yes
1979 if test $cf_fix_cppflags = yes ; then
1980 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1981 continue
1982 elif test "${cf_tst_cflags}" = "\"'" ; then
1983 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1984 continue
1987 esac
1988 case "$CPPFLAGS" in
1989 *$cf_add_cflags) #(vi
1991 *) #(vi
1992 case $cf_add_cflags in #(vi
1993 -D*)
1994 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1996 CPPFLAGS=`echo "$CPPFLAGS" | \
1997 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1998 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2001 esac
2002 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2004 esac
2007 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2009 esac
2011 yes)
2012 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2014 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2016 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2017 && test -z "${cf_tst_cflags}" \
2018 && cf_fix_cppflags=no
2020 esac
2021 done
2023 if test -n "$cf_new_cflags" ; then
2025 CFLAGS="$CFLAGS $cf_new_cflags"
2028 if test -n "$cf_new_cppflags" ; then
2030 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2033 if test -n "$cf_new_extra_cppflags" ; then
2035 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2040 echo "$as_me:2040: result: ok" >&5
2041 echo "${ECHO_T}ok" >&6
2043 esac
2045 echo "$as_me:2045: checking whether ${MAKE-make} sets \${MAKE}" >&5
2046 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2047 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2048 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 cat >conftest.make <<\EOF
2052 all:
2053 @echo 'ac_maketemp="${MAKE}"'
2055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2056 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2057 if test -n "$ac_maketemp"; then
2058 eval ac_cv_prog_make_${ac_make}_set=yes
2059 else
2060 eval ac_cv_prog_make_${ac_make}_set=no
2062 rm -f conftest.make
2064 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2065 echo "$as_me:2065: result: yes" >&5
2066 echo "${ECHO_T}yes" >&6
2067 SET_MAKE=
2068 else
2069 echo "$as_me:2069: result: no" >&5
2070 echo "${ECHO_T}no" >&6
2071 SET_MAKE="MAKE=${MAKE-make}"
2074 # Find a good install program. We prefer a C program (faster),
2075 # so one script is as good as another. But avoid the broken or
2076 # incompatible versions:
2077 # SysV /etc/install, /usr/sbin/install
2078 # SunOS /usr/etc/install
2079 # IRIX /sbin/install
2080 # AIX /bin/install
2081 # AmigaOS /C/install, which installs bootblocks on floppy discs
2082 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2085 # ./install, which can be erroneously created by make from ./install.sh.
2086 echo "$as_me:2086: checking for a BSD compatible install" >&5
2087 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2088 if test -z "$INSTALL"; then
2089 if test "${ac_cv_path_install+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092 ac_save_IFS=$IFS; IFS=$ac_path_separator
2093 for ac_dir in $PATH; do
2094 IFS=$ac_save_IFS
2095 # Account for people who put trailing slashes in PATH elements.
2096 case $ac_dir/ in
2097 / | ./ | .// | /cC/* \
2098 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2099 | /usr/ucb/* ) ;;
2101 # OSF1 and SCO ODT 3.0 have their own names for install.
2102 # Don't use installbsd from OSF since it installs stuff as root
2103 # by default.
2104 for ac_prog in ginstall scoinst install; do
2105 if $as_executable_p "$ac_dir/$ac_prog"; then
2106 if test $ac_prog = install &&
2107 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2108 # AIX install. It has an incompatible calling convention.
2110 elif test $ac_prog = install &&
2111 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2112 # program-specific install script used by HP pwplus--don't use.
2114 else
2115 ac_cv_path_install="$ac_dir/$ac_prog -c"
2116 break 2
2119 done
2121 esac
2122 done
2125 if test "${ac_cv_path_install+set}" = set; then
2126 INSTALL=$ac_cv_path_install
2127 else
2128 # As a last resort, use the slow shell script. We don't cache a
2129 # path for INSTALL within a source directory, because that will
2130 # break other packages using the cache if that directory is
2131 # removed, or if the path is relative.
2132 INSTALL=$ac_install_sh
2135 echo "$as_me:2135: result: $INSTALL" >&5
2136 echo "${ECHO_T}$INSTALL" >&6
2138 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2139 # It thinks the first close brace ends the variable substitution.
2140 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2142 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2144 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2146 echo "$as_me:2146: checking if filesystem supports mixed-case filenames" >&5
2147 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2148 if test "${cf_cv_mixedcase+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2152 if test "$cross_compiling" = yes ; then
2153 case $target_alias in #(vi
2154 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
2155 cf_cv_mixedcase=no
2158 cf_cv_mixedcase=yes
2160 esac
2161 else
2162 rm -f conftest CONFTEST
2163 echo test >conftest
2164 if test -f CONFTEST ; then
2165 cf_cv_mixedcase=no
2166 else
2167 cf_cv_mixedcase=yes
2169 rm -f conftest CONFTEST
2173 echo "$as_me:2173: result: $cf_cv_mixedcase" >&5
2174 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2175 test "$cf_cv_mixedcase" = yes &&
2176 cat >>confdefs.h <<\EOF
2177 #define MIXEDCASE_FILENAMES 1
2180 for ac_prog in exctags ctags
2182 # Extract the first word of "$ac_prog", so it can be a program name with args.
2183 set dummy $ac_prog; ac_word=$2
2184 echo "$as_me:2184: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CTAGS+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189 if test -n "$CTAGS"; then
2190 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2191 else
2192 ac_save_IFS=$IFS; IFS=$ac_path_separator
2193 ac_dummy="$PATH"
2194 for ac_dir in $ac_dummy; do
2195 IFS=$ac_save_IFS
2196 test -z "$ac_dir" && ac_dir=.
2197 $as_executable_p "$ac_dir/$ac_word" || continue
2198 ac_cv_prog_CTAGS="$ac_prog"
2199 echo "$as_me:2199: found $ac_dir/$ac_word" >&5
2200 break
2201 done
2205 CTAGS=$ac_cv_prog_CTAGS
2206 if test -n "$CTAGS"; then
2207 echo "$as_me:2207: result: $CTAGS" >&5
2208 echo "${ECHO_T}$CTAGS" >&6
2209 else
2210 echo "$as_me:2210: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2214 test -n "$CTAGS" && break
2215 done
2217 for ac_prog in exetags etags
2219 # Extract the first word of "$ac_prog", so it can be a program name with args.
2220 set dummy $ac_prog; ac_word=$2
2221 echo "$as_me:2221: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_ETAGS+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 if test -n "$ETAGS"; then
2227 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2228 else
2229 ac_save_IFS=$IFS; IFS=$ac_path_separator
2230 ac_dummy="$PATH"
2231 for ac_dir in $ac_dummy; do
2232 IFS=$ac_save_IFS
2233 test -z "$ac_dir" && ac_dir=.
2234 $as_executable_p "$ac_dir/$ac_word" || continue
2235 ac_cv_prog_ETAGS="$ac_prog"
2236 echo "$as_me:2236: found $ac_dir/$ac_word" >&5
2237 break
2238 done
2242 ETAGS=$ac_cv_prog_ETAGS
2243 if test -n "$ETAGS"; then
2244 echo "$as_me:2244: result: $ETAGS" >&5
2245 echo "${ECHO_T}$ETAGS" >&6
2246 else
2247 echo "$as_me:2247: result: no" >&5
2248 echo "${ECHO_T}no" >&6
2251 test -n "$ETAGS" && break
2252 done
2254 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2255 set dummy ${CTAGS:-ctags}; ac_word=$2
2256 echo "$as_me:2256: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 if test -n "$MAKE_LOWER_TAGS"; then
2262 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2263 else
2264 ac_save_IFS=$IFS; IFS=$ac_path_separator
2265 ac_dummy="$PATH"
2266 for ac_dir in $ac_dummy; do
2267 IFS=$ac_save_IFS
2268 test -z "$ac_dir" && ac_dir=.
2269 $as_executable_p "$ac_dir/$ac_word" || continue
2270 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2271 echo "$as_me:2271: found $ac_dir/$ac_word" >&5
2272 break
2273 done
2275 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2278 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2279 if test -n "$MAKE_LOWER_TAGS"; then
2280 echo "$as_me:2280: result: $MAKE_LOWER_TAGS" >&5
2281 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2282 else
2283 echo "$as_me:2283: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2287 if test "$cf_cv_mixedcase" = yes ; then
2288 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2289 set dummy ${ETAGS:-etags}; ac_word=$2
2290 echo "$as_me:2290: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2292 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295 if test -n "$MAKE_UPPER_TAGS"; then
2296 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2297 else
2298 ac_save_IFS=$IFS; IFS=$ac_path_separator
2299 ac_dummy="$PATH"
2300 for ac_dir in $ac_dummy; do
2301 IFS=$ac_save_IFS
2302 test -z "$ac_dir" && ac_dir=.
2303 $as_executable_p "$ac_dir/$ac_word" || continue
2304 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2305 echo "$as_me:2305: found $ac_dir/$ac_word" >&5
2306 break
2307 done
2309 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2312 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2313 if test -n "$MAKE_UPPER_TAGS"; then
2314 echo "$as_me:2314: result: $MAKE_UPPER_TAGS" >&5
2315 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2316 else
2317 echo "$as_me:2317: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2321 else
2322 MAKE_UPPER_TAGS=no
2325 if test "$MAKE_UPPER_TAGS" = yes ; then
2326 MAKE_UPPER_TAGS=
2327 else
2328 MAKE_UPPER_TAGS="#"
2331 if test "$MAKE_LOWER_TAGS" = yes ; then
2332 MAKE_LOWER_TAGS=
2333 else
2334 MAKE_LOWER_TAGS="#"
2337 for ac_prog in mawk gawk nawk awk
2339 # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 echo "$as_me:2341: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_AWK+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346 if test -n "$AWK"; then
2347 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2348 else
2349 ac_save_IFS=$IFS; IFS=$ac_path_separator
2350 ac_dummy="$PATH"
2351 for ac_dir in $ac_dummy; do
2352 IFS=$ac_save_IFS
2353 test -z "$ac_dir" && ac_dir=.
2354 $as_executable_p "$ac_dir/$ac_word" || continue
2355 ac_cv_prog_AWK="$ac_prog"
2356 echo "$as_me:2356: found $ac_dir/$ac_word" >&5
2357 break
2358 done
2362 AWK=$ac_cv_prog_AWK
2363 if test -n "$AWK"; then
2364 echo "$as_me:2364: result: $AWK" >&5
2365 echo "${ECHO_T}$AWK" >&6
2366 else
2367 echo "$as_me:2367: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2371 test -n "$AWK" && break
2372 done
2374 test -z "$AWK" && { { echo "$as_me:2374: error: No awk program found" >&5
2375 echo "$as_me: error: No awk program found" >&2;}
2376 { (exit 1); exit 1; }; }
2378 for ac_prog in tdlint lint alint splint lclint
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 echo "$as_me:2382: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2384 if test "${ac_cv_prog_LINT+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 if test -n "$LINT"; then
2388 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2389 else
2390 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391 ac_dummy="$PATH"
2392 for ac_dir in $ac_dummy; do
2393 IFS=$ac_save_IFS
2394 test -z "$ac_dir" && ac_dir=.
2395 $as_executable_p "$ac_dir/$ac_word" || continue
2396 ac_cv_prog_LINT="$ac_prog"
2397 echo "$as_me:2397: found $ac_dir/$ac_word" >&5
2398 break
2399 done
2403 LINT=$ac_cv_prog_LINT
2404 if test -n "$LINT"; then
2405 echo "$as_me:2405: result: $LINT" >&5
2406 echo "${ECHO_T}$LINT" >&6
2407 else
2408 echo "$as_me:2408: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2412 test -n "$LINT" && break
2413 done
2415 cf_XOPEN_SOURCE=500
2416 cf_POSIX_C_SOURCE=199506L
2417 cf_xopen_source=
2419 case $host_os in #(vi
2420 aix[4-7]*) #(vi
2421 cf_xopen_source="-D_ALL_SOURCE"
2423 cygwin|msys) #(vi
2424 cf_XOPEN_SOURCE=600
2426 darwin[0-8].*) #(vi
2427 cf_xopen_source="-D_APPLE_C_SOURCE"
2429 darwin*) #(vi
2430 cf_xopen_source="-D_DARWIN_C_SOURCE"
2431 cf_XOPEN_SOURCE=
2433 freebsd*|dragonfly*) #(vi
2434 # 5.x headers associate
2435 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2436 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2437 cf_POSIX_C_SOURCE=200112L
2438 cf_XOPEN_SOURCE=600
2439 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2441 hpux11*) #(vi
2442 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2444 hpux*) #(vi
2445 cf_xopen_source="-D_HPUX_SOURCE"
2447 irix[56].*) #(vi
2448 cf_xopen_source="-D_SGI_SOURCE"
2449 cf_XOPEN_SOURCE=
2451 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2453 echo "$as_me:2453: checking if we must define _GNU_SOURCE" >&5
2454 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2455 if test "${cf_cv_gnu_source+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2459 cat >conftest.$ac_ext <<_ACEOF
2460 #line 2460 "configure"
2461 #include "confdefs.h"
2462 #include <sys/types.h>
2464 main ()
2467 #ifndef _XOPEN_SOURCE
2468 make an error
2469 #endif
2471 return 0;
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:2475: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>&5
2477 ac_status=$?
2478 echo "$as_me:2478: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:2481: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:2484: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 cf_cv_gnu_source=no
2487 else
2488 echo "$as_me: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2490 cf_save="$CPPFLAGS"
2491 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2492 cat >conftest.$ac_ext <<_ACEOF
2493 #line 2493 "configure"
2494 #include "confdefs.h"
2495 #include <sys/types.h>
2497 main ()
2500 #ifdef _XOPEN_SOURCE
2501 make an error
2502 #endif
2504 return 0;
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:2508: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2510 ac_status=$?
2511 echo "$as_me:2511: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:2514: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:2517: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 cf_cv_gnu_source=no
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 cf_cv_gnu_source=yes
2525 rm -f conftest.$ac_objext conftest.$ac_ext
2526 CPPFLAGS="$cf_save"
2529 rm -f conftest.$ac_objext conftest.$ac_ext
2532 echo "$as_me:2532: result: $cf_cv_gnu_source" >&5
2533 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2534 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2537 minix*) #(vi
2538 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
2540 mirbsd*) #(vi
2541 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2542 cf_XOPEN_SOURCE=
2544 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2546 cf_save_CFLAGS="$CFLAGS"
2547 cf_save_CPPFLAGS="$CPPFLAGS"
2549 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2550 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2551 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2553 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2554 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2555 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2557 echo "$as_me:2557: checking if we should define _POSIX_C_SOURCE" >&5
2558 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2559 if test "${cf_cv_posix_c_source+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2563 echo "${as_me:-configure}:2563: testing if the symbol is already defined go no further ..." 1>&5
2565 cat >conftest.$ac_ext <<_ACEOF
2566 #line 2566 "configure"
2567 #include "confdefs.h"
2568 #include <sys/types.h>
2570 main ()
2573 #ifndef _POSIX_C_SOURCE
2574 make an error
2575 #endif
2577 return 0;
2579 _ACEOF
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:2581: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>&5
2583 ac_status=$?
2584 echo "$as_me:2584: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:2587: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:2590: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 cf_cv_posix_c_source=no
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2596 cf_want_posix_source=no
2597 case .$cf_POSIX_C_SOURCE in #(vi
2598 .[12]??*) #(vi
2599 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2601 .2) #(vi
2602 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2603 cf_want_posix_source=yes
2606 cf_want_posix_source=yes
2608 esac
2609 if test "$cf_want_posix_source" = yes ; then
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line 2611 "configure"
2612 #include "confdefs.h"
2613 #include <sys/types.h>
2615 main ()
2618 #ifdef _POSIX_SOURCE
2619 make an error
2620 #endif
2622 return 0;
2624 _ACEOF
2625 rm -f conftest.$ac_objext
2626 if { (eval echo "$as_me:2626: \"$ac_compile\"") >&5
2627 (eval $ac_compile) 2>&5
2628 ac_status=$?
2629 echo "$as_me:2629: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 { ac_try='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:2632: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:2635: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2638 else
2639 echo "$as_me: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2641 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2643 rm -f conftest.$ac_objext conftest.$ac_ext
2646 echo "${as_me:-configure}:2646: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2648 CFLAGS="$cf_trim_CFLAGS"
2649 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2651 echo "${as_me:-configure}:2651: testing if the second compile does not leave our definition intact error ..." 1>&5
2653 cat >conftest.$ac_ext <<_ACEOF
2654 #line 2654 "configure"
2655 #include "confdefs.h"
2656 #include <sys/types.h>
2658 main ()
2661 #ifndef _POSIX_C_SOURCE
2662 make an error
2663 #endif
2665 return 0;
2667 _ACEOF
2668 rm -f conftest.$ac_objext
2669 if { (eval echo "$as_me:2669: \"$ac_compile\"") >&5
2670 (eval $ac_compile) 2>&5
2671 ac_status=$?
2672 echo "$as_me:2672: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -s conftest.$ac_objext'
2675 { (eval echo "$as_me:2675: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:2678: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2681 else
2682 echo "$as_me: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2684 cf_cv_posix_c_source=no
2686 rm -f conftest.$ac_objext conftest.$ac_ext
2687 CFLAGS="$cf_save_CFLAGS"
2688 CPPFLAGS="$cf_save_CPPFLAGS"
2691 rm -f conftest.$ac_objext conftest.$ac_ext
2694 echo "$as_me:2694: result: $cf_cv_posix_c_source" >&5
2695 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2697 if test "$cf_cv_posix_c_source" != no ; then
2698 CFLAGS="$cf_trim_CFLAGS"
2699 CPPFLAGS="$cf_trim_CPPFLAGS"
2701 cf_fix_cppflags=no
2702 cf_new_cflags=
2703 cf_new_cppflags=
2704 cf_new_extra_cppflags=
2706 for cf_add_cflags in $cf_cv_posix_c_source
2708 case $cf_fix_cppflags in
2710 case $cf_add_cflags in #(vi
2711 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2712 case $cf_add_cflags in
2713 -D*)
2714 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2716 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2717 && test -z "${cf_tst_cflags}" \
2718 && cf_fix_cppflags=yes
2720 if test $cf_fix_cppflags = yes ; then
2721 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2722 continue
2723 elif test "${cf_tst_cflags}" = "\"'" ; then
2724 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2725 continue
2728 esac
2729 case "$CPPFLAGS" in
2730 *$cf_add_cflags) #(vi
2732 *) #(vi
2733 case $cf_add_cflags in #(vi
2734 -D*)
2735 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2737 CPPFLAGS=`echo "$CPPFLAGS" | \
2738 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2739 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2742 esac
2743 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2745 esac
2748 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2750 esac
2752 yes)
2753 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2755 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2757 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2758 && test -z "${cf_tst_cflags}" \
2759 && cf_fix_cppflags=no
2761 esac
2762 done
2764 if test -n "$cf_new_cflags" ; then
2766 CFLAGS="$CFLAGS $cf_new_cflags"
2769 if test -n "$cf_new_cppflags" ; then
2771 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2774 if test -n "$cf_new_extra_cppflags" ; then
2776 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2782 netbsd*) #(vi
2783 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2785 openbsd[4-9]*) #(vi
2786 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
2787 cf_xopen_source="-D_BSD_SOURCE"
2788 cf_XOPEN_SOURCE=600
2790 openbsd*) #(vi
2791 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2793 osf[45]*) #(vi
2794 cf_xopen_source="-D_OSF_SOURCE"
2796 nto-qnx*) #(vi
2797 cf_xopen_source="-D_QNX_SOURCE"
2799 sco*) #(vi
2800 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2802 solaris2.*) #(vi
2803 cf_xopen_source="-D__EXTENSIONS__"
2804 cf_cv_xopen_source=broken
2806 sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
2807 cf_XOPEN_SOURCE=
2808 cf_POSIX_C_SOURCE=
2812 echo "$as_me:2812: checking if we should define _XOPEN_SOURCE" >&5
2813 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2814 if test "${cf_cv_xopen_source+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line 2819 "configure"
2820 #include "confdefs.h"
2822 #include <stdlib.h>
2823 #include <string.h>
2824 #include <sys/types.h>
2827 main ()
2830 #ifndef _XOPEN_SOURCE
2831 make an error
2832 #endif
2834 return 0;
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:2838: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>&5
2840 ac_status=$?
2841 echo "$as_me:2841: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:2844: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:2847: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 cf_cv_xopen_source=no
2850 else
2851 echo "$as_me: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2853 cf_save="$CPPFLAGS"
2854 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2855 cat >conftest.$ac_ext <<_ACEOF
2856 #line 2856 "configure"
2857 #include "confdefs.h"
2859 #include <stdlib.h>
2860 #include <string.h>
2861 #include <sys/types.h>
2864 main ()
2867 #ifdef _XOPEN_SOURCE
2868 make an error
2869 #endif
2871 return 0;
2873 _ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:2875: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>&5
2877 ac_status=$?
2878 echo "$as_me:2878: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -s conftest.$ac_objext'
2881 { (eval echo "$as_me:2881: \"$ac_try\"") >&5
2882 (eval $ac_try) 2>&5
2883 ac_status=$?
2884 echo "$as_me:2884: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2886 cf_cv_xopen_source=no
2887 else
2888 echo "$as_me: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2890 cf_cv_xopen_source=$cf_XOPEN_SOURCE
2892 rm -f conftest.$ac_objext conftest.$ac_ext
2893 CPPFLAGS="$cf_save"
2896 rm -f conftest.$ac_objext conftest.$ac_ext
2899 echo "$as_me:2899: result: $cf_cv_xopen_source" >&5
2900 echo "${ECHO_T}$cf_cv_xopen_source" >&6
2902 if test "$cf_cv_xopen_source" != no ; then
2904 CFLAGS=`echo "$CFLAGS" | \
2905 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2906 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2908 CPPFLAGS=`echo "$CPPFLAGS" | \
2909 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2910 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2912 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
2914 cf_fix_cppflags=no
2915 cf_new_cflags=
2916 cf_new_cppflags=
2917 cf_new_extra_cppflags=
2919 for cf_add_cflags in $cf_temp_xopen_source
2921 case $cf_fix_cppflags in
2923 case $cf_add_cflags in #(vi
2924 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2925 case $cf_add_cflags in
2926 -D*)
2927 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2929 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2930 && test -z "${cf_tst_cflags}" \
2931 && cf_fix_cppflags=yes
2933 if test $cf_fix_cppflags = yes ; then
2934 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2935 continue
2936 elif test "${cf_tst_cflags}" = "\"'" ; then
2937 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2938 continue
2941 esac
2942 case "$CPPFLAGS" in
2943 *$cf_add_cflags) #(vi
2945 *) #(vi
2946 case $cf_add_cflags in #(vi
2947 -D*)
2948 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2950 CPPFLAGS=`echo "$CPPFLAGS" | \
2951 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2952 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2955 esac
2956 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2958 esac
2961 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2963 esac
2965 yes)
2966 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2968 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2970 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2971 && test -z "${cf_tst_cflags}" \
2972 && cf_fix_cppflags=no
2974 esac
2975 done
2977 if test -n "$cf_new_cflags" ; then
2979 CFLAGS="$CFLAGS $cf_new_cflags"
2982 if test -n "$cf_new_cppflags" ; then
2984 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2987 if test -n "$cf_new_extra_cppflags" ; then
2989 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2994 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2996 cf_save_CFLAGS="$CFLAGS"
2997 cf_save_CPPFLAGS="$CPPFLAGS"
2999 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3000 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3001 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3003 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3004 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3005 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3007 echo "$as_me:3007: checking if we should define _POSIX_C_SOURCE" >&5
3008 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3009 if test "${cf_cv_posix_c_source+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3013 echo "${as_me:-configure}:3013: testing if the symbol is already defined go no further ..." 1>&5
3015 cat >conftest.$ac_ext <<_ACEOF
3016 #line 3016 "configure"
3017 #include "confdefs.h"
3018 #include <sys/types.h>
3020 main ()
3023 #ifndef _POSIX_C_SOURCE
3024 make an error
3025 #endif
3027 return 0;
3029 _ACEOF
3030 rm -f conftest.$ac_objext
3031 if { (eval echo "$as_me:3031: \"$ac_compile\"") >&5
3032 (eval $ac_compile) 2>&5
3033 ac_status=$?
3034 echo "$as_me:3034: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (eval echo "$as_me:3037: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3042 cf_cv_posix_c_source=no
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3046 cf_want_posix_source=no
3047 case .$cf_POSIX_C_SOURCE in #(vi
3048 .[12]??*) #(vi
3049 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3051 .2) #(vi
3052 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3053 cf_want_posix_source=yes
3056 cf_want_posix_source=yes
3058 esac
3059 if test "$cf_want_posix_source" = yes ; then
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line 3061 "configure"
3062 #include "confdefs.h"
3063 #include <sys/types.h>
3065 main ()
3068 #ifdef _POSIX_SOURCE
3069 make an error
3070 #endif
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:3076: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>&5
3078 ac_status=$?
3079 echo "$as_me:3079: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:3082: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:3085: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3091 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3093 rm -f conftest.$ac_objext conftest.$ac_ext
3096 echo "${as_me:-configure}:3096: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3098 CFLAGS="$cf_trim_CFLAGS"
3099 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3101 echo "${as_me:-configure}:3101: testing if the second compile does not leave our definition intact error ..." 1>&5
3103 cat >conftest.$ac_ext <<_ACEOF
3104 #line 3104 "configure"
3105 #include "confdefs.h"
3106 #include <sys/types.h>
3108 main ()
3111 #ifndef _POSIX_C_SOURCE
3112 make an error
3113 #endif
3115 return 0;
3117 _ACEOF
3118 rm -f conftest.$ac_objext
3119 if { (eval echo "$as_me:3119: \"$ac_compile\"") >&5
3120 (eval $ac_compile) 2>&5
3121 ac_status=$?
3122 echo "$as_me:3122: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (eval echo "$as_me:3125: \"$ac_try\"") >&5
3126 (eval $ac_try) 2>&5
3127 ac_status=$?
3128 echo "$as_me:3128: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3131 else
3132 echo "$as_me: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3134 cf_cv_posix_c_source=no
3136 rm -f conftest.$ac_objext conftest.$ac_ext
3137 CFLAGS="$cf_save_CFLAGS"
3138 CPPFLAGS="$cf_save_CPPFLAGS"
3141 rm -f conftest.$ac_objext conftest.$ac_ext
3144 echo "$as_me:3144: result: $cf_cv_posix_c_source" >&5
3145 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3147 if test "$cf_cv_posix_c_source" != no ; then
3148 CFLAGS="$cf_trim_CFLAGS"
3149 CPPFLAGS="$cf_trim_CPPFLAGS"
3151 cf_fix_cppflags=no
3152 cf_new_cflags=
3153 cf_new_cppflags=
3154 cf_new_extra_cppflags=
3156 for cf_add_cflags in $cf_cv_posix_c_source
3158 case $cf_fix_cppflags in
3160 case $cf_add_cflags in #(vi
3161 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3162 case $cf_add_cflags in
3163 -D*)
3164 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3166 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3167 && test -z "${cf_tst_cflags}" \
3168 && cf_fix_cppflags=yes
3170 if test $cf_fix_cppflags = yes ; then
3171 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3172 continue
3173 elif test "${cf_tst_cflags}" = "\"'" ; then
3174 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3175 continue
3178 esac
3179 case "$CPPFLAGS" in
3180 *$cf_add_cflags) #(vi
3182 *) #(vi
3183 case $cf_add_cflags in #(vi
3184 -D*)
3185 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3187 CPPFLAGS=`echo "$CPPFLAGS" | \
3188 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3189 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3192 esac
3193 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3195 esac
3198 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3200 esac
3202 yes)
3203 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3205 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3207 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3208 && test -z "${cf_tst_cflags}" \
3209 && cf_fix_cppflags=no
3211 esac
3212 done
3214 if test -n "$cf_new_cflags" ; then
3216 CFLAGS="$CFLAGS $cf_new_cflags"
3219 if test -n "$cf_new_cppflags" ; then
3221 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3224 if test -n "$cf_new_extra_cppflags" ; then
3226 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3232 esac
3234 if test -n "$cf_xopen_source" ; then
3236 cf_fix_cppflags=no
3237 cf_new_cflags=
3238 cf_new_cppflags=
3239 cf_new_extra_cppflags=
3241 for cf_add_cflags in $cf_xopen_source
3243 case $cf_fix_cppflags in
3245 case $cf_add_cflags in #(vi
3246 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3247 case $cf_add_cflags in
3248 -D*)
3249 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3251 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3252 && test -z "${cf_tst_cflags}" \
3253 && cf_fix_cppflags=yes
3255 if test $cf_fix_cppflags = yes ; then
3256 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3257 continue
3258 elif test "${cf_tst_cflags}" = "\"'" ; then
3259 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3260 continue
3263 esac
3264 case "$CPPFLAGS" in
3265 *$cf_add_cflags) #(vi
3267 *) #(vi
3268 case $cf_add_cflags in #(vi
3269 -D*)
3270 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3272 CPPFLAGS=`echo "$CPPFLAGS" | \
3273 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3274 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3277 esac
3278 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3280 esac
3283 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3285 esac
3287 yes)
3288 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3290 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3292 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3293 && test -z "${cf_tst_cflags}" \
3294 && cf_fix_cppflags=no
3296 esac
3297 done
3299 if test -n "$cf_new_cflags" ; then
3300 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
3302 echo "${as_me:-configure}:3302: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3304 CFLAGS="$CFLAGS $cf_new_cflags"
3307 if test -n "$cf_new_cppflags" ; then
3308 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3310 echo "${as_me:-configure}:3310: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3312 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3315 if test -n "$cf_new_extra_cppflags" ; then
3316 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3318 echo "${as_me:-configure}:3318: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
3320 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3325 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3326 echo "$as_me:3326: checking if _XOPEN_SOURCE really is set" >&5
3327 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3328 cat >conftest.$ac_ext <<_ACEOF
3329 #line 3329 "configure"
3330 #include "confdefs.h"
3331 #include <stdlib.h>
3333 main ()
3336 #ifndef _XOPEN_SOURCE
3337 make an error
3338 #endif
3340 return 0;
3342 _ACEOF
3343 rm -f conftest.$ac_objext
3344 if { (eval echo "$as_me:3344: \"$ac_compile\"") >&5
3345 (eval $ac_compile) 2>&5
3346 ac_status=$?
3347 echo "$as_me:3347: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:3350: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:3353: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 cf_XOPEN_SOURCE_set=yes
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 cf_XOPEN_SOURCE_set=no
3361 rm -f conftest.$ac_objext conftest.$ac_ext
3362 echo "$as_me:3362: result: $cf_XOPEN_SOURCE_set" >&5
3363 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3364 if test $cf_XOPEN_SOURCE_set = yes
3365 then
3366 cat >conftest.$ac_ext <<_ACEOF
3367 #line 3367 "configure"
3368 #include "confdefs.h"
3369 #include <stdlib.h>
3371 main ()
3374 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3375 make an error
3376 #endif
3378 return 0;
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:3382: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>&5
3384 ac_status=$?
3385 echo "$as_me:3385: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -s conftest.$ac_objext'
3388 { (eval echo "$as_me:3388: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:3391: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 cf_XOPEN_SOURCE_set_ok=yes
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 cf_XOPEN_SOURCE_set_ok=no
3399 rm -f conftest.$ac_objext conftest.$ac_ext
3400 if test $cf_XOPEN_SOURCE_set_ok = no
3401 then
3402 { echo "$as_me:3402: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3403 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3405 else
3407 echo "$as_me:3407: checking if we should define _XOPEN_SOURCE" >&5
3408 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3409 if test "${cf_cv_xopen_source+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3413 cat >conftest.$ac_ext <<_ACEOF
3414 #line 3414 "configure"
3415 #include "confdefs.h"
3417 #include <stdlib.h>
3418 #include <string.h>
3419 #include <sys/types.h>
3422 main ()
3425 #ifndef _XOPEN_SOURCE
3426 make an error
3427 #endif
3429 return 0;
3431 _ACEOF
3432 rm -f conftest.$ac_objext
3433 if { (eval echo "$as_me:3433: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>&5
3435 ac_status=$?
3436 echo "$as_me:3436: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:3439: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:3442: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 cf_cv_xopen_source=no
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 cf_save="$CPPFLAGS"
3449 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3450 cat >conftest.$ac_ext <<_ACEOF
3451 #line 3451 "configure"
3452 #include "confdefs.h"
3454 #include <stdlib.h>
3455 #include <string.h>
3456 #include <sys/types.h>
3459 main ()
3462 #ifdef _XOPEN_SOURCE
3463 make an error
3464 #endif
3466 return 0;
3468 _ACEOF
3469 rm -f conftest.$ac_objext
3470 if { (eval echo "$as_me:3470: \"$ac_compile\"") >&5
3471 (eval $ac_compile) 2>&5
3472 ac_status=$?
3473 echo "$as_me:3473: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -s conftest.$ac_objext'
3476 { (eval echo "$as_me:3476: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:3479: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 cf_cv_xopen_source=no
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3485 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3487 rm -f conftest.$ac_objext conftest.$ac_ext
3488 CPPFLAGS="$cf_save"
3491 rm -f conftest.$ac_objext conftest.$ac_ext
3494 echo "$as_me:3494: result: $cf_cv_xopen_source" >&5
3495 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3497 if test "$cf_cv_xopen_source" != no ; then
3499 CFLAGS=`echo "$CFLAGS" | \
3500 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3501 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3503 CPPFLAGS=`echo "$CPPFLAGS" | \
3504 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3505 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3507 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3509 cf_fix_cppflags=no
3510 cf_new_cflags=
3511 cf_new_cppflags=
3512 cf_new_extra_cppflags=
3514 for cf_add_cflags in $cf_temp_xopen_source
3516 case $cf_fix_cppflags in
3518 case $cf_add_cflags in #(vi
3519 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3520 case $cf_add_cflags in
3521 -D*)
3522 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3524 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3525 && test -z "${cf_tst_cflags}" \
3526 && cf_fix_cppflags=yes
3528 if test $cf_fix_cppflags = yes ; then
3529 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3530 continue
3531 elif test "${cf_tst_cflags}" = "\"'" ; then
3532 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3533 continue
3536 esac
3537 case "$CPPFLAGS" in
3538 *$cf_add_cflags) #(vi
3540 *) #(vi
3541 case $cf_add_cflags in #(vi
3542 -D*)
3543 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3545 CPPFLAGS=`echo "$CPPFLAGS" | \
3546 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3547 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3550 esac
3551 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3553 esac
3556 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3558 esac
3560 yes)
3561 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3563 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3565 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3566 && test -z "${cf_tst_cflags}" \
3567 && cf_fix_cppflags=no
3569 esac
3570 done
3572 if test -n "$cf_new_cflags" ; then
3574 CFLAGS="$CFLAGS $cf_new_cflags"
3577 if test -n "$cf_new_cppflags" ; then
3579 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3582 if test -n "$cf_new_extra_cppflags" ; then
3584 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3592 ac_ext=c
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 ac_main_return=return
3598 echo "$as_me:3598: checking how to run the C preprocessor" >&5
3599 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3600 # On Suns, sometimes $CPP names a directory.
3601 if test -n "$CPP" && test -d "$CPP"; then
3602 CPP=
3604 if test -z "$CPP"; then
3605 if test "${ac_cv_prog_CPP+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 # Double quotes because CPP needs to be expanded
3609 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3611 ac_preproc_ok=false
3612 for ac_c_preproc_warn_flag in '' yes
3614 # Use a header file that comes with gcc, so configuring glibc
3615 # with a fresh cross-compiler works.
3616 # On the NeXT, cc -E runs the code through the compiler's parser,
3617 # not just through cpp. "Syntax error" is here to catch this case.
3618 cat >conftest.$ac_ext <<_ACEOF
3619 #line 3619 "configure"
3620 #include "confdefs.h"
3621 #include <assert.h>
3622 Syntax error
3623 _ACEOF
3624 if { (eval echo "$as_me:3624: \"$ac_cpp conftest.$ac_ext\"") >&5
3625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3626 ac_status=$?
3627 egrep -v '^ *\+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:3630: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null; then
3632 if test -s conftest.err; then
3633 ac_cpp_err=$ac_c_preproc_warn_flag
3634 else
3635 ac_cpp_err=
3637 else
3638 ac_cpp_err=yes
3640 if test -z "$ac_cpp_err"; then
3642 else
3643 echo "$as_me: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3645 # Broken: fails on valid input.
3646 continue
3648 rm -f conftest.err conftest.$ac_ext
3650 # OK, works on sane cases. Now check whether non-existent headers
3651 # can be detected and how.
3652 cat >conftest.$ac_ext <<_ACEOF
3653 #line 3653 "configure"
3654 #include "confdefs.h"
3655 #include <ac_nonexistent.h>
3656 _ACEOF
3657 if { (eval echo "$as_me:3657: \"$ac_cpp conftest.$ac_ext\"") >&5
3658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659 ac_status=$?
3660 egrep -v '^ *\+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:3663: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev/null; then
3665 if test -s conftest.err; then
3666 ac_cpp_err=$ac_c_preproc_warn_flag
3667 else
3668 ac_cpp_err=
3670 else
3671 ac_cpp_err=yes
3673 if test -z "$ac_cpp_err"; then
3674 # Broken: success on invalid input.
3675 continue
3676 else
3677 echo "$as_me: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3679 # Passes both tests.
3680 ac_preproc_ok=:
3681 break
3683 rm -f conftest.err conftest.$ac_ext
3685 done
3686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3687 rm -f conftest.err conftest.$ac_ext
3688 if $ac_preproc_ok; then
3689 break
3692 done
3693 ac_cv_prog_CPP=$CPP
3696 CPP=$ac_cv_prog_CPP
3697 else
3698 ac_cv_prog_CPP=$CPP
3700 echo "$as_me:3700: result: $CPP" >&5
3701 echo "${ECHO_T}$CPP" >&6
3702 ac_preproc_ok=false
3703 for ac_c_preproc_warn_flag in '' yes
3705 # Use a header file that comes with gcc, so configuring glibc
3706 # with a fresh cross-compiler works.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.$ac_ext <<_ACEOF
3710 #line 3710 "configure"
3711 #include "confdefs.h"
3712 #include <assert.h>
3713 Syntax error
3714 _ACEOF
3715 if { (eval echo "$as_me:3715: \"$ac_cpp conftest.$ac_ext\"") >&5
3716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3717 ac_status=$?
3718 egrep -v '^ *\+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:3721: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null; then
3723 if test -s conftest.err; then
3724 ac_cpp_err=$ac_c_preproc_warn_flag
3725 else
3726 ac_cpp_err=
3728 else
3729 ac_cpp_err=yes
3731 if test -z "$ac_cpp_err"; then
3733 else
3734 echo "$as_me: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 # Broken: fails on valid input.
3737 continue
3739 rm -f conftest.err conftest.$ac_ext
3741 # OK, works on sane cases. Now check whether non-existent headers
3742 # can be detected and how.
3743 cat >conftest.$ac_ext <<_ACEOF
3744 #line 3744 "configure"
3745 #include "confdefs.h"
3746 #include <ac_nonexistent.h>
3747 _ACEOF
3748 if { (eval echo "$as_me:3748: \"$ac_cpp conftest.$ac_ext\"") >&5
3749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3750 ac_status=$?
3751 egrep -v '^ *\+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:3754: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev/null; then
3756 if test -s conftest.err; then
3757 ac_cpp_err=$ac_c_preproc_warn_flag
3758 else
3759 ac_cpp_err=
3761 else
3762 ac_cpp_err=yes
3764 if test -z "$ac_cpp_err"; then
3765 # Broken: success on invalid input.
3766 continue
3767 else
3768 echo "$as_me: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 # Passes both tests.
3771 ac_preproc_ok=:
3772 break
3774 rm -f conftest.err conftest.$ac_ext
3776 done
3777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3778 rm -f conftest.err conftest.$ac_ext
3779 if $ac_preproc_ok; then
3781 else
3782 { { echo "$as_me:3782: error: C preprocessor \"$CPP\" fails sanity check" >&5
3783 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3784 { (exit 1); exit 1; }; }
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792 ac_main_return=return
3794 for ac_header in fcntl.h
3796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3797 echo "$as_me:3797: checking for $ac_header" >&5
3798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 cat >conftest.$ac_ext <<_ACEOF
3803 #line 3803 "configure"
3804 #include "confdefs.h"
3805 #include <$ac_header>
3806 _ACEOF
3807 if { (eval echo "$as_me:3807: \"$ac_cpp conftest.$ac_ext\"") >&5
3808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3809 ac_status=$?
3810 egrep -v '^ *\+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:3813: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null; then
3815 if test -s conftest.err; then
3816 ac_cpp_err=$ac_c_preproc_warn_flag
3817 else
3818 ac_cpp_err=
3820 else
3821 ac_cpp_err=yes
3823 if test -z "$ac_cpp_err"; then
3824 eval "$as_ac_Header=yes"
3825 else
3826 echo "$as_me: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 eval "$as_ac_Header=no"
3830 rm -f conftest.err conftest.$ac_ext
3832 echo "$as_me:3832: result: `eval echo '${'$as_ac_Header'}'`" >&5
3833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3835 cat >>confdefs.h <<EOF
3836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3840 done
3842 echo "$as_me:3842: checking for working mkstemp" >&5
3843 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
3844 if test "${cf_cv_func_mkstemp+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3848 rm -rf conftest*
3849 if test "$cross_compiling" = yes; then
3850 cf_cv_func_mkstemp=maybe
3851 else
3852 cat >conftest.$ac_ext <<_ACEOF
3853 #line 3853 "configure"
3854 #include "confdefs.h"
3856 #include <sys/types.h>
3857 #include <stdlib.h>
3858 #include <stdio.h>
3859 #include <string.h>
3860 #include <sys/stat.h>
3861 int main()
3863 char *tmpl = "conftestXXXXXX";
3864 char name[2][80];
3865 int n;
3866 int result = 0;
3867 int fd;
3868 struct stat sb;
3870 umask(077);
3871 for (n = 0; n < 2; ++n) {
3872 strcpy(name[n], tmpl);
3873 if ((fd = mkstemp(name[n])) >= 0) {
3874 if (!strcmp(name[n], tmpl)
3875 || stat(name[n], &sb) != 0
3876 || (sb.st_mode & S_IFMT) != S_IFREG
3877 || (sb.st_mode & 077) != 0) {
3878 result = 1;
3880 close(fd);
3883 if (result == 0
3884 && !strcmp(name[0], name[1]))
3885 result = 1;
3886 ${cf_cv_main_return:-return}(result);
3889 _ACEOF
3890 rm -f conftest$ac_exeext
3891 if { (eval echo "$as_me:3891: \"$ac_link\"") >&5
3892 (eval $ac_link) 2>&5
3893 ac_status=$?
3894 echo "$as_me:3894: \$? = $ac_status" >&5
3895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3896 { (eval echo "$as_me:3896: \"$ac_try\"") >&5
3897 (eval $ac_try) 2>&5
3898 ac_status=$?
3899 echo "$as_me:3899: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3901 cf_cv_func_mkstemp=yes
3903 else
3904 echo "$as_me: program exited with status $ac_status" >&5
3905 echo "$as_me: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3907 cf_cv_func_mkstemp=no
3910 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3914 echo "$as_me:3914: result: $cf_cv_func_mkstemp" >&5
3915 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
3916 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
3917 echo "$as_me:3917: checking for mkstemp" >&5
3918 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
3919 if test "${ac_cv_func_mkstemp+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 cat >conftest.$ac_ext <<_ACEOF
3923 #line 3923 "configure"
3924 #include "confdefs.h"
3925 /* System header to define __stub macros and hopefully few prototypes,
3926 which can conflict with char mkstemp (); below. */
3927 #include <assert.h>
3928 /* Override any gcc2 internal prototype to avoid an error. */
3929 #ifdef __cplusplus
3930 extern "C"
3931 #endif
3932 /* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
3934 char mkstemp ();
3935 char (*f) ();
3938 main ()
3940 /* The GNU C library defines this for functions which it implements
3941 to always fail with ENOSYS. Some functions are actually named
3942 something starting with __ and the normal name is an alias. */
3943 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
3944 choke me
3945 #else
3946 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3947 #endif
3950 return 0;
3952 _ACEOF
3953 rm -f conftest.$ac_objext conftest$ac_exeext
3954 if { (eval echo "$as_me:3954: \"$ac_link\"") >&5
3955 (eval $ac_link) 2>&5
3956 ac_status=$?
3957 echo "$as_me:3957: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -s conftest$ac_exeext'
3960 { (eval echo "$as_me:3960: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:3963: \$? = $ac_status" >&5
3964 (exit $ac_status); }; }; then
3965 ac_cv_func_mkstemp=yes
3966 else
3967 echo "$as_me: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3969 ac_cv_func_mkstemp=no
3971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3973 echo "$as_me:3973: result: $ac_cv_func_mkstemp" >&5
3974 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
3977 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
3979 cat >>confdefs.h <<\EOF
3980 #define HAVE_MKSTEMP 1
3985 for ac_func in vsnprintf
3987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3988 echo "$as_me:3988: checking for $ac_func" >&5
3989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3990 if eval "test \"\${$as_ac_var+set}\" = set"; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 cat >conftest.$ac_ext <<_ACEOF
3994 #line 3994 "configure"
3995 #include "confdefs.h"
3996 /* System header to define __stub macros and hopefully few prototypes,
3997 which can conflict with char $ac_func (); below. */
3998 #include <assert.h>
3999 /* Override any gcc2 internal prototype to avoid an error. */
4000 #ifdef __cplusplus
4001 extern "C"
4002 #endif
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4005 char $ac_func ();
4006 char (*f) ();
4009 main ()
4011 /* The GNU C library defines this for functions which it implements
4012 to always fail with ENOSYS. Some functions are actually named
4013 something starting with __ and the normal name is an alias. */
4014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4015 choke me
4016 #else
4017 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4018 #endif
4021 return 0;
4023 _ACEOF
4024 rm -f conftest.$ac_objext conftest$ac_exeext
4025 if { (eval echo "$as_me:4025: \"$ac_link\"") >&5
4026 (eval $ac_link) 2>&5
4027 ac_status=$?
4028 echo "$as_me:4028: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -s conftest$ac_exeext'
4031 { (eval echo "$as_me:4031: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:4034: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 eval "$as_ac_var=yes"
4037 else
4038 echo "$as_me: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4040 eval "$as_ac_var=no"
4042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4044 echo "$as_me:4044: result: `eval echo '${'$as_ac_var'}'`" >&5
4045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4046 if test `eval echo '${'$as_ac_var'}'` = yes; then
4047 cat >>confdefs.h <<EOF
4048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4052 done
4054 echo "$as_me:4054: checking for maximum table size" >&5
4055 echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
4057 # Check whether --with-max-table-size or --without-max-table-size was given.
4058 if test "${with_max_table_size+set}" = set; then
4059 withval="$with_max_table_size"
4062 if test -n "$with_max_table_size"
4063 then
4064 echo "$as_me:4064: result: $with_max_table_size" >&5
4065 echo "${ECHO_T}$with_max_table_size" >&6
4066 check=`expr "$with_max_table_size" + 0`
4067 if test "x$check" != "x$with_max_table_size"
4068 then
4069 { { echo "$as_me:4069: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
4070 echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
4071 { (exit 1); exit 1; }; }
4074 cat >>confdefs.h <<EOF
4075 #define MAXTABLE $with_max_table_size
4078 else
4079 echo "$as_me:4079: result: default" >&5
4080 echo "${ECHO_T}default" >&6
4083 echo "$as_me:4083: checking if backtracking extension is wanted" >&5
4084 echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
4086 # Check whether --enable-btyacc or --disable-btyacc was given.
4087 if test "${enable_btyacc+set}" = set; then
4088 enableval="$enable_btyacc"
4091 echo "$as_me:4091: result: $enable_btyacc" >&5
4092 echo "${ECHO_T}$enable_btyacc" >&6
4093 if test "$enable_btyacc" = "yes"; then
4095 cat >>confdefs.h <<\EOF
4096 #define YYBTYACC 1
4099 SKELETON=btyaccpar
4100 else
4101 SKELETON=yaccpar
4104 if ( test "$GCC" = yes || test "$GXX" = yes )
4105 then
4106 echo "$as_me:4106: checking if you want to check for gcc warnings" >&5
4107 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
4109 # Check whether --with-warnings or --without-warnings was given.
4110 if test "${with_warnings+set}" = set; then
4111 withval="$with_warnings"
4112 cf_opt_with_warnings=$withval
4113 else
4114 cf_opt_with_warnings=no
4116 echo "$as_me:4116: result: $cf_opt_with_warnings" >&5
4117 echo "${ECHO_T}$cf_opt_with_warnings" >&6
4118 if test "$cf_opt_with_warnings" != no ; then
4120 if test "$GCC" = yes
4121 then
4122 cat > conftest.i <<EOF
4123 #ifndef GCC_PRINTF
4124 #define GCC_PRINTF 0
4125 #endif
4126 #ifndef GCC_SCANF
4127 #define GCC_SCANF 0
4128 #endif
4129 #ifndef GCC_NORETURN
4130 #define GCC_NORETURN /* nothing */
4131 #endif
4132 #ifndef GCC_UNUSED
4133 #define GCC_UNUSED /* nothing */
4134 #endif
4136 if test "$GCC" = yes
4137 then
4138 { echo "$as_me:4138: checking for $CC __attribute__ directives..." >&5
4139 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4141 "${as_me:-configure}"
4142 #include "confdefs.h"
4143 #include "conftest.h"
4144 #include "conftest.i"
4145 #if GCC_PRINTF
4146 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4147 #else
4148 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4149 #endif
4150 #if GCC_SCANF
4151 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4152 #else
4153 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
4154 #endif
4155 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4156 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4157 extern void foo(void) GCC_NORETURN;
4158 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4160 cf_printf_attribute=no
4161 cf_scanf_attribute=no
4162 for cf_attribute in scanf printf unused noreturn
4165 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4167 cf_directive="__attribute__(($cf_attribute))"
4168 echo "checking for $CC $cf_directive" 1>&5
4170 case $cf_attribute in #(vi
4171 printf) #(vi
4172 cf_printf_attribute=yes
4173 cat >conftest.h <<EOF
4174 #define GCC_$cf_ATTRIBUTE 1
4177 scanf) #(vi
4178 cf_scanf_attribute=yes
4179 cat >conftest.h <<EOF
4180 #define GCC_$cf_ATTRIBUTE 1
4183 *) #(vi
4184 cat >conftest.h <<EOF
4185 #define GCC_$cf_ATTRIBUTE $cf_directive
4188 esac
4190 if { (eval echo "$as_me:4190: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>&5
4192 ac_status=$?
4193 echo "$as_me:4193: \$? = $ac_status" >&5
4194 (exit $ac_status); }; then
4195 test -n "$verbose" && echo "$as_me:4195: result: ... $cf_attribute" >&5
4196 echo "${ECHO_T}... $cf_attribute" >&6
4197 cat conftest.h >>confdefs.h
4198 case $cf_attribute in #(vi
4199 noreturn) #(vi
4201 cat >>confdefs.h <<EOF
4202 #define GCC_NORETURN $cf_directive
4206 printf) #(vi
4207 cf_value='/* nothing */'
4208 if test "$cf_printf_attribute" != no ; then
4209 cf_value='__attribute__((format(printf,fmt,var)))'
4211 cat >>confdefs.h <<\EOF
4212 #define GCC_PRINTF 1
4217 cat >>confdefs.h <<EOF
4218 #define GCC_PRINTFLIKE(fmt,var) $cf_value
4222 scanf) #(vi
4223 cf_value='/* nothing */'
4224 if test "$cf_scanf_attribute" != no ; then
4225 cf_value='__attribute__((format(scanf,fmt,var)))'
4227 cat >>confdefs.h <<\EOF
4228 #define GCC_SCANF 1
4233 cat >>confdefs.h <<EOF
4234 #define GCC_SCANFLIKE(fmt,var) $cf_value
4238 unused) #(vi
4240 cat >>confdefs.h <<EOF
4241 #define GCC_UNUSED $cf_directive
4245 esac
4247 done
4248 else
4249 fgrep define conftest.i >>confdefs.h
4251 rm -rf conftest*
4254 INTEL_COMPILER=no
4256 if test "$GCC" = yes ; then
4257 case $host_os in
4258 linux*|gnu*)
4259 echo "$as_me:4259: checking if this is really Intel C compiler" >&5
4260 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4261 cf_save_CFLAGS="$CFLAGS"
4262 CFLAGS="$CFLAGS -no-gcc"
4263 cat >conftest.$ac_ext <<_ACEOF
4264 #line 4264 "configure"
4265 #include "confdefs.h"
4268 main ()
4271 #ifdef __INTEL_COMPILER
4272 #else
4273 make an error
4274 #endif
4277 return 0;
4279 _ACEOF
4280 rm -f conftest.$ac_objext
4281 if { (eval echo "$as_me:4281: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>&5
4283 ac_status=$?
4284 echo "$as_me:4284: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -s conftest.$ac_objext'
4287 { (eval echo "$as_me:4287: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:4290: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 INTEL_COMPILER=yes
4293 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
4295 else
4296 echo "$as_me: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 rm -f conftest.$ac_objext conftest.$ac_ext
4300 CFLAGS="$cf_save_CFLAGS"
4301 echo "$as_me:4301: result: $INTEL_COMPILER" >&5
4302 echo "${ECHO_T}$INTEL_COMPILER" >&6
4304 esac
4307 CLANG_COMPILER=no
4309 if test "$GCC" = yes ; then
4310 echo "$as_me:4310: checking if this is really Clang C compiler" >&5
4311 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
4312 cf_save_CFLAGS="$CFLAGS"
4313 CFLAGS="$CFLAGS -Qunused-arguments"
4314 cat >conftest.$ac_ext <<_ACEOF
4315 #line 4315 "configure"
4316 #include "confdefs.h"
4319 main ()
4322 #ifdef __clang__
4323 #else
4324 make an error
4325 #endif
4328 return 0;
4330 _ACEOF
4331 rm -f conftest.$ac_objext
4332 if { (eval echo "$as_me:4332: \"$ac_compile\"") >&5
4333 (eval $ac_compile) 2>&5
4334 ac_status=$?
4335 echo "$as_me:4335: \$? = $ac_status" >&5
4336 (exit $ac_status); } &&
4337 { ac_try='test -s conftest.$ac_objext'
4338 { (eval echo "$as_me:4338: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:4341: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 CLANG_COMPILER=yes
4344 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
4346 else
4347 echo "$as_me: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4350 rm -f conftest.$ac_objext conftest.$ac_ext
4351 CFLAGS="$cf_save_CFLAGS"
4352 echo "$as_me:4352: result: $CLANG_COMPILER" >&5
4353 echo "${ECHO_T}$CLANG_COMPILER" >&6
4356 cat > conftest.$ac_ext <<EOF
4357 #line 4357 "${as_me:-configure}"
4358 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4361 if test "$INTEL_COMPILER" = yes
4362 then
4363 # The "-wdXXX" options suppress warnings:
4364 # remark #1419: external declaration in primary source file
4365 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4366 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4367 # remark #193: zero used for undefined preprocessing identifier
4368 # remark #593: variable "curs_sb_left_arrow" was set but never used
4369 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4370 # remark #869: parameter "tw" was never referenced
4371 # remark #981: operands are evaluated in unspecified order
4372 # warning #279: controlling expression is constant
4374 { echo "$as_me:4374: checking for $CC warning options..." >&5
4375 echo "$as_me: checking for $CC warning options..." >&6;}
4376 cf_save_CFLAGS="$CFLAGS"
4377 EXTRA_CFLAGS="-Wall"
4378 for cf_opt in \
4379 wd1419 \
4380 wd1683 \
4381 wd1684 \
4382 wd193 \
4383 wd593 \
4384 wd279 \
4385 wd810 \
4386 wd869 \
4387 wd981
4389 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4390 if { (eval echo "$as_me:4390: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>&5
4392 ac_status=$?
4393 echo "$as_me:4393: \$? = $ac_status" >&5
4394 (exit $ac_status); }; then
4395 test -n "$verbose" && echo "$as_me:4395: result: ... -$cf_opt" >&5
4396 echo "${ECHO_T}... -$cf_opt" >&6
4397 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4399 done
4400 CFLAGS="$cf_save_CFLAGS"
4402 elif test "$GCC" = yes
4403 then
4404 { echo "$as_me:4404: checking for $CC warning options..." >&5
4405 echo "$as_me: checking for $CC warning options..." >&6;}
4406 cf_save_CFLAGS="$CFLAGS"
4407 EXTRA_CFLAGS=
4408 cf_warn_CONST=""
4409 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4410 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
4411 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
4412 for cf_opt in W Wall \
4413 Wbad-function-cast \
4414 Wcast-align \
4415 Wcast-qual \
4416 Wdeclaration-after-statement \
4417 Wextra \
4418 Winline \
4419 Wmissing-declarations \
4420 Wmissing-prototypes \
4421 Wnested-externs \
4422 Wpointer-arith \
4423 Wshadow \
4424 Wstrict-prototypes \
4425 Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
4427 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4428 if { (eval echo "$as_me:4428: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4430 ac_status=$?
4431 echo "$as_me:4431: \$? = $ac_status" >&5
4432 (exit $ac_status); }; then
4433 test -n "$verbose" && echo "$as_me:4433: result: ... -$cf_opt" >&5
4434 echo "${ECHO_T}... -$cf_opt" >&6
4435 case $cf_opt in #(vi
4436 Wcast-qual) #(vi
4437 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4439 Winline) #(vi
4440 case $GCC_VERSION in
4441 [34].*)
4442 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4444 echo "${as_me:-configure}:4444: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4446 continue;;
4447 esac
4449 Wpointer-arith) #(vi
4450 case $GCC_VERSION in
4451 [12].*)
4452 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4454 echo "${as_me:-configure}:4454: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4456 continue;;
4457 esac
4459 esac
4460 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4462 done
4463 CFLAGS="$cf_save_CFLAGS"
4465 rm -rf conftest*
4470 echo "$as_me:4470: checking if you want to see long compiling messages" >&5
4471 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4473 # Check whether --enable-echo or --disable-echo was given.
4474 if test "${enable_echo+set}" = set; then
4475 enableval="$enable_echo"
4476 test "$enableval" != no && enableval=yes
4477 if test "$enableval" != "yes" ; then
4479 ECHO_LT='--silent'
4480 ECHO_LD='@echo linking $@;'
4481 RULE_CC='@echo compiling $<'
4482 SHOW_CC='@echo compiling $@'
4483 ECHO_CC='@'
4485 else
4487 ECHO_LT=''
4488 ECHO_LD=''
4489 RULE_CC=''
4490 SHOW_CC=''
4491 ECHO_CC=''
4494 else
4495 enableval=yes
4497 ECHO_LT=''
4498 ECHO_LD=''
4499 RULE_CC=''
4500 SHOW_CC=''
4501 ECHO_CC=''
4504 echo "$as_me:4504: result: $enableval" >&5
4505 echo "${ECHO_T}$enableval" >&6
4507 echo "$as_me:4507: checking if you want to use dmalloc for testing" >&5
4508 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4510 # Check whether --with-dmalloc or --without-dmalloc was given.
4511 if test "${with_dmalloc+set}" = set; then
4512 withval="$with_dmalloc"
4514 cat >>confdefs.h <<EOF
4515 #define USE_DMALLOC 1
4518 : ${with_cflags:=-g}
4519 : ${with_no_leaks:=yes}
4520 with_dmalloc=yes
4521 else
4522 with_dmalloc=
4524 echo "$as_me:4524: result: ${with_dmalloc:-no}" >&5
4525 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4527 case .$with_cflags in #(vi
4528 .*-g*)
4529 case .$CFLAGS in #(vi
4530 .*-g*) #(vi
4534 cf_fix_cppflags=no
4535 cf_new_cflags=
4536 cf_new_cppflags=
4537 cf_new_extra_cppflags=
4539 for cf_add_cflags in -g
4541 case $cf_fix_cppflags in
4543 case $cf_add_cflags in #(vi
4544 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4545 case $cf_add_cflags in
4546 -D*)
4547 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4549 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4550 && test -z "${cf_tst_cflags}" \
4551 && cf_fix_cppflags=yes
4553 if test $cf_fix_cppflags = yes ; then
4554 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4555 continue
4556 elif test "${cf_tst_cflags}" = "\"'" ; then
4557 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4558 continue
4561 esac
4562 case "$CPPFLAGS" in
4563 *$cf_add_cflags) #(vi
4565 *) #(vi
4566 case $cf_add_cflags in #(vi
4567 -D*)
4568 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4570 CPPFLAGS=`echo "$CPPFLAGS" | \
4571 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4572 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4575 esac
4576 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4578 esac
4581 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4583 esac
4585 yes)
4586 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4588 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4590 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4591 && test -z "${cf_tst_cflags}" \
4592 && cf_fix_cppflags=no
4594 esac
4595 done
4597 if test -n "$cf_new_cflags" ; then
4599 CFLAGS="$CFLAGS $cf_new_cflags"
4602 if test -n "$cf_new_cppflags" ; then
4604 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4607 if test -n "$cf_new_extra_cppflags" ; then
4609 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4613 esac
4615 esac
4617 if test "$with_dmalloc" = yes ; then
4618 echo "$as_me:4618: checking for dmalloc.h" >&5
4619 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4620 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 cat >conftest.$ac_ext <<_ACEOF
4624 #line 4624 "configure"
4625 #include "confdefs.h"
4626 #include <dmalloc.h>
4627 _ACEOF
4628 if { (eval echo "$as_me:4628: \"$ac_cpp conftest.$ac_ext\"") >&5
4629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4630 ac_status=$?
4631 egrep -v '^ *\+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:4634: \$? = $ac_status" >&5
4635 (exit $ac_status); } >/dev/null; then
4636 if test -s conftest.err; then
4637 ac_cpp_err=$ac_c_preproc_warn_flag
4638 else
4639 ac_cpp_err=
4641 else
4642 ac_cpp_err=yes
4644 if test -z "$ac_cpp_err"; then
4645 ac_cv_header_dmalloc_h=yes
4646 else
4647 echo "$as_me: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4649 ac_cv_header_dmalloc_h=no
4651 rm -f conftest.err conftest.$ac_ext
4653 echo "$as_me:4653: result: $ac_cv_header_dmalloc_h" >&5
4654 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4655 if test $ac_cv_header_dmalloc_h = yes; then
4657 echo "$as_me:4657: checking for dmalloc_debug in -ldmalloc" >&5
4658 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4659 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 ac_check_lib_save_LIBS=$LIBS
4663 LIBS="-ldmalloc $LIBS"
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line 4665 "configure"
4666 #include "confdefs.h"
4668 /* Override any gcc2 internal prototype to avoid an error. */
4669 #ifdef __cplusplus
4670 extern "C"
4671 #endif
4672 /* We use char because int might match the return type of a gcc2
4673 builtin and then its argument prototype would still apply. */
4674 char dmalloc_debug ();
4676 main ()
4678 dmalloc_debug ();
4680 return 0;
4682 _ACEOF
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (eval echo "$as_me:4684: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>&5
4686 ac_status=$?
4687 echo "$as_me:4687: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -s conftest$ac_exeext'
4690 { (eval echo "$as_me:4690: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:4693: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 ac_cv_lib_dmalloc_dmalloc_debug=yes
4696 else
4697 echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 ac_cv_lib_dmalloc_dmalloc_debug=no
4701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4702 LIBS=$ac_check_lib_save_LIBS
4704 echo "$as_me:4704: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4705 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4706 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4707 cat >>confdefs.h <<EOF
4708 #define HAVE_LIBDMALLOC 1
4711 LIBS="-ldmalloc $LIBS"
4719 echo "$as_me:4719: checking if you want to use dbmalloc for testing" >&5
4720 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4722 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4723 if test "${with_dbmalloc+set}" = set; then
4724 withval="$with_dbmalloc"
4726 cat >>confdefs.h <<EOF
4727 #define USE_DBMALLOC 1
4730 : ${with_cflags:=-g}
4731 : ${with_no_leaks:=yes}
4732 with_dbmalloc=yes
4733 else
4734 with_dbmalloc=
4736 echo "$as_me:4736: result: ${with_dbmalloc:-no}" >&5
4737 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4739 case .$with_cflags in #(vi
4740 .*-g*)
4741 case .$CFLAGS in #(vi
4742 .*-g*) #(vi
4746 cf_fix_cppflags=no
4747 cf_new_cflags=
4748 cf_new_cppflags=
4749 cf_new_extra_cppflags=
4751 for cf_add_cflags in -g
4753 case $cf_fix_cppflags in
4755 case $cf_add_cflags in #(vi
4756 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4757 case $cf_add_cflags in
4758 -D*)
4759 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4761 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4762 && test -z "${cf_tst_cflags}" \
4763 && cf_fix_cppflags=yes
4765 if test $cf_fix_cppflags = yes ; then
4766 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4767 continue
4768 elif test "${cf_tst_cflags}" = "\"'" ; then
4769 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4770 continue
4773 esac
4774 case "$CPPFLAGS" in
4775 *$cf_add_cflags) #(vi
4777 *) #(vi
4778 case $cf_add_cflags in #(vi
4779 -D*)
4780 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4782 CPPFLAGS=`echo "$CPPFLAGS" | \
4783 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4784 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4787 esac
4788 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4790 esac
4793 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4795 esac
4797 yes)
4798 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4800 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4802 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4803 && test -z "${cf_tst_cflags}" \
4804 && cf_fix_cppflags=no
4806 esac
4807 done
4809 if test -n "$cf_new_cflags" ; then
4811 CFLAGS="$CFLAGS $cf_new_cflags"
4814 if test -n "$cf_new_cppflags" ; then
4816 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4819 if test -n "$cf_new_extra_cppflags" ; then
4821 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4825 esac
4827 esac
4829 if test "$with_dbmalloc" = yes ; then
4830 echo "$as_me:4830: checking for dbmalloc.h" >&5
4831 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4832 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line 4836 "configure"
4837 #include "confdefs.h"
4838 #include <dbmalloc.h>
4839 _ACEOF
4840 if { (eval echo "$as_me:4840: \"$ac_cpp conftest.$ac_ext\"") >&5
4841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4842 ac_status=$?
4843 egrep -v '^ *\+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:4846: \$? = $ac_status" >&5
4847 (exit $ac_status); } >/dev/null; then
4848 if test -s conftest.err; then
4849 ac_cpp_err=$ac_c_preproc_warn_flag
4850 else
4851 ac_cpp_err=
4853 else
4854 ac_cpp_err=yes
4856 if test -z "$ac_cpp_err"; then
4857 ac_cv_header_dbmalloc_h=yes
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4861 ac_cv_header_dbmalloc_h=no
4863 rm -f conftest.err conftest.$ac_ext
4865 echo "$as_me:4865: result: $ac_cv_header_dbmalloc_h" >&5
4866 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4867 if test $ac_cv_header_dbmalloc_h = yes; then
4869 echo "$as_me:4869: checking for debug_malloc in -ldbmalloc" >&5
4870 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4871 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874 ac_check_lib_save_LIBS=$LIBS
4875 LIBS="-ldbmalloc $LIBS"
4876 cat >conftest.$ac_ext <<_ACEOF
4877 #line 4877 "configure"
4878 #include "confdefs.h"
4880 /* Override any gcc2 internal prototype to avoid an error. */
4881 #ifdef __cplusplus
4882 extern "C"
4883 #endif
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4886 char debug_malloc ();
4888 main ()
4890 debug_malloc ();
4892 return 0;
4894 _ACEOF
4895 rm -f conftest.$ac_objext conftest$ac_exeext
4896 if { (eval echo "$as_me:4896: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>&5
4898 ac_status=$?
4899 echo "$as_me:4899: \$? = $ac_status" >&5
4900 (exit $ac_status); } &&
4901 { ac_try='test -s conftest$ac_exeext'
4902 { (eval echo "$as_me:4902: \"$ac_try\"") >&5
4903 (eval $ac_try) 2>&5
4904 ac_status=$?
4905 echo "$as_me:4905: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4907 ac_cv_lib_dbmalloc_debug_malloc=yes
4908 else
4909 echo "$as_me: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4911 ac_cv_lib_dbmalloc_debug_malloc=no
4913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4914 LIBS=$ac_check_lib_save_LIBS
4916 echo "$as_me:4916: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4917 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4918 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4919 cat >>confdefs.h <<EOF
4920 #define HAVE_LIBDBMALLOC 1
4923 LIBS="-ldbmalloc $LIBS"
4931 echo "$as_me:4931: checking if you want to use valgrind for testing" >&5
4932 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4934 # Check whether --with-valgrind or --without-valgrind was given.
4935 if test "${with_valgrind+set}" = set; then
4936 withval="$with_valgrind"
4938 cat >>confdefs.h <<EOF
4939 #define USE_VALGRIND 1
4942 : ${with_cflags:=-g}
4943 : ${with_no_leaks:=yes}
4944 with_valgrind=yes
4945 else
4946 with_valgrind=
4948 echo "$as_me:4948: result: ${with_valgrind:-no}" >&5
4949 echo "${ECHO_T}${with_valgrind:-no}" >&6
4951 case .$with_cflags in #(vi
4952 .*-g*)
4953 case .$CFLAGS in #(vi
4954 .*-g*) #(vi
4958 cf_fix_cppflags=no
4959 cf_new_cflags=
4960 cf_new_cppflags=
4961 cf_new_extra_cppflags=
4963 for cf_add_cflags in -g
4965 case $cf_fix_cppflags in
4967 case $cf_add_cflags in #(vi
4968 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4969 case $cf_add_cflags in
4970 -D*)
4971 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4973 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4974 && test -z "${cf_tst_cflags}" \
4975 && cf_fix_cppflags=yes
4977 if test $cf_fix_cppflags = yes ; then
4978 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4979 continue
4980 elif test "${cf_tst_cflags}" = "\"'" ; then
4981 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4982 continue
4985 esac
4986 case "$CPPFLAGS" in
4987 *$cf_add_cflags) #(vi
4989 *) #(vi
4990 case $cf_add_cflags in #(vi
4991 -D*)
4992 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4994 CPPFLAGS=`echo "$CPPFLAGS" | \
4995 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4996 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4999 esac
5000 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
5002 esac
5005 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
5007 esac
5009 yes)
5010 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5012 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
5014 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5015 && test -z "${cf_tst_cflags}" \
5016 && cf_fix_cppflags=no
5018 esac
5019 done
5021 if test -n "$cf_new_cflags" ; then
5023 CFLAGS="$CFLAGS $cf_new_cflags"
5026 if test -n "$cf_new_cppflags" ; then
5028 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
5031 if test -n "$cf_new_extra_cppflags" ; then
5033 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
5037 esac
5039 esac
5041 echo "$as_me:5041: checking if you want to perform memory-leak testing" >&5
5042 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
5044 # Check whether --enable-leaks or --disable-leaks was given.
5045 if test "${enable_leaks+set}" = set; then
5046 enableval="$enable_leaks"
5047 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
5048 else
5049 : ${with_no_leaks:=no}
5051 echo "$as_me:5051: result: $with_no_leaks" >&5
5052 echo "${ECHO_T}$with_no_leaks" >&6
5054 if test "$with_no_leaks" = yes ; then
5056 cat >>confdefs.h <<\EOF
5057 #define NO_LEAKS 1
5060 cat >>confdefs.h <<\EOF
5061 #define YY_NO_LEAKS 1
5066 echo "$as_me:5066: checking for ANSI C header files" >&5
5067 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5068 if test "${ac_cv_header_stdc+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 cat >conftest.$ac_ext <<_ACEOF
5072 #line 5072 "configure"
5073 #include "confdefs.h"
5074 #include <stdlib.h>
5075 #include <stdarg.h>
5076 #include <string.h>
5077 #include <float.h>
5079 _ACEOF
5080 if { (eval echo "$as_me:5080: \"$ac_cpp conftest.$ac_ext\"") >&5
5081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5082 ac_status=$?
5083 egrep -v '^ *\+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:5086: \$? = $ac_status" >&5
5087 (exit $ac_status); } >/dev/null; then
5088 if test -s conftest.err; then
5089 ac_cpp_err=$ac_c_preproc_warn_flag
5090 else
5091 ac_cpp_err=
5093 else
5094 ac_cpp_err=yes
5096 if test -z "$ac_cpp_err"; then
5097 ac_cv_header_stdc=yes
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 cat conftest.$ac_ext >&5
5101 ac_cv_header_stdc=no
5103 rm -f conftest.err conftest.$ac_ext
5105 if test $ac_cv_header_stdc = yes; then
5106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5107 cat >conftest.$ac_ext <<_ACEOF
5108 #line 5108 "configure"
5109 #include "confdefs.h"
5110 #include <string.h>
5112 _ACEOF
5113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5114 egrep "memchr" >/dev/null 2>&1; then
5116 else
5117 ac_cv_header_stdc=no
5119 rm -rf conftest*
5123 if test $ac_cv_header_stdc = yes; then
5124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line 5126 "configure"
5127 #include "confdefs.h"
5128 #include <stdlib.h>
5130 _ACEOF
5131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132 egrep "free" >/dev/null 2>&1; then
5134 else
5135 ac_cv_header_stdc=no
5137 rm -rf conftest*
5141 if test $ac_cv_header_stdc = yes; then
5142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5143 if test "$cross_compiling" = yes; then
5145 else
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line 5147 "configure"
5148 #include "confdefs.h"
5149 #include <ctype.h>
5150 #if ((' ' & 0x0FF) == 0x020)
5151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5153 #else
5154 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5155 || ('j' <= (c) && (c) <= 'r') \
5156 || ('s' <= (c) && (c) <= 'z'))
5157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5158 #endif
5160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5162 main ()
5164 int i;
5165 for (i = 0; i < 256; i++)
5166 if (XOR (islower (i), ISLOWER (i))
5167 || toupper (i) != TOUPPER (i))
5168 $ac_main_return(2);
5169 $ac_main_return (0);
5171 _ACEOF
5172 rm -f conftest$ac_exeext
5173 if { (eval echo "$as_me:5173: \"$ac_link\"") >&5
5174 (eval $ac_link) 2>&5
5175 ac_status=$?
5176 echo "$as_me:5176: \$? = $ac_status" >&5
5177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5178 { (eval echo "$as_me:5178: \"$ac_try\"") >&5
5179 (eval $ac_try) 2>&5
5180 ac_status=$?
5181 echo "$as_me:5181: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5184 else
5185 echo "$as_me: program exited with status $ac_status" >&5
5186 echo "$as_me: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5188 ac_cv_header_stdc=no
5190 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5194 echo "$as_me:5194: result: $ac_cv_header_stdc" >&5
5195 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5196 if test $ac_cv_header_stdc = yes; then
5198 cat >>confdefs.h <<\EOF
5199 #define STDC_HEADERS 1
5204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5206 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5207 inttypes.h stdint.h unistd.h
5209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5210 echo "$as_me:5210: checking for $ac_header" >&5
5211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 cat >conftest.$ac_ext <<_ACEOF
5216 #line 5216 "configure"
5217 #include "confdefs.h"
5218 $ac_includes_default
5219 #include <$ac_header>
5220 _ACEOF
5221 rm -f conftest.$ac_objext
5222 if { (eval echo "$as_me:5222: \"$ac_compile\"") >&5
5223 (eval $ac_compile) 2>&5
5224 ac_status=$?
5225 echo "$as_me:5225: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -s conftest.$ac_objext'
5228 { (eval echo "$as_me:5228: \"$ac_try\"") >&5
5229 (eval $ac_try) 2>&5
5230 ac_status=$?
5231 echo "$as_me:5231: \$? = $ac_status" >&5
5232 (exit $ac_status); }; }; then
5233 eval "$as_ac_Header=yes"
5234 else
5235 echo "$as_me: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5237 eval "$as_ac_Header=no"
5239 rm -f conftest.$ac_objext conftest.$ac_ext
5241 echo "$as_me:5241: result: `eval echo '${'$as_ac_Header'}'`" >&5
5242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5244 cat >>confdefs.h <<EOF
5245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5249 done
5251 echo "$as_me:5251: checking for mode_t" >&5
5252 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5253 if test "${ac_cv_type_mode_t+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 cat >conftest.$ac_ext <<_ACEOF
5257 #line 5257 "configure"
5258 #include "confdefs.h"
5259 $ac_includes_default
5261 main ()
5263 if ((mode_t *) 0)
5264 return 0;
5265 if (sizeof (mode_t))
5266 return 0;
5268 return 0;
5270 _ACEOF
5271 rm -f conftest.$ac_objext
5272 if { (eval echo "$as_me:5272: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>&5
5274 ac_status=$?
5275 echo "$as_me:5275: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -s conftest.$ac_objext'
5278 { (eval echo "$as_me:5278: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:5281: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_type_mode_t=yes
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 ac_cv_type_mode_t=no
5289 rm -f conftest.$ac_objext conftest.$ac_ext
5291 echo "$as_me:5291: result: $ac_cv_type_mode_t" >&5
5292 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5293 if test $ac_cv_type_mode_t = yes; then
5295 else
5297 cat >>confdefs.h <<EOF
5298 #define mode_t int
5303 ### output makefile
5304 ac_config_files="$ac_config_files makefile"
5305 cat >confcache <<\_ACEOF
5306 # This file is a shell script that caches the results of configure
5307 # tests run on this system so they can be shared between configure
5308 # scripts and configure runs, see configure's option --config-cache.
5309 # It is not useful on other systems. If it contains results you don't
5310 # want to keep, you may remove or edit it.
5312 # config.status only pays attention to the cache file if you give it
5313 # the --recheck option to rerun configure.
5315 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5317 # following values.
5319 _ACEOF
5321 # The following way of writing the cache mishandles newlines in values,
5322 # but we know of no workaround that is simple, portable, and efficient.
5323 # So, don't put newlines in cache variables' values.
5324 # Ultrix sh set writes to stderr and can't be redirected directly,
5325 # and sets the high bit in the cache file unless we assign to the vars.
5327 (set) 2>&1 |
5328 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5329 *ac_space=\ *)
5330 # `set' does not quote correctly, so add quotes (double-quote
5331 # substitution turns \\\\ into \\, and sed turns \\ into \).
5332 sed -n \
5333 "s/'/'\\\\''/g;
5334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5337 # `set' quotes correctly as required by POSIX, so do not add quotes.
5338 sed -n \
5339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5341 esac;
5343 sed '
5344 t clear
5345 : clear
5346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5347 t end
5348 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5349 : end' >>confcache
5350 if cmp -s $cache_file confcache; then :; else
5351 if test -w $cache_file; then
5352 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5353 cat confcache >$cache_file
5354 else
5355 echo "not updating unwritable cache $cache_file"
5358 rm -f confcache
5360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5361 # Let make expand exec_prefix.
5362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5366 # trailing colons and then remove the whole line if VPATH becomes empty
5367 # (actually we leave an empty line to preserve line numbers).
5368 if test "x$srcdir" = x.; then
5369 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5370 s/:*\$(srcdir):*/:/;
5371 s/:*\${srcdir}:*/:/;
5372 s/:*@srcdir@:*/:/;
5373 s/^\([^=]*=[ ]*\):*/\1/;
5374 s/:*$//;
5375 s/^[^=]*=[ ]*$//;
5379 DEFS=-DHAVE_CONFIG_H
5381 : ${CONFIG_STATUS=./config.status}
5382 ac_clean_files_save=$ac_clean_files
5383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5384 { echo "$as_me:5384: creating $CONFIG_STATUS" >&5
5385 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5386 cat >$CONFIG_STATUS <<_ACEOF
5387 #! $SHELL
5388 # Generated automatically by configure.
5389 # Run this file to recreate the current configuration.
5390 # Compiler output produced by configure, useful for debugging
5391 # configure, is in config.log if it exists.
5393 debug=false
5394 SHELL=\${CONFIG_SHELL-$SHELL}
5395 ac_cs_invocation="\$0 \$@"
5397 _ACEOF
5399 cat >>$CONFIG_STATUS <<\_ACEOF
5400 # Be Bourne compatible
5401 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5402 emulate sh
5403 NULLCMD=:
5404 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5405 set -o posix
5408 # Name of the executable.
5409 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5411 if expr a : '\(a\)' >/dev/null 2>&1; then
5412 as_expr=expr
5413 else
5414 as_expr=false
5417 rm -f conf$$ conf$$.exe conf$$.file
5418 echo >conf$$.file
5419 if ln -s conf$$.file conf$$ 2>/dev/null; then
5420 # We could just check for DJGPP; but this test a) works b) is more generic
5421 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5422 if test -f conf$$.exe; then
5423 # Don't use ln at all; we don't have any links
5424 as_ln_s='cp -p'
5425 else
5426 as_ln_s='ln -s'
5428 elif ln conf$$.file conf$$ 2>/dev/null; then
5429 as_ln_s=ln
5430 else
5431 as_ln_s='cp -p'
5433 rm -f conf$$ conf$$.exe conf$$.file
5435 as_executable_p="test -f"
5437 # Support unset when possible.
5438 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5439 as_unset=unset
5440 else
5441 as_unset=false
5444 # NLS nuisances.
5445 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5446 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5447 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5448 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5449 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5450 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5451 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5452 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5454 # IFS
5455 # We need space, tab and new line, in precisely that order.
5456 as_nl='
5458 IFS=" $as_nl"
5460 # CDPATH.
5461 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5463 exec 6>&1
5465 _ACEOF
5467 # Files that config.status was made for.
5468 if test -n "$ac_config_files"; then
5469 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5472 if test -n "$ac_config_headers"; then
5473 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5476 if test -n "$ac_config_links"; then
5477 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5480 if test -n "$ac_config_commands"; then
5481 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5484 cat >>$CONFIG_STATUS <<\EOF
5486 ac_cs_usage="\
5487 \`$as_me' instantiates files from templates according to the
5488 current configuration.
5490 Usage: $0 [OPTIONS] [FILE]...
5492 -h, --help print this help, then exit
5493 -V, --version print version number, then exit
5494 -d, --debug don't remove temporary files
5495 --recheck update $as_me by reconfiguring in the same conditions
5496 --file=FILE[:TEMPLATE]
5497 instantiate the configuration file FILE
5498 --header=FILE[:TEMPLATE]
5499 instantiate the configuration header FILE
5501 Configuration files:
5502 $config_files
5504 Configuration headers:
5505 $config_headers
5507 Report bugs to <dickey@invisible-island.net>."
5510 cat >>$CONFIG_STATUS <<EOF
5511 ac_cs_version="\\
5512 config.status
5513 configured by $0, generated by GNU Autoconf 2.52.20121002,
5514 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5516 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5517 Free Software Foundation, Inc.
5518 This config.status script is free software; the Free Software Foundation
5519 gives unlimited permission to copy, distribute and modify it."
5520 srcdir=$srcdir
5521 INSTALL="$INSTALL"
5524 cat >>$CONFIG_STATUS <<\EOF
5525 # If no file are specified by the user, then we need to provide default
5526 # value. By we need to know if files were specified by the user.
5527 ac_need_defaults=:
5528 while test $# != 0
5530 case $1 in
5531 --*=*)
5532 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5533 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5534 shift
5535 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5536 shift
5538 -*);;
5539 *) # This is not an option, so the user has probably given explicit
5540 # arguments.
5541 ac_need_defaults=false;;
5542 esac
5544 case $1 in
5545 # Handling of the options.
5547 cat >>$CONFIG_STATUS <<EOF
5548 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5549 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5550 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5552 cat >>$CONFIG_STATUS <<\EOF
5553 --version | --vers* | -V )
5554 echo "$ac_cs_version"; exit 0 ;;
5555 --he | --h)
5556 # Conflict between --help and --header
5557 { { echo "$as_me:5557: error: ambiguous option: $1
5558 Try \`$0 --help' for more information." >&5
5559 echo "$as_me: error: ambiguous option: $1
5560 Try \`$0 --help' for more information." >&2;}
5561 { (exit 1); exit 1; }; };;
5562 --help | --hel | -h )
5563 echo "$ac_cs_usage"; exit 0 ;;
5564 --debug | --d* | -d )
5565 debug=: ;;
5566 --file | --fil | --fi | --f )
5567 shift
5568 CONFIG_FILES="$CONFIG_FILES $1"
5569 ac_need_defaults=false;;
5570 --header | --heade | --head | --hea )
5571 shift
5572 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5573 ac_need_defaults=false;;
5575 # This is an error.
5576 -*) { { echo "$as_me:5576: error: unrecognized option: $1
5577 Try \`$0 --help' for more information." >&5
5578 echo "$as_me: error: unrecognized option: $1
5579 Try \`$0 --help' for more information." >&2;}
5580 { (exit 1); exit 1; }; } ;;
5582 *) ac_config_targets="$ac_config_targets $1" ;;
5584 esac
5585 shift
5586 done
5588 exec 5>>config.log
5589 cat >&5 << _ACEOF
5591 ## ----------------------- ##
5592 ## Running config.status. ##
5593 ## ----------------------- ##
5595 This file was extended by $as_me 2.52.20121002, executed with
5596 CONFIG_FILES = $CONFIG_FILES
5597 CONFIG_HEADERS = $CONFIG_HEADERS
5598 CONFIG_LINKS = $CONFIG_LINKS
5599 CONFIG_COMMANDS = $CONFIG_COMMANDS
5600 > $ac_cs_invocation
5601 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5603 _ACEOF
5606 cat >>$CONFIG_STATUS <<\EOF
5607 for ac_config_target in $ac_config_targets
5609 case "$ac_config_target" in
5610 # Handling of arguments.
5611 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
5612 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
5613 *) { { echo "$as_me:5613: error: invalid argument: $ac_config_target" >&5
5614 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5615 { (exit 1); exit 1; }; };;
5616 esac
5617 done
5619 # If the user did not use the arguments to specify the items to instantiate,
5620 # then the envvar interface is used. Set only those that are not.
5621 # We use the long form for the default assignment because of an extremely
5622 # bizarre bug on SunOS 4.1.3.
5623 if $ac_need_defaults; then
5624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5628 # Create a temporary directory, and hook for its removal unless debugging.
5629 $debug ||
5631 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5632 trap '{ (exit 1); exit 1; }' 1 2 13 15
5635 # Create a (secure) tmp directory for tmp files.
5636 : ${TMPDIR=/tmp}
5638 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5639 test -n "$tmp" && test -d "$tmp"
5640 } ||
5642 tmp=$TMPDIR/cs$$-$RANDOM
5643 (umask 077 && mkdir $tmp)
5644 } ||
5646 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5647 { (exit 1); exit 1; }
5652 cat >>$CONFIG_STATUS <<EOF
5655 # CONFIG_FILES section.
5658 # No need to generate the scripts if there are no CONFIG_FILES.
5659 # This happens for instance when ./config.status config.h
5660 if test -n "\$CONFIG_FILES"; then
5661 # Protect against being on the right side of a sed subst in config.status.
5662 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5663 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5664 s,@SHELL@,$SHELL,;t t
5665 s,@exec_prefix@,$exec_prefix,;t t
5666 s,@prefix@,$prefix,;t t
5667 s,@program_transform_name@,$program_transform_name,;t t
5668 s,@bindir@,$bindir,;t t
5669 s,@sbindir@,$sbindir,;t t
5670 s,@libexecdir@,$libexecdir,;t t
5671 s,@datarootdir@,$datarootdir,;t t
5672 s,@datadir@,$datadir,;t t
5673 s,@sysconfdir@,$sysconfdir,;t t
5674 s,@sharedstatedir@,$sharedstatedir,;t t
5675 s,@localstatedir@,$localstatedir,;t t
5676 s,@libdir@,$libdir,;t t
5677 s,@includedir@,$includedir,;t t
5678 s,@oldincludedir@,$oldincludedir,;t t
5679 s,@infodir@,$infodir,;t t
5680 s,@mandir@,$mandir,;t t
5681 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5682 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5683 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5684 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5685 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5686 s,@build_alias@,$build_alias,;t t
5687 s,@host_alias@,$host_alias,;t t
5688 s,@target_alias@,$target_alias,;t t
5689 s,@ECHO_C@,$ECHO_C,;t t
5690 s,@ECHO_N@,$ECHO_N,;t t
5691 s,@ECHO_T@,$ECHO_T,;t t
5692 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5693 s,@DEFS@,$DEFS,;t t
5694 s,@LIBS@,$LIBS,;t t
5695 s,@build@,$build,;t t
5696 s,@build_cpu@,$build_cpu,;t t
5697 s,@build_vendor@,$build_vendor,;t t
5698 s,@build_os@,$build_os,;t t
5699 s,@host@,$host,;t t
5700 s,@host_cpu@,$host_cpu,;t t
5701 s,@host_vendor@,$host_vendor,;t t
5702 s,@host_os@,$host_os,;t t
5703 s,@target@,$target,;t t
5704 s,@target_cpu@,$target_cpu,;t t
5705 s,@target_vendor@,$target_vendor,;t t
5706 s,@target_os@,$target_os,;t t
5707 s,@CC@,$CC,;t t
5708 s,@CFLAGS@,$CFLAGS,;t t
5709 s,@LDFLAGS@,$LDFLAGS,;t t
5710 s,@CPPFLAGS@,$CPPFLAGS,;t t
5711 s,@ac_ct_CC@,$ac_ct_CC,;t t
5712 s,@EXEEXT@,$EXEEXT,;t t
5713 s,@OBJEXT@,$OBJEXT,;t t
5714 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
5715 s,@SET_MAKE@,$SET_MAKE,;t t
5716 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5717 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5718 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5719 s,@CTAGS@,$CTAGS,;t t
5720 s,@ETAGS@,$ETAGS,;t t
5721 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
5722 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
5723 s,@AWK@,$AWK,;t t
5724 s,@LINT@,$LINT,;t t
5725 s,@LINT_OPTS@,$LINT_OPTS,;t t
5726 s,@CPP@,$CPP,;t t
5727 s,@SKELETON@,$SKELETON,;t t
5728 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
5729 s,@ECHO_LT@,$ECHO_LT,;t t
5730 s,@ECHO_LD@,$ECHO_LD,;t t
5731 s,@RULE_CC@,$RULE_CC,;t t
5732 s,@SHOW_CC@,$SHOW_CC,;t t
5733 s,@ECHO_CC@,$ECHO_CC,;t t
5734 CEOF
5738 cat >>$CONFIG_STATUS <<\EOF
5739 # Split the substitutions into bite-sized pieces for seds with
5740 # small command number limits, like on Digital OSF/1 and HP-UX.
5741 ac_max_sed_lines=48
5742 ac_sed_frag=1 # Number of current file.
5743 ac_beg=1 # First line for current file.
5744 ac_end=$ac_max_sed_lines # Line after last line for current file.
5745 ac_more_lines=:
5746 ac_sed_cmds=
5747 while $ac_more_lines; do
5748 if test $ac_beg -gt 1; then
5749 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5750 else
5751 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5753 if test ! -s $tmp/subs.frag; then
5754 ac_more_lines=false
5755 else
5756 # The purpose of the label and of the branching condition is to
5757 # speed up the sed processing (if there are no `@' at all, there
5758 # is no need to browse any of the substitutions).
5759 # These are the two extra sed commands mentioned above.
5760 (echo ':t
5761 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5762 if test -z "$ac_sed_cmds"; then
5763 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5764 else
5765 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5767 ac_sed_frag=`expr $ac_sed_frag + 1`
5768 ac_beg=$ac_end
5769 ac_end=`expr $ac_end + $ac_max_sed_lines`
5771 done
5772 if test -z "$ac_sed_cmds"; then
5773 ac_sed_cmds=cat
5775 fi # test -n "$CONFIG_FILES"
5778 cat >>$CONFIG_STATUS <<\EOF
5779 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5780 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5781 case $ac_file in
5782 - | *:- | *:-:* ) # input from stdin
5783 cat >$tmp/stdin
5784 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5785 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5786 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5788 * ) ac_file_in=$ac_file.in ;;
5789 esac
5791 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5792 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5793 X"$ac_file" : 'X\(//\)[^/]' \| \
5794 X"$ac_file" : 'X\(//\)$' \| \
5795 X"$ac_file" : 'X\(/\)' \| \
5796 . : '\(.\)' 2>/dev/null ||
5797 echo X"$ac_file" |
5798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5800 /^X\(\/\/\)$/{ s//\1/; q; }
5801 /^X\(\/\).*/{ s//\1/; q; }
5802 s/.*/./; q'`
5803 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5804 { case "$ac_dir" in
5805 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5806 *) as_incr_dir=.;;
5807 esac
5808 as_dummy="$ac_dir"
5809 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5810 case $as_mkdir_dir in
5811 # Skip DOS drivespec
5812 ?:) as_incr_dir=$as_mkdir_dir ;;
5814 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5815 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5817 esac
5818 done; }
5820 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5821 # A "../" for each directory in $ac_dir_suffix.
5822 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5823 else
5824 ac_dir_suffix= ac_dots=
5827 case $srcdir in
5828 .) ac_srcdir=.
5829 if test -z "$ac_dots"; then
5830 ac_top_srcdir=.
5831 else
5832 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5833 fi ;;
5834 [\\/]* | ?:[\\/]* )
5835 ac_srcdir=$srcdir$ac_dir_suffix;
5836 ac_top_srcdir=$srcdir ;;
5837 *) # Relative path.
5838 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5839 ac_top_srcdir=$ac_dots$srcdir ;;
5840 esac
5842 case $INSTALL in
5843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5844 *) ac_INSTALL=$ac_dots$INSTALL ;;
5845 esac
5847 if test x"$ac_file" != x-; then
5848 { echo "$as_me:5848: creating $ac_file" >&5
5849 echo "$as_me: creating $ac_file" >&6;}
5850 rm -f "$ac_file"
5852 # Let's still pretend it is `configure' which instantiates (i.e., don't
5853 # use $as_me), people would be surprised to read:
5854 # /* config.h. Generated automatically by config.status. */
5855 configure_input="Generated automatically from `echo $ac_file_in |
5856 sed 's,.*/,,'` by configure."
5858 # First look for the input files in the build tree, otherwise in the
5859 # src tree.
5860 ac_file_inputs=`IFS=:
5861 for f in $ac_file_in; do
5862 case $f in
5863 -) echo $tmp/stdin ;;
5864 [\\/$]*)
5865 # Absolute (can't be DOS-style, as IFS=:)
5866 test -f "$f" || { { echo "$as_me:5866: error: cannot find input file: $f" >&5
5867 echo "$as_me: error: cannot find input file: $f" >&2;}
5868 { (exit 1); exit 1; }; }
5869 echo $f;;
5870 *) # Relative
5871 if test -f "$f"; then
5872 # Build tree
5873 echo $f
5874 elif test -f "$srcdir/$f"; then
5875 # Source tree
5876 echo $srcdir/$f
5877 else
5878 # /dev/null tree
5879 { { echo "$as_me:5879: error: cannot find input file: $f" >&5
5880 echo "$as_me: error: cannot find input file: $f" >&2;}
5881 { (exit 1); exit 1; }; }
5882 fi;;
5883 esac
5884 done` || { (exit 1); exit 1; }
5886 cat >>$CONFIG_STATUS <<\EOF
5887 ac_warn_datarootdir=no
5888 if test x"$ac_file" != x-; then
5889 for ac_item in $ac_file_inputs
5891 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
5892 if test -n "$ac_seen"; then
5893 ac_used=`grep '@datarootdir@' $ac_item`
5894 if test -z "$ac_used"; then
5895 { echo "$as_me:5895: WARNING: datarootdir was used implicitly but not set:
5896 $ac_seen" >&5
5897 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
5898 $ac_seen" >&2;}
5899 ac_warn_datarootdir=yes
5902 ac_seen=`grep '${datarootdir}' $ac_item`
5903 if test -n "$ac_seen"; then
5904 { echo "$as_me:5904: WARNING: datarootdir was used explicitly but not set:
5905 $ac_seen" >&5
5906 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
5907 $ac_seen" >&2;}
5908 ac_warn_datarootdir=yes
5910 done
5913 if test "x$ac_warn_datarootdir" = xyes; then
5914 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
5918 cat >>$CONFIG_STATUS <<EOF
5919 sed "$ac_vpsub
5920 $extrasub
5922 cat >>$CONFIG_STATUS <<\EOF
5924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5925 s,@configure_input@,$configure_input,;t t
5926 s,@srcdir@,$ac_srcdir,;t t
5927 s,@top_srcdir@,$ac_top_srcdir,;t t
5928 s,@INSTALL@,$ac_INSTALL,;t t
5929 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5930 rm -f $tmp/stdin
5931 if test x"$ac_file" != x-; then
5932 cp $tmp/out $ac_file
5934 for ac_name in prefix exec_prefix datarootdir
5936 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
5937 if test -n "$ac_seen"; then
5938 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
5939 if test -z "$ac_init"; then
5940 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
5941 { echo "$as_me:5941: WARNING: Variable $ac_name is used but was not set:
5942 $ac_seen" >&5
5943 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
5944 $ac_seen" >&2;}
5947 done
5948 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
5949 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
5950 if test -s $tmp/out; then
5951 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
5952 { echo "$as_me:5952: WARNING: Some variables may not be substituted:
5953 $ac_seen" >&5
5954 echo "$as_me: WARNING: Some variables may not be substituted:
5955 $ac_seen" >&2;}
5957 else
5958 cat $tmp/out
5960 rm -f $tmp/out
5962 done
5964 cat >>$CONFIG_STATUS <<\EOF
5967 # CONFIG_HEADER section.
5970 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5971 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5973 # ac_d sets the value in "#define NAME VALUE" lines.
5974 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5975 ac_dB='[ ].*$,\1#\2'
5976 ac_dC=' '
5977 ac_dD=',;t'
5978 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5979 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5980 ac_iB='\([ ]\),\1#\2define\3'
5981 ac_iC=' '
5982 ac_iD='\4,;t'
5983 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5984 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5985 ac_uB='$,\1#\2define\3'
5986 ac_uC=' '
5987 ac_uD=',;t'
5989 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5990 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5991 case $ac_file in
5992 - | *:- | *:-:* ) # input from stdin
5993 cat >$tmp/stdin
5994 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5996 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5997 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5998 * ) ac_file_in=$ac_file.in ;;
5999 esac
6001 test x"$ac_file" != x- && { echo "$as_me:6001: creating $ac_file" >&5
6002 echo "$as_me: creating $ac_file" >&6;}
6004 # First look for the input files in the build tree, otherwise in the
6005 # src tree.
6006 ac_file_inputs=`IFS=:
6007 for f in $ac_file_in; do
6008 case $f in
6009 -) echo $tmp/stdin ;;
6010 [\\/$]*)
6011 # Absolute (can't be DOS-style, as IFS=:)
6012 test -f "$f" || { { echo "$as_me:6012: error: cannot find input file: $f" >&5
6013 echo "$as_me: error: cannot find input file: $f" >&2;}
6014 { (exit 1); exit 1; }; }
6015 echo $f;;
6016 *) # Relative
6017 if test -f "$f"; then
6018 # Build tree
6019 echo $f
6020 elif test -f "$srcdir/$f"; then
6021 # Source tree
6022 echo $srcdir/$f
6023 else
6024 # /dev/null tree
6025 { { echo "$as_me:6025: error: cannot find input file: $f" >&5
6026 echo "$as_me: error: cannot find input file: $f" >&2;}
6027 { (exit 1); exit 1; }; }
6028 fi;;
6029 esac
6030 done` || { (exit 1); exit 1; }
6031 # Remove the trailing spaces.
6032 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6036 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6037 # `conftest.undefs', that substitutes the proper values into
6038 # config.h.in to produce config.h. The first handles `#define'
6039 # templates, and the second `#undef' templates.
6040 # And first: Protect against being on the right side of a sed subst in
6041 # config.status. Protect against being in an unquoted here document
6042 # in config.status.
6043 rm -f conftest.defines conftest.undefs
6044 # Using a here document instead of a string reduces the quoting nightmare.
6045 # Putting comments in sed scripts is not portable.
6047 # `end' is used to avoid that the second main sed command (meant for
6048 # 0-ary CPP macros) applies to n-ary macro definitions.
6049 # See the Autoconf documentation for `clear'.
6050 cat >confdef2sed.sed <<\EOF
6051 s/[\\&,]/\\&/g
6052 s,[\\$`],\\&,g
6053 t clear
6054 : clear
6055 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
6056 t end
6057 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6058 : end
6060 # If some macros were called several times there might be several times
6061 # the same #defines, which is useless. Nevertheless, we may not want to
6062 # sort them, since we want the *last* AC-DEFINE to be honored.
6063 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6064 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6065 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
6066 rm -f confdef2sed.sed
6068 # This sed command replaces #undef with comments. This is necessary, for
6069 # example, in the case of _POSIX_SOURCE, which is predefined and required
6070 # on some systems where configure will not decide to define it.
6071 cat >>conftest.undefs <<\EOF
6072 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6075 # Break up conftest.defines because some shells have a limit on the size
6076 # of here documents, and old seds have small limits too (100 cmds).
6077 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6078 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6079 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6080 echo ' :' >>$CONFIG_STATUS
6081 rm -f conftest.tail
6082 while grep . conftest.defines >/dev/null
6084 # Write a limited-size here document to $tmp/defines.sed.
6085 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6086 # Speed up: don't consider the non `#define' lines.
6087 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6088 # Work around the forget-to-reset-the-flag bug.
6089 echo 't clr' >>$CONFIG_STATUS
6090 echo ': clr' >>$CONFIG_STATUS
6091 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6092 echo 'CEOF
6093 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6094 rm -f $tmp/in
6095 mv $tmp/out $tmp/in
6096 ' >>$CONFIG_STATUS
6097 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6098 rm -f conftest.defines
6099 mv conftest.tail conftest.defines
6100 done
6101 rm -f conftest.defines
6102 echo ' fi # egrep' >>$CONFIG_STATUS
6103 echo >>$CONFIG_STATUS
6105 # Break up conftest.undefs because some shells have a limit on the size
6106 # of here documents, and old seds have small limits too (100 cmds).
6107 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6108 rm -f conftest.tail
6109 while grep . conftest.undefs >/dev/null
6111 # Write a limited-size here document to $tmp/undefs.sed.
6112 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6113 # Speed up: don't consider the non `#undef'
6114 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6115 # Work around the forget-to-reset-the-flag bug.
6116 echo 't clr' >>$CONFIG_STATUS
6117 echo ': clr' >>$CONFIG_STATUS
6118 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6119 echo 'CEOF
6120 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6121 rm -f $tmp/in
6122 mv $tmp/out $tmp/in
6123 ' >>$CONFIG_STATUS
6124 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6125 rm -f conftest.undefs
6126 mv conftest.tail conftest.undefs
6127 done
6128 rm -f conftest.undefs
6130 cat >>$CONFIG_STATUS <<\EOF
6131 # Let's still pretend it is `configure' which instantiates (i.e., don't
6132 # use $as_me), people would be surprised to read:
6133 # /* config.h. Generated automatically by config.status. */
6134 if test x"$ac_file" = x-; then
6135 echo "/* Generated automatically by configure. */" >$tmp/config.h
6136 else
6137 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
6139 cat $tmp/in >>$tmp/config.h
6140 rm -f $tmp/in
6141 if test x"$ac_file" != x-; then
6142 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6143 { echo "$as_me:6143: $ac_file is unchanged" >&5
6144 echo "$as_me: $ac_file is unchanged" >&6;}
6145 else
6146 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6147 X"$ac_file" : 'X\(//\)[^/]' \| \
6148 X"$ac_file" : 'X\(//\)$' \| \
6149 X"$ac_file" : 'X\(/\)' \| \
6150 . : '\(.\)' 2>/dev/null ||
6151 echo X"$ac_file" |
6152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6154 /^X\(\/\/\)$/{ s//\1/; q; }
6155 /^X\(\/\).*/{ s//\1/; q; }
6156 s/.*/./; q'`
6157 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6158 { case "$ac_dir" in
6159 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6160 *) as_incr_dir=.;;
6161 esac
6162 as_dummy="$ac_dir"
6163 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6164 case $as_mkdir_dir in
6165 # Skip DOS drivespec
6166 ?:) as_incr_dir=$as_mkdir_dir ;;
6168 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6169 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6171 esac
6172 done; }
6175 rm -f $ac_file
6176 mv $tmp/config.h $ac_file
6178 else
6179 cat $tmp/config.h
6180 rm -f $tmp/config.h
6182 done
6185 cat >>$CONFIG_STATUS <<\EOF
6187 { (exit 0); exit 0; }
6189 chmod +x $CONFIG_STATUS
6190 ac_clean_files=$ac_clean_files_save
6192 # configure is writing to config.log, and then calls config.status.
6193 # config.status does its own redirection, appending to config.log.
6194 # Unfortunately, on DOS this fails, as config.log is still kept open
6195 # by configure, so config.status won't be able to write to it; its
6196 # output is simply discarded. So we exec the FD to /dev/null,
6197 # effectively closing config.log, so it can be properly (re)opened and
6198 # appended to by config.status. When coming back to configure, we
6199 # need to make the FD available again.
6200 if test "$no_create" != yes; then
6201 ac_cs_success=:
6202 exec 5>/dev/null
6203 $SHELL $CONFIG_STATUS || ac_cs_success=false
6204 exec 5>>config.log
6205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6206 # would make configure fail if this is the last instruction.
6207 $ac_cs_success || { (exit 1); exit 1; }
6210 test -z "$cf_make_docs" && cf_make_docs=0
6212 cf_output=makefile
6213 test -f "$cf_output" || cf_output=Makefile
6215 if test "$cf_make_docs" = 0
6216 then
6217 cat >>$cf_output <<"CF_EOF"
6218 ################################################################################
6219 .SUFFIXES : .html .1 .man .ps .pdf .txt
6221 .1.html :
6222 GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | groff -P -o0 -Iyacc,1_ -Thtml -man" >$@
6224 .1.ps :
6225 $(SHELL) -c "tbl $*.1 | groff -man" >$@
6227 .1.txt :
6228 GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | nroff -Tascii -man | col -bx" >$@
6230 .ps.pdf :
6231 ps2pdf $*.ps
6233 CF_EOF
6234 cf_make_docs=1
6237 for cf_name in yacc
6239 cat >>$cf_output <<CF_EOF
6240 ################################################################################
6241 docs-$cf_name \\
6242 docs :: $cf_name.html \\
6243 $cf_name.pdf \\
6244 $cf_name.ps \\
6245 $cf_name.txt
6247 clean \\
6248 docs-clean ::
6249 rm -f $cf_name.html $cf_name.pdf $cf_name.ps $cf_name.txt
6251 $cf_name.html : $cf_name.\1
6252 $cf_name.pdf : $cf_name.ps
6253 $cf_name.ps : $cf_name.\1
6254 $cf_name.txt : $cf_name.\1
6255 CF_EOF
6256 done