2 # From configure.in Revision: 1.18 .
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
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe 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
52 elif ln conf$$.file conf$$ 2>/dev/null; then
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
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; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
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`
97 ac_default_prefix=/usr/local
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"
110 # Initialize some variables set by options.
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
122 program_transform_name=s,x,x,
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datarootdir='${prefix}/share'
139 datadir='${datarootdir}'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
149 # Identity of this package.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168 # Accept the important Cygnus configure options, so we can diagnose typos.
172 -bindir | --bindir | --bindi | --bind | --bin | --bi)
174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177 -build | --build | --buil | --bui | --bu)
178 ac_prev=build_alias ;;
179 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180 build_alias=$ac_optarg ;;
182 -cache-file | --cache-file | --cache-fil | --cache-fi \
183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184 ac_prev=cache_file ;;
185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187 cache_file=$ac_optarg ;;
190 cache_file=config.cache ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir=$ac_optarg ;;
198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199 | --dataroo | --dataro | --datar)
200 ac_prev=datarootdir ;;
201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203 datarootdir=$ac_optarg ;;
205 -disable-* | --disable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 eval "enable_$ac_feature=no" ;;
214 -enable-* | --enable-*)
215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216 # Reject names that are not valid shell variable names.
217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219 { (exit 1); exit 1; }; }
220 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
225 eval "enable_$ac_feature='$ac_optarg'" ;;
227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229 | --exec | --exe | --ex)
230 ac_prev=exec_prefix ;;
231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233 | --exec=* | --exe=* | --ex=*)
234 exec_prefix=$ac_optarg ;;
236 -gas | --gas | --ga | --g)
237 # Obsolete; use --with-gas.
240 -help | --help | --hel | --he | -h)
242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243 ac_init_help=recursive ;;
244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245 ac_init_help=short ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host_alias ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host_alias=$ac_optarg ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir=$ac_optarg ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir=$ac_optarg ;;
264 -libdir | --libdir | --libdi | --libd)
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir=$ac_optarg ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir=$ac_optarg ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 # Obsolete; use --without-fp.
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir=$ac_optarg ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix=$ac_optarg ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix=$ac_optarg ;;
330 -program-transform-name | --program-transform-name \
331 | --program-transform-nam | --program-transform-na \
332 | --program-transform-n | --program-transform- \
333 | --program-transform | --program-transfor \
334 | --program-transfo | --program-transf \
335 | --program-trans | --program-tran \
336 | --progr-tra | --program-tr | --program-t)
337 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name=$ac_optarg ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355 sbindir=$ac_optarg ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366 sharedstatedir=$ac_optarg ;;
368 -site | --site | --sit)
370 -site=* | --site=* | --sit=*)
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir=$ac_optarg ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target_alias ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target_alias=$ac_optarg ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 -version | --version | --versio | --versi | --vers | -V)
397 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid package name: $ac_package" >&2
401 { (exit 1); exit 1; }; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
407 eval "with_$ac_package='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid package name: $ac_package" >&2
414 { (exit 1); exit 1; }; }
415 ac_package=`echo $ac_package | sed 's/-/_/g'`
416 eval "with_$ac_package=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes=$ac_optarg ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries=$ac_optarg ;;
436 -*) { echo "$as_me: error: unrecognized option: $ac_option
437 Try \`$0 --help' for more information." >&2
438 { (exit 1); exit 1; }; }
442 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
443 # Reject names that are not valid shell variable names.
444 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
445 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
446 { (exit 1); exit 1; }; }
447 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
448 eval "$ac_envvar='$ac_optarg'"
452 # FIXME: should be removed in autoconf 3.0.
453 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
454 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
455 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
456 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
462 if test -n "$ac_prev"; then
463 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
464 { echo "$as_me: error: missing argument to $ac_option" >&2
465 { (exit 1); exit 1; }; }
468 # Be sure to have absolute paths.
469 for ac_var in exec_prefix prefix
471 eval ac_val=$`echo $ac_var`
473 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
474 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
475 { (exit 1); exit 1; }; };;
479 # Be sure to have absolute paths.
480 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
481 localstatedir libdir includedir oldincludedir infodir mandir
483 eval ac_val=$`echo $ac_var`
485 [\\/$]* | ?:[\\/]* ) ;;
486 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
487 { (exit 1); exit 1; }; };;
491 # There might be people who depend on the old broken behavior: `$host'
492 # used to hold the argument of --host etc.
497 # FIXME: should be removed in autoconf 3.0.
498 if test "x$host_alias" != x; then
499 if test "x$build_alias" = x; then
500 cross_compiling=maybe
501 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
502 If a cross compiler is detected then cross compile mode will be used." >&2
503 elif test "x$build_alias" != "x$host_alias"; then
509 test -n "$host_alias" && ac_tool_prefix=$host_alias-
511 test "$silent" = yes && exec 6>/dev/null
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
530 { (exit 1); exit 1; }; }
532 { echo "$as_me: error: cannot find sources in $srcdir" >&2
533 { (exit 1); exit 1; }; }
536 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
537 ac_env_build_alias_set=${build_alias+set}
538 ac_env_build_alias_value=$build_alias
539 ac_cv_env_build_alias_set=${build_alias+set}
540 ac_cv_env_build_alias_value=$build_alias
541 ac_env_host_alias_set=${host_alias+set}
542 ac_env_host_alias_value=$host_alias
543 ac_cv_env_host_alias_set=${host_alias+set}
544 ac_cv_env_host_alias_value=$host_alias
545 ac_env_target_alias_set=${target_alias+set}
546 ac_env_target_alias_value=$target_alias
547 ac_cv_env_target_alias_set=${target_alias+set}
548 ac_cv_env_target_alias_value=$target_alias
549 ac_env_CC_set=${CC+set}
551 ac_cv_env_CC_set=${CC+set}
552 ac_cv_env_CC_value=$CC
553 ac_env_CFLAGS_set=${CFLAGS+set}
554 ac_env_CFLAGS_value=$CFLAGS
555 ac_cv_env_CFLAGS_set=${CFLAGS+set}
556 ac_cv_env_CFLAGS_value=$CFLAGS
557 ac_env_LDFLAGS_set=${LDFLAGS+set}
558 ac_env_LDFLAGS_value=$LDFLAGS
559 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
560 ac_cv_env_LDFLAGS_value=$LDFLAGS
561 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
562 ac_env_CPPFLAGS_value=$CPPFLAGS
563 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
564 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
565 ac_env_CPP_set=${CPP+set}
566 ac_env_CPP_value=$CPP
567 ac_cv_env_CPP_set=${CPP+set}
568 ac_cv_env_CPP_value=$CPP
571 # Report the --help message.
573 if test "$ac_init_help" = "long"; then
574 # Omit some internal or obsolete options to make the list less imposing.
575 # This message is too long to be a string in the A/UX 3.1 sh.
577 \`configure' configures this package to adapt to many kinds of systems.
579 Usage: $0 [OPTION]... [VAR=VALUE]...
581 To assign environment variables (e.g., CC, CFLAGS...), specify them as
582 VAR=VALUE. See below for descriptions of some of the useful variables.
584 Defaults for the options are specified in brackets.
587 -h, --help display this help and exit
588 --help=short display options specific to this package
589 --help=recursive display the short help of all the included packages
590 -V, --version display version information and exit
591 -q, --quiet, --silent do not print \`checking...' messages
592 --cache-file=FILE cache test results in FILE [disabled]
593 -C, --config-cache alias for \`--cache-file=config.cache'
594 -n, --no-create do not create output files
595 --srcdir=DIR find the sources in DIR [configure dir or \`..']
600 Installation directories:
601 --prefix=PREFIX install architecture-independent files in PREFIX
603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
606 By default, \`make install' will install all the files in
607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
609 for instance \`--prefix=\$HOME'.
611 For better control, use the options below.
613 Fine tuning of the installation directories:
614 --bindir=DIR user executables [EPREFIX/bin]
615 --sbindir=DIR system admin executables [EPREFIX/sbin]
616 --libexecdir=DIR program executables [EPREFIX/libexec]
617 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
622 --libdir=DIR object code libraries [EPREFIX/lib]
623 --includedir=DIR C header files [PREFIX/include]
624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
625 --infodir=DIR info documentation [DATAROOTDIR/info]
626 --mandir=DIR man documentation [DATAROOTDIR/man]
632 --program-prefix=PREFIX prepend PREFIX to installed program names
633 --program-suffix=SUFFIX append SUFFIX to installed program names
634 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
637 --build=BUILD configure for building on BUILD [guessed]
638 --host=HOST build programs to run on HOST [BUILD]
639 --target=TARGET configure for building compilers for TARGET [HOST]
643 if test -n "$ac_init_help"; then
648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
655 --with-max-table-size=N set the maximum table size = N (no default)
656 --enable-btyacc turn on support for the btyacc backtracking
657 extension (default: no)
658 --with-warnings test: turn on gcc warnings
659 --disable-echo do not display "compiling" commands
660 --with-dmalloc test: use Gray Watson's dmalloc library
661 --with-dbmalloc test: use Conor Cahill's dbmalloc library
662 --with-valgrind test: use valgrind
663 --disable-leaks test: free permanent memory, analyze leaks
665 Some influential environment variables:
666 CC C compiler command
667 CFLAGS C compiler flags
668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
669 nonstandard directory <lib dir>
670 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
671 headers in a nonstandard directory <include dir>
674 Use these variables to override the choices made by `configure' or to help
675 it to find libraries and programs with nonstandard names/locations.
680 if test "$ac_init_help" = "recursive"; then
681 # If there are subdirs, report their specific --help.
683 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
685 # A "../" for each directory in /$ac_subdir.
686 ac_dots=`echo $ac_subdir |
687 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
690 .) # No --srcdir option. We are building in place.
691 ac_sub_srcdir=$srcdir ;;
692 [\\/]* | ?:[\\/]* ) # Absolute path.
693 ac_sub_srcdir=$srcdir/$ac_subdir ;;
695 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
698 # Check for guested configure; otherwise get Cygnus style configure.
699 if test -f $ac_sub_srcdir/configure.gnu; then
701 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
702 elif test -f $ac_sub_srcdir/configure; then
704 $SHELL $ac_sub_srcdir/configure --help=recursive
705 elif test -f $ac_sub_srcdir/configure.ac ||
706 test -f $ac_sub_srcdir/configure.in; then
710 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
716 test -n "$ac_init_help" && exit 0
717 if $ac_init_version; then
720 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
721 Free Software Foundation, Inc.
722 This configure script is free software; the Free Software Foundation
723 gives unlimited permission to copy, distribute and modify it.
729 This file contains any messages produced by compilers while
730 running configure, to aid debugging if configure makes a mistake.
732 It was created by $as_me, which was
733 generated by GNU Autoconf 2.52.20121002. Invocation command line was
744 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
745 uname -m = `(uname -m) 2>/dev/null || echo unknown`
746 uname -r = `(uname -r) 2>/dev/null || echo unknown`
747 uname -s = `(uname -s) 2>/dev/null || echo unknown`
748 uname -v = `(uname -v) 2>/dev/null || echo unknown`
750 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
751 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
753 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
754 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
755 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
756 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
757 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
758 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
759 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
773 # Keep a trace of the command line.
774 # Strip out --no-create and --no-recursion so they do not pile up.
775 # Also quote any args containing shell meta-characters.
781 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
782 | --no-cr | --no-c) ;;
783 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
784 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
785 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
786 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
787 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
789 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
792 # Get rid of the leading space.
795 # When interrupted or exit'd, cleanup temporary files, and complete
796 # config.log. We remove comments because anyway the quotes in there
797 # would cause problems or look ugly.
799 # Save into config.log some information that might help in debugging.
801 echo "## ----------------- ##" >&5
802 echo "## Cache variables. ##" >&5
803 echo "## ----------------- ##" >&5
805 # The following way of writing the cache mishandles newlines in values,
808 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
811 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
816 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
820 sed "/^$/d" confdefs.h >conftest.log
821 if test -s conftest.log; then
823 echo "## ------------ ##" >&5
824 echo "## confdefs.h. ##" >&5
825 echo "## ------------ ##" >&5
830 test "$ac_signal" != 0 &&
831 echo "$as_me: caught signal $ac_signal" >&5
832 echo "$as_me: exit $exit_status" >&5
833 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
836 for ac_signal in 1 2 13 15; do
837 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
841 # confdefs.h avoids OS command line length limits that DEFS can exceed.
842 rm -rf conftest* confdefs.h
843 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
846 # Let the site file select an alternate cache file if it wants to.
847 # Prefer explicitly selected file to automatically selected ones.
848 if test -z "$CONFIG_SITE"; then
849 if test "x$prefix" != xNONE; then
850 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
852 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
855 for ac_site_file in $CONFIG_SITE; do
856 if test -r "$ac_site_file"; then
857 { echo "$as_me:857: loading site script $ac_site_file" >&5
858 echo "$as_me: loading site script $ac_site_file" >&6;}
859 cat "$ac_site_file" >&5
864 if test -r "$cache_file"; then
865 # Some versions of bash will fail to source /dev/null (special
866 # files actually), so we avoid doing that.
867 if test -f "$cache_file"; then
868 { echo "$as_me:868: loading cache $cache_file" >&5
869 echo "$as_me: loading cache $cache_file" >&6;}
871 [\\/]* | ?:[\\/]* ) . $cache_file;;
876 { echo "$as_me:876: creating cache $cache_file" >&5
877 echo "$as_me: creating cache $cache_file" >&6;}
881 # Check that the precious variables saved in the cache have kept the same
883 ac_cache_corrupted=false
884 for ac_var in `(set) 2>&1 |
885 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
887 eval ac_new_set=\$ac_env_${ac_var}_set
888 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
889 eval ac_new_val="\$ac_env_${ac_var}_value"
890 case $ac_old_set,$ac_new_set in
892 { echo "$as_me:892: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
893 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
894 ac_cache_corrupted=: ;;
896 { echo "$as_me:896: error: \`$ac_var' was not set in the previous run" >&5
897 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
898 ac_cache_corrupted=: ;;
901 if test "x$ac_old_val" != "x$ac_new_val"; then
902 { echo "$as_me:902: error: \`$ac_var' has changed since the previous run:" >&5
903 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
904 { echo "$as_me:904: former value: $ac_old_val" >&5
905 echo "$as_me: former value: $ac_old_val" >&2;}
906 { echo "$as_me:906: current value: $ac_new_val" >&5
907 echo "$as_me: current value: $ac_new_val" >&2;}
911 # Pass precious variables to config.status. It doesn't matter if
912 # we pass some twice (in addition to the command line arguments).
913 if test "$ac_new_set" = set; then
915 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
916 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
917 ac_configure_args="$ac_configure_args '$ac_arg'"
919 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
924 if $ac_cache_corrupted; then
925 { echo "$as_me:925: error: changes in the environment can compromise the build" >&5
926 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
927 { { echo "$as_me:927: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
928 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
929 { (exit 1); exit 1; }; }
933 ac_cpp='$CPP $CPPFLAGS'
934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
937 ac_main_return=return
939 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
940 *c*,-n*) ECHO_N= ECHO_C='
942 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
943 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
945 echo "#! $SHELL" >conftest.sh
946 echo "exit 0" >>conftest.sh
948 if { (echo "$as_me:948: PATH=\".;.\"; conftest.sh") >&5
949 (PATH=".;."; conftest.sh) 2>&5
951 echo "$as_me:951: \$? = $ac_status" >&5
952 (exit $ac_status); }; then
953 ac_path_separator=';'
957 PATH_SEPARATOR="$ac_path_separator"
960 ac_config_headers="$ac_config_headers config.h:config_h.in"
963 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
964 if test -f $ac_dir/install-sh; then
966 ac_install_sh="$ac_aux_dir/install-sh -c"
968 elif test -f $ac_dir/install.sh; then
970 ac_install_sh="$ac_aux_dir/install.sh -c"
972 elif test -f $ac_dir/shtool; then
974 ac_install_sh="$ac_aux_dir/shtool install -c"
978 if test -z "$ac_aux_dir"; then
979 { { echo "$as_me:979: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
980 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
981 { (exit 1); exit 1; }; }
983 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
984 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
985 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
987 # Make sure we can run config.sub.
988 $ac_config_sub sun4 >/dev/null 2>&1 ||
989 { { echo "$as_me:989: error: cannot run $ac_config_sub" >&5
990 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
991 { (exit 1); exit 1; }; }
993 echo "$as_me:993: checking build system type" >&5
994 echo $ECHO_N "checking build system type... $ECHO_C" >&6
995 if test "${ac_cv_build+set}" = set; then
996 echo $ECHO_N "(cached) $ECHO_C" >&6
998 ac_cv_build_alias=$build_alias
999 test -z "$ac_cv_build_alias" &&
1000 ac_cv_build_alias=`$ac_config_guess`
1001 test -z "$ac_cv_build_alias" &&
1002 { { echo "$as_me:1002: error: cannot guess build type; you must specify one" >&5
1003 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1004 { (exit 1); exit 1; }; }
1005 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1006 { { echo "$as_me:1006: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1007 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1008 { (exit 1); exit 1; }; }
1011 echo "$as_me:1011: result: $ac_cv_build" >&5
1012 echo "${ECHO_T}$ac_cv_build" >&6
1014 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1015 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1016 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1018 echo "$as_me:1018: checking host system type" >&5
1019 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1020 if test "${ac_cv_host+set}" = set; then
1021 echo $ECHO_N "(cached) $ECHO_C" >&6
1023 ac_cv_host_alias=$host_alias
1024 test -z "$ac_cv_host_alias" &&
1025 ac_cv_host_alias=$ac_cv_build_alias
1026 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1027 { { echo "$as_me:1027: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1028 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1029 { (exit 1); exit 1; }; }
1032 echo "$as_me:1032: result: $ac_cv_host" >&5
1033 echo "${ECHO_T}$ac_cv_host" >&6
1035 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1040 echo "$as_me:1040: checking target system type" >&5
1041 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1042 if test "${ac_cv_target+set}" = set; then
1043 echo $ECHO_N "(cached) $ECHO_C" >&6
1045 ac_cv_target_alias=$target_alias
1046 test "x$ac_cv_target_alias" = "x" &&
1047 ac_cv_target_alias=$ac_cv_host_alias
1048 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1049 { { echo "$as_me:1049: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1050 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1051 { (exit 1); exit 1; }; }
1054 echo "$as_me:1054: result: $ac_cv_target" >&5
1055 echo "${ECHO_T}$ac_cv_target" >&6
1056 target=$ac_cv_target
1057 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1061 # The aliases save the names the user supplied, while $host etc.
1062 # will get canonicalized.
1063 test -n "$target_alias" &&
1064 test "$program_prefix$program_suffix$program_transform_name" = \
1066 program_prefix=${target_alias}-
1067 system_name="$host_os"
1069 system_name="`(uname -s -r) 2>/dev/null`"
1070 if test -z "$system_name" ; then
1071 system_name="`(hostname) 2>/dev/null`"
1074 test -n "$system_name" &&
1075 cat >>confdefs.h <<EOF
1076 #define SYSTEM_NAME "$system_name"
1079 if test "${cf_cv_system_name+set}" = set; then
1080 echo $ECHO_N "(cached) $ECHO_C" >&6
1082 cf_cv_system_name="$system_name"
1085 test -z "$system_name" && system_name="$cf_cv_system_name"
1086 test -n "$cf_cv_system_name" && echo "$as_me:1086: result: Configuring for $cf_cv_system_name" >&5
1087 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1089 if test ".$system_name" != ".$cf_cv_system_name" ; then
1090 echo "$as_me:1090: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1091 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1092 { { echo "$as_me:1092: error: \"Please remove config.cache and try again.\"" >&5
1093 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1094 { (exit 1); exit 1; }; }
1097 test "$program_prefix" != NONE &&
1098 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1099 # Use a double $ so make ignores it.
1100 test "$program_suffix" != NONE &&
1101 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1102 # Double any \ or $. echo might interpret backslashes.
1103 # By default was `s,x,x', remove it if useless.
1104 cat <<\_ACEOF >conftest.sed
1105 s/[\\$]/&&/g;s/;s,x,x,$//
1107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1111 ac_cpp='$CPP $CPPFLAGS'
1112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1115 ac_main_return=return
1116 if test -n "$ac_tool_prefix"; then
1117 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1118 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1119 echo "$as_me:1119: checking for $ac_word" >&5
1120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1121 if test "${ac_cv_prog_CC+set}" = set; then
1122 echo $ECHO_N "(cached) $ECHO_C" >&6
1124 if test -n "$CC"; then
1125 ac_cv_prog_CC="$CC" # Let the user override the test.
1127 ac_save_IFS=$IFS; IFS=$ac_path_separator
1129 for ac_dir in $ac_dummy; do
1131 test -z "$ac_dir" && ac_dir=.
1132 $as_executable_p "$ac_dir/$ac_word" || continue
1133 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1134 echo "$as_me:1134: found $ac_dir/$ac_word" >&5
1141 if test -n "$CC"; then
1142 echo "$as_me:1142: result: $CC" >&5
1143 echo "${ECHO_T}$CC" >&6
1145 echo "$as_me:1145: result: no" >&5
1146 echo "${ECHO_T}no" >&6
1150 if test -z "$ac_cv_prog_CC"; then
1152 # Extract the first word of "gcc", so it can be a program name with args.
1153 set dummy gcc; ac_word=$2
1154 echo "$as_me:1154: checking for $ac_word" >&5
1155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1157 echo $ECHO_N "(cached) $ECHO_C" >&6
1159 if test -n "$ac_ct_CC"; then
1160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1162 ac_save_IFS=$IFS; IFS=$ac_path_separator
1164 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 $as_executable_p "$ac_dir/$ac_word" || continue
1168 ac_cv_prog_ac_ct_CC="gcc"
1169 echo "$as_me:1169: found $ac_dir/$ac_word" >&5
1175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1176 if test -n "$ac_ct_CC"; then
1177 echo "$as_me:1177: result: $ac_ct_CC" >&5
1178 echo "${ECHO_T}$ac_ct_CC" >&6
1180 echo "$as_me:1180: result: no" >&5
1181 echo "${ECHO_T}no" >&6
1189 if test -z "$CC"; then
1190 if test -n "$ac_tool_prefix"; then
1191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1192 set dummy ${ac_tool_prefix}cc; ac_word=$2
1193 echo "$as_me:1193: checking for $ac_word" >&5
1194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1195 if test "${ac_cv_prog_CC+set}" = set; then
1196 echo $ECHO_N "(cached) $ECHO_C" >&6
1198 if test -n "$CC"; then
1199 ac_cv_prog_CC="$CC" # Let the user override the test.
1201 ac_save_IFS=$IFS; IFS=$ac_path_separator
1203 for ac_dir in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir=.
1206 $as_executable_p "$ac_dir/$ac_word" || continue
1207 ac_cv_prog_CC="${ac_tool_prefix}cc"
1208 echo "$as_me:1208: found $ac_dir/$ac_word" >&5
1215 if test -n "$CC"; then
1216 echo "$as_me:1216: result: $CC" >&5
1217 echo "${ECHO_T}$CC" >&6
1219 echo "$as_me:1219: result: no" >&5
1220 echo "${ECHO_T}no" >&6
1224 if test -z "$ac_cv_prog_CC"; then
1226 # Extract the first word of "cc", so it can be a program name with args.
1227 set dummy cc; ac_word=$2
1228 echo "$as_me:1228: checking for $ac_word" >&5
1229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1231 echo $ECHO_N "(cached) $ECHO_C" >&6
1233 if test -n "$ac_ct_CC"; then
1234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1236 ac_save_IFS=$IFS; IFS=$ac_path_separator
1238 for ac_dir in $ac_dummy; do
1240 test -z "$ac_dir" && ac_dir=.
1241 $as_executable_p "$ac_dir/$ac_word" || continue
1242 ac_cv_prog_ac_ct_CC="cc"
1243 echo "$as_me:1243: found $ac_dir/$ac_word" >&5
1249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1250 if test -n "$ac_ct_CC"; then
1251 echo "$as_me:1251: result: $ac_ct_CC" >&5
1252 echo "${ECHO_T}$ac_ct_CC" >&6
1254 echo "$as_me:1254: result: no" >&5
1255 echo "${ECHO_T}no" >&6
1264 if test -z "$CC"; then
1265 # Extract the first word of "cc", so it can be a program name with args.
1266 set dummy cc; ac_word=$2
1267 echo "$as_me:1267: checking for $ac_word" >&5
1268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1269 if test "${ac_cv_prog_CC+set}" = set; then
1270 echo $ECHO_N "(cached) $ECHO_C" >&6
1272 if test -n "$CC"; then
1273 ac_cv_prog_CC="$CC" # Let the user override the test.
1276 ac_save_IFS=$IFS; IFS=$ac_path_separator
1278 for ac_dir in $ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 $as_executable_p "$ac_dir/$ac_word" || continue
1282 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1283 ac_prog_rejected=yes
1287 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1291 if test $ac_prog_rejected = yes; then
1292 # We found a bogon in the path, so make sure we never use it.
1293 set dummy $ac_cv_prog_CC
1295 if test $# != 0; then
1296 # We chose a different compiler from the bogus one.
1297 # However, it has the same basename, so the bogon will be chosen
1298 # first if we set CC to just the basename; use the full file name.
1300 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1308 if test -n "$CC"; then
1309 echo "$as_me:1309: result: $CC" >&5
1310 echo "${ECHO_T}$CC" >&6
1312 echo "$as_me:1312: result: no" >&5
1313 echo "${ECHO_T}no" >&6
1317 if test -z "$CC"; then
1318 if test -n "$ac_tool_prefix"; then
1321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1323 echo "$as_me:1323: checking for $ac_word" >&5
1324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 if test "${ac_cv_prog_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 if test -n "$CC"; then
1329 ac_cv_prog_CC="$CC" # Let the user override the test.
1331 ac_save_IFS=$IFS; IFS=$ac_path_separator
1333 for ac_dir in $ac_dummy; do
1335 test -z "$ac_dir" && ac_dir=.
1336 $as_executable_p "$ac_dir/$ac_word" || continue
1337 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1338 echo "$as_me:1338: found $ac_dir/$ac_word" >&5
1345 if test -n "$CC"; then
1346 echo "$as_me:1346: result: $CC" >&5
1347 echo "${ECHO_T}$CC" >&6
1349 echo "$as_me:1349: result: no" >&5
1350 echo "${ECHO_T}no" >&6
1353 test -n "$CC" && break
1356 if test -z "$CC"; then
1360 # Extract the first word of "$ac_prog", so it can be a program name with args.
1361 set dummy $ac_prog; ac_word=$2
1362 echo "$as_me:1362: checking for $ac_word" >&5
1363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 if test -n "$ac_ct_CC"; then
1368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1370 ac_save_IFS=$IFS; IFS=$ac_path_separator
1372 for ac_dir in $ac_dummy; do
1374 test -z "$ac_dir" && ac_dir=.
1375 $as_executable_p "$ac_dir/$ac_word" || continue
1376 ac_cv_prog_ac_ct_CC="$ac_prog"
1377 echo "$as_me:1377: found $ac_dir/$ac_word" >&5
1383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1384 if test -n "$ac_ct_CC"; then
1385 echo "$as_me:1385: result: $ac_ct_CC" >&5
1386 echo "${ECHO_T}$ac_ct_CC" >&6
1388 echo "$as_me:1388: result: no" >&5
1389 echo "${ECHO_T}no" >&6
1392 test -n "$ac_ct_CC" && break
1400 test -z "$CC" && { { echo "$as_me:1400: error: no acceptable cc found in \$PATH" >&5
1401 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1402 { (exit 1); exit 1; }; }
1404 # Provide some information about the compiler.
1405 echo "$as_me:1405:" \
1406 "checking for C compiler version" >&5
1407 ac_compiler=`set X $ac_compile; echo $2`
1408 { (eval echo "$as_me:1408: \"$ac_compiler --version </dev/null >&5\"") >&5
1409 (eval $ac_compiler --version </dev/null >&5) 2>&5
1411 echo "$as_me:1411: \$? = $ac_status" >&5
1412 (exit $ac_status); }
1413 { (eval echo "$as_me:1413: \"$ac_compiler -v </dev/null >&5\"") >&5
1414 (eval $ac_compiler -v </dev/null >&5) 2>&5
1416 echo "$as_me:1416: \$? = $ac_status" >&5
1417 (exit $ac_status); }
1418 { (eval echo "$as_me:1418: \"$ac_compiler -V </dev/null >&5\"") >&5
1419 (eval $ac_compiler -V </dev/null >&5) 2>&5
1421 echo "$as_me:1421: \$? = $ac_status" >&5
1422 (exit $ac_status); }
1424 cat >conftest.$ac_ext <<_ACEOF
1425 #line 1425 "configure"
1426 #include "confdefs.h"
1436 ac_clean_files_save=$ac_clean_files
1437 ac_clean_files="$ac_clean_files a.out a.exe"
1438 # Try to create an executable without -o first, disregard a.out.
1439 # It will help us diagnose broken compilers, and finding out an intuition
1441 echo "$as_me:1441: checking for C compiler default output" >&5
1442 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1443 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1444 if { (eval echo "$as_me:1444: \"$ac_link_default\"") >&5
1445 (eval $ac_link_default) 2>&5
1447 echo "$as_me:1447: \$? = $ac_status" >&5
1448 (exit $ac_status); }; then
1449 # Find the output, starting from the most likely. This scheme is
1450 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1452 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1453 ls a.out conftest 2>/dev/null;
1454 ls a.* conftest.* 2>/dev/null`; do
1456 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1457 a.out ) # We found the default executable, but exeext='' is most
1460 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1461 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1468 echo "$as_me: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1470 { { echo "$as_me:1470: error: C compiler cannot create executables" >&5
1471 echo "$as_me: error: C compiler cannot create executables" >&2;}
1472 { (exit 77); exit 77; }; }
1475 ac_exeext=$ac_cv_exeext
1476 echo "$as_me:1476: result: $ac_file" >&5
1477 echo "${ECHO_T}$ac_file" >&6
1479 # Check the compiler produces executables we can run. If not, either
1480 # the compiler is broken, or we cross compile.
1481 echo "$as_me:1481: checking whether the C compiler works" >&5
1482 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1483 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1484 # If not cross compiling, check that we can run a simple program.
1485 if test "$cross_compiling" != yes; then
1486 if { ac_try='./$ac_file'
1487 { (eval echo "$as_me:1487: \"$ac_try\"") >&5
1490 echo "$as_me:1490: \$? = $ac_status" >&5
1491 (exit $ac_status); }; }; then
1494 if test "$cross_compiling" = maybe; then
1497 { { echo "$as_me:1497: error: cannot run C compiled programs.
1498 If you meant to cross compile, use \`--host'." >&5
1499 echo "$as_me: error: cannot run C compiled programs.
1500 If you meant to cross compile, use \`--host'." >&2;}
1501 { (exit 1); exit 1; }; }
1505 echo "$as_me:1505: result: yes" >&5
1506 echo "${ECHO_T}yes" >&6
1508 rm -f a.out a.exe conftest$ac_cv_exeext
1509 ac_clean_files=$ac_clean_files_save
1510 # Check the compiler produces executables we can run. If not, either
1511 # the compiler is broken, or we cross compile.
1512 echo "$as_me:1512: checking whether we are cross compiling" >&5
1513 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1514 echo "$as_me:1514: result: $cross_compiling" >&5
1515 echo "${ECHO_T}$cross_compiling" >&6
1517 echo "$as_me:1517: checking for executable suffix" >&5
1518 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1519 if { (eval echo "$as_me:1519: \"$ac_link\"") >&5
1520 (eval $ac_link) 2>&5
1522 echo "$as_me:1522: \$? = $ac_status" >&5
1523 (exit $ac_status); }; then
1524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1525 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1526 # work properly (i.e., refer to `conftest.exe'), while it won't with
1528 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1530 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1531 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1538 { { echo "$as_me:1538: error: cannot compute EXEEXT: cannot compile and link" >&5
1539 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1540 { (exit 1); exit 1; }; }
1543 rm -f conftest$ac_cv_exeext
1544 echo "$as_me:1544: result: $ac_cv_exeext" >&5
1545 echo "${ECHO_T}$ac_cv_exeext" >&6
1547 rm -f conftest.$ac_ext
1548 EXEEXT=$ac_cv_exeext
1550 echo "$as_me:1550: checking for object suffix" >&5
1551 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1552 if test "${ac_cv_objext+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 cat >conftest.$ac_ext <<_ACEOF
1556 #line 1556 "configure"
1557 #include "confdefs.h"
1567 rm -f conftest.o conftest.obj
1568 if { (eval echo "$as_me:1568: \"$ac_compile\"") >&5
1569 (eval $ac_compile) 2>&5
1571 echo "$as_me:1571: \$? = $ac_status" >&5
1572 (exit $ac_status); }; then
1573 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1575 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1581 echo "$as_me: failed program was:" >&5
1582 cat conftest.$ac_ext >&5
1583 { { echo "$as_me:1583: error: cannot compute OBJEXT: cannot compile" >&5
1584 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1585 { (exit 1); exit 1; }; }
1588 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1590 echo "$as_me:1590: result: $ac_cv_objext" >&5
1591 echo "${ECHO_T}$ac_cv_objext" >&6
1592 OBJEXT=$ac_cv_objext
1594 echo "$as_me:1594: checking whether we are using the GNU C compiler" >&5
1595 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1596 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 cat >conftest.$ac_ext <<_ACEOF
1600 #line 1600 "configure"
1601 #include "confdefs.h"
1614 rm -f conftest.$ac_objext
1615 if { (eval echo "$as_me:1615: \"$ac_compile\"") >&5
1616 (eval $ac_compile) 2>&5
1618 echo "$as_me:1618: \$? = $ac_status" >&5
1619 (exit $ac_status); } &&
1620 { ac_try='test -s conftest.$ac_objext'
1621 { (eval echo "$as_me:1621: \"$ac_try\"") >&5
1624 echo "$as_me:1624: \$? = $ac_status" >&5
1625 (exit $ac_status); }; }; then
1628 echo "$as_me: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1632 rm -f conftest.$ac_objext conftest.$ac_ext
1633 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1636 echo "$as_me:1636: result: $ac_cv_c_compiler_gnu" >&5
1637 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1638 GCC=`test $ac_compiler_gnu = yes && echo yes`
1639 ac_test_CFLAGS=${CFLAGS+set}
1640 ac_save_CFLAGS=$CFLAGS
1642 echo "$as_me:1642: checking whether $CC accepts -g" >&5
1643 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1644 if test "${ac_cv_prog_cc_g+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 cat >conftest.$ac_ext <<_ACEOF
1648 #line 1648 "configure"
1649 #include "confdefs.h"
1659 rm -f conftest.$ac_objext
1660 if { (eval echo "$as_me:1660: \"$ac_compile\"") >&5
1661 (eval $ac_compile) 2>&5
1663 echo "$as_me:1663: \$? = $ac_status" >&5
1664 (exit $ac_status); } &&
1665 { ac_try='test -s conftest.$ac_objext'
1666 { (eval echo "$as_me:1666: \"$ac_try\"") >&5
1669 echo "$as_me:1669: \$? = $ac_status" >&5
1670 (exit $ac_status); }; }; then
1673 echo "$as_me: failed program was:" >&5
1674 cat conftest.$ac_ext >&5
1677 rm -f conftest.$ac_objext conftest.$ac_ext
1679 echo "$as_me:1679: result: $ac_cv_prog_cc_g" >&5
1680 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1681 if test "$ac_test_CFLAGS" = set; then
1682 CFLAGS=$ac_save_CFLAGS
1683 elif test $ac_cv_prog_cc_g = yes; then
1684 if test "$GCC" = yes; then
1690 if test "$GCC" = yes; then
1696 # Some people use a C++ compiler to compile C. Since we use `exit',
1697 # in C++ we need to declare it. In case someone uses the same compiler
1698 # for both compiling C and C++ we need to have the C++ compiler decide
1699 # the declaration of exit, since it's the most demanding environment.
1700 cat >conftest.$ac_ext <<_ACEOF
1705 rm -f conftest.$ac_objext
1706 if { (eval echo "$as_me:1706: \"$ac_compile\"") >&5
1707 (eval $ac_compile) 2>&5
1709 echo "$as_me:1709: \$? = $ac_status" >&5
1710 (exit $ac_status); } &&
1711 { ac_try='test -s conftest.$ac_objext'
1712 { (eval echo "$as_me:1712: \"$ac_try\"") >&5
1715 echo "$as_me:1715: \$? = $ac_status" >&5
1716 (exit $ac_status); }; }; then
1717 for ac_declaration in \
1719 '#include <stdlib.h>' \
1720 'extern "C" void std::exit (int) throw (); using std::exit;' \
1721 'extern "C" void std::exit (int); using std::exit;' \
1722 'extern "C" void exit (int) throw ();' \
1723 'extern "C" void exit (int);' \
1726 cat >conftest.$ac_ext <<_ACEOF
1727 #line 1727 "configure"
1728 #include "confdefs.h"
1739 rm -f conftest.$ac_objext
1740 if { (eval echo "$as_me:1740: \"$ac_compile\"") >&5
1741 (eval $ac_compile) 2>&5
1743 echo "$as_me:1743: \$? = $ac_status" >&5
1744 (exit $ac_status); } &&
1745 { ac_try='test -s conftest.$ac_objext'
1746 { (eval echo "$as_me:1746: \"$ac_try\"") >&5
1749 echo "$as_me:1749: \$? = $ac_status" >&5
1750 (exit $ac_status); }; }; then
1753 echo "$as_me: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1757 rm -f conftest.$ac_objext conftest.$ac_ext
1758 cat >conftest.$ac_ext <<_ACEOF
1759 #line 1759 "configure"
1760 #include "confdefs.h"
1770 rm -f conftest.$ac_objext
1771 if { (eval echo "$as_me:1771: \"$ac_compile\"") >&5
1772 (eval $ac_compile) 2>&5
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); } &&
1776 { ac_try='test -s conftest.$ac_objext'
1777 { (eval echo "$as_me:1777: \"$ac_try\"") >&5
1780 echo "$as_me:1780: \$? = $ac_status" >&5
1781 (exit $ac_status); }; }; then
1784 echo "$as_me: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1787 rm -f conftest.$ac_objext conftest.$ac_ext
1790 if test -n "$ac_declaration"; then
1791 echo '#ifdef __cplusplus' >>confdefs.h
1792 echo $ac_declaration >>confdefs.h
1793 echo '#endif' >>confdefs.h
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1800 rm -f conftest.$ac_objext conftest.$ac_ext
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 ac_main_return=return
1809 if test "$GCC" = yes ; then
1810 echo "$as_me:1810: checking version of $CC" >&5
1811 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1812 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.].*//'`"
1813 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1814 echo "$as_me:1814: result: $GCC_VERSION" >&5
1815 echo "${ECHO_T}$GCC_VERSION" >&6
1818 echo "$as_me:1818: checking for $CC option to accept ANSI C" >&5
1819 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1820 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 ac_cv_prog_cc_stdc=no
1825 cat >conftest.$ac_ext <<_ACEOF
1826 #line 1826 "configure"
1827 #include "confdefs.h"
1830 #include <sys/types.h>
1831 #include <sys/stat.h>
1832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1833 struct buf { int x; };
1834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1835 static char *e (p, i)
1841 static char *f (char * (*g) (char **, int), char **p, ...)
1846 s = g (p, va_arg (v,int));
1850 int test (int i, double x);
1851 struct s1 {int (*f) (int a);};
1852 struct s2 {int (*f) (double a);};
1853 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1859 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1864 # Don't try gcc -ansi; that turns off useful extensions and
1865 # breaks some systems' header files.
1866 # AIX -qlanglvl=ansi
1867 # Ultrix and OSF/1 -std1
1868 # HP-UX 10.20 and later -Ae
1869 # HP-UX older versions -Aa -D_HPUX_SOURCE
1870 # SVR4 -Xc -D__EXTENSIONS__
1871 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1873 CC="$ac_save_CC $ac_arg"
1874 rm -f conftest.$ac_objext
1875 if { (eval echo "$as_me:1875: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1878 echo "$as_me:1878: \$? = $ac_status" >&5
1879 (exit $ac_status); } &&
1880 { ac_try='test -s conftest.$ac_objext'
1881 { (eval echo "$as_me:1881: \"$ac_try\"") >&5
1884 echo "$as_me:1884: \$? = $ac_status" >&5
1885 (exit $ac_status); }; }; then
1886 ac_cv_prog_cc_stdc=$ac_arg
1889 echo "$as_me: failed program was:" >&5
1890 cat conftest.$ac_ext >&5
1892 rm -f conftest.$ac_objext
1894 rm -f conftest.$ac_ext conftest.$ac_objext
1899 case "x$ac_cv_prog_cc_stdc" in
1901 echo "$as_me:1901: result: none needed" >&5
1902 echo "${ECHO_T}none needed" >&6 ;;
1904 echo "$as_me:1904: result: $ac_cv_prog_cc_stdc" >&5
1905 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1906 CC="$CC $ac_cv_prog_cc_stdc" ;;
1909 # This should have been defined by AC_PROG_CC
1912 echo "$as_me:1912: checking \$CC variable" >&5
1913 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1916 echo "$as_me:1916: result: broken" >&5
1917 echo "${ECHO_T}broken" >&6
1918 { echo "$as_me:1918: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1919 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1921 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1922 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1927 cf_new_extra_cppflags=
1929 for cf_add_cflags in $cf_flags
1931 case $cf_fix_cppflags in
1933 case $cf_add_cflags in #(vi
1934 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1935 case $cf_add_cflags in
1937 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1939 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1940 && test -z "${cf_tst_cflags}" \
1941 && cf_fix_cppflags=yes
1943 if test $cf_fix_cppflags = yes ; then
1944 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1946 elif test "${cf_tst_cflags}" = "\"'" ; then
1947 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1953 *$cf_add_cflags) #(vi
1956 case $cf_add_cflags in #(vi
1958 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1960 CPPFLAGS=`echo "$CPPFLAGS" | \
1961 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1962 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1966 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1971 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1976 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1978 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1980 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1981 && test -z "${cf_tst_cflags}" \
1982 && cf_fix_cppflags=no
1987 if test -n "$cf_new_cflags" ; then
1989 CFLAGS="$CFLAGS $cf_new_cflags"
1992 if test -n "$cf_new_cppflags" ; then
1994 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1997 if test -n "$cf_new_extra_cppflags" ; then
1999 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2004 echo "$as_me:2004: result: ok" >&5
2005 echo "${ECHO_T}ok" >&6
2009 echo "$as_me:2009: checking whether ${MAKE-make} sets \${MAKE}" >&5
2010 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2011 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2012 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 cat >conftest.make <<\EOF
2017 @echo 'ac_maketemp="${MAKE}"'
2019 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2020 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2021 if test -n "$ac_maketemp"; then
2022 eval ac_cv_prog_make_${ac_make}_set=yes
2024 eval ac_cv_prog_make_${ac_make}_set=no
2028 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2029 echo "$as_me:2029: result: yes" >&5
2030 echo "${ECHO_T}yes" >&6
2033 echo "$as_me:2033: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 SET_MAKE="MAKE=${MAKE-make}"
2038 # Find a good install program. We prefer a C program (faster),
2039 # so one script is as good as another. But avoid the broken or
2040 # incompatible versions:
2041 # SysV /etc/install, /usr/sbin/install
2042 # SunOS /usr/etc/install
2043 # IRIX /sbin/install
2045 # AmigaOS /C/install, which installs bootblocks on floppy discs
2046 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2047 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2048 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2049 # ./install, which can be erroneously created by make from ./install.sh.
2050 echo "$as_me:2050: checking for a BSD compatible install" >&5
2051 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2052 if test -z "$INSTALL"; then
2053 if test "${ac_cv_path_install+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 ac_save_IFS=$IFS; IFS=$ac_path_separator
2057 for ac_dir in $PATH; do
2059 # Account for people who put trailing slashes in PATH elements.
2061 / | ./ | .// | /cC/* \
2062 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2065 # OSF1 and SCO ODT 3.0 have their own names for install.
2066 # Don't use installbsd from OSF since it installs stuff as root
2068 for ac_prog in ginstall scoinst install; do
2069 if $as_executable_p "$ac_dir/$ac_prog"; then
2070 if test $ac_prog = install &&
2071 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2072 # AIX install. It has an incompatible calling convention.
2074 elif test $ac_prog = install &&
2075 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2076 # program-specific install script used by HP pwplus--don't use.
2079 ac_cv_path_install="$ac_dir/$ac_prog -c"
2089 if test "${ac_cv_path_install+set}" = set; then
2090 INSTALL=$ac_cv_path_install
2092 # As a last resort, use the slow shell script. We don't cache a
2093 # path for INSTALL within a source directory, because that will
2094 # break other packages using the cache if that directory is
2095 # removed, or if the path is relative.
2096 INSTALL=$ac_install_sh
2099 echo "$as_me:2099: result: $INSTALL" >&5
2100 echo "${ECHO_T}$INSTALL" >&6
2102 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2103 # It thinks the first close brace ends the variable substitution.
2104 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2106 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2108 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2110 echo "$as_me:2110: checking if filesystem supports mixed-case filenames" >&5
2111 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2112 if test "${cf_cv_mixedcase+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test "$cross_compiling" = yes ; then
2117 case $target_alias in #(vi
2118 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
2126 rm -f conftest CONFTEST
2128 if test -f CONFTEST ; then
2133 rm -f conftest CONFTEST
2137 echo "$as_me:2137: result: $cf_cv_mixedcase" >&5
2138 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2139 test "$cf_cv_mixedcase" = yes &&
2140 cat >>confdefs.h <<\EOF
2141 #define MIXEDCASE_FILENAMES 1
2144 for ac_prog in exctags ctags
2146 # Extract the first word of "$ac_prog", so it can be a program name with args.
2147 set dummy $ac_prog; ac_word=$2
2148 echo "$as_me:2148: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CTAGS+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 if test -n "$CTAGS"; then
2154 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2156 ac_save_IFS=$IFS; IFS=$ac_path_separator
2158 for ac_dir in $ac_dummy; do
2160 test -z "$ac_dir" && ac_dir=.
2161 $as_executable_p "$ac_dir/$ac_word" || continue
2162 ac_cv_prog_CTAGS="$ac_prog"
2163 echo "$as_me:2163: found $ac_dir/$ac_word" >&5
2169 CTAGS=$ac_cv_prog_CTAGS
2170 if test -n "$CTAGS"; then
2171 echo "$as_me:2171: result: $CTAGS" >&5
2172 echo "${ECHO_T}$CTAGS" >&6
2174 echo "$as_me:2174: result: no" >&5
2175 echo "${ECHO_T}no" >&6
2178 test -n "$CTAGS" && break
2181 for ac_prog in exetags etags
2183 # Extract the first word of "$ac_prog", so it can be a program name with args.
2184 set dummy $ac_prog; ac_word=$2
2185 echo "$as_me:2185: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187 if test "${ac_cv_prog_ETAGS+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test -n "$ETAGS"; then
2191 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2193 ac_save_IFS=$IFS; IFS=$ac_path_separator
2195 for ac_dir in $ac_dummy; do
2197 test -z "$ac_dir" && ac_dir=.
2198 $as_executable_p "$ac_dir/$ac_word" || continue
2199 ac_cv_prog_ETAGS="$ac_prog"
2200 echo "$as_me:2200: found $ac_dir/$ac_word" >&5
2206 ETAGS=$ac_cv_prog_ETAGS
2207 if test -n "$ETAGS"; then
2208 echo "$as_me:2208: result: $ETAGS" >&5
2209 echo "${ECHO_T}$ETAGS" >&6
2211 echo "$as_me:2211: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2215 test -n "$ETAGS" && break
2218 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2219 set dummy ${CTAGS:-ctags}; ac_word=$2
2220 echo "$as_me:2220: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test -n "$MAKE_LOWER_TAGS"; then
2226 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2228 ac_save_IFS=$IFS; IFS=$ac_path_separator
2230 for ac_dir in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir=.
2233 $as_executable_p "$ac_dir/$ac_word" || continue
2234 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2235 echo "$as_me:2235: found $ac_dir/$ac_word" >&5
2239 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2242 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2243 if test -n "$MAKE_LOWER_TAGS"; then
2244 echo "$as_me:2244: result: $MAKE_LOWER_TAGS" >&5
2245 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2247 echo "$as_me:2247: result: no" >&5
2248 echo "${ECHO_T}no" >&6
2251 if test "$cf_cv_mixedcase" = yes ; then
2252 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2253 set dummy ${ETAGS:-etags}; ac_word=$2
2254 echo "$as_me:2254: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 if test -n "$MAKE_UPPER_TAGS"; then
2260 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2262 ac_save_IFS=$IFS; IFS=$ac_path_separator
2264 for ac_dir in $ac_dummy; do
2266 test -z "$ac_dir" && ac_dir=.
2267 $as_executable_p "$ac_dir/$ac_word" || continue
2268 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2269 echo "$as_me:2269: found $ac_dir/$ac_word" >&5
2273 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2276 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2277 if test -n "$MAKE_UPPER_TAGS"; then
2278 echo "$as_me:2278: result: $MAKE_UPPER_TAGS" >&5
2279 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2281 echo "$as_me:2281: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2289 if test "$MAKE_UPPER_TAGS" = yes ; then
2295 if test "$MAKE_LOWER_TAGS" = yes ; then
2301 for ac_prog in mawk gawk nawk awk
2303 # Extract the first word of "$ac_prog", so it can be a program name with args.
2304 set dummy $ac_prog; ac_word=$2
2305 echo "$as_me:2305: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307 if test "${ac_cv_prog_AWK+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 if test -n "$AWK"; then
2311 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2313 ac_save_IFS=$IFS; IFS=$ac_path_separator
2315 for ac_dir in $ac_dummy; do
2317 test -z "$ac_dir" && ac_dir=.
2318 $as_executable_p "$ac_dir/$ac_word" || continue
2319 ac_cv_prog_AWK="$ac_prog"
2320 echo "$as_me:2320: found $ac_dir/$ac_word" >&5
2327 if test -n "$AWK"; then
2328 echo "$as_me:2328: result: $AWK" >&5
2329 echo "${ECHO_T}$AWK" >&6
2331 echo "$as_me:2331: result: no" >&5
2332 echo "${ECHO_T}no" >&6
2335 test -n "$AWK" && break
2338 test -z "$AWK" && { { echo "$as_me:2338: error: No awk program found" >&5
2339 echo "$as_me: error: No awk program found" >&2;}
2340 { (exit 1); exit 1; }; }
2342 for ac_prog in tdlint lint alint splint lclint
2344 # Extract the first word of "$ac_prog", so it can be a program name with args.
2345 set dummy $ac_prog; ac_word=$2
2346 echo "$as_me:2346: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_LINT+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test -n "$LINT"; then
2352 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2354 ac_save_IFS=$IFS; IFS=$ac_path_separator
2356 for ac_dir in $ac_dummy; do
2358 test -z "$ac_dir" && ac_dir=.
2359 $as_executable_p "$ac_dir/$ac_word" || continue
2360 ac_cv_prog_LINT="$ac_prog"
2361 echo "$as_me:2361: found $ac_dir/$ac_word" >&5
2367 LINT=$ac_cv_prog_LINT
2368 if test -n "$LINT"; then
2369 echo "$as_me:2369: result: $LINT" >&5
2370 echo "${ECHO_T}$LINT" >&6
2372 echo "$as_me:2372: result: no" >&5
2373 echo "${ECHO_T}no" >&6
2376 test -n "$LINT" && break
2380 cf_POSIX_C_SOURCE=199506L
2383 case $host_os in #(vi
2385 cf_xopen_source="-D_ALL_SOURCE"
2391 cf_xopen_source="-D_APPLE_C_SOURCE"
2394 cf_xopen_source="-D_DARWIN_C_SOURCE"
2397 freebsd*|dragonfly*) #(vi
2398 # 5.x headers associate
2399 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2400 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2401 cf_POSIX_C_SOURCE=200112L
2403 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2406 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2409 cf_xopen_source="-D_HPUX_SOURCE"
2412 cf_xopen_source="-D_SGI_SOURCE"
2415 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2417 echo "$as_me:2417: checking if we must define _GNU_SOURCE" >&5
2418 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2419 if test "${cf_cv_gnu_source+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 cat >conftest.$ac_ext <<_ACEOF
2424 #line 2424 "configure"
2425 #include "confdefs.h"
2426 #include <sys/types.h>
2431 #ifndef _XOPEN_SOURCE
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:2439: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>&5
2442 echo "$as_me:2442: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:2445: \"$ac_try\"") >&5
2448 echo "$as_me:2448: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2455 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line 2457 "configure"
2458 #include "confdefs.h"
2459 #include <sys/types.h>
2464 #ifdef _XOPEN_SOURCE
2471 rm -f conftest.$ac_objext
2472 if { (eval echo "$as_me:2472: \"$ac_compile\"") >&5
2473 (eval $ac_compile) 2>&5
2475 echo "$as_me:2475: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (eval echo "$as_me:2478: \"$ac_try\"") >&5
2481 echo "$as_me:2481: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2485 echo "$as_me: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2487 cf_cv_gnu_source=yes
2489 rm -f conftest.$ac_objext conftest.$ac_ext
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2496 echo "$as_me:2496: result: $cf_cv_gnu_source" >&5
2497 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2498 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2502 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2505 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2507 cf_save_CFLAGS="$CFLAGS"
2508 cf_save_CPPFLAGS="$CPPFLAGS"
2510 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2511 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2512 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2514 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2515 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2516 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2518 echo "$as_me:2518: checking if we should define _POSIX_C_SOURCE" >&5
2519 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2520 if test "${cf_cv_posix_c_source+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 echo "${as_me:-configure}:2524: testing if the symbol is already defined go no further ..." 1>&5
2526 cat >conftest.$ac_ext <<_ACEOF
2527 #line 2527 "configure"
2528 #include "confdefs.h"
2529 #include <sys/types.h>
2534 #ifndef _POSIX_C_SOURCE
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:2542: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>&5
2545 echo "$as_me:2545: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:2548: \"$ac_try\"") >&5
2551 echo "$as_me:2551: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 cf_cv_posix_c_source=no
2555 echo "$as_me: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2557 cf_want_posix_source=no
2558 case .$cf_POSIX_C_SOURCE in #(vi
2560 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2563 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2564 cf_want_posix_source=yes
2567 cf_want_posix_source=yes
2570 if test "$cf_want_posix_source" = yes ; then
2571 cat >conftest.$ac_ext <<_ACEOF
2572 #line 2572 "configure"
2573 #include "confdefs.h"
2574 #include <sys/types.h>
2579 #ifdef _POSIX_SOURCE
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:2587: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>&5
2590 echo "$as_me:2590: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:2593: \"$ac_try\"") >&5
2596 echo "$as_me:2596: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2600 echo "$as_me: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2604 rm -f conftest.$ac_objext conftest.$ac_ext
2607 echo "${as_me:-configure}:2607: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2609 CFLAGS="$cf_trim_CFLAGS"
2610 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2612 echo "${as_me:-configure}:2612: testing if the second compile does not leave our definition intact error ..." 1>&5
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #line 2615 "configure"
2616 #include "confdefs.h"
2617 #include <sys/types.h>
2622 #ifndef _POSIX_C_SOURCE
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:2630: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>&5
2633 echo "$as_me:2633: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:2636: \"$ac_try\"") >&5
2639 echo "$as_me:2639: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2643 echo "$as_me: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 cf_cv_posix_c_source=no
2647 rm -f conftest.$ac_objext conftest.$ac_ext
2648 CFLAGS="$cf_save_CFLAGS"
2649 CPPFLAGS="$cf_save_CPPFLAGS"
2652 rm -f conftest.$ac_objext conftest.$ac_ext
2655 echo "$as_me:2655: result: $cf_cv_posix_c_source" >&5
2656 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2658 if test "$cf_cv_posix_c_source" != no ; then
2659 CFLAGS="$cf_trim_CFLAGS"
2660 CPPFLAGS="$cf_trim_CPPFLAGS"
2665 cf_new_extra_cppflags=
2667 for cf_add_cflags in $cf_cv_posix_c_source
2669 case $cf_fix_cppflags in
2671 case $cf_add_cflags in #(vi
2672 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2673 case $cf_add_cflags in
2675 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2677 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2678 && test -z "${cf_tst_cflags}" \
2679 && cf_fix_cppflags=yes
2681 if test $cf_fix_cppflags = yes ; then
2682 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2684 elif test "${cf_tst_cflags}" = "\"'" ; then
2685 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2691 *$cf_add_cflags) #(vi
2694 case $cf_add_cflags in #(vi
2696 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2698 CPPFLAGS=`echo "$CPPFLAGS" | \
2699 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2700 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2704 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2709 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2714 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2716 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2718 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2719 && test -z "${cf_tst_cflags}" \
2720 && cf_fix_cppflags=no
2725 if test -n "$cf_new_cflags" ; then
2727 CFLAGS="$CFLAGS $cf_new_cflags"
2730 if test -n "$cf_new_cppflags" ; then
2732 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2735 if test -n "$cf_new_extra_cppflags" ; then
2737 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2744 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2747 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
2748 cf_xopen_source="-D_BSD_SOURCE"
2752 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2755 cf_xopen_source="-D_OSF_SOURCE"
2758 cf_xopen_source="-D_QNX_SOURCE"
2761 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2764 cf_xopen_source="-D__EXTENSIONS__"
2765 cf_cv_xopen_source=broken
2769 echo "$as_me:2769: checking if we should define _XOPEN_SOURCE" >&5
2770 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2771 if test "${cf_cv_xopen_source+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 cat >conftest.$ac_ext <<_ACEOF
2776 #line 2776 "configure"
2777 #include "confdefs.h"
2781 #include <sys/types.h>
2787 #ifndef _XOPEN_SOURCE
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:2795: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>&5
2798 echo "$as_me:2798: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:2801: \"$ac_try\"") >&5
2804 echo "$as_me:2804: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 cf_cv_xopen_source=no
2808 echo "$as_me: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2811 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2812 cat >conftest.$ac_ext <<_ACEOF
2813 #line 2813 "configure"
2814 #include "confdefs.h"
2818 #include <sys/types.h>
2824 #ifdef _XOPEN_SOURCE
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:2832: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>&5
2835 echo "$as_me:2835: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:2838: \"$ac_try\"") >&5
2841 echo "$as_me:2841: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 cf_cv_xopen_source=no
2845 echo "$as_me: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2847 cf_cv_xopen_source=$cf_XOPEN_SOURCE
2849 rm -f conftest.$ac_objext conftest.$ac_ext
2853 rm -f conftest.$ac_objext conftest.$ac_ext
2856 echo "$as_me:2856: result: $cf_cv_xopen_source" >&5
2857 echo "${ECHO_T}$cf_cv_xopen_source" >&6
2859 if test "$cf_cv_xopen_source" != no ; then
2861 CFLAGS=`echo "$CFLAGS" | \
2862 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2863 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2865 CPPFLAGS=`echo "$CPPFLAGS" | \
2866 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2867 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2869 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
2874 cf_new_extra_cppflags=
2876 for cf_add_cflags in $cf_temp_xopen_source
2878 case $cf_fix_cppflags in
2880 case $cf_add_cflags in #(vi
2881 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2882 case $cf_add_cflags in
2884 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2886 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2887 && test -z "${cf_tst_cflags}" \
2888 && cf_fix_cppflags=yes
2890 if test $cf_fix_cppflags = yes ; then
2891 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2893 elif test "${cf_tst_cflags}" = "\"'" ; then
2894 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2900 *$cf_add_cflags) #(vi
2903 case $cf_add_cflags in #(vi
2905 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2907 CPPFLAGS=`echo "$CPPFLAGS" | \
2908 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2909 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2913 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2918 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2923 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2925 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2927 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2928 && test -z "${cf_tst_cflags}" \
2929 && cf_fix_cppflags=no
2934 if test -n "$cf_new_cflags" ; then
2936 CFLAGS="$CFLAGS $cf_new_cflags"
2939 if test -n "$cf_new_cppflags" ; then
2941 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2944 if test -n "$cf_new_extra_cppflags" ; then
2946 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2951 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2953 cf_save_CFLAGS="$CFLAGS"
2954 cf_save_CPPFLAGS="$CPPFLAGS"
2956 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2957 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2958 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2960 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2961 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2962 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2964 echo "$as_me:2964: checking if we should define _POSIX_C_SOURCE" >&5
2965 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2966 if test "${cf_cv_posix_c_source+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 echo "${as_me:-configure}:2970: testing if the symbol is already defined go no further ..." 1>&5
2972 cat >conftest.$ac_ext <<_ACEOF
2973 #line 2973 "configure"
2974 #include "confdefs.h"
2975 #include <sys/types.h>
2980 #ifndef _POSIX_C_SOURCE
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>&5
2991 echo "$as_me:2991: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 cf_cv_posix_c_source=no
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003 cf_want_posix_source=no
3004 case .$cf_POSIX_C_SOURCE in #(vi
3006 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3009 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3010 cf_want_posix_source=yes
3013 cf_want_posix_source=yes
3016 if test "$cf_want_posix_source" = yes ; then
3017 cat >conftest.$ac_ext <<_ACEOF
3018 #line 3018 "configure"
3019 #include "confdefs.h"
3020 #include <sys/types.h>
3025 #ifdef _POSIX_SOURCE
3032 rm -f conftest.$ac_objext
3033 if { (eval echo "$as_me:3033: \"$ac_compile\"") >&5
3034 (eval $ac_compile) 2>&5
3036 echo "$as_me:3036: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:3039: \"$ac_try\"") >&5
3042 echo "$as_me:3042: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3046 echo "$as_me: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3048 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3050 rm -f conftest.$ac_objext conftest.$ac_ext
3053 echo "${as_me:-configure}:3053: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3055 CFLAGS="$cf_trim_CFLAGS"
3056 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3058 echo "${as_me:-configure}:3058: testing if the second compile does not leave our definition intact error ..." 1>&5
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line 3061 "configure"
3062 #include "confdefs.h"
3063 #include <sys/types.h>
3068 #ifndef _POSIX_C_SOURCE
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:3076: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>&5
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
3085 echo "$as_me:3085: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3089 echo "$as_me: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3091 cf_cv_posix_c_source=no
3093 rm -f conftest.$ac_objext conftest.$ac_ext
3094 CFLAGS="$cf_save_CFLAGS"
3095 CPPFLAGS="$cf_save_CPPFLAGS"
3098 rm -f conftest.$ac_objext conftest.$ac_ext
3101 echo "$as_me:3101: result: $cf_cv_posix_c_source" >&5
3102 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3104 if test "$cf_cv_posix_c_source" != no ; then
3105 CFLAGS="$cf_trim_CFLAGS"
3106 CPPFLAGS="$cf_trim_CPPFLAGS"
3111 cf_new_extra_cppflags=
3113 for cf_add_cflags in $cf_cv_posix_c_source
3115 case $cf_fix_cppflags in
3117 case $cf_add_cflags in #(vi
3118 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3119 case $cf_add_cflags in
3121 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3123 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3124 && test -z "${cf_tst_cflags}" \
3125 && cf_fix_cppflags=yes
3127 if test $cf_fix_cppflags = yes ; then
3128 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3130 elif test "${cf_tst_cflags}" = "\"'" ; then
3131 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3137 *$cf_add_cflags) #(vi
3140 case $cf_add_cflags in #(vi
3142 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3144 CPPFLAGS=`echo "$CPPFLAGS" | \
3145 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3146 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3150 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3155 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3160 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3162 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3164 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3165 && test -z "${cf_tst_cflags}" \
3166 && cf_fix_cppflags=no
3171 if test -n "$cf_new_cflags" ; then
3173 CFLAGS="$CFLAGS $cf_new_cflags"
3176 if test -n "$cf_new_cppflags" ; then
3178 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3181 if test -n "$cf_new_extra_cppflags" ; then
3183 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3191 if test -n "$cf_xopen_source" ; then
3196 cf_new_extra_cppflags=
3198 for cf_add_cflags in $cf_xopen_source
3200 case $cf_fix_cppflags in
3202 case $cf_add_cflags in #(vi
3203 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3204 case $cf_add_cflags in
3206 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3208 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3209 && test -z "${cf_tst_cflags}" \
3210 && cf_fix_cppflags=yes
3212 if test $cf_fix_cppflags = yes ; then
3213 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3215 elif test "${cf_tst_cflags}" = "\"'" ; then
3216 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3222 *$cf_add_cflags) #(vi
3225 case $cf_add_cflags in #(vi
3227 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3229 CPPFLAGS=`echo "$CPPFLAGS" | \
3230 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3231 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3235 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3240 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3245 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3247 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3249 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3250 && test -z "${cf_tst_cflags}" \
3251 && cf_fix_cppflags=no
3256 if test -n "$cf_new_cflags" ; then
3258 CFLAGS="$CFLAGS $cf_new_cflags"
3261 if test -n "$cf_new_cppflags" ; then
3263 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3266 if test -n "$cf_new_extra_cppflags" ; then
3268 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3273 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3274 echo "$as_me:3274: checking if _XOPEN_SOURCE really is set" >&5
3275 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3276 cat >conftest.$ac_ext <<_ACEOF
3277 #line 3277 "configure"
3278 #include "confdefs.h"
3284 #ifndef _XOPEN_SOURCE
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:3292: \"$ac_compile\"") >&5
3293 (eval $ac_compile) 2>&5
3295 echo "$as_me:3295: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:3298: \"$ac_try\"") >&5
3301 echo "$as_me:3301: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 cf_XOPEN_SOURCE_set=yes
3305 echo "$as_me: failed program was:" >&5
3306 cat conftest.$ac_ext >&5
3307 cf_XOPEN_SOURCE_set=no
3309 rm -f conftest.$ac_objext conftest.$ac_ext
3310 echo "$as_me:3310: result: $cf_XOPEN_SOURCE_set" >&5
3311 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3312 if test $cf_XOPEN_SOURCE_set = yes
3314 cat >conftest.$ac_ext <<_ACEOF
3315 #line 3315 "configure"
3316 #include "confdefs.h"
3322 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3329 rm -f conftest.$ac_objext
3330 if { (eval echo "$as_me:3330: \"$ac_compile\"") >&5
3331 (eval $ac_compile) 2>&5
3333 echo "$as_me:3333: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (eval echo "$as_me:3336: \"$ac_try\"") >&5
3339 echo "$as_me:3339: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3341 cf_XOPEN_SOURCE_set_ok=yes
3343 echo "$as_me: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 cf_XOPEN_SOURCE_set_ok=no
3347 rm -f conftest.$ac_objext conftest.$ac_ext
3348 if test $cf_XOPEN_SOURCE_set_ok = no
3350 { echo "$as_me:3350: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3351 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3355 echo "$as_me:3355: checking if we should define _XOPEN_SOURCE" >&5
3356 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3357 if test "${cf_cv_xopen_source+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 cat >conftest.$ac_ext <<_ACEOF
3362 #line 3362 "configure"
3363 #include "confdefs.h"
3367 #include <sys/types.h>
3373 #ifndef _XOPEN_SOURCE
3380 rm -f conftest.$ac_objext
3381 if { (eval echo "$as_me:3381: \"$ac_compile\"") >&5
3382 (eval $ac_compile) 2>&5
3384 echo "$as_me:3384: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:3387: \"$ac_try\"") >&5
3390 echo "$as_me:3390: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 cf_cv_xopen_source=no
3394 echo "$as_me: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3397 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3398 cat >conftest.$ac_ext <<_ACEOF
3399 #line 3399 "configure"
3400 #include "confdefs.h"
3404 #include <sys/types.h>
3410 #ifdef _XOPEN_SOURCE
3417 rm -f conftest.$ac_objext
3418 if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3421 echo "$as_me:3421: \$? = $ac_status" >&5
3422 (exit $ac_status); } &&
3423 { ac_try='test -s conftest.$ac_objext'
3424 { (eval echo "$as_me:3424: \"$ac_try\"") >&5
3427 echo "$as_me:3427: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3429 cf_cv_xopen_source=no
3431 echo "$as_me: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3435 rm -f conftest.$ac_objext conftest.$ac_ext
3439 rm -f conftest.$ac_objext conftest.$ac_ext
3442 echo "$as_me:3442: result: $cf_cv_xopen_source" >&5
3443 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3445 if test "$cf_cv_xopen_source" != no ; then
3447 CFLAGS=`echo "$CFLAGS" | \
3448 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3449 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3451 CPPFLAGS=`echo "$CPPFLAGS" | \
3452 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3453 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3455 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3460 cf_new_extra_cppflags=
3462 for cf_add_cflags in $cf_temp_xopen_source
3464 case $cf_fix_cppflags in
3466 case $cf_add_cflags in #(vi
3467 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3468 case $cf_add_cflags in
3470 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3472 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3473 && test -z "${cf_tst_cflags}" \
3474 && cf_fix_cppflags=yes
3476 if test $cf_fix_cppflags = yes ; then
3477 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3479 elif test "${cf_tst_cflags}" = "\"'" ; then
3480 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3486 *$cf_add_cflags) #(vi
3489 case $cf_add_cflags in #(vi
3491 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3493 CPPFLAGS=`echo "$CPPFLAGS" | \
3494 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3495 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3499 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3504 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3509 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3511 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3513 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3514 && test -z "${cf_tst_cflags}" \
3515 && cf_fix_cppflags=no
3520 if test -n "$cf_new_cflags" ; then
3522 CFLAGS="$CFLAGS $cf_new_cflags"
3525 if test -n "$cf_new_cppflags" ; then
3527 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3530 if test -n "$cf_new_extra_cppflags" ; then
3532 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545 ac_main_return=return
3546 echo "$as_me:3546: checking how to run the C preprocessor" >&5
3547 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3548 # On Suns, sometimes $CPP names a directory.
3549 if test -n "$CPP" && test -d "$CPP"; then
3552 if test -z "$CPP"; then
3553 if test "${ac_cv_prog_CPP+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 # Double quotes because CPP needs to be expanded
3557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3560 for ac_c_preproc_warn_flag in '' yes
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # On the NeXT, cc -E runs the code through the compiler's parser,
3565 # not just through cpp. "Syntax error" is here to catch this case.
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line 3567 "configure"
3568 #include "confdefs.h"
3572 if { (eval echo "$as_me:3572: \"$ac_cpp conftest.$ac_ext\"") >&5
3573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3575 egrep -v '^ *\+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:3578: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3588 if test -z "$ac_cpp_err"; then
3591 echo "$as_me: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether non-existent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3601 #line 3601 "configure"
3602 #include "confdefs.h"
3603 #include <ac_nonexistent.h>
3605 if { (eval echo "$as_me:3605: \"$ac_cpp conftest.$ac_ext\"") >&5
3606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3608 egrep -v '^ *\+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:3611: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3621 if test -z "$ac_cpp_err"; then
3622 # Broken: success on invalid input.
3625 echo "$as_me: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 # Passes both tests.
3631 rm -f conftest.err conftest.$ac_ext
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then
3648 echo "$as_me:3648: result: $CPP" >&5
3649 echo "${ECHO_T}$CPP" >&6
3651 for ac_c_preproc_warn_flag in '' yes
3653 # Use a header file that comes with gcc, so configuring glibc
3654 # with a fresh cross-compiler works.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat >conftest.$ac_ext <<_ACEOF
3658 #line 3658 "configure"
3659 #include "confdefs.h"
3663 if { (eval echo "$as_me:3663: \"$ac_cpp conftest.$ac_ext\"") >&5
3664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3666 egrep -v '^ *\+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 echo "$as_me:3669: \$? = $ac_status" >&5
3670 (exit $ac_status); } >/dev/null; then
3671 if test -s conftest.err; then
3672 ac_cpp_err=$ac_c_preproc_warn_flag
3679 if test -z "$ac_cpp_err"; then
3682 echo "$as_me: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3684 # Broken: fails on valid input.
3687 rm -f conftest.err conftest.$ac_ext
3689 # OK, works on sane cases. Now check whether non-existent headers
3690 # can be detected and how.
3691 cat >conftest.$ac_ext <<_ACEOF
3692 #line 3692 "configure"
3693 #include "confdefs.h"
3694 #include <ac_nonexistent.h>
3696 if { (eval echo "$as_me:3696: \"$ac_cpp conftest.$ac_ext\"") >&5
3697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699 egrep -v '^ *\+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 echo "$as_me:3702: \$? = $ac_status" >&5
3703 (exit $ac_status); } >/dev/null; then
3704 if test -s conftest.err; then
3705 ac_cpp_err=$ac_c_preproc_warn_flag
3712 if test -z "$ac_cpp_err"; then
3713 # Broken: success on invalid input.
3716 echo "$as_me: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 # Passes both tests.
3722 rm -f conftest.err conftest.$ac_ext
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then
3730 { { echo "$as_me:3730: error: C preprocessor \"$CPP\" fails sanity check" >&5
3731 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3732 { (exit 1); exit 1; }; }
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 ac_main_return=return
3742 for ac_header in fcntl.h
3744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3745 echo "$as_me:3745: checking for $ac_header" >&5
3746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 cat >conftest.$ac_ext <<_ACEOF
3751 #line 3751 "configure"
3752 #include "confdefs.h"
3753 #include <$ac_header>
3755 if { (eval echo "$as_me:3755: \"$ac_cpp conftest.$ac_ext\"") >&5
3756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3758 egrep -v '^ *\+' conftest.er1 >conftest.err
3760 cat conftest.err >&5
3761 echo "$as_me:3761: \$? = $ac_status" >&5
3762 (exit $ac_status); } >/dev/null; then
3763 if test -s conftest.err; then
3764 ac_cpp_err=$ac_c_preproc_warn_flag
3771 if test -z "$ac_cpp_err"; then
3772 eval "$as_ac_Header=yes"
3774 echo "$as_me: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3776 eval "$as_ac_Header=no"
3778 rm -f conftest.err conftest.$ac_ext
3780 echo "$as_me:3780: result: `eval echo '${'$as_ac_Header'}'`" >&5
3781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3783 cat >>confdefs.h <<EOF
3784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3790 echo "$as_me:3790: checking for working mkstemp" >&5
3791 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
3792 if test "${cf_cv_func_mkstemp+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 if test "$cross_compiling" = yes; then
3798 cf_cv_func_mkstemp=maybe
3800 cat >conftest.$ac_ext <<_ACEOF
3801 #line 3801 "configure"
3802 #include "confdefs.h"
3804 #include <sys/types.h>
3808 #include <sys/stat.h>
3811 char *tmpl = "conftestXXXXXX";
3819 for (n = 0; n < 2; ++n) {
3820 strcpy(name[n], tmpl);
3821 if ((fd = mkstemp(name[n])) >= 0) {
3822 if (!strcmp(name[n], tmpl)
3823 || stat(name[n], &sb) != 0
3824 || (sb.st_mode & S_IFMT) != S_IFREG
3825 || (sb.st_mode & 077) != 0) {
3832 && !strcmp(name[0], name[1]))
3834 ${cf_cv_main_return:-return}(result);
3838 rm -f conftest$ac_exeext
3839 if { (eval echo "$as_me:3839: \"$ac_link\"") >&5
3840 (eval $ac_link) 2>&5
3842 echo "$as_me:3842: \$? = $ac_status" >&5
3843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3844 { (eval echo "$as_me:3844: \"$ac_try\"") >&5
3847 echo "$as_me:3847: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 cf_cv_func_mkstemp=yes
3852 echo "$as_me: program exited with status $ac_status" >&5
3853 echo "$as_me: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3855 cf_cv_func_mkstemp=no
3858 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3862 echo "$as_me:3862: result: $cf_cv_func_mkstemp" >&5
3863 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
3864 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
3865 echo "$as_me:3865: checking for mkstemp" >&5
3866 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
3867 if test "${ac_cv_func_mkstemp+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 cat >conftest.$ac_ext <<_ACEOF
3871 #line 3871 "configure"
3872 #include "confdefs.h"
3873 /* System header to define __stub macros and hopefully few prototypes,
3874 which can conflict with char mkstemp (); below. */
3876 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3888 /* The GNU C library defines this for functions which it implements
3889 to always fail with ENOSYS. Some functions are actually named
3890 something starting with __ and the normal name is an alias. */
3891 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
3894 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3901 rm -f conftest.$ac_objext conftest$ac_exeext
3902 if { (eval echo "$as_me:3902: \"$ac_link\"") >&5
3903 (eval $ac_link) 2>&5
3905 echo "$as_me:3905: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try='test -s conftest$ac_exeext'
3908 { (eval echo "$as_me:3908: \"$ac_try\"") >&5
3911 echo "$as_me:3911: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_cv_func_mkstemp=yes
3915 echo "$as_me: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3917 ac_cv_func_mkstemp=no
3919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3921 echo "$as_me:3921: result: $ac_cv_func_mkstemp" >&5
3922 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
3925 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
3927 cat >>confdefs.h <<\EOF
3928 #define HAVE_MKSTEMP 1
3933 echo "$as_me:3933: checking for maximum table size" >&5
3934 echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
3936 # Check whether --with-max-table-size or --without-max-table-size was given.
3937 if test "${with_max_table_size+set}" = set; then
3938 withval="$with_max_table_size"
3941 if test -n "$with_max_table_size"
3943 echo "$as_me:3943: result: $with_max_table_size" >&5
3944 echo "${ECHO_T}$with_max_table_size" >&6
3945 check=`expr "$with_max_table_size" + 0`
3946 if test "x$check" != "x$with_max_table_size"
3948 { { echo "$as_me:3948: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
3949 echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
3950 { (exit 1); exit 1; }; }
3953 cat >>confdefs.h <<EOF
3954 #define MAXTABLE $with_max_table_size
3958 echo "$as_me:3958: result: default" >&5
3959 echo "${ECHO_T}default" >&6
3962 echo "$as_me:3962: checking if backtracking extension is wanted" >&5
3963 echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
3965 # Check whether --enable-btyacc or --disable-btyacc was given.
3966 if test "${enable_btyacc+set}" = set; then
3967 enableval="$enable_btyacc"
3970 echo "$as_me:3970: result: $enable_btyacc" >&5
3971 echo "${ECHO_T}$enable_btyacc" >&6
3972 if test "$enable_btyacc" = "yes"; then
3974 cat >>confdefs.h <<\EOF
3983 if ( test "$GCC" = yes || test "$GXX" = yes )
3985 echo "$as_me:3985: checking if you want to check for gcc warnings" >&5
3986 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
3988 # Check whether --with-warnings or --without-warnings was given.
3989 if test "${with_warnings+set}" = set; then
3990 withval="$with_warnings"
3991 cf_opt_with_warnings=$withval
3993 cf_opt_with_warnings=no
3995 echo "$as_me:3995: result: $cf_opt_with_warnings" >&5
3996 echo "${ECHO_T}$cf_opt_with_warnings" >&6
3997 if test "$cf_opt_with_warnings" != no ; then
3999 if test "$GCC" = yes
4001 cat > conftest.i <<EOF
4003 #define GCC_PRINTF 0
4008 #ifndef GCC_NORETURN
4009 #define GCC_NORETURN /* nothing */
4012 #define GCC_UNUSED /* nothing */
4015 if test "$GCC" = yes
4017 { echo "$as_me:4017: checking for $CC __attribute__ directives..." >&5
4018 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4019 cat > conftest.$ac_ext <<EOF
4020 #line 4020 "${as_me:-configure}"
4021 #include "confdefs.h"
4022 #include "conftest.h"
4023 #include "conftest.i"
4025 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4027 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4030 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4032 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
4034 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4035 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4036 extern void foo(void) GCC_NORETURN;
4037 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4039 cf_printf_attribute=no
4040 cf_scanf_attribute=no
4041 for cf_attribute in scanf printf unused noreturn
4044 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4046 cf_directive="__attribute__(($cf_attribute))"
4047 echo "checking for $CC $cf_directive" 1>&5
4049 case $cf_attribute in #(vi
4051 cf_printf_attribute=yes
4052 cat >conftest.h <<EOF
4053 #define GCC_$cf_ATTRIBUTE 1
4057 cf_scanf_attribute=yes
4058 cat >conftest.h <<EOF
4059 #define GCC_$cf_ATTRIBUTE 1
4063 cat >conftest.h <<EOF
4064 #define GCC_$cf_ATTRIBUTE $cf_directive
4069 if { (eval echo "$as_me:4069: \"$ac_compile\"") >&5
4070 (eval $ac_compile) 2>&5
4072 echo "$as_me:4072: \$? = $ac_status" >&5
4073 (exit $ac_status); }; then
4074 test -n "$verbose" && echo "$as_me:4074: result: ... $cf_attribute" >&5
4075 echo "${ECHO_T}... $cf_attribute" >&6
4076 cat conftest.h >>confdefs.h
4077 case $cf_attribute in #(vi
4080 cat >>confdefs.h <<EOF
4081 #define GCC_NORETURN $cf_directive
4086 cf_value='/* nothing */'
4087 if test "$cf_printf_attribute" != no ; then
4088 cf_value='__attribute__((format(printf,fmt,var)))'
4090 cat >>confdefs.h <<\EOF
4091 #define GCC_PRINTF 1
4096 cat >>confdefs.h <<EOF
4097 #define GCC_PRINTFLIKE(fmt,var) $cf_value
4102 cf_value='/* nothing */'
4103 if test "$cf_scanf_attribute" != no ; then
4104 cf_value='__attribute__((format(scanf,fmt,var)))'
4106 cat >>confdefs.h <<\EOF
4112 cat >>confdefs.h <<EOF
4113 #define GCC_SCANFLIKE(fmt,var) $cf_value
4119 cat >>confdefs.h <<EOF
4120 #define GCC_UNUSED $cf_directive
4128 fgrep define conftest.i >>confdefs.h
4135 if test "$GCC" = yes ; then
4138 echo "$as_me:4138: checking if this is really Intel C compiler" >&5
4139 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4140 cf_save_CFLAGS="$CFLAGS"
4141 CFLAGS="$CFLAGS -no-gcc"
4142 cat >conftest.$ac_ext <<_ACEOF
4143 #line 4143 "configure"
4144 #include "confdefs.h"
4150 #ifdef __INTEL_COMPILER
4159 rm -f conftest.$ac_objext
4160 if { (eval echo "$as_me:4160: \"$ac_compile\"") >&5
4161 (eval $ac_compile) 2>&5
4163 echo "$as_me:4163: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:4166: \"$ac_try\"") >&5
4169 echo "$as_me:4169: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4172 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
4175 echo "$as_me: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 rm -f conftest.$ac_objext conftest.$ac_ext
4179 CFLAGS="$cf_save_CFLAGS"
4180 echo "$as_me:4180: result: $INTEL_COMPILER" >&5
4181 echo "${ECHO_T}$INTEL_COMPILER" >&6
4188 if test "$GCC" = yes ; then
4189 echo "$as_me:4189: checking if this is really Clang C compiler" >&5
4190 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
4191 cf_save_CFLAGS="$CFLAGS"
4192 CFLAGS="$CFLAGS -Qunused-arguments"
4193 cat >conftest.$ac_ext <<_ACEOF
4194 #line 4194 "configure"
4195 #include "confdefs.h"
4210 rm -f conftest.$ac_objext
4211 if { (eval echo "$as_me:4211: \"$ac_compile\"") >&5
4212 (eval $ac_compile) 2>&5
4214 echo "$as_me:4214: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -s conftest.$ac_objext'
4217 { (eval echo "$as_me:4217: \"$ac_try\"") >&5
4220 echo "$as_me:4220: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4223 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
4226 echo "$as_me: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4229 rm -f conftest.$ac_objext conftest.$ac_ext
4230 CFLAGS="$cf_save_CFLAGS"
4231 echo "$as_me:4231: result: $CLANG_COMPILER" >&5
4232 echo "${ECHO_T}$CLANG_COMPILER" >&6
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4236 "${as_me:-configure}"
4237 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4240 if test "$INTEL_COMPILER" = yes
4242 # The "-wdXXX" options suppress warnings:
4243 # remark #1419: external declaration in primary source file
4244 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4245 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4246 # remark #193: zero used for undefined preprocessing identifier
4247 # remark #593: variable "curs_sb_left_arrow" was set but never used
4248 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4249 # remark #869: parameter "tw" was never referenced
4250 # remark #981: operands are evaluated in unspecified order
4251 # warning #279: controlling expression is constant
4253 { echo "$as_me:4253: checking for $CC warning options..." >&5
4254 echo "$as_me: checking for $CC warning options..." >&6;}
4255 cf_save_CFLAGS="$CFLAGS"
4256 EXTRA_CFLAGS="-Wall"
4268 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4269 if { (eval echo "$as_me:4269: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>&5
4272 echo "$as_me:4272: \$? = $ac_status" >&5
4273 (exit $ac_status); }; then
4274 test -n "$verbose" && echo "$as_me:4274: result: ... -$cf_opt" >&5
4275 echo "${ECHO_T}... -$cf_opt" >&6
4276 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4279 CFLAGS="$cf_save_CFLAGS"
4281 elif test "$GCC" = yes
4283 { echo "$as_me:4283: checking for $CC warning options..." >&5
4284 echo "$as_me: checking for $CC warning options..." >&6;}
4285 cf_save_CFLAGS="$CFLAGS"
4288 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4289 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
4290 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
4291 for cf_opt in W Wall \
4292 Wbad-function-cast \
4295 Wdeclaration-after-statement \
4298 Wmissing-declarations \
4299 Wmissing-prototypes \
4303 Wstrict-prototypes \
4304 Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
4306 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4307 if { (eval echo "$as_me:4307: \"$ac_compile\"") >&5
4308 (eval $ac_compile) 2>&5
4310 echo "$as_me:4310: \$? = $ac_status" >&5
4311 (exit $ac_status); }; then
4312 test -n "$verbose" && echo "$as_me:4312: result: ... -$cf_opt" >&5
4313 echo "${ECHO_T}... -$cf_opt" >&6
4314 case $cf_opt in #(vi
4316 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4319 case $GCC_VERSION in
4321 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4323 echo "${as_me:-configure}:4323: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4328 Wpointer-arith) #(vi
4329 case $GCC_VERSION in
4331 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4333 echo "${as_me:-configure}:4333: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4339 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4342 CFLAGS="$cf_save_CFLAGS"
4349 echo "$as_me:4349: checking if you want to see long compiling messages" >&5
4350 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4352 # Check whether --enable-echo or --disable-echo was given.
4353 if test "${enable_echo+set}" = set; then
4354 enableval="$enable_echo"
4355 test "$enableval" != no && enableval=yes
4356 if test "$enableval" != "yes" ; then
4359 ECHO_LD='@echo linking $@;'
4360 RULE_CC='@echo compiling $<'
4361 SHOW_CC='@echo compiling $@'
4383 echo "$as_me:4383: result: $enableval" >&5
4384 echo "${ECHO_T}$enableval" >&6
4386 echo "$as_me:4386: checking if you want to use dmalloc for testing" >&5
4387 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4389 # Check whether --with-dmalloc or --without-dmalloc was given.
4390 if test "${with_dmalloc+set}" = set; then
4391 withval="$with_dmalloc"
4393 cat >>confdefs.h <<EOF
4394 #define USE_DMALLOC 1
4397 : ${with_cflags:=-g}
4398 : ${with_no_leaks:=yes}
4403 echo "$as_me:4403: result: ${with_dmalloc:-no}" >&5
4404 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4406 case .$with_cflags in #(vi
4408 case .$CFLAGS in #(vi
4416 cf_new_extra_cppflags=
4418 for cf_add_cflags in -g
4420 case $cf_fix_cppflags in
4422 case $cf_add_cflags in #(vi
4423 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4424 case $cf_add_cflags in
4426 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4428 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4429 && test -z "${cf_tst_cflags}" \
4430 && cf_fix_cppflags=yes
4432 if test $cf_fix_cppflags = yes ; then
4433 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4435 elif test "${cf_tst_cflags}" = "\"'" ; then
4436 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4442 *$cf_add_cflags) #(vi
4445 case $cf_add_cflags in #(vi
4447 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4449 CPPFLAGS=`echo "$CPPFLAGS" | \
4450 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4451 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4455 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4460 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4465 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4467 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4469 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4470 && test -z "${cf_tst_cflags}" \
4471 && cf_fix_cppflags=no
4476 if test -n "$cf_new_cflags" ; then
4478 CFLAGS="$CFLAGS $cf_new_cflags"
4481 if test -n "$cf_new_cppflags" ; then
4483 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4486 if test -n "$cf_new_extra_cppflags" ; then
4488 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4496 if test "$with_dmalloc" = yes ; then
4497 echo "$as_me:4497: checking for dmalloc.h" >&5
4498 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4499 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 cat >conftest.$ac_ext <<_ACEOF
4503 #line 4503 "configure"
4504 #include "confdefs.h"
4505 #include <dmalloc.h>
4507 if { (eval echo "$as_me:4507: \"$ac_cpp conftest.$ac_ext\"") >&5
4508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4510 egrep -v '^ *\+' conftest.er1 >conftest.err
4512 cat conftest.err >&5
4513 echo "$as_me:4513: \$? = $ac_status" >&5
4514 (exit $ac_status); } >/dev/null; then
4515 if test -s conftest.err; then
4516 ac_cpp_err=$ac_c_preproc_warn_flag
4523 if test -z "$ac_cpp_err"; then
4524 ac_cv_header_dmalloc_h=yes
4526 echo "$as_me: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4528 ac_cv_header_dmalloc_h=no
4530 rm -f conftest.err conftest.$ac_ext
4532 echo "$as_me:4532: result: $ac_cv_header_dmalloc_h" >&5
4533 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4534 if test $ac_cv_header_dmalloc_h = yes; then
4536 echo "$as_me:4536: checking for dmalloc_debug in -ldmalloc" >&5
4537 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4538 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 ac_check_lib_save_LIBS=$LIBS
4542 LIBS="-ldmalloc $LIBS"
4543 cat >conftest.$ac_ext <<_ACEOF
4544 #line 4544 "configure"
4545 #include "confdefs.h"
4547 /* Override any gcc2 internal prototype to avoid an error. */
4551 /* We use char because int might match the return type of a gcc2
4552 builtin and then its argument prototype would still apply. */
4553 char dmalloc_debug ();
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (eval echo "$as_me:4563: \"$ac_link\"") >&5
4564 (eval $ac_link) 2>&5
4566 echo "$as_me:4566: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -s conftest$ac_exeext'
4569 { (eval echo "$as_me:4569: \"$ac_try\"") >&5
4572 echo "$as_me:4572: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 ac_cv_lib_dmalloc_dmalloc_debug=yes
4576 echo "$as_me: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 ac_cv_lib_dmalloc_dmalloc_debug=no
4580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4581 LIBS=$ac_check_lib_save_LIBS
4583 echo "$as_me:4583: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4584 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4585 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4586 cat >>confdefs.h <<EOF
4587 #define HAVE_LIBDMALLOC 1
4590 LIBS="-ldmalloc $LIBS"
4598 echo "$as_me:4598: checking if you want to use dbmalloc for testing" >&5
4599 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4601 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4602 if test "${with_dbmalloc+set}" = set; then
4603 withval="$with_dbmalloc"
4605 cat >>confdefs.h <<EOF
4606 #define USE_DBMALLOC 1
4609 : ${with_cflags:=-g}
4610 : ${with_no_leaks:=yes}
4615 echo "$as_me:4615: result: ${with_dbmalloc:-no}" >&5
4616 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4618 case .$with_cflags in #(vi
4620 case .$CFLAGS in #(vi
4628 cf_new_extra_cppflags=
4630 for cf_add_cflags in -g
4632 case $cf_fix_cppflags in
4634 case $cf_add_cflags in #(vi
4635 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4636 case $cf_add_cflags in
4638 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4640 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4641 && test -z "${cf_tst_cflags}" \
4642 && cf_fix_cppflags=yes
4644 if test $cf_fix_cppflags = yes ; then
4645 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4647 elif test "${cf_tst_cflags}" = "\"'" ; then
4648 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4654 *$cf_add_cflags) #(vi
4657 case $cf_add_cflags in #(vi
4659 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4661 CPPFLAGS=`echo "$CPPFLAGS" | \
4662 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4663 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4667 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4672 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4677 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4679 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4681 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4682 && test -z "${cf_tst_cflags}" \
4683 && cf_fix_cppflags=no
4688 if test -n "$cf_new_cflags" ; then
4690 CFLAGS="$CFLAGS $cf_new_cflags"
4693 if test -n "$cf_new_cppflags" ; then
4695 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4698 if test -n "$cf_new_extra_cppflags" ; then
4700 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4708 if test "$with_dbmalloc" = yes ; then
4709 echo "$as_me:4709: checking for dbmalloc.h" >&5
4710 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4711 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line 4715 "configure"
4716 #include "confdefs.h"
4717 #include <dbmalloc.h>
4719 if { (eval echo "$as_me:4719: \"$ac_cpp conftest.$ac_ext\"") >&5
4720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4722 egrep -v '^ *\+' conftest.er1 >conftest.err
4724 cat conftest.err >&5
4725 echo "$as_me:4725: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev/null; then
4727 if test -s conftest.err; then
4728 ac_cpp_err=$ac_c_preproc_warn_flag
4735 if test -z "$ac_cpp_err"; then
4736 ac_cv_header_dbmalloc_h=yes
4738 echo "$as_me: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4740 ac_cv_header_dbmalloc_h=no
4742 rm -f conftest.err conftest.$ac_ext
4744 echo "$as_me:4744: result: $ac_cv_header_dbmalloc_h" >&5
4745 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4746 if test $ac_cv_header_dbmalloc_h = yes; then
4748 echo "$as_me:4748: checking for debug_malloc in -ldbmalloc" >&5
4749 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4750 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 ac_check_lib_save_LIBS=$LIBS
4754 LIBS="-ldbmalloc $LIBS"
4755 cat >conftest.$ac_ext <<_ACEOF
4756 #line 4756 "configure"
4757 #include "confdefs.h"
4759 /* Override any gcc2 internal prototype to avoid an error. */
4763 /* We use char because int might match the return type of a gcc2
4764 builtin and then its argument prototype would still apply. */
4765 char debug_malloc ();
4774 rm -f conftest.$ac_objext conftest$ac_exeext
4775 if { (eval echo "$as_me:4775: \"$ac_link\"") >&5
4776 (eval $ac_link) 2>&5
4778 echo "$as_me:4778: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -s conftest$ac_exeext'
4781 { (eval echo "$as_me:4781: \"$ac_try\"") >&5
4784 echo "$as_me:4784: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 ac_cv_lib_dbmalloc_debug_malloc=yes
4788 echo "$as_me: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 ac_cv_lib_dbmalloc_debug_malloc=no
4792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4793 LIBS=$ac_check_lib_save_LIBS
4795 echo "$as_me:4795: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4796 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4797 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4798 cat >>confdefs.h <<EOF
4799 #define HAVE_LIBDBMALLOC 1
4802 LIBS="-ldbmalloc $LIBS"
4810 echo "$as_me:4810: checking if you want to use valgrind for testing" >&5
4811 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4813 # Check whether --with-valgrind or --without-valgrind was given.
4814 if test "${with_valgrind+set}" = set; then
4815 withval="$with_valgrind"
4817 cat >>confdefs.h <<EOF
4818 #define USE_VALGRIND 1
4821 : ${with_cflags:=-g}
4822 : ${with_no_leaks:=yes}
4827 echo "$as_me:4827: result: ${with_valgrind:-no}" >&5
4828 echo "${ECHO_T}${with_valgrind:-no}" >&6
4830 case .$with_cflags in #(vi
4832 case .$CFLAGS in #(vi
4840 cf_new_extra_cppflags=
4842 for cf_add_cflags in -g
4844 case $cf_fix_cppflags in
4846 case $cf_add_cflags in #(vi
4847 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4848 case $cf_add_cflags in
4850 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4852 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4853 && test -z "${cf_tst_cflags}" \
4854 && cf_fix_cppflags=yes
4856 if test $cf_fix_cppflags = yes ; then
4857 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4859 elif test "${cf_tst_cflags}" = "\"'" ; then
4860 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4866 *$cf_add_cflags) #(vi
4869 case $cf_add_cflags in #(vi
4871 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4873 CPPFLAGS=`echo "$CPPFLAGS" | \
4874 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4875 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4879 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4884 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4889 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4891 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4893 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4894 && test -z "${cf_tst_cflags}" \
4895 && cf_fix_cppflags=no
4900 if test -n "$cf_new_cflags" ; then
4902 CFLAGS="$CFLAGS $cf_new_cflags"
4905 if test -n "$cf_new_cppflags" ; then
4907 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4910 if test -n "$cf_new_extra_cppflags" ; then
4912 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4920 echo "$as_me:4920: checking if you want to perform memory-leak testing" >&5
4921 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
4923 # Check whether --enable-leaks or --disable-leaks was given.
4924 if test "${enable_leaks+set}" = set; then
4925 enableval="$enable_leaks"
4926 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
4928 : ${with_no_leaks:=no}
4930 echo "$as_me:4930: result: $with_no_leaks" >&5
4931 echo "${ECHO_T}$with_no_leaks" >&6
4933 if test "$with_no_leaks" = yes ; then
4935 cat >>confdefs.h <<\EOF
4939 cat >>confdefs.h <<\EOF
4940 #define YY_NO_LEAKS 1
4946 ac_config_files="$ac_config_files makefile"
4947 cat >confcache <<\_ACEOF
4948 # This file is a shell script that caches the results of configure
4949 # tests run on this system so they can be shared between configure
4950 # scripts and configure runs, see configure's option --config-cache.
4951 # It is not useful on other systems. If it contains results you don't
4952 # want to keep, you may remove or edit it.
4954 # config.status only pays attention to the cache file if you give it
4955 # the --recheck option to rerun configure.
4957 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4963 # The following way of writing the cache mishandles newlines in values,
4964 # but we know of no workaround that is simple, portable, and efficient.
4965 # So, don't put newlines in cache variables' values.
4966 # Ultrix sh set writes to stderr and can't be redirected directly,
4967 # and sets the high bit in the cache file unless we assign to the vars.
4970 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4972 # `set' does not quote correctly, so add quotes (double-quote
4973 # substitution turns \\\\ into \\, and sed turns \\ into \).
4976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4979 # `set' quotes correctly as required by POSIX, so do not add quotes.
4981 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4990 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4992 if cmp -s $cache_file confcache; then :; else
4993 if test -w $cache_file; then
4994 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4995 cat confcache >$cache_file
4997 echo "not updating unwritable cache $cache_file"
5002 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5003 # Let make expand exec_prefix.
5004 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5006 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5007 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5008 # trailing colons and then remove the whole line if VPATH becomes empty
5009 # (actually we leave an empty line to preserve line numbers).
5010 if test "x$srcdir" = x.; then
5011 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5012 s/:*\$(srcdir):*/:/;
5013 s/:*\${srcdir}:*/:/;
5015 s/^\([^=]*=[ ]*\):*/\1/;
5021 DEFS=-DHAVE_CONFIG_H
5023 : ${CONFIG_STATUS=./config.status}
5024 ac_clean_files_save=$ac_clean_files
5025 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5026 { echo "$as_me:5026: creating $CONFIG_STATUS" >&5
5027 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5028 cat >$CONFIG_STATUS <<_ACEOF
5030 # Generated automatically by configure.
5031 # Run this file to recreate the current configuration.
5032 # Compiler output produced by configure, useful for debugging
5033 # configure, is in config.log if it exists.
5036 SHELL=\${CONFIG_SHELL-$SHELL}
5037 ac_cs_invocation="\$0 \$@"
5041 cat >>$CONFIG_STATUS <<\_ACEOF
5042 # Be Bourne compatible
5043 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5046 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5050 # Name of the executable.
5051 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5053 if expr a : '\(a\)' >/dev/null 2>&1; then
5059 rm -f conf$$ conf$$.exe conf$$.file
5061 if ln -s conf$$.file conf$$ 2>/dev/null; then
5062 # We could just check for DJGPP; but this test a) works b) is more generic
5063 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5064 if test -f conf$$.exe; then
5065 # Don't use ln at all; we don't have any links
5070 elif ln conf$$.file conf$$ 2>/dev/null; then
5075 rm -f conf$$ conf$$.exe conf$$.file
5077 as_executable_p="test -f"
5079 # Support unset when possible.
5080 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5087 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5088 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5089 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5090 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5091 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5092 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5093 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5094 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5097 # We need space, tab and new line, in precisely that order.
5103 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5109 # Files that config.status was made for.
5110 if test -n "$ac_config_files"; then
5111 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5114 if test -n "$ac_config_headers"; then
5115 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5118 if test -n "$ac_config_links"; then
5119 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5122 if test -n "$ac_config_commands"; then
5123 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5126 cat >>$CONFIG_STATUS <<\EOF
5129 \`$as_me' instantiates files from templates according to the
5130 current configuration.
5132 Usage: $0 [OPTIONS] [FILE]...
5134 -h, --help print this help, then exit
5135 -V, --version print version number, then exit
5136 -d, --debug don't remove temporary files
5137 --recheck update $as_me by reconfiguring in the same conditions
5138 --file=FILE[:TEMPLATE]
5139 instantiate the configuration file FILE
5140 --header=FILE[:TEMPLATE]
5141 instantiate the configuration header FILE
5143 Configuration files:
5146 Configuration headers:
5149 Report bugs to <dickey@invisible-island.net>."
5152 cat >>$CONFIG_STATUS <<EOF
5155 configured by $0, generated by GNU Autoconf 2.52.20121002,
5156 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5158 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5159 Free Software Foundation, Inc.
5160 This config.status script is free software; the Free Software Foundation
5161 gives unlimited permission to copy, distribute and modify it."
5166 cat >>$CONFIG_STATUS <<\EOF
5167 # If no file are specified by the user, then we need to provide default
5168 # value. By we need to know if files were specified by the user.
5174 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5175 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5177 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5181 *) # This is not an option, so the user has probably given explicit
5183 ac_need_defaults=false;;
5187 # Handling of the options.
5189 cat >>$CONFIG_STATUS <<EOF
5190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5191 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5192 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5194 cat >>$CONFIG_STATUS <<\EOF
5195 --version | --vers* | -V )
5196 echo "$ac_cs_version"; exit 0 ;;
5198 # Conflict between --help and --header
5199 { { echo "$as_me:5199: error: ambiguous option: $1
5200 Try \`$0 --help' for more information." >&5
5201 echo "$as_me: error: ambiguous option: $1
5202 Try \`$0 --help' for more information." >&2;}
5203 { (exit 1); exit 1; }; };;
5204 --help | --hel | -h )
5205 echo "$ac_cs_usage"; exit 0 ;;
5206 --debug | --d* | -d )
5208 --file | --fil | --fi | --f )
5210 CONFIG_FILES="$CONFIG_FILES $1"
5211 ac_need_defaults=false;;
5212 --header | --heade | --head | --hea )
5214 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5215 ac_need_defaults=false;;
5218 -*) { { echo "$as_me:5218: error: unrecognized option: $1
5219 Try \`$0 --help' for more information." >&5
5220 echo "$as_me: error: unrecognized option: $1
5221 Try \`$0 --help' for more information." >&2;}
5222 { (exit 1); exit 1; }; } ;;
5224 *) ac_config_targets="$ac_config_targets $1" ;;
5233 ## ----------------------- ##
5234 ## Running config.status. ##
5235 ## ----------------------- ##
5237 This file was extended by $as_me 2.52.20121002, executed with
5238 CONFIG_FILES = $CONFIG_FILES
5239 CONFIG_HEADERS = $CONFIG_HEADERS
5240 CONFIG_LINKS = $CONFIG_LINKS
5241 CONFIG_COMMANDS = $CONFIG_COMMANDS
5243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5248 cat >>$CONFIG_STATUS <<\EOF
5249 for ac_config_target in $ac_config_targets
5251 case "$ac_config_target" in
5252 # Handling of arguments.
5253 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
5254 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
5255 *) { { echo "$as_me:5255: error: invalid argument: $ac_config_target" >&5
5256 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5257 { (exit 1); exit 1; }; };;
5261 # If the user did not use the arguments to specify the items to instantiate,
5262 # then the envvar interface is used. Set only those that are not.
5263 # We use the long form for the default assignment because of an extremely
5264 # bizarre bug on SunOS 4.1.3.
5265 if $ac_need_defaults; then
5266 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5267 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5270 # Create a temporary directory, and hook for its removal unless debugging.
5273 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5274 trap '{ (exit 1); exit 1; }' 1 2 13 15
5277 # Create a (secure) tmp directory for tmp files.
5280 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5281 test -n "$tmp" && test -d "$tmp"
5284 tmp=$TMPDIR/cs$$-$RANDOM
5285 (umask 077 && mkdir $tmp)
5288 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5289 { (exit 1); exit 1; }
5294 cat >>$CONFIG_STATUS <<EOF
5297 # CONFIG_FILES section.
5300 # No need to generate the scripts if there are no CONFIG_FILES.
5301 # This happens for instance when ./config.status config.h
5302 if test -n "\$CONFIG_FILES"; then
5303 # Protect against being on the right side of a sed subst in config.status.
5304 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5305 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5306 s,@SHELL@,$SHELL,;t t
5307 s,@exec_prefix@,$exec_prefix,;t t
5308 s,@prefix@,$prefix,;t t
5309 s,@program_transform_name@,$program_transform_name,;t t
5310 s,@bindir@,$bindir,;t t
5311 s,@sbindir@,$sbindir,;t t
5312 s,@libexecdir@,$libexecdir,;t t
5313 s,@datarootdir@,$datarootdir,;t t
5314 s,@datadir@,$datadir,;t t
5315 s,@sysconfdir@,$sysconfdir,;t t
5316 s,@sharedstatedir@,$sharedstatedir,;t t
5317 s,@localstatedir@,$localstatedir,;t t
5318 s,@libdir@,$libdir,;t t
5319 s,@includedir@,$includedir,;t t
5320 s,@oldincludedir@,$oldincludedir,;t t
5321 s,@infodir@,$infodir,;t t
5322 s,@mandir@,$mandir,;t t
5323 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5324 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5325 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5326 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5327 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5328 s,@build_alias@,$build_alias,;t t
5329 s,@host_alias@,$host_alias,;t t
5330 s,@target_alias@,$target_alias,;t t
5331 s,@ECHO_C@,$ECHO_C,;t t
5332 s,@ECHO_N@,$ECHO_N,;t t
5333 s,@ECHO_T@,$ECHO_T,;t t
5334 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5337 s,@build@,$build,;t t
5338 s,@build_cpu@,$build_cpu,;t t
5339 s,@build_vendor@,$build_vendor,;t t
5340 s,@build_os@,$build_os,;t t
5342 s,@host_cpu@,$host_cpu,;t t
5343 s,@host_vendor@,$host_vendor,;t t
5344 s,@host_os@,$host_os,;t t
5345 s,@target@,$target,;t t
5346 s,@target_cpu@,$target_cpu,;t t
5347 s,@target_vendor@,$target_vendor,;t t
5348 s,@target_os@,$target_os,;t t
5350 s,@CFLAGS@,$CFLAGS,;t t
5351 s,@LDFLAGS@,$LDFLAGS,;t t
5352 s,@CPPFLAGS@,$CPPFLAGS,;t t
5353 s,@ac_ct_CC@,$ac_ct_CC,;t t
5354 s,@EXEEXT@,$EXEEXT,;t t
5355 s,@OBJEXT@,$OBJEXT,;t t
5356 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
5357 s,@SET_MAKE@,$SET_MAKE,;t t
5358 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5359 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5360 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5361 s,@CTAGS@,$CTAGS,;t t
5362 s,@ETAGS@,$ETAGS,;t t
5363 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
5364 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
5367 s,@LINT_OPTS@,$LINT_OPTS,;t t
5369 s,@SKELETON@,$SKELETON,;t t
5370 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
5371 s,@ECHO_LT@,$ECHO_LT,;t t
5372 s,@ECHO_LD@,$ECHO_LD,;t t
5373 s,@RULE_CC@,$RULE_CC,;t t
5374 s,@SHOW_CC@,$SHOW_CC,;t t
5375 s,@ECHO_CC@,$ECHO_CC,;t t
5380 cat >>$CONFIG_STATUS <<\EOF
5381 # Split the substitutions into bite-sized pieces for seds with
5382 # small command number limits, like on Digital OSF/1 and HP-UX.
5384 ac_sed_frag=1 # Number of current file.
5385 ac_beg=1 # First line for current file.
5386 ac_end=$ac_max_sed_lines # Line after last line for current file.
5389 while $ac_more_lines; do
5390 if test $ac_beg -gt 1; then
5391 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5393 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5395 if test ! -s $tmp/subs.frag; then
5398 # The purpose of the label and of the branching condition is to
5399 # speed up the sed processing (if there are no `@' at all, there
5400 # is no need to browse any of the substitutions).
5401 # These are the two extra sed commands mentioned above.
5403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5404 if test -z "$ac_sed_cmds"; then
5405 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5407 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5409 ac_sed_frag=`expr $ac_sed_frag + 1`
5411 ac_end=`expr $ac_end + $ac_max_sed_lines`
5414 if test -z "$ac_sed_cmds"; then
5417 fi # test -n "$CONFIG_FILES"
5420 cat >>$CONFIG_STATUS <<\EOF
5421 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5424 - | *:- | *:-:* ) # input from stdin
5426 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5427 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5428 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5429 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5430 * ) ac_file_in=$ac_file.in ;;
5433 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5434 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5435 X"$ac_file" : 'X\(//\)[^/]' \| \
5436 X"$ac_file" : 'X\(//\)$' \| \
5437 X"$ac_file" : 'X\(/\)' \| \
5438 . : '\(.\)' 2>/dev/null ||
5440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5441 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5442 /^X\(\/\/\)$/{ s//\1/; q; }
5443 /^X\(\/\).*/{ s//\1/; q; }
5445 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5447 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5451 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5452 case $as_mkdir_dir in
5453 # Skip DOS drivespec
5454 ?:) as_incr_dir=$as_mkdir_dir ;;
5456 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5457 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5462 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5463 # A "../" for each directory in $ac_dir_suffix.
5464 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5466 ac_dir_suffix= ac_dots=
5471 if test -z "$ac_dots"; then
5474 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5477 ac_srcdir=$srcdir$ac_dir_suffix;
5478 ac_top_srcdir=$srcdir ;;
5480 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5481 ac_top_srcdir=$ac_dots$srcdir ;;
5485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5486 *) ac_INSTALL=$ac_dots$INSTALL ;;
5489 if test x"$ac_file" != x-; then
5490 { echo "$as_me:5490: creating $ac_file" >&5
5491 echo "$as_me: creating $ac_file" >&6;}
5494 # Let's still pretend it is `configure' which instantiates (i.e., don't
5495 # use $as_me), people would be surprised to read:
5496 # /* config.h. Generated automatically by config.status. */
5497 configure_input="Generated automatically from `echo $ac_file_in |
5498 sed 's,.*/,,'` by configure."
5500 # First look for the input files in the build tree, otherwise in the
5502 ac_file_inputs=`IFS=:
5503 for f in $ac_file_in; do
5505 -) echo $tmp/stdin ;;
5507 # Absolute (can't be DOS-style, as IFS=:)
5508 test -f "$f" || { { echo "$as_me:5508: error: cannot find input file: $f" >&5
5509 echo "$as_me: error: cannot find input file: $f" >&2;}
5510 { (exit 1); exit 1; }; }
5513 if test -f "$f"; then
5516 elif test -f "$srcdir/$f"; then
5521 { { echo "$as_me:5521: error: cannot find input file: $f" >&5
5522 echo "$as_me: error: cannot find input file: $f" >&2;}
5523 { (exit 1); exit 1; }; }
5526 done` || { (exit 1); exit 1; }
5528 cat >>$CONFIG_STATUS <<\EOF
5529 ac_warn_datarootdir=no
5530 if test x"$ac_file" != x-; then
5531 for ac_item in $ac_file_inputs
5533 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
5534 if test -n "$ac_seen"; then
5535 ac_used=`grep '@datarootdir@' $ac_item`
5536 if test -z "$ac_used"; then
5537 { echo "$as_me:5537: WARNING: datarootdir was used implicitly but not set:
5539 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
5541 ac_warn_datarootdir=yes
5544 ac_seen=`grep '${datarootdir}' $ac_item`
5545 if test -n "$ac_seen"; then
5546 { echo "$as_me:5546: WARNING: datarootdir was used explicitly but not set:
5548 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
5550 ac_warn_datarootdir=yes
5555 if test "x$ac_warn_datarootdir" = xyes; then
5556 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
5560 cat >>$CONFIG_STATUS <<EOF
5564 cat >>$CONFIG_STATUS <<\EOF
5566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5567 s,@configure_input@,$configure_input,;t t
5568 s,@srcdir@,$ac_srcdir,;t t
5569 s,@top_srcdir@,$ac_top_srcdir,;t t
5570 s,@INSTALL@,$ac_INSTALL,;t t
5571 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5573 if test x"$ac_file" != x-; then
5574 cp $tmp/out $ac_file
5576 for ac_name in prefix exec_prefix datarootdir
5578 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
5579 if test -n "$ac_seen"; then
5580 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
5581 if test -z "$ac_init"; then
5582 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
5583 { echo "$as_me:5583: WARNING: Variable $ac_name is used but was not set:
5585 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
5590 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
5591 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
5592 if test -s $tmp/out; then
5593 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
5594 { echo "$as_me:5594: WARNING: Some variables may not be substituted:
5596 echo "$as_me: WARNING: Some variables may not be substituted:
5606 cat >>$CONFIG_STATUS <<\EOF
5609 # CONFIG_HEADER section.
5612 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5613 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5615 # ac_d sets the value in "#define NAME VALUE" lines.
5616 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5617 ac_dB='[ ].*$,\1#\2'
5620 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5621 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5622 ac_iB='\([ ]\),\1#\2define\3'
5625 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5626 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5627 ac_uB='$,\1#\2define\3'
5631 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5632 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5634 - | *:- | *:-:* ) # input from stdin
5636 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5637 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5638 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5639 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5640 * ) ac_file_in=$ac_file.in ;;
5643 test x"$ac_file" != x- && { echo "$as_me:5643: creating $ac_file" >&5
5644 echo "$as_me: creating $ac_file" >&6;}
5646 # First look for the input files in the build tree, otherwise in the
5648 ac_file_inputs=`IFS=:
5649 for f in $ac_file_in; do
5651 -) echo $tmp/stdin ;;
5653 # Absolute (can't be DOS-style, as IFS=:)
5654 test -f "$f" || { { echo "$as_me:5654: error: cannot find input file: $f" >&5
5655 echo "$as_me: error: cannot find input file: $f" >&2;}
5656 { (exit 1); exit 1; }; }
5659 if test -f "$f"; then
5662 elif test -f "$srcdir/$f"; then
5667 { { echo "$as_me:5667: error: cannot find input file: $f" >&5
5668 echo "$as_me: error: cannot find input file: $f" >&2;}
5669 { (exit 1); exit 1; }; }
5672 done` || { (exit 1); exit 1; }
5673 # Remove the trailing spaces.
5674 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5678 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5679 # `conftest.undefs', that substitutes the proper values into
5680 # config.h.in to produce config.h. The first handles `#define'
5681 # templates, and the second `#undef' templates.
5682 # And first: Protect against being on the right side of a sed subst in
5683 # config.status. Protect against being in an unquoted here document
5685 rm -f conftest.defines conftest.undefs
5686 # Using a here document instead of a string reduces the quoting nightmare.
5687 # Putting comments in sed scripts is not portable.
5689 # `end' is used to avoid that the second main sed command (meant for
5690 # 0-ary CPP macros) applies to n-ary macro definitions.
5691 # See the Autoconf documentation for `clear'.
5692 cat >confdef2sed.sed <<\EOF
5697 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5699 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5702 # If some macros were called several times there might be several times
5703 # the same #defines, which is useless. Nevertheless, we may not want to
5704 # sort them, since we want the *last* AC-DEFINE to be honored.
5705 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5706 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5707 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
5708 rm -f confdef2sed.sed
5710 # This sed command replaces #undef with comments. This is necessary, for
5711 # example, in the case of _POSIX_SOURCE, which is predefined and required
5712 # on some systems where configure will not decide to define it.
5713 cat >>conftest.undefs <<\EOF
5714 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5717 # Break up conftest.defines because some shells have a limit on the size
5718 # of here documents, and old seds have small limits too (100 cmds).
5719 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5720 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5721 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5722 echo ' :' >>$CONFIG_STATUS
5724 while grep . conftest.defines >/dev/null
5726 # Write a limited-size here document to $tmp/defines.sed.
5727 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5728 # Speed up: don't consider the non `#define' lines.
5729 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5730 # Work around the forget-to-reset-the-flag bug.
5731 echo 't clr' >>$CONFIG_STATUS
5732 echo ': clr' >>$CONFIG_STATUS
5733 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5735 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5739 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5740 rm -f conftest.defines
5741 mv conftest.tail conftest.defines
5743 rm -f conftest.defines
5744 echo ' fi # egrep' >>$CONFIG_STATUS
5745 echo >>$CONFIG_STATUS
5747 # Break up conftest.undefs because some shells have a limit on the size
5748 # of here documents, and old seds have small limits too (100 cmds).
5749 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5751 while grep . conftest.undefs >/dev/null
5753 # Write a limited-size here document to $tmp/undefs.sed.
5754 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5755 # Speed up: don't consider the non `#undef'
5756 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5757 # Work around the forget-to-reset-the-flag bug.
5758 echo 't clr' >>$CONFIG_STATUS
5759 echo ': clr' >>$CONFIG_STATUS
5760 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5762 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5766 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5767 rm -f conftest.undefs
5768 mv conftest.tail conftest.undefs
5770 rm -f conftest.undefs
5772 cat >>$CONFIG_STATUS <<\EOF
5773 # Let's still pretend it is `configure' which instantiates (i.e., don't
5774 # use $as_me), people would be surprised to read:
5775 # /* config.h. Generated automatically by config.status. */
5776 if test x"$ac_file" = x-; then
5777 echo "/* Generated automatically by configure. */" >$tmp/config.h
5779 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5781 cat $tmp/in >>$tmp/config.h
5783 if test x"$ac_file" != x-; then
5784 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5785 { echo "$as_me:5785: $ac_file is unchanged" >&5
5786 echo "$as_me: $ac_file is unchanged" >&6;}
5788 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5789 X"$ac_file" : 'X\(//\)[^/]' \| \
5790 X"$ac_file" : 'X\(//\)$' \| \
5791 X"$ac_file" : 'X\(/\)' \| \
5792 . : '\(.\)' 2>/dev/null ||
5794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5796 /^X\(\/\/\)$/{ s//\1/; q; }
5797 /^X\(\/\).*/{ s//\1/; q; }
5799 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5801 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5805 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5806 case $as_mkdir_dir in
5807 # Skip DOS drivespec
5808 ?:) as_incr_dir=$as_mkdir_dir ;;
5810 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5811 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5818 mv $tmp/config.h $ac_file
5827 cat >>$CONFIG_STATUS <<\EOF
5829 { (exit 0); exit 0; }
5831 chmod +x $CONFIG_STATUS
5832 ac_clean_files=$ac_clean_files_save
5834 # configure is writing to config.log, and then calls config.status.
5835 # config.status does its own redirection, appending to config.log.
5836 # Unfortunately, on DOS this fails, as config.log is still kept open
5837 # by configure, so config.status won't be able to write to it; its
5838 # output is simply discarded. So we exec the FD to /dev/null,
5839 # effectively closing config.log, so it can be properly (re)opened and
5840 # appended to by config.status. When coming back to configure, we
5841 # need to make the FD available again.
5842 if test "$no_create" != yes; then
5845 $SHELL $CONFIG_STATUS || ac_cs_success=false
5847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5848 # would make configure fail if this is the last instruction.
5849 $ac_cs_success || { (exit 1); exit 1; }
5852 test -z "$cf_make_docs" && cf_make_docs=0
5855 test -f "$cf_output" || cf_output=Makefile
5857 if test "$cf_make_docs" = 0
5859 cat >>$cf_output <<"CF_EOF"
5860 ################################################################################
5861 .SUFFIXES : .html .1 .man .ps .pdf .txt
5864 GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | groff -P -o0 -Iyacc,1_ -Thtml -man" >$@
5867 $(SHELL) -c "tbl $*.1 | groff -man" >$@
5870 GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | nroff -Tascii -man | col -bx" >$@
5881 cat >>$cf_output <<CF_EOF
5882 ################################################################################
5884 docs :: $cf_name.html \\
5891 rm -f $cf_name.html $cf_name.pdf $cf_name.ps $cf_name.txt
5893 $cf_name.html : $cf_name.\1
5894 $cf_name.pdf : $cf_name.ps
5895 $cf_name.ps : $cf_name.\1
5896 $cf_name.txt : $cf_name.\1