2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20200802.
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.20200802. 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 cat >conftest.$ac_ext <<_ACEOF
1922 #line 1922 "configure"
1923 #include "confdefs.h"
1938 rm -f conftest.$ac_objext
1939 if { (eval echo "$as_me:1939: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1942 echo "$as_me:1942: \$? = $ac_status" >&5
1943 (exit $ac_status); } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:1945: \"$ac_try\"") >&5
1948 echo "$as_me:1948: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1953 echo "$as_me: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1956 rm -f conftest.$ac_objext conftest.$ac_ext
1957 CFLAGS="$cf_save_CFLAGS"
1958 echo "$as_me:1958: result: $CLANG_COMPILER" >&5
1959 echo "${ECHO_T}$CLANG_COMPILER" >&6
1964 if test "x$CLANG_COMPILER" = "xyes" ; then
1966 (c[1-9][0-9]|*/c[1-9][0-9])
1967 { echo "$as_me:1967: WARNING: replacing broken compiler alias $CC" >&5
1968 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
1969 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
1974 echo "$as_me:1974: checking version of $CC" >&5
1975 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1976 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1977 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
1978 echo "$as_me:1978: result: $CLANG_VERSION" >&5
1979 echo "${ECHO_T}$CLANG_VERSION" >&6
1981 for cf_clang_opt in \
1982 -Qunused-arguments \
1983 -Wno-error=implicit-function-declaration
1985 echo "$as_me:1985: checking if option $cf_clang_opt works" >&5
1986 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
1987 cf_save_CFLAGS="$CFLAGS"
1988 CFLAGS="$CFLAGS $cf_clang_opt"
1989 cat >conftest.$ac_ext <<_ACEOF
1990 #line 1990 "configure"
1991 #include "confdefs.h"
2003 rm -f conftest.$ac_objext conftest$ac_exeext
2004 if { (eval echo "$as_me:2004: \"$ac_link\"") >&5
2005 (eval $ac_link) 2>&5
2007 echo "$as_me:2007: \$? = $ac_status" >&5
2008 (exit $ac_status); } &&
2009 { ac_try='test -s conftest$ac_exeext'
2010 { (eval echo "$as_me:2010: \"$ac_try\"") >&5
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2018 echo "$as_me: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2024 echo "$as_me:2024: result: $cf_clang_optok" >&5
2025 echo "${ECHO_T}$cf_clang_optok" >&6
2026 CFLAGS="$cf_save_CFLAGS"
2027 if test $cf_clang_optok = yes; then
2028 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2030 echo "${as_me:-configure}:2030: testing adding option $cf_clang_opt ..." 1>&5
2032 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2033 CFLAGS="${CFLAGS}$cf_clang_opt"
2039 echo "$as_me:2039: checking for $CC option to accept ANSI C" >&5
2040 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2041 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 ac_cv_prog_cc_stdc=no
2046 cat >conftest.$ac_ext <<_ACEOF
2047 #line 2047 "configure"
2048 #include "confdefs.h"
2051 #include <sys/types.h>
2052 #include <sys/stat.h>
2053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2054 struct buf { int x; };
2055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2056 static char *e (p, i)
2062 static char *f (char * (*g) (char **, int), char **p, ...)
2067 s = g (p, va_arg (v,int));
2071 int test (int i, double x);
2072 struct s1 {int (*f) (int a);};
2073 struct s2 {int (*f) (double a);};
2074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2085 # Don't try gcc -ansi; that turns off useful extensions and
2086 # breaks some systems' header files.
2087 # AIX -qlanglvl=ansi
2088 # Ultrix and OSF/1 -std1
2089 # HP-UX 10.20 and later -Ae
2090 # HP-UX older versions -Aa -D_HPUX_SOURCE
2091 # SVR4 -Xc -D__EXTENSIONS__
2092 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2094 CC="$ac_save_CC $ac_arg"
2095 rm -f conftest.$ac_objext
2096 if { (eval echo "$as_me:2096: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>&5
2099 echo "$as_me:2099: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try='test -s conftest.$ac_objext'
2102 { (eval echo "$as_me:2102: \"$ac_try\"") >&5
2105 echo "$as_me:2105: \$? = $ac_status" >&5
2106 (exit $ac_status); }; }; then
2107 ac_cv_prog_cc_stdc=$ac_arg
2110 echo "$as_me: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2113 rm -f conftest.$ac_objext
2115 rm -f conftest.$ac_ext conftest.$ac_objext
2120 case "x$ac_cv_prog_cc_stdc" in
2122 echo "$as_me:2122: result: none needed" >&5
2123 echo "${ECHO_T}none needed" >&6 ;;
2125 echo "$as_me:2125: result: $ac_cv_prog_cc_stdc" >&5
2126 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2127 CC="$CC $ac_cv_prog_cc_stdc" ;;
2130 # This should have been defined by AC_PROG_CC
2133 echo "$as_me:2133: checking \$CFLAGS variable" >&5
2134 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2137 echo "$as_me:2137: result: broken" >&5
2138 echo "${ECHO_T}broken" >&6
2139 { echo "$as_me:2139: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2140 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2143 for cf_arg in $cf_flags
2149 cf_new_extra_cppflags=
2151 for cf_add_cflags in $cf_arg
2153 case $cf_fix_cppflags in
2155 case $cf_add_cflags in
2156 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2157 case $cf_add_cflags in
2159 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2161 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2162 && test -z "${cf_tst_cflags}" \
2163 && cf_fix_cppflags=yes
2165 if test $cf_fix_cppflags = yes ; then
2167 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2168 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2171 elif test "${cf_tst_cflags}" = "\"'" ; then
2173 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2174 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2184 case $cf_add_cflags in
2186 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2188 CPPFLAGS=`echo "$CPPFLAGS" | \
2189 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2190 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2195 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2196 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2203 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2204 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2211 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2212 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2214 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2216 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2217 && test -z "${cf_tst_cflags}" \
2218 && cf_fix_cppflags=no
2223 if test -n "$cf_new_cflags" ; then
2225 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2226 CFLAGS="${CFLAGS}$cf_new_cflags"
2230 if test -n "$cf_new_cppflags" ; then
2232 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2233 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2237 if test -n "$cf_new_extra_cppflags" ; then
2239 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2240 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2247 echo "$as_me:2247: result: ok" >&5
2248 echo "${ECHO_T}ok" >&6
2252 echo "$as_me:2252: checking \$CC variable" >&5
2253 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2256 echo "$as_me:2256: result: broken" >&5
2257 echo "${ECHO_T}broken" >&6
2258 { echo "$as_me:2258: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2259 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2261 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2262 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2264 for cf_arg in $cf_flags
2272 cf_new_extra_cppflags=
2274 for cf_add_cflags in $cf_arg
2276 case $cf_fix_cppflags in
2278 case $cf_add_cflags in
2279 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2280 case $cf_add_cflags in
2282 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2284 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2285 && test -z "${cf_tst_cflags}" \
2286 && cf_fix_cppflags=yes
2288 if test $cf_fix_cppflags = yes ; then
2290 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2291 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2294 elif test "${cf_tst_cflags}" = "\"'" ; then
2296 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2297 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2307 case $cf_add_cflags in
2309 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2311 CPPFLAGS=`echo "$CPPFLAGS" | \
2312 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2313 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2318 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2319 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2326 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2327 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2334 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2335 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2337 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2339 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2340 && test -z "${cf_tst_cflags}" \
2341 && cf_fix_cppflags=no
2346 if test -n "$cf_new_cflags" ; then
2348 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2349 CFLAGS="${CFLAGS}$cf_new_cflags"
2353 if test -n "$cf_new_cppflags" ; then
2355 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2356 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2360 if test -n "$cf_new_extra_cppflags" ; then
2362 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2363 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2373 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2375 echo "${as_me:-configure}:2375: testing resulting CC: '$CC' ..." 1>&5
2377 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2379 echo "${as_me:-configure}:2379: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2381 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2383 echo "${as_me:-configure}:2383: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2387 echo "$as_me:2387: result: ok" >&5
2388 echo "${ECHO_T}ok" >&6
2392 echo "$as_me:2392: checking for inline" >&5
2393 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2394 if test "${ac_cv_c_inline+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 for ac_kw in inline __inline__ __inline; do
2399 cat >conftest.$ac_ext <<_ACEOF
2400 #line 2400 "configure"
2401 #include "confdefs.h"
2403 static $ac_kw int static_foo () {return 0; }
2404 $ac_kw int foo () {return 0; }
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:2409: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>&5
2412 echo "$as_me:2412: \$? = $ac_status" >&5
2413 (exit $ac_status); } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:2415: \"$ac_try\"") >&5
2418 echo "$as_me:2418: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_cv_c_inline=$ac_kw; break
2422 echo "$as_me: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2425 rm -f conftest.$ac_objext conftest.$ac_ext
2429 echo "$as_me:2429: result: $ac_cv_c_inline" >&5
2430 echo "${ECHO_T}$ac_cv_c_inline" >&6
2431 case $ac_cv_c_inline in
2434 cat >>confdefs.h <<\EOF
2438 *) cat >>confdefs.h <<EOF
2439 #define inline $ac_cv_c_inline
2445 ac_cpp='$CPP $CPPFLAGS'
2446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449 ac_main_return=return
2450 echo "$as_me:2450: checking how to run the C preprocessor" >&5
2451 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2452 # On Suns, sometimes $CPP names a directory.
2453 if test -n "$CPP" && test -d "$CPP"; then
2456 if test -z "$CPP"; then
2457 if test "${ac_cv_prog_CPP+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 # Double quotes because CPP needs to be expanded
2461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2464 for ac_c_preproc_warn_flag in '' yes
2466 # Use a header file that comes with gcc, so configuring glibc
2467 # with a fresh cross-compiler works.
2468 # On the NeXT, cc -E runs the code through the compiler's parser,
2469 # not just through cpp. "Syntax error" is here to catch this case.
2470 cat >conftest.$ac_ext <<_ACEOF
2471 #line 2471 "configure"
2472 #include "confdefs.h"
2476 if { (eval echo "$as_me:2476: \"$ac_cpp conftest.$ac_ext\"") >&5
2477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2479 egrep -v '^ *\+' conftest.er1 >conftest.err
2481 cat conftest.err >&5
2482 echo "$as_me:2482: \$? = $ac_status" >&5
2483 (exit $ac_status); } >/dev/null; then
2484 if test -s conftest.err; then
2485 ac_cpp_err=$ac_c_preproc_warn_flag
2492 if test -z "$ac_cpp_err"; then
2495 echo "$as_me: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2497 # Broken: fails on valid input.
2500 rm -f conftest.err conftest.$ac_ext
2502 # OK, works on sane cases. Now check whether non-existent headers
2503 # can be detected and how.
2504 cat >conftest.$ac_ext <<_ACEOF
2505 #line 2505 "configure"
2506 #include "confdefs.h"
2507 #include <ac_nonexistent.h>
2509 if { (eval echo "$as_me:2509: \"$ac_cpp conftest.$ac_ext\"") >&5
2510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2512 egrep -v '^ *\+' conftest.er1 >conftest.err
2514 cat conftest.err >&5
2515 echo "$as_me:2515: \$? = $ac_status" >&5
2516 (exit $ac_status); } >/dev/null; then
2517 if test -s conftest.err; then
2518 ac_cpp_err=$ac_c_preproc_warn_flag
2525 if test -z "$ac_cpp_err"; then
2526 # Broken: success on invalid input.
2529 echo "$as_me: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2531 # Passes both tests.
2535 rm -f conftest.err conftest.$ac_ext
2538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2539 rm -f conftest.err conftest.$ac_ext
2540 if $ac_preproc_ok; then
2552 echo "$as_me:2552: result: $CPP" >&5
2553 echo "${ECHO_T}$CPP" >&6
2555 for ac_c_preproc_warn_flag in '' yes
2557 # Use a header file that comes with gcc, so configuring glibc
2558 # with a fresh cross-compiler works.
2559 # On the NeXT, cc -E runs the code through the compiler's parser,
2560 # not just through cpp. "Syntax error" is here to catch this case.
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #line 2562 "configure"
2563 #include "confdefs.h"
2567 if { (eval echo "$as_me:2567: \"$ac_cpp conftest.$ac_ext\"") >&5
2568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2570 egrep -v '^ *\+' conftest.er1 >conftest.err
2572 cat conftest.err >&5
2573 echo "$as_me:2573: \$? = $ac_status" >&5
2574 (exit $ac_status); } >/dev/null; then
2575 if test -s conftest.err; then
2576 ac_cpp_err=$ac_c_preproc_warn_flag
2583 if test -z "$ac_cpp_err"; then
2586 echo "$as_me: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2588 # Broken: fails on valid input.
2591 rm -f conftest.err conftest.$ac_ext
2593 # OK, works on sane cases. Now check whether non-existent headers
2594 # can be detected and how.
2595 cat >conftest.$ac_ext <<_ACEOF
2596 #line 2596 "configure"
2597 #include "confdefs.h"
2598 #include <ac_nonexistent.h>
2600 if { (eval echo "$as_me:2600: \"$ac_cpp conftest.$ac_ext\"") >&5
2601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2603 egrep -v '^ *\+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:2606: \$? = $ac_status" >&5
2607 (exit $ac_status); } >/dev/null; then
2608 if test -s conftest.err; then
2609 ac_cpp_err=$ac_c_preproc_warn_flag
2616 if test -z "$ac_cpp_err"; then
2617 # Broken: success on invalid input.
2620 echo "$as_me: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2622 # Passes both tests.
2626 rm -f conftest.err conftest.$ac_ext
2629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2630 rm -f conftest.err conftest.$ac_ext
2631 if $ac_preproc_ok; then
2634 { { echo "$as_me:2634: error: C preprocessor \"$CPP\" fails sanity check" >&5
2635 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2636 { (exit 1); exit 1; }; }
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644 ac_main_return=return
2646 for ac_prog in mawk gawk nawk awk
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 echo "$as_me:2650: checking for $ac_word" >&5
2651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2652 if test "${ac_cv_prog_AWK+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 if test -n "$AWK"; then
2656 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658 ac_save_IFS=$IFS; IFS=$ac_path_separator
2660 for ac_dir in $ac_dummy; do
2662 test -z "$ac_dir" && ac_dir=.
2663 $as_executable_p "$ac_dir/$ac_word" || continue
2664 ac_cv_prog_AWK="$ac_prog"
2665 echo "$as_me:2665: found $ac_dir/$ac_word" >&5
2672 if test -n "$AWK"; then
2673 echo "$as_me:2673: result: $AWK" >&5
2674 echo "${ECHO_T}$AWK" >&6
2676 echo "$as_me:2676: result: no" >&5
2677 echo "${ECHO_T}no" >&6
2680 test -n "$AWK" && break
2683 # Find a good install program. We prefer a C program (faster),
2684 # so one script is as good as another. But avoid the broken or
2685 # incompatible versions:
2686 # SysV /etc/install, /usr/sbin/install
2687 # SunOS /usr/etc/install
2688 # IRIX /sbin/install
2690 # AmigaOS /C/install, which installs bootblocks on floppy discs
2691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2694 # ./install, which can be erroneously created by make from ./install.sh.
2695 echo "$as_me:2695: checking for a BSD compatible install" >&5
2696 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2697 if test -z "$INSTALL"; then
2698 if test "${ac_cv_path_install+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 ac_save_IFS=$IFS; IFS=$ac_path_separator
2702 for ac_dir in $PATH; do
2704 # Account for people who put trailing slashes in PATH elements.
2706 / | ./ | .// | /cC/* \
2707 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2713 for ac_prog in ginstall scoinst install; do
2714 if $as_executable_p "$ac_dir/$ac_prog"; then
2715 if test $ac_prog = install &&
2716 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2717 # AIX install. It has an incompatible calling convention.
2719 elif test $ac_prog = install &&
2720 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2721 # program-specific install script used by HP pwplus--don't use.
2724 ac_cv_path_install="$ac_dir/$ac_prog -c"
2734 if test "${ac_cv_path_install+set}" = set; then
2735 INSTALL=$ac_cv_path_install
2737 # As a last resort, use the slow shell script. We don't cache a
2738 # path for INSTALL within a source directory, because that will
2739 # break other packages using the cache if that directory is
2740 # removed, or if the path is relative.
2741 INSTALL=$ac_install_sh
2744 echo "$as_me:2744: result: $INSTALL" >&5
2745 echo "${ECHO_T}$INSTALL" >&6
2747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2748 # It thinks the first close brace ends the variable substitution.
2749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2759 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2760 test -z "$cf_dir" && cf_dir=.
2761 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2765 echo "$as_me:2765: checking if you want to install stripped executables" >&5
2766 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2768 # Check whether --enable-stripping or --disable-stripping was given.
2769 if test "${enable_stripping+set}" = set; then
2770 enableval="$enable_stripping"
2771 test "$enableval" != no && enableval=yes
2772 if test "$enableval" != "yes" ; then
2782 echo "$as_me:2782: result: $with_stripping" >&5
2783 echo "${ECHO_T}$with_stripping" >&6
2785 if test "$with_stripping" = yes
2792 : ${INSTALL:=install}
2793 echo "$as_me:2793: checking if install accepts -p option" >&5
2794 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2795 if test "${cf_cv_install_p+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2805 if test -f conftest.out/conftest.in
2807 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2808 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2809 if test -s conftest.err
2824 echo "$as_me:2824: result: $cf_cv_install_p" >&5
2825 echo "${ECHO_T}$cf_cv_install_p" >&6
2827 echo "$as_me:2827: checking if install needs to be told about ownership" >&5
2828 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2829 case `$ac_config_guess` in
2838 echo "$as_me:2838: result: $with_install_o" >&5
2839 echo "${ECHO_T}$with_install_o" >&6
2840 if test "x$with_install_o" = xyes
2842 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'`
2847 for ac_prog in lint cppcheck splint
2849 # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 echo "$as_me:2851: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_LINT+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$LINT"; then
2857 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2859 ac_save_IFS=$IFS; IFS=$ac_path_separator
2861 for ac_dir in $ac_dummy; do
2863 test -z "$ac_dir" && ac_dir=.
2864 $as_executable_p "$ac_dir/$ac_word" || continue
2865 ac_cv_prog_LINT="$ac_prog"
2866 echo "$as_me:2866: found $ac_dir/$ac_word" >&5
2872 LINT=$ac_cv_prog_LINT
2873 if test -n "$LINT"; then
2874 echo "$as_me:2874: result: $LINT" >&5
2875 echo "${ECHO_T}$LINT" >&6
2877 echo "$as_me:2877: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2881 test -n "$LINT" && break
2885 (xcppcheck|x*/cppcheck)
2886 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
2890 echo "$as_me:2890: checking if filesystem supports mixed-case filenames" >&5
2891 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2892 if test "${cf_cv_mixedcase+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 if test "$cross_compiling" = yes ; then
2897 case $target_alias in
2898 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
2906 rm -f conftest CONFTEST
2908 if test -f CONFTEST ; then
2913 rm -f conftest CONFTEST
2917 echo "$as_me:2917: result: $cf_cv_mixedcase" >&5
2918 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2919 test "$cf_cv_mixedcase" = yes &&
2920 cat >>confdefs.h <<\EOF
2921 #define MIXEDCASE_FILENAMES 1
2924 for ac_prog in exctags ctags
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927 set dummy $ac_prog; ac_word=$2
2928 echo "$as_me:2928: checking for $ac_word" >&5
2929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930 if test "${ac_cv_prog_CTAGS+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 if test -n "$CTAGS"; then
2934 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2936 ac_save_IFS=$IFS; IFS=$ac_path_separator
2938 for ac_dir in $ac_dummy; do
2940 test -z "$ac_dir" && ac_dir=.
2941 $as_executable_p "$ac_dir/$ac_word" || continue
2942 ac_cv_prog_CTAGS="$ac_prog"
2943 echo "$as_me:2943: found $ac_dir/$ac_word" >&5
2949 CTAGS=$ac_cv_prog_CTAGS
2950 if test -n "$CTAGS"; then
2951 echo "$as_me:2951: result: $CTAGS" >&5
2952 echo "${ECHO_T}$CTAGS" >&6
2954 echo "$as_me:2954: result: no" >&5
2955 echo "${ECHO_T}no" >&6
2958 test -n "$CTAGS" && break
2961 for ac_prog in exetags etags
2963 # Extract the first word of "$ac_prog", so it can be a program name with args.
2964 set dummy $ac_prog; ac_word=$2
2965 echo "$as_me:2965: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967 if test "${ac_cv_prog_ETAGS+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 if test -n "$ETAGS"; then
2971 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2973 ac_save_IFS=$IFS; IFS=$ac_path_separator
2975 for ac_dir in $ac_dummy; do
2977 test -z "$ac_dir" && ac_dir=.
2978 $as_executable_p "$ac_dir/$ac_word" || continue
2979 ac_cv_prog_ETAGS="$ac_prog"
2980 echo "$as_me:2980: found $ac_dir/$ac_word" >&5
2986 ETAGS=$ac_cv_prog_ETAGS
2987 if test -n "$ETAGS"; then
2988 echo "$as_me:2988: result: $ETAGS" >&5
2989 echo "${ECHO_T}$ETAGS" >&6
2991 echo "$as_me:2991: result: no" >&5
2992 echo "${ECHO_T}no" >&6
2995 test -n "$ETAGS" && break
2998 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2999 set dummy ${CTAGS:-ctags}; ac_word=$2
3000 echo "$as_me:3000: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3002 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 if test -n "$MAKE_LOWER_TAGS"; then
3006 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3008 ac_save_IFS=$IFS; IFS=$ac_path_separator
3010 for ac_dir in $ac_dummy; do
3012 test -z "$ac_dir" && ac_dir=.
3013 $as_executable_p "$ac_dir/$ac_word" || continue
3014 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3015 echo "$as_me:3015: found $ac_dir/$ac_word" >&5
3019 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3022 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3023 if test -n "$MAKE_LOWER_TAGS"; then
3024 echo "$as_me:3024: result: $MAKE_LOWER_TAGS" >&5
3025 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3027 echo "$as_me:3027: result: no" >&5
3028 echo "${ECHO_T}no" >&6
3031 if test "$cf_cv_mixedcase" = yes ; then
3032 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3033 set dummy ${ETAGS:-etags}; ac_word=$2
3034 echo "$as_me:3034: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 if test -n "$MAKE_UPPER_TAGS"; then
3040 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3042 ac_save_IFS=$IFS; IFS=$ac_path_separator
3044 for ac_dir in $ac_dummy; do
3046 test -z "$ac_dir" && ac_dir=.
3047 $as_executable_p "$ac_dir/$ac_word" || continue
3048 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3049 echo "$as_me:3049: found $ac_dir/$ac_word" >&5
3053 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3056 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3057 if test -n "$MAKE_UPPER_TAGS"; then
3058 echo "$as_me:3058: result: $MAKE_UPPER_TAGS" >&5
3059 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3061 echo "$as_me:3061: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3069 if test "$MAKE_UPPER_TAGS" = yes ; then
3075 if test "$MAKE_LOWER_TAGS" = yes ; then
3081 echo "$as_me:3081: checking if -lm needed for math functions" >&5
3082 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
3083 if test "${cf_cv_need_libm+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3098 double x = rand(); printf("result = %g\n", pow(sin(x),x))
3103 rm -f conftest.$ac_objext conftest$ac_exeext
3104 if { (eval echo "$as_me:3104: \"$ac_link\"") >&5
3105 (eval $ac_link) 2>&5
3107 echo "$as_me:3107: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -s conftest$ac_exeext'
3110 { (eval echo "$as_me:3110: \"$ac_try\"") >&5
3113 echo "$as_me:3113: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3117 echo "$as_me: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123 echo "$as_me:3123: result: $cf_cv_need_libm" >&5
3124 echo "${ECHO_T}$cf_cv_need_libm" >&6
3125 if test "$cf_cv_need_libm" = yes
3133 CC_SHARED_OPTS=unknown
3134 CPPFLAGS="$CPPFLAGS"
3136 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
3137 DFT_UPR_MODEL="NORMAL"
3150 PACKAGE="ncurses-examples"
3156 TINFO_LIBS='$(LIBS_CURSES)'
3157 cf_cv_abi_version=""
3158 cf_cv_rel_version=""
3164 if ( test "$GCC" = yes || test "$GXX" = yes )
3166 cat > conftest.i <<EOF
3168 #define GCC_PRINTF 0
3173 #ifndef GCC_NORETURN
3174 #define GCC_NORETURN /* nothing */
3177 #define GCC_UNUSED /* nothing */
3180 if test "$GCC" = yes
3182 { echo "$as_me:3182: checking for $CC __attribute__ directives..." >&5
3183 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3184 cat > conftest.$ac_ext <<EOF
3185 #line 3185 "${as_me:-configure}"
3186 #include "confdefs.h"
3187 #include "conftest.h"
3188 #include "conftest.i"
3190 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3192 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3195 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3197 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3199 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3200 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3201 extern void foo(void) GCC_NORETURN;
3202 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
3204 cf_printf_attribute=no
3205 cf_scanf_attribute=no
3206 for cf_attribute in scanf printf unused noreturn
3209 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3211 cf_directive="__attribute__(($cf_attribute))"
3212 echo "checking for $CC $cf_directive" 1>&5
3214 case $cf_attribute in
3216 cf_printf_attribute=yes
3217 cat >conftest.h <<EOF
3218 #define GCC_$cf_ATTRIBUTE 1
3222 cf_scanf_attribute=yes
3223 cat >conftest.h <<EOF
3224 #define GCC_$cf_ATTRIBUTE 1
3228 cat >conftest.h <<EOF
3229 #define GCC_$cf_ATTRIBUTE $cf_directive
3234 if { (eval echo "$as_me:3234: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>&5
3237 echo "$as_me:3237: \$? = $ac_status" >&5
3238 (exit $ac_status); }; then
3239 test -n "$verbose" && echo "$as_me:3239: result: ... $cf_attribute" >&5
3240 echo "${ECHO_T}... $cf_attribute" >&6
3241 cat conftest.h >>confdefs.h
3242 case $cf_attribute in
3245 cat >>confdefs.h <<EOF
3246 #define GCC_NORETURN $cf_directive
3251 cf_value='/* nothing */'
3252 if test "$cf_printf_attribute" != no ; then
3253 cf_value='__attribute__((format(printf,fmt,var)))'
3255 cat >>confdefs.h <<\EOF
3256 #define GCC_PRINTF 1
3261 cat >>confdefs.h <<EOF
3262 #define GCC_PRINTFLIKE(fmt,var) $cf_value
3267 cf_value='/* nothing */'
3268 if test "$cf_scanf_attribute" != no ; then
3269 cf_value='__attribute__((format(scanf,fmt,var)))'
3271 cat >>confdefs.h <<\EOF
3277 cat >>confdefs.h <<EOF
3278 #define GCC_SCANFLIKE(fmt,var) $cf_value
3284 cat >>confdefs.h <<EOF
3285 #define GCC_UNUSED $cf_directive
3293 fgrep define conftest.i >>confdefs.h
3298 echo "$as_me:3298: checking if you want to work around bogus compiler/loader warnings" >&5
3299 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
3301 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3302 if test "${enable_string_hacks+set}" = set; then
3303 enableval="$enable_string_hacks"
3304 with_string_hacks=$enableval
3306 with_string_hacks=no
3308 echo "$as_me:3308: result: $with_string_hacks" >&5
3309 echo "${ECHO_T}$with_string_hacks" >&6
3311 if test "x$with_string_hacks" = "xyes"; then
3313 cat >>confdefs.h <<\EOF
3314 #define USE_STRING_HACKS 1
3317 { echo "$as_me:3317: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
3318 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3319 echo "$as_me:3319: checking for strlcat" >&5
3320 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
3321 if test "${ac_cv_func_strlcat+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 cat >conftest.$ac_ext <<_ACEOF
3325 #line 3325 "configure"
3326 #include "confdefs.h"
3327 #define strlcat autoconf_temporary
3328 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3335 /* We use char because int might match the return type of a gcc2
3336 builtin and then its argument prototype would still apply. */
3337 char strlcat (void);
3343 /* The GNU C library defines stubs for functions which it implements
3344 to always fail with ENOSYS. Some functions are actually named
3345 something starting with __ and the normal name is an alias. */
3346 #if defined (__stub_strlcat) || defined (__stub___strlcat)
3347 #error found stub for strlcat
3355 rm -f conftest.$ac_objext conftest$ac_exeext
3356 if { (eval echo "$as_me:3356: \"$ac_link\"") >&5
3357 (eval $ac_link) 2>&5
3359 echo "$as_me:3359: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try='test -s conftest$ac_exeext'
3362 { (eval echo "$as_me:3362: \"$ac_try\"") >&5
3365 echo "$as_me:3365: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 ac_cv_func_strlcat=yes
3369 echo "$as_me: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3371 ac_cv_func_strlcat=no
3373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3375 echo "$as_me:3375: result: $ac_cv_func_strlcat" >&5
3376 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
3377 if test $ac_cv_func_strlcat = yes; then
3379 cat >>confdefs.h <<\EOF
3380 #define HAVE_STRLCAT 1
3385 echo "$as_me:3385: checking for strlcat in -lbsd" >&5
3386 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3387 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 ac_check_lib_save_LIBS=$LIBS
3392 cat >conftest.$ac_ext <<_ACEOF
3393 #line 3393 "configure"
3394 #include "confdefs.h"
3396 /* Override any gcc2 internal prototype to avoid an error. */
3400 /* We use char because int might match the return type of a gcc2
3401 builtin and then its argument prototype would still apply. */
3411 rm -f conftest.$ac_objext conftest$ac_exeext
3412 if { (eval echo "$as_me:3412: \"$ac_link\"") >&5
3413 (eval $ac_link) 2>&5
3415 echo "$as_me:3415: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try='test -s conftest$ac_exeext'
3418 { (eval echo "$as_me:3418: \"$ac_try\"") >&5
3421 echo "$as_me:3421: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 ac_cv_lib_bsd_strlcat=yes
3425 echo "$as_me: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3427 ac_cv_lib_bsd_strlcat=no
3429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3430 LIBS=$ac_check_lib_save_LIBS
3432 echo "$as_me:3432: result: $ac_cv_lib_bsd_strlcat" >&5
3433 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3434 if test $ac_cv_lib_bsd_strlcat = yes; then
3439 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
3441 for cf_add_1lib in $cf_add_0lib; do
3442 for cf_add_2lib in $cf_add_libs; do
3443 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
3448 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
3452 for ac_header in bsd/string.h
3454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3455 echo "$as_me:3455: checking for $ac_header" >&5
3456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 cat >conftest.$ac_ext <<_ACEOF
3461 #line 3461 "configure"
3462 #include "confdefs.h"
3463 #include <$ac_header>
3465 if { (eval echo "$as_me:3465: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468 egrep -v '^ *\+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:3471: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null; then
3473 if test -s conftest.err; then
3474 ac_cpp_err=$ac_c_preproc_warn_flag
3481 if test -z "$ac_cpp_err"; then
3482 eval "$as_ac_Header=yes"
3484 echo "$as_me: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3486 eval "$as_ac_Header=no"
3488 rm -f conftest.err conftest.$ac_ext
3490 echo "$as_me:3490: result: `eval echo '${'$as_ac_Header'}'`" >&5
3491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3493 cat >>confdefs.h <<EOF
3494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3500 cat >>confdefs.h <<\EOF
3501 #define HAVE_STRLCAT 1
3508 for ac_func in strlcpy snprintf
3510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3511 echo "$as_me:3511: checking for $ac_func" >&5
3512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_var+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 cat >conftest.$ac_ext <<_ACEOF
3517 #line 3517 "configure"
3518 #include "confdefs.h"
3519 #define $ac_func autoconf_temporary
3520 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3527 /* We use char because int might match the return type of a gcc2
3528 builtin and then its argument prototype would still apply. */
3529 char $ac_func (void);
3535 /* The GNU C library defines stubs for functions which it implements
3536 to always fail with ENOSYS. Some functions are actually named
3537 something starting with __ and the normal name is an alias. */
3538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3539 #error found stub for $ac_func
3547 rm -f conftest.$ac_objext conftest$ac_exeext
3548 if { (eval echo "$as_me:3548: \"$ac_link\"") >&5
3549 (eval $ac_link) 2>&5
3551 echo "$as_me:3551: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -s conftest$ac_exeext'
3554 { (eval echo "$as_me:3554: \"$ac_try\"") >&5
3557 echo "$as_me:3557: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 eval "$as_ac_var=yes"
3561 echo "$as_me: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3563 eval "$as_ac_var=no"
3565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3567 echo "$as_me:3567: result: `eval echo '${'$as_ac_var'}'`" >&5
3568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3569 if test `eval echo '${'$as_ac_var'}'` = yes; then
3570 cat >>confdefs.h <<EOF
3571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3579 echo "$as_me:3579: checking if the POSIX test-macros are already defined" >&5
3580 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
3581 if test "${cf_cv_posix_visible+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 cat >conftest.$ac_ext <<_ACEOF
3586 #line 3586 "configure"
3587 #include "confdefs.h"
3593 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
3594 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
3595 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
3596 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
3597 #error conflicting symbols found
3604 rm -f conftest.$ac_objext
3605 if { (eval echo "$as_me:3605: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>&5
3608 echo "$as_me:3608: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:3611: \"$ac_try\"") >&5
3614 echo "$as_me:3614: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 cf_cv_posix_visible=no
3618 echo "$as_me: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3620 cf_cv_posix_visible=yes
3622 rm -f conftest.$ac_objext conftest.$ac_ext
3625 echo "$as_me:3625: result: $cf_cv_posix_visible" >&5
3626 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3628 if test "$cf_cv_posix_visible" = no; then
3631 cf_POSIX_C_SOURCE=199506L
3636 cf_xopen_source="-D_ALL_SOURCE"
3642 cf_xopen_source="-D_APPLE_C_SOURCE"
3645 cf_xopen_source="-D_DARWIN_C_SOURCE"
3648 (freebsd*|dragonfly*|midnightbsd*)
3649 # 5.x headers associate
3650 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3651 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3652 cf_POSIX_C_SOURCE=200112L
3654 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3657 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3660 cf_xopen_source="-D_HPUX_SOURCE"
3663 cf_xopen_source="-D_SGI_SOURCE"
3666 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3668 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3670 echo "$as_me:3670: checking if this is the GNU C library" >&5
3671 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3672 if test "${cf_cv_gnu_library+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 cat >conftest.$ac_ext <<_ACEOF
3677 #line 3677 "configure"
3678 #include "confdefs.h"
3679 #include <sys/types.h>
3684 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3686 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
3689 # error not GNU C library
3695 rm -f conftest.$ac_objext
3696 if { (eval echo "$as_me:3696: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>&5
3699 echo "$as_me:3699: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:3702: \"$ac_try\"") >&5
3705 echo "$as_me:3705: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 cf_cv_gnu_library=yes
3709 echo "$as_me: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 cf_cv_gnu_library=no
3713 rm -f conftest.$ac_objext conftest.$ac_ext
3716 echo "$as_me:3716: result: $cf_cv_gnu_library" >&5
3717 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3719 if test x$cf_cv_gnu_library = xyes; then
3721 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3722 # was changed to help a little. newlib incorporated the change about 4
3724 echo "$as_me:3724: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3725 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3726 if test "${cf_cv_gnu_library_219+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3733 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3735 cat >conftest.$ac_ext <<_ACEOF
3736 #line 3736 "configure"
3737 #include "confdefs.h"
3738 #include <sys/types.h>
3743 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3745 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3748 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3754 rm -f conftest.$ac_objext
3755 if { (eval echo "$as_me:3755: \"$ac_compile\"") >&5
3756 (eval $ac_compile) 2>&5
3758 echo "$as_me:3758: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:3761: \"$ac_try\"") >&5
3764 echo "$as_me:3764: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 cf_cv_gnu_library_219=yes
3768 echo "$as_me: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 cf_cv_gnu_library_219=no
3772 rm -f conftest.$ac_objext conftest.$ac_ext
3776 echo "$as_me:3776: result: $cf_cv_gnu_library_219" >&5
3777 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3779 if test "x$cf_cv_gnu_library_219" = xyes; then
3781 echo "$as_me:3781: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3782 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3783 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 cf_new_extra_cppflags=
3792 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3794 case $cf_fix_cppflags in
3796 case $cf_add_cflags in
3797 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3798 case $cf_add_cflags in
3800 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3802 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3803 && test -z "${cf_tst_cflags}" \
3804 && cf_fix_cppflags=yes
3806 if test $cf_fix_cppflags = yes ; then
3808 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3809 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3812 elif test "${cf_tst_cflags}" = "\"'" ; then
3814 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3815 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3825 case $cf_add_cflags in
3827 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3829 CPPFLAGS=`echo "$CPPFLAGS" | \
3830 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3831 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3836 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3837 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3844 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3845 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3852 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3853 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3855 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3857 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3858 && test -z "${cf_tst_cflags}" \
3859 && cf_fix_cppflags=no
3864 if test -n "$cf_new_cflags" ; then
3866 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3867 CFLAGS="${CFLAGS}$cf_new_cflags"
3871 if test -n "$cf_new_cppflags" ; then
3873 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3874 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3878 if test -n "$cf_new_extra_cppflags" ; then
3880 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3881 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3885 cat >conftest.$ac_ext <<_ACEOF
3886 #line 3886 "configure"
3887 #include "confdefs.h"
3890 #include <sys/types.h>
3896 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3899 # error GNU C library is too old
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:3906: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>&5
3909 echo "$as_me:3909: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -s conftest.$ac_objext'
3912 { (eval echo "$as_me:3912: \"$ac_try\"") >&5
3915 echo "$as_me:3915: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3917 cf_cv_gnu_dftsrc_219=yes
3919 echo "$as_me: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3921 cf_cv_gnu_dftsrc_219=no
3923 rm -f conftest.$ac_objext conftest.$ac_ext
3926 echo "$as_me:3926: result: $cf_cv_gnu_dftsrc_219" >&5
3927 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3928 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3930 cf_cv_gnu_dftsrc_219=maybe
3933 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3935 echo "$as_me:3935: checking if we must define _GNU_SOURCE" >&5
3936 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3937 if test "${cf_cv_gnu_source+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 cat >conftest.$ac_ext <<_ACEOF
3942 #line 3942 "configure"
3943 #include "confdefs.h"
3944 #include <sys/types.h>
3949 #ifndef _XOPEN_SOURCE
3950 #error expected _XOPEN_SOURCE to be defined
3956 rm -f conftest.$ac_objext
3957 if { (eval echo "$as_me:3957: \"$ac_compile\"") >&5
3958 (eval $ac_compile) 2>&5
3960 echo "$as_me:3960: \$? = $ac_status" >&5
3961 (exit $ac_status); } &&
3962 { ac_try='test -s conftest.$ac_objext'
3963 { (eval echo "$as_me:3963: \"$ac_try\"") >&5
3966 echo "$as_me:3966: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then