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
2081 ac_cpp='$CPP $CPPFLAGS'
2082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085 ac_main_return=return
2086 echo "$as_me:2086: checking how to run the C preprocessor" >&5
2087 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2088 # On Suns, sometimes $CPP names a directory.
2089 if test -n "$CPP" && test -d "$CPP"; then
2092 if test -z "$CPP"; then
2093 if test "${ac_cv_prog_CPP+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 # Double quotes because CPP needs to be expanded
2097 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2100 for ac_c_preproc_warn_flag in '' yes
2102 # Use a header file that comes with gcc, so configuring glibc
2103 # with a fresh cross-compiler works.
2104 # On the NeXT, cc -E runs the code through the compiler's parser,
2105 # not just through cpp. "Syntax error" is here to catch this case.
2106 cat >conftest.$ac_ext <<_ACEOF
2107 #line 2107 "configure"
2108 #include "confdefs.h"
2112 if { (eval echo "$as_me:2112: \"$ac_cpp conftest.$ac_ext\"") >&5
2113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2115 egrep -v '^ *\+' conftest.er1 >conftest.err
2117 cat conftest.err >&5
2118 echo "$as_me:2118: \$? = $ac_status" >&5
2119 (exit $ac_status); } >/dev/null; then
2120 if test -s conftest.err; then
2121 ac_cpp_err=$ac_c_preproc_warn_flag
2128 if test -z "$ac_cpp_err"; then
2131 echo "$as_me: failed program was:" >&5
2132 cat conftest.$ac_ext >&5
2133 # Broken: fails on valid input.
2136 rm -f conftest.err conftest.$ac_ext
2138 # OK, works on sane cases. Now check whether non-existent headers
2139 # can be detected and how.
2140 cat >conftest.$ac_ext <<_ACEOF
2141 #line 2141 "configure"
2142 #include "confdefs.h"
2143 #include <ac_nonexistent.h>
2145 if { (eval echo "$as_me:2145: \"$ac_cpp conftest.$ac_ext\"") >&5
2146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2148 egrep -v '^ *\+' conftest.er1 >conftest.err
2150 cat conftest.err >&5
2151 echo "$as_me:2151: \$? = $ac_status" >&5
2152 (exit $ac_status); } >/dev/null; then
2153 if test -s conftest.err; then
2154 ac_cpp_err=$ac_c_preproc_warn_flag
2161 if test -z "$ac_cpp_err"; then
2162 # Broken: success on invalid input.
2165 echo "$as_me: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2167 # Passes both tests.
2171 rm -f conftest.err conftest.$ac_ext
2174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2175 rm -f conftest.err conftest.$ac_ext
2176 if $ac_preproc_ok; then
2188 echo "$as_me:2188: result: $CPP" >&5
2189 echo "${ECHO_T}$CPP" >&6
2191 for ac_c_preproc_warn_flag in '' yes
2193 # Use a header file that comes with gcc, so configuring glibc
2194 # with a fresh cross-compiler works.
2195 # On the NeXT, cc -E runs the code through the compiler's parser,
2196 # not just through cpp. "Syntax error" is here to catch this case.
2197 cat >conftest.$ac_ext <<_ACEOF
2198 #line 2198 "configure"
2199 #include "confdefs.h"
2203 if { (eval echo "$as_me:2203: \"$ac_cpp conftest.$ac_ext\"") >&5
2204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2206 egrep -v '^ *\+' conftest.er1 >conftest.err
2208 cat conftest.err >&5
2209 echo "$as_me:2209: \$? = $ac_status" >&5
2210 (exit $ac_status); } >/dev/null; then
2211 if test -s conftest.err; then
2212 ac_cpp_err=$ac_c_preproc_warn_flag
2219 if test -z "$ac_cpp_err"; then
2222 echo "$as_me: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2224 # Broken: fails on valid input.
2227 rm -f conftest.err conftest.$ac_ext
2229 # OK, works on sane cases. Now check whether non-existent headers
2230 # can be detected and how.
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #line 2232 "configure"
2233 #include "confdefs.h"
2234 #include <ac_nonexistent.h>
2236 if { (eval echo "$as_me:2236: \"$ac_cpp conftest.$ac_ext\"") >&5
2237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2239 egrep -v '^ *\+' conftest.er1 >conftest.err
2241 cat conftest.err >&5
2242 echo "$as_me:2242: \$? = $ac_status" >&5
2243 (exit $ac_status); } >/dev/null; then
2244 if test -s conftest.err; then
2245 ac_cpp_err=$ac_c_preproc_warn_flag
2252 if test -z "$ac_cpp_err"; then
2253 # Broken: success on invalid input.
2256 echo "$as_me: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2258 # Passes both tests.
2262 rm -f conftest.err conftest.$ac_ext
2265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2266 rm -f conftest.err conftest.$ac_ext
2267 if $ac_preproc_ok; then
2270 { { echo "$as_me:2270: error: C preprocessor \"$CPP\" fails sanity check" >&5
2271 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2272 { (exit 1); exit 1; }; }
2276 ac_cpp='$CPP $CPPFLAGS'
2277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2280 ac_main_return=return
2282 for ac_prog in mawk gawk nawk awk
2284 # Extract the first word of "$ac_prog", so it can be a program name with args.
2285 set dummy $ac_prog; ac_word=$2
2286 echo "$as_me:2286: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288 if test "${ac_cv_prog_AWK+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 if test -n "$AWK"; then
2292 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2294 ac_save_IFS=$IFS; IFS=$ac_path_separator
2296 for ac_dir in $ac_dummy; do
2298 test -z "$ac_dir" && ac_dir=.
2299 $as_executable_p "$ac_dir/$ac_word" || continue
2300 ac_cv_prog_AWK="$ac_prog"
2301 echo "$as_me:2301: found $ac_dir/$ac_word" >&5
2308 if test -n "$AWK"; then
2309 echo "$as_me:2309: result: $AWK" >&5
2310 echo "${ECHO_T}$AWK" >&6
2312 echo "$as_me:2312: result: no" >&5
2313 echo "${ECHO_T}no" >&6
2316 test -n "$AWK" && break
2319 # Find a good install program. We prefer a C program (faster),
2320 # so one script is as good as another. But avoid the broken or
2321 # incompatible versions:
2322 # SysV /etc/install, /usr/sbin/install
2323 # SunOS /usr/etc/install
2324 # IRIX /sbin/install
2326 # AmigaOS /C/install, which installs bootblocks on floppy discs
2327 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2328 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2329 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2330 # ./install, which can be erroneously created by make from ./install.sh.
2331 echo "$as_me:2331: checking for a BSD compatible install" >&5
2332 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2333 if test -z "$INSTALL"; then
2334 if test "${ac_cv_path_install+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 ac_save_IFS=$IFS; IFS=$ac_path_separator
2338 for ac_dir in $PATH; do
2340 # Account for people who put trailing slashes in PATH elements.
2342 / | ./ | .// | /cC/* \
2343 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2346 # OSF1 and SCO ODT 3.0 have their own names for install.
2347 # Don't use installbsd from OSF since it installs stuff as root
2349 for ac_prog in ginstall scoinst install; do
2350 if $as_executable_p "$ac_dir/$ac_prog"; then
2351 if test $ac_prog = install &&
2352 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2353 # AIX install. It has an incompatible calling convention.
2355 elif test $ac_prog = install &&
2356 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2357 # program-specific install script used by HP pwplus--don't use.
2360 ac_cv_path_install="$ac_dir/$ac_prog -c"
2370 if test "${ac_cv_path_install+set}" = set; then
2371 INSTALL=$ac_cv_path_install
2373 # As a last resort, use the slow shell script. We don't cache a
2374 # path for INSTALL within a source directory, because that will
2375 # break other packages using the cache if that directory is
2376 # removed, or if the path is relative.
2377 INSTALL=$ac_install_sh
2380 echo "$as_me:2380: result: $INSTALL" >&5
2381 echo "${ECHO_T}$INSTALL" >&6
2383 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2384 # It thinks the first close brace ends the variable substitution.
2385 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2387 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2389 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2395 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2396 test -z "$cf_dir" && cf_dir=.
2397 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2401 for ac_prog in lint cppcheck splint
2403 # Extract the first word of "$ac_prog", so it can be a program name with args.
2404 set dummy $ac_prog; ac_word=$2
2405 echo "$as_me:2405: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407 if test "${ac_cv_prog_LINT+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$LINT"; then
2411 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2413 ac_save_IFS=$IFS; IFS=$ac_path_separator
2415 for ac_dir in $ac_dummy; do
2417 test -z "$ac_dir" && ac_dir=.
2418 $as_executable_p "$ac_dir/$ac_word" || continue
2419 ac_cv_prog_LINT="$ac_prog"
2420 echo "$as_me:2420: found $ac_dir/$ac_word" >&5
2426 LINT=$ac_cv_prog_LINT
2427 if test -n "$LINT"; then
2428 echo "$as_me:2428: result: $LINT" >&5
2429 echo "${ECHO_T}$LINT" >&6
2431 echo "$as_me:2431: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2435 test -n "$LINT" && break
2438 echo "$as_me:2438: checking if filesystem supports mixed-case filenames" >&5
2439 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2440 if test "${cf_cv_mixedcase+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 if test "$cross_compiling" = yes ; then
2445 case $target_alias in
2446 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2454 rm -f conftest CONFTEST
2456 if test -f CONFTEST ; then
2461 rm -f conftest CONFTEST
2465 echo "$as_me:2465: result: $cf_cv_mixedcase" >&5
2466 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2467 test "$cf_cv_mixedcase" = yes &&
2468 cat >>confdefs.h <<\EOF
2469 #define MIXEDCASE_FILENAMES 1
2472 for ac_prog in exctags ctags
2474 # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy $ac_prog; ac_word=$2
2476 echo "$as_me:2476: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2478 if test "${ac_cv_prog_CTAGS+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$CTAGS"; then
2482 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2484 ac_save_IFS=$IFS; IFS=$ac_path_separator
2486 for ac_dir in $ac_dummy; do
2488 test -z "$ac_dir" && ac_dir=.
2489 $as_executable_p "$ac_dir/$ac_word" || continue
2490 ac_cv_prog_CTAGS="$ac_prog"
2491 echo "$as_me:2491: found $ac_dir/$ac_word" >&5
2497 CTAGS=$ac_cv_prog_CTAGS
2498 if test -n "$CTAGS"; then
2499 echo "$as_me:2499: result: $CTAGS" >&5
2500 echo "${ECHO_T}$CTAGS" >&6
2502 echo "$as_me:2502: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2506 test -n "$CTAGS" && break
2509 for ac_prog in exetags etags
2511 # Extract the first word of "$ac_prog", so it can be a program name with args.
2512 set dummy $ac_prog; ac_word=$2
2513 echo "$as_me:2513: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2515 if test "${ac_cv_prog_ETAGS+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 if test -n "$ETAGS"; then
2519 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2521 ac_save_IFS=$IFS; IFS=$ac_path_separator
2523 for ac_dir in $ac_dummy; do
2525 test -z "$ac_dir" && ac_dir=.
2526 $as_executable_p "$ac_dir/$ac_word" || continue
2527 ac_cv_prog_ETAGS="$ac_prog"
2528 echo "$as_me:2528: found $ac_dir/$ac_word" >&5
2534 ETAGS=$ac_cv_prog_ETAGS
2535 if test -n "$ETAGS"; then
2536 echo "$as_me:2536: result: $ETAGS" >&5
2537 echo "${ECHO_T}$ETAGS" >&6
2539 echo "$as_me:2539: result: no" >&5
2540 echo "${ECHO_T}no" >&6
2543 test -n "$ETAGS" && break
2546 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2547 set dummy ${CTAGS:-ctags}; ac_word=$2
2548 echo "$as_me:2548: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2550 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 if test -n "$MAKE_LOWER_TAGS"; then
2554 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2556 ac_save_IFS=$IFS; IFS=$ac_path_separator
2558 for ac_dir in $ac_dummy; do
2560 test -z "$ac_dir" && ac_dir=.
2561 $as_executable_p "$ac_dir/$ac_word" || continue
2562 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2563 echo "$as_me:2563: found $ac_dir/$ac_word" >&5
2567 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2570 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2571 if test -n "$MAKE_LOWER_TAGS"; then
2572 echo "$as_me:2572: result: $MAKE_LOWER_TAGS" >&5
2573 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2575 echo "$as_me:2575: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2579 if test "$cf_cv_mixedcase" = yes ; then
2580 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2581 set dummy ${ETAGS:-etags}; ac_word=$2
2582 echo "$as_me:2582: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 if test -n "$MAKE_UPPER_TAGS"; then
2588 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2590 ac_save_IFS=$IFS; IFS=$ac_path_separator
2592 for ac_dir in $ac_dummy; do
2594 test -z "$ac_dir" && ac_dir=.
2595 $as_executable_p "$ac_dir/$ac_word" || continue
2596 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2597 echo "$as_me:2597: found $ac_dir/$ac_word" >&5
2601 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2604 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2605 if test -n "$MAKE_UPPER_TAGS"; then
2606 echo "$as_me:2606: result: $MAKE_UPPER_TAGS" >&5
2607 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2609 echo "$as_me:2609: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2617 if test "$MAKE_UPPER_TAGS" = yes ; then
2623 if test "$MAKE_LOWER_TAGS" = yes ; then
2629 echo "$as_me:2629: checking if -lm needed for math functions" >&5
2630 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2631 if test "${cf_cv_need_libm+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 cat >conftest.$ac_ext <<_ACEOF
2636 #line 2636 "configure"
2637 #include "confdefs.h"
2646 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2651 rm -f conftest.$ac_objext conftest$ac_exeext
2652 if { (eval echo "$as_me:2652: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>&5
2655 echo "$as_me:2655: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -s conftest$ac_exeext'
2658 { (eval echo "$as_me:2658: \"$ac_try\"") >&5
2661 echo "$as_me:2661: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2665 echo "$as_me: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2671 echo "$as_me:2671: result: $cf_cv_need_libm" >&5
2672 echo "${ECHO_T}$cf_cv_need_libm" >&6
2673 if test "$cf_cv_need_libm" = yes
2681 CC_SHARED_OPTS=unknown
2682 CPPFLAGS="$CPPFLAGS"
2684 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2685 DFT_UPR_MODEL="NORMAL"
2698 PACKAGE="ncurses-examples"
2704 TINFO_LIBS='$(LIBS_CURSES)'
2705 cf_cv_abi_version=""
2706 cf_cv_rel_version=""
2712 if test "$GCC" = yes
2714 cat > conftest.i <<EOF
2716 #define GCC_PRINTF 0
2721 #ifndef GCC_NORETURN
2722 #define GCC_NORETURN /* nothing */
2725 #define GCC_UNUSED /* nothing */
2728 if test "$GCC" = yes
2730 { echo "$as_me:2730: checking for $CC __attribute__ directives..." >&5
2731 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2733 "${as_me:-configure}"
2734 #include "confdefs.h"
2735 #include "conftest.h"
2736 #include "conftest.i"
2738 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2740 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2743 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2745 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2747 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2748 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2749 extern void foo(void) GCC_NORETURN;
2750 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2752 cf_printf_attribute=no
2753 cf_scanf_attribute=no
2754 for cf_attribute in scanf printf unused noreturn
2757 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2759 cf_directive="__attribute__(($cf_attribute))"
2760 echo "checking for $CC $cf_directive" 1>&5
2762 case $cf_attribute in
2764 cf_printf_attribute=yes
2765 cat >conftest.h <<EOF
2766 #define GCC_$cf_ATTRIBUTE 1
2770 cf_scanf_attribute=yes
2771 cat >conftest.h <<EOF
2772 #define GCC_$cf_ATTRIBUTE 1
2776 cat >conftest.h <<EOF
2777 #define GCC_$cf_ATTRIBUTE $cf_directive
2782 if { (eval echo "$as_me:2782: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>&5
2785 echo "$as_me:2785: \$? = $ac_status" >&5
2786 (exit $ac_status); }; then
2787 test -n "$verbose" && echo "$as_me:2787: result: ... $cf_attribute" >&5
2788 echo "${ECHO_T}... $cf_attribute" >&6
2789 cat conftest.h >>confdefs.h
2790 case $cf_attribute in
2793 cat >>confdefs.h <<EOF
2794 #define GCC_NORETURN $cf_directive
2799 cf_value='/* nothing */'
2800 if test "$cf_printf_attribute" != no ; then
2801 cf_value='__attribute__((format(printf,fmt,var)))'
2803 cat >>confdefs.h <<\EOF
2804 #define GCC_PRINTF 1
2809 cat >>confdefs.h <<EOF
2810 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2815 cf_value='/* nothing */'
2816 if test "$cf_scanf_attribute" != no ; then
2817 cf_value='__attribute__((format(scanf,fmt,var)))'
2819 cat >>confdefs.h <<\EOF
2825 cat >>confdefs.h <<EOF
2826 #define GCC_SCANFLIKE(fmt,var) $cf_value
2832 cat >>confdefs.h <<EOF
2833 #define GCC_UNUSED $cf_directive
2841 fgrep define conftest.i >>confdefs.h
2846 echo "$as_me:2846: checking if you want to work around bogus compiler/loader warnings" >&5
2847 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
2849 # Check whether --enable-string-hacks or --disable-string-hacks was given.
2850 if test "${enable_string_hacks+set}" = set; then
2851 enableval="$enable_string_hacks"
2852 with_string_hacks=$enableval
2854 with_string_hacks=no
2856 echo "$as_me:2856: result: $with_string_hacks" >&5
2857 echo "${ECHO_T}$with_string_hacks" >&6
2859 if test "x$with_string_hacks" = "xyes"; then
2861 cat >>confdefs.h <<\EOF
2862 #define USE_STRING_HACKS 1
2865 { echo "$as_me:2865: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
2866 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
2867 echo "$as_me:2867: checking for strlcat" >&5
2868 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
2869 if test "${ac_cv_func_strlcat+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2875 /* System header to define __stub macros and hopefully few prototypes,
2876 which can conflict with char strlcat (); below. */
2878 /* Override any gcc2 internal prototype to avoid an error. */
2882 /* We use char because int might match the return type of a gcc2
2883 builtin and then its argument prototype would still apply. */
2890 /* The GNU C library defines this for functions which it implements
2891 to always fail with ENOSYS. Some functions are actually named
2892 something starting with __ and the normal name is an alias. */
2893 #if defined (__stub_strlcat) || defined (__stub___strlcat)
2896 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
2903 rm -f conftest.$ac_objext conftest$ac_exeext
2904 if { (eval echo "$as_me:2904: \"$ac_link\"") >&5
2905 (eval $ac_link) 2>&5
2907 echo "$as_me:2907: \$? = $ac_status" >&5
2908 (exit $ac_status); } &&
2909 { ac_try='test -s conftest$ac_exeext'
2910 { (eval echo "$as_me:2910: \"$ac_try\"") >&5
2913 echo "$as_me:2913: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2915 ac_cv_func_strlcat=yes
2917 echo "$as_me: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2919 ac_cv_func_strlcat=no
2921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2923 echo "$as_me:2923: result: $ac_cv_func_strlcat" >&5
2924 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
2925 if test $ac_cv_func_strlcat = yes; then
2927 cat >>confdefs.h <<\EOF
2928 #define HAVE_STRLCAT 1
2933 echo "$as_me:2933: checking for strlcat in -lbsd" >&5
2934 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
2935 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 ac_check_lib_save_LIBS=$LIBS
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line 2941 "configure"
2942 #include "confdefs.h"
2944 /* Override any gcc2 internal prototype to avoid an error. */
2948 /* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2959 rm -f conftest.$ac_objext conftest$ac_exeext
2960 if { (eval echo "$as_me:2960: \"$ac_link\"") >&5
2961 (eval $ac_link) 2>&5
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -s conftest$ac_exeext'
2966 { (eval echo "$as_me:2966: \"$ac_try\"") >&5
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_cv_lib_bsd_strlcat=yes
2973 echo "$as_me: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2975 ac_cv_lib_bsd_strlcat=no
2977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2978 LIBS=$ac_check_lib_save_LIBS
2980 echo "$as_me:2980: result: $ac_cv_lib_bsd_strlcat" >&5
2981 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
2982 if test $ac_cv_lib_bsd_strlcat = yes; then
2985 # Filter out duplicates - this happens with badly-designed ".pc" files...
2986 for cf_add_1lib in $LIBS
2988 for cf_add_2lib in $cf_add_libs
2990 if test "x$cf_add_1lib" = "x$cf_add_2lib"
2996 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
3000 for ac_header in bsd/string.h
3002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3003 echo "$as_me:3003: checking for $ac_header" >&5
3004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 cat >conftest.$ac_ext <<_ACEOF
3009 #line 3009 "configure"
3010 #include "confdefs.h"
3011 #include <$ac_header>
3013 if { (eval echo "$as_me:3013: \"$ac_cpp conftest.$ac_ext\"") >&5
3014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016 egrep -v '^ *\+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:3019: \$? = $ac_status" >&5
3020 (exit $ac_status); } >/dev/null; then
3021 if test -s conftest.err; then
3022 ac_cpp_err=$ac_c_preproc_warn_flag
3029 if test -z "$ac_cpp_err"; then
3030 eval "$as_ac_Header=yes"
3032 echo "$as_me: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3034 eval "$as_ac_Header=no"
3036 rm -f conftest.err conftest.$ac_ext
3038 echo "$as_me:3038: result: `eval echo '${'$as_ac_Header'}'`" >&5
3039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3041 cat >>confdefs.h <<EOF
3042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3048 cat >>confdefs.h <<\EOF
3049 #define HAVE_STRLCAT 1
3056 for ac_func in strlcpy snprintf
3058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3059 echo "$as_me:3059: checking for $ac_func" >&5
3060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3061 if eval "test \"\${$as_ac_var+set}\" = set"; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 cat >conftest.$ac_ext <<_ACEOF
3065 #line 3065 "configure"
3066 #include "confdefs.h"
3067 /* System header to define __stub macros and hopefully few prototypes,
3068 which can conflict with char $ac_func (); below. */
3070 /* Override any gcc2 internal prototype to avoid an error. */
3074 /* We use char because int might match the return type of a gcc2
3075 builtin and then its argument prototype would still apply. */
3082 /* The GNU C library defines this for functions which it implements
3083 to always fail with ENOSYS. Some functions are actually named
3084 something starting with __ and the normal name is an alias. */
3085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3088 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3095 rm -f conftest.$ac_objext conftest$ac_exeext
3096 if { (eval echo "$as_me:3096: \"$ac_link\"") >&5
3097 (eval $ac_link) 2>&5
3099 echo "$as_me:3099: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -s conftest$ac_exeext'
3102 { (eval echo "$as_me:3102: \"$ac_try\"") >&5
3105 echo "$as_me:3105: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 eval "$as_ac_var=yes"
3109 echo "$as_me: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3111 eval "$as_ac_var=no"
3113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3115 echo "$as_me:3115: result: `eval echo '${'$as_ac_var'}'`" >&5
3116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3117 if test `eval echo '${'$as_ac_var'}'` = yes; then
3118 cat >>confdefs.h <<EOF
3119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3128 cf_POSIX_C_SOURCE=199506L
3133 cf_xopen_source="-D_ALL_SOURCE"
3139 cf_xopen_source="-D_APPLE_C_SOURCE"
3142 cf_xopen_source="-D_DARWIN_C_SOURCE"
3145 (freebsd*|dragonfly*)
3146 # 5.x headers associate
3147 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3148 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3149 cf_POSIX_C_SOURCE=200112L
3151 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3154 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3157 cf_xopen_source="-D_HPUX_SOURCE"
3160 cf_xopen_source="-D_SGI_SOURCE"
3163 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3165 echo "$as_me:3165: checking if we must define _GNU_SOURCE" >&5
3166 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3167 if test "${cf_cv_gnu_source+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 cat >conftest.$ac_ext <<_ACEOF
3172 #line 3172 "configure"
3173 #include "confdefs.h"
3174 #include <sys/types.h>
3179 #ifndef _XOPEN_SOURCE
3186 rm -f conftest.$ac_objext
3187 if { (eval echo "$as_me:3187: \"$ac_compile\"") >&5
3188 (eval $ac_compile) 2>&5
3190 echo "$as_me:3190: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (eval echo "$as_me:3193: \"$ac_try\"") >&5
3196 echo "$as_me:3196: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3200 echo "$as_me: failed program was:" >&5
3201 cat conftest.$ac_ext >&5
3203 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3204 cat >conftest.$ac_ext <<_ACEOF
3205 #line 3205 "configure"
3206 #include "confdefs.h"
3207 #include <sys/types.h>
3212 #ifdef _XOPEN_SOURCE
3219 rm -f conftest.$ac_objext
3220 if { (eval echo "$as_me:3220: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>&5
3223 echo "$as_me:3223: \$? = $ac_status" >&5
3224 (exit $ac_status); } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:3226: \"$ac_try\"") >&5
3229 echo "$as_me:3229: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3233 echo "$as_me: failed program was:" >&5
3234 cat conftest.$ac_ext >&5
3235 cf_cv_gnu_source=yes
3237 rm -f conftest.$ac_objext conftest.$ac_ext
3241 rm -f conftest.$ac_objext conftest.$ac_ext
3244 echo "$as_me:3244: result: $cf_cv_gnu_source" >&5
3245 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3247 if test "$cf_cv_gnu_source" = yes
3249 echo "$as_me:3249: checking if we should also define _DEFAULT_SOURCE" >&5
3250 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3251 if test "${cf_cv_default_source+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
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 _DEFAULT_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
3283 cf_cv_default_source=no
3285 echo "$as_me: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 cf_cv_default_source=yes
3289 rm -f conftest.$ac_objext conftest.$ac_ext
3292 echo "$as_me:3292: result: $cf_cv_default_source" >&5
3293 echo "${ECHO_T}$cf_cv_default_source" >&6
3294 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
3299 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3302 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3305 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3307 cf_save_CFLAGS="$CFLAGS"
3308 cf_save_CPPFLAGS="$CPPFLAGS"
3310 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3311 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3312 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3314 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3315 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3316 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3318 echo "$as_me:3318: checking if we should define _POSIX_C_SOURCE" >&5
3319 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3320 if test "${cf_cv_posix_c_source+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 echo "${as_me:-configure}:3324: testing if the symbol is already defined go no further ..." 1>&5
3326 cat >conftest.$ac_ext <<_ACEOF
3327 #line 3327 "configure"
3328 #include "confdefs.h"
3329 #include <sys/types.h>
3334 #ifndef _POSIX_C_SOURCE
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:3342: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3345 echo "$as_me:3345: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:3348: \"$ac_try\"") >&5
3351 echo "$as_me:3351: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 cf_cv_posix_c_source=no
3355 echo "$as_me: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3357 cf_want_posix_source=no
3358 case .$cf_POSIX_C_SOURCE in
3360 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3363 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3364 cf_want_posix_source=yes
3367 cf_want_posix_source=yes
3370 if test "$cf_want_posix_source" = yes ; then
3371 cat >conftest.$ac_ext <<_ACEOF
3372 #line 3372 "configure"
3373 #include "confdefs.h"
3374 #include <sys/types.h>
3379 #ifdef _POSIX_SOURCE
3386 rm -f conftest.$ac_objext
3387 if { (eval echo "$as_me:3387: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3390 echo "$as_me:3390: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:3393: \"$ac_try\"") >&5
3396 echo "$as_me:3396: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3400 echo "$as_me: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3402 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3404 rm -f conftest.$ac_objext conftest.$ac_ext
3407 echo "${as_me:-configure}:3407: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3409 CFLAGS="$cf_trim_CFLAGS"
3410 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3412 echo "${as_me:-configure}:3412: testing if the second compile does not leave our definition intact error ..." 1>&5
3414 cat >conftest.$ac_ext <<_ACEOF
3415 #line 3415 "configure"
3416 #include "confdefs.h"
3417 #include <sys/types.h>
3422 #ifndef _POSIX_C_SOURCE
3429 rm -f conftest.$ac_objext
3430 if { (eval echo "$as_me:3430: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>&5
3433 echo "$as_me:3433: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -s conftest.$ac_objext'
3436 { (eval echo "$as_me:3436: \"$ac_try\"") >&5
3439 echo "$as_me:3439: \$? = $ac_status" >&5
3440 (exit $ac_status); }; }; then
3443 echo "$as_me: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3445 cf_cv_posix_c_source=no
3447 rm -f conftest.$ac_objext conftest.$ac_ext
3448 CFLAGS="$cf_save_CFLAGS"
3449 CPPFLAGS="$cf_save_CPPFLAGS"
3452 rm -f conftest.$ac_objext conftest.$ac_ext
3455 echo "$as_me:3455: result: $cf_cv_posix_c_source" >&5
3456 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3458 if test "$cf_cv_posix_c_source" != no ; then
3459 CFLAGS="$cf_trim_CFLAGS"
3460 CPPFLAGS="$cf_trim_CPPFLAGS"
3465 cf_new_extra_cppflags=
3467 for cf_add_cflags in $cf_cv_posix_c_source
3469 case $cf_fix_cppflags in
3471 case $cf_add_cflags in
3472 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3473 case $cf_add_cflags in
3475 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3477 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3478 && test -z "${cf_tst_cflags}" \
3479 && cf_fix_cppflags=yes
3481 if test $cf_fix_cppflags = yes ; then
3483 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3484 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3487 elif test "${cf_tst_cflags}" = "\"'" ; then
3489 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3490 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3500 case $cf_add_cflags in
3502 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3504 CPPFLAGS=`echo "$CPPFLAGS" | \
3505 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3506 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3511 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3512 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3519 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3520 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3527 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3528 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3530 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3532 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3533 && test -z "${cf_tst_cflags}" \
3534 && cf_fix_cppflags=no
3539 if test -n "$cf_new_cflags" ; then
3541 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3542 CFLAGS="${CFLAGS}$cf_new_cflags"
3546 if test -n "$cf_new_cppflags" ; then
3548 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3549 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3553 if test -n "$cf_new_extra_cppflags" ; then
3555 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3556 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3564 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3567 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3568 cf_xopen_source="-D_BSD_SOURCE"
3572 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3575 cf_xopen_source="-D_OSF_SOURCE"
3578 cf_xopen_source="-D_QNX_SOURCE"
3581 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3584 cf_xopen_source="-D__EXTENSIONS__"
3585 cf_cv_xopen_source=broken
3587 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3593 echo "$as_me:3593: checking if we should define _XOPEN_SOURCE" >&5
3594 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3595 if test "${cf_cv_xopen_source+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line 3600 "configure"
3601 #include "confdefs.h"
3605 #include <sys/types.h>
3611 #ifndef _XOPEN_SOURCE
3618 rm -f conftest.$ac_objext
3619 if { (eval echo "$as_me:3619: \"$ac_compile\"") >&5
3620 (eval $ac_compile) 2>&5
3622 echo "$as_me:3622: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:3625: \"$ac_try\"") >&5
3628 echo "$as_me:3628: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 cf_cv_xopen_source=no
3632 echo "$as_me: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3636 cat >conftest.$ac_ext <<_ACEOF
3637 #line 3637 "configure"
3638 #include "confdefs.h"
3642 #include <sys/types.h>
3648 #ifdef _XOPEN_SOURCE
3655 rm -f conftest.$ac_objext
3656 if { (eval echo "$as_me:3656: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>&5
3659 echo "$as_me:3659: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (eval echo "$as_me:3662: \"$ac_try\"") >&5
3665 echo "$as_me:3665: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 cf_cv_xopen_source=no
3669 echo "$as_me: failed program was:" >&5
3670 cat conftest.$ac_ext >&5
3671 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3673 rm -f conftest.$ac_objext conftest.$ac_ext
3677 rm -f conftest.$ac_objext conftest.$ac_ext
3680 echo "$as_me:3680: result: $cf_cv_xopen_source" >&5
3681 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3683 if test "$cf_cv_xopen_source" != no ; then
3685 CFLAGS=`echo "$CFLAGS" | \
3686 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3687 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3689 CPPFLAGS=`echo "$CPPFLAGS" | \
3690 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3691 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3693 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3698 cf_new_extra_cppflags=
3700 for cf_add_cflags in $cf_temp_xopen_source
3702 case $cf_fix_cppflags in
3704 case $cf_add_cflags in
3705 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3706 case $cf_add_cflags in
3708 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3710 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3711 && test -z "${cf_tst_cflags}" \
3712 && cf_fix_cppflags=yes
3714 if test $cf_fix_cppflags = yes ; then
3716 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3717 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3720 elif test "${cf_tst_cflags}" = "\"'" ; then
3722 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3723 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3733 case $cf_add_cflags in
3735 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3737 CPPFLAGS=`echo "$CPPFLAGS" | \
3738 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3739 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3744 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3745 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3752 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3753 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3760 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3761 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3763 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3765 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3766 && test -z "${cf_tst_cflags}" \
3767 && cf_fix_cppflags=no
3772 if test -n "$cf_new_cflags" ; then
3774 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3775 CFLAGS="${CFLAGS}$cf_new_cflags"
3779 if test -n "$cf_new_cppflags" ; then
3781 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3782 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3786 if test -n "$cf_new_extra_cppflags" ; then
3788 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3789 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3795 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3797 cf_save_CFLAGS="$CFLAGS"
3798 cf_save_CPPFLAGS="$CPPFLAGS"
3800 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3801 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3802 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3804 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3805 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3806 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3808 echo "$as_me:3808: checking if we should define _POSIX_C_SOURCE" >&5
3809 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3810 if test "${cf_cv_posix_c_source+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 echo "${as_me:-configure}:3814: testing if the symbol is already defined go no further ..." 1>&5
3816 cat >conftest.$ac_ext <<_ACEOF
3817 #line 3817 "configure"
3818 #include "confdefs.h"
3819 #include <sys/types.h>
3824 #ifndef _POSIX_C_SOURCE
3831 rm -f conftest.$ac_objext
3832 if { (eval echo "$as_me:3832: \"$ac_compile\"") >&5
3833 (eval $ac_compile) 2>&5
3835 echo "$as_me:3835: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:3838: \"$ac_try\"") >&5
3841 echo "$as_me:3841: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 cf_cv_posix_c_source=no
3845 echo "$as_me: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 cf_want_posix_source=no
3848 case .$cf_POSIX_C_SOURCE in
3850 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3853 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3854 cf_want_posix_source=yes
3857 cf_want_posix_source=yes
3860 if test "$cf_want_posix_source" = yes ; then
3861 cat >conftest.$ac_ext <<_ACEOF
3862 #line 3862 "configure"
3863 #include "confdefs.h"
3864 #include <sys/types.h>
3869 #ifdef _POSIX_SOURCE
3876 rm -f conftest.$ac_objext
3877 if { (eval echo "$as_me:3877: \"$ac_compile\"") >&5
3878 (eval $ac_compile) 2>&5
3880 echo "$as_me:3880: \$? = $ac_status" >&5
3881 (exit $ac_status); } &&
3882 { ac_try='test -s conftest.$ac_objext'
3883 { (eval echo "$as_me:3883: \"$ac_try\"") >&5
3886 echo "$as_me:3886: \$? = $ac_status" >&5
3887 (exit $ac_status); }; }; then
3890 echo "$as_me: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3892 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3894 rm -f conftest.$ac_objext conftest.$ac_ext
3897 echo "${as_me:-configure}:3897: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3899 CFLAGS="$cf_trim_CFLAGS"
3900 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3902 echo "${as_me:-configure}:3902: testing if the second compile does not leave our definition intact error ..." 1>&5
3904 cat >conftest.$ac_ext <<_ACEOF
3905 #line 3905 "configure"
3906 #include "confdefs.h"
3907 #include <sys/types.h>
3912 #ifndef _POSIX_C_SOURCE
3919 rm -f conftest.$ac_objext
3920 if { (eval echo "$as_me:3920: \"$ac_compile\"") >&5
3921 (eval $ac_compile) 2>&5
3923 echo "$as_me:3923: \$? = $ac_status" >&5
3924 (exit $ac_status); } &&
3925 { ac_try='test -s conftest.$ac_objext'
3926 { (eval echo "$as_me:3926: \"$ac_try\"") >&5
3929 echo "$as_me:3929: \$? = $ac_status" >&5
3930 (exit $ac_status); }; }; then
3933 echo "$as_me: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3935 cf_cv_posix_c_source=no
3937 rm -f conftest.$ac_objext conftest.$ac_ext
3938 CFLAGS="$cf_save_CFLAGS"
3939 CPPFLAGS="$cf_save_CPPFLAGS"
3942 rm -f conftest.$ac_objext conftest.$ac_ext
3945 echo "$as_me:3945: result: $cf_cv_posix_c_source" >&5
3946 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3948 if test "$cf_cv_posix_c_source" != no ; then
3949 CFLAGS="$cf_trim_CFLAGS"
3950 CPPFLAGS="$cf_trim_CPPFLAGS"
3955 cf_new_extra_cppflags=
3957 for cf_add_cflags in $cf_cv_posix_c_source
3959 case $cf_fix_cppflags in
3961 case $cf_add_cflags in
3962 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3963 case $cf_add_cflags in
3965 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3967 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3968 && test -z "${cf_tst_cflags}" \
3969 && cf_fix_cppflags=yes
3971 if test $cf_fix_cppflags = yes ; then
3973 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3974 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3977 elif test "${cf_tst_cflags}" = "\"'" ; then
3979 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3980 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3990 case $cf_add_cflags in
3992 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3994 CPPFLAGS=`echo "$CPPFLAGS" | \
3995 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3996 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4001 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4002 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4009 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4010 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4017 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4018 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4020 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4022 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4023 && test -z "${cf_tst_cflags}" \
4024 && cf_fix_cppflags=no
4029 if test -n "$cf_new_cflags" ; then
4031 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4032 CFLAGS="${CFLAGS}$cf_new_cflags"
4036 if test -n "$cf_new_cppflags" ; then
4038 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4039 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4043 if test -n "$cf_new_extra_cppflags" ; then
4045 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4046 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4055 if test -n "$cf_xopen_source" ; then
4060 cf_new_extra_cppflags=
4062 for cf_add_cflags in $cf_xopen_source
4064 case $cf_fix_cppflags in
4066 case $cf_add_cflags in
4067 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4068 case $cf_add_cflags in
4070 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4072 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4073 && test -z "${cf_tst_cflags}" \
4074 && cf_fix_cppflags=yes
4076 if test $cf_fix_cppflags = yes ; then
4078 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4079 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4082 elif test "${cf_tst_cflags}" = "\"'" ; then
4084 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4085 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4095 case $cf_add_cflags in
4097 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4099 CPPFLAGS=`echo "$CPPFLAGS" | \
4100 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4101 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4106 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4107 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4114 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4115 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4122 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4123 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4125 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4127 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4128 && test -z "${cf_tst_cflags}" \
4129 && cf_fix_cppflags=no
4134 if test -n "$cf_new_cflags" ; then
4135 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4137 echo "${as_me:-configure}:4137: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4139 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4140 CFLAGS="${CFLAGS}$cf_new_cflags"
4144 if test -n "$cf_new_cppflags" ; then
4145 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4147 echo "${as_me:-configure}:4147: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4149 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4150 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4154 if test -n "$cf_new_extra_cppflags" ; then
4155 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4157 echo "${as_me:-configure}:4157: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4159 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4160 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4166 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4167 echo "$as_me:4167: checking if _XOPEN_SOURCE really is set" >&5
4168 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4169 cat >conftest.$ac_ext <<_ACEOF
4170 #line 4170 "configure"
4171 #include "confdefs.h"
4177 #ifndef _XOPEN_SOURCE
4184 rm -f conftest.$ac_objext
4185 if { (eval echo "$as_me:4185: \"$ac_compile\"") >&5
4186 (eval $ac_compile) 2>&5
4188 echo "$as_me:4188: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:4191: \"$ac_try\"") >&5
4194 echo "$as_me:4194: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 cf_XOPEN_SOURCE_set=yes
4198 echo "$as_me: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4200 cf_XOPEN_SOURCE_set=no
4202 rm -f conftest.$ac_objext conftest.$ac_ext
4203 echo "$as_me:4203: result: $cf_XOPEN_SOURCE_set" >&5
4204 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4205 if test $cf_XOPEN_SOURCE_set = yes
4207 cat >conftest.$ac_ext <<_ACEOF
4208 #line 4208 "configure"
4209 #include "confdefs.h"
4215 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4222 rm -f conftest.$ac_objext
4223 if { (eval echo "$as_me:4223: \"$ac_compile\"") >&5
4224 (eval $ac_compile) 2>&5
4226 echo "$as_me:4226: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -s conftest.$ac_objext'
4229 { (eval echo "$as_me:4229: \"$ac_try\"") >&5
4232 echo "$as_me:4232: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 cf_XOPEN_SOURCE_set_ok=yes
4236 echo "$as_me: failed program was:" >&5
4237 cat conftest.$ac_ext >&5
4238 cf_XOPEN_SOURCE_set_ok=no
4240 rm -f conftest.$ac_objext conftest.$ac_ext
4241 if test $cf_XOPEN_SOURCE_set_ok = no
4243 { echo "$as_me:4243: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4244 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4248 echo "$as_me:4248: checking if we should define _XOPEN_SOURCE" >&5
4249 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4250 if test "${cf_cv_xopen_source+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 cat >conftest.$ac_ext <<_ACEOF
4255 #line 4255 "configure"
4256 #include "confdefs.h"
4260 #include <sys/types.h>
4266 #ifndef _XOPEN_SOURCE
4273 rm -f conftest.$ac_objext
4274 if { (eval echo "$as_me:4274: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>&5
4277 echo "$as_me:4277: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (eval echo "$as_me:4280: \"$ac_try\"") >&5
4283 echo "$as_me:4283: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 cf_cv_xopen_source=no
4287 echo "$as_me: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4290 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4291 cat >conftest.$ac_ext <<_ACEOF
4292 #line 4292 "configure"
4293 #include "confdefs.h"
4297 #include <sys/types.h>
4303 #ifdef _XOPEN_SOURCE
4310 rm -f conftest.$ac_objext
4311 if { (eval echo "$as_me:4311: \"$ac_compile\"") >&5
4312 (eval $ac_compile) 2>&5
4314 echo "$as_me:4314: \$? = $ac_status" >&5
4315 (exit $ac_status); } &&
4316 { ac_try='test -s conftest.$ac_objext'
4317 { (eval echo "$as_me:4317: \"$ac_try\"") >&5
4320 echo "$as_me:4320: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4322 cf_cv_xopen_source=no
4324 echo "$as_me: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4326 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4328 rm -f conftest.$ac_objext conftest.$ac_ext
4332 rm -f conftest.$ac_objext conftest.$ac_ext
4335 echo "$as_me:4335: result: $cf_cv_xopen_source" >&5
4336 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4338 if test "$cf_cv_xopen_source" != no ; then
4340 CFLAGS=`echo "$CFLAGS" | \
4341 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4342 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4344 CPPFLAGS=`echo "$CPPFLAGS" | \
4345 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4346 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4348 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4353 cf_new_extra_cppflags=
4355 for cf_add_cflags in $cf_temp_xopen_source
4357 case $cf_fix_cppflags in
4359 case $cf_add_cflags in
4360 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4361 case $cf_add_cflags in
4363 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4365 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4366 && test -z "${cf_tst_cflags}" \
4367 && cf_fix_cppflags=yes
4369 if test $cf_fix_cppflags = yes ; then
4371 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4372 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4375 elif test "${cf_tst_cflags}" = "\"'" ; then
4377 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4378 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4388 case $cf_add_cflags in
4390 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4392 CPPFLAGS=`echo "$CPPFLAGS" | \
4393 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4394 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4399 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4400 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4407 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4408 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4415 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4416 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4418 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4420 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4421 && test -z "${cf_tst_cflags}" \
4422 && cf_fix_cppflags=no
4427 if test -n "$cf_new_cflags" ; then
4429 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4430 CFLAGS="${CFLAGS}$cf_new_cflags"
4434 if test -n "$cf_new_cppflags" ; then
4436 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4437 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4441 if test -n "$cf_new_extra_cppflags" ; then
4443 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4444 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4453 echo "$as_me:4453: checking for signal global datatype" >&5
4454 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4455 if test "${cf_cv_sig_atomic_t+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 "volatile sig_atomic_t" \
4464 cat >conftest.$ac_ext <<_ACEOF
4465 #line 4465 "configure"
4466 #include "confdefs.h"
4468 #include <sys/types.h>
4474 static void handler(int sig)
4481 signal(SIGINT, handler);
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:4488: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>&5
4491 echo "$as_me:4491: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:4494: \"$ac_try\"") >&5
4497 echo "$as_me:4497: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 cf_cv_sig_atomic_t=$cf_type
4501 echo "$as_me: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4503 cf_cv_sig_atomic_t=no
4505 rm -f conftest.$ac_objext conftest.$ac_ext
4506 test "$cf_cv_sig_atomic_t" != no && break
4511 echo "$as_me:4511: result: $cf_cv_sig_atomic_t" >&5
4512 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4513 test "$cf_cv_sig_atomic_t" != no &&
4514 cat >>confdefs.h <<EOF
4515 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4518 # Work around breakage on OS X
4520 echo "$as_me:4520: checking if SIGWINCH is defined" >&5
4521 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4522 if test "${cf_cv_define_sigwinch+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 cat >conftest.$ac_ext <<_ACEOF
4527 #line 4527 "configure"
4528 #include "confdefs.h"
4530 #include <sys/types.h>
4531 #include <sys/signal.h>
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:4542: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4545 echo "$as_me:4545: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:4548: \"$ac_try\"") >&5
4551 echo "$as_me:4551: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 cf_cv_define_sigwinch=yes
4555 echo "$as_me: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4557 cat >conftest.$ac_ext <<_ACEOF
4558 #line 4558 "configure"
4559 #include "confdefs.h"
4561 #undef _XOPEN_SOURCE
4562 #undef _POSIX_SOURCE
4563 #undef _POSIX_C_SOURCE
4564 #include <sys/types.h>
4565 #include <sys/signal.h>
4575 rm -f conftest.$ac_objext
4576 if { (eval echo "$as_me:4576: \"$ac_compile\"") >&5
4577 (eval $ac_compile) 2>&5
4579 echo "$as_me:4579: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -s conftest.$ac_objext'
4582 { (eval echo "$as_me:4582: \"$ac_try\"") >&5
4585 echo "$as_me:4585: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 cf_cv_define_sigwinch=maybe
4589 echo "$as_me: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 cf_cv_define_sigwinch=no
4593 rm -f conftest.$ac_objext conftest.$ac_ext
4596 rm -f conftest.$ac_objext conftest.$ac_ext
4599 echo "$as_me:4599: result: $cf_cv_define_sigwinch" >&5
4600 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4602 if test "$cf_cv_define_sigwinch" = maybe ; then
4603 echo "$as_me:4603: checking for actual SIGWINCH definition" >&5
4604 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4605 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 cf_cv_fixup_sigwinch=unknown
4611 while test $cf_sigwinch != 1
4613 cat >conftest.$ac_ext <<_ACEOF
4614 #line 4614 "configure"
4615 #include "confdefs.h"
4617 #undef _XOPEN_SOURCE
4618 #undef _POSIX_SOURCE
4619 #undef _POSIX_C_SOURCE
4620 #include <sys/types.h>
4621 #include <sys/signal.h>
4627 #if SIGWINCH != $cf_sigwinch
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>&5
4639 echo "$as_me:4639: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
4641 { ac_try='test -s conftest.$ac_objext'
4642 { (eval echo "$as_me:4642: \"$ac_try\"") >&5
4645 echo "$as_me:4645: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 cf_cv_fixup_sigwinch=$cf_sigwinch
4650 echo "$as_me: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4653 rm -f conftest.$ac_objext conftest.$ac_ext
4655 cf_sigwinch=`expr $cf_sigwinch - 1`
4659 echo "$as_me:4659: result: $cf_cv_fixup_sigwinch" >&5
4660 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4662 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4663 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4667 # Checks for CODESET support.
4669 echo "$as_me:4669: checking for nl_langinfo and CODESET" >&5
4670 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4671 if test "${am_cv_langinfo_codeset+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 cat >conftest.$ac_ext <<_ACEOF
4675 #line 4675 "configure"
4676 #include "confdefs.h"
4677 #include <langinfo.h>
4681 char* cs = nl_langinfo(CODESET);
4686 rm -f conftest.$ac_objext conftest$ac_exeext
4687 if { (eval echo "$as_me:4687: \"$ac_link\"") >&5
4688 (eval $ac_link) 2>&5
4690 echo "$as_me:4690: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -s conftest$ac_exeext'
4693 { (eval echo "$as_me:4693: \"$ac_try\"") >&5
4696 echo "$as_me:4696: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 am_cv_langinfo_codeset=yes
4700 echo "$as_me: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4702 am_cv_langinfo_codeset=no
4704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4707 echo "$as_me:4707: result: $am_cv_langinfo_codeset" >&5
4708 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4709 if test $am_cv_langinfo_codeset = yes; then
4711 cat >>confdefs.h <<\EOF
4712 #define HAVE_LANGINFO_CODESET 1
4717 echo "$as_me:4717: checking if you want to use pkg-config" >&5
4718 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4720 # Check whether --with-pkg-config or --without-pkg-config was given.
4721 if test "${with_pkg_config+set}" = set; then
4722 withval="$with_pkg_config"
4723 cf_pkg_config=$withval
4727 echo "$as_me:4727: result: $cf_pkg_config" >&5
4728 echo "${ECHO_T}$cf_pkg_config" >&6
4730 case $cf_pkg_config in
4736 if test -n "$ac_tool_prefix"; then
4737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4738 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4739 echo "$as_me:4739: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4749 ac_save_IFS=$IFS; IFS=$ac_path_separator
4751 for ac_dir in $ac_dummy; do
4753 test -z "$ac_dir" && ac_dir=.
4754 if $as_executable_p "$ac_dir/$ac_word"; then
4755 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4756 echo "$as_me:4756: found $ac_dir/$ac_word" >&5
4764 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4766 if test -n "$PKG_CONFIG"; then
4767 echo "$as_me:4767: result: $PKG_CONFIG" >&5
4768 echo "${ECHO_T}$PKG_CONFIG" >&6
4770 echo "$as_me:4770: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4775 if test -z "$ac_cv_path_PKG_CONFIG"; then
4776 ac_pt_PKG_CONFIG=$PKG_CONFIG
4777 # Extract the first word of "pkg-config", so it can be a program name with args.
4778 set dummy pkg-config; ac_word=$2
4779 echo "$as_me:4779: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 case $ac_pt_PKG_CONFIG in
4786 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4789 ac_save_IFS=$IFS; IFS=$ac_path_separator
4791 for ac_dir in $ac_dummy; do
4793 test -z "$ac_dir" && ac_dir=.
4794 if $as_executable_p "$ac_dir/$ac_word"; then
4795 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4796 echo "$as_me:4796: found $ac_dir/$ac_word" >&5
4801 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4805 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4807 if test -n "$ac_pt_PKG_CONFIG"; then
4808 echo "$as_me:4808: result: $ac_pt_PKG_CONFIG" >&5
4809 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >