2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20170501.
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 datarootdir='${prefix}/share'
138 datadir='${datarootdir}'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${datarootdir}/info'
146 mandir='${datarootdir}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
198 | --dataroo | --dataro | --datar)
199 ac_prev=datarootdir ;;
200 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
201 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
202 datarootdir=$ac_optarg ;;
204 -disable-* | --disable-*)
205 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
211 eval "enable_$ac_feature=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
215 # Reject names that are not valid shell variable names.
216 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
217 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
218 { (exit 1); exit 1; }; }
219 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
224 eval "enable_$ac_feature='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix=$ac_optarg ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he | -h)
241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
242 ac_init_help=recursive ;;
243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
244 ac_init_help=short ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host_alias ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host_alias=$ac_optarg ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir=$ac_optarg ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir=$ac_optarg ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir=$ac_optarg ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir=$ac_optarg ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir=$ac_optarg ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix=$ac_optarg ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name=$ac_optarg ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir=$ac_optarg ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir=$ac_optarg ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir=$ac_optarg ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target_alias ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target_alias=$ac_optarg ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers | -V)
396 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid package name: $ac_package" >&2
400 { (exit 1); exit 1; }; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "with_$ac_package='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid package name: $ac_package" >&2
413 { (exit 1); exit 1; }; }
414 ac_package=`echo $ac_package | sed 's/-/_/g'`
415 eval "with_$ac_package=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes=$ac_optarg ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries=$ac_optarg ;;
435 -*) { echo "$as_me: error: unrecognized option: $ac_option
436 Try \`$0 --help' for more information." >&2
437 { (exit 1); exit 1; }; }
441 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
442 # Reject names that are not valid shell variable names.
443 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
444 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
445 { (exit 1); exit 1; }; }
446 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
447 eval "$ac_envvar='$ac_optarg'"
451 # FIXME: should be removed in autoconf 3.0.
452 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
454 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
461 if test -n "$ac_prev"; then
462 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
463 { echo "$as_me: error: missing argument to $ac_option" >&2
464 { (exit 1); exit 1; }; }
467 # Be sure to have absolute paths.
468 for ac_var in exec_prefix prefix
470 eval ac_val=$`echo $ac_var`
472 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
473 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
474 { (exit 1); exit 1; }; };;
478 # Be sure to have absolute paths.
479 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
480 localstatedir libdir includedir oldincludedir infodir mandir
482 eval ac_val=$`echo $ac_var`
484 [\\/$]* | ?:[\\/]* ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # There might be people who depend on the old broken behavior: `$host'
491 # used to hold the argument of --host etc.
496 # FIXME: should be removed in autoconf 3.0.
497 if test "x$host_alias" != x; then
498 if test "x$build_alias" = x; then
499 cross_compiling=maybe
500 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
501 If a cross compiler is detected then cross compile mode will be used." >&2
502 elif test "x$build_alias" != "x$host_alias"; then
508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510 test "$silent" = yes && exec 6>/dev/null
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
529 { (exit 1); exit 1; }; }
531 { echo "$as_me: error: cannot find sources in $srcdir" >&2
532 { (exit 1); exit 1; }; }
535 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
536 ac_env_build_alias_set=${build_alias+set}
537 ac_env_build_alias_value=$build_alias
538 ac_cv_env_build_alias_set=${build_alias+set}
539 ac_cv_env_build_alias_value=$build_alias
540 ac_env_host_alias_set=${host_alias+set}
541 ac_env_host_alias_value=$host_alias
542 ac_cv_env_host_alias_set=${host_alias+set}
543 ac_cv_env_host_alias_value=$host_alias
544 ac_env_target_alias_set=${target_alias+set}
545 ac_env_target_alias_value=$target_alias
546 ac_cv_env_target_alias_set=${target_alias+set}
547 ac_cv_env_target_alias_value=$target_alias
548 ac_env_CC_set=${CC+set}
550 ac_cv_env_CC_set=${CC+set}
551 ac_cv_env_CC_value=$CC
552 ac_env_CFLAGS_set=${CFLAGS+set}
553 ac_env_CFLAGS_value=$CFLAGS
554 ac_cv_env_CFLAGS_set=${CFLAGS+set}
555 ac_cv_env_CFLAGS_value=$CFLAGS
556 ac_env_LDFLAGS_set=${LDFLAGS+set}
557 ac_env_LDFLAGS_value=$LDFLAGS
558 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
559 ac_cv_env_LDFLAGS_value=$LDFLAGS
560 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
561 ac_env_CPPFLAGS_value=$CPPFLAGS
562 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
563 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
564 ac_env_CPP_set=${CPP+set}
565 ac_env_CPP_value=$CPP
566 ac_cv_env_CPP_set=${CPP+set}
567 ac_cv_env_CPP_value=$CPP
570 # Report the --help message.
572 if test "$ac_init_help" = "long"; then
573 # Omit some internal or obsolete options to make the list less imposing.
574 # This message is too long to be a string in the A/UX 3.1 sh.
576 \`configure' configures this package to adapt to many kinds of systems.
578 Usage: $0 [OPTION]... [VAR=VALUE]...
580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
581 VAR=VALUE. See below for descriptions of some of the useful variables.
583 Defaults for the options are specified in brackets.
586 -h, --help display this help and exit
587 --help=short display options specific to this package
588 --help=recursive display the short help of all the included packages
589 -V, --version display version information and exit
590 -q, --quiet, --silent do not print \`checking...' messages
591 --cache-file=FILE cache test results in FILE [disabled]
592 -C, --config-cache alias for \`--cache-file=config.cache'
593 -n, --no-create do not create output files
594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
599 Installation directories:
600 --prefix=PREFIX install architecture-independent files in PREFIX
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 By default, \`make install' will install all the files in
606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
608 for instance \`--prefix=\$HOME'.
610 For better control, use the options below.
612 Fine tuning of the installation directories:
613 --bindir=DIR user executables [EPREFIX/bin]
614 --sbindir=DIR system admin executables [EPREFIX/sbin]
615 --libexecdir=DIR program executables [EPREFIX/libexec]
616 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
621 --libdir=DIR object code libraries [EPREFIX/lib]
622 --includedir=DIR C header files [PREFIX/include]
623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
624 --infodir=DIR info documentation [DATAROOTDIR/info]
625 --mandir=DIR man documentation [DATAROOTDIR/man]
631 --program-prefix=PREFIX prepend PREFIX to installed program names
632 --program-suffix=SUFFIX append SUFFIX to installed program names
633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
636 --x-includes=DIR X include files are in DIR
637 --x-libraries=DIR X library files are in DIR
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
645 if test -n "$ac_init_help"; then
650 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
651 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
654 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
655 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
657 --enable-string-hacks work around bogus compiler/loader warnings
659 --with-pkg-config{=path} enable/disable use of pkg-config
660 --disable-echo do not display "compiling" commands
661 Curses Version-dependent Options:
662 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
663 --disable-widec disable checks for wide-character functions
664 --with-curses-dir=DIR directory in which (n)curses is installed
665 --with-screen=XXX use specified curses-libraries
666 --with-ncursesw use wide ncurses-libraries
667 --with-ncurses use ncurses-libraries
668 --with-pdcurses compile/link with pdcurses X11 library
669 --with-curses-colr compile/link with HPUX 10.x color-curses
670 --with-curses-5lib compile/link with SunOS 5lib curses
671 --with-Xaw3d link with Xaw 3d library
672 --with-Xaw3dxft link with Xaw 3d xft library
673 --with-neXtaw link with neXT Athena library
674 --with-XawPlus link with Athena-Plus library
675 --with-x use the X Window System
676 --disable-panel disable checks for panel functions
677 --disable-menu disable checks for menu functions
678 --disable-form disable checks for form functions
679 Testing/development Options:
680 --enable-warnings test: turn on gcc compiler warnings
681 --with-dmalloc test: use Gray Watson's dmalloc library
682 --with-dbmalloc test: use Conor Cahill's dbmalloc library
683 --with-valgrind test: use valgrind
684 --disable-leaks test: free permanent memory, analyze leaks
685 --disable-rpath-hack don't add rpath options for additional libraries
687 Some influential environment variables:
688 CC C compiler command
689 CFLAGS C compiler flags
690 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
691 nonstandard directory <lib dir>
692 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
693 headers in a nonstandard directory <include dir>
696 Use these variables to override the choices made by `configure' or to help
697 it to find libraries and programs with nonstandard names/locations.
702 if test "$ac_init_help" = "recursive"; then
703 # If there are subdirs, report their specific --help.
705 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
707 # A "../" for each directory in /$ac_subdir.
708 ac_dots=`echo $ac_subdir |
709 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
712 .) # No --srcdir option. We are building in place.
713 ac_sub_srcdir=$srcdir ;;
714 [\\/]* | ?:[\\/]* ) # Absolute path.
715 ac_sub_srcdir=$srcdir/$ac_subdir ;;
717 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
720 # Check for guested configure; otherwise get Cygnus style configure.
721 if test -f $ac_sub_srcdir/configure.gnu; then
723 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
724 elif test -f $ac_sub_srcdir/configure; then
726 $SHELL $ac_sub_srcdir/configure --help=recursive
727 elif test -f $ac_sub_srcdir/configure.ac ||
728 test -f $ac_sub_srcdir/configure.in; then
732 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
738 test -n "$ac_init_help" && exit 0
739 if $ac_init_version; then
742 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
743 Free Software Foundation, Inc.
744 This configure script is free software; the Free Software Foundation
745 gives unlimited permission to copy, distribute and modify it.
751 This file contains any messages produced by compilers while
752 running configure, to aid debugging if configure makes a mistake.
754 It was created by $as_me, which was
755 generated by GNU Autoconf 2.52.20170501. Invocation command line was
766 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
767 uname -m = `(uname -m) 2>/dev/null || echo unknown`
768 uname -r = `(uname -r) 2>/dev/null || echo unknown`
769 uname -s = `(uname -s) 2>/dev/null || echo unknown`
770 uname -v = `(uname -v) 2>/dev/null || echo unknown`
772 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
773 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
775 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
776 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
777 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
778 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
779 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
780 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
781 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
795 # Keep a trace of the command line.
796 # Strip out --no-create and --no-recursion so they do not pile up.
797 # Also quote any args containing shell meta-characters.
803 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
804 | --no-cr | --no-c) ;;
805 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
806 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
807 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
808 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
809 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
811 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
814 # Get rid of the leading space.
817 # When interrupted or exit'd, cleanup temporary files, and complete
818 # config.log. We remove comments because anyway the quotes in there
819 # would cause problems or look ugly.
821 # Save into config.log some information that might help in debugging.
823 echo "## ----------------- ##" >&5
824 echo "## Cache variables. ##" >&5
825 echo "## ----------------- ##" >&5
827 # The following way of writing the cache mishandles newlines in values,
830 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
833 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
842 sed "/^$/d" confdefs.h >conftest.log
843 if test -s conftest.log; then
845 echo "## ------------ ##" >&5
846 echo "## confdefs.h. ##" >&5
847 echo "## ------------ ##" >&5
852 test "$ac_signal" != 0 &&
853 echo "$as_me: caught signal $ac_signal" >&5
854 echo "$as_me: exit $exit_status" >&5
855 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
858 for ac_signal in 1 2 13 15; do
859 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
864 rm -rf conftest* confdefs.h
865 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
868 # Let the site file select an alternate cache file if it wants to.
869 # Prefer explicitly selected file to automatically selected ones.
870 if test -z "$CONFIG_SITE"; then
871 if test "x$prefix" != xNONE; then
872 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
874 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
877 for ac_site_file in $CONFIG_SITE; do
878 if test -r "$ac_site_file"; then
879 { echo "$as_me:879: loading site script $ac_site_file" >&5
880 echo "$as_me: loading site script $ac_site_file" >&6;}
881 cat "$ac_site_file" >&5
886 if test -r "$cache_file"; then
887 # Some versions of bash will fail to source /dev/null (special
888 # files actually), so we avoid doing that.
889 if test -f "$cache_file"; then
890 { echo "$as_me:890: loading cache $cache_file" >&5
891 echo "$as_me: loading cache $cache_file" >&6;}
893 [\\/]* | ?:[\\/]* ) . $cache_file;;
898 { echo "$as_me:898: creating cache $cache_file" >&5
899 echo "$as_me: creating cache $cache_file" >&6;}
903 # Check that the precious variables saved in the cache have kept the same
905 ac_cache_corrupted=false
906 for ac_var in `(set) 2>&1 |
907 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
908 eval ac_old_set=\$ac_cv_env_${ac_var}_set
909 eval ac_new_set=\$ac_env_${ac_var}_set
910 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
911 eval ac_new_val="\$ac_env_${ac_var}_value"
912 case $ac_old_set,$ac_new_set in
914 { echo "$as_me:914: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
915 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
916 ac_cache_corrupted=: ;;
918 { echo "$as_me:918: error: \`$ac_var' was not set in the previous run" >&5
919 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
920 ac_cache_corrupted=: ;;
923 if test "x$ac_old_val" != "x$ac_new_val"; then
924 { echo "$as_me:924: error: \`$ac_var' has changed since the previous run:" >&5
925 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
926 { echo "$as_me:926: former value: $ac_old_val" >&5
927 echo "$as_me: former value: $ac_old_val" >&2;}
928 { echo "$as_me:928: current value: $ac_new_val" >&5
929 echo "$as_me: current value: $ac_new_val" >&2;}
933 # Pass precious variables to config.status. It doesn't matter if
934 # we pass some twice (in addition to the command line arguments).
935 if test "$ac_new_set" = set; then
937 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
938 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
939 ac_configure_args="$ac_configure_args '$ac_arg'"
941 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
946 if $ac_cache_corrupted; then
947 { echo "$as_me:947: error: changes in the environment can compromise the build" >&5
948 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
949 { { echo "$as_me:949: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
950 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
951 { (exit 1); exit 1; }; }
955 ac_cpp='$CPP $CPPFLAGS'
956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
959 ac_main_return=return
961 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
962 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
964 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
965 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
967 echo "#! $SHELL" >conftest.sh
968 echo "exit 0" >>conftest.sh
970 if { (echo "$as_me:970: PATH=\".;.\"; conftest.sh") >&5
971 (PATH=".;."; conftest.sh) 2>&5
973 echo "$as_me:973: \$? = $ac_status" >&5
974 (exit $ac_status); }; then
975 ac_path_separator=';'
979 PATH_SEPARATOR="$ac_path_separator"
982 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
984 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
986 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
989 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
990 if test -f $ac_dir/install-sh; then
992 ac_install_sh="$ac_aux_dir/install-sh -c"
994 elif test -f $ac_dir/install.sh; then
996 ac_install_sh="$ac_aux_dir/install.sh -c"
998 elif test -f $ac_dir/shtool; then
1000 ac_install_sh="$ac_aux_dir/shtool install -c"
1004 if test -z "$ac_aux_dir"; then
1005 { { echo "$as_me:1005: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1006 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1007 { (exit 1); exit 1; }; }
1009 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1010 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1011 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1013 # Make sure we can run config.sub.
1014 $ac_config_sub sun4 >/dev/null 2>&1 ||
1015 { { echo "$as_me:1015: error: cannot run $ac_config_sub" >&5
1016 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1017 { (exit 1); exit 1; }; }
1019 echo "$as_me:1019: checking build system type" >&5
1020 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1021 if test "${ac_cv_build+set}" = set; then
1022 echo $ECHO_N "(cached) $ECHO_C" >&6
1024 ac_cv_build_alias=$build_alias
1025 test -z "$ac_cv_build_alias" &&
1026 ac_cv_build_alias=`$ac_config_guess`
1027 test -z "$ac_cv_build_alias" &&
1028 { { echo "$as_me:1028: error: cannot guess build type; you must specify one" >&5
1029 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1030 { (exit 1); exit 1; }; }
1031 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1032 { { echo "$as_me:1032: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1033 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1034 { (exit 1); exit 1; }; }
1037 echo "$as_me:1037: result: $ac_cv_build" >&5
1038 echo "${ECHO_T}$ac_cv_build" >&6
1040 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1041 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1042 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1044 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1045 echo "$as_me:1045: checking host system type" >&5
1046 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1047 if test "${ac_cv_host+set}" = set; then
1048 echo $ECHO_N "(cached) $ECHO_C" >&6
1050 ac_cv_host_alias=$host_alias
1051 test -z "$ac_cv_host_alias" &&
1052 ac_cv_host_alias=$ac_cv_build_alias
1053 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1054 { { echo "$as_me:1054: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1055 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1056 { (exit 1); exit 1; }; }
1059 echo "$as_me:1059: result: $ac_cv_host" >&5
1060 echo "${ECHO_T}$ac_cv_host" >&6
1062 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1063 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1064 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1066 system_name="$host_os"
1068 system_name="`(uname -s -r) 2>/dev/null`"
1069 if test -z "$system_name" ; then
1070 system_name="`(hostname) 2>/dev/null`"
1073 test -n "$system_name" &&
1074 cat >>confdefs.h <<EOF
1075 #define SYSTEM_NAME "$system_name"
1078 if test "${cf_cv_system_name+set}" = set; then
1079 echo $ECHO_N "(cached) $ECHO_C" >&6
1081 cf_cv_system_name="$system_name"
1084 test -z "$system_name" && system_name="$cf_cv_system_name"
1085 test -n "$cf_cv_system_name" && echo "$as_me:1085: result: Configuring for $cf_cv_system_name" >&5
1086 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1088 if test ".$system_name" != ".$cf_cv_system_name" ; then
1089 echo "$as_me:1089: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1090 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1091 { { echo "$as_me:1091: error: \"Please remove config.cache and try again.\"" >&5
1092 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1093 { (exit 1); exit 1; }; }
1096 test "$program_prefix" != NONE &&
1097 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1098 # Use a double $ so make ignores it.
1099 test "$program_suffix" != NONE &&
1100 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1101 # Double any \ or $. echo might interpret backslashes.
1102 # By default was `s,x,x', remove it if useless.
1103 cat <<\_ACEOF >conftest.sed
1104 s/[\\$]/&&/g;s/;s,x,x,$//
1106 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1109 echo "$as_me:1109: checking whether ${MAKE-make} sets \${MAKE}" >&5
1110 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1111 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1112 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1113 echo $ECHO_N "(cached) $ECHO_C" >&6
1115 cat >conftest.make <<\EOF
1117 @echo 'ac_maketemp="${MAKE}"'
1119 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1120 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1121 if test -n "$ac_maketemp"; then
1122 eval ac_cv_prog_make_${ac_make}_set=yes
1124 eval ac_cv_prog_make_${ac_make}_set=no
1128 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1129 echo "$as_me:1129: result: yes" >&5
1130 echo "${ECHO_T}yes" >&6
1133 echo "$as_me:1133: result: no" >&5
1134 echo "${ECHO_T}no" >&6
1135 SET_MAKE="MAKE=${MAKE-make}"
1139 ac_cpp='$CPP $CPPFLAGS'
1140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1143 ac_main_return=return
1144 if test -n "$ac_tool_prefix"; then
1145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1146 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1147 echo "$as_me:1147: checking for $ac_word" >&5
1148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1149 if test "${ac_cv_prog_CC+set}" = set; then
1150 echo $ECHO_N "(cached) $ECHO_C" >&6
1152 if test -n "$CC"; then
1153 ac_cv_prog_CC="$CC" # Let the user override the test.
1155 ac_save_IFS=$IFS; IFS=$ac_path_separator
1157 for ac_dir in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir=.
1160 $as_executable_p "$ac_dir/$ac_word" || continue
1161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1162 echo "$as_me:1162: found $ac_dir/$ac_word" >&5
1169 if test -n "$CC"; then
1170 echo "$as_me:1170: result: $CC" >&5
1171 echo "${ECHO_T}$CC" >&6
1173 echo "$as_me:1173: result: no" >&5
1174 echo "${ECHO_T}no" >&6
1178 if test -z "$ac_cv_prog_CC"; then
1180 # Extract the first word of "gcc", so it can be a program name with args.
1181 set dummy gcc; ac_word=$2
1182 echo "$as_me:1182: checking for $ac_word" >&5
1183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1185 echo $ECHO_N "(cached) $ECHO_C" >&6
1187 if test -n "$ac_ct_CC"; then
1188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1190 ac_save_IFS=$IFS; IFS=$ac_path_separator
1192 for ac_dir in $ac_dummy; do
1194 test -z "$ac_dir" && ac_dir=.
1195 $as_executable_p "$ac_dir/$ac_word" || continue
1196 ac_cv_prog_ac_ct_CC="gcc"
1197 echo "$as_me:1197: found $ac_dir/$ac_word" >&5
1203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1204 if test -n "$ac_ct_CC"; then
1205 echo "$as_me:1205: result: $ac_ct_CC" >&5
1206 echo "${ECHO_T}$ac_ct_CC" >&6
1208 echo "$as_me:1208: result: no" >&5
1209 echo "${ECHO_T}no" >&6
1217 if test -z "$CC"; then
1218 if test -n "$ac_tool_prefix"; then
1219 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1220 set dummy ${ac_tool_prefix}cc; ac_word=$2
1221 echo "$as_me:1221: checking for $ac_word" >&5
1222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1223 if test "${ac_cv_prog_CC+set}" = set; then
1224 echo $ECHO_N "(cached) $ECHO_C" >&6
1226 if test -n "$CC"; then
1227 ac_cv_prog_CC="$CC" # Let the user override the test.
1229 ac_save_IFS=$IFS; IFS=$ac_path_separator
1231 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 $as_executable_p "$ac_dir/$ac_word" || continue
1235 ac_cv_prog_CC="${ac_tool_prefix}cc"
1236 echo "$as_me:1236: found $ac_dir/$ac_word" >&5
1243 if test -n "$CC"; then
1244 echo "$as_me:1244: result: $CC" >&5
1245 echo "${ECHO_T}$CC" >&6
1247 echo "$as_me:1247: result: no" >&5
1248 echo "${ECHO_T}no" >&6
1252 if test -z "$ac_cv_prog_CC"; then
1254 # Extract the first word of "cc", so it can be a program name with args.
1255 set dummy cc; ac_word=$2
1256 echo "$as_me:1256: checking for $ac_word" >&5
1257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1259 echo $ECHO_N "(cached) $ECHO_C" >&6
1261 if test -n "$ac_ct_CC"; then
1262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1264 ac_save_IFS=$IFS; IFS=$ac_path_separator
1266 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 $as_executable_p "$ac_dir/$ac_word" || continue
1270 ac_cv_prog_ac_ct_CC="cc"
1271 echo "$as_me:1271: found $ac_dir/$ac_word" >&5
1277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1278 if test -n "$ac_ct_CC"; then
1279 echo "$as_me:1279: result: $ac_ct_CC" >&5
1280 echo "${ECHO_T}$ac_ct_CC" >&6
1282 echo "$as_me:1282: result: no" >&5
1283 echo "${ECHO_T}no" >&6
1292 if test -z "$CC"; then
1293 # Extract the first word of "cc", so it can be a program name with args.
1294 set dummy cc; ac_word=$2
1295 echo "$as_me:1295: checking for $ac_word" >&5
1296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1297 if test "${ac_cv_prog_CC+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 if test -n "$CC"; then
1301 ac_cv_prog_CC="$CC" # Let the user override the test.
1304 ac_save_IFS=$IFS; IFS=$ac_path_separator
1306 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 $as_executable_p "$ac_dir/$ac_word" || continue
1310 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1311 ac_prog_rejected=yes
1315 echo "$as_me:1315: found $ac_dir/$ac_word" >&5
1319 if test $ac_prog_rejected = yes; then
1320 # We found a bogon in the path, so make sure we never use it.
1321 set dummy $ac_cv_prog_CC
1323 if test $# != 0; then
1324 # We chose a different compiler from the bogus one.
1325 # However, it has the same basename, so the bogon will be chosen
1326 # first if we set CC to just the basename; use the full file name.
1328 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1336 if test -n "$CC"; then
1337 echo "$as_me:1337: result: $CC" >&5
1338 echo "${ECHO_T}$CC" >&6
1340 echo "$as_me:1340: result: no" >&5
1341 echo "${ECHO_T}no" >&6
1345 if test -z "$CC"; then
1346 if test -n "$ac_tool_prefix"; then
1349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1351 echo "$as_me:1351: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_CC+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 if test -n "$CC"; then
1357 ac_cv_prog_CC="$CC" # Let the user override the test.
1359 ac_save_IFS=$IFS; IFS=$ac_path_separator
1361 for ac_dir in $ac_dummy; do
1363 test -z "$ac_dir" && ac_dir=.
1364 $as_executable_p "$ac_dir/$ac_word" || continue
1365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1366 echo "$as_me:1366: found $ac_dir/$ac_word" >&5
1373 if test -n "$CC"; then
1374 echo "$as_me:1374: result: $CC" >&5
1375 echo "${ECHO_T}$CC" >&6
1377 echo "$as_me:1377: result: no" >&5
1378 echo "${ECHO_T}no" >&6
1381 test -n "$CC" && break
1384 if test -z "$CC"; then
1388 # Extract the first word of "$ac_prog", so it can be a program name with args.
1389 set dummy $ac_prog; ac_word=$2
1390 echo "$as_me:1390: checking for $ac_word" >&5
1391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 if test -n "$ac_ct_CC"; then
1396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1398 ac_save_IFS=$IFS; IFS=$ac_path_separator
1400 for ac_dir in $ac_dummy; do
1402 test -z "$ac_dir" && ac_dir=.
1403 $as_executable_p "$ac_dir/$ac_word" || continue
1404 ac_cv_prog_ac_ct_CC="$ac_prog"
1405 echo "$as_me:1405: found $ac_dir/$ac_word" >&5
1411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1412 if test -n "$ac_ct_CC"; then
1413 echo "$as_me:1413: result: $ac_ct_CC" >&5
1414 echo "${ECHO_T}$ac_ct_CC" >&6
1416 echo "$as_me:1416: result: no" >&5
1417 echo "${ECHO_T}no" >&6
1420 test -n "$ac_ct_CC" && break
1428 test -z "$CC" && { { echo "$as_me:1428: error: no acceptable cc found in \$PATH" >&5
1429 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1430 { (exit 1); exit 1; }; }
1432 # Provide some information about the compiler.
1433 echo "$as_me:1433:" \
1434 "checking for C compiler version" >&5
1435 ac_compiler=`set X $ac_compile; echo $2`
1436 { (eval echo "$as_me:1436: \"$ac_compiler --version </dev/null >&5\"") >&5
1437 (eval $ac_compiler --version </dev/null >&5) 2>&5
1439 echo "$as_me:1439: \$? = $ac_status" >&5
1440 (exit $ac_status); }
1441 { (eval echo "$as_me:1441: \"$ac_compiler -v </dev/null >&5\"") >&5
1442 (eval $ac_compiler -v </dev/null >&5) 2>&5
1444 echo "$as_me:1444: \$? = $ac_status" >&5
1445 (exit $ac_status); }
1446 { (eval echo "$as_me:1446: \"$ac_compiler -V </dev/null >&5\"") >&5
1447 (eval $ac_compiler -V </dev/null >&5) 2>&5
1449 echo "$as_me:1449: \$? = $ac_status" >&5
1450 (exit $ac_status); }
1452 cat >conftest.$ac_ext <<_ACEOF
1453 #line 1453 "configure"
1454 #include "confdefs.h"
1464 ac_clean_files_save=$ac_clean_files
1465 ac_clean_files="$ac_clean_files a.out a.exe"
1466 # Try to create an executable without -o first, disregard a.out.
1467 # It will help us diagnose broken compilers, and finding out an intuition
1469 echo "$as_me:1469: checking for C compiler default output" >&5
1470 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1471 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1472 if { (eval echo "$as_me:1472: \"$ac_link_default\"") >&5
1473 (eval $ac_link_default) 2>&5
1475 echo "$as_me:1475: \$? = $ac_status" >&5
1476 (exit $ac_status); }; then
1477 # Find the output, starting from the most likely. This scheme is
1478 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1480 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1481 ls a.out conftest 2>/dev/null;
1482 ls a.* conftest.* 2>/dev/null`; do
1484 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1485 a.out ) # We found the default executable, but exeext='' is most
1488 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1489 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1496 echo "$as_me: failed program was:" >&5
1497 cat conftest.$ac_ext >&5
1498 { { echo "$as_me:1498: error: C compiler cannot create executables" >&5
1499 echo "$as_me: error: C compiler cannot create executables" >&2;}
1500 { (exit 77); exit 77; }; }
1503 ac_exeext=$ac_cv_exeext
1504 echo "$as_me:1504: result: $ac_file" >&5
1505 echo "${ECHO_T}$ac_file" >&6
1507 # Check the compiler produces executables we can run. If not, either
1508 # the compiler is broken, or we cross compile.
1509 echo "$as_me:1509: checking whether the C compiler works" >&5
1510 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1511 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1512 # If not cross compiling, check that we can run a simple program.
1513 if test "$cross_compiling" != yes; then
1514 if { ac_try='./$ac_file'
1515 { (eval echo "$as_me:1515: \"$ac_try\"") >&5
1518 echo "$as_me:1518: \$? = $ac_status" >&5
1519 (exit $ac_status); }; }; then
1522 if test "$cross_compiling" = maybe; then
1525 { { echo "$as_me:1525: error: cannot run C compiled programs.
1526 If you meant to cross compile, use \`--host'." >&5
1527 echo "$as_me: error: cannot run C compiled programs.
1528 If you meant to cross compile, use \`--host'." >&2;}
1529 { (exit 1); exit 1; }; }
1533 echo "$as_me:1533: result: yes" >&5
1534 echo "${ECHO_T}yes" >&6
1536 rm -f a.out a.exe conftest$ac_cv_exeext
1537 ac_clean_files=$ac_clean_files_save
1538 # Check the compiler produces executables we can run. If not, either
1539 # the compiler is broken, or we cross compile.
1540 echo "$as_me:1540: checking whether we are cross compiling" >&5
1541 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1542 echo "$as_me:1542: result: $cross_compiling" >&5
1543 echo "${ECHO_T}$cross_compiling" >&6
1545 echo "$as_me:1545: checking for executable suffix" >&5
1546 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1547 if { (eval echo "$as_me:1547: \"$ac_link\"") >&5
1548 (eval $ac_link) 2>&5
1550 echo "$as_me:1550: \$? = $ac_status" >&5
1551 (exit $ac_status); }; then
1552 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1553 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1554 # work properly (i.e., refer to `conftest.exe'), while it won't with
1556 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1558 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1559 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1566 { { echo "$as_me:1566: error: cannot compute EXEEXT: cannot compile and link" >&5
1567 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1568 { (exit 1); exit 1; }; }
1571 rm -f conftest$ac_cv_exeext
1572 echo "$as_me:1572: result: $ac_cv_exeext" >&5
1573 echo "${ECHO_T}$ac_cv_exeext" >&6
1575 rm -f conftest.$ac_ext
1576 EXEEXT=$ac_cv_exeext
1578 echo "$as_me:1578: checking for object suffix" >&5
1579 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1580 if test "${ac_cv_objext+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 cat >conftest.$ac_ext <<_ACEOF
1584 #line 1584 "configure"
1585 #include "confdefs.h"
1595 rm -f conftest.o conftest.obj
1596 if { (eval echo "$as_me:1596: \"$ac_compile\"") >&5
1597 (eval $ac_compile) 2>&5
1599 echo "$as_me:1599: \$? = $ac_status" >&5
1600 (exit $ac_status); }; then
1601 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1603 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1604 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1609 echo "$as_me: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1611 { { echo "$as_me:1611: error: cannot compute OBJEXT: cannot compile" >&5
1612 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1613 { (exit 1); exit 1; }; }
1616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1618 echo "$as_me:1618: result: $ac_cv_objext" >&5
1619 echo "${ECHO_T}$ac_cv_objext" >&6
1620 OBJEXT=$ac_cv_objext
1622 echo "$as_me:1622: checking whether we are using the GNU C compiler" >&5
1623 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1624 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 cat >conftest.$ac_ext <<_ACEOF
1628 #line 1628 "configure"
1629 #include "confdefs.h"
1642 rm -f conftest.$ac_objext
1643 if { (eval echo "$as_me:1643: \"$ac_compile\"") >&5
1644 (eval $ac_compile) 2>&5
1646 echo "$as_me:1646: \$? = $ac_status" >&5
1647 (exit $ac_status); } &&
1648 { ac_try='test -s conftest.$ac_objext'
1649 { (eval echo "$as_me:1649: \"$ac_try\"") >&5
1652 echo "$as_me:1652: \$? = $ac_status" >&5
1653 (exit $ac_status); }; }; then
1656 echo "$as_me: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1660 rm -f conftest.$ac_objext conftest.$ac_ext
1661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1664 echo "$as_me:1664: result: $ac_cv_c_compiler_gnu" >&5
1665 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1666 GCC=`test $ac_compiler_gnu = yes && echo yes`
1667 ac_test_CFLAGS=${CFLAGS+set}
1668 ac_save_CFLAGS=$CFLAGS
1670 echo "$as_me:1670: checking whether $CC accepts -g" >&5
1671 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1672 if test "${ac_cv_prog_cc_g+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 cat >conftest.$ac_ext <<_ACEOF
1676 #line 1676 "configure"
1677 #include "confdefs.h"
1687 rm -f conftest.$ac_objext
1688 if { (eval echo "$as_me:1688: \"$ac_compile\"") >&5
1689 (eval $ac_compile) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); } &&
1693 { ac_try='test -s conftest.$ac_objext'
1694 { (eval echo "$as_me:1694: \"$ac_try\"") >&5
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); }; }; then
1701 echo "$as_me: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1705 rm -f conftest.$ac_objext conftest.$ac_ext
1707 echo "$as_me:1707: result: $ac_cv_prog_cc_g" >&5
1708 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1709 if test "$ac_test_CFLAGS" = set; then
1710 CFLAGS=$ac_save_CFLAGS
1711 elif test $ac_cv_prog_cc_g = yes; then
1712 if test "$GCC" = yes; then
1718 if test "$GCC" = yes; then
1724 # Some people use a C++ compiler to compile C. Since we use `exit',
1725 # in C++ we need to declare it. In case someone uses the same compiler
1726 # for both compiling C and C++ we need to have the C++ compiler decide
1727 # the declaration of exit, since it's the most demanding environment.
1728 cat >conftest.$ac_ext <<_ACEOF
1733 rm -f conftest.$ac_objext
1734 if { (eval echo "$as_me:1734: \"$ac_compile\"") >&5
1735 (eval $ac_compile) 2>&5
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit $ac_status); } &&
1739 { ac_try='test -s conftest.$ac_objext'
1740 { (eval echo "$as_me:1740: \"$ac_try\"") >&5
1743 echo "$as_me:1743: \$? = $ac_status" >&5
1744 (exit $ac_status); }; }; then
1745 for ac_declaration in \
1747 '#include <stdlib.h>' \
1748 'extern "C" void std::exit (int) throw (); using std::exit;' \
1749 'extern "C" void std::exit (int); using std::exit;' \
1750 'extern "C" void exit (int) throw ();' \
1751 'extern "C" void exit (int);' \
1754 cat >conftest.$ac_ext <<_ACEOF
1755 #line 1755 "configure"
1756 #include "confdefs.h"
1767 rm -f conftest.$ac_objext
1768 if { (eval echo "$as_me:1768: \"$ac_compile\"") >&5
1769 (eval $ac_compile) 2>&5
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); } &&
1773 { ac_try='test -s conftest.$ac_objext'
1774 { (eval echo "$as_me:1774: \"$ac_try\"") >&5
1777 echo "$as_me:1777: \$? = $ac_status" >&5
1778 (exit $ac_status); }; }; then
1781 echo "$as_me: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1785 rm -f conftest.$ac_objext conftest.$ac_ext
1786 cat >conftest.$ac_ext <<_ACEOF
1787 #line 1787 "configure"
1788 #include "confdefs.h"
1798 rm -f conftest.$ac_objext
1799 if { (eval echo "$as_me:1799: \"$ac_compile\"") >&5
1800 (eval $ac_compile) 2>&5
1802 echo "$as_me:1802: \$? = $ac_status" >&5
1803 (exit $ac_status); } &&
1804 { ac_try='test -s conftest.$ac_objext'
1805 { (eval echo "$as_me:1805: \"$ac_try\"") >&5
1808 echo "$as_me:1808: \$? = $ac_status" >&5
1809 (exit $ac_status); }; }; then
1812 echo "$as_me: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1815 rm -f conftest.$ac_objext conftest.$ac_ext
1818 if test -n "$ac_declaration"; then
1819 echo '#ifdef __cplusplus' >>confdefs.h
1820 echo $ac_declaration >>confdefs.h
1821 echo '#endif' >>confdefs.h
1825 echo "$as_me: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1828 rm -f conftest.$ac_objext conftest.$ac_ext
1830 ac_cpp='$CPP $CPPFLAGS'
1831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834 ac_main_return=return
1837 if test "$GCC" = yes ; then
1838 echo "$as_me:1838: checking version of $CC" >&5
1839 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1840 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1841 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1842 echo "$as_me:1842: result: $GCC_VERSION" >&5
1843 echo "${ECHO_T}$GCC_VERSION" >&6
1846 echo "$as_me:1846: checking for $CC option to accept ANSI C" >&5
1847 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1848 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 ac_cv_prog_cc_stdc=no
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line 1854 "configure"
1855 #include "confdefs.h"
1858 #include <sys/types.h>
1859 #include <sys/stat.h>
1860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1861 struct buf { int x; };
1862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1863 static char *e (p, i)
1869 static char *f (char * (*g) (char **, int), char **p, ...)
1874 s = g (p, va_arg (v,int));
1878 int test (int i, double x);
1879 struct s1 {int (*f) (int a);};
1880 struct s2 {int (*f) (double a);};
1881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1892 # Don't try gcc -ansi; that turns off useful extensions and
1893 # breaks some systems' header files.
1894 # AIX -qlanglvl=ansi
1895 # Ultrix and OSF/1 -std1
1896 # HP-UX 10.20 and later -Ae
1897 # HP-UX older versions -Aa -D_HPUX_SOURCE
1898 # SVR4 -Xc -D__EXTENSIONS__
1899 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1901 CC="$ac_save_CC $ac_arg"
1902 rm -f conftest.$ac_objext
1903 if { (eval echo "$as_me:1903: \"$ac_compile\"") >&5
1904 (eval $ac_compile) 2>&5
1906 echo "$as_me:1906: \$? = $ac_status" >&5
1907 (exit $ac_status); } &&
1908 { ac_try='test -s conftest.$ac_objext'
1909 { (eval echo "$as_me:1909: \"$ac_try\"") >&5
1912 echo "$as_me:1912: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1914 ac_cv_prog_cc_stdc=$ac_arg
1917 echo "$as_me: failed program was:" >&5
1918 cat conftest.$ac_ext >&5
1920 rm -f conftest.$ac_objext
1922 rm -f conftest.$ac_ext conftest.$ac_objext
1927 case "x$ac_cv_prog_cc_stdc" in
1929 echo "$as_me:1929: result: none needed" >&5
1930 echo "${ECHO_T}none needed" >&6 ;;
1932 echo "$as_me:1932: result: $ac_cv_prog_cc_stdc" >&5
1933 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1934 CC="$CC $ac_cv_prog_cc_stdc" ;;
1937 # This should have been defined by AC_PROG_CC
1940 echo "$as_me:1940: checking \$CC variable" >&5
1941 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1944 echo "$as_me:1944: result: broken" >&5
1945 echo "${ECHO_T}broken" >&6
1946 { echo "$as_me:1946: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1947 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1949 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
1950 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
1952 for cf_arg in $cf_flags
1960 cf_new_extra_cppflags=
1962 for cf_add_cflags in $cf_arg
1964 case $cf_fix_cppflags in
1966 case $cf_add_cflags in
1967 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1968 case $cf_add_cflags in
1970 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1972 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1973 && test -z "${cf_tst_cflags}" \
1974 && cf_fix_cppflags=yes
1976 if test $cf_fix_cppflags = yes ; then
1978 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1979 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1982 elif test "${cf_tst_cflags}" = "\"'" ; then
1984 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1985 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1995 case $cf_add_cflags in
1997 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1999 CPPFLAGS=`echo "$CPPFLAGS" | \
2000 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2001 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2006 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2007 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2014 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2015 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2022 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2023 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2025 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2027 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2028 && test -z "${cf_tst_cflags}" \
2029 && cf_fix_cppflags=no
2034 if test -n "$cf_new_cflags" ; then
2036 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2037 CFLAGS="${CFLAGS}$cf_new_cflags"
2041 if test -n "$cf_new_cppflags" ; then
2043 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2044 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2048 if test -n "$cf_new_extra_cppflags" ; then
2050 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2051 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2061 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2063 echo "${as_me:-configure}:2063: testing resulting CC: '$CC' ..." 1>&5
2065 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2067 echo "${as_me:-configure}:2067: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2069 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2071 echo "${as_me:-configure}:2071: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2075 echo "$as_me:2075: result: ok" >&5
2076 echo "${ECHO_T}ok" >&6
2080 echo "$as_me:2080: checking for inline" >&5
2081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2082 if test "${ac_cv_c_inline+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 for ac_kw in inline __inline__ __inline; do
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line 2088 "configure"
2089 #include "confdefs.h"
2091 static $ac_kw int static_foo () {return 0; }
2092 $ac_kw int foo () {return 0; }
2096 rm -f conftest.$ac_objext
2097 if { (eval echo "$as_me:2097: \"$ac_compile\"") >&5
2098 (eval $ac_compile) 2>&5
2100 echo "$as_me:2100: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try='test -s conftest.$ac_objext'
2103 { (eval echo "$as_me:2103: \"$ac_try\"") >&5
2106 echo "$as_me:2106: \$? = $ac_status" >&5
2107 (exit $ac_status); }; }; then
2108 ac_cv_c_inline=$ac_kw; break
2110 echo "$as_me: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2117 echo "$as_me:2117: result: $ac_cv_c_inline" >&5
2118 echo "${ECHO_T}$ac_cv_c_inline" >&6
2119 case $ac_cv_c_inline in
2122 cat >>confdefs.h <<\EOF
2126 *) cat >>confdefs.h <<EOF
2127 #define inline $ac_cv_c_inline
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137 ac_main_return=return
2138 echo "$as_me:2138: checking how to run the C preprocessor" >&5
2139 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2140 # On Suns, sometimes $CPP names a directory.
2141 if test -n "$CPP" && test -d "$CPP"; then
2144 if test -z "$CPP"; then
2145 if test "${ac_cv_prog_CPP+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 # Double quotes because CPP needs to be expanded
2149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2152 for ac_c_preproc_warn_flag in '' yes
2154 # Use a header file that comes with gcc, so configuring glibc
2155 # with a fresh cross-compiler works.
2156 # On the NeXT, cc -E runs the code through the compiler's parser,
2157 # not just through cpp. "Syntax error" is here to catch this case.
2158 cat >conftest.$ac_ext <<_ACEOF
2159 #line 2159 "configure"
2160 #include "confdefs.h"
2164 if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
2165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167 egrep -v '^ *\+' conftest.er1 >conftest.err
2169 cat conftest.err >&5
2170 echo "$as_me:2170: \$? = $ac_status" >&5
2171 (exit $ac_status); } >/dev/null; then
2172 if test -s conftest.err; then
2173 ac_cpp_err=$ac_c_preproc_warn_flag
2180 if test -z "$ac_cpp_err"; then
2183 echo "$as_me: failed program was:" >&5
2184 cat conftest.$ac_ext >&5
2185 # Broken: fails on valid input.
2188 rm -f conftest.err conftest.$ac_ext
2190 # OK, works on sane cases. Now check whether non-existent headers
2191 # can be detected and how.
2192 cat >conftest.$ac_ext <<_ACEOF
2193 #line 2193 "configure"
2194 #include "confdefs.h"
2195 #include <ac_nonexistent.h>
2197 if { (eval echo "$as_me:2197: \"$ac_cpp conftest.$ac_ext\"") >&5
2198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200 egrep -v '^ *\+' conftest.er1 >conftest.err
2202 cat conftest.err >&5
2203 echo "$as_me:2203: \$? = $ac_status" >&5
2204 (exit $ac_status); } >/dev/null; then
2205 if test -s conftest.err; then
2206 ac_cpp_err=$ac_c_preproc_warn_flag
2213 if test -z "$ac_cpp_err"; then
2214 # Broken: success on invalid input.
2217 echo "$as_me: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2219 # Passes both tests.
2223 rm -f conftest.err conftest.$ac_ext
2226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2227 rm -f conftest.err conftest.$ac_ext
2228 if $ac_preproc_ok; then
2240 echo "$as_me:2240: result: $CPP" >&5
2241 echo "${ECHO_T}$CPP" >&6
2243 for ac_c_preproc_warn_flag in '' yes
2245 # Use a header file that comes with gcc, so configuring glibc
2246 # with a fresh cross-compiler works.
2247 # On the NeXT, cc -E runs the code through the compiler's parser,
2248 # not just through cpp. "Syntax error" is here to catch this case.
2249 cat >conftest.$ac_ext <<_ACEOF
2250 #line 2250 "configure"
2251 #include "confdefs.h"
2255 if { (eval echo "$as_me:2255: \"$ac_cpp conftest.$ac_ext\"") >&5
2256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2258 egrep -v '^ *\+' conftest.er1 >conftest.err
2260 cat conftest.err >&5
2261 echo "$as_me:2261: \$? = $ac_status" >&5
2262 (exit $ac_status); } >/dev/null; then
2263 if test -s conftest.err; then
2264 ac_cpp_err=$ac_c_preproc_warn_flag
2271 if test -z "$ac_cpp_err"; then
2274 echo "$as_me: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2276 # Broken: fails on valid input.
2279 rm -f conftest.err conftest.$ac_ext
2281 # OK, works on sane cases. Now check whether non-existent headers
2282 # can be detected and how.
2283 cat >conftest.$ac_ext <<_ACEOF
2284 #line 2284 "configure"
2285 #include "confdefs.h"
2286 #include <ac_nonexistent.h>
2288 if { (eval echo "$as_me:2288: \"$ac_cpp conftest.$ac_ext\"") >&5
2289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2291 egrep -v '^ *\+' conftest.er1 >conftest.err
2293 cat conftest.err >&5
2294 echo "$as_me:2294: \$? = $ac_status" >&5
2295 (exit $ac_status); } >/dev/null; then
2296 if test -s conftest.err; then
2297 ac_cpp_err=$ac_c_preproc_warn_flag
2304 if test -z "$ac_cpp_err"; then
2305 # Broken: success on invalid input.
2308 echo "$as_me: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2310 # Passes both tests.
2314 rm -f conftest.err conftest.$ac_ext
2317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2318 rm -f conftest.err conftest.$ac_ext
2319 if $ac_preproc_ok; then
2322 { { echo "$as_me:2322: error: C preprocessor \"$CPP\" fails sanity check" >&5
2323 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2324 { (exit 1); exit 1; }; }
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332 ac_main_return=return
2334 for ac_prog in mawk gawk nawk awk
2336 # Extract the first word of "$ac_prog", so it can be a program name with args.
2337 set dummy $ac_prog; ac_word=$2
2338 echo "$as_me:2338: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_AWK+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$AWK"; then
2344 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2346 ac_save_IFS=$IFS; IFS=$ac_path_separator
2348 for ac_dir in $ac_dummy; do
2350 test -z "$ac_dir" && ac_dir=.
2351 $as_executable_p "$ac_dir/$ac_word" || continue
2352 ac_cv_prog_AWK="$ac_prog"
2353 echo "$as_me:2353: found $ac_dir/$ac_word" >&5
2360 if test -n "$AWK"; then
2361 echo "$as_me:2361: result: $AWK" >&5
2362 echo "${ECHO_T}$AWK" >&6
2364 echo "$as_me:2364: result: no" >&5
2365 echo "${ECHO_T}no" >&6
2368 test -n "$AWK" && break
2371 # Find a good install program. We prefer a C program (faster),
2372 # so one script is as good as another. But avoid the broken or
2373 # incompatible versions:
2374 # SysV /etc/install, /usr/sbin/install
2375 # SunOS /usr/etc/install
2376 # IRIX /sbin/install
2378 # AmigaOS /C/install, which installs bootblocks on floppy discs
2379 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2380 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2381 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2382 # ./install, which can be erroneously created by make from ./install.sh.
2383 echo "$as_me:2383: checking for a BSD compatible install" >&5
2384 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2385 if test -z "$INSTALL"; then
2386 if test "${ac_cv_path_install+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 ac_save_IFS=$IFS; IFS=$ac_path_separator
2390 for ac_dir in $PATH; do
2392 # Account for people who put trailing slashes in PATH elements.
2394 / | ./ | .// | /cC/* \
2395 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2398 # OSF1 and SCO ODT 3.0 have their own names for install.
2399 # Don't use installbsd from OSF since it installs stuff as root
2401 for ac_prog in ginstall scoinst install; do
2402 if $as_executable_p "$ac_dir/$ac_prog"; then
2403 if test $ac_prog = install &&
2404 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2405 # AIX install. It has an incompatible calling convention.
2407 elif test $ac_prog = install &&
2408 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2409 # program-specific install script used by HP pwplus--don't use.
2412 ac_cv_path_install="$ac_dir/$ac_prog -c"
2422 if test "${ac_cv_path_install+set}" = set; then
2423 INSTALL=$ac_cv_path_install
2425 # As a last resort, use the slow shell script. We don't cache a
2426 # path for INSTALL within a source directory, because that will
2427 # break other packages using the cache if that directory is
2428 # removed, or if the path is relative.
2429 INSTALL=$ac_install_sh
2432 echo "$as_me:2432: result: $INSTALL" >&5
2433 echo "${ECHO_T}$INSTALL" >&6
2435 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2436 # It thinks the first close brace ends the variable substitution.
2437 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2439 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2441 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2447 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2448 test -z "$cf_dir" && cf_dir=.
2449 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2453 for ac_prog in lint cppcheck splint
2455 # Extract the first word of "$ac_prog", so it can be a program name with args.
2456 set dummy $ac_prog; ac_word=$2
2457 echo "$as_me:2457: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2459 if test "${ac_cv_prog_LINT+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 if test -n "$LINT"; then
2463 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2465 ac_save_IFS=$IFS; IFS=$ac_path_separator
2467 for ac_dir in $ac_dummy; do
2469 test -z "$ac_dir" && ac_dir=.
2470 $as_executable_p "$ac_dir/$ac_word" || continue
2471 ac_cv_prog_LINT="$ac_prog"
2472 echo "$as_me:2472: found $ac_dir/$ac_word" >&5
2478 LINT=$ac_cv_prog_LINT
2479 if test -n "$LINT"; then
2480 echo "$as_me:2480: result: $LINT" >&5
2481 echo "${ECHO_T}$LINT" >&6
2483 echo "$as_me:2483: result: no" >&5
2484 echo "${ECHO_T}no" >&6
2487 test -n "$LINT" && break
2490 echo "$as_me:2490: checking if filesystem supports mixed-case filenames" >&5
2491 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2492 if test "${cf_cv_mixedcase+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test "$cross_compiling" = yes ; then
2497 case $target_alias in
2498 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2506 rm -f conftest CONFTEST
2508 if test -f CONFTEST ; then
2513 rm -f conftest CONFTEST
2517 echo "$as_me:2517: result: $cf_cv_mixedcase" >&5
2518 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2519 test "$cf_cv_mixedcase" = yes &&
2520 cat >>confdefs.h <<\EOF
2521 #define MIXEDCASE_FILENAMES 1
2524 for ac_prog in exctags ctags
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527 set dummy $ac_prog; ac_word=$2
2528 echo "$as_me:2528: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_prog_CTAGS+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$CTAGS"; then
2534 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2536 ac_save_IFS=$IFS; IFS=$ac_path_separator
2538 for ac_dir in $ac_dummy; do
2540 test -z "$ac_dir" && ac_dir=.
2541 $as_executable_p "$ac_dir/$ac_word" || continue
2542 ac_cv_prog_CTAGS="$ac_prog"
2543 echo "$as_me:2543: found $ac_dir/$ac_word" >&5
2549 CTAGS=$ac_cv_prog_CTAGS
2550 if test -n "$CTAGS"; then
2551 echo "$as_me:2551: result: $CTAGS" >&5
2552 echo "${ECHO_T}$CTAGS" >&6
2554 echo "$as_me:2554: result: no" >&5
2555 echo "${ECHO_T}no" >&6
2558 test -n "$CTAGS" && break
2561 for ac_prog in exetags etags
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 echo "$as_me:2565: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2567 if test "${ac_cv_prog_ETAGS+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$ETAGS"; then
2571 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2573 ac_save_IFS=$IFS; IFS=$ac_path_separator
2575 for ac_dir in $ac_dummy; do
2577 test -z "$ac_dir" && ac_dir=.
2578 $as_executable_p "$ac_dir/$ac_word" || continue
2579 ac_cv_prog_ETAGS="$ac_prog"
2580 echo "$as_me:2580: found $ac_dir/$ac_word" >&5
2586 ETAGS=$ac_cv_prog_ETAGS
2587 if test -n "$ETAGS"; then
2588 echo "$as_me:2588: result: $ETAGS" >&5
2589 echo "${ECHO_T}$ETAGS" >&6
2591 echo "$as_me:2591: result: no" >&5
2592 echo "${ECHO_T}no" >&6
2595 test -n "$ETAGS" && break
2598 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2599 set dummy ${CTAGS:-ctags}; ac_word=$2
2600 echo "$as_me:2600: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2602 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 if test -n "$MAKE_LOWER_TAGS"; then
2606 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2608 ac_save_IFS=$IFS; IFS=$ac_path_separator
2610 for ac_dir in $ac_dummy; do
2612 test -z "$ac_dir" && ac_dir=.
2613 $as_executable_p "$ac_dir/$ac_word" || continue
2614 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2615 echo "$as_me:2615: found $ac_dir/$ac_word" >&5
2619 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2622 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2623 if test -n "$MAKE_LOWER_TAGS"; then
2624 echo "$as_me:2624: result: $MAKE_LOWER_TAGS" >&5
2625 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2627 echo "$as_me:2627: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2631 if test "$cf_cv_mixedcase" = yes ; then
2632 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2633 set dummy ${ETAGS:-etags}; ac_word=$2
2634 echo "$as_me:2634: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$MAKE_UPPER_TAGS"; then
2640 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2642 ac_save_IFS=$IFS; IFS=$ac_path_separator
2644 for ac_dir in $ac_dummy; do
2646 test -z "$ac_dir" && ac_dir=.
2647 $as_executable_p "$ac_dir/$ac_word" || continue
2648 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2649 echo "$as_me:2649: found $ac_dir/$ac_word" >&5
2653 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2656 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2657 if test -n "$MAKE_UPPER_TAGS"; then
2658 echo "$as_me:2658: result: $MAKE_UPPER_TAGS" >&5
2659 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2661 echo "$as_me:2661: result: no" >&5
2662 echo "${ECHO_T}no" >&6
2669 if test "$MAKE_UPPER_TAGS" = yes ; then
2675 if test "$MAKE_LOWER_TAGS" = yes ; then
2681 echo "$as_me:2681: checking if -lm needed for math functions" >&5
2682 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2683 if test "${cf_cv_need_libm+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 cat >conftest.$ac_ext <<_ACEOF
2688 #line 2688 "configure"
2689 #include "confdefs.h"
2698 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2703 rm -f conftest.$ac_objext conftest$ac_exeext
2704 if { (eval echo "$as_me:2704: \"$ac_link\"") >&5
2705 (eval $ac_link) 2>&5
2707 echo "$as_me:2707: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -s conftest$ac_exeext'
2710 { (eval echo "$as_me:2710: \"$ac_try\"") >&5
2713 echo "$as_me:2713: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2717 echo "$as_me: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2723 echo "$as_me:2723: result: $cf_cv_need_libm" >&5
2724 echo "${ECHO_T}$cf_cv_need_libm" >&6
2725 if test "$cf_cv_need_libm" = yes
2733 CC_SHARED_OPTS=unknown
2734 CPPFLAGS="$CPPFLAGS"
2736 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2737 DFT_UPR_MODEL="NORMAL"
2750 PACKAGE="ncurses-examples"
2756 TINFO_LIBS='$(LIBS_CURSES)'
2757 cf_cv_abi_version=""
2758 cf_cv_rel_version=""
2764 if test "$GCC" = yes
2766 cat > conftest.i <<EOF
2768 #define GCC_PRINTF 0
2773 #ifndef GCC_NORETURN
2774 #define GCC_NORETURN /* nothing */
2777 #define GCC_UNUSED /* nothing */
2780 if test "$GCC" = yes
2782 { echo "$as_me:2782: checking for $CC __attribute__ directives..." >&5
2783 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2785 "${as_me:-configure}"
2786 #include "confdefs.h"
2787 #include "conftest.h"
2788 #include "conftest.i"
2790 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2792 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2795 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2797 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2799 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2800 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2801 extern void foo(void) GCC_NORETURN;
2802 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2804 cf_printf_attribute=no
2805 cf_scanf_attribute=no
2806 for cf_attribute in scanf printf unused noreturn
2809 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2811 cf_directive="__attribute__(($cf_attribute))"
2812 echo "checking for $CC $cf_directive" 1>&5
2814 case $cf_attribute in
2816 cf_printf_attribute=yes
2817 cat >conftest.h <<EOF
2818 #define GCC_$cf_ATTRIBUTE 1
2822 cf_scanf_attribute=yes
2823 cat >conftest.h <<EOF
2824 #define GCC_$cf_ATTRIBUTE 1
2828 cat >conftest.h <<EOF
2829 #define GCC_$cf_ATTRIBUTE $cf_directive
2834 if { (eval echo "$as_me:2834: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>&5
2837 echo "$as_me:2837: \$? = $ac_status" >&5
2838 (exit $ac_status); }; then
2839 test -n "$verbose" && echo "$as_me:2839: result: ... $cf_attribute" >&5
2840 echo "${ECHO_T}... $cf_attribute" >&6
2841 cat conftest.h >>confdefs.h
2842 case $cf_attribute in
2845 cat >>confdefs.h <<EOF
2846 #define GCC_NORETURN $cf_directive
2851 cf_value='/* nothing */'
2852 if test "$cf_printf_attribute" != no ; then
2853 cf_value='__attribute__((format(printf,fmt,var)))'
2855 cat >>confdefs.h <<\EOF
2856 #define GCC_PRINTF 1
2861 cat >>confdefs.h <<EOF
2862 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2867 cf_value='/* nothing */'
2868 if test "$cf_scanf_attribute" != no ; then
2869 cf_value='__attribute__((format(scanf,fmt,var)))'
2871 cat >>confdefs.h <<\EOF
2877 cat >>confdefs.h <<EOF
2878 #define GCC_SCANFLIKE(fmt,var) $cf_value
2884 cat >>confdefs.h <<EOF
2885 #define GCC_UNUSED $cf_directive
2893 fgrep define conftest.i >>confdefs.h
2898 echo "$as_me:2898: checking if you want to work around bogus compiler/loader warnings" >&5
2899 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
2901 # Check whether --enable-string-hacks or --disable-string-hacks was given.
2902 if test "${enable_string_hacks+set}" = set; then
2903 enableval="$enable_string_hacks"
2904 with_string_hacks=$enableval
2906 with_string_hacks=no
2908 echo "$as_me:2908: result: $with_string_hacks" >&5
2909 echo "${ECHO_T}$with_string_hacks" >&6
2911 if test "x$with_string_hacks" = "xyes"; then
2913 cat >>confdefs.h <<\EOF
2914 #define USE_STRING_HACKS 1
2917 { echo "$as_me:2917: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
2918 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
2919 echo "$as_me:2919: checking for strlcat" >&5
2920 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
2921 if test "${ac_cv_func_strlcat+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 cat >conftest.$ac_ext <<_ACEOF
2925 #line 2925 "configure"
2926 #include "confdefs.h"
2927 /* System header to define __stub macros and hopefully few prototypes,
2928 which can conflict with char strlcat (); below. */
2930 /* Override any gcc2 internal prototype to avoid an error. */
2934 /* We use char because int might match the return type of a gcc2
2935 builtin and then its argument prototype would still apply. */
2942 /* The GNU C library defines this for functions which it implements
2943 to always fail with ENOSYS. Some functions are actually named
2944 something starting with __ and the normal name is an alias. */
2945 #if defined (__stub_strlcat) || defined (__stub___strlcat)
2948 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
2955 rm -f conftest.$ac_objext conftest$ac_exeext
2956 if { (eval echo "$as_me:2956: \"$ac_link\"") >&5
2957 (eval $ac_link) 2>&5
2959 echo "$as_me:2959: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -s conftest$ac_exeext'
2962 { (eval echo "$as_me:2962: \"$ac_try\"") >&5
2965 echo "$as_me:2965: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2967 ac_cv_func_strlcat=yes
2969 echo "$as_me: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2971 ac_cv_func_strlcat=no
2973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2975 echo "$as_me:2975: result: $ac_cv_func_strlcat" >&5
2976 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
2977 if test $ac_cv_func_strlcat = yes; then
2979 cat >>confdefs.h <<\EOF
2980 #define HAVE_STRLCAT 1
2985 echo "$as_me:2985: checking for strlcat in -lbsd" >&5
2986 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
2987 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 ac_check_lib_save_LIBS=$LIBS
2992 cat >conftest.$ac_ext <<_ACEOF
2993 #line 2993 "configure"
2994 #include "confdefs.h"
2996 /* Override any gcc2 internal prototype to avoid an error. */
3000 /* We use char because int might match the return type of a gcc2
3001 builtin and then its argument prototype would still apply. */
3011 rm -f conftest.$ac_objext conftest$ac_exeext
3012 if { (eval echo "$as_me:3012: \"$ac_link\"") >&5
3013 (eval $ac_link) 2>&5
3015 echo "$as_me:3015: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -s conftest$ac_exeext'
3018 { (eval echo "$as_me:3018: \"$ac_try\"") >&5
3021 echo "$as_me:3021: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3023 ac_cv_lib_bsd_strlcat=yes
3025 echo "$as_me: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3027 ac_cv_lib_bsd_strlcat=no
3029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3030 LIBS=$ac_check_lib_save_LIBS
3032 echo "$as_me:3032: result: $ac_cv_lib_bsd_strlcat" >&5
3033 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3034 if test $ac_cv_lib_bsd_strlcat = yes; then
3037 # Filter out duplicates - this happens with badly-designed ".pc" files...
3038 for cf_add_1lib in $LIBS
3040 for cf_add_2lib in $cf_add_libs
3042 if test "x$cf_add_1lib" = "x$cf_add_2lib"
3048 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
3052 for ac_header in bsd/string.h
3054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3055 echo "$as_me:3055: checking for $ac_header" >&5
3056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line 3061 "configure"
3062 #include "confdefs.h"
3063 #include <$ac_header>
3065 if { (eval echo "$as_me:3065: \"$ac_cpp conftest.$ac_ext\"") >&5
3066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068 egrep -v '^ *\+' conftest.er1 >conftest.err
3070 cat conftest.err >&5
3071 echo "$as_me:3071: \$? = $ac_status" >&5
3072 (exit $ac_status); } >/dev/null; then
3073 if test -s conftest.err; then
3074 ac_cpp_err=$ac_c_preproc_warn_flag
3081 if test -z "$ac_cpp_err"; then
3082 eval "$as_ac_Header=yes"
3084 echo "$as_me: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3086 eval "$as_ac_Header=no"
3088 rm -f conftest.err conftest.$ac_ext
3090 echo "$as_me:3090: result: `eval echo '${'$as_ac_Header'}'`" >&5
3091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3093 cat >>confdefs.h <<EOF
3094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3100 cat >>confdefs.h <<\EOF
3101 #define HAVE_STRLCAT 1
3108 for ac_func in strlcpy snprintf
3110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3111 echo "$as_me:3111: checking for $ac_func" >&5
3112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3113 if eval "test \"\${$as_ac_var+set}\" = set"; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 cat >conftest.$ac_ext <<_ACEOF
3117 #line 3117 "configure"
3118 #include "confdefs.h"
3119 /* System header to define __stub macros and hopefully few prototypes,
3120 which can conflict with char $ac_func (); below. */
3122 /* Override any gcc2 internal prototype to avoid an error. */
3126 /* We use char because int might match the return type of a gcc2
3127 builtin and then its argument prototype would still apply. */
3134 /* The GNU C library defines this for functions which it implements
3135 to always fail with ENOSYS. Some functions are actually named
3136 something starting with __ and the normal name is an alias. */
3137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3140 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3147 rm -f conftest.$ac_objext conftest$ac_exeext
3148 if { (eval echo "$as_me:3148: \"$ac_link\"") >&5
3149 (eval $ac_link) 2>&5
3151 echo "$as_me:3151: \$? = $ac_status" >&5
3152 (exit $ac_status); } &&
3153 { ac_try='test -s conftest$ac_exeext'
3154 { (eval echo "$as_me:3154: \"$ac_try\"") >&5
3157 echo "$as_me:3157: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 eval "$as_ac_var=yes"
3161 echo "$as_me: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3163 eval "$as_ac_var=no"
3165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3167 echo "$as_me:3167: result: `eval echo '${'$as_ac_var'}'`" >&5
3168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3169 if test `eval echo '${'$as_ac_var'}'` = yes; then
3170 cat >>confdefs.h <<EOF
3171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3180 cf_POSIX_C_SOURCE=199506L
3185 cf_xopen_source="-D_ALL_SOURCE"
3191 cf_xopen_source="-D_APPLE_C_SOURCE"
3194 cf_xopen_source="-D_DARWIN_C_SOURCE"
3197 (freebsd*|dragonfly*)
3198 # 5.x headers associate
3199 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3200 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3201 cf_POSIX_C_SOURCE=200112L
3203 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3206 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3209 cf_xopen_source="-D_HPUX_SOURCE"
3212 cf_xopen_source="-D_SGI_SOURCE"
3215 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3217 echo "$as_me:3217: checking if we must define _GNU_SOURCE" >&5
3218 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3219 if test "${cf_cv_gnu_source+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 cat >conftest.$ac_ext <<_ACEOF
3224 #line 3224 "configure"
3225 #include "confdefs.h"
3226 #include <sys/types.h>
3231 #ifndef _XOPEN_SOURCE
3238 rm -f conftest.$ac_objext
3239 if { (eval echo "$as_me:3239: \"$ac_compile\"") >&5
3240 (eval $ac_compile) 2>&5
3242 echo "$as_me:3242: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -s conftest.$ac_objext'
3245 { (eval echo "$as_me:3245: \"$ac_try\"") >&5
3248 echo "$as_me:3248: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3252 echo "$as_me: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3256 cat >conftest.$ac_ext <<_ACEOF
3257 #line 3257 "configure"
3258 #include "confdefs.h"
3259 #include <sys/types.h>
3264 #ifdef _XOPEN_SOURCE
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:3272: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>&5
3275 echo "$as_me:3275: \$? = $ac_status" >&5
3276 (exit $ac_status); } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:3278: \"$ac_try\"") >&5
3281 echo "$as_me:3281: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3285 echo "$as_me: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 cf_cv_gnu_source=yes
3289 rm -f conftest.$ac_objext conftest.$ac_ext
3293 rm -f conftest.$ac_objext conftest.$ac_ext
3296 echo "$as_me:3296: result: $cf_cv_gnu_source" >&5
3297 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3299 if test "$cf_cv_gnu_source" = yes
3301 echo "$as_me:3301: checking if we should also define _DEFAULT_SOURCE" >&5
3302 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3303 if test "${cf_cv_default_source+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3308 cat >conftest.$ac_ext <<_ACEOF
3309 #line 3309 "configure"
3310 #include "confdefs.h"
3311 #include <sys/types.h>
3316 #ifdef _DEFAULT_SOURCE
3323 rm -f conftest.$ac_objext
3324 if { (eval echo "$as_me:3324: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>&5
3327 echo "$as_me:3327: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -s conftest.$ac_objext'
3330 { (eval echo "$as_me:3330: \"$ac_try\"") >&5
3333 echo "$as_me:3333: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3335 cf_cv_default_source=no
3337 echo "$as_me: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 cf_cv_default_source=yes
3341 rm -f conftest.$ac_objext conftest.$ac_ext
3344 echo "$as_me:3344: result: $cf_cv_default_source" >&5
3345 echo "${ECHO_T}$cf_cv_default_source" >&6
3346 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
3351 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3354 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3357 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3359 cf_save_CFLAGS="$CFLAGS"
3360 cf_save_CPPFLAGS="$CPPFLAGS"
3362 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3363 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3364 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3366 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3367 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3368 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3370 echo "$as_me:3370: checking if we should define _POSIX_C_SOURCE" >&5
3371 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3372 if test "${cf_cv_posix_c_source+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 echo "${as_me:-configure}:3376: testing if the symbol is already defined go no further ..." 1>&5
3378 cat >conftest.$ac_ext <<_ACEOF
3379 #line 3379 "configure"
3380 #include "confdefs.h"
3381 #include <sys/types.h>
3386 #ifndef _POSIX_C_SOURCE
3393 rm -f conftest.$ac_objext
3394 if { (eval echo "$as_me:3394: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>&5
3397 echo "$as_me:3397: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try='test -s conftest.$ac_objext'
3400 { (eval echo "$as_me:3400: \"$ac_try\"") >&5
3403 echo "$as_me:3403: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 cf_cv_posix_c_source=no
3407 echo "$as_me: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3409 cf_want_posix_source=no
3410 case .$cf_POSIX_C_SOURCE in
3412 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3415 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3416 cf_want_posix_source=yes
3419 cf_want_posix_source=yes
3422 if test "$cf_want_posix_source" = yes ; then
3423 cat >conftest.$ac_ext <<_ACEOF
3424 #line 3424 "configure"
3425 #include "confdefs.h"
3426 #include <sys/types.h>
3431 #ifdef _POSIX_SOURCE
3438 rm -f conftest.$ac_objext
3439 if { (eval echo "$as_me:3439: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>&5
3442 echo "$as_me:3442: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try='test -s conftest.$ac_objext'
3445 { (eval echo "$as_me:3445: \"$ac_try\"") >&5
3448 echo "$as_me:3448: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3452 echo "$as_me: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3454 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3456 rm -f conftest.$ac_objext conftest.$ac_ext
3459 echo "${as_me:-configure}:3459: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3461 CFLAGS="$cf_trim_CFLAGS"
3462 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3464 echo "${as_me:-configure}:3464: testing if the second compile does not leave our definition intact error ..." 1>&5
3466 cat >conftest.$ac_ext <<_ACEOF
3467 #line 3467 "configure"
3468 #include "confdefs.h"
3469 #include <sys/types.h>
3474 #ifndef _POSIX_C_SOURCE
3481 rm -f conftest.$ac_objext
3482 if { (eval echo "$as_me:3482: \"$ac_compile\"") >&5
3483 (eval $ac_compile) 2>&5
3485 echo "$as_me:3485: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 { ac_try='test -s conftest.$ac_objext'
3488 { (eval echo "$as_me:3488: \"$ac_try\"") >&5
3491 echo "$as_me:3491: \$? = $ac_status" >&5
3492 (exit $ac_status); }; }; then
3495 echo "$as_me: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 cf_cv_posix_c_source=no
3499 rm -f conftest.$ac_objext conftest.$ac_ext
3500 CFLAGS="$cf_save_CFLAGS"
3501 CPPFLAGS="$cf_save_CPPFLAGS"
3504 rm -f conftest.$ac_objext conftest.$ac_ext
3507 echo "$as_me:3507: result: $cf_cv_posix_c_source" >&5
3508 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3510 if test "$cf_cv_posix_c_source" != no ; then
3511 CFLAGS="$cf_trim_CFLAGS"
3512 CPPFLAGS="$cf_trim_CPPFLAGS"
3517 cf_new_extra_cppflags=
3519 for cf_add_cflags in $cf_cv_posix_c_source
3521 case $cf_fix_cppflags in
3523 case $cf_add_cflags in
3524 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3525 case $cf_add_cflags in
3527 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3529 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3530 && test -z "${cf_tst_cflags}" \
3531 && cf_fix_cppflags=yes
3533 if test $cf_fix_cppflags = yes ; then
3535 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3536 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3539 elif test "${cf_tst_cflags}" = "\"'" ; then
3541 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3542 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3552 case $cf_add_cflags in
3554 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3556 CPPFLAGS=`echo "$CPPFLAGS" | \
3557 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3558 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3563 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3564 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3571 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3572 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3579 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3580 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3582 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3584 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3585 && test -z "${cf_tst_cflags}" \
3586 && cf_fix_cppflags=no
3591 if test -n "$cf_new_cflags" ; then
3593 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3594 CFLAGS="${CFLAGS}$cf_new_cflags"
3598 if test -n "$cf_new_cppflags" ; then
3600 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3601 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3605 if test -n "$cf_new_extra_cppflags" ; then
3607 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3608 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3616 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3619 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3620 cf_xopen_source="-D_BSD_SOURCE"
3624 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3627 cf_xopen_source="-D_OSF_SOURCE"
3630 cf_xopen_source="-D_QNX_SOURCE"
3633 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3636 cf_xopen_source="-D__EXTENSIONS__"
3637 cf_cv_xopen_source=broken
3639 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3645 echo "$as_me:3645: checking if we should define _XOPEN_SOURCE" >&5
3646 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3647 if test "${cf_cv_xopen_source+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 cat >conftest.$ac_ext <<_ACEOF
3652 #line 3652 "configure"
3653 #include "confdefs.h"
3657 #include <sys/types.h>
3663 #ifndef _XOPEN_SOURCE
3670 rm -f conftest.$ac_objext
3671 if { (eval echo "$as_me:3671: \"$ac_compile\"") >&5
3672 (eval $ac_compile) 2>&5
3674 echo "$as_me:3674: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:3677: \"$ac_try\"") >&5
3680 echo "$as_me:3680: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 cf_cv_xopen_source=no
3684 echo "$as_me: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3687 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3688 cat >conftest.$ac_ext <<_ACEOF
3689 #line 3689 "configure"
3690 #include "confdefs.h"
3694 #include <sys/types.h>
3700 #ifdef _XOPEN_SOURCE
3707 rm -f conftest.$ac_objext
3708 if { (eval echo "$as_me:3708: \"$ac_compile\"") >&5
3709 (eval $ac_compile) 2>&5
3711 echo "$as_me:3711: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -s conftest.$ac_objext'
3714 { (eval echo "$as_me:3714: \"$ac_try\"") >&5
3717 echo "$as_me:3717: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 cf_cv_xopen_source=no
3721 echo "$as_me: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3723 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3725 rm -f conftest.$ac_objext conftest.$ac_ext
3729 rm -f conftest.$ac_objext conftest.$ac_ext
3732 echo "$as_me:3732: result: $cf_cv_xopen_source" >&5
3733 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3735 if test "$cf_cv_xopen_source" != no ; then
3737 CFLAGS=`echo "$CFLAGS" | \
3738 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3739 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3741 CPPFLAGS=`echo "$CPPFLAGS" | \
3742 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3743 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3745 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3750 cf_new_extra_cppflags=
3752 for cf_add_cflags in $cf_temp_xopen_source
3754 case $cf_fix_cppflags in
3756 case $cf_add_cflags in
3757 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3758 case $cf_add_cflags in
3760 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3762 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3763 && test -z "${cf_tst_cflags}" \
3764 && cf_fix_cppflags=yes
3766 if test $cf_fix_cppflags = yes ; then
3768 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3769 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3772 elif test "${cf_tst_cflags}" = "\"'" ; then
3774 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3775 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3785 case $cf_add_cflags in
3787 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3789 CPPFLAGS=`echo "$CPPFLAGS" | \
3790 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3791 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3796 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3797 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3804 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3805 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3812 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3813 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3815 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3817 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3818 && test -z "${cf_tst_cflags}" \
3819 && cf_fix_cppflags=no
3824 if test -n "$cf_new_cflags" ; then
3826 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3827 CFLAGS="${CFLAGS}$cf_new_cflags"
3831 if test -n "$cf_new_cppflags" ; then
3833 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3834 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3838 if test -n "$cf_new_extra_cppflags" ; then
3840 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3841 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3847 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3849 cf_save_CFLAGS="$CFLAGS"
3850 cf_save_CPPFLAGS="$CPPFLAGS"
3852 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3853 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3854 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3856 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3857 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3858 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3860 echo "$as_me:3860: checking if we should define _POSIX_C_SOURCE" >&5
3861 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3862 if test "${cf_cv_posix_c_source+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 echo "${as_me:-configure}:3866: testing if the symbol is already defined go no further ..." 1>&5
3868 cat >conftest.$ac_ext <<_ACEOF
3869 #line 3869 "configure"
3870 #include "confdefs.h"
3871 #include <sys/types.h>
3876 #ifndef _POSIX_C_SOURCE
3883 rm -f conftest.$ac_objext
3884 if { (eval echo "$as_me:3884: \"$ac_compile\"") >&5
3885 (eval $ac_compile) 2>&5
3887 echo "$as_me:3887: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try='test -s conftest.$ac_objext'
3890 { (eval echo "$as_me:3890: \"$ac_try\"") >&5
3893 echo "$as_me:3893: \$? = $ac_status" >&5
3894 (exit $ac_status); }; }; then
3895 cf_cv_posix_c_source=no
3897 echo "$as_me: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3899 cf_want_posix_source=no
3900 case .$cf_POSIX_C_SOURCE in
3902 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3905 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3906 cf_want_posix_source=yes
3909 cf_want_posix_source=yes
3912 if test "$cf_want_posix_source" = yes ; then
3913 cat >conftest.$ac_ext <<_ACEOF
3914 #line 3914 "configure"
3915 #include "confdefs.h"
3916 #include <sys/types.h>
3921 #ifdef _POSIX_SOURCE
3928 rm -f conftest.$ac_objext
3929 if { (eval echo "$as_me:3929: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>&5
3932 echo "$as_me:3932: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -s conftest.$ac_objext'
3935 { (eval echo "$as_me:3935: \"$ac_try\"") >&5
3938 echo "$as_me:3938: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3942 echo "$as_me: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3944 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3946 rm -f conftest.$ac_objext conftest.$ac_ext
3949 echo "${as_me:-configure}:3949: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3951 CFLAGS="$cf_trim_CFLAGS"
3952 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3954 echo "${as_me:-configure}:3954: testing if the second compile does not leave our definition intact error ..." 1>&5
3956 cat >conftest.$ac_ext <<_ACEOF
3957 #line 3957 "configure"
3958 #include "confdefs.h"
3959 #include <sys/types.h>
3964 #ifndef _POSIX_C_SOURCE
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:3972: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>&5
3975 echo "$as_me:3975: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try='test -s conftest.$ac_objext'
3978 { (eval echo "$as_me:3978: \"$ac_try\"") >&5
3981 echo "$as_me:3981: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3985 echo "$as_me: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3987 cf_cv_posix_c_source=no
3989 rm -f conftest.$ac_objext conftest.$ac_ext
3990 CFLAGS="$cf_save_CFLAGS"
3991 CPPFLAGS="$cf_save_CPPFLAGS"
3994 rm -f conftest.$ac_objext conftest.$ac_ext
3997 echo "$as_me:3997: result: $cf_cv_posix_c_source" >&5
3998 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4000 if test "$cf_cv_posix_c_source" != no ; then
4001 CFLAGS="$cf_trim_CFLAGS"
4002 CPPFLAGS="$cf_trim_CPPFLAGS"