2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20101002.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
147 # Identity of this package.
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
188 cache_file=config.cache ;;
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
194 datadir=$ac_optarg ;;
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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'`
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
216 eval "enable_$ac_feature='$ac_optarg'" ;;
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
231 -help | --help | --hel | --he | -h)
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
255 -libdir | --libdir | --libdi | --libd)
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 # Obsolete; use --without-fp.
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 sbindir=$ac_optarg ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 sharedstatedir=$ac_optarg ;;
359 -site | --site | --sit)
361 -site=* | --site=* | --sit=*)
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 -version | --version | --versio | --versi | --vers | -V)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 eval "with_$ac_package='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
453 if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
462 eval ac_val=$`echo $ac_var`
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466 { (exit 1); exit 1; }; };;
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472 localstatedir libdir includedir oldincludedir infodir mandir
474 eval ac_val=$`echo $ac_var`
476 [\\/$]* | ?:[\\/]* ) ;;
477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478 { (exit 1); exit 1; }; };;
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490 if test "x$build_alias" = x; then
491 cross_compiling=maybe
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493 If a cross compiler is detected then cross compile mode will be used." >&2
494 elif test "x$build_alias" != "x$host_alias"; then
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
502 test "$silent" = yes && exec 6>/dev/null
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521 { (exit 1); exit 1; }; }
523 { echo "$as_me: error: cannot find sources in $srcdir" >&2
524 { (exit 1); exit 1; }; }
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540 ac_env_CC_set=${CC+set}
542 ac_cv_env_CC_set=${CC+set}
543 ac_cv_env_CC_value=$CC
544 ac_env_CFLAGS_set=${CFLAGS+set}
545 ac_env_CFLAGS_value=$CFLAGS
546 ac_cv_env_CFLAGS_set=${CFLAGS+set}
547 ac_cv_env_CFLAGS_value=$CFLAGS
548 ac_env_LDFLAGS_set=${LDFLAGS+set}
549 ac_env_LDFLAGS_value=$LDFLAGS
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_cv_env_LDFLAGS_value=$LDFLAGS
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553 ac_env_CPPFLAGS_value=$CPPFLAGS
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556 ac_env_CPP_set=${CPP+set}
557 ac_env_CPP_value=$CPP
558 ac_cv_env_CPP_set=${CPP+set}
559 ac_cv_env_CPP_value=$CPP
562 # Report the --help message.
564 if test "$ac_init_help" = "long"; then
565 # Omit some internal or obsolete options to make the list less imposing.
566 # This message is too long to be a string in the A/UX 3.1 sh.
568 \`configure' configures this package to adapt to many kinds of systems.
570 Usage: $0 [OPTION]... [VAR=VALUE]...
572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
573 VAR=VALUE. See below for descriptions of some of the useful variables.
575 Defaults for the options are specified in brackets.
578 -h, --help display this help and exit
579 --help=short display options specific to this package
580 --help=recursive display the short help of all the included packages
581 -V, --version display version information and exit
582 -q, --quiet, --silent do not print \`checking...' messages
583 --cache-file=FILE cache test results in FILE [disabled]
584 -C, --config-cache alias for \`--cache-file=config.cache'
585 -n, --no-create do not create output files
586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
591 Installation directories:
592 --prefix=PREFIX install architecture-independent files in PREFIX
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 By default, \`make install' will install all the files in
598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600 for instance \`--prefix=\$HOME'.
602 For better control, use the options below.
604 Fine tuning of the installation directories:
605 --bindir=DIR user executables [EPREFIX/bin]
606 --sbindir=DIR system admin executables [EPREFIX/sbin]
607 --libexecdir=DIR program executables [EPREFIX/libexec]
608 --datadir=DIR read-only architecture-independent data [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
612 --libdir=DIR object code libraries [EPREFIX/lib]
613 --includedir=DIR C header files [PREFIX/include]
614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
615 --infodir=DIR info documentation [PREFIX/info]
616 --mandir=DIR man documentation [PREFIX/man]
622 --program-prefix=PREFIX prepend PREFIX to installed program names
623 --program-suffix=SUFFIX append SUFFIX to installed program names
624 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
627 --x-includes=DIR X include files are in DIR
628 --x-libraries=DIR X library files are in DIR
631 --build=BUILD configure for building on BUILD [guessed]
632 --host=HOST build programs to run on HOST [BUILD]
636 if test -n "$ac_init_help"; then
641 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
642 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
645 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
646 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
648 --disable-echo display "compiling" commands
649 --enable-warnings test: turn on gcc compiler warnings
650 --with-dmalloc test: use Gray Watson's dmalloc library
651 --with-dbmalloc test: use Conor Cahill's dbmalloc library
652 --with-valgrind test: use valgrind
653 --disable-leaks test: free permanent memory, analyze leaks
654 --disable-widec disable checks for wide-character functions
655 --with-curses-dir=DIR directory in which (n)curses is installed
656 --with-ncursesw use wide ncurses-libraries (installed)
657 --with-ncurses use ncurses-libraries (installed)
658 --with-pdcurses compile/link with pdcurses X11 library
659 --with-curses-colr compile/link with HPUX 10.x color-curses
660 --with-curses-5lib compile/link with SunOS 5lib curses
661 --with-Xaw3d link with Xaw 3d library
662 --with-neXtaw link with neXT Athena library
663 --with-XawPlus link with Athena-Plus library
664 --with-pkg-config{=path} enable/disable use of pkg-config
665 --with-x use the X Window System
666 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
668 Some influential environment variables:
669 CC C compiler command
670 CFLAGS C compiler flags
671 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
672 nonstandard directory <lib dir>
673 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
674 headers in a nonstandard directory <include dir>
677 Use these variables to override the choices made by `configure' or to help
678 it to find libraries and programs with nonstandard names/locations.
683 if test "$ac_init_help" = "recursive"; then
684 # If there are subdirs, report their specific --help.
686 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
688 # A "../" for each directory in /$ac_subdir.
689 ac_dots=`echo $ac_subdir |
690 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
693 .) # No --srcdir option. We are building in place.
694 ac_sub_srcdir=$srcdir ;;
695 [\\/]* | ?:[\\/]* ) # Absolute path.
696 ac_sub_srcdir=$srcdir/$ac_subdir ;;
698 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
701 # Check for guested configure; otherwise get Cygnus style configure.
702 if test -f $ac_sub_srcdir/configure.gnu; then
704 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
705 elif test -f $ac_sub_srcdir/configure; then
707 $SHELL $ac_sub_srcdir/configure --help=recursive
708 elif test -f $ac_sub_srcdir/configure.ac ||
709 test -f $ac_sub_srcdir/configure.in; then
713 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
719 test -n "$ac_init_help" && exit 0
720 if $ac_init_version; then
723 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
724 Free Software Foundation, Inc.
725 This configure script is free software; the Free Software Foundation
726 gives unlimited permission to copy, distribute and modify it.
732 This file contains any messages produced by compilers while
733 running configure, to aid debugging if configure makes a mistake.
735 It was created by $as_me, which was
736 generated by GNU Autoconf 2.52.20101002. Invocation command line was
747 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
748 uname -m = `(uname -m) 2>/dev/null || echo unknown`
749 uname -r = `(uname -r) 2>/dev/null || echo unknown`
750 uname -s = `(uname -s) 2>/dev/null || echo unknown`
751 uname -v = `(uname -v) 2>/dev/null || echo unknown`
753 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
754 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
756 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
757 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
758 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
759 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
760 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
761 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
762 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
776 # Keep a trace of the command line.
777 # Strip out --no-create and --no-recursion so they do not pile up.
778 # Also quote any args containing shell meta-characters.
784 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
785 | --no-cr | --no-c) ;;
786 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
787 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
788 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
789 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
790 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
795 # Get rid of the leading space.
798 # When interrupted or exit'd, cleanup temporary files, and complete
799 # config.log. We remove comments because anyway the quotes in there
800 # would cause problems or look ugly.
802 # Save into config.log some information that might help in debugging.
804 echo "## ----------------- ##" >&5
805 echo "## Cache variables. ##" >&5
806 echo "## ----------------- ##" >&5
808 # The following way of writing the cache mishandles newlines in values,
811 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
814 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
819 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
823 sed "/^$/d" confdefs.h >conftest.log
824 if test -s conftest.log; then
826 echo "## ------------ ##" >&5
827 echo "## confdefs.h. ##" >&5
828 echo "## ------------ ##" >&5
833 test "$ac_signal" != 0 &&
834 echo "$as_me: caught signal $ac_signal" >&5
835 echo "$as_me: exit $exit_status" >&5
836 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
839 for ac_signal in 1 2 13 15; do
840 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
844 # confdefs.h avoids OS command line length limits that DEFS can exceed.
845 rm -rf conftest* confdefs.h
846 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
849 # Let the site file select an alternate cache file if it wants to.
850 # Prefer explicitly selected file to automatically selected ones.
851 if test -z "$CONFIG_SITE"; then
852 if test "x$prefix" != xNONE; then
853 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
858 for ac_site_file in $CONFIG_SITE; do
859 if test -r "$ac_site_file"; then
860 { echo "$as_me:860: loading site script $ac_site_file" >&5
861 echo "$as_me: loading site script $ac_site_file" >&6;}
862 cat "$ac_site_file" >&5
867 if test -r "$cache_file"; then
868 # Some versions of bash will fail to source /dev/null (special
869 # files actually), so we avoid doing that.
870 if test -f "$cache_file"; then
871 { echo "$as_me:871: loading cache $cache_file" >&5
872 echo "$as_me: loading cache $cache_file" >&6;}
874 [\\/]* | ?:[\\/]* ) . $cache_file;;
879 { echo "$as_me:879: creating cache $cache_file" >&5
880 echo "$as_me: creating cache $cache_file" >&6;}
884 # Check that the precious variables saved in the cache have kept the same
886 ac_cache_corrupted=false
887 for ac_var in `(set) 2>&1 |
888 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
890 eval ac_new_set=\$ac_env_${ac_var}_set
891 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
892 eval ac_new_val="\$ac_env_${ac_var}_value"
893 case $ac_old_set,$ac_new_set in
895 { echo "$as_me:895: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
896 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
897 ac_cache_corrupted=: ;;
899 { echo "$as_me:899: error: \`$ac_var' was not set in the previous run" >&5
900 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
901 ac_cache_corrupted=: ;;
904 if test "x$ac_old_val" != "x$ac_new_val"; then
905 { echo "$as_me:905: error: \`$ac_var' has changed since the previous run:" >&5
906 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
907 { echo "$as_me:907: former value: $ac_old_val" >&5
908 echo "$as_me: former value: $ac_old_val" >&2;}
909 { echo "$as_me:909: current value: $ac_new_val" >&5
910 echo "$as_me: current value: $ac_new_val" >&2;}
914 # Pass precious variables to config.status. It doesn't matter if
915 # we pass some twice (in addition to the command line arguments).
916 if test "$ac_new_set" = set; then
918 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
919 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
920 ac_configure_args="$ac_configure_args '$ac_arg'"
922 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
927 if $ac_cache_corrupted; then
928 { echo "$as_me:928: error: changes in the environment can compromise the build" >&5
929 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
930 { { echo "$as_me:930: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
931 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
932 { (exit 1); exit 1; }; }
936 ac_cpp='$CPP $CPPFLAGS'
937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
940 ac_main_return=return
942 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
943 *c*,-n*) ECHO_N= ECHO_C='
945 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
946 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
948 echo "#! $SHELL" >conftest.sh
949 echo "exit 0" >>conftest.sh
951 if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5
952 (PATH=".;."; conftest.sh) 2>&5
954 echo "$as_me:954: \$? = $ac_status" >&5
955 (exit $ac_status); }; then
956 ac_path_separator=';'
960 PATH_SEPARATOR="$ac_path_separator"
963 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
965 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
967 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
970 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
971 if test -f $ac_dir/install-sh; then
973 ac_install_sh="$ac_aux_dir/install-sh -c"
975 elif test -f $ac_dir/install.sh; then
977 ac_install_sh="$ac_aux_dir/install.sh -c"
979 elif test -f $ac_dir/shtool; then
981 ac_install_sh="$ac_aux_dir/shtool install -c"
985 if test -z "$ac_aux_dir"; then
986 { { echo "$as_me:986: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
987 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
988 { (exit 1); exit 1; }; }
990 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
991 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
992 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
994 # Make sure we can run config.sub.
995 $ac_config_sub sun4 >/dev/null 2>&1 ||
996 { { echo "$as_me:996: error: cannot run $ac_config_sub" >&5
997 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
998 { (exit 1); exit 1; }; }
1000 echo "$as_me:1000: checking build system type" >&5
1001 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1002 if test "${ac_cv_build+set}" = set; then
1003 echo $ECHO_N "(cached) $ECHO_C" >&6
1005 ac_cv_build_alias=$build_alias
1006 test -z "$ac_cv_build_alias" &&
1007 ac_cv_build_alias=`$ac_config_guess`
1008 test -z "$ac_cv_build_alias" &&
1009 { { echo "$as_me:1009: error: cannot guess build type; you must specify one" >&5
1010 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1011 { (exit 1); exit 1; }; }
1012 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1013 { { echo "$as_me:1013: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1014 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1015 { (exit 1); exit 1; }; }
1018 echo "$as_me:1018: result: $ac_cv_build" >&5
1019 echo "${ECHO_T}$ac_cv_build" >&6
1021 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1025 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1026 echo "$as_me:1026: checking host system type" >&5
1027 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1028 if test "${ac_cv_host+set}" = set; then
1029 echo $ECHO_N "(cached) $ECHO_C" >&6
1031 ac_cv_host_alias=$host_alias
1032 test -z "$ac_cv_host_alias" &&
1033 ac_cv_host_alias=$ac_cv_build_alias
1034 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1035 { { echo "$as_me:1035: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1036 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1037 { (exit 1); exit 1; }; }
1040 echo "$as_me:1040: result: $ac_cv_host" >&5
1041 echo "${ECHO_T}$ac_cv_host" >&6
1043 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 system_name="$host_os"
1049 system_name="`(uname -s -r) 2>/dev/null`"
1050 if test -z "$system_name" ; then
1051 system_name="`(hostname) 2>/dev/null`"
1054 test -n "$system_name" && cat >>confdefs.h <<EOF
1055 #define SYSTEM_NAME "$system_name"
1058 if test "${cf_cv_system_name+set}" = set; then
1059 echo $ECHO_N "(cached) $ECHO_C" >&6
1061 cf_cv_system_name="$system_name"
1064 test -z "$system_name" && system_name="$cf_cv_system_name"
1065 test -n "$cf_cv_system_name" && echo "$as_me:1065: result: Configuring for $cf_cv_system_name" >&5
1066 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1068 if test ".$system_name" != ".$cf_cv_system_name" ; then
1069 echo "$as_me:1069: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1070 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1071 { { echo "$as_me:1071: error: \"Please remove config.cache and try again.\"" >&5
1072 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1073 { (exit 1); exit 1; }; }
1076 test "$program_prefix" != NONE &&
1077 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1078 # Use a double $ so make ignores it.
1079 test "$program_suffix" != NONE &&
1080 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1081 # Double any \ or $. echo might interpret backslashes.
1082 # By default was `s,x,x', remove it if useless.
1083 cat <<\_ACEOF >conftest.sed
1084 s/[\\$]/&&/g;s/;s,x,x,$//
1086 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1089 echo "$as_me:1089: checking whether ${MAKE-make} sets \${MAKE}" >&5
1090 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1091 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1092 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1095 cat >conftest.make <<\EOF
1097 @echo 'ac_maketemp="${MAKE}"'
1099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1100 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1101 if test -n "$ac_maketemp"; then
1102 eval ac_cv_prog_make_${ac_make}_set=yes
1104 eval ac_cv_prog_make_${ac_make}_set=no
1108 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1109 echo "$as_me:1109: result: yes" >&5
1110 echo "${ECHO_T}yes" >&6
1113 echo "$as_me:1113: result: no" >&5
1114 echo "${ECHO_T}no" >&6
1115 SET_MAKE="MAKE=${MAKE-make}"
1119 ac_cpp='$CPP $CPPFLAGS'
1120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1123 ac_main_return=return
1124 if test -n "$ac_tool_prefix"; then
1125 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1127 echo "$as_me:1127: checking for $ac_word" >&5
1128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1129 if test "${ac_cv_prog_CC+set}" = set; then
1130 echo $ECHO_N "(cached) $ECHO_C" >&6
1132 if test -n "$CC"; then
1133 ac_cv_prog_CC="$CC" # Let the user override the test.
1135 ac_save_IFS=$IFS; IFS=$ac_path_separator
1137 for ac_dir in $ac_dummy; do
1139 test -z "$ac_dir" && ac_dir=.
1140 $as_executable_p "$ac_dir/$ac_word" || continue
1141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1142 echo "$as_me:1142: found $ac_dir/$ac_word" >&5
1149 if test -n "$CC"; then
1150 echo "$as_me:1150: result: $CC" >&5
1151 echo "${ECHO_T}$CC" >&6
1153 echo "$as_me:1153: result: no" >&5
1154 echo "${ECHO_T}no" >&6
1158 if test -z "$ac_cv_prog_CC"; then
1160 # Extract the first word of "gcc", so it can be a program name with args.
1161 set dummy gcc; ac_word=$2
1162 echo "$as_me:1162: checking for $ac_word" >&5
1163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1165 echo $ECHO_N "(cached) $ECHO_C" >&6
1167 if test -n "$ac_ct_CC"; then
1168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1170 ac_save_IFS=$IFS; IFS=$ac_path_separator
1172 for ac_dir in $ac_dummy; do
1174 test -z "$ac_dir" && ac_dir=.
1175 $as_executable_p "$ac_dir/$ac_word" || continue
1176 ac_cv_prog_ac_ct_CC="gcc"
1177 echo "$as_me:1177: found $ac_dir/$ac_word" >&5
1183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1184 if test -n "$ac_ct_CC"; then
1185 echo "$as_me:1185: result: $ac_ct_CC" >&5
1186 echo "${ECHO_T}$ac_ct_CC" >&6
1188 echo "$as_me:1188: result: no" >&5
1189 echo "${ECHO_T}no" >&6
1197 if test -z "$CC"; then
1198 if test -n "$ac_tool_prefix"; then
1199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1200 set dummy ${ac_tool_prefix}cc; ac_word=$2
1201 echo "$as_me:1201: checking for $ac_word" >&5
1202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1203 if test "${ac_cv_prog_CC+set}" = set; then
1204 echo $ECHO_N "(cached) $ECHO_C" >&6
1206 if test -n "$CC"; then
1207 ac_cv_prog_CC="$CC" # Let the user override the test.
1209 ac_save_IFS=$IFS; IFS=$ac_path_separator
1211 for ac_dir in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir=.
1214 $as_executable_p "$ac_dir/$ac_word" || continue
1215 ac_cv_prog_CC="${ac_tool_prefix}cc"
1216 echo "$as_me:1216: found $ac_dir/$ac_word" >&5
1223 if test -n "$CC"; then
1224 echo "$as_me:1224: result: $CC" >&5
1225 echo "${ECHO_T}$CC" >&6
1227 echo "$as_me:1227: result: no" >&5
1228 echo "${ECHO_T}no" >&6
1232 if test -z "$ac_cv_prog_CC"; then
1234 # Extract the first word of "cc", so it can be a program name with args.
1235 set dummy cc; ac_word=$2
1236 echo "$as_me:1236: checking for $ac_word" >&5
1237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1238 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1241 if test -n "$ac_ct_CC"; then
1242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1244 ac_save_IFS=$IFS; IFS=$ac_path_separator
1246 for ac_dir in $ac_dummy; do
1248 test -z "$ac_dir" && ac_dir=.
1249 $as_executable_p "$ac_dir/$ac_word" || continue
1250 ac_cv_prog_ac_ct_CC="cc"
1251 echo "$as_me:1251: found $ac_dir/$ac_word" >&5
1257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1258 if test -n "$ac_ct_CC"; then
1259 echo "$as_me:1259: result: $ac_ct_CC" >&5
1260 echo "${ECHO_T}$ac_ct_CC" >&6
1262 echo "$as_me:1262: result: no" >&5
1263 echo "${ECHO_T}no" >&6
1272 if test -z "$CC"; then
1273 # Extract the first word of "cc", so it can be a program name with args.
1274 set dummy cc; ac_word=$2
1275 echo "$as_me:1275: checking for $ac_word" >&5
1276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1277 if test "${ac_cv_prog_CC+set}" = set; then
1278 echo $ECHO_N "(cached) $ECHO_C" >&6
1280 if test -n "$CC"; then
1281 ac_cv_prog_CC="$CC" # Let the user override the test.
1284 ac_save_IFS=$IFS; IFS=$ac_path_separator
1286 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 $as_executable_p "$ac_dir/$ac_word" || continue
1290 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1291 ac_prog_rejected=yes
1295 echo "$as_me:1295: found $ac_dir/$ac_word" >&5
1299 if test $ac_prog_rejected = yes; then
1300 # We found a bogon in the path, so make sure we never use it.
1301 set dummy $ac_cv_prog_CC
1303 if test $# != 0; then
1304 # We chose a different compiler from the bogus one.
1305 # However, it has the same basename, so the bogon will be chosen
1306 # first if we set CC to just the basename; use the full file name.
1308 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1316 if test -n "$CC"; then
1317 echo "$as_me:1317: result: $CC" >&5
1318 echo "${ECHO_T}$CC" >&6
1320 echo "$as_me:1320: result: no" >&5
1321 echo "${ECHO_T}no" >&6
1325 if test -z "$CC"; then
1326 if test -n "$ac_tool_prefix"; then
1329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1331 echo "$as_me:1331: checking for $ac_word" >&5
1332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1333 if test "${ac_cv_prog_CC+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 if test -n "$CC"; then
1337 ac_cv_prog_CC="$CC" # Let the user override the test.
1339 ac_save_IFS=$IFS; IFS=$ac_path_separator
1341 for ac_dir in $ac_dummy; do
1343 test -z "$ac_dir" && ac_dir=.
1344 $as_executable_p "$ac_dir/$ac_word" || continue
1345 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1346 echo "$as_me:1346: found $ac_dir/$ac_word" >&5
1353 if test -n "$CC"; then
1354 echo "$as_me:1354: result: $CC" >&5
1355 echo "${ECHO_T}$CC" >&6
1357 echo "$as_me:1357: result: no" >&5
1358 echo "${ECHO_T}no" >&6
1361 test -n "$CC" && break
1364 if test -z "$CC"; then
1368 # Extract the first word of "$ac_prog", so it can be a program name with args.
1369 set dummy $ac_prog; ac_word=$2
1370 echo "$as_me:1370: checking for $ac_word" >&5
1371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 if test -n "$ac_ct_CC"; then
1376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1378 ac_save_IFS=$IFS; IFS=$ac_path_separator
1380 for ac_dir in $ac_dummy; do
1382 test -z "$ac_dir" && ac_dir=.
1383 $as_executable_p "$ac_dir/$ac_word" || continue
1384 ac_cv_prog_ac_ct_CC="$ac_prog"
1385 echo "$as_me:1385: found $ac_dir/$ac_word" >&5
1391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1392 if test -n "$ac_ct_CC"; then
1393 echo "$as_me:1393: result: $ac_ct_CC" >&5
1394 echo "${ECHO_T}$ac_ct_CC" >&6
1396 echo "$as_me:1396: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1400 test -n "$ac_ct_CC" && break
1408 test -z "$CC" && { { echo "$as_me:1408: error: no acceptable cc found in \$PATH" >&5
1409 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1410 { (exit 1); exit 1; }; }
1412 # Provide some information about the compiler.
1413 echo "$as_me:1413:" \
1414 "checking for C compiler version" >&5
1415 ac_compiler=`set X $ac_compile; echo $2`
1416 { (eval echo "$as_me:1416: \"$ac_compiler --version </dev/null >&5\"") >&5
1417 (eval $ac_compiler --version </dev/null >&5) 2>&5
1419 echo "$as_me:1419: \$? = $ac_status" >&5
1420 (exit $ac_status); }
1421 { (eval echo "$as_me:1421: \"$ac_compiler -v </dev/null >&5\"") >&5
1422 (eval $ac_compiler -v </dev/null >&5) 2>&5
1424 echo "$as_me:1424: \$? = $ac_status" >&5
1425 (exit $ac_status); }
1426 { (eval echo "$as_me:1426: \"$ac_compiler -V </dev/null >&5\"") >&5
1427 (eval $ac_compiler -V </dev/null >&5) 2>&5
1429 echo "$as_me:1429: \$? = $ac_status" >&5
1430 (exit $ac_status); }
1432 cat >conftest.$ac_ext <<_ACEOF
1433 #line 1433 "configure"
1434 #include "confdefs.h"
1444 ac_clean_files_save=$ac_clean_files
1445 ac_clean_files="$ac_clean_files a.out a.exe"
1446 # Try to create an executable without -o first, disregard a.out.
1447 # It will help us diagnose broken compilers, and finding out an intuition
1449 echo "$as_me:1449: checking for C compiler default output" >&5
1450 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1451 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1452 if { (eval echo "$as_me:1452: \"$ac_link_default\"") >&5
1453 (eval $ac_link_default) 2>&5
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }; then
1457 # Find the output, starting from the most likely. This scheme is
1458 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1460 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1461 ls a.out conftest 2>/dev/null;
1462 ls a.* conftest.* 2>/dev/null`; do
1464 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1465 a.out ) # We found the default executable, but exeext='' is most
1468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1469 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1476 echo "$as_me: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1478 { { echo "$as_me:1478: error: C compiler cannot create executables" >&5
1479 echo "$as_me: error: C compiler cannot create executables" >&2;}
1480 { (exit 77); exit 77; }; }
1483 ac_exeext=$ac_cv_exeext
1484 echo "$as_me:1484: result: $ac_file" >&5
1485 echo "${ECHO_T}$ac_file" >&6
1487 # Check the compiler produces executables we can run. If not, either
1488 # the compiler is broken, or we cross compile.
1489 echo "$as_me:1489: checking whether the C compiler works" >&5
1490 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1491 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1492 # If not cross compiling, check that we can run a simple program.
1493 if test "$cross_compiling" != yes; then
1494 if { ac_try='./$ac_file'
1495 { (eval echo "$as_me:1495: \"$ac_try\"") >&5
1498 echo "$as_me:1498: \$? = $ac_status" >&5
1499 (exit $ac_status); }; }; then
1502 if test "$cross_compiling" = maybe; then
1505 { { echo "$as_me:1505: error: cannot run C compiled programs.
1506 If you meant to cross compile, use \`--host'." >&5
1507 echo "$as_me: error: cannot run C compiled programs.
1508 If you meant to cross compile, use \`--host'." >&2;}
1509 { (exit 1); exit 1; }; }
1513 echo "$as_me:1513: result: yes" >&5
1514 echo "${ECHO_T}yes" >&6
1516 rm -f a.out a.exe conftest$ac_cv_exeext
1517 ac_clean_files=$ac_clean_files_save
1518 # Check the compiler produces executables we can run. If not, either
1519 # the compiler is broken, or we cross compile.
1520 echo "$as_me:1520: checking whether we are cross compiling" >&5
1521 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1522 echo "$as_me:1522: result: $cross_compiling" >&5
1523 echo "${ECHO_T}$cross_compiling" >&6
1525 echo "$as_me:1525: checking for executable suffix" >&5
1526 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1527 if { (eval echo "$as_me:1527: \"$ac_link\"") >&5
1528 (eval $ac_link) 2>&5
1530 echo "$as_me:1530: \$? = $ac_status" >&5
1531 (exit $ac_status); }; then
1532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1534 # work properly (i.e., refer to `conftest.exe'), while it won't with
1536 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1538 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1546 { { echo "$as_me:1546: error: cannot compute EXEEXT: cannot compile and link" >&5
1547 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1548 { (exit 1); exit 1; }; }
1551 rm -f conftest$ac_cv_exeext
1552 echo "$as_me:1552: result: $ac_cv_exeext" >&5
1553 echo "${ECHO_T}$ac_cv_exeext" >&6
1555 rm -f conftest.$ac_ext
1556 EXEEXT=$ac_cv_exeext
1558 echo "$as_me:1558: checking for object suffix" >&5
1559 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1560 if test "${ac_cv_objext+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 cat >conftest.$ac_ext <<_ACEOF
1564 #line 1564 "configure"
1565 #include "confdefs.h"
1575 rm -f conftest.o conftest.obj
1576 if { (eval echo "$as_me:1576: \"$ac_compile\"") >&5
1577 (eval $ac_compile) 2>&5
1579 echo "$as_me:1579: \$? = $ac_status" >&5
1580 (exit $ac_status); }; then
1581 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1583 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1584 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1589 echo "$as_me: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1591 { { echo "$as_me:1591: error: cannot compute OBJEXT: cannot compile" >&5
1592 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1593 { (exit 1); exit 1; }; }
1596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1598 echo "$as_me:1598: result: $ac_cv_objext" >&5
1599 echo "${ECHO_T}$ac_cv_objext" >&6
1600 OBJEXT=$ac_cv_objext
1602 echo "$as_me:1602: checking whether we are using the GNU C compiler" >&5
1603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 cat >conftest.$ac_ext <<_ACEOF
1608 #line 1608 "configure"
1609 #include "confdefs.h"
1622 rm -f conftest.$ac_objext
1623 if { (eval echo "$as_me:1623: \"$ac_compile\"") >&5
1624 (eval $ac_compile) 2>&5
1626 echo "$as_me:1626: \$? = $ac_status" >&5
1627 (exit $ac_status); } &&
1628 { ac_try='test -s conftest.$ac_objext'
1629 { (eval echo "$as_me:1629: \"$ac_try\"") >&5
1632 echo "$as_me:1632: \$? = $ac_status" >&5
1633 (exit $ac_status); }; }; then
1636 echo "$as_me: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1640 rm -f conftest.$ac_objext conftest.$ac_ext
1641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1644 echo "$as_me:1644: result: $ac_cv_c_compiler_gnu" >&5
1645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1646 GCC=`test $ac_compiler_gnu = yes && echo yes`
1647 ac_test_CFLAGS=${CFLAGS+set}
1648 ac_save_CFLAGS=$CFLAGS
1650 echo "$as_me:1650: checking whether $CC accepts -g" >&5
1651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1652 if test "${ac_cv_prog_cc_g+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 cat >conftest.$ac_ext <<_ACEOF
1656 #line 1656 "configure"
1657 #include "confdefs.h"
1667 rm -f conftest.$ac_objext
1668 if { (eval echo "$as_me:1668: \"$ac_compile\"") >&5
1669 (eval $ac_compile) 2>&5
1671 echo "$as_me:1671: \$? = $ac_status" >&5
1672 (exit $ac_status); } &&
1673 { ac_try='test -s conftest.$ac_objext'
1674 { (eval echo "$as_me:1674: \"$ac_try\"") >&5
1677 echo "$as_me:1677: \$? = $ac_status" >&5
1678 (exit $ac_status); }; }; then
1681 echo "$as_me: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1685 rm -f conftest.$ac_objext conftest.$ac_ext
1687 echo "$as_me:1687: result: $ac_cv_prog_cc_g" >&5
1688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1689 if test "$ac_test_CFLAGS" = set; then
1690 CFLAGS=$ac_save_CFLAGS
1691 elif test $ac_cv_prog_cc_g = yes; then
1692 if test "$GCC" = yes; then
1698 if test "$GCC" = yes; then
1704 # Some people use a C++ compiler to compile C. Since we use `exit',
1705 # in C++ we need to declare it. In case someone uses the same compiler
1706 # for both compiling C and C++ we need to have the C++ compiler decide
1707 # the declaration of exit, since it's the most demanding environment.
1708 cat >conftest.$ac_ext <<_ACEOF
1713 rm -f conftest.$ac_objext
1714 if { (eval echo "$as_me:1714: \"$ac_compile\"") >&5
1715 (eval $ac_compile) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); } &&
1719 { ac_try='test -s conftest.$ac_objext'
1720 { (eval echo "$as_me:1720: \"$ac_try\"") >&5
1723 echo "$as_me:1723: \$? = $ac_status" >&5
1724 (exit $ac_status); }; }; then
1725 for ac_declaration in \
1727 '#include <stdlib.h>' \
1728 'extern "C" void std::exit (int) throw (); using std::exit;' \
1729 'extern "C" void std::exit (int); using std::exit;' \
1730 'extern "C" void exit (int) throw ();' \
1731 'extern "C" void exit (int);' \
1734 cat >conftest.$ac_ext <<_ACEOF
1735 #line 1735 "configure"
1736 #include "confdefs.h"
1747 rm -f conftest.$ac_objext
1748 if { (eval echo "$as_me:1748: \"$ac_compile\"") >&5
1749 (eval $ac_compile) 2>&5
1751 echo "$as_me:1751: \$? = $ac_status" >&5
1752 (exit $ac_status); } &&
1753 { ac_try='test -s conftest.$ac_objext'
1754 { (eval echo "$as_me:1754: \"$ac_try\"") >&5
1757 echo "$as_me:1757: \$? = $ac_status" >&5
1758 (exit $ac_status); }; }; then
1761 echo "$as_me: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1765 rm -f conftest.$ac_objext conftest.$ac_ext
1766 cat >conftest.$ac_ext <<_ACEOF
1767 #line 1767 "configure"
1768 #include "confdefs.h"
1778 rm -f conftest.$ac_objext
1779 if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1782 echo "$as_me:1782: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try='test -s conftest.$ac_objext'
1785 { (eval echo "$as_me:1785: \"$ac_try\"") >&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1792 echo "$as_me: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1795 rm -f conftest.$ac_objext conftest.$ac_ext
1798 if test -n "$ac_declaration"; then
1799 echo '#ifdef __cplusplus' >>confdefs.h
1800 echo $ac_declaration >>confdefs.h
1801 echo '#endif' >>confdefs.h
1805 echo "$as_me: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1808 rm -f conftest.$ac_objext conftest.$ac_ext
1810 ac_cpp='$CPP $CPPFLAGS'
1811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814 ac_main_return=return
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 ac_main_return=return
1822 echo "$as_me:1822: checking how to run the C preprocessor" >&5
1823 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1824 # On Suns, sometimes $CPP names a directory.
1825 if test -n "$CPP" && test -d "$CPP"; then
1828 if test -z "$CPP"; then
1829 if test "${ac_cv_prog_CPP+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 # Double quotes because CPP needs to be expanded
1833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1836 for ac_c_preproc_warn_flag in '' yes
1838 # Use a header file that comes with gcc, so configuring glibc
1839 # with a fresh cross-compiler works.
1840 # On the NeXT, cc -E runs the code through the compiler's parser,
1841 # not just through cpp. "Syntax error" is here to catch this case.
1842 cat >conftest.$ac_ext <<_ACEOF
1843 #line 1843 "configure"
1844 #include "confdefs.h"
1848 if { (eval echo "$as_me:1848: \"$ac_cpp conftest.$ac_ext\"") >&5
1849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1851 egrep -v '^ *\+' conftest.er1 >conftest.err
1853 cat conftest.err >&5
1854 echo "$as_me:1854: \$? = $ac_status" >&5
1855 (exit $ac_status); } >/dev/null; then
1856 if test -s conftest.err; then
1857 ac_cpp_err=$ac_c_preproc_warn_flag
1864 if test -z "$ac_cpp_err"; then
1867 echo "$as_me: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1869 # Broken: fails on valid input.
1872 rm -f conftest.err conftest.$ac_ext
1874 # OK, works on sane cases. Now check whether non-existent headers
1875 # can be detected and how.
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1879 #include <ac_nonexistent.h>
1881 if { (eval echo "$as_me:1881: \"$ac_cpp conftest.$ac_ext\"") >&5
1882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1884 egrep -v '^ *\+' conftest.er1 >conftest.err
1886 cat conftest.err >&5
1887 echo "$as_me:1887: \$? = $ac_status" >&5
1888 (exit $ac_status); } >/dev/null; then
1889 if test -s conftest.err; then
1890 ac_cpp_err=$ac_c_preproc_warn_flag
1897 if test -z "$ac_cpp_err"; then
1898 # Broken: success on invalid input.
1901 echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 # Passes both tests.
1907 rm -f conftest.err conftest.$ac_ext
1910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1911 rm -f conftest.err conftest.$ac_ext
1912 if $ac_preproc_ok; then
1924 echo "$as_me:1924: result: $CPP" >&5
1925 echo "${ECHO_T}$CPP" >&6
1927 for ac_c_preproc_warn_flag in '' yes
1929 # Use a header file that comes with gcc, so configuring glibc
1930 # with a fresh cross-compiler works.
1931 # On the NeXT, cc -E runs the code through the compiler's parser,
1932 # not just through cpp. "Syntax error" is here to catch this case.
1933 cat >conftest.$ac_ext <<_ACEOF
1934 #line 1934 "configure"
1935 #include "confdefs.h"
1939 if { (eval echo "$as_me:1939: \"$ac_cpp conftest.$ac_ext\"") >&5
1940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1942 egrep -v '^ *\+' conftest.er1 >conftest.err
1944 cat conftest.err >&5
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit $ac_status); } >/dev/null; then
1947 if test -s conftest.err; then
1948 ac_cpp_err=$ac_c_preproc_warn_flag
1955 if test -z "$ac_cpp_err"; then
1958 echo "$as_me: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1960 # Broken: fails on valid input.
1963 rm -f conftest.err conftest.$ac_ext
1965 # OK, works on sane cases. Now check whether non-existent headers
1966 # can be detected and how.
1967 cat >conftest.$ac_ext <<_ACEOF
1968 #line 1968 "configure"
1969 #include "confdefs.h"
1970 #include <ac_nonexistent.h>
1972 if { (eval echo "$as_me:1972: \"$ac_cpp conftest.$ac_ext\"") >&5
1973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1975 egrep -v '^ *\+' conftest.er1 >conftest.err
1977 cat conftest.err >&5
1978 echo "$as_me:1978: \$? = $ac_status" >&5
1979 (exit $ac_status); } >/dev/null; then
1980 if test -s conftest.err; then
1981 ac_cpp_err=$ac_c_preproc_warn_flag
1988 if test -z "$ac_cpp_err"; then
1989 # Broken: success on invalid input.
1992 echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 # Passes both tests.
1998 rm -f conftest.err conftest.$ac_ext
2001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2002 rm -f conftest.err conftest.$ac_ext
2003 if $ac_preproc_ok; then
2006 { { echo "$as_me:2006: error: C preprocessor \"$CPP\" fails sanity check" >&5
2007 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2008 { (exit 1); exit 1; }; }
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 ac_main_return=return
2018 for ac_prog in mawk gawk nawk awk
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 echo "$as_me:2022: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_AWK+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$AWK"; then
2028 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2030 ac_save_IFS=$IFS; IFS=$ac_path_separator
2032 for ac_dir in $ac_dummy; do
2034 test -z "$ac_dir" && ac_dir=.
2035 $as_executable_p "$ac_dir/$ac_word" || continue
2036 ac_cv_prog_AWK="$ac_prog"
2037 echo "$as_me:2037: found $ac_dir/$ac_word" >&5
2044 if test -n "$AWK"; then
2045 echo "$as_me:2045: result: $AWK" >&5
2046 echo "${ECHO_T}$AWK" >&6
2048 echo "$as_me:2048: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2052 test -n "$AWK" && break
2055 # Find a good install program. We prefer a C program (faster),
2056 # so one script is as good as another. But avoid the broken or
2057 # incompatible versions:
2058 # SysV /etc/install, /usr/sbin/install
2059 # SunOS /usr/etc/install
2060 # IRIX /sbin/install
2062 # AmigaOS /C/install, which installs bootblocks on floppy discs
2063 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2066 # ./install, which can be erroneously created by make from ./install.sh.
2067 echo "$as_me:2067: checking for a BSD compatible install" >&5
2068 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2069 if test -z "$INSTALL"; then
2070 if test "${ac_cv_path_install+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 ac_save_IFS=$IFS; IFS=$ac_path_separator
2074 for ac_dir in $PATH; do
2076 # Account for people who put trailing slashes in PATH elements.
2078 / | ./ | .// | /cC/* \
2079 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2082 # OSF1 and SCO ODT 3.0 have their own names for install.
2083 # Don't use installbsd from OSF since it installs stuff as root
2085 for ac_prog in ginstall scoinst install; do
2086 if $as_executable_p "$ac_dir/$ac_prog"; then
2087 if test $ac_prog = install &&
2088 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2089 # AIX install. It has an incompatible calling convention.
2091 elif test $ac_prog = install &&
2092 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2093 # program-specific install script used by HP pwplus--don't use.
2096 ac_cv_path_install="$ac_dir/$ac_prog -c"
2106 if test "${ac_cv_path_install+set}" = set; then
2107 INSTALL=$ac_cv_path_install
2109 # As a last resort, use the slow shell script. We don't cache a
2110 # path for INSTALL within a source directory, because that will
2111 # break other packages using the cache if that directory is
2112 # removed, or if the path is relative.
2113 INSTALL=$ac_install_sh
2116 echo "$as_me:2116: result: $INSTALL" >&5
2117 echo "${ECHO_T}$INSTALL" >&6
2119 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2120 # It thinks the first close brace ends the variable substitution.
2121 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2123 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2125 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2131 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2132 test -z "$cf_dir" && cf_dir=.
2133 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2137 for ac_prog in tdlint lint alint splint lclint
2139 # Extract the first word of "$ac_prog", so it can be a program name with args.
2140 set dummy $ac_prog; ac_word=$2
2141 echo "$as_me:2141: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_LINT+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test -n "$LINT"; then
2147 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2149 ac_save_IFS=$IFS; IFS=$ac_path_separator
2151 for ac_dir in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir=.
2154 $as_executable_p "$ac_dir/$ac_word" || continue
2155 ac_cv_prog_LINT="$ac_prog"
2156 echo "$as_me:2156: found $ac_dir/$ac_word" >&5
2162 LINT=$ac_cv_prog_LINT
2163 if test -n "$LINT"; then
2164 echo "$as_me:2164: result: $LINT" >&5
2165 echo "${ECHO_T}$LINT" >&6
2167 echo "$as_me:2167: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2171 test -n "$LINT" && break
2174 echo "$as_me:2174: checking if filesystem supports mixed-case filenames" >&5
2175 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2176 if test "${cf_cv_mixedcase+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test "$cross_compiling" = yes ; then
2181 case $target_alias in #(vi
2182 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2190 rm -f conftest CONFTEST
2192 if test -f CONFTEST ; then
2197 rm -f conftest CONFTEST
2201 echo "$as_me:2201: result: $cf_cv_mixedcase" >&5
2202 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2203 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2204 #define MIXEDCASE_FILENAMES 1
2207 for ac_prog in exctags ctags
2209 # Extract the first word of "$ac_prog", so it can be a program name with args.
2210 set dummy $ac_prog; ac_word=$2
2211 echo "$as_me:2211: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_CTAGS+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test -n "$CTAGS"; then
2217 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2219 ac_save_IFS=$IFS; IFS=$ac_path_separator
2221 for ac_dir in $ac_dummy; do
2223 test -z "$ac_dir" && ac_dir=.
2224 $as_executable_p "$ac_dir/$ac_word" || continue
2225 ac_cv_prog_CTAGS="$ac_prog"
2226 echo "$as_me:2226: found $ac_dir/$ac_word" >&5
2232 CTAGS=$ac_cv_prog_CTAGS
2233 if test -n "$CTAGS"; then
2234 echo "$as_me:2234: result: $CTAGS" >&5
2235 echo "${ECHO_T}$CTAGS" >&6
2237 echo "$as_me:2237: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2241 test -n "$CTAGS" && break
2244 for ac_prog in exetags etags
2246 # Extract the first word of "$ac_prog", so it can be a program name with args.
2247 set dummy $ac_prog; ac_word=$2
2248 echo "$as_me:2248: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_prog_ETAGS+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 if test -n "$ETAGS"; then
2254 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2256 ac_save_IFS=$IFS; IFS=$ac_path_separator
2258 for ac_dir in $ac_dummy; do
2260 test -z "$ac_dir" && ac_dir=.
2261 $as_executable_p "$ac_dir/$ac_word" || continue
2262 ac_cv_prog_ETAGS="$ac_prog"
2263 echo "$as_me:2263: found $ac_dir/$ac_word" >&5
2269 ETAGS=$ac_cv_prog_ETAGS
2270 if test -n "$ETAGS"; then
2271 echo "$as_me:2271: result: $ETAGS" >&5
2272 echo "${ECHO_T}$ETAGS" >&6
2274 echo "$as_me:2274: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2278 test -n "$ETAGS" && break
2281 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2282 set dummy ${CTAGS:-ctags}; ac_word=$2
2283 echo "$as_me:2283: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$MAKE_LOWER_TAGS"; then
2289 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2291 ac_save_IFS=$IFS; IFS=$ac_path_separator
2293 for ac_dir in $ac_dummy; do
2295 test -z "$ac_dir" && ac_dir=.
2296 $as_executable_p "$ac_dir/$ac_word" || continue
2297 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2298 echo "$as_me:2298: found $ac_dir/$ac_word" >&5
2302 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2305 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2306 if test -n "$MAKE_LOWER_TAGS"; then
2307 echo "$as_me:2307: result: $MAKE_LOWER_TAGS" >&5
2308 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2310 echo "$as_me:2310: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2314 if test "$cf_cv_mixedcase" = yes ; then
2315 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2316 set dummy ${ETAGS:-etags}; ac_word=$2
2317 echo "$as_me:2317: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$MAKE_UPPER_TAGS"; then
2323 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2325 ac_save_IFS=$IFS; IFS=$ac_path_separator
2327 for ac_dir in $ac_dummy; do
2329 test -z "$ac_dir" && ac_dir=.
2330 $as_executable_p "$ac_dir/$ac_word" || continue
2331 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2332 echo "$as_me:2332: found $ac_dir/$ac_word" >&5
2336 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2339 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2340 if test -n "$MAKE_UPPER_TAGS"; then
2341 echo "$as_me:2341: result: $MAKE_UPPER_TAGS" >&5
2342 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2344 echo "$as_me:2344: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2352 if test "$MAKE_UPPER_TAGS" = yes ; then
2358 if test "$MAKE_LOWER_TAGS" = yes ; then
2364 echo "$as_me:2364: checking if -lm needed for math functions" >&5
2365 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2366 if test "${cf_cv_need_libm+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #line 2371 "configure"
2372 #include "confdefs.h"
2380 double x = rand(); printf("result = %g\n", sin(x))
2385 rm -f conftest.$ac_objext conftest$ac_exeext
2386 if { (eval echo "$as_me:2386: \"$ac_link\"") >&5
2387 (eval $ac_link) 2>&5
2389 echo "$as_me:2389: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -s conftest$ac_exeext'
2392 { (eval echo "$as_me:2392: \"$ac_try\"") >&5
2395 echo "$as_me:2395: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2405 echo "$as_me:2405: result: $cf_cv_need_libm" >&5
2406 echo "${ECHO_T}$cf_cv_need_libm" >&6
2407 if test "$cf_cv_need_libm" = yes
2413 CC_SHARED_OPTS=unknown
2414 CPPFLAGS="$CPPFLAGS"
2416 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2417 DFT_UPR_MODEL="NORMAL"
2433 TINFO_ARGS='$(LIBS_CURSES)'
2434 cf_cv_abi_version=""
2435 cf_cv_rel_version=""
2440 # This should have been defined by AC_PROG_CC
2443 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2444 # into CC. This will not help with broken scripts that wrap the compiler with
2445 # options, but eliminates a more common category of user confusion.
2446 echo "$as_me:2446: checking \$CC variable" >&5
2447 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2450 echo "$as_me:2450: result: broken" >&5
2451 echo "${ECHO_T}broken" >&6
2452 { echo "$as_me:2452: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2453 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2455 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2456 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2461 cf_new_extra_cppflags=
2463 for cf_add_cflags in $cf_flags
2465 case $cf_fix_cppflags in
2467 case $cf_add_cflags in #(vi
2468 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2469 case $cf_add_cflags in
2471 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2473 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2474 && test -z "${cf_tst_cflags}" \
2475 && cf_fix_cppflags=yes
2477 if test $cf_fix_cppflags = yes ; then
2478 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2480 elif test "${cf_tst_cflags}" = "\"'" ; then
2481 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2487 *$cf_add_cflags) #(vi
2490 case $cf_add_cflags in #(vi
2492 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2494 CPPFLAGS=`echo "$CPPFLAGS" | \
2495 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2496 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2500 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2505 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2510 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2512 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2514 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2515 && test -z "${cf_tst_cflags}" \
2516 && cf_fix_cppflags=no
2521 if test -n "$cf_new_cflags" ; then
2523 CFLAGS="$CFLAGS $cf_new_cflags"
2526 if test -n "$cf_new_cppflags" ; then
2528 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2531 if test -n "$cf_new_extra_cppflags" ; then
2533 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2538 echo "$as_me:2538: result: ok" >&5
2539 echo "${ECHO_T}ok" >&6
2543 echo "$as_me:2543: checking for ${CC:-cc} option to accept ANSI C" >&5
2544 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2545 if test "${cf_cv_ansi_cc+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 cf_save_CFLAGS="$CFLAGS"
2551 cf_save_CPPFLAGS="$CPPFLAGS"
2552 # Don't try gcc -ansi; that turns off useful extensions and
2553 # breaks some systems' header files.
2554 # AIX -qlanglvl=ansi
2555 # Ultrix and OSF/1 -std1
2556 # HP-UX -Aa -D_HPUX_SOURCE
2558 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2559 for cf_arg in "-DCC_HAS_PROTOS" \
2564 "-Aa -D_HPUX_SOURCE" \
2571 cf_new_extra_cppflags=
2573 for cf_add_cflags in $cf_arg
2575 case $cf_fix_cppflags in
2577 case $cf_add_cflags in #(vi
2578 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2579 case $cf_add_cflags in
2581 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2583 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2584 && test -z "${cf_tst_cflags}" \
2585 && cf_fix_cppflags=yes
2587 if test $cf_fix_cppflags = yes ; then
2588 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2590 elif test "${cf_tst_cflags}" = "\"'" ; then
2591 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2597 *$cf_add_cflags) #(vi
2600 case $cf_add_cflags in #(vi
2602 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2604 CPPFLAGS=`echo "$CPPFLAGS" | \
2605 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2606 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2610 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2615 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2620 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2622 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2624 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2625 && test -z "${cf_tst_cflags}" \
2626 && cf_fix_cppflags=no
2631 if test -n "$cf_new_cflags" ; then
2633 CFLAGS="$CFLAGS $cf_new_cflags"
2636 if test -n "$cf_new_cppflags" ; then
2638 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2641 if test -n "$cf_new_extra_cppflags" ; then
2643 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2646 cat >conftest.$ac_ext <<_ACEOF
2647 #line 2647 "configure"
2648 #include "confdefs.h"
2650 #ifndef CC_HAS_PROTOS
2651 #if !defined(__STDC__) || (__STDC__ != 1)
2660 int test (int i, double x);
2661 struct s1 {int (*f) (int a);};
2662 struct s2 {int (*f) (double a);};
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:2668: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>&5
2671 echo "$as_me:2671: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:2674: \"$ac_try\"") >&5
2677 echo "$as_me:2677: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 cf_cv_ansi_cc="$cf_arg"; break
2681 echo "$as_me: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2684 rm -f conftest.$ac_objext conftest.$ac_ext
2686 CFLAGS="$cf_save_CFLAGS"
2687 CPPFLAGS="$cf_save_CPPFLAGS"
2690 echo "$as_me:2690: result: $cf_cv_ansi_cc" >&5
2691 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2693 if test "$cf_cv_ansi_cc" != "no"; then
2694 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2699 cf_new_extra_cppflags=
2701 for cf_add_cflags in $cf_cv_ansi_cc
2703 case $cf_fix_cppflags in
2705 case $cf_add_cflags in #(vi
2706 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2707 case $cf_add_cflags in
2709 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2711 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2712 && test -z "${cf_tst_cflags}" \
2713 && cf_fix_cppflags=yes
2715 if test $cf_fix_cppflags = yes ; then
2716 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2718 elif test "${cf_tst_cflags}" = "\"'" ; then
2719 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2725 *$cf_add_cflags) #(vi
2728 case $cf_add_cflags in #(vi
2730 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2732 CPPFLAGS=`echo "$CPPFLAGS" | \
2733 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2734 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2738 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2743 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2748 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2750 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2752 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2753 && test -z "${cf_tst_cflags}" \
2754 && cf_fix_cppflags=no
2759 if test -n "$cf_new_cflags" ; then
2761 CFLAGS="$CFLAGS $cf_new_cflags"
2764 if test -n "$cf_new_cppflags" ; then
2766 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2769 if test -n "$cf_new_extra_cppflags" ; then
2771 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2775 cat >>confdefs.h <<\EOF
2776 #define CC_HAS_PROTOS 1
2782 if test "$cf_cv_ansi_cc" = "no"; then
2783 { { echo "$as_me:2783: error: Your compiler does not appear to recognize prototypes.
2784 You have the following choices:
2785 a. adjust your compiler options
2786 b. get an up-to-date compiler
2787 c. use a wrapper such as unproto" >&5
2788 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2789 You have the following choices:
2790 a. adjust your compiler options
2791 b. get an up-to-date compiler
2792 c. use a wrapper such as unproto" >&2;}
2793 { (exit 1); exit 1; }; }
2796 if test "$GCC" = yes
2798 cat > conftest.i <<EOF
2800 #define GCC_PRINTF 0
2805 #ifndef GCC_NORETURN
2806 #define GCC_NORETURN /* nothing */
2809 #define GCC_UNUSED /* nothing */
2812 if test "$GCC" = yes
2814 { echo "$as_me:2814: checking for $CC __attribute__ directives..." >&5
2815 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2817 "${as_me:-configure}"
2818 #include "confdefs.h"
2819 #include "conftest.h"
2820 #include "conftest.i"
2822 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2824 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2827 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2829 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2831 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2832 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2833 extern void foo(void) GCC_NORETURN;
2834 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2836 cf_printf_attribute=no
2837 cf_scanf_attribute=no
2838 for cf_attribute in scanf printf unused noreturn
2841 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2843 cf_directive="__attribute__(($cf_attribute))"
2844 echo "checking for $CC $cf_directive" 1>&5
2846 case $cf_attribute in #(vi
2848 cf_printf_attribute=yes
2849 cat >conftest.h <<EOF
2850 #define GCC_$cf_ATTRIBUTE 1
2854 cf_scanf_attribute=yes
2855 cat >conftest.h <<EOF
2856 #define GCC_$cf_ATTRIBUTE 1
2860 cat >conftest.h <<EOF
2861 #define GCC_$cf_ATTRIBUTE $cf_directive
2866 if { (eval echo "$as_me:2866: \"$ac_compile\"") >&5
2867 (eval $ac_compile) 2>&5
2869 echo "$as_me:2869: \$? = $ac_status" >&5
2870 (exit $ac_status); }; then
2871 test -n "$verbose" && echo "$as_me:2871: result: ... $cf_attribute" >&5
2872 echo "${ECHO_T}... $cf_attribute" >&6
2873 cat conftest.h >>confdefs.h
2874 case $cf_attribute in #(vi
2876 if test "$cf_printf_attribute" = no ; then
2877 cat >>confdefs.h <<EOF
2878 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2881 cat >>confdefs.h <<EOF
2882 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2887 if test "$cf_scanf_attribute" = no ; then
2888 cat >>confdefs.h <<EOF
2889 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2892 cat >>confdefs.h <<EOF
2893 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2901 fgrep define conftest.i >>confdefs.h
2907 cf_POSIX_C_SOURCE=199506L
2910 case $host_os in #(vi
2912 cf_xopen_source="-D_ALL_SOURCE"
2918 cf_xopen_source="-D_APPLE_C_SOURCE"
2921 cf_xopen_source="-D_DARWIN_C_SOURCE"
2923 freebsd*|dragonfly*) #(vi
2924 # 5.x headers associate
2925 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2926 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2927 cf_POSIX_C_SOURCE=200112L
2929 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2932 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2935 cf_xopen_source="-D_HPUX_SOURCE"
2938 cf_xopen_source="-D_SGI_SOURCE"
2940 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2942 echo "$as_me:2942: checking if we must define _GNU_SOURCE" >&5
2943 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2944 if test "${cf_cv_gnu_source+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #line 2949 "configure"
2950 #include "confdefs.h"
2951 #include <sys/types.h>
2956 #ifndef _XOPEN_SOURCE
2963 rm -f conftest.$ac_objext
2964 if { (eval echo "$as_me:2964: \"$ac_compile\"") >&5
2965 (eval $ac_compile) 2>&5
2967 echo "$as_me:2967: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (eval echo "$as_me:2970: \"$ac_try\"") >&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2977 echo "$as_me: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2980 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2981 cat >conftest.$ac_ext <<_ACEOF
2982 #line 2982 "configure"
2983 #include "confdefs.h"
2984 #include <sys/types.h>
2989 #ifdef _XOPEN_SOURCE
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:2997: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:3003: \"$ac_try\"") >&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3012 cf_cv_gnu_source=yes
3014 rm -f conftest.$ac_objext conftest.$ac_ext
3018 rm -f conftest.$ac_objext conftest.$ac_ext
3021 echo "$as_me:3021: result: $cf_cv_gnu_source" >&5
3022 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3023 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3027 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
3030 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3033 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3036 cf_xopen_source="-D_OSF_SOURCE"
3039 cf_xopen_source="-D_QNX_SOURCE"
3042 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3044 solaris2.1[0-9]) #(vi
3045 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3047 solaris2.[1-9]) #(vi
3048 cf_xopen_source="-D__EXTENSIONS__"
3051 echo "$as_me:3051: checking if we should define _XOPEN_SOURCE" >&5
3052 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3053 if test "${cf_cv_xopen_source+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 cat >conftest.$ac_ext <<_ACEOF
3058 #line 3058 "configure"
3059 #include "confdefs.h"
3060 #include <sys/types.h>
3065 #ifndef _XOPEN_SOURCE
3072 rm -f conftest.$ac_objext
3073 if { (eval echo "$as_me:3073: \"$ac_compile\"") >&5
3074 (eval $ac_compile) 2>&5
3076 echo "$as_me:3076: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:3079: \"$ac_try\"") >&5
3082 echo "$as_me:3082: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 cf_cv_xopen_source=no
3086 echo "$as_me: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3089 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3090 cat >conftest.$ac_ext <<_ACEOF
3091 #line 3091 "configure"
3092 #include "confdefs.h"
3093 #include <sys/types.h>
3098 #ifdef _XOPEN_SOURCE
3105 rm -f conftest.$ac_objext
3106 if { (eval echo "$as_me:3106: \"$ac_compile\"") >&5
3107 (eval $ac_compile) 2>&5
3109 echo "$as_me:3109: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (eval echo "$as_me:3112: \"$ac_try\"") >&5
3115 echo "$as_me:3115: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 cf_cv_xopen_source=no
3119 echo "$as_me: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3121 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3123 rm -f conftest.$ac_objext conftest.$ac_ext
3127 rm -f conftest.$ac_objext conftest.$ac_ext
3130 echo "$as_me:3130: result: $cf_cv_xopen_source" >&5
3131 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3132 if test "$cf_cv_xopen_source" != no ; then
3134 CFLAGS=`echo "$CFLAGS" | \
3135 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3136 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3138 CPPFLAGS=`echo "$CPPFLAGS" | \
3139 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3140 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3142 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3147 cf_new_extra_cppflags=
3149 for cf_add_cflags in $cf_temp_xopen_source
3151 case $cf_fix_cppflags in
3153 case $cf_add_cflags in #(vi
3154 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3155 case $cf_add_cflags in
3157 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3159 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3160 && test -z "${cf_tst_cflags}" \
3161 && cf_fix_cppflags=yes
3163 if test $cf_fix_cppflags = yes ; then
3164 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3166 elif test "${cf_tst_cflags}" = "\"'" ; then
3167 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3173 *$cf_add_cflags) #(vi
3176 case $cf_add_cflags in #(vi
3178 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3180 CPPFLAGS=`echo "$CPPFLAGS" | \
3181 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3182 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3186 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3191 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3196 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3198 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3200 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3201 && test -z "${cf_tst_cflags}" \
3202 && cf_fix_cppflags=no
3207 if test -n "$cf_new_cflags" ; then
3209 CFLAGS="$CFLAGS $cf_new_cflags"
3212 if test -n "$cf_new_cppflags" ; then
3214 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3217 if test -n "$cf_new_extra_cppflags" ; then
3219 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3224 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3226 cf_save_CFLAGS="$CFLAGS"
3227 cf_save_CPPFLAGS="$CPPFLAGS"
3229 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3230 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3231 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3233 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3234 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3235 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3237 echo "$as_me:3237: checking if we should define _POSIX_C_SOURCE" >&5
3238 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3239 if test "${cf_cv_posix_c_source+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 echo "${as_me:-configure}:3243: testing if the symbol is already defined go no further ..." 1>&5
3245 cat >conftest.$ac_ext <<_ACEOF
3246 #line 3246 "configure"
3247 #include "confdefs.h"
3248 #include <sys/types.h>
3253 #ifndef _POSIX_C_SOURCE
3260 rm -f conftest.$ac_objext
3261 if { (eval echo "$as_me:3261: \"$ac_compile\"") >&5
3262 (eval $ac_compile) 2>&5
3264 echo "$as_me:3264: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -s conftest.$ac_objext'
3267 { (eval echo "$as_me:3267: \"$ac_try\"") >&5
3270 echo "$as_me:3270: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 cf_cv_posix_c_source=no
3274 echo "$as_me: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3276 cf_want_posix_source=no
3277 case .$cf_POSIX_C_SOURCE in #(vi
3279 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3282 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3283 cf_want_posix_source=yes
3286 cf_want_posix_source=yes
3289 if test "$cf_want_posix_source" = yes ; then
3290 cat >conftest.$ac_ext <<_ACEOF
3291 #line 3291 "configure"
3292 #include "confdefs.h"
3293 #include <sys/types.h>
3298 #ifdef _POSIX_SOURCE
3305 rm -f conftest.$ac_objext
3306 if { (eval echo "$as_me:3306: \"$ac_compile\"") >&5
3307 (eval $ac_compile) 2>&5
3309 echo "$as_me:3309: \$? = $ac_status" >&5
3310 (exit $ac_status); } &&
3311 { ac_try='test -s conftest.$ac_objext'
3312 { (eval echo "$as_me:3312: \"$ac_try\"") >&5
3315 echo "$as_me:3315: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3319 echo "$as_me: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3321 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3323 rm -f conftest.$ac_objext conftest.$ac_ext
3326 echo "${as_me:-configure}:3326: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3328 CFLAGS="$cf_trim_CFLAGS"
3329 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3331 echo "${as_me:-configure}:3331: testing if the second compile does not leave our definition intact error ..." 1>&5
3333 cat >conftest.$ac_ext <<_ACEOF
3334 #line 3334 "configure"
3335 #include "confdefs.h"
3336 #include <sys/types.h>
3341 #ifndef _POSIX_C_SOURCE
3348 rm -f conftest.$ac_objext
3349 if { (eval echo "$as_me:3349: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>&5
3352 echo "$as_me:3352: \$? = $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:3355: \"$ac_try\"") >&5
3358 echo "$as_me:3358: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3362 echo "$as_me: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3364 cf_cv_posix_c_source=no
3366 rm -f conftest.$ac_objext conftest.$ac_ext
3367 CFLAGS="$cf_save_CFLAGS"
3368 CPPFLAGS="$cf_save_CPPFLAGS"
3371 rm -f conftest.$ac_objext conftest.$ac_ext
3374 echo "$as_me:3374: result: $cf_cv_posix_c_source" >&5
3375 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3377 if test "$cf_cv_posix_c_source" != no ; then
3378 CFLAGS="$cf_trim_CFLAGS"
3379 CPPFLAGS="$cf_trim_CPPFLAGS"
3384 cf_new_extra_cppflags=
3386 for cf_add_cflags in $cf_cv_posix_c_source
3388 case $cf_fix_cppflags in
3390 case $cf_add_cflags in #(vi
3391 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3392 case $cf_add_cflags in
3394 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3396 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3397 && test -z "${cf_tst_cflags}" \
3398 && cf_fix_cppflags=yes
3400 if test $cf_fix_cppflags = yes ; then
3401 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3403 elif test "${cf_tst_cflags}" = "\"'" ; then
3404 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3410 *$cf_add_cflags) #(vi
3413 case $cf_add_cflags in #(vi
3415 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3417 CPPFLAGS=`echo "$CPPFLAGS" | \
3418 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3419 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3423 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3428 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3433 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3435 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3437 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3438 && test -z "${cf_tst_cflags}" \
3439 && cf_fix_cppflags=no
3444 if test -n "$cf_new_cflags" ; then
3446 CFLAGS="$CFLAGS $cf_new_cflags"
3449 if test -n "$cf_new_cppflags" ; then
3451 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3454 if test -n "$cf_new_extra_cppflags" ; then
3456 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3464 if test -n "$cf_xopen_source" ; then
3469 cf_new_extra_cppflags=
3471 for cf_add_cflags in $cf_xopen_source
3473 case $cf_fix_cppflags in
3475 case $cf_add_cflags in #(vi
3476 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3477 case $cf_add_cflags in
3479 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3481 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3482 && test -z "${cf_tst_cflags}" \
3483 && cf_fix_cppflags=yes
3485 if test $cf_fix_cppflags = yes ; then
3486 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3488 elif test "${cf_tst_cflags}" = "\"'" ; then
3489 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3495 *$cf_add_cflags) #(vi
3498 case $cf_add_cflags in #(vi
3500 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3502 CPPFLAGS=`echo "$CPPFLAGS" | \
3503 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3504 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3508 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3513 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3518 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3520 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3522 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3523 && test -z "${cf_tst_cflags}" \
3524 && cf_fix_cppflags=no
3529 if test -n "$cf_new_cflags" ; then
3531 CFLAGS="$CFLAGS $cf_new_cflags"
3534 if test -n "$cf_new_cppflags" ; then
3536 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3539 if test -n "$cf_new_extra_cppflags" ; then
3541 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3546 echo "$as_me:3546: checking for $CC option to accept ANSI C" >&5
3547 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3548 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 ac_cv_prog_cc_stdc=no
3553 cat >conftest.$ac_ext <<_ACEOF
3554 #line 3554 "configure"
3555 #include "confdefs.h"
3558 #include <sys/types.h>
3559 #include <sys/stat.h>
3560 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3561 struct buf { int x; };
3562 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3563 static char *e (p, i)
3569 static char *f (char * (*g) (char **, int), char **p, ...)
3574 s = g (p, va_arg (v,int));
3578 int test (int i, double x);
3579 struct s1 {int (*f) (int a);};
3580 struct s2 {int (*f) (double a);};
3581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3592 # Don't try gcc -ansi; that turns off useful extensions and
3593 # breaks some systems' header files.
3594 # AIX -qlanglvl=ansi
3595 # Ultrix and OSF/1 -std1
3596 # HP-UX 10.20 and later -Ae
3597 # HP-UX older versions -Aa -D_HPUX_SOURCE
3598 # SVR4 -Xc -D__EXTENSIONS__
3599 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3601 CC="$ac_save_CC $ac_arg"
3602 rm -f conftest.$ac_objext
3603 if { (eval echo "$as_me:3603: \"$ac_compile\"") >&5
3604 (eval $ac_compile) 2>&5
3606 echo "$as_me:3606: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:3609: \"$ac_try\"") >&5
3612 echo "$as_me:3612: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_cv_prog_cc_stdc=$ac_arg
3617 echo "$as_me: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3620 rm -f conftest.$ac_objext
3622 rm -f conftest.$ac_ext conftest.$ac_objext
3627 case "x$ac_cv_prog_cc_stdc" in
3629 echo "$as_me:3629: result: none needed" >&5
3630 echo "${ECHO_T}none needed" >&6 ;;
3632 echo "$as_me:3632: result: $ac_cv_prog_cc_stdc" >&5
3633 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3634 CC="$CC $ac_cv_prog_cc_stdc" ;;
3637 echo "$as_me:3637: checking for an ANSI C-conforming const" >&5
3638 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3639 if test "${ac_cv_c_const+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 cat >conftest.$ac_ext <<_ACEOF
3643 #line 3643 "configure"
3644 #include "confdefs.h"
3649 /* FIXME: Include the comments suggested by Paul. */
3651 /* Ultrix mips cc rejects this. */
3652 typedef int charset[2];
3654 /* SunOS 4.1.1 cc rejects this. */
3655 char const *const *ccp;
3657 /* NEC SVR4.0.2 mips cc rejects this. */
3658 struct point {int x, y;};
3659 static struct point const zero = {0,0};
3660 /* AIX XL C 1.02.0.0 rejects this.
3661 It does not let you subtract one const X* pointer from another in
3662 an arm of an if-expression whose if-part is not a constant
3664 const char *g = "string";
3665 ccp = &g + (g ? g-g : 0);
3666 /* HPUX 7.0 cc rejects these. */
3669 ccp = (char const *const *) p;
3670 { /* SCO 3.2v4 cc rejects this. */
3672 char const *s = 0 ? (char *) 0 : (char const *) 0;
3676 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3678 const int *foo = &x[0];
3681 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3682 typedef const int *iptr;
3686 { /* AIX XL C 1.02.0.0 rejects this saying
3687 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3688 struct s { int j; const int *ap[3]; };
3689 struct s *b; b->j = 5;
3691 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3700 rm -f conftest.$ac_objext
3701 if { (eval echo "$as_me:3701: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>&5
3704 echo "$as_me:3704: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 { ac_try='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:3707: \"$ac_try\"") >&5
3710 echo "$as_me:3710: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3714 echo "$as_me: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3718 rm -f conftest.$ac_objext conftest.$ac_ext
3720 echo "$as_me:3720: result: $ac_cv_c_const" >&5
3721 echo "${ECHO_T}$ac_cv_c_const" >&6
3722 if test $ac_cv_c_const = no; then
3724 cat >>confdefs.h <<\EOF
3730 echo "$as_me:3730: checking for signal global datatype" >&5
3731 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3732 if test "${cf_cv_sig_atomic_t+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 "volatile sig_atomic_t" \
3741 cat >conftest.$ac_ext <<_ACEOF
3742 #line 3742 "configure"
3743 #include "confdefs.h"
3745 #include <sys/types.h>
3751 static void handler(int sig)
3758 signal(SIGINT, handler);
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:3765: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>&5
3768 echo "$as_me:3768: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -s conftest.$ac_objext'
3771 { (eval echo "$as_me:3771: \"$ac_try\"") >&5
3774 echo "$as_me:3774: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 cf_cv_sig_atomic_t=$cf_type
3778 echo "$as_me: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3780 cf_cv_sig_atomic_t=no
3782 rm -f conftest.$ac_objext conftest.$ac_ext
3783 test "$cf_cv_sig_atomic_t" != no && break
3788 echo "$as_me:3788: result: $cf_cv_sig_atomic_t" >&5
3789 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3790 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3791 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3794 echo "$as_me:3794: checking if you want to see long compiling messages" >&5
3795 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3797 # Check whether --enable-echo or --disable-echo was given.
3798 if test "${enable_echo+set}" = set; then
3799 enableval="$enable_echo"
3800 test "$enableval" != no && enableval=yes
3801 if test "$enableval" != "yes" ; then
3804 ECHO_LD='@echo linking $@;'
3805 RULE_CC='@echo compiling $<'
3806 SHOW_CC='@echo compiling $@'
3828 echo "$as_me:3828: result: $enableval" >&5
3829 echo "${ECHO_T}$enableval" >&6
3832 if test "$GCC" = yes ; then
3833 echo "$as_me:3833: checking version of $CC" >&5
3834 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3835 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3836 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3837 echo "$as_me:3837: result: $GCC_VERSION" >&5
3838 echo "${ECHO_T}$GCC_VERSION" >&6
3841 if ( test "$GCC" = yes || test "$GXX" = yes )
3843 echo "$as_me:3843: checking if you want to turn on gcc warnings" >&5
3844 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
3846 # Check whether --enable-warnings or --disable-warnings was given.
3847 if test "${enable_warnings+set}" = set; then
3848 enableval="$enable_warnings"
3849 test "$enableval" != yes && enableval=no
3850 if test "$enableval" != "no" ; then
3860 echo "$as_me:3860: result: $with_warnings" >&5
3861 echo "${ECHO_T}$with_warnings" >&6
3862 if test "$with_warnings" = "yes"
3865 if test "$GCC" = yes
3867 cat > conftest.i <<EOF
3869 #define GCC_PRINTF 0
3874 #ifndef GCC_NORETURN
3875 #define GCC_NORETURN /* nothing */
3878 #define GCC_UNUSED /* nothing */
3881 if test "$GCC" = yes
3883 { echo "$as_me:3883: checking for $CC __attribute__ directives..." >&5
3884 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3886 "${as_me:-configure}"
3887 #include "confdefs.h"
3888 #include "conftest.h"
3889 #include "conftest.i"
3891 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3893 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3896 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3898 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3900 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3901 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3902 extern void foo(void) GCC_NORETURN;
3903 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3905 cf_printf_attribute=no
3906 cf_scanf_attribute=no
3907 for cf_attribute in scanf printf unused noreturn
3910 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3912 cf_directive="__attribute__(($cf_attribute))"
3913 echo "checking for $CC $cf_directive" 1>&5
3915 case $cf_attribute in #(vi
3917 cf_printf_attribute=yes
3918 cat >conftest.h <<EOF
3919 #define GCC_$cf_ATTRIBUTE 1
3923 cf_scanf_attribute=yes
3924 cat >conftest.h <<EOF
3925 #define GCC_$cf_ATTRIBUTE 1
3929 cat >conftest.h <<EOF
3930 #define GCC_$cf_ATTRIBUTE $cf_directive
3935 if { (eval echo "$as_me:3935: \"$ac_compile\"") >&5
3936 (eval $ac_compile) 2>&5
3938 echo "$as_me:3938: \$? = $ac_status" >&5
3939 (exit $ac_status); }; then
3940 test -n "$verbose" && echo "$as_me:3940: result: ... $cf_attribute" >&5
3941 echo "${ECHO_T}... $cf_attribute" >&6
3942 cat conftest.h >>confdefs.h
3943 case $cf_attribute in #(vi
3945 if test "$cf_printf_attribute" = no ; then
3946 cat >>confdefs.h <<EOF
3947 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3950 cat >>confdefs.h <<EOF
3951 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3956 if test "$cf_scanf_attribute" = no ; then
3957 cat >>confdefs.h <<EOF
3958 #define GCC_SCANFLIKE(fmt,var) /* nothing */
3961 cat >>confdefs.h <<EOF
3962 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3970 fgrep define conftest.i >>confdefs.h
3977 if test "$GCC" = yes ; then
3980 echo "$as_me:3980: checking if this is really Intel C compiler" >&5
3981 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3982 cf_save_CFLAGS="$CFLAGS"
3983 CFLAGS="$CFLAGS -no-gcc"
3984 cat >conftest.$ac_ext <<_ACEOF
3985 #line 3985 "configure"
3986 #include "confdefs.h"
3992 #ifdef __INTEL_COMPILER
4001 rm -f conftest.$ac_objext
4002 if { (eval echo "$as_me:4002: \"$ac_compile\"") >&5
4003 (eval $ac_compile) 2>&5
4005 echo "$as_me:4005: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:4008: \"$ac_try\"") >&5
4011 echo "$as_me:4011: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4014 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
4017 echo "$as_me: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 rm -f conftest.$ac_objext conftest.$ac_ext
4021 CFLAGS="$cf_save_CFLAGS"
4022 echo "$as_me:4022: result: $INTEL_COMPILER" >&5
4023 echo "${ECHO_T}$INTEL_COMPILER" >&6
4028 cat > conftest.$ac_ext <<EOF
4029 #line 4029 "${as_me:-configure}"
4030 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4033 if test "$INTEL_COMPILER" = yes
4035 # The "-wdXXX" options suppress warnings:
4036 # remark #1419: external declaration in primary source file
4037 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4038 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4039 # remark #193: zero used for undefined preprocessing identifier
4040 # remark #593: variable "curs_sb_left_arrow" was set but never used
4041 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4042 # remark #869: parameter "tw" was never referenced
4043 # remark #981: operands are evaluated in unspecified order
4044 # warning #279: controlling expression is constant
4046 { echo "$as_me:4046: checking for $CC warning options..." >&5
4047 echo "$as_me: checking for $CC warning options..." >&6;}
4048 cf_save_CFLAGS="$CFLAGS"
4049 EXTRA_CFLAGS="-Wall"
4061 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4062 if { (eval echo "$as_me:4062: \"$ac_compile\"") >&5
4063 (eval $ac_compile) 2>&5
4065 echo "$as_me:4065: \$? = $ac_status" >&5
4066 (exit $ac_status); }; then
4067 test -n "$verbose" && echo "$as_me:4067: result: ... -$cf_opt" >&5
4068 echo "${ECHO_T}... -$cf_opt" >&6
4069 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4072 CFLAGS="$cf_save_CFLAGS"
4074 elif test "$GCC" = yes
4076 { echo "$as_me:4076: checking for $CC warning options..." >&5
4077 echo "$as_me: checking for $CC warning options..." >&6;}
4078 cf_save_CFLAGS="$CFLAGS"
4081 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4082 for cf_opt in W Wall \
4083 Wbad-function-cast \
4087 Wmissing-declarations \
4088 Wmissing-prototypes \
4092 Wstrict-prototypes \
4093 Wundef $cf_warn_CONST
4095 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4096 if { (eval echo "$as_me:4096: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>&5
4099 echo "$as_me:4099: \$? = $ac_status" >&5
4100 (exit $ac_status); }; then
4101 test -n "$verbose" && echo "$as_me:4101: result: ... -$cf_opt" >&5
4102 echo "${ECHO_T}... -$cf_opt" >&6
4103 case $cf_opt in #(vi
4105 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4108 case $GCC_VERSION in
4110 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4112 echo "${as_me:-configure}:4112: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4118 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4121 CFLAGS="$cf_save_CFLAGS"
4128 echo "$as_me:4128: checking if you want to use dmalloc for testing" >&5
4129 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4131 # Check whether --with-dmalloc or --without-dmalloc was given.
4132 if test "${with_dmalloc+set}" = set; then
4133 withval="$with_dmalloc"
4134 cat >>confdefs.h <<\EOF
4135 #define USE_DMALLOC 1
4138 : ${with_cflags:=-g}
4139 : ${with_no_leaks:=yes}
4144 echo "$as_me:4144: result: ${with_dmalloc:-no}" >&5
4145 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4147 case .$with_cflags in #(vi
4149 case .$CFLAGS in #(vi
4157 cf_new_extra_cppflags=
4159 for cf_add_cflags in -g
4161 case $cf_fix_cppflags in
4163 case $cf_add_cflags in #(vi
4164 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4165 case $cf_add_cflags in
4167 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4169 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4170 && test -z "${cf_tst_cflags}" \
4171 && cf_fix_cppflags=yes
4173 if test $cf_fix_cppflags = yes ; then
4174 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4176 elif test "${cf_tst_cflags}" = "\"'" ; then
4177 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4183 *$cf_add_cflags) #(vi
4186 case $cf_add_cflags in #(vi
4188 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4190 CPPFLAGS=`echo "$CPPFLAGS" | \
4191 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4192 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4196 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4201 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4206 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4208 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4210 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4211 && test -z "${cf_tst_cflags}" \
4212 && cf_fix_cppflags=no
4217 if test -n "$cf_new_cflags" ; then
4219 CFLAGS="$CFLAGS $cf_new_cflags"
4222 if test -n "$cf_new_cppflags" ; then
4224 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4227 if test -n "$cf_new_extra_cppflags" ; then
4229 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4237 if test "$with_dmalloc" = yes ; then
4238 echo "$as_me:4238: checking for dmalloc.h" >&5
4239 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4240 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 cat >conftest.$ac_ext <<_ACEOF
4244 #line 4244 "configure"
4245 #include "confdefs.h"
4246 #include <dmalloc.h>
4248 if { (eval echo "$as_me:4248: \"$ac_cpp conftest.$ac_ext\"") >&5
4249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4251 egrep -v '^ *\+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 echo "$as_me:4254: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev/null; then
4256 if test -s conftest.err; then
4257 ac_cpp_err=$ac_c_preproc_warn_flag
4264 if test -z "$ac_cpp_err"; then
4265 ac_cv_header_dmalloc_h=yes
4267 echo "$as_me: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 ac_cv_header_dmalloc_h=no
4271 rm -f conftest.err conftest.$ac_ext
4273 echo "$as_me:4273: result: $ac_cv_header_dmalloc_h" >&5
4274 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4275 if test $ac_cv_header_dmalloc_h = yes; then
4277 echo "$as_me:4277: checking for dmalloc_debug in -ldmalloc" >&5
4278 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4279 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 ac_check_lib_save_LIBS=$LIBS
4283 LIBS="-ldmalloc $LIBS"
4284 cat >conftest.$ac_ext <<_ACEOF
4285 #line 4285 "configure"
4286 #include "confdefs.h"
4288 /* Override any gcc2 internal prototype to avoid an error. */
4292 /* We use char because int might match the return type of a gcc2
4293 builtin and then its argument prototype would still apply. */
4294 char dmalloc_debug ();
4303 rm -f conftest.$ac_objext conftest$ac_exeext
4304 if { (eval echo "$as_me:4304: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>&5
4307 echo "$as_me:4307: \$? = $ac_status" >&5
4308 (exit $ac_status); } &&
4309 { ac_try='test -s conftest$ac_exeext'
4310 { (eval echo "$as_me:4310: \"$ac_try\"") >&5
4313 echo "$as_me:4313: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 ac_cv_lib_dmalloc_dmalloc_debug=yes
4317 echo "$as_me: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4319 ac_cv_lib_dmalloc_dmalloc_debug=no
4321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4322 LIBS=$ac_check_lib_save_LIBS
4324 echo "$as_me:4324: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4325 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4326 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4327 cat >>confdefs.h <<EOF
4328 #define HAVE_LIBDMALLOC 1
4331 LIBS="-ldmalloc $LIBS"
4339 echo "$as_me:4339: checking if you want to use dbmalloc for testing" >&5
4340 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4342 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4343 if test "${with_dbmalloc+set}" = set; then
4344 withval="$with_dbmalloc"
4345 cat >>confdefs.h <<\EOF
4346 #define USE_DBMALLOC 1
4349 : ${with_cflags:=-g}
4350 : ${with_no_leaks:=yes}
4355 echo "$as_me:4355: result: ${with_dbmalloc:-no}" >&5
4356 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4358 case .$with_cflags in #(vi
4360 case .$CFLAGS in #(vi
4368 cf_new_extra_cppflags=
4370 for cf_add_cflags in -g
4372 case $cf_fix_cppflags in
4374 case $cf_add_cflags in #(vi
4375 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4376 case $cf_add_cflags in
4378 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4380 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4381 && test -z "${cf_tst_cflags}" \
4382 && cf_fix_cppflags=yes
4384 if test $cf_fix_cppflags = yes ; then
4385 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4387 elif test "${cf_tst_cflags}" = "\"'" ; then
4388 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4394 *$cf_add_cflags) #(vi
4397 case $cf_add_cflags in #(vi
4399 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4401 CPPFLAGS=`echo "$CPPFLAGS" | \
4402 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4403 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4407 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4412 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4417 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4419 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4421 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4422 && test -z "${cf_tst_cflags}" \
4423 && cf_fix_cppflags=no
4428 if test -n "$cf_new_cflags" ; then
4430 CFLAGS="$CFLAGS $cf_new_cflags"
4433 if test -n "$cf_new_cppflags" ; then
4435 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4438 if test -n "$cf_new_extra_cppflags" ; then
4440 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4448 if test "$with_dbmalloc" = yes ; then
4449 echo "$as_me:4449: checking for dbmalloc.h" >&5
4450 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4451 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4455 #line 4455 "configure"
4456 #include "confdefs.h"
4457 #include <dbmalloc.h>
4459 if { (eval echo "$as_me:4459: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462 egrep -v '^ *\+' conftest.er1 >conftest.err
4464 cat conftest.err >&5
4465 echo "$as_me:4465: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
4475 if test -z "$ac_cpp_err"; then
4476 ac_cv_header_dbmalloc_h=yes
4478 echo "$as_me: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4480 ac_cv_header_dbmalloc_h=no
4482 rm -f conftest.err conftest.$ac_ext
4484 echo "$as_me:4484: result: $ac_cv_header_dbmalloc_h" >&5
4485 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4486 if test $ac_cv_header_dbmalloc_h = yes; then
4488 echo "$as_me:4488: checking for debug_malloc in -ldbmalloc" >&5
4489 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4490 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 ac_check_lib_save_LIBS=$LIBS
4494 LIBS="-ldbmalloc $LIBS"
4495 cat >conftest.$ac_ext <<_ACEOF
4496 #line 4496 "configure"
4497 #include "confdefs.h"
4499 /* Override any gcc2 internal prototype to avoid an error. */
4503 /* We use char because int might match the return type of a gcc2
4504 builtin and then its argument prototype would still apply. */
4505 char debug_malloc ();
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (eval echo "$as_me:4515: \"$ac_link\"") >&5
4516 (eval $ac_link) 2>&5
4518 echo "$as_me:4518: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -s conftest$ac_exeext'
4521 { (eval echo "$as_me:4521: \"$ac_try\"") >&5
4524 echo "$as_me:4524: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_cv_lib_dbmalloc_debug_malloc=yes
4528 echo "$as_me: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4530 ac_cv_lib_dbmalloc_debug_malloc=no
4532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4533 LIBS=$ac_check_lib_save_LIBS
4535 echo "$as_me:4535: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4536 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4537 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4538 cat >>confdefs.h <<EOF
4539 #define HAVE_LIBDBMALLOC 1
4542 LIBS="-ldbmalloc $LIBS"
4550 echo "$as_me:4550: checking if you want to use valgrind for testing" >&5
4551 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4553 # Check whether --with-valgrind or --without-valgrind was given.
4554 if test "${with_valgrind+set}" = set; then
4555 withval="$with_valgrind"
4556 cat >>confdefs.h <<\EOF
4557 #define USE_VALGRIND 1
4560 : ${with_cflags:=-g}
4561 : ${with_no_leaks:=yes}
4566 echo "$as_me:4566: result: ${with_valgrind:-no}" >&5
4567 echo "${ECHO_T}${with_valgrind:-no}" >&6
4569 case .$with_cflags in #(vi
4571 case .$CFLAGS in #(vi
4579 cf_new_extra_cppflags=
4581 for cf_add_cflags in -g
4583 case $cf_fix_cppflags in
4585 case $cf_add_cflags in #(vi
4586 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4587 case $cf_add_cflags in
4589 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4591 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4592 && test -z "${cf_tst_cflags}" \
4593 && cf_fix_cppflags=yes
4595 if test $cf_fix_cppflags = yes ; then
4596 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4598 elif test "${cf_tst_cflags}" = "\"'" ; then
4599 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4605 *$cf_add_cflags) #(vi
4608 case $cf_add_cflags in #(vi
4610 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4612 CPPFLAGS=`echo "$CPPFLAGS" | \
4613 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4614 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4618 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4623 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4628 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4630 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4632 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4633 && test -z "${cf_tst_cflags}" \
4634 && cf_fix_cppflags=no
4639 if test -n "$cf_new_cflags" ; then
4641 CFLAGS="$CFLAGS $cf_new_cflags"
4644 if test -n "$cf_new_cppflags" ; then
4646 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4649 if test -n "$cf_new_extra_cppflags" ; then
4651 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4659 echo "$as_me:4659: checking if you want to perform memory-leak testing" >&5
4660 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
4662 # Check whether --enable-leaks or --disable-leaks was given.
4663 if test "${enable_leaks+set}" = set; then
4664 enableval="$enable_leaks"
4665 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
4667 : ${with_no_leaks:=no}
4669 echo "$as_me:4669: result: $with_no_leaks" >&5
4670 echo "${ECHO_T}$with_no_leaks" >&6
4672 if test "$with_no_leaks" = yes ; then
4673 cat >>confdefs.h <<\EOF
4677 cat >>confdefs.h <<\EOF
4678 #define YY_NO_LEAKS 1