2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20200111.
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 runstatedir='${localstatedir}/run'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
149 # Identity of this package.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168 # Accept the important Cygnus configure options, so we can diagnose typos.
172 -bindir | --bindir | --bindi | --bind | --bin | --bi)
174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177 -build | --build | --buil | --bui | --bu)
178 ac_prev=build_alias ;;
179 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180 build_alias=$ac_optarg ;;
182 -cache-file | --cache-file | --cache-fil | --cache-fi \
183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184 ac_prev=cache_file ;;
185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187 cache_file=$ac_optarg ;;
190 cache_file=config.cache ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir=$ac_optarg ;;
198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199 | --dataroo | --dataro | --datar)
200 ac_prev=datarootdir ;;
201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203 datarootdir=$ac_optarg ;;
205 -disable-* | --disable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 eval "enable_$ac_feature=no" ;;
214 -enable-* | --enable-*)
215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216 # Reject names that are not valid shell variable names.
217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219 { (exit 1); exit 1; }; }
220 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
225 eval "enable_$ac_feature='$ac_optarg'" ;;
227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229 | --exec | --exe | --ex)
230 ac_prev=exec_prefix ;;
231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233 | --exec=* | --exe=* | --ex=*)
234 exec_prefix=$ac_optarg ;;
236 -gas | --gas | --ga | --g)
237 # Obsolete; use --with-gas.
240 -help | --help | --hel | --he | -h)
242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243 ac_init_help=recursive ;;
244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245 ac_init_help=short ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host_alias ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host_alias=$ac_optarg ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir=$ac_optarg ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir=$ac_optarg ;;
264 -libdir | --libdir | --libdi | --libd)
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir=$ac_optarg ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir=$ac_optarg ;;
285 -runstatedir | --runstatedir | --runstatedi | --runstated \
286 | --runstate | --runstat | --runsta | --runst \
287 | --runs | --run | --ru)
288 ac_prev=runstatedir ;;
289 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
290 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
291 | --runs=* | --run=* | --ru=*)
292 runstatedir=$ac_optarg ;;
294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
300 # Obsolete; use --without-fp.
303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
313 | --oldin | --oldi | --old | --ol | --o)
314 ac_prev=oldincludedir ;;
315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
318 oldincludedir=$ac_optarg ;;
320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
326 | --program-pre | --program-pr | --program-p)
327 ac_prev=program_prefix ;;
328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
330 program_prefix=$ac_optarg ;;
332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
333 | --program-suf | --program-su | --program-s)
334 ac_prev=program_suffix ;;
335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
337 program_suffix=$ac_optarg ;;
339 -program-transform-name | --program-transform-name \
340 | --program-transform-nam | --program-transform-na \
341 | --program-transform-n | --program-transform- \
342 | --program-transform | --program-transfor \
343 | --program-transfo | --program-transf \
344 | --program-trans | --program-tran \
345 | --progr-tra | --program-tr | --program-t)
346 ac_prev=program_transform_name ;;
347 -program-transform-name=* | --program-transform-name=* \
348 | --program-transform-nam=* | --program-transform-na=* \
349 | --program-transform-n=* | --program-transform-=* \
350 | --program-transform=* | --program-transfor=* \
351 | --program-transfo=* | --program-transf=* \
352 | --program-trans=* | --program-tran=* \
353 | --progr-tra=* | --program-tr=* | --program-t=*)
354 program_transform_name=$ac_optarg ;;
356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
357 | -silent | --silent | --silen | --sile | --sil)
360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 sbindir=$ac_optarg ;;
366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
368 | --sharedst | --shareds | --shared | --share | --shar \
370 ac_prev=sharedstatedir ;;
371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 sharedstatedir=$ac_optarg ;;
377 -site | --site | --sit)
379 -site=* | --site=* | --sit=*)
382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
388 | --syscon | --sysco | --sysc | --sys | --sy)
389 ac_prev=sysconfdir ;;
390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
392 sysconfdir=$ac_optarg ;;
394 -target | --target | --targe | --targ | --tar | --ta | --t)
395 ac_prev=target_alias ;;
396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
397 target_alias=$ac_optarg ;;
399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 -version | --version | --versio | --versi | --vers | -V)
406 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid package name: $ac_package" >&2
410 { (exit 1); exit 1; }; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "with_$ac_package='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
420 # Reject names that are not valid shell variable names.
421 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
422 { echo "$as_me: error: invalid package name: $ac_package" >&2
423 { (exit 1); exit 1; }; }
424 ac_package=`echo $ac_package | sed 's/-/_/g'`
425 eval "with_$ac_package=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes=$ac_optarg ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries=$ac_optarg ;;
445 -*) { echo "$as_me: error: unrecognized option: $ac_option
446 Try \`$0 --help' for more information." >&2
447 { (exit 1); exit 1; }; }
451 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
452 # Reject names that are not valid shell variable names.
453 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
454 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
455 { (exit 1); exit 1; }; }
456 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
457 eval "$ac_envvar='$ac_optarg'"
461 # FIXME: should be removed in autoconf 3.0.
462 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
463 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
464 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
465 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
471 if test -n "$ac_prev"; then
472 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
473 { echo "$as_me: error: missing argument to $ac_option" >&2
474 { (exit 1); exit 1; }; }
477 # Be sure to have absolute paths.
478 for ac_var in exec_prefix prefix
480 eval ac_val=$`echo $ac_var`
482 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
483 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
484 { (exit 1); exit 1; }; };;
488 # Be sure to have absolute paths.
489 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
490 localstatedir libdir includedir oldincludedir infodir mandir
492 eval ac_val=$`echo $ac_var`
494 [\\/$]* | ?:[\\/]* ) ;;
495 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
496 { (exit 1); exit 1; }; };;
500 # There might be people who depend on the old broken behavior: `$host'
501 # used to hold the argument of --host etc.
506 # FIXME: should be removed in autoconf 3.0.
507 if test "x$host_alias" != x; then
508 if test "x$build_alias" = x; then
509 cross_compiling=maybe
510 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
511 If a cross compiler is detected then cross compile mode will be used." >&2
512 elif test "x$build_alias" != "x$host_alias"; then
518 test -n "$host_alias" && ac_tool_prefix=$host_alias-
520 test "$silent" = yes && exec 6>/dev/null
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
539 { (exit 1); exit 1; }; }
541 { echo "$as_me: error: cannot find sources in $srcdir" >&2
542 { (exit 1); exit 1; }; }
545 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
546 ac_env_build_alias_set=${build_alias+set}
547 ac_env_build_alias_value=$build_alias
548 ac_cv_env_build_alias_set=${build_alias+set}
549 ac_cv_env_build_alias_value=$build_alias
550 ac_env_host_alias_set=${host_alias+set}
551 ac_env_host_alias_value=$host_alias
552 ac_cv_env_host_alias_set=${host_alias+set}
553 ac_cv_env_host_alias_value=$host_alias
554 ac_env_target_alias_set=${target_alias+set}
555 ac_env_target_alias_value=$target_alias
556 ac_cv_env_target_alias_set=${target_alias+set}
557 ac_cv_env_target_alias_value=$target_alias
558 ac_env_CC_set=${CC+set}
560 ac_cv_env_CC_set=${CC+set}
561 ac_cv_env_CC_value=$CC
562 ac_env_CFLAGS_set=${CFLAGS+set}
563 ac_env_CFLAGS_value=$CFLAGS
564 ac_cv_env_CFLAGS_set=${CFLAGS+set}
565 ac_cv_env_CFLAGS_value=$CFLAGS
566 ac_env_LDFLAGS_set=${LDFLAGS+set}
567 ac_env_LDFLAGS_value=$LDFLAGS
568 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
569 ac_cv_env_LDFLAGS_value=$LDFLAGS
570 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
571 ac_env_CPPFLAGS_value=$CPPFLAGS
572 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
573 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
574 ac_env_CPP_set=${CPP+set}
575 ac_env_CPP_value=$CPP
576 ac_cv_env_CPP_set=${CPP+set}
577 ac_cv_env_CPP_value=$CPP
580 # Report the --help message.
582 if test "$ac_init_help" = "long"; then
583 # Omit some internal or obsolete options to make the list less imposing.
584 # This message is too long to be a string in the A/UX 3.1 sh.
586 \`configure' configures this package to adapt to many kinds of systems.
588 Usage: $0 [OPTION]... [VAR=VALUE]...
590 To assign environment variables (e.g., CC, CFLAGS...), specify them as
591 VAR=VALUE. See below for descriptions of some of the useful variables.
593 Defaults for the options are specified in brackets.
596 -h, --help display this help and exit
597 --help=short display options specific to this package
598 --help=recursive display the short help of all the included packages
599 -V, --version display version information and exit
600 -q, --quiet, --silent do not print \`checking...' messages
601 --cache-file=FILE cache test results in FILE [disabled]
602 -C, --config-cache alias for \`--cache-file=config.cache'
603 -n, --no-create do not create output files
604 --srcdir=DIR find the sources in DIR [configure dir or \`..']
609 Installation directories:
610 --prefix=PREFIX install architecture-independent files in PREFIX
612 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
615 By default, \`make install' will install all the files in
616 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
617 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
618 for instance \`--prefix=\$HOME'.
620 For better control, use the options below.
622 Fine tuning of the installation directories:
623 --bindir=DIR user executables [EPREFIX/bin]
624 --sbindir=DIR system admin executables [EPREFIX/sbin]
625 --libexecdir=DIR program executables [EPREFIX/libexec]
626 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
628 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
629 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
630 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
631 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
632 --libdir=DIR object code libraries [EPREFIX/lib]
633 --includedir=DIR C header files [PREFIX/include]
634 --oldincludedir=DIR C header files for non-gcc [/usr/include]
635 --infodir=DIR info documentation [DATAROOTDIR/info]
636 --mandir=DIR man documentation [DATAROOTDIR/man]
642 --program-prefix=PREFIX prepend PREFIX to installed program names
643 --program-suffix=SUFFIX append SUFFIX to installed program names
644 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
647 --x-includes=DIR X include files are in DIR
648 --x-libraries=DIR X library files are in DIR
651 --build=BUILD configure for building on BUILD [guessed]
652 --host=HOST build programs to run on HOST [BUILD]
656 if test -n "$ac_init_help"; then
661 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
662 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
665 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
666 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
669 --disable-stripping do not strip (debug info) installed executables
670 --enable-string-hacks work around bogus compiler/loader warnings
671 --with-pkg-config{=path} enable/disable use of pkg-config
672 --disable-echo do not display "compiling" commands
673 Curses Version-dependent Options:
674 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
675 --disable-widec disable checks for wide-character functions
676 --with-curses-dir=DIR directory in which (n)curses is installed
677 --with-screen=XXX use specified curses-libraries
678 --with-ncursesw use wide ncurses-libraries
679 --with-ncurses use ncurses-libraries
680 --with-pdcurses compile/link with pdcurses X11 library
681 --with-curses-colr compile/link with HPUX 10.x color-curses
682 --with-curses-5lib compile/link with SunOS 5lib curses
683 --with-Xaw3d link with Xaw 3d library
684 --with-Xaw3dxft link with Xaw 3d xft library
685 --with-neXtaw link with neXT Athena library
686 --with-XawPlus link with Athena-Plus library
687 --with-x use the X Window System
688 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
689 --with-form-libname=XXX override form basename of library
690 --with-menu-libname=XXX override menu basename of library
691 --with-panel-libname=XXX override panel basename of library
692 --disable-panel disable checks for panel functions
693 --disable-menu disable checks for menu functions
694 --disable-form disable checks for form functions
695 Testing/development Options:
696 --enable-warnings test: turn on gcc compiler warnings
697 --with-dmalloc test: use Gray Watson's dmalloc library
698 --with-dbmalloc test: use Conor Cahill's dbmalloc library
699 --with-valgrind test: use valgrind
700 --disable-leaks test: free permanent memory, analyze leaks
701 --disable-rpath-hack don't add rpath options for additional libraries
703 Some influential environment variables:
704 CC C compiler command
705 CFLAGS C compiler flags
706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
707 nonstandard directory <lib dir>
708 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
709 headers in a nonstandard directory <include dir>
712 Use these variables to override the choices made by `configure' or to help
713 it to find libraries and programs with nonstandard names/locations.
718 if test "$ac_init_help" = "recursive"; then
719 # If there are subdirs, report their specific --help.
721 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723 # A "../" for each directory in /$ac_subdir.
724 ac_dots=`echo $ac_subdir |
725 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728 .) # No --srcdir option. We are building in place.
729 ac_sub_srcdir=$srcdir ;;
730 [\\/]* | ?:[\\/]* ) # Absolute path.
731 ac_sub_srcdir=$srcdir/$ac_subdir ;;
733 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
736 # Check for guested configure; otherwise get Cygnus style configure.
737 if test -f $ac_sub_srcdir/configure.gnu; then
739 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
740 elif test -f $ac_sub_srcdir/configure; then
742 $SHELL $ac_sub_srcdir/configure --help=recursive
743 elif test -f $ac_sub_srcdir/configure.ac ||
744 test -f $ac_sub_srcdir/configure.in; then
748 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
754 test -n "$ac_init_help" && exit 0
755 if $ac_init_version; then
758 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
759 Free Software Foundation, Inc.
760 This configure script is free software; the Free Software Foundation
761 gives unlimited permission to copy, distribute and modify it.
767 This file contains any messages produced by compilers while
768 running configure, to aid debugging if configure makes a mistake.
770 It was created by $as_me, which was
771 generated by GNU Autoconf 2.52.20200111. Invocation command line was
782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
789 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
791 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
792 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
794 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
795 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
796 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
797 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
811 # Keep a trace of the command line.
812 # Strip out --no-create and --no-recursion so they do not pile up.
813 # Also quote any args containing shell meta-characters.
819 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
820 | --no-cr | --no-c) ;;
821 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
822 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
823 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
824 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
825 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
830 # Get rid of the leading space.
833 # When interrupted or exit'd, cleanup temporary files, and complete
834 # config.log. We remove comments because anyway the quotes in there
835 # would cause problems or look ugly.
837 # Save into config.log some information that might help in debugging.
839 echo "## ----------------- ##" >&5
840 echo "## Cache variables. ##" >&5
841 echo "## ----------------- ##" >&5
843 # The following way of writing the cache mishandles newlines in values,
846 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
849 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
858 sed "/^$/d" confdefs.h >conftest.log
859 if test -s conftest.log; then
861 echo "## ------------ ##" >&5
862 echo "## confdefs.h. ##" >&5
863 echo "## ------------ ##" >&5
868 test "$ac_signal" != 0 &&
869 echo "$as_me: caught signal $ac_signal" >&5
870 echo "$as_me: exit $exit_status" >&5
871 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
874 for ac_signal in 1 2 13 15; do
875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
880 rm -rf conftest* confdefs.h
881 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 # Let the site file select an alternate cache file if it wants to.
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893 for ac_site_file in $CONFIG_SITE; do
894 if test -r "$ac_site_file"; then
895 { echo "$as_me:895: loading site script $ac_site_file" >&5
896 echo "$as_me: loading site script $ac_site_file" >&6;}
897 cat "$ac_site_file" >&5
902 if test -r "$cache_file"; then
903 # Some versions of bash will fail to source /dev/null (special
904 # files actually), so we avoid doing that.
905 if test -f "$cache_file"; then
906 { echo "$as_me:906: loading cache $cache_file" >&5
907 echo "$as_me: loading cache $cache_file" >&6;}
909 [\\/]* | ?:[\\/]* ) . $cache_file;;
914 { echo "$as_me:914: creating cache $cache_file" >&5
915 echo "$as_me: creating cache $cache_file" >&6;}
919 # Check that the precious variables saved in the cache have kept the same
921 ac_cache_corrupted=false
922 for ac_var in `(set) 2>&1 |
923 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
925 eval ac_new_set=\$ac_env_${ac_var}_set
926 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
927 eval ac_new_val="\$ac_env_${ac_var}_value"
928 case $ac_old_set,$ac_new_set in
930 { echo "$as_me:930: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
932 ac_cache_corrupted=: ;;
934 { echo "$as_me:934: error: \`$ac_var' was not set in the previous run" >&5
935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
936 ac_cache_corrupted=: ;;
939 if test "x$ac_old_val" != "x$ac_new_val"; then
940 { echo "$as_me:940: error: \`$ac_var' has changed since the previous run:" >&5
941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
942 { echo "$as_me:942: former value: $ac_old_val" >&5
943 echo "$as_me: former value: $ac_old_val" >&2;}
944 { echo "$as_me:944: current value: $ac_new_val" >&5
945 echo "$as_me: current value: $ac_new_val" >&2;}
949 # Pass precious variables to config.status. It doesn't matter if
950 # we pass some twice (in addition to the command line arguments).
951 if test "$ac_new_set" = set; then
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
955 ac_configure_args="$ac_configure_args '$ac_arg'"
957 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
962 if $ac_cache_corrupted; then
963 { echo "$as_me:963: error: changes in the environment can compromise the build" >&5
964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
965 { { echo "$as_me:965: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
967 { (exit 1); exit 1; }; }
971 ac_cpp='$CPP $CPPFLAGS'
972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 ac_main_return=return
977 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
998 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
1000 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1002 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1005 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1006 if test -f $ac_dir/install-sh; then
1008 ac_install_sh="$ac_aux_dir/install-sh -c"
1010 elif test -f $ac_dir/install.sh; then
1012 ac_install_sh="$ac_aux_dir/install.sh -c"
1014 elif test -f $ac_dir/shtool; then
1016 ac_install_sh="$ac_aux_dir/shtool install -c"
1020 if test -z "$ac_aux_dir"; then
1021 { { echo "$as_me:1021: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1022 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1023 { (exit 1); exit 1; }; }
1025 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1026 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1027 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1029 # Make sure we can run config.sub.
1030 $ac_config_sub sun4 >/dev/null 2>&1 ||
1031 { { echo "$as_me:1031: error: cannot run $ac_config_sub" >&5
1032 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1033 { (exit 1); exit 1; }; }
1035 echo "$as_me:1035: checking build system type" >&5
1036 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1037 if test "${ac_cv_build+set}" = set; then
1038 echo $ECHO_N "(cached) $ECHO_C" >&6
1040 ac_cv_build_alias=$build_alias
1041 test -z "$ac_cv_build_alias" &&
1042 ac_cv_build_alias=`$ac_config_guess`
1043 test -z "$ac_cv_build_alias" &&
1044 { { echo "$as_me:1044: error: cannot guess build type; you must specify one" >&5
1045 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1046 { (exit 1); exit 1; }; }
1047 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1048 { { echo "$as_me:1048: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1049 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1050 { (exit 1); exit 1; }; }
1053 echo "$as_me:1053: result: $ac_cv_build" >&5
1054 echo "${ECHO_T}$ac_cv_build" >&6
1056 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1057 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1058 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1061 echo "$as_me:1061: checking host system type" >&5
1062 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1063 if test "${ac_cv_host+set}" = set; then
1064 echo $ECHO_N "(cached) $ECHO_C" >&6
1066 ac_cv_host_alias=$host_alias
1067 test -z "$ac_cv_host_alias" &&
1068 ac_cv_host_alias=$ac_cv_build_alias
1069 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1070 { { echo "$as_me:1070: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1071 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1072 { (exit 1); exit 1; }; }
1075 echo "$as_me:1075: result: $ac_cv_host" >&5
1076 echo "${ECHO_T}$ac_cv_host" >&6
1078 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1079 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1080 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1082 system_name="$host_os"
1084 system_name="`(uname -s -r) 2>/dev/null`"
1085 if test -z "$system_name" ; then
1086 system_name="`(hostname) 2>/dev/null`"
1089 test -n "$system_name" &&
1090 cat >>confdefs.h <<EOF
1091 #define SYSTEM_NAME "$system_name"
1094 if test "${cf_cv_system_name+set}" = set; then
1095 echo $ECHO_N "(cached) $ECHO_C" >&6
1097 cf_cv_system_name="$system_name"
1100 test -z "$system_name" && system_name="$cf_cv_system_name"
1101 test -n "$cf_cv_system_name" && echo "$as_me:1101: result: Configuring for $cf_cv_system_name" >&5
1102 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1104 if test ".$system_name" != ".$cf_cv_system_name" ; then
1105 echo "$as_me:1105: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1106 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1107 { { echo "$as_me:1107: error: \"Please remove config.cache and try again.\"" >&5
1108 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1109 { (exit 1); exit 1; }; }
1112 test "$program_prefix" != NONE &&
1113 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1114 # Use a double $ so make ignores it.
1115 test "$program_suffix" != NONE &&
1116 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1117 # Double any \ or $. echo might interpret backslashes.
1118 # By default was `s,x,x', remove it if useless.
1119 cat <<\_ACEOF >conftest.sed
1120 s/[\\$]/&&/g;s/;s,x,x,$//
1122 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1125 echo "$as_me:1125: checking whether ${MAKE-make} sets \${MAKE}" >&5
1126 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1127 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1128 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1129 echo $ECHO_N "(cached) $ECHO_C" >&6
1131 cat >conftest.make <<\EOF
1133 @echo 'ac_maketemp="${MAKE}"'
1135 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1136 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1137 if test -n "$ac_maketemp"; then
1138 eval ac_cv_prog_make_${ac_make}_set=yes
1140 eval ac_cv_prog_make_${ac_make}_set=no
1144 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1145 echo "$as_me:1145: result: yes" >&5
1146 echo "${ECHO_T}yes" >&6
1149 echo "$as_me:1149: result: no" >&5
1150 echo "${ECHO_T}no" >&6
1151 SET_MAKE="MAKE=${MAKE-make}"
1155 ac_cpp='$CPP $CPPFLAGS'
1156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1159 ac_main_return=return
1160 if test -n "$ac_tool_prefix"; then
1161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1163 echo "$as_me:1163: checking for $ac_word" >&5
1164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1165 if test "${ac_cv_prog_CC+set}" = set; then
1166 echo $ECHO_N "(cached) $ECHO_C" >&6
1168 if test -n "$CC"; then
1169 ac_cv_prog_CC="$CC" # Let the user override the test.
1171 ac_save_IFS=$IFS; IFS=$ac_path_separator
1173 for ac_dir in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir=.
1176 $as_executable_p "$ac_dir/$ac_word" || continue
1177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1178 echo "$as_me:1178: found $ac_dir/$ac_word" >&5
1185 if test -n "$CC"; then
1186 echo "$as_me:1186: result: $CC" >&5
1187 echo "${ECHO_T}$CC" >&6
1189 echo "$as_me:1189: result: no" >&5
1190 echo "${ECHO_T}no" >&6
1194 if test -z "$ac_cv_prog_CC"; then
1196 # Extract the first word of "gcc", so it can be a program name with args.
1197 set dummy gcc; ac_word=$2
1198 echo "$as_me:1198: checking for $ac_word" >&5
1199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1201 echo $ECHO_N "(cached) $ECHO_C" >&6
1203 if test -n "$ac_ct_CC"; then
1204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1206 ac_save_IFS=$IFS; IFS=$ac_path_separator
1208 for ac_dir in $ac_dummy; do
1210 test -z "$ac_dir" && ac_dir=.
1211 $as_executable_p "$ac_dir/$ac_word" || continue
1212 ac_cv_prog_ac_ct_CC="gcc"
1213 echo "$as_me:1213: found $ac_dir/$ac_word" >&5
1219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1220 if test -n "$ac_ct_CC"; then
1221 echo "$as_me:1221: result: $ac_ct_CC" >&5
1222 echo "${ECHO_T}$ac_ct_CC" >&6
1224 echo "$as_me:1224: result: no" >&5
1225 echo "${ECHO_T}no" >&6
1233 if test -z "$CC"; then
1234 if test -n "$ac_tool_prefix"; then
1235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1236 set dummy ${ac_tool_prefix}cc; ac_word=$2
1237 echo "$as_me:1237: checking for $ac_word" >&5
1238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1239 if test "${ac_cv_prog_CC+set}" = set; then
1240 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 if test -n "$CC"; then
1243 ac_cv_prog_CC="$CC" # Let the user override the test.
1245 ac_save_IFS=$IFS; IFS=$ac_path_separator
1247 for ac_dir in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir=.
1250 $as_executable_p "$ac_dir/$ac_word" || continue
1251 ac_cv_prog_CC="${ac_tool_prefix}cc"
1252 echo "$as_me:1252: found $ac_dir/$ac_word" >&5
1259 if test -n "$CC"; then
1260 echo "$as_me:1260: result: $CC" >&5
1261 echo "${ECHO_T}$CC" >&6
1263 echo "$as_me:1263: result: no" >&5
1264 echo "${ECHO_T}no" >&6
1268 if test -z "$ac_cv_prog_CC"; then
1270 # Extract the first word of "cc", so it can be a program name with args.
1271 set dummy cc; ac_word=$2
1272 echo "$as_me:1272: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 if test -n "$ac_ct_CC"; then
1278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1280 ac_save_IFS=$IFS; IFS=$ac_path_separator
1282 for ac_dir in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir=.
1285 $as_executable_p "$ac_dir/$ac_word" || continue
1286 ac_cv_prog_ac_ct_CC="cc"
1287 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1294 if test -n "$ac_ct_CC"; then
1295 echo "$as_me:1295: result: $ac_ct_CC" >&5
1296 echo "${ECHO_T}$ac_ct_CC" >&6
1298 echo "$as_me:1298: result: no" >&5
1299 echo "${ECHO_T}no" >&6
1308 if test -z "$CC"; then
1309 # Extract the first word of "cc", so it can be a program name with args.
1310 set dummy cc; ac_word=$2
1311 echo "$as_me:1311: checking for $ac_word" >&5
1312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313 if test "${ac_cv_prog_CC+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 if test -n "$CC"; then
1317 ac_cv_prog_CC="$CC" # Let the user override the test.
1320 ac_save_IFS=$IFS; IFS=$ac_path_separator
1322 for ac_dir in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir=.
1325 $as_executable_p "$ac_dir/$ac_word" || continue
1326 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1327 ac_prog_rejected=yes
1331 echo "$as_me:1331: found $ac_dir/$ac_word" >&5
1335 if test $ac_prog_rejected = yes; then
1336 # We found a bogon in the path, so make sure we never use it.
1337 set dummy $ac_cv_prog_CC
1339 if test $# != 0; then
1340 # We chose a different compiler from the bogus one.
1341 # However, it has the same basename, so the bogon will be chosen
1342 # first if we set CC to just the basename; use the full file name.
1344 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1352 if test -n "$CC"; then
1353 echo "$as_me:1353: result: $CC" >&5
1354 echo "${ECHO_T}$CC" >&6
1356 echo "$as_me:1356: result: no" >&5
1357 echo "${ECHO_T}no" >&6
1361 if test -z "$CC"; then
1362 if test -n "$ac_tool_prefix"; then
1365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1367 echo "$as_me:1367: checking for $ac_word" >&5
1368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369 if test "${ac_cv_prog_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 if test -n "$CC"; then
1373 ac_cv_prog_CC="$CC" # Let the user override the test.
1375 ac_save_IFS=$IFS; IFS=$ac_path_separator
1377 for ac_dir in $ac_dummy; do
1379 test -z "$ac_dir" && ac_dir=.
1380 $as_executable_p "$ac_dir/$ac_word" || continue
1381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1382 echo "$as_me:1382: found $ac_dir/$ac_word" >&5
1389 if test -n "$CC"; then
1390 echo "$as_me:1390: result: $CC" >&5
1391 echo "${ECHO_T}$CC" >&6
1393 echo "$as_me:1393: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1397 test -n "$CC" && break
1400 if test -z "$CC"; then
1404 # Extract the first word of "$ac_prog", so it can be a program name with args.
1405 set dummy $ac_prog; ac_word=$2
1406 echo "$as_me:1406: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1414 ac_save_IFS=$IFS; IFS=$ac_path_separator
1416 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 $as_executable_p "$ac_dir/$ac_word" || continue
1420 ac_cv_prog_ac_ct_CC="$ac_prog"
1421 echo "$as_me:1421: found $ac_dir/$ac_word" >&5
1427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1428 if test -n "$ac_ct_CC"; then
1429 echo "$as_me:1429: result: $ac_ct_CC" >&5
1430 echo "${ECHO_T}$ac_ct_CC" >&6
1432 echo "$as_me:1432: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1436 test -n "$ac_ct_CC" && break
1444 test -z "$CC" && { { echo "$as_me:1444: error: no acceptable cc found in \$PATH" >&5
1445 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1446 { (exit 1); exit 1; }; }
1448 # Provide some information about the compiler.
1449 echo "$as_me:1449:" \
1450 "checking for C compiler version" >&5
1451 ac_compiler=`set X $ac_compile; echo $2`
1452 { (eval echo "$as_me:1452: \"$ac_compiler --version </dev/null >&5\"") >&5
1453 (eval $ac_compiler --version </dev/null >&5) 2>&5
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }
1457 { (eval echo "$as_me:1457: \"$ac_compiler -v </dev/null >&5\"") >&5
1458 (eval $ac_compiler -v </dev/null >&5) 2>&5
1460 echo "$as_me:1460: \$? = $ac_status" >&5
1461 (exit $ac_status); }
1462 { (eval echo "$as_me:1462: \"$ac_compiler -V </dev/null >&5\"") >&5
1463 (eval $ac_compiler -V </dev/null >&5) 2>&5
1465 echo "$as_me:1465: \$? = $ac_status" >&5
1466 (exit $ac_status); }
1468 cat >conftest.$ac_ext <<_ACEOF
1469 #line 1469 "configure"
1470 #include "confdefs.h"
1480 ac_clean_files_save=$ac_clean_files
1481 ac_clean_files="$ac_clean_files a.out a.exe"
1482 # Try to create an executable without -o first, disregard a.out.
1483 # It will help us diagnose broken compilers, and finding out an intuition
1485 echo "$as_me:1485: checking for C compiler default output" >&5
1486 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1487 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1488 if { (eval echo "$as_me:1488: \"$ac_link_default\"") >&5
1489 (eval $ac_link_default) 2>&5
1491 echo "$as_me:1491: \$? = $ac_status" >&5
1492 (exit $ac_status); }; then
1493 # Find the output, starting from the most likely. This scheme is
1494 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1496 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1497 ls a.out conftest 2>/dev/null;
1498 ls a.* conftest.* 2>/dev/null`; do
1500 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1501 a.out ) # We found the default executable, but exeext='' is most
1504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1505 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1512 echo "$as_me: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1514 { { echo "$as_me:1514: error: C compiler cannot create executables" >&5
1515 echo "$as_me: error: C compiler cannot create executables" >&2;}
1516 { (exit 77); exit 77; }; }
1519 ac_exeext=$ac_cv_exeext
1520 echo "$as_me:1520: result: $ac_file" >&5
1521 echo "${ECHO_T}$ac_file" >&6
1523 # Check the compiler produces executables we can run. If not, either
1524 # the compiler is broken, or we cross compile.
1525 echo "$as_me:1525: checking whether the C compiler works" >&5
1526 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1527 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1528 # If not cross compiling, check that we can run a simple program.
1529 if test "$cross_compiling" != yes; then
1530 if { ac_try='./$ac_file'
1531 { (eval echo "$as_me:1531: \"$ac_try\"") >&5
1534 echo "$as_me:1534: \$? = $ac_status" >&5
1535 (exit $ac_status); }; }; then
1538 if test "$cross_compiling" = maybe; then
1541 { { echo "$as_me:1541: error: cannot run C compiled programs.
1542 If you meant to cross compile, use \`--host'." >&5
1543 echo "$as_me: error: cannot run C compiled programs.
1544 If you meant to cross compile, use \`--host'." >&2;}
1545 { (exit 1); exit 1; }; }
1549 echo "$as_me:1549: result: yes" >&5
1550 echo "${ECHO_T}yes" >&6
1552 rm -f a.out a.exe conftest$ac_cv_exeext
1553 ac_clean_files=$ac_clean_files_save
1554 # Check the compiler produces executables we can run. If not, either
1555 # the compiler is broken, or we cross compile.
1556 echo "$as_me:1556: checking whether we are cross compiling" >&5
1557 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1558 echo "$as_me:1558: result: $cross_compiling" >&5
1559 echo "${ECHO_T}$cross_compiling" >&6
1561 echo "$as_me:1561: checking for executable suffix" >&5
1562 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1563 if { (eval echo "$as_me:1563: \"$ac_link\"") >&5
1564 (eval $ac_link) 2>&5
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); }; then
1568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1569 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1570 # work properly (i.e., refer to `conftest.exe'), while it won't with
1572 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1574 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1582 { { echo "$as_me:1582: error: cannot compute EXEEXT: cannot compile and link" >&5
1583 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1584 { (exit 1); exit 1; }; }
1587 rm -f conftest$ac_cv_exeext
1588 echo "$as_me:1588: result: $ac_cv_exeext" >&5
1589 echo "${ECHO_T}$ac_cv_exeext" >&6
1591 rm -f conftest.$ac_ext
1592 EXEEXT=$ac_cv_exeext
1594 echo "$as_me:1594: checking for object suffix" >&5
1595 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1596 if test "${ac_cv_objext+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 cat >conftest.$ac_ext <<_ACEOF
1600 #line 1600 "configure"
1601 #include "confdefs.h"
1611 rm -f conftest.o conftest.obj
1612 if { (eval echo "$as_me:1612: \"$ac_compile\"") >&5
1613 (eval $ac_compile) 2>&5
1615 echo "$as_me:1615: \$? = $ac_status" >&5
1616 (exit $ac_status); }; then
1617 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1619 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1620 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1625 echo "$as_me: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 { { echo "$as_me:1627: error: cannot compute OBJEXT: cannot compile" >&5
1628 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1629 { (exit 1); exit 1; }; }
1632 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1634 echo "$as_me:1634: result: $ac_cv_objext" >&5
1635 echo "${ECHO_T}$ac_cv_objext" >&6
1636 OBJEXT=$ac_cv_objext
1638 echo "$as_me:1638: checking whether we are using the GNU C compiler" >&5
1639 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1640 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 cat >conftest.$ac_ext <<_ACEOF
1644 #line 1644 "configure"
1645 #include "confdefs.h"
1658 rm -f conftest.$ac_objext
1659 if { (eval echo "$as_me:1659: \"$ac_compile\"") >&5
1660 (eval $ac_compile) 2>&5
1662 echo "$as_me:1662: \$? = $ac_status" >&5
1663 (exit $ac_status); } &&
1664 { ac_try='test -s conftest.$ac_objext'
1665 { (eval echo "$as_me:1665: \"$ac_try\"") >&5
1668 echo "$as_me:1668: \$? = $ac_status" >&5
1669 (exit $ac_status); }; }; then
1672 echo "$as_me: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1676 rm -f conftest.$ac_objext conftest.$ac_ext
1677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1680 echo "$as_me:1680: result: $ac_cv_c_compiler_gnu" >&5
1681 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1682 GCC=`test $ac_compiler_gnu = yes && echo yes`
1683 ac_test_CFLAGS=${CFLAGS+set}
1684 ac_save_CFLAGS=$CFLAGS
1686 echo "$as_me:1686: checking whether $CC accepts -g" >&5
1687 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1688 if test "${ac_cv_prog_cc_g+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 cat >conftest.$ac_ext <<_ACEOF
1692 #line 1692 "configure"
1693 #include "confdefs.h"
1703 rm -f conftest.$ac_objext
1704 if { (eval echo "$as_me:1704: \"$ac_compile\"") >&5
1705 (eval $ac_compile) 2>&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); } &&
1709 { ac_try='test -s conftest.$ac_objext'
1710 { (eval echo "$as_me:1710: \"$ac_try\"") >&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }; }; then
1717 echo "$as_me: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1721 rm -f conftest.$ac_objext conftest.$ac_ext
1723 echo "$as_me:1723: result: $ac_cv_prog_cc_g" >&5
1724 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1725 if test "$ac_test_CFLAGS" = set; then
1726 CFLAGS=$ac_save_CFLAGS
1727 elif test $ac_cv_prog_cc_g = yes; then
1728 if test "$GCC" = yes; then
1734 if test "$GCC" = yes; then
1740 # Some people use a C++ compiler to compile C. Since we use `exit',
1741 # in C++ we need to declare it. In case someone uses the same compiler
1742 # for both compiling C and C++ we need to have the C++ compiler decide
1743 # the declaration of exit, since it's the most demanding environment.
1744 cat >conftest.$ac_ext <<_ACEOF
1749 rm -f conftest.$ac_objext
1750 if { (eval echo "$as_me:1750: \"$ac_compile\"") >&5
1751 (eval $ac_compile) 2>&5
1753 echo "$as_me:1753: \$? = $ac_status" >&5
1754 (exit $ac_status); } &&
1755 { ac_try='test -s conftest.$ac_objext'
1756 { (eval echo "$as_me:1756: \"$ac_try\"") >&5
1759 echo "$as_me:1759: \$? = $ac_status" >&5
1760 (exit $ac_status); }; }; then
1761 for ac_declaration in \
1763 '#include <stdlib.h>' \
1764 'extern "C" void std::exit (int) throw (); using std::exit;' \
1765 'extern "C" void std::exit (int); using std::exit;' \
1766 'extern "C" void exit (int) throw ();' \
1767 'extern "C" void exit (int);' \
1770 cat >conftest.$ac_ext <<_ACEOF
1771 #line 1771 "configure"
1772 #include "confdefs.h"
1783 rm -f conftest.$ac_objext
1784 if { (eval echo "$as_me:1784: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); } &&
1789 { ac_try='test -s conftest.$ac_objext'
1790 { (eval echo "$as_me:1790: \"$ac_try\"") >&5
1793 echo "$as_me:1793: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1801 rm -f conftest.$ac_objext conftest.$ac_ext
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line 1803 "configure"
1804 #include "confdefs.h"
1814 rm -f conftest.$ac_objext
1815 if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
1816 (eval $ac_compile) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); } &&
1820 { ac_try='test -s conftest.$ac_objext'
1821 { (eval echo "$as_me:1821: \"$ac_try\"") >&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); }; }; then
1828 echo "$as_me: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 rm -f conftest.$ac_objext conftest.$ac_ext
1834 if test -n "$ac_declaration"; then
1835 echo '#ifdef __cplusplus' >>confdefs.h
1836 echo $ac_declaration >>confdefs.h
1837 echo '#endif' >>confdefs.h
1841 echo "$as_me: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1844 rm -f conftest.$ac_objext conftest.$ac_ext
1846 ac_cpp='$CPP $CPPFLAGS'
1847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 ac_main_return=return
1853 if test "$GCC" = yes ; then
1854 echo "$as_me:1854: checking version of $CC" >&5
1855 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1856 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.].*//'`"
1857 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1858 echo "$as_me:1858: result: $GCC_VERSION" >&5
1859 echo "${ECHO_T}$GCC_VERSION" >&6
1864 if test "$GCC" = yes ; then
1867 echo "$as_me:1867: checking if this is really Intel C compiler" >&5
1868 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1869 cf_save_CFLAGS="$CFLAGS"
1870 CFLAGS="$CFLAGS -no-gcc"
1871 cat >conftest.$ac_ext <<_ACEOF
1872 #line 1872 "configure"
1873 #include "confdefs.h"
1879 #ifdef __INTEL_COMPILER
1888 rm -f conftest.$ac_objext
1889 if { (eval echo "$as_me:1889: \"$ac_compile\"") >&5
1890 (eval $ac_compile) 2>&5
1892 echo "$as_me:1892: \$? = $ac_status" >&5
1893 (exit $ac_status); } &&
1894 { ac_try='test -s conftest.$ac_objext'
1895 { (eval echo "$as_me:1895: \"$ac_try\"") >&5
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); }; }; then
1901 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1904 echo "$as_me: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 rm -f conftest.$ac_objext conftest.$ac_ext
1908 CFLAGS="$cf_save_CFLAGS"
1909 echo "$as_me:1909: result: $INTEL_COMPILER" >&5
1910 echo "${ECHO_T}$INTEL_COMPILER" >&6
1917 if test "$GCC" = yes ; then
1918 echo "$as_me:1918: checking if this is really Clang C compiler" >&5
1919 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1920 cf_save_CFLAGS="$CFLAGS"
1921 CFLAGS="$CFLAGS -Qunused-arguments"
1922 cat >conftest.$ac_ext <<_ACEOF
1923 #line 1923 "configure"
1924 #include "confdefs.h"
1939 rm -f conftest.$ac_objext
1940 if { (eval echo "$as_me:1940: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1943 echo "$as_me:1943: \$? = $ac_status" >&5
1944 (exit $ac_status); } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:1946: \"$ac_try\"") >&5
1949 echo "$as_me:1949: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1952 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
1955 echo "$as_me: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1958 rm -f conftest.$ac_objext conftest.$ac_ext
1959 CFLAGS="$cf_save_CFLAGS"
1960 echo "$as_me:1960: result: $CLANG_COMPILER" >&5
1961 echo "${ECHO_T}$CLANG_COMPILER" >&6
1964 echo "$as_me:1964: checking for $CC option to accept ANSI C" >&5
1965 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1966 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 ac_cv_prog_cc_stdc=no
1971 cat >conftest.$ac_ext <<_ACEOF
1972 #line 1972 "configure"
1973 #include "confdefs.h"
1976 #include <sys/types.h>
1977 #include <sys/stat.h>
1978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1979 struct buf { int x; };
1980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1981 static char *e (p, i)
1987 static char *f (char * (*g) (char **, int), char **p, ...)
1992 s = g (p, va_arg (v,int));
1996 int test (int i, double x);
1997 struct s1 {int (*f) (int a);};
1998 struct s2 {int (*f) (double a);};
1999 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2005 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2010 # Don't try gcc -ansi; that turns off useful extensions and
2011 # breaks some systems' header files.
2012 # AIX -qlanglvl=ansi
2013 # Ultrix and OSF/1 -std1
2014 # HP-UX 10.20 and later -Ae
2015 # HP-UX older versions -Aa -D_HPUX_SOURCE
2016 # SVR4 -Xc -D__EXTENSIONS__
2017 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2019 CC="$ac_save_CC $ac_arg"
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:2027: \"$ac_try\"") >&5
2030 echo "$as_me:2030: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2032 ac_cv_prog_cc_stdc=$ac_arg
2035 echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2038 rm -f conftest.$ac_objext
2040 rm -f conftest.$ac_ext conftest.$ac_objext
2045 case "x$ac_cv_prog_cc_stdc" in
2047 echo "$as_me:2047: result: none needed" >&5
2048 echo "${ECHO_T}none needed" >&6 ;;
2050 echo "$as_me:2050: result: $ac_cv_prog_cc_stdc" >&5
2051 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2052 CC="$CC $ac_cv_prog_cc_stdc" ;;
2055 # This should have been defined by AC_PROG_CC
2058 echo "$as_me:2058: checking \$CFLAGS variable" >&5
2059 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2062 echo "$as_me:2062: result: broken" >&5
2063 echo "${ECHO_T}broken" >&6
2064 { echo "$as_me:2064: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2065 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2068 for cf_arg in $cf_flags
2074 cf_new_extra_cppflags=
2076 for cf_add_cflags in $cf_arg
2078 case $cf_fix_cppflags in
2080 case $cf_add_cflags in
2081 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2082 case $cf_add_cflags in
2084 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2086 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2087 && test -z "${cf_tst_cflags}" \
2088 && cf_fix_cppflags=yes
2090 if test $cf_fix_cppflags = yes ; then
2092 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2093 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2096 elif test "${cf_tst_cflags}" = "\"'" ; then
2098 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2099 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2109 case $cf_add_cflags in
2111 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2113 CPPFLAGS=`echo "$CPPFLAGS" | \
2114 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2115 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2120 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2121 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2128 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2129 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2136 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2137 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2139 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2141 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2142 && test -z "${cf_tst_cflags}" \
2143 && cf_fix_cppflags=no
2148 if test -n "$cf_new_cflags" ; then
2150 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2151 CFLAGS="${CFLAGS}$cf_new_cflags"
2155 if test -n "$cf_new_cppflags" ; then
2157 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2158 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2162 if test -n "$cf_new_extra_cppflags" ; then
2164 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2165 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2172 echo "$as_me:2172: result: ok" >&5
2173 echo "${ECHO_T}ok" >&6
2177 echo "$as_me:2177: checking \$CC variable" >&5
2178 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2181 echo "$as_me:2181: result: broken" >&5
2182 echo "${ECHO_T}broken" >&6
2183 { echo "$as_me:2183: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2184 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2186 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2187 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2189 for cf_arg in $cf_flags
2197 cf_new_extra_cppflags=
2199 for cf_add_cflags in $cf_arg
2201 case $cf_fix_cppflags in
2203 case $cf_add_cflags in
2204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2205 case $cf_add_cflags in
2207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2210 && test -z "${cf_tst_cflags}" \
2211 && cf_fix_cppflags=yes
2213 if test $cf_fix_cppflags = yes ; then
2215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2219 elif test "${cf_tst_cflags}" = "\"'" ; then
2221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2232 case $cf_add_cflags in
2234 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2236 CPPFLAGS=`echo "$CPPFLAGS" | \
2237 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2238 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2243 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2244 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2251 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2252 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2259 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2260 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2262 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2265 && test -z "${cf_tst_cflags}" \
2266 && cf_fix_cppflags=no
2271 if test -n "$cf_new_cflags" ; then
2273 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2274 CFLAGS="${CFLAGS}$cf_new_cflags"
2278 if test -n "$cf_new_cppflags" ; then
2280 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2281 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2285 if test -n "$cf_new_extra_cppflags" ; then
2287 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2288 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2298 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2300 echo "${as_me:-configure}:2300: testing resulting CC: '$CC' ..." 1>&5
2302 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2304 echo "${as_me:-configure}:2304: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2306 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2308 echo "${as_me:-configure}:2308: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2312 echo "$as_me:2312: result: ok" >&5
2313 echo "${ECHO_T}ok" >&6
2317 echo "$as_me:2317: checking for inline" >&5
2318 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2319 if test "${ac_cv_c_inline+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 for ac_kw in inline __inline__ __inline; do
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2328 static $ac_kw int static_foo () {return 0; }
2329 $ac_kw int foo () {return 0; }
2333 rm -f conftest.$ac_objext
2334 if { (eval echo "$as_me:2334: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2337 echo "$as_me:2337: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:2340: \"$ac_try\"") >&5
2343 echo "$as_me:2343: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_cv_c_inline=$ac_kw; break
2347 echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2354 echo "$as_me:2354: result: $ac_cv_c_inline" >&5
2355 echo "${ECHO_T}$ac_cv_c_inline" >&6
2356 case $ac_cv_c_inline in
2359 cat >>confdefs.h <<\EOF
2363 *) cat >>confdefs.h <<EOF
2364 #define inline $ac_cv_c_inline
2370 ac_cpp='$CPP $CPPFLAGS'
2371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374 ac_main_return=return
2375 echo "$as_me:2375: checking how to run the C preprocessor" >&5
2376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2377 # On Suns, sometimes $CPP names a directory.
2378 if test -n "$CPP" && test -d "$CPP"; then
2381 if test -z "$CPP"; then
2382 if test "${ac_cv_prog_CPP+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 # Double quotes because CPP needs to be expanded
2386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2389 for ac_c_preproc_warn_flag in '' yes
2391 # Use a header file that comes with gcc, so configuring glibc
2392 # with a fresh cross-compiler works.
2393 # On the NeXT, cc -E runs the code through the compiler's parser,
2394 # not just through cpp. "Syntax error" is here to catch this case.
2395 cat >conftest.$ac_ext <<_ACEOF
2396 #line 2396 "configure"
2397 #include "confdefs.h"
2401 if { (eval echo "$as_me:2401: \"$ac_cpp conftest.$ac_ext\"") >&5
2402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2404 egrep -v '^ *\+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:2407: \$? = $ac_status" >&5
2408 (exit $ac_status); } >/dev/null; then
2409 if test -s conftest.err; then
2410 ac_cpp_err=$ac_c_preproc_warn_flag
2417 if test -z "$ac_cpp_err"; then
2420 echo "$as_me: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2422 # Broken: fails on valid input.
2425 rm -f conftest.err conftest.$ac_ext
2427 # OK, works on sane cases. Now check whether non-existent headers
2428 # can be detected and how.
2429 cat >conftest.$ac_ext <<_ACEOF
2430 #line 2430 "configure"
2431 #include "confdefs.h"
2432 #include <ac_nonexistent.h>
2434 if { (eval echo "$as_me:2434: \"$ac_cpp conftest.$ac_ext\"") >&5
2435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2437 egrep -v '^ *\+' conftest.er1 >conftest.err
2439 cat conftest.err >&5
2440 echo "$as_me:2440: \$? = $ac_status" >&5
2441 (exit $ac_status); } >/dev/null; then
2442 if test -s conftest.err; then
2443 ac_cpp_err=$ac_c_preproc_warn_flag
2450 if test -z "$ac_cpp_err"; then
2451 # Broken: success on invalid input.
2454 echo "$as_me: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2456 # Passes both tests.
2460 rm -f conftest.err conftest.$ac_ext
2463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2464 rm -f conftest.err conftest.$ac_ext
2465 if $ac_preproc_ok; then
2477 echo "$as_me:2477: result: $CPP" >&5
2478 echo "${ECHO_T}$CPP" >&6
2480 for ac_c_preproc_warn_flag in '' yes
2482 # Use a header file that comes with gcc, so configuring glibc
2483 # with a fresh cross-compiler works.
2484 # On the NeXT, cc -E runs the code through the compiler's parser,
2485 # not just through cpp. "Syntax error" is here to catch this case.
2486 cat >conftest.$ac_ext <<_ACEOF
2487 #line 2487 "configure"
2488 #include "confdefs.h"
2492 if { (eval echo "$as_me:2492: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495 egrep -v '^ *\+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:2498: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2508 if test -z "$ac_cpp_err"; then
2511 echo "$as_me: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 # Broken: fails on valid input.
2516 rm -f conftest.err conftest.$ac_ext
2518 # OK, works on sane cases. Now check whether non-existent headers
2519 # can be detected and how.
2520 cat >conftest.$ac_ext <<_ACEOF
2521 #line 2521 "configure"
2522 #include "confdefs.h"
2523 #include <ac_nonexistent.h>
2525 if { (eval echo "$as_me:2525: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 egrep -v '^ *\+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:2531: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2541 if test -z "$ac_cpp_err"; then
2542 # Broken: success on invalid input.
2545 echo "$as_me: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 # Passes both tests.
2551 rm -f conftest.err conftest.$ac_ext
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2559 { { echo "$as_me:2559: error: C preprocessor \"$CPP\" fails sanity check" >&5
2560 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2561 { (exit 1); exit 1; }; }
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 ac_main_return=return
2571 for ac_prog in mawk gawk nawk awk
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy $ac_prog; ac_word=$2
2575 echo "$as_me:2575: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2577 if test "${ac_cv_prog_AWK+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$AWK"; then
2581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2583 ac_save_IFS=$IFS; IFS=$ac_path_separator
2585 for ac_dir in $ac_dummy; do
2587 test -z "$ac_dir" && ac_dir=.
2588 $as_executable_p "$ac_dir/$ac_word" || continue
2589 ac_cv_prog_AWK="$ac_prog"
2590 echo "$as_me:2590: found $ac_dir/$ac_word" >&5
2597 if test -n "$AWK"; then
2598 echo "$as_me:2598: result: $AWK" >&5
2599 echo "${ECHO_T}$AWK" >&6
2601 echo "$as_me:2601: result: no" >&5
2602 echo "${ECHO_T}no" >&6
2605 test -n "$AWK" && break
2608 # Find a good install program. We prefer a C program (faster),
2609 # so one script is as good as another. But avoid the broken or
2610 # incompatible versions:
2611 # SysV /etc/install, /usr/sbin/install
2612 # SunOS /usr/etc/install
2613 # IRIX /sbin/install
2615 # AmigaOS /C/install, which installs bootblocks on floppy discs
2616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2619 # ./install, which can be erroneously created by make from ./install.sh.
2620 echo "$as_me:2620: checking for a BSD compatible install" >&5
2621 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2622 if test -z "$INSTALL"; then
2623 if test "${ac_cv_path_install+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 ac_save_IFS=$IFS; IFS=$ac_path_separator
2627 for ac_dir in $PATH; do
2629 # Account for people who put trailing slashes in PATH elements.
2631 / | ./ | .// | /cC/* \
2632 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2635 # OSF1 and SCO ODT 3.0 have their own names for install.
2636 # Don't use installbsd from OSF since it installs stuff as root
2638 for ac_prog in ginstall scoinst install; do
2639 if $as_executable_p "$ac_dir/$ac_prog"; then
2640 if test $ac_prog = install &&
2641 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2642 # AIX install. It has an incompatible calling convention.
2644 elif test $ac_prog = install &&
2645 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2646 # program-specific install script used by HP pwplus--don't use.
2649 ac_cv_path_install="$ac_dir/$ac_prog -c"
2659 if test "${ac_cv_path_install+set}" = set; then
2660 INSTALL=$ac_cv_path_install
2662 # As a last resort, use the slow shell script. We don't cache a
2663 # path for INSTALL within a source directory, because that will
2664 # break other packages using the cache if that directory is
2665 # removed, or if the path is relative.
2666 INSTALL=$ac_install_sh
2669 echo "$as_me:2669: result: $INSTALL" >&5
2670 echo "${ECHO_T}$INSTALL" >&6
2672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2673 # It thinks the first close brace ends the variable substitution.
2674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2678 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2684 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2685 test -z "$cf_dir" && cf_dir=.
2686 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2690 echo "$as_me:2690: checking if you want to install stripped executables" >&5
2691 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2693 # Check whether --enable-stripping or --disable-stripping was given.
2694 if test "${enable_stripping+set}" = set; then
2695 enableval="$enable_stripping"
2696 test "$enableval" != no && enableval=yes
2697 if test "$enableval" != "yes" ; then
2707 echo "$as_me:2707: result: $with_stripping" >&5
2708 echo "${ECHO_T}$with_stripping" >&6
2710 if test "$with_stripping" = yes
2717 : ${INSTALL:=install}
2718 echo "$as_me:2718: checking if install accepts -p option" >&5
2719 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2720 if test "${cf_cv_install_p+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2730 if test -f conftest.out/conftest.in
2732 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2733 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2734 if test -s conftest.err
2749 echo "$as_me:2749: result: $cf_cv_install_p" >&5
2750 echo "${ECHO_T}$cf_cv_install_p" >&6
2752 echo "$as_me:2752: checking if install needs to be told about ownership" >&5
2753 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2754 case `$ac_config_guess` in
2763 echo "$as_me:2763: result: $with_install_o" >&5
2764 echo "${ECHO_T}$with_install_o" >&6
2765 if test "x$with_install_o" = xyes
2767 INSTALL_OPT_O=`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`
2772 for ac_prog in lint cppcheck splint
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 echo "$as_me:2776: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_LINT+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$LINT"; then
2782 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2784 ac_save_IFS=$IFS; IFS=$ac_path_separator
2786 for ac_dir in $ac_dummy; do
2788 test -z "$ac_dir" && ac_dir=.
2789 $as_executable_p "$ac_dir/$ac_word" || continue
2790 ac_cv_prog_LINT="$ac_prog"
2791 echo "$as_me:2791: found $ac_dir/$ac_word" >&5
2797 LINT=$ac_cv_prog_LINT
2798 if test -n "$LINT"; then
2799 echo "$as_me:2799: result: $LINT" >&5
2800 echo "${ECHO_T}$LINT" >&6
2802 echo "$as_me:2802: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2806 test -n "$LINT" && break
2810 (xcppcheck|x*/cppcheck)
2811 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
2815 echo "$as_me:2815: checking if filesystem supports mixed-case filenames" >&5
2816 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2817 if test "${cf_cv_mixedcase+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test "$cross_compiling" = yes ; then
2822 case $target_alias in
2823 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2831 rm -f conftest CONFTEST
2833 if test -f CONFTEST ; then
2838 rm -f conftest CONFTEST
2842 echo "$as_me:2842: result: $cf_cv_mixedcase" >&5
2843 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2844 test "$cf_cv_mixedcase" = yes &&
2845 cat >>confdefs.h <<\EOF
2846 #define MIXEDCASE_FILENAMES 1
2849 for ac_prog in exctags ctags
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 echo "$as_me:2853: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CTAGS+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$CTAGS"; then
2859 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2861 ac_save_IFS=$IFS; IFS=$ac_path_separator
2863 for ac_dir in $ac_dummy; do
2865 test -z "$ac_dir" && ac_dir=.
2866 $as_executable_p "$ac_dir/$ac_word" || continue
2867 ac_cv_prog_CTAGS="$ac_prog"
2868 echo "$as_me:2868: found $ac_dir/$ac_word" >&5
2874 CTAGS=$ac_cv_prog_CTAGS
2875 if test -n "$CTAGS"; then
2876 echo "$as_me:2876: result: $CTAGS" >&5
2877 echo "${ECHO_T}$CTAGS" >&6
2879 echo "$as_me:2879: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2883 test -n "$CTAGS" && break
2886 for ac_prog in exetags etags
2888 # Extract the first word of "$ac_prog", so it can be a program name with args.
2889 set dummy $ac_prog; ac_word=$2
2890 echo "$as_me:2890: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_ETAGS+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 if test -n "$ETAGS"; then
2896 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2898 ac_save_IFS=$IFS; IFS=$ac_path_separator
2900 for ac_dir in $ac_dummy; do
2902 test -z "$ac_dir" && ac_dir=.
2903 $as_executable_p "$ac_dir/$ac_word" || continue
2904 ac_cv_prog_ETAGS="$ac_prog"
2905 echo "$as_me:2905: found $ac_dir/$ac_word" >&5
2911 ETAGS=$ac_cv_prog_ETAGS
2912 if test -n "$ETAGS"; then
2913 echo "$as_me:2913: result: $ETAGS" >&5
2914 echo "${ECHO_T}$ETAGS" >&6
2916 echo "$as_me:2916: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2920 test -n "$ETAGS" && break
2923 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2924 set dummy ${CTAGS:-ctags}; ac_word=$2
2925 echo "$as_me:2925: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2927 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 if test -n "$MAKE_LOWER_TAGS"; then
2931 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2933 ac_save_IFS=$IFS; IFS=$ac_path_separator
2935 for ac_dir in $ac_dummy; do
2937 test -z "$ac_dir" && ac_dir=.
2938 $as_executable_p "$ac_dir/$ac_word" || continue
2939 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2940 echo "$as_me:2940: found $ac_dir/$ac_word" >&5
2944 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2947 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2948 if test -n "$MAKE_LOWER_TAGS"; then
2949 echo "$as_me:2949: result: $MAKE_LOWER_TAGS" >&5
2950 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2952 echo "$as_me:2952: result: no" >&5
2953 echo "${ECHO_T}no" >&6
2956 if test "$cf_cv_mixedcase" = yes ; then
2957 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2958 set dummy ${ETAGS:-etags}; ac_word=$2
2959 echo "$as_me:2959: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 if test -n "$MAKE_UPPER_TAGS"; then
2965 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2967 ac_save_IFS=$IFS; IFS=$ac_path_separator
2969 for ac_dir in $ac_dummy; do
2971 test -z "$ac_dir" && ac_dir=.
2972 $as_executable_p "$ac_dir/$ac_word" || continue
2973 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2974 echo "$as_me:2974: found $ac_dir/$ac_word" >&5
2978 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2981 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2982 if test -n "$MAKE_UPPER_TAGS"; then
2983 echo "$as_me:2983: result: $MAKE_UPPER_TAGS" >&5
2984 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2986 echo "$as_me:2986: result: no" >&5
2987 echo "${ECHO_T}no" >&6
2994 if test "$MAKE_UPPER_TAGS" = yes ; then
3000 if test "$MAKE_LOWER_TAGS" = yes ; then
3006 echo "$as_me:3006: checking if -lm needed for math functions" >&5
3007 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
3008 if test "${cf_cv_need_libm+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line 3013 "configure"
3014 #include "confdefs.h"
3023 double x = rand(); printf("result = %g\n", pow(sin(x),x))
3028 rm -f conftest.$ac_objext conftest$ac_exeext
3029 if { (eval echo "$as_me:3029: \"$ac_link\"") >&5
3030 (eval $ac_link) 2>&5
3032 echo "$as_me:3032: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -s conftest$ac_exeext'
3035 { (eval echo "$as_me:3035: \"$ac_try\"") >&5
3038 echo "$as_me:3038: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3042 echo "$as_me: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3048 echo "$as_me:3048: result: $cf_cv_need_libm" >&5
3049 echo "${ECHO_T}$cf_cv_need_libm" >&6
3050 if test "$cf_cv_need_libm" = yes
3058 CC_SHARED_OPTS=unknown
3059 CPPFLAGS="$CPPFLAGS"
3061 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
3062 DFT_UPR_MODEL="NORMAL"
3075 PACKAGE="ncurses-examples"
3081 TINFO_LIBS='$(LIBS_CURSES)'
3082 cf_cv_abi_version=""
3083 cf_cv_rel_version=""
3089 if test "$GCC" = yes
3091 cat > conftest.i <<EOF
3093 #define GCC_PRINTF 0
3098 #ifndef GCC_NORETURN
3099 #define GCC_NORETURN /* nothing */
3102 #define GCC_UNUSED /* nothing */
3105 if test "$GCC" = yes
3107 { echo "$as_me:3107: checking for $CC __attribute__ directives..." >&5
3108 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3110 "${as_me:-configure}"
3111 #include "confdefs.h"
3112 #include "conftest.h"
3113 #include "conftest.i"
3115 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3117 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3120 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3122 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3124 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3125 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3126 extern void foo(void) GCC_NORETURN;
3127 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
3129 cf_printf_attribute=no
3130 cf_scanf_attribute=no
3131 for cf_attribute in scanf printf unused noreturn
3134 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3136 cf_directive="__attribute__(($cf_attribute))"
3137 echo "checking for $CC $cf_directive" 1>&5
3139 case $cf_attribute in
3141 cf_printf_attribute=yes
3142 cat >conftest.h <<EOF
3143 #define GCC_$cf_ATTRIBUTE 1
3147 cf_scanf_attribute=yes
3148 cat >conftest.h <<EOF
3149 #define GCC_$cf_ATTRIBUTE 1
3153 cat >conftest.h <<EOF
3154 #define GCC_$cf_ATTRIBUTE $cf_directive
3159 if { (eval echo "$as_me:3159: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>&5
3162 echo "$as_me:3162: \$? = $ac_status" >&5
3163 (exit $ac_status); }; then
3164 test -n "$verbose" && echo "$as_me:3164: result: ... $cf_attribute" >&5
3165 echo "${ECHO_T}... $cf_attribute" >&6
3166 cat conftest.h >>confdefs.h
3167 case $cf_attribute in
3170 cat >>confdefs.h <<EOF
3171 #define GCC_NORETURN $cf_directive
3176 cf_value='/* nothing */'
3177 if test "$cf_printf_attribute" != no ; then
3178 cf_value='__attribute__((format(printf,fmt,var)))'
3180 cat >>confdefs.h <<\EOF
3181 #define GCC_PRINTF 1
3186 cat >>confdefs.h <<EOF
3187 #define GCC_PRINTFLIKE(fmt,var) $cf_value
3192 cf_value='/* nothing */'
3193 if test "$cf_scanf_attribute" != no ; then
3194 cf_value='__attribute__((format(scanf,fmt,var)))'
3196 cat >>confdefs.h <<\EOF
3202 cat >>confdefs.h <<EOF
3203 #define GCC_SCANFLIKE(fmt,var) $cf_value
3209 cat >>confdefs.h <<EOF
3210 #define GCC_UNUSED $cf_directive
3218 fgrep define conftest.i >>confdefs.h
3223 echo "$as_me:3223: checking if you want to work around bogus compiler/loader warnings" >&5
3224 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
3226 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3227 if test "${enable_string_hacks+set}" = set; then
3228 enableval="$enable_string_hacks"
3229 with_string_hacks=$enableval
3231 with_string_hacks=no
3233 echo "$as_me:3233: result: $with_string_hacks" >&5
3234 echo "${ECHO_T}$with_string_hacks" >&6
3236 if test "x$with_string_hacks" = "xyes"; then
3238 cat >>confdefs.h <<\EOF
3239 #define USE_STRING_HACKS 1
3242 { echo "$as_me:3242: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
3243 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3244 echo "$as_me:3244: checking for strlcat" >&5
3245 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
3246 if test "${ac_cv_func_strlcat+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 cat >conftest.$ac_ext <<_ACEOF
3250 #line 3250 "configure"
3251 #include "confdefs.h"
3252 #define strlcat autoconf_temporary
3253 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3260 /* We use char because int might match the return type of a gcc2
3261 builtin and then its argument prototype would still apply. */
3262 char strlcat (void);
3268 /* The GNU C library defines stubs for functions which it implements
3269 to always fail with ENOSYS. Some functions are actually named
3270 something starting with __ and the normal name is an alias. */
3271 #if defined (__stub_strlcat) || defined (__stub___strlcat)
3272 #error found stub for strlcat
3280 rm -f conftest.$ac_objext conftest$ac_exeext
3281 if { (eval echo "$as_me:3281: \"$ac_link\"") >&5
3282 (eval $ac_link) 2>&5
3284 echo "$as_me:3284: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -s conftest$ac_exeext'
3287 { (eval echo "$as_me:3287: \"$ac_try\"") >&5
3290 echo "$as_me:3290: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 ac_cv_func_strlcat=yes
3294 echo "$as_me: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3296 ac_cv_func_strlcat=no
3298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3300 echo "$as_me:3300: result: $ac_cv_func_strlcat" >&5
3301 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
3302 if test $ac_cv_func_strlcat = yes; then
3304 cat >>confdefs.h <<\EOF
3305 #define HAVE_STRLCAT 1
3310 echo "$as_me:3310: checking for strlcat in -lbsd" >&5
3311 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3312 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 ac_check_lib_save_LIBS=$LIBS
3317 cat >conftest.$ac_ext <<_ACEOF
3318 #line 3318 "configure"
3319 #include "confdefs.h"
3321 /* Override any gcc2 internal prototype to avoid an error. */
3325 /* We use char because int might match the return type of a gcc2
3326 builtin and then its argument prototype would still apply. */
3336 rm -f conftest.$ac_objext conftest$ac_exeext
3337 if { (eval echo "$as_me:3337: \"$ac_link\"") >&5
3338 (eval $ac_link) 2>&5
3340 echo "$as_me:3340: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -s conftest$ac_exeext'
3343 { (eval echo "$as_me:3343: \"$ac_try\"") >&5
3346 echo "$as_me:3346: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_cv_lib_bsd_strlcat=yes
3350 echo "$as_me: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 ac_cv_lib_bsd_strlcat=no
3354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3355 LIBS=$ac_check_lib_save_LIBS
3357 echo "$as_me:3357: result: $ac_cv_lib_bsd_strlcat" >&5
3358 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3359 if test $ac_cv_lib_bsd_strlcat = yes; then
3364 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
3366 for cf_add_1lib in $cf_add_0lib; do
3367 for cf_add_2lib in $cf_add_libs; do
3368 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
3373 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
3377 for ac_header in bsd/string.h
3379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3380 echo "$as_me:3380: checking for $ac_header" >&5
3381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line 3386 "configure"
3387 #include "confdefs.h"
3388 #include <$ac_header>
3390 if { (eval echo "$as_me:3390: \"$ac_cpp conftest.$ac_ext\"") >&5
3391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3393 egrep -v '^ *\+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:3396: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null; then
3398 if test -s conftest.err; then
3399 ac_cpp_err=$ac_c_preproc_warn_flag
3406 if test -z "$ac_cpp_err"; then
3407 eval "$as_ac_Header=yes"
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3411 eval "$as_ac_Header=no"
3413 rm -f conftest.err conftest.$ac_ext
3415 echo "$as_me:3415: result: `eval echo '${'$as_ac_Header'}'`" >&5
3416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3418 cat >>confdefs.h <<EOF
3419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3425 cat >>confdefs.h <<\EOF
3426 #define HAVE_STRLCAT 1
3433 for ac_func in strlcpy snprintf
3435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3436 echo "$as_me:3436: checking for $ac_func" >&5
3437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3438 if eval "test \"\${$as_ac_var+set}\" = set"; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3442 #line 3442 "configure"
3443 #include "confdefs.h"
3444 #define $ac_func autoconf_temporary
3445 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3454 char $ac_func (void);
3460 /* The GNU C library defines stubs for functions which it implements
3461 to always fail with ENOSYS. Some functions are actually named
3462 something starting with __ and the normal name is an alias. */
3463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3464 #error found stub for $ac_func
3472 rm -f conftest.$ac_objext conftest$ac_exeext
3473 if { (eval echo "$as_me:3473: \"$ac_link\"") >&5
3474 (eval $ac_link) 2>&5
3476 echo "$as_me:3476: \$? = $ac_status" >&5
3477 (exit $ac_status); } &&
3478 { ac_try='test -s conftest$ac_exeext'
3479 { (eval echo "$as_me:3479: \"$ac_try\"") >&5
3482 echo "$as_me:3482: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 eval "$as_ac_var=yes"
3486 echo "$as_me: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3488 eval "$as_ac_var=no"
3490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3492 echo "$as_me:3492: result: `eval echo '${'$as_ac_var'}'`" >&5
3493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3494 if test `eval echo '${'$as_ac_var'}'` = yes; then
3495 cat >>confdefs.h <<EOF
3496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3504 echo "$as_me:3504: checking if the POSIX test-macros are already defined" >&5
3505 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
3506 if test "${cf_cv_posix_visible+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 cat >conftest.$ac_ext <<_ACEOF
3511 #line 3511 "configure"
3512 #include "confdefs.h"
3518 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
3519 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
3520 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
3521 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
3522 #error conflicting symbols found
3529 rm -f conftest.$ac_objext
3530 if { (eval echo "$as_me:3530: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>&5
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -s conftest.$ac_objext'
3536 { (eval echo "$as_me:3536: \"$ac_try\"") >&5
3539 echo "$as_me:3539: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3541 cf_cv_posix_visible=no
3543 echo "$as_me: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3545 cf_cv_posix_visible=yes
3547 rm -f conftest.$ac_objext conftest.$ac_ext
3550 echo "$as_me:3550: result: $cf_cv_posix_visible" >&5
3551 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3553 if test "$cf_cv_posix_visible" = no; then
3556 cf_POSIX_C_SOURCE=199506L
3561 cf_xopen_source="-D_ALL_SOURCE"
3567 cf_xopen_source="-D_APPLE_C_SOURCE"
3570 cf_xopen_source="-D_DARWIN_C_SOURCE"
3573 (freebsd*|dragonfly*|midnightbsd*)
3574 # 5.x headers associate
3575 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3576 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3577 cf_POSIX_C_SOURCE=200112L
3579 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3582 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3585 cf_xopen_source="-D_HPUX_SOURCE"
3588 cf_xopen_source="-D_SGI_SOURCE"
3591 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3593 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3595 echo "$as_me:3595: checking if this is the GNU C library" >&5
3596 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3597 if test "${cf_cv_gnu_library+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 cat >conftest.$ac_ext <<_ACEOF
3602 #line 3602 "configure"
3603 #include "confdefs.h"
3604 #include <sys/types.h>
3609 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3611 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
3614 # error not GNU C library
3620 rm -f conftest.$ac_objext
3621 if { (eval echo "$as_me:3621: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:3627: \"$ac_try\"") >&5
3630 echo "$as_me:3630: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 cf_cv_gnu_library=yes
3634 echo "$as_me: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3636 cf_cv_gnu_library=no
3638 rm -f conftest.$ac_objext conftest.$ac_ext
3641 echo "$as_me:3641: result: $cf_cv_gnu_library" >&5
3642 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3644 if test x$cf_cv_gnu_library = xyes; then
3646 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3647 # was changed to help a little. newlib incorporated the change about 4
3649 echo "$as_me:3649: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3650 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3651 if test "${cf_cv_gnu_library_219+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3658 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3660 cat >conftest.$ac_ext <<_ACEOF
3661 #line 3661 "configure"
3662 #include "confdefs.h"
3663 #include <sys/types.h>
3668 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3670 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3673 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:3680: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>&5
3683 echo "$as_me:3683: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:3686: \"$ac_try\"") >&5
3689 echo "$as_me:3689: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 cf_cv_gnu_library_219=yes
3693 echo "$as_me: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3695 cf_cv_gnu_library_219=no
3697 rm -f conftest.$ac_objext conftest.$ac_ext
3701 echo "$as_me:3701: result: $cf_cv_gnu_library_219" >&5
3702 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3704 if test "x$cf_cv_gnu_library_219" = xyes; then
3706 echo "$as_me:3706: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3707 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3708 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 cf_new_extra_cppflags=
3717 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3719 case $cf_fix_cppflags in
3721 case $cf_add_cflags in
3722 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3723 case $cf_add_cflags in
3725 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3727 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3728 && test -z "${cf_tst_cflags}" \
3729 && cf_fix_cppflags=yes
3731 if test $cf_fix_cppflags = yes ; then
3733 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3734 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3737 elif test "${cf_tst_cflags}" = "\"'" ; then
3739 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3740 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3750 case $cf_add_cflags in
3752 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3754 CPPFLAGS=`echo "$CPPFLAGS" | \
3755 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3756 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3761 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3762 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3769 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3770 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3777 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3778 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3780 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3782 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3783 && test -z "${cf_tst_cflags}" \
3784 && cf_fix_cppflags=no
3789 if test -n "$cf_new_cflags" ; then
3791 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3792 CFLAGS="${CFLAGS}$cf_new_cflags"
3796 if test -n "$cf_new_cppflags" ; then
3798 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3799 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3803 if test -n "$cf_new_extra_cppflags" ; then
3805 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3806 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3810 cat >conftest.$ac_ext <<_ACEOF
3811 #line 3811 "configure"
3812 #include "confdefs.h"
3815 #include <sys/types.h>
3821 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3824 # error GNU C library is too old
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:3831: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3834 echo "$as_me:3834: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:3837: \"$ac_try\"") >&5
3840 echo "$as_me:3840: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 cf_cv_gnu_dftsrc_219=yes
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 cf_cv_gnu_dftsrc_219=no
3848 rm -f conftest.$ac_objext conftest.$ac_ext
3851 echo "$as_me:3851: result: $cf_cv_gnu_dftsrc_219" >&5
3852 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3853 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3855 cf_cv_gnu_dftsrc_219=maybe
3858 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3860 echo "$as_me:3860: checking if we must define _GNU_SOURCE" >&5
3861 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3862 if test "${cf_cv_gnu_source+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 cat >conftest.$ac_ext <<_ACEOF
3867 #line 3867 "configure"
3868 #include "confdefs.h"
3869 #include <sys/types.h>
3874 #ifndef _XOPEN_SOURCE
3875 #error expected _XOPEN_SOURCE to be defined
3881 rm -f conftest.$ac_objext
3882 if { (eval echo "$as_me:3882: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>&5
3885 echo "$as_me:3885: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -s conftest.$ac_objext'
3888 { (eval echo "$as_me:3888: \"$ac_try\"") >&5
3891 echo "$as_me:3891: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3895 echo "$as_me: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3902 cf_new_extra_cppflags=
3904 for cf_add_cflags in -D_GNU_SOURCE
3906 case $cf_fix_cppflags in
3908 case $cf_add_cflags in
3909 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3910 case $cf_add_cflags in
3912 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3914 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3915 && test -z "${cf_tst_cflags}" \
3916 && cf_fix_cppflags=yes
3918 if test $cf_fix_cppflags = yes ; then
3920 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3921 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3924 elif test "${cf_tst_cflags}" = "\"'" ; then
3926 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3927 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3937 case $cf_add_cflags in
3939 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3941 CPPFLAGS=`echo "$CPPFLAGS" | \
3942 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3943 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3948 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3949 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3956 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3957 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3964 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3965 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3967 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3969 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3970 && test -z "${cf_tst_cflags}" \
3971 && cf_fix_cppflags=no
3976 if test -n "$cf_new_cflags" ; then
3978 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3979 CFLAGS="${CFLAGS}$cf_new_cflags"
3983 if test -n "$cf_new_cppflags" ; then
3985 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3986 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3990 if test -n "$cf_new_extra_cppflags" ; then
3992 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3993 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3997 cat >conftest.$ac_ext <<_ACEOF
3998 #line 3998 "configure"
3999 #include "confdefs.h"
4000 #include <sys/types.h>
4005 #ifdef _XOPEN_SOURCE
4006 #error expected _XOPEN_SOURCE to be undefined
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:4013: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>&5
4016 echo "$as_me:4016: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (eval echo "$as_me:4019: \"$ac_try\"") >&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4026 echo "$as_me: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 cf_cv_gnu_source=yes
4030 rm -f conftest.$ac_objext conftest.$ac_ext
4034 rm -f conftest.$ac_objext conftest.$ac_ext
4037 echo "$as_me:4037: result: $cf_cv_gnu_source" >&5
4038 echo "${ECHO_T}$cf_cv_gnu_source" >&6
4040 if test "$cf_cv_gnu_source" = yes
4042 echo "$as_me:4042: checking if we should also define _DEFAULT_SOURCE" >&5
4043 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
4044 if test "${cf_cv_default_source+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4049 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line 4052 "configure"
4053 #include "confdefs.h"
4054 #include <sys/types.h>
4059 #ifdef _DEFAULT_SOURCE
4060 #error expected _DEFAULT_SOURCE to be undefined
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:4067: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
4070 echo "$as_me:4070: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:4073: \"$ac_try\"") >&5
4076 echo "$as_me:4076: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 cf_cv_default_source=no
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4082 cf_cv_default_source=yes
4084 rm -f conftest.$ac_objext conftest.$ac_ext
4087 echo "$as_me:4087: result: $cf_cv_default_source" >&5
4088 echo "${ECHO_T}$cf_cv_default_source" >&6
4089 if test "$cf_cv_default_source" = yes
4092 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4093 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4103 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
4106 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
4109 if test "$cf_cv_posix_visible" = no; then
4111 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4113 cf_save_CFLAGS="$CFLAGS"
4114 cf_save_CPPFLAGS="$CPPFLAGS"
4116 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4117 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4118 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4120 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4121 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4122 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4124 echo "$as_me:4124: checking if we should define _POSIX_C_SOURCE" >&5
4125 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4126 if test "${cf_cv_posix_c_source+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 echo "${as_me:-configure}:4130: testing if the symbol is already defined go no further ..." 1>&5
4132 cat >conftest.$ac_ext <<_ACEOF
4133 #line 4133 "configure"
4134 #include "confdefs.h"
4135 #include <sys/types.h>
4140 #ifndef _POSIX_C_SOURCE
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:4148: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>&5
4151 echo "$as_me:4151: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:4154: \"$ac_try\"") >&5
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 cf_cv_posix_c_source=no
4161 echo "$as_me: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4163 cf_want_posix_source=no
4164 case .$cf_POSIX_C_SOURCE in
4166 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4169 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4170 cf_want_posix_source=yes
4173 cf_want_posix_source=yes
4176 if test "$cf_want_posix_source" = yes ; then
4177 cat >conftest.$ac_ext <<_ACEOF
4178 #line 4178 "configure"
4179 #include "confdefs.h"
4180 #include <sys/types.h>
4185 #ifdef _POSIX_SOURCE
4192 rm -f conftest.$ac_objext
4193 if { (eval echo "$as_me:4193: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>&5
4196 echo "$as_me:4196: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -s conftest.$ac_objext'
4199 { (eval echo "$as_me:4199: \"$ac_try\"") >&5
4202 echo "$as_me:4202: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4206 echo "$as_me: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4208 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4210 rm -f conftest.$ac_objext conftest.$ac_ext
4213 echo "${as_me:-configure}:4213: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4215 CFLAGS="$cf_trim_CFLAGS"
4216 CPPFLAGS="$cf_trim_CPPFLAGS"
4218 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4219 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4221 echo "${as_me:-configure}:4221: testing if the second compile does not leave our definition intact error ..." 1>&5
4223 cat >conftest.$ac_ext <<_ACEOF
4224 #line 4224 "configure"
4225 #include "confdefs.h"
4226 #include <sys/types.h>
4231 #ifndef _POSIX_C_SOURCE
4238 rm -f conftest.$ac_objext
4239 if { (eval echo "$as_me:4239: \"$ac_compile\"") >&5
4240 (eval $ac_compile) 2>&5
4242 echo "$as_me:4242: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -s conftest.$ac_objext'
4245 { (eval echo "$as_me:4245: \"$ac_try\"") >&5
4248 echo "$as_me:4248: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4252 echo "$as_me: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4254 cf_cv_posix_c_source=no
4256 rm -f conftest.$ac_objext conftest.$ac_ext
4257 CFLAGS="$cf_save_CFLAGS"
4258 CPPFLAGS="$cf_save_CPPFLAGS"
4261 rm -f conftest.$ac_objext conftest.$ac_ext
4264 echo "$as_me:4264: result: $cf_cv_posix_c_source" >&5
4265 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4267 if test "$cf_cv_posix_c_source" != no ; then
4268 CFLAGS="$cf_trim_CFLAGS"
4269 CPPFLAGS="$cf_trim_CPPFLAGS"
4274 cf_new_extra_cppflags=
4276 for cf_add_cflags in $cf_cv_posix_c_source
4278 case $cf_fix_cppflags in
4280 case $cf_add_cflags in
4281 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4282 case $cf_add_cflags in
4284 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4286 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4287 && test -z "${cf_tst_cflags}" \
4288 && cf_fix_cppflags=yes
4290 if test $cf_fix_cppflags = yes ; then
4292 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4293 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4296 elif test "${cf_tst_cflags}" = "\"'" ; then
4298 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4299 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4309 case $cf_add_cflags in
4311 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4313 CPPFLAGS=`echo "$CPPFLAGS" | \
4314 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4315 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4320 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4321 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4328 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4329 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4336 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4337 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4339 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4341 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4342 && test -z "${cf_tst_cflags}" \
4343 && cf_fix_cppflags=no
4348 if test -n "$cf_new_cflags" ; then
4350 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4351 CFLAGS="${CFLAGS}$cf_new_cflags"
4355 if test -n "$cf_new_cppflags" ; then
4357 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4358 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4362 if test -n "$cf_new_extra_cppflags" ; then
4364 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4365 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4371 fi # cf_cv_posix_visible
4375 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
4378 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
4379 cf_xopen_source="-D_BSD_SOURCE"
4383 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
4386 cf_xopen_source="-D_OSF_SOURCE"
4389 cf_xopen_source="-D_QNX_SOURCE"
4392 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
4395 cf_xopen_source="-D__EXTENSIONS__"
4396 cf_cv_xopen_source=broken
4398 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
4404 echo "$as_me:4404: checking if we should define _XOPEN_SOURCE" >&5
4405 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4406 if test "${cf_cv_xopen_source+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 cat >conftest.$ac_ext <<_ACEOF
4411 #line 4411 "configure"
4412 #include "confdefs.h"
4416 #include <sys/types.h>
4422 #ifndef _XOPEN_SOURCE
4429 rm -f conftest.$ac_objext
4430 if { (eval echo "$as_me:4430: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4433 echo "$as_me:4433: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:4436: \"$ac_try\"") >&5
4439 echo "$as_me:4439: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 cf_cv_xopen_source=no
4443 echo "$as_me: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4447 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4448 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4450 cat >conftest.$ac_ext <<_ACEOF
4451 #line 4451 "configure"
4452 #include "confdefs.h"
4456 #include <sys/types.h>
4462 #ifdef _XOPEN_SOURCE
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:4470: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>&5
4473 echo "$as_me:4473: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:4476: \"$ac_try\"") >&5
4479 echo "$as_me:4479: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 cf_cv_xopen_source=no
4483 echo "$as_me: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4487 rm -f conftest.$ac_objext conftest.$ac_ext
4491 rm -f conftest.$ac_objext conftest.$ac_ext
4494 echo "$as_me:4494: result: $cf_cv_xopen_source" >&5
4495 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4497 if test "$cf_cv_xopen_source" != no ; then
4499 CFLAGS=`echo "$CFLAGS" | \
4500 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4501 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4503 CPPFLAGS=`echo "$CPPFLAGS" | \
4504 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4505 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4507 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4512 cf_new_extra_cppflags=
4514 for cf_add_cflags in $cf_temp_xopen_source
4516 case $cf_fix_cppflags in
4518 case $cf_add_cflags in
4519 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4520 case $cf_add_cflags in
4522 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4524 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4525 && test -z "${cf_tst_cflags}" \
4526 && cf_fix_cppflags=yes
4528 if test $cf_fix_cppflags = yes ; then
4530 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4531 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4534 elif test "${cf_tst_cflags}" = "\"'" ; then
4536 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4537 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4547 case $cf_add_cflags in
4549 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4551 CPPFLAGS=`echo "$CPPFLAGS" | \
4552 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4553 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4558 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4559 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4566 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4567 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4574 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4575 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4577 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4579 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4580 && test -z "${cf_tst_cflags}" \
4581 && cf_fix_cppflags=no
4586 if test -n "$cf_new_cflags" ; then
4588 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4589 CFLAGS="${CFLAGS}$cf_new_cflags"
4593 if test -n "$cf_new_cppflags" ; then
4595 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4596 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4600 if test -n "$cf_new_extra_cppflags" ; then
4602 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4603 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4609 if test "$cf_cv_posix_visible" = no; then
4611 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4613 cf_save_CFLAGS="$CFLAGS"
4614 cf_save_CPPFLAGS="$CPPFLAGS"
4616 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4617 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4618 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4620 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4621 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4622 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4624 echo "$as_me:4624: checking if we should define _POSIX_C_SOURCE" >&5
4625 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4626 if test "${cf_cv_posix_c_source+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 echo "${as_me:-configure}:4630: testing if the symbol is already defined go no further ..." 1>&5
4632 cat >conftest.$ac_ext <<_ACEOF
4633 #line 4633 "configure"
4634 #include "confdefs.h"
4635 #include <sys/types.h>
4640 #ifndef _POSIX_C_SOURCE
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:4648: \"$ac_compile\"") >&5
4649 (eval $ac_compile) 2>&5
4651 echo "$as_me:4651: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:4654: \"$ac_try\"") >&5
4657 echo "$as_me:4657: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 cf_cv_posix_c_source=no
4661 echo "$as_me: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4663 cf_want_posix_source=no
4664 case .$cf_POSIX_C_SOURCE in
4666 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4669 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4670 cf_want_posix_source=yes
4673 cf_want_posix_source=yes
4676 if test "$cf_want_posix_source" = yes ; then
4677 cat >conftest.$ac_ext <<_ACEOF
4678 #line 4678 "configure"
4679 #include "confdefs.h"
4680 #include <sys/types.h>
4685 #ifdef _POSIX_SOURCE
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:4693: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>&5
4696 echo "$as_me:4696: \$? = $ac_status" >&5
4697 (exit $ac_status); } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:4699: \"$ac_try\"") >&5
4702 echo "$as_me:4702: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4706 echo "$as_me: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4708 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4710 rm -f conftest.$ac_objext conftest.$ac_ext
4713 echo "${as_me:-configure}:4713: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4715 CFLAGS="$cf_trim_CFLAGS"
4716 CPPFLAGS="$cf_trim_CPPFLAGS"
4718 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4719 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4721 echo "${as_me:-configure}:4721: testing if the second compile does not leave our definition intact error ..." 1>&5
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line 4724 "configure"
4725 #include "confdefs.h"
4726 #include <sys/types.h>
4731 #ifndef _POSIX_C_SOURCE
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:4739: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>&5
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:4745: \"$ac_try\"") >&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4752 echo "$as_me: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4754 cf_cv_posix_c_source=no
4756 rm -f conftest.$ac_objext conftest.$ac_ext
4757 CFLAGS="$cf_save_CFLAGS"
4758 CPPFLAGS="$cf_save_CPPFLAGS"
4761 rm -f conftest.$ac_objext conftest.$ac_ext