2 # From configure.in Revision: 1.79 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20200802.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="gen/gen.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 runstatedir='${localstatedir}/run'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${datarootdir}/info'
184 mandir='${datarootdir}/man'
186 # Identity of this package.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
236 | --dataroo | --dataro | --datar)
237 ac_prev=datarootdir ;;
238 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
239 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
240 datarootdir=$ac_optarg ;;
242 -disable-* | --disable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 eval "enable_$ac_feature=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
253 # Reject names that are not valid shell variable names.
254 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
255 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
256 { (exit 1); exit 1; }; }
257 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
259 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 eval "enable_$ac_feature='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix=$ac_optarg ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he | -h)
279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
280 ac_init_help=recursive ;;
281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
282 ac_init_help=short ;;
284 -host | --host | --hos | --ho)
285 ac_prev=host_alias ;;
286 -host=* | --host=* | --hos=* | --ho=*)
287 host_alias=$ac_optarg ;;
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir=$ac_optarg ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir=$ac_optarg ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir=$ac_optarg ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir=$ac_optarg ;;
322 -runstatedir | --runstatedir | --runstatedi | --runstated \
323 | --runstate | --runstat | --runsta | --runst \
324 | --runs | --run | --ru)
325 ac_prev=runstatedir ;;
326 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
327 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
328 | --runs=* | --run=* | --ru=*)
329 runstatedir=$ac_optarg ;;
331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 # Obsolete; use --without-fp.
340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
350 | --oldin | --oldi | --old | --ol | --o)
351 ac_prev=oldincludedir ;;
352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
355 oldincludedir=$ac_optarg ;;
357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
363 | --program-pre | --program-pr | --program-p)
364 ac_prev=program_prefix ;;
365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
367 program_prefix=$ac_optarg ;;
369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
370 | --program-suf | --program-su | --program-s)
371 ac_prev=program_suffix ;;
372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
374 program_suffix=$ac_optarg ;;
376 -program-transform-name | --program-transform-name \
377 | --program-transform-nam | --program-transform-na \
378 | --program-transform-n | --program-transform- \
379 | --program-transform | --program-transfor \
380 | --program-transfo | --program-transf \
381 | --program-trans | --program-tran \
382 | --progr-tra | --program-tr | --program-t)
383 ac_prev=program_transform_name ;;
384 -program-transform-name=* | --program-transform-name=* \
385 | --program-transform-nam=* | --program-transform-na=* \
386 | --program-transform-n=* | --program-transform-=* \
387 | --program-transform=* | --program-transfor=* \
388 | --program-transfo=* | --program-transf=* \
389 | --program-trans=* | --program-tran=* \
390 | --progr-tra=* | --program-tr=* | --program-t=*)
391 program_transform_name=$ac_optarg ;;
393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
394 | -silent | --silent | --silen | --sile | --sil)
397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 sbindir=$ac_optarg ;;
403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
405 | --sharedst | --shareds | --shared | --share | --shar \
407 ac_prev=sharedstatedir ;;
408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 sharedstatedir=$ac_optarg ;;
414 -site | --site | --sit)
416 -site=* | --site=* | --sit=*)
419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
425 | --syscon | --sysco | --sysc | --sys | --sy)
426 ac_prev=sysconfdir ;;
427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
429 sysconfdir=$ac_optarg ;;
431 -target | --target | --targe | --targ | --tar | --ta | --t)
432 ac_prev=target_alias ;;
433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
434 target_alias=$ac_optarg ;;
436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 -version | --version | --versio | --versi | --vers | -V)
443 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
444 # Reject names that are not valid shell variable names.
445 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
446 { echo "$as_me: error: invalid package name: $ac_package" >&2
447 { (exit 1); exit 1; }; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 eval "with_$ac_package='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
457 # Reject names that are not valid shell variable names.
458 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
459 { echo "$as_me: error: invalid package name: $ac_package" >&2
460 { (exit 1); exit 1; }; }
461 ac_package=`echo $ac_package | sed 's/-/_/g'`
462 eval "with_$ac_package=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes=$ac_optarg ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries=$ac_optarg ;;
482 -*) { echo "$as_me: error: unrecognized option: $ac_option
483 Try \`$0 --help' for more information." >&2
484 { (exit 1); exit 1; }; }
488 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
489 # Reject names that are not valid shell variable names.
490 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
491 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
492 { (exit 1); exit 1; }; }
493 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
494 eval "$ac_envvar='$ac_optarg'"
498 # FIXME: should be removed in autoconf 3.0.
499 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
501 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
502 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
508 if test -n "$ac_prev"; then
509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
510 { echo "$as_me: error: missing argument to $ac_option" >&2
511 { (exit 1); exit 1; }; }
514 # Be sure to have absolute paths.
515 for ac_var in exec_prefix prefix
517 eval ac_val=$`echo $ac_var`
519 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
520 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
521 { (exit 1); exit 1; }; };;
525 # Be sure to have absolute paths.
526 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
527 localstatedir libdir includedir oldincludedir infodir mandir
529 eval ac_val=$`echo $ac_var`
531 [\\/$]* | ?:[\\/]* ) ;;
532 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
533 { (exit 1); exit 1; }; };;
537 # There might be people who depend on the old broken behavior: `$host'
538 # used to hold the argument of --host etc.
543 # FIXME: should be removed in autoconf 3.0.
544 if test "x$host_alias" != x; then
545 if test "x$build_alias" = x; then
546 cross_compiling=maybe
547 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
548 If a cross compiler is detected then cross compile mode will be used." >&2
549 elif test "x$build_alias" != "x$host_alias"; then
555 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557 test "$silent" = yes && exec 6>/dev/null
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
576 { (exit 1); exit 1; }; }
578 { echo "$as_me: error: cannot find sources in $srcdir" >&2
579 { (exit 1); exit 1; }; }
582 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
583 ac_env_build_alias_set=${build_alias+set}
584 ac_env_build_alias_value=$build_alias
585 ac_cv_env_build_alias_set=${build_alias+set}
586 ac_cv_env_build_alias_value=$build_alias
587 ac_env_host_alias_set=${host_alias+set}
588 ac_env_host_alias_value=$host_alias
589 ac_cv_env_host_alias_set=${host_alias+set}
590 ac_cv_env_host_alias_value=$host_alias
591 ac_env_target_alias_set=${target_alias+set}
592 ac_env_target_alias_value=$target_alias
593 ac_cv_env_target_alias_set=${target_alias+set}
594 ac_cv_env_target_alias_value=$target_alias
595 ac_env_CC_set=${CC+set}
597 ac_cv_env_CC_set=${CC+set}
598 ac_cv_env_CC_value=$CC
599 ac_env_CFLAGS_set=${CFLAGS+set}
600 ac_env_CFLAGS_value=$CFLAGS
601 ac_cv_env_CFLAGS_set=${CFLAGS+set}
602 ac_cv_env_CFLAGS_value=$CFLAGS
603 ac_env_LDFLAGS_set=${LDFLAGS+set}
604 ac_env_LDFLAGS_value=$LDFLAGS
605 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_cv_env_LDFLAGS_value=$LDFLAGS
607 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
608 ac_env_CPPFLAGS_value=$CPPFLAGS
609 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
611 ac_env_CPP_set=${CPP+set}
612 ac_env_CPP_value=$CPP
613 ac_cv_env_CPP_set=${CPP+set}
614 ac_cv_env_CPP_value=$CPP
617 # Report the --help message.
619 if test "$ac_init_help" = "long"; then
620 # Omit some internal or obsolete options to make the list less imposing.
621 # This message is too long to be a string in the A/UX 3.1 sh.
623 \`configure' configures this package to adapt to many kinds of systems.
625 Usage: $0 [OPTION]... [VAR=VALUE]...
627 To assign environment variables (e.g., CC, CFLAGS...), specify them as
628 VAR=VALUE. See below for descriptions of some of the useful variables.
630 Defaults for the options are specified in brackets.
633 -h, --help display this help and exit
634 --help=short display options specific to this package
635 --help=recursive display the short help of all the included packages
636 -V, --version display version information and exit
637 -q, --quiet, --silent do not print \`checking...' messages
638 --cache-file=FILE cache test results in FILE [disabled]
639 -C, --config-cache alias for \`--cache-file=config.cache'
640 -n, --no-create do not create output files
641 --srcdir=DIR find the sources in DIR [configure dir or \`..']
646 Installation directories:
647 --prefix=PREFIX install architecture-independent files in PREFIX
649 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
652 By default, \`make install' will install all the files in
653 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
654 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
655 for instance \`--prefix=\$HOME'.
657 For better control, use the options below.
659 Fine tuning of the installation directories:
660 --bindir=DIR user executables [EPREFIX/bin]
661 --sbindir=DIR system admin executables [EPREFIX/sbin]
662 --libexecdir=DIR program executables [EPREFIX/libexec]
663 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
664 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
665 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
666 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
667 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
668 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
669 --libdir=DIR object code libraries [EPREFIX/lib]
670 --includedir=DIR C header files [PREFIX/include]
671 --oldincludedir=DIR C header files for non-gcc [/usr/include]
672 --infodir=DIR info documentation [DATAROOTDIR/info]
673 --mandir=DIR man documentation [DATAROOTDIR/man]
679 --program-prefix=PREFIX prepend PREFIX to installed program names
680 --program-suffix=SUFFIX append SUFFIX to installed program names
681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
684 --build=BUILD configure for building on BUILD [guessed]
685 --host=HOST build programs to run on HOST [BUILD]
686 --target=TARGET configure for building compilers for TARGET [HOST]
690 if test -n "$ac_init_help"; then
695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-system-type=XXX test: override derived host system-type
704 --disable-stripping do not strip (debug info) installed executables
705 --with-pkg-config{=path} enable/disable use of pkg-config
706 --with-pkg-config-libdir=XXX use given directory for installing pc-files
707 --without-tests suppress build with test-programs
708 --enable-mixed-case tic should assume mixed-case filenames
709 --with-install-prefix prefixes actual install-location ($DESTDIR)
710 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
711 --with-build-cc=XXX the build C compiler ($BUILD_CC)
712 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
713 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
714 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
715 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
716 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
717 Options to Specify the Libraries Built/Used:
718 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
719 --with-curses-dir=DIR directory in which (n)curses is installed
720 --enable-widec compile with wide-char/UTF-8 code
721 --with-lib-prefix override library-prefix
722 --with-shlib-version=X Specify rel or abi version for shared libs
723 --enable-rpath-link link sample programs with rpath option
724 Fine-Tuning Your Configuration:
725 --enable-broken_linker compile with broken-linker support code
726 --disable-largefile omit support for large files
727 --with-rcs-ids compile-in RCS identifiers
729 --disable-ext-funcs disable function-extensions
730 --enable-const compile with extra/non-standard const
732 --without-develop disable development options
734 --with-pthread use POSIX thread library
735 --enable-weak-symbols enable weak-symbols for pthreads
736 --enable-reentrant compile with experimental reentrant code
737 --with-wrap-prefix=XXX override prefix used for public variables
738 Testing/development Options:
739 --disable-echo do not display "compiling" commands
740 --enable-warnings build: turn on GCC compiler warnings
741 --enable-warnings test: turn on gcc compiler warnings
742 --enable-assertions test: turn on generation of assertion code
743 --enable-expanded test: generate functions for certain macros
744 --disable-macros test: use functions rather than macros
745 --with-trace test: add trace() function to all models of ncurses
746 --disable-gnat-projects test: disable GNAT projects even if usable
747 Ada95 Binding Options:
748 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
749 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
750 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
751 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
752 --with-ada-libname=XXX override default Ada library-name
754 Some influential environment variables:
755 CC C compiler command
756 CFLAGS C compiler flags
757 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
758 nonstandard directory <lib dir>
759 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
760 headers in a nonstandard directory <include dir>
763 Use these variables to override the choices made by `configure' or to help
764 it to find libraries and programs with nonstandard names/locations.
769 if test "$ac_init_help" = "recursive"; then
770 # If there are subdirs, report their specific --help.
772 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
774 # A "../" for each directory in /$ac_subdir.
775 ac_dots=`echo $ac_subdir |
776 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
779 .) # No --srcdir option. We are building in place.
780 ac_sub_srcdir=$srcdir ;;
781 [\\/]* | ?:[\\/]* ) # Absolute path.
782 ac_sub_srcdir=$srcdir/$ac_subdir ;;
784 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
787 # Check for guested configure; otherwise get Cygnus style configure.
788 if test -f $ac_sub_srcdir/configure.gnu; then
790 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
791 elif test -f $ac_sub_srcdir/configure; then
793 $SHELL $ac_sub_srcdir/configure --help=recursive
794 elif test -f $ac_sub_srcdir/configure.ac ||
795 test -f $ac_sub_srcdir/configure.in; then
799 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
805 test -n "$ac_init_help" && exit 0
806 if $ac_init_version; then
809 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
810 Free Software Foundation, Inc.
811 This configure script is free software; the Free Software Foundation
812 gives unlimited permission to copy, distribute and modify it.
818 This file contains any messages produced by compilers while
819 running configure, to aid debugging if configure makes a mistake.
821 It was created by $as_me, which was
822 generated by GNU Autoconf 2.52.20200802. Invocation command line was
833 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
834 uname -m = `(uname -m) 2>/dev/null || echo unknown`
835 uname -r = `(uname -r) 2>/dev/null || echo unknown`
836 uname -s = `(uname -s) 2>/dev/null || echo unknown`
837 uname -v = `(uname -v) 2>/dev/null || echo unknown`
839 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
840 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
842 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
843 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
844 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
845 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
846 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
847 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
848 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
862 # Keep a trace of the command line.
863 # Strip out --no-create and --no-recursion so they do not pile up.
864 # Also quote any args containing shell meta-characters.
870 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
871 | --no-cr | --no-c) ;;
872 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
873 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
874 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
875 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
876 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
878 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
881 # Get rid of the leading space.
884 # When interrupted or exit'd, cleanup temporary files, and complete
885 # config.log. We remove comments because anyway the quotes in there
886 # would cause problems or look ugly.
888 # Save into config.log some information that might help in debugging.
890 echo "## ----------------- ##" >&5
891 echo "## Cache variables. ##" >&5
892 echo "## ----------------- ##" >&5
894 # The following way of writing the cache mishandles newlines in values,
897 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
900 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
905 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
909 sed "/^$/d" confdefs.h >conftest.log
910 if test -s conftest.log; then
912 echo "## ------------ ##" >&5
913 echo "## confdefs.h. ##" >&5
914 echo "## ------------ ##" >&5
919 test "$ac_signal" != 0 &&
920 echo "$as_me: caught signal $ac_signal" >&5
921 echo "$as_me: exit $exit_status" >&5
922 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
925 for ac_signal in 1 2 13 15; do
926 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
930 # confdefs.h avoids OS command line length limits that DEFS can exceed.
931 rm -rf conftest* confdefs.h
932 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
935 # Let the site file select an alternate cache file if it wants to.
936 # Prefer explicitly selected file to automatically selected ones.
937 if test -z "$CONFIG_SITE"; then
938 if test "x$prefix" != xNONE; then
939 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
941 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
944 for ac_site_file in $CONFIG_SITE; do
945 if test -r "$ac_site_file"; then
946 { echo "$as_me:946: loading site script $ac_site_file" >&5
947 echo "$as_me: loading site script $ac_site_file" >&6;}
948 cat "$ac_site_file" >&5
953 if test -r "$cache_file"; then
954 # Some versions of bash will fail to source /dev/null (special
955 # files actually), so we avoid doing that.
956 if test -f "$cache_file"; then
957 { echo "$as_me:957: loading cache $cache_file" >&5
958 echo "$as_me: loading cache $cache_file" >&6;}
960 [\\/]* | ?:[\\/]* ) . $cache_file;;
965 { echo "$as_me:965: creating cache $cache_file" >&5
966 echo "$as_me: creating cache $cache_file" >&6;}
970 # Check that the precious variables saved in the cache have kept the same
972 ac_cache_corrupted=false
973 for ac_var in `(set) 2>&1 |
974 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
976 eval ac_new_set=\$ac_env_${ac_var}_set
977 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
978 eval ac_new_val="\$ac_env_${ac_var}_value"
979 case $ac_old_set,$ac_new_set in
981 { echo "$as_me:981: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
982 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
983 ac_cache_corrupted=: ;;
985 { echo "$as_me:985: error: \`$ac_var' was not set in the previous run" >&5
986 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
987 ac_cache_corrupted=: ;;
990 if test "x$ac_old_val" != "x$ac_new_val"; then
991 { echo "$as_me:991: error: \`$ac_var' has changed since the previous run:" >&5
992 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
993 { echo "$as_me:993: former value: $ac_old_val" >&5
994 echo "$as_me: former value: $ac_old_val" >&2;}
995 { echo "$as_me:995: current value: $ac_new_val" >&5
996 echo "$as_me: current value: $ac_new_val" >&2;}
1000 # Pass precious variables to config.status. It doesn't matter if
1001 # we pass some twice (in addition to the command line arguments).
1002 if test "$ac_new_set" = set; then
1004 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1005 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1006 ac_configure_args="$ac_configure_args '$ac_arg'"
1008 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1013 if $ac_cache_corrupted; then
1014 { echo "$as_me:1014: error: changes in the environment can compromise the build" >&5
1015 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1016 { { echo "$as_me:1016: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1017 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1018 { (exit 1); exit 1; }; }
1022 ac_cpp='$CPP $CPPFLAGS'
1023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1026 ac_main_return=return
1028 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1029 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1031 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1032 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1034 echo "#! $SHELL" >conftest.sh
1035 echo "exit 0" >>conftest.sh
1036 chmod +x conftest.sh
1037 if { (echo "$as_me:1037: PATH=\".;.\"; conftest.sh") >&5
1038 (PATH=".;."; conftest.sh) 2>&5
1040 echo "$as_me:1040: \$? = $ac_status" >&5
1041 (exit $ac_status); }; then
1042 ac_path_separator=';'
1046 PATH_SEPARATOR="$ac_path_separator"
1049 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1054 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1055 if test -f $ac_dir/install-sh; then
1057 ac_install_sh="$ac_aux_dir/install-sh -c"
1059 elif test -f $ac_dir/install.sh; then
1061 ac_install_sh="$ac_aux_dir/install.sh -c"
1063 elif test -f $ac_dir/shtool; then
1065 ac_install_sh="$ac_aux_dir/shtool install -c"
1069 if test -z "$ac_aux_dir"; then
1070 { { echo "$as_me:1070: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1071 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1072 { (exit 1); exit 1; }; }
1074 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1075 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1076 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1078 # Make sure we can run config.sub.
1079 $ac_config_sub sun4 >/dev/null 2>&1 ||
1080 { { echo "$as_me:1080: error: cannot run $ac_config_sub" >&5
1081 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1082 { (exit 1); exit 1; }; }
1084 echo "$as_me:1084: checking build system type" >&5
1085 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1086 if test "${ac_cv_build+set}" = set; then
1087 echo $ECHO_N "(cached) $ECHO_C" >&6
1089 ac_cv_build_alias=$build_alias
1090 test -z "$ac_cv_build_alias" &&
1091 ac_cv_build_alias=`$ac_config_guess`
1092 test -z "$ac_cv_build_alias" &&
1093 { { echo "$as_me:1093: error: cannot guess build type; you must specify one" >&5
1094 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1095 { (exit 1); exit 1; }; }
1096 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1097 { { echo "$as_me:1097: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1098 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1099 { (exit 1); exit 1; }; }
1102 echo "$as_me:1102: result: $ac_cv_build" >&5
1103 echo "${ECHO_T}$ac_cv_build" >&6
1105 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1106 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1107 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1109 echo "$as_me:1109: checking host system type" >&5
1110 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1111 if test "${ac_cv_host+set}" = set; then
1112 echo $ECHO_N "(cached) $ECHO_C" >&6
1114 ac_cv_host_alias=$host_alias
1115 test -z "$ac_cv_host_alias" &&
1116 ac_cv_host_alias=$ac_cv_build_alias
1117 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1118 { { echo "$as_me:1118: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1119 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1120 { (exit 1); exit 1; }; }
1123 echo "$as_me:1123: result: $ac_cv_host" >&5
1124 echo "${ECHO_T}$ac_cv_host" >&6
1126 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1127 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1128 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1130 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1131 echo "$as_me:1131: checking target system type" >&5
1132 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1133 if test "${ac_cv_target+set}" = set; then
1134 echo $ECHO_N "(cached) $ECHO_C" >&6
1136 ac_cv_target_alias=$target_alias
1137 test "x$ac_cv_target_alias" = "x" &&
1138 ac_cv_target_alias=$ac_cv_host_alias
1139 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1140 { { echo "$as_me:1140: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1141 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1142 { (exit 1); exit 1; }; }
1145 echo "$as_me:1145: result: $ac_cv_target" >&5
1146 echo "${ECHO_T}$ac_cv_target" >&6
1147 target=$ac_cv_target
1148 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1149 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1150 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1152 # The aliases save the names the user supplied, while $host etc.
1153 # will get canonicalized.
1154 test -n "$target_alias" &&
1155 test "$program_prefix$program_suffix$program_transform_name" = \
1157 program_prefix=${target_alias}-
1158 system_name="$host_os"
1160 system_name="`(uname -s -r) 2>/dev/null`"
1161 if test -z "$system_name" ; then
1162 system_name="`(hostname) 2>/dev/null`"
1165 test -n "$system_name" &&
1166 cat >>confdefs.h <<EOF
1167 #define SYSTEM_NAME "$system_name"
1170 if test "${cf_cv_system_name+set}" = set; then
1171 echo $ECHO_N "(cached) $ECHO_C" >&6
1173 cf_cv_system_name="$system_name"
1176 test -z "$system_name" && system_name="$cf_cv_system_name"
1177 test -n "$cf_cv_system_name" && echo "$as_me:1177: result: Configuring for $cf_cv_system_name" >&5
1178 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1180 if test ".$system_name" != ".$cf_cv_system_name" ; then
1181 echo "$as_me:1181: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1182 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1183 { { echo "$as_me:1183: error: \"Please remove config.cache and try again.\"" >&5
1184 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1185 { (exit 1); exit 1; }; }
1188 # Check whether --with-system-type or --without-system-type was given.
1189 if test "${with_system_type+set}" = set; then
1190 withval="$with_system_type"
1191 { echo "$as_me:1191: WARNING: overriding system type to $withval" >&5
1192 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1193 cf_cv_system_name=$withval
1198 ### Save the given $CFLAGS to allow user-override.
1199 cf_user_CFLAGS="$CFLAGS"
1201 ### Default install-location
1203 echo "$as_me:1203: checking for prefix" >&5
1204 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1205 if test "x$prefix" = "xNONE" ; then
1206 case "$cf_cv_system_name" in
1207 # non-vendor systems don't have a conflict
1208 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1211 (*) prefix=$ac_default_prefix
1215 echo "$as_me:1215: result: $prefix" >&5
1216 echo "${ECHO_T}$prefix" >&6
1218 if test "x$prefix" = "xNONE" ; then
1219 echo "$as_me:1219: checking for default include-directory" >&5
1220 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1221 test -n "$verbose" && echo 1>&6
1224 $includedir/ncurses \
1226 $prefix/include/ncurses \
1227 /usr/local/include \
1228 /usr/local/include/ncurses \
1230 /usr/include/ncurses
1232 cf_dir=`eval echo $cf_symbol`
1233 if test -f $cf_dir/curses.h ; then
1234 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1235 includedir="$cf_symbol"
1236 test -n "$verbose" && echo $ac_n " found " 1>&6
1240 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1242 echo "$as_me:1242: result: $includedir" >&5
1243 echo "${ECHO_T}$includedir" >&6
1246 ### Checks for programs.
1249 ac_cpp='$CPP $CPPFLAGS'
1250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1253 ac_main_return=return
1254 if test -n "$ac_tool_prefix"; then
1255 for ac_prog in gnatgcc gcc cc
1257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1259 echo "$as_me:1259: checking for $ac_word" >&5
1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261 if test "${ac_cv_prog_CC+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 if test -n "$CC"; then
1265 ac_cv_prog_CC="$CC" # Let the user override the test.
1267 ac_save_IFS=$IFS; IFS=$ac_path_separator
1269 for ac_dir in $ac_dummy; do
1271 test -z "$ac_dir" && ac_dir=.
1272 $as_executable_p "$ac_dir/$ac_word" || continue
1273 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1274 echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1281 if test -n "$CC"; then
1282 echo "$as_me:1282: result: $CC" >&5
1283 echo "${ECHO_T}$CC" >&6
1285 echo "$as_me:1285: result: no" >&5
1286 echo "${ECHO_T}no" >&6
1289 test -n "$CC" && break
1292 if test -z "$CC"; then
1294 for ac_prog in gnatgcc gcc cc
1296 # Extract the first word of "$ac_prog", so it can be a program name with args.
1297 set dummy $ac_prog; ac_word=$2
1298 echo "$as_me:1298: checking for $ac_word" >&5
1299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 if test -n "$ac_ct_CC"; then
1304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1306 ac_save_IFS=$IFS; IFS=$ac_path_separator
1308 for ac_dir in $ac_dummy; do
1310 test -z "$ac_dir" && ac_dir=.
1311 $as_executable_p "$ac_dir/$ac_word" || continue
1312 ac_cv_prog_ac_ct_CC="$ac_prog"
1313 echo "$as_me:1313: found $ac_dir/$ac_word" >&5
1319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1320 if test -n "$ac_ct_CC"; then
1321 echo "$as_me:1321: result: $ac_ct_CC" >&5
1322 echo "${ECHO_T}$ac_ct_CC" >&6
1324 echo "$as_me:1324: result: no" >&5
1325 echo "${ECHO_T}no" >&6
1328 test -n "$ac_ct_CC" && break
1334 test -z "$CC" && { { echo "$as_me:1334: error: no acceptable cc found in \$PATH" >&5
1335 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1336 { (exit 1); exit 1; }; }
1338 # Provide some information about the compiler.
1339 echo "$as_me:1339:" \
1340 "checking for C compiler version" >&5
1341 ac_compiler=`set X $ac_compile; echo $2`
1342 { (eval echo "$as_me:1342: \"$ac_compiler --version </dev/null >&5\"") >&5
1343 (eval $ac_compiler --version </dev/null >&5) 2>&5
1345 echo "$as_me:1345: \$? = $ac_status" >&5
1346 (exit $ac_status); }
1347 { (eval echo "$as_me:1347: \"$ac_compiler -v </dev/null >&5\"") >&5
1348 (eval $ac_compiler -v </dev/null >&5) 2>&5
1350 echo "$as_me:1350: \$? = $ac_status" >&5
1351 (exit $ac_status); }
1352 { (eval echo "$as_me:1352: \"$ac_compiler -V </dev/null >&5\"") >&5
1353 (eval $ac_compiler -V </dev/null >&5) 2>&5
1355 echo "$as_me:1355: \$? = $ac_status" >&5
1356 (exit $ac_status); }
1358 cat >conftest.$ac_ext <<_ACEOF
1359 #line 1359 "configure"
1360 #include "confdefs.h"
1370 ac_clean_files_save=$ac_clean_files
1371 ac_clean_files="$ac_clean_files a.out a.exe"
1372 # Try to create an executable without -o first, disregard a.out.
1373 # It will help us diagnose broken compilers, and finding out an intuition
1375 echo "$as_me:1375: checking for C compiler default output" >&5
1376 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1377 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1378 if { (eval echo "$as_me:1378: \"$ac_link_default\"") >&5
1379 (eval $ac_link_default) 2>&5
1381 echo "$as_me:1381: \$? = $ac_status" >&5
1382 (exit $ac_status); }; then
1383 # Find the output, starting from the most likely. This scheme is
1384 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1386 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1387 ls a.out conftest 2>/dev/null;
1388 ls a.* conftest.* 2>/dev/null`; do
1390 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1391 a.out ) # We found the default executable, but exeext='' is most
1394 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1395 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1402 echo "$as_me: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1404 { { echo "$as_me:1404: error: C compiler cannot create executables" >&5
1405 echo "$as_me: error: C compiler cannot create executables" >&2;}
1406 { (exit 77); exit 77; }; }
1409 ac_exeext=$ac_cv_exeext
1410 echo "$as_me:1410: result: $ac_file" >&5
1411 echo "${ECHO_T}$ac_file" >&6
1413 # Check the compiler produces executables we can run. If not, either
1414 # the compiler is broken, or we cross compile.
1415 echo "$as_me:1415: checking whether the C compiler works" >&5
1416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1418 # If not cross compiling, check that we can run a simple program.
1419 if test "$cross_compiling" != yes; then
1420 if { ac_try='./$ac_file'
1421 { (eval echo "$as_me:1421: \"$ac_try\"") >&5
1424 echo "$as_me:1424: \$? = $ac_status" >&5
1425 (exit $ac_status); }; }; then
1428 if test "$cross_compiling" = maybe; then
1431 { { echo "$as_me:1431: error: cannot run C compiled programs.
1432 If you meant to cross compile, use \`--host'." >&5
1433 echo "$as_me: error: cannot run C compiled programs.
1434 If you meant to cross compile, use \`--host'." >&2;}
1435 { (exit 1); exit 1; }; }
1439 echo "$as_me:1439: result: yes" >&5
1440 echo "${ECHO_T}yes" >&6
1442 rm -f a.out a.exe conftest$ac_cv_exeext
1443 ac_clean_files=$ac_clean_files_save
1444 # Check the compiler produces executables we can run. If not, either
1445 # the compiler is broken, or we cross compile.
1446 echo "$as_me:1446: checking whether we are cross compiling" >&5
1447 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1448 echo "$as_me:1448: result: $cross_compiling" >&5
1449 echo "${ECHO_T}$cross_compiling" >&6
1451 echo "$as_me:1451: checking for executable suffix" >&5
1452 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1453 if { (eval echo "$as_me:1453: \"$ac_link\"") >&5
1454 (eval $ac_link) 2>&5
1456 echo "$as_me:1456: \$? = $ac_status" >&5
1457 (exit $ac_status); }; then
1458 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1459 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1460 # work properly (i.e., refer to `conftest.exe'), while it won't with
1462 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1464 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1472 { { echo "$as_me:1472: error: cannot compute EXEEXT: cannot compile and link" >&5
1473 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1474 { (exit 1); exit 1; }; }
1477 rm -f conftest$ac_cv_exeext
1478 echo "$as_me:1478: result: $ac_cv_exeext" >&5
1479 echo "${ECHO_T}$ac_cv_exeext" >&6
1481 rm -f conftest.$ac_ext
1482 EXEEXT=$ac_cv_exeext
1484 echo "$as_me:1484: checking for object suffix" >&5
1485 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1486 if test "${ac_cv_objext+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 cat >conftest.$ac_ext <<_ACEOF
1490 #line 1490 "configure"
1491 #include "confdefs.h"
1501 rm -f conftest.o conftest.obj
1502 if { (eval echo "$as_me:1502: \"$ac_compile\"") >&5
1503 (eval $ac_compile) 2>&5
1505 echo "$as_me:1505: \$? = $ac_status" >&5
1506 (exit $ac_status); }; then
1507 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1509 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1510 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1515 echo "$as_me: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1517 { { echo "$as_me:1517: error: cannot compute OBJEXT: cannot compile" >&5
1518 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1519 { (exit 1); exit 1; }; }
1522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1524 echo "$as_me:1524: result: $ac_cv_objext" >&5
1525 echo "${ECHO_T}$ac_cv_objext" >&6
1526 OBJEXT=$ac_cv_objext
1528 echo "$as_me:1528: checking whether we are using the GNU C compiler" >&5
1529 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1530 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 cat >conftest.$ac_ext <<_ACEOF
1534 #line 1534 "configure"
1535 #include "confdefs.h"
1548 rm -f conftest.$ac_objext
1549 if { (eval echo "$as_me:1549: \"$ac_compile\"") >&5
1550 (eval $ac_compile) 2>&5
1552 echo "$as_me:1552: \$? = $ac_status" >&5
1553 (exit $ac_status); } &&
1554 { ac_try='test -s conftest.$ac_objext'
1555 { (eval echo "$as_me:1555: \"$ac_try\"") >&5
1558 echo "$as_me:1558: \$? = $ac_status" >&5
1559 (exit $ac_status); }; }; then
1562 echo "$as_me: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1566 rm -f conftest.$ac_objext conftest.$ac_ext
1567 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1570 echo "$as_me:1570: result: $ac_cv_c_compiler_gnu" >&5
1571 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1572 GCC=`test $ac_compiler_gnu = yes && echo yes`
1573 ac_test_CFLAGS=${CFLAGS+set}
1574 ac_save_CFLAGS=$CFLAGS
1576 echo "$as_me:1576: checking whether $CC accepts -g" >&5
1577 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1578 if test "${ac_cv_prog_cc_g+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 cat >conftest.$ac_ext <<_ACEOF
1582 #line 1582 "configure"
1583 #include "confdefs.h"
1593 rm -f conftest.$ac_objext
1594 if { (eval echo "$as_me:1594: \"$ac_compile\"") >&5
1595 (eval $ac_compile) 2>&5
1597 echo "$as_me:1597: \$? = $ac_status" >&5
1598 (exit $ac_status); } &&
1599 { ac_try='test -s conftest.$ac_objext'
1600 { (eval echo "$as_me:1600: \"$ac_try\"") >&5
1603 echo "$as_me:1603: \$? = $ac_status" >&5
1604 (exit $ac_status); }; }; then
1607 echo "$as_me: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1611 rm -f conftest.$ac_objext conftest.$ac_ext
1613 echo "$as_me:1613: result: $ac_cv_prog_cc_g" >&5
1614 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1615 if test "$ac_test_CFLAGS" = set; then
1616 CFLAGS=$ac_save_CFLAGS
1617 elif test $ac_cv_prog_cc_g = yes; then
1618 if test "$GCC" = yes; then
1624 if test "$GCC" = yes; then
1630 # Some people use a C++ compiler to compile C. Since we use `exit',
1631 # in C++ we need to declare it. In case someone uses the same compiler
1632 # for both compiling C and C++ we need to have the C++ compiler decide
1633 # the declaration of exit, since it's the most demanding environment.
1634 cat >conftest.$ac_ext <<_ACEOF
1639 rm -f conftest.$ac_objext
1640 if { (eval echo "$as_me:1640: \"$ac_compile\"") >&5
1641 (eval $ac_compile) 2>&5
1643 echo "$as_me:1643: \$? = $ac_status" >&5
1644 (exit $ac_status); } &&
1645 { ac_try='test -s conftest.$ac_objext'
1646 { (eval echo "$as_me:1646: \"$ac_try\"") >&5
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); }; }; then
1651 for ac_declaration in \
1653 '#include <stdlib.h>' \
1654 'extern "C" void std::exit (int) throw (); using std::exit;' \
1655 'extern "C" void std::exit (int); using std::exit;' \
1656 'extern "C" void exit (int) throw ();' \
1657 'extern "C" void exit (int);' \
1660 cat >conftest.$ac_ext <<_ACEOF
1661 #line 1661 "configure"
1662 #include "confdefs.h"
1673 rm -f conftest.$ac_objext
1674 if { (eval echo "$as_me:1674: \"$ac_compile\"") >&5
1675 (eval $ac_compile) 2>&5
1677 echo "$as_me:1677: \$? = $ac_status" >&5
1678 (exit $ac_status); } &&
1679 { ac_try='test -s conftest.$ac_objext'
1680 { (eval echo "$as_me:1680: \"$ac_try\"") >&5
1683 echo "$as_me:1683: \$? = $ac_status" >&5
1684 (exit $ac_status); }; }; then
1687 echo "$as_me: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1691 rm -f conftest.$ac_objext conftest.$ac_ext
1692 cat >conftest.$ac_ext <<_ACEOF
1693 #line 1693 "configure"
1694 #include "confdefs.h"
1704 rm -f conftest.$ac_objext
1705 if { (eval echo "$as_me:1705: \"$ac_compile\"") >&5
1706 (eval $ac_compile) 2>&5
1708 echo "$as_me:1708: \$? = $ac_status" >&5
1709 (exit $ac_status); } &&
1710 { ac_try='test -s conftest.$ac_objext'
1711 { (eval echo "$as_me:1711: \"$ac_try\"") >&5
1714 echo "$as_me:1714: \$? = $ac_status" >&5
1715 (exit $ac_status); }; }; then
1718 echo "$as_me: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 rm -f conftest.$ac_objext conftest.$ac_ext
1724 if test -n "$ac_declaration"; then
1725 echo '#ifdef __cplusplus' >>confdefs.h
1726 echo $ac_declaration >>confdefs.h
1727 echo '#endif' >>confdefs.h
1731 echo "$as_me: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1734 rm -f conftest.$ac_objext conftest.$ac_ext
1736 ac_cpp='$CPP $CPPFLAGS'
1737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1740 ac_main_return=return
1743 if test "$GCC" = yes ; then
1744 echo "$as_me:1744: checking version of $CC" >&5
1745 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1746 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.].*//'`"
1747 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1748 echo "$as_me:1748: result: $GCC_VERSION" >&5
1749 echo "${ECHO_T}$GCC_VERSION" >&6
1754 if test "$GCC" = yes ; then
1757 echo "$as_me:1757: checking if this is really Intel C compiler" >&5
1758 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1759 cf_save_CFLAGS="$CFLAGS"
1760 CFLAGS="$CFLAGS -no-gcc"
1761 cat >conftest.$ac_ext <<_ACEOF
1762 #line 1762 "configure"
1763 #include "confdefs.h"
1769 #ifdef __INTEL_COMPILER
1778 rm -f conftest.$ac_objext
1779 if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1782 echo "$as_me:1782: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try='test -s conftest.$ac_objext'
1785 { (eval echo "$as_me:1785: \"$ac_try\"") >&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1791 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1794 echo "$as_me: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 rm -f conftest.$ac_objext conftest.$ac_ext
1798 CFLAGS="$cf_save_CFLAGS"
1799 echo "$as_me:1799: result: $INTEL_COMPILER" >&5
1800 echo "${ECHO_T}$INTEL_COMPILER" >&6
1807 if test "$GCC" = yes ; then
1808 echo "$as_me:1808: checking if this is really Clang C compiler" >&5
1809 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1810 cf_save_CFLAGS="$CFLAGS"
1811 cat >conftest.$ac_ext <<_ACEOF
1812 #line 1812 "configure"
1813 #include "confdefs.h"
1828 rm -f conftest.$ac_objext
1829 if { (eval echo "$as_me:1829: \"$ac_compile\"") >&5
1830 (eval $ac_compile) 2>&5
1832 echo "$as_me:1832: \$? = $ac_status" >&5
1833 (exit $ac_status); } &&
1834 { ac_try='test -s conftest.$ac_objext'
1835 { (eval echo "$as_me:1835: \"$ac_try\"") >&5
1838 echo "$as_me:1838: \$? = $ac_status" >&5
1839 (exit $ac_status); }; }; then
1843 echo "$as_me: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1846 rm -f conftest.$ac_objext conftest.$ac_ext
1847 CFLAGS="$cf_save_CFLAGS"
1848 echo "$as_me:1848: result: $CLANG_COMPILER" >&5
1849 echo "${ECHO_T}$CLANG_COMPILER" >&6
1854 if test "x$CLANG_COMPILER" = "xyes" ; then
1856 (c[1-9][0-9]|*/c[1-9][0-9])
1857 { echo "$as_me:1857: WARNING: replacing broken compiler alias $CC" >&5
1858 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
1859 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
1864 echo "$as_me:1864: checking version of $CC" >&5
1865 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1866 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.].*//'`"
1867 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
1868 echo "$as_me:1868: result: $CLANG_VERSION" >&5
1869 echo "${ECHO_T}$CLANG_VERSION" >&6
1871 for cf_clang_opt in \
1872 -Qunused-arguments \
1873 -Wno-error=implicit-function-declaration
1875 echo "$as_me:1875: checking if option $cf_clang_opt works" >&5
1876 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
1877 cf_save_CFLAGS="$CFLAGS"
1878 CFLAGS="$CFLAGS $cf_clang_opt"
1879 cat >conftest.$ac_ext <<_ACEOF
1880 #line 1880 "configure"
1881 #include "confdefs.h"
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { (eval echo "$as_me:1894: \"$ac_link\"") >&5
1895 (eval $ac_link) 2>&5
1897 echo "$as_me:1897: \$? = $ac_status" >&5
1898 (exit $ac_status); } &&
1899 { ac_try='test -s conftest$ac_exeext'
1900 { (eval echo "$as_me:1900: \"$ac_try\"") >&5
1903 echo "$as_me:1903: \$? = $ac_status" >&5
1904 (exit $ac_status); }; }; then
1908 echo "$as_me: failed program was:" >&5
1909 cat conftest.$ac_ext >&5
1913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1914 echo "$as_me:1914: result: $cf_clang_optok" >&5
1915 echo "${ECHO_T}$cf_clang_optok" >&6
1916 CFLAGS="$cf_save_CFLAGS"
1917 if test $cf_clang_optok = yes; then
1918 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
1920 echo "${as_me:-configure}:1920: testing adding option $cf_clang_opt ..." 1>&5
1922 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
1923 CFLAGS="${CFLAGS}$cf_clang_opt"
1929 echo "$as_me:1929: checking for $CC option to accept ANSI C" >&5
1930 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1931 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_cv_prog_cc_stdc=no
1936 cat >conftest.$ac_ext <<_ACEOF
1937 #line 1937 "configure"
1938 #include "confdefs.h"
1941 #include <sys/types.h>
1942 #include <sys/stat.h>
1943 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1944 struct buf { int x; };
1945 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1946 static char *e (p, i)
1952 static char *f (char * (*g) (char **, int), char **p, ...)
1957 s = g (p, va_arg (v,int));
1961 int test (int i, double x);
1962 struct s1 {int (*f) (int a);};
1963 struct s2 {int (*f) (double a);};
1964 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1970 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1975 # Don't try gcc -ansi; that turns off useful extensions and
1976 # breaks some systems' header files.
1977 # AIX -qlanglvl=ansi
1978 # Ultrix and OSF/1 -std1
1979 # HP-UX 10.20 and later -Ae
1980 # HP-UX older versions -Aa -D_HPUX_SOURCE
1981 # SVR4 -Xc -D__EXTENSIONS__
1982 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1984 CC="$ac_save_CC $ac_arg"
1985 rm -f conftest.$ac_objext
1986 if { (eval echo "$as_me:1986: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>&5
1989 echo "$as_me:1989: \$? = $ac_status" >&5
1990 (exit $ac_status); } &&
1991 { ac_try='test -s conftest.$ac_objext'
1992 { (eval echo "$as_me:1992: \"$ac_try\"") >&5
1995 echo "$as_me:1995: \$? = $ac_status" >&5
1996 (exit $ac_status); }; }; then
1997 ac_cv_prog_cc_stdc=$ac_arg
2000 echo "$as_me: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2003 rm -f conftest.$ac_objext
2005 rm -f conftest.$ac_ext conftest.$ac_objext
2010 case "x$ac_cv_prog_cc_stdc" in
2012 echo "$as_me:2012: result: none needed" >&5
2013 echo "${ECHO_T}none needed" >&6 ;;
2015 echo "$as_me:2015: result: $ac_cv_prog_cc_stdc" >&5
2016 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2017 CC="$CC $ac_cv_prog_cc_stdc" ;;
2020 # This should have been defined by AC_PROG_CC
2023 echo "$as_me:2023: checking \$CFLAGS variable" >&5
2024 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2027 echo "$as_me:2027: result: broken" >&5
2028 echo "${ECHO_T}broken" >&6
2029 { echo "$as_me:2029: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2030 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2033 for cf_arg in $cf_flags
2039 cf_new_extra_cppflags=
2041 for cf_add_cflags in $cf_arg
2043 case $cf_fix_cppflags in
2045 case $cf_add_cflags in
2046 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2047 case $cf_add_cflags in
2049 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2051 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2052 && test -z "${cf_tst_cflags}" \
2053 && cf_fix_cppflags=yes
2055 if test $cf_fix_cppflags = yes ; then
2057 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2058 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2061 elif test "${cf_tst_cflags}" = "\"'" ; then
2063 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2064 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2074 case $cf_add_cflags in
2076 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2078 CPPFLAGS=`echo "$CPPFLAGS" | \
2079 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2080 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2085 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2086 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2093 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2094 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2101 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2102 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2104 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2106 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2107 && test -z "${cf_tst_cflags}" \
2108 && cf_fix_cppflags=no
2113 if test -n "$cf_new_cflags" ; then
2115 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2116 CFLAGS="${CFLAGS}$cf_new_cflags"
2120 if test -n "$cf_new_cppflags" ; then
2122 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2123 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2127 if test -n "$cf_new_extra_cppflags" ; then
2129 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2130 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2137 echo "$as_me:2137: result: ok" >&5
2138 echo "${ECHO_T}ok" >&6
2142 echo "$as_me:2142: checking \$CC variable" >&5
2143 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2146 echo "$as_me:2146: result: broken" >&5
2147 echo "${ECHO_T}broken" >&6
2148 { echo "$as_me:2148: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2149 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2151 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2152 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2154 for cf_arg in $cf_flags
2162 cf_new_extra_cppflags=
2164 for cf_add_cflags in $cf_arg
2166 case $cf_fix_cppflags in
2168 case $cf_add_cflags in
2169 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2170 case $cf_add_cflags in
2172 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2174 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2175 && test -z "${cf_tst_cflags}" \
2176 && cf_fix_cppflags=yes
2178 if test $cf_fix_cppflags = yes ; then
2180 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2181 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2184 elif test "${cf_tst_cflags}" = "\"'" ; then
2186 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2187 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2197 case $cf_add_cflags in
2199 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2201 CPPFLAGS=`echo "$CPPFLAGS" | \
2202 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2203 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2208 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2209 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2216 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2217 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2224 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2225 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2227 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2229 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2230 && test -z "${cf_tst_cflags}" \
2231 && cf_fix_cppflags=no
2236 if test -n "$cf_new_cflags" ; then
2238 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2239 CFLAGS="${CFLAGS}$cf_new_cflags"
2243 if test -n "$cf_new_cppflags" ; then
2245 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2246 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2250 if test -n "$cf_new_extra_cppflags" ; then
2252 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2253 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2263 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2265 echo "${as_me:-configure}:2265: testing resulting CC: '$CC' ..." 1>&5
2267 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2269 echo "${as_me:-configure}:2269: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2271 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2273 echo "${as_me:-configure}:2273: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2277 echo "$as_me:2277: result: ok" >&5
2278 echo "${ECHO_T}ok" >&6
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287 ac_main_return=return
2288 echo "$as_me:2288: checking how to run the C preprocessor" >&5
2289 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2290 # On Suns, sometimes $CPP names a directory.
2291 if test -n "$CPP" && test -d "$CPP"; then
2294 if test -z "$CPP"; then
2295 if test "${ac_cv_prog_CPP+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 # Double quotes because CPP needs to be expanded
2299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2302 for ac_c_preproc_warn_flag in '' yes
2304 # Use a header file that comes with gcc, so configuring glibc
2305 # with a fresh cross-compiler works.
2306 # On the NeXT, cc -E runs the code through the compiler's parser,
2307 # not just through cpp. "Syntax error" is here to catch this case.
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line 2309 "configure"
2310 #include "confdefs.h"
2314 if { (eval echo "$as_me:2314: \"$ac_cpp conftest.$ac_ext\"") >&5
2315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2317 egrep -v '^ *\+' conftest.er1 >conftest.err
2319 cat conftest.err >&5
2320 echo "$as_me:2320: \$? = $ac_status" >&5
2321 (exit $ac_status); } >/dev/null; then
2322 if test -s conftest.err; then
2323 ac_cpp_err=$ac_c_preproc_warn_flag
2330 if test -z "$ac_cpp_err"; then
2333 echo "$as_me: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 # Broken: fails on valid input.
2338 rm -f conftest.err conftest.$ac_ext
2340 # OK, works on sane cases. Now check whether non-existent headers
2341 # can be detected and how.
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2345 #include <ac_nonexistent.h>
2347 if { (eval echo "$as_me:2347: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 egrep -v '^ *\+' conftest.er1 >conftest.err
2352 cat conftest.err >&5
2353 echo "$as_me:2353: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2363 if test -z "$ac_cpp_err"; then
2364 # Broken: success on invalid input.
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 # Passes both tests.
2373 rm -f conftest.err conftest.$ac_ext
2376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2377 rm -f conftest.err conftest.$ac_ext
2378 if $ac_preproc_ok; then
2390 echo "$as_me:2390: result: $CPP" >&5
2391 echo "${ECHO_T}$CPP" >&6
2393 for ac_c_preproc_warn_flag in '' yes
2395 # Use a header file that comes with gcc, so configuring glibc
2396 # with a fresh cross-compiler works.
2397 # On the NeXT, cc -E runs the code through the compiler's parser,
2398 # not just through cpp. "Syntax error" is here to catch this case.
2399 cat >conftest.$ac_ext <<_ACEOF
2400 #line 2400 "configure"
2401 #include "confdefs.h"
2405 if { (eval echo "$as_me:2405: \"$ac_cpp conftest.$ac_ext\"") >&5
2406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2408 egrep -v '^ *\+' conftest.er1 >conftest.err
2410 cat conftest.err >&5
2411 echo "$as_me:2411: \$? = $ac_status" >&5
2412 (exit $ac_status); } >/dev/null; then
2413 if test -s conftest.err; then
2414 ac_cpp_err=$ac_c_preproc_warn_flag
2421 if test -z "$ac_cpp_err"; then
2424 echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 # Broken: fails on valid input.
2429 rm -f conftest.err conftest.$ac_ext
2431 # OK, works on sane cases. Now check whether non-existent headers
2432 # can be detected and how.
2433 cat >conftest.$ac_ext <<_ACEOF
2434 #line 2434 "configure"
2435 #include "confdefs.h"
2436 #include <ac_nonexistent.h>
2438 if { (eval echo "$as_me:2438: \"$ac_cpp conftest.$ac_ext\"") >&5
2439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2441 egrep -v '^ *\+' conftest.er1 >conftest.err
2443 cat conftest.err >&5
2444 echo "$as_me:2444: \$? = $ac_status" >&5
2445 (exit $ac_status); } >/dev/null; then
2446 if test -s conftest.err; then
2447 ac_cpp_err=$ac_c_preproc_warn_flag
2454 if test -z "$ac_cpp_err"; then
2455 # Broken: success on invalid input.
2458 echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 # Passes both tests.
2464 rm -f conftest.err conftest.$ac_ext
2467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2468 rm -f conftest.err conftest.$ac_ext
2469 if $ac_preproc_ok; then
2472 { { echo "$as_me:2472: error: C preprocessor \"$CPP\" fails sanity check" >&5
2473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2474 { (exit 1); exit 1; }; }
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482 ac_main_return=return
2484 if test $ac_cv_c_compiler_gnu = yes; then
2485 echo "$as_me:2485: checking whether $CC needs -traditional" >&5
2486 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2487 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 ac_pattern="Autoconf.*'x'"
2491 cat >conftest.$ac_ext <<_ACEOF
2492 #line 2492 "configure"
2493 #include "confdefs.h"
2495 int Autoconf = TIOCGETP;
2497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2498 egrep "$ac_pattern" >/dev/null 2>&1; then
2499 ac_cv_prog_gcc_traditional=yes
2501 ac_cv_prog_gcc_traditional=no
2505 if test $ac_cv_prog_gcc_traditional = no; then
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line 2507 "configure"
2508 #include "confdefs.h"
2510 int Autoconf = TCGETA;
2512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2513 egrep "$ac_pattern" >/dev/null 2>&1; then
2514 ac_cv_prog_gcc_traditional=yes
2520 echo "$as_me:2520: result: $ac_cv_prog_gcc_traditional" >&5
2521 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2522 if test $ac_cv_prog_gcc_traditional = yes; then
2523 CC="$CC -traditional"
2527 echo "$as_me:2527: checking whether $CC understands -c and -o together" >&5
2528 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2529 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 cat > conftest.$ac_ext <<CF_EOF
2536 ${cf_cv_main_return:-return}(0);
2539 # We do the test twice because some compilers refuse to overwrite an
2540 # existing .o file with -o, though they will create one.
2541 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2542 if { (eval echo "$as_me:2542: \"$ac_try\"") >&5
2545 echo "$as_me:2545: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 test -f conftest2.$ac_objext && { (eval echo "$as_me:2547: \"$ac_try\"") >&5
2550 echo "$as_me:2550: \$? = $ac_status" >&5
2551 (exit $ac_status); };
2553 eval cf_cv_prog_CC_c_o=yes
2555 eval cf_cv_prog_CC_c_o=no
2560 if test $cf_cv_prog_CC_c_o = yes; then
2561 echo "$as_me:2561: result: yes" >&5
2562 echo "${ECHO_T}yes" >&6
2564 echo "$as_me:2564: result: no" >&5
2565 echo "${ECHO_T}no" >&6
2568 test "$program_prefix" != NONE &&
2569 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2570 # Use a double $ so make ignores it.
2571 test "$program_suffix" != NONE &&
2572 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2573 # Double any \ or $. echo might interpret backslashes.
2574 # By default was `s,x,x', remove it if useless.
2575 cat <<\_ACEOF >conftest.sed
2576 s/[\\$]/&&/g;s/;s,x,x,$//
2578 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2581 for ac_prog in mawk gawk nawk awk
2583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2584 set dummy $ac_prog; ac_word=$2
2585 echo "$as_me:2585: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2587 if test "${ac_cv_prog_AWK+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 if test -n "$AWK"; then
2591 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2593 ac_save_IFS=$IFS; IFS=$ac_path_separator
2595 for ac_dir in $ac_dummy; do
2597 test -z "$ac_dir" && ac_dir=.
2598 $as_executable_p "$ac_dir/$ac_word" || continue
2599 ac_cv_prog_AWK="$ac_prog"
2600 echo "$as_me:2600: found $ac_dir/$ac_word" >&5
2607 if test -n "$AWK"; then
2608 echo "$as_me:2608: result: $AWK" >&5
2609 echo "${ECHO_T}$AWK" >&6
2611 echo "$as_me:2611: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2615 test -n "$AWK" && break
2618 test -z "$AWK" && { { echo "$as_me:2618: error: No awk program found" >&5
2619 echo "$as_me: error: No awk program found" >&2;}
2620 { (exit 1); exit 1; }; }
2622 echo "$as_me:2622: checking for egrep" >&5
2623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2624 if test "${ac_cv_prog_egrep+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2628 then ac_cv_prog_egrep='grep -E'
2629 else ac_cv_prog_egrep='egrep'
2632 echo "$as_me:2632: result: $ac_cv_prog_egrep" >&5
2633 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2634 EGREP=$ac_cv_prog_egrep
2636 test -z "$EGREP" && { { echo "$as_me:2636: error: No egrep program found" >&5
2637 echo "$as_me: error: No egrep program found" >&2;}
2638 { (exit 1); exit 1; }; }
2640 # Find a good install program. We prefer a C program (faster),
2641 # so one script is as good as another. But avoid the broken or
2642 # incompatible versions:
2643 # SysV /etc/install, /usr/sbin/install
2644 # SunOS /usr/etc/install
2645 # IRIX /sbin/install
2647 # AmigaOS /C/install, which installs bootblocks on floppy discs
2648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2651 # ./install, which can be erroneously created by make from ./install.sh.
2652 echo "$as_me:2652: checking for a BSD compatible install" >&5
2653 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2654 if test -z "$INSTALL"; then
2655 if test "${ac_cv_path_install+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 ac_save_IFS=$IFS; IFS=$ac_path_separator
2659 for ac_dir in $PATH; do
2661 # Account for people who put trailing slashes in PATH elements.
2663 / | ./ | .// | /cC/* \
2664 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2667 # OSF1 and SCO ODT 3.0 have their own names for install.
2668 # Don't use installbsd from OSF since it installs stuff as root
2670 for ac_prog in ginstall scoinst install; do
2671 if $as_executable_p "$ac_dir/$ac_prog"; then
2672 if test $ac_prog = install &&
2673 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2674 # AIX install. It has an incompatible calling convention.
2676 elif test $ac_prog = install &&
2677 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2678 # program-specific install script used by HP pwplus--don't use.
2681 ac_cv_path_install="$ac_dir/$ac_prog -c"
2691 if test "${ac_cv_path_install+set}" = set; then
2692 INSTALL=$ac_cv_path_install
2694 # As a last resort, use the slow shell script. We don't cache a
2695 # path for INSTALL within a source directory, because that will
2696 # break other packages using the cache if that directory is
2697 # removed, or if the path is relative.
2698 INSTALL=$ac_install_sh
2701 echo "$as_me:2701: result: $INSTALL" >&5
2702 echo "${ECHO_T}$INSTALL" >&6
2704 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2705 # It thinks the first close brace ends the variable substitution.
2706 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2710 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2712 echo "$as_me:2712: checking whether ln -s works" >&5
2713 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2715 if test "$LN_S" = "ln -s"; then
2716 echo "$as_me:2716: result: yes" >&5
2717 echo "${ECHO_T}yes" >&6
2719 echo "$as_me:2719: result: no, using $LN_S" >&5
2720 echo "${ECHO_T}no, using $LN_S" >&6
2723 echo "$as_me:2723: checking if $LN_S -f options work" >&5
2724 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2726 rm -f conf$$.src conf$$dst
2728 echo first >conf$$.src
2729 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2734 rm -f conf$$.dst conf$$src
2735 echo "$as_me:2735: result: $cf_prog_ln_sf" >&5
2736 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2738 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2740 # Find a good install program. We prefer a C program (faster),
2741 # so one script is as good as another. But avoid the broken or
2742 # incompatible versions:
2743 # SysV /etc/install, /usr/sbin/install
2744 # SunOS /usr/etc/install
2745 # IRIX /sbin/install
2747 # AmigaOS /C/install, which installs bootblocks on floppy discs
2748 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2751 # ./install, which can be erroneously created by make from ./install.sh.
2752 echo "$as_me:2752: checking for a BSD compatible install" >&5
2753 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2754 if test -z "$INSTALL"; then
2755 if test "${ac_cv_path_install+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 ac_save_IFS=$IFS; IFS=$ac_path_separator
2759 for ac_dir in $PATH; do
2761 # Account for people who put trailing slashes in PATH elements.
2763 / | ./ | .// | /cC/* \
2764 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2767 # OSF1 and SCO ODT 3.0 have their own names for install.
2768 # Don't use installbsd from OSF since it installs stuff as root
2770 for ac_prog in ginstall scoinst install; do
2771 if $as_executable_p "$ac_dir/$ac_prog"; then
2772 if test $ac_prog = install &&
2773 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2774 # AIX install. It has an incompatible calling convention.
2776 elif test $ac_prog = install &&
2777 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2778 # program-specific install script used by HP pwplus--don't use.
2781 ac_cv_path_install="$ac_dir/$ac_prog -c"
2791 if test "${ac_cv_path_install+set}" = set; then
2792 INSTALL=$ac_cv_path_install
2794 # As a last resort, use the slow shell script. We don't cache a
2795 # path for INSTALL within a source directory, because that will
2796 # break other packages using the cache if that directory is
2797 # removed, or if the path is relative.
2798 INSTALL=$ac_install_sh
2801 echo "$as_me:2801: result: $INSTALL" >&5
2802 echo "${ECHO_T}$INSTALL" >&6
2804 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2805 # It thinks the first close brace ends the variable substitution.
2806 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2808 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2810 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2816 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2817 test -z "$cf_dir" && cf_dir=.
2818 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2822 echo "$as_me:2822: checking if you want to install stripped executables" >&5
2823 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2825 # Check whether --enable-stripping or --disable-stripping was given.
2826 if test "${enable_stripping+set}" = set; then
2827 enableval="$enable_stripping"
2828 test "$enableval" != no && enableval=yes
2829 if test "$enableval" != "yes" ; then
2839 echo "$as_me:2839: result: $with_stripping" >&5
2840 echo "${ECHO_T}$with_stripping" >&6
2842 if test "$with_stripping" = yes
2849 : ${INSTALL:=install}
2850 echo "$as_me:2850: checking if install accepts -p option" >&5
2851 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2852 if test "${cf_cv_install_p+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2862 if test -f conftest.out/conftest.in
2864 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2865 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2866 if test -s conftest.err
2881 echo "$as_me:2881: result: $cf_cv_install_p" >&5
2882 echo "${ECHO_T}$cf_cv_install_p" >&6
2884 echo "$as_me:2884: checking if install needs to be told about ownership" >&5
2885 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2886 case `$ac_config_guess` in
2895 echo "$as_me:2895: result: $with_install_o" >&5
2896 echo "${ECHO_T}$with_install_o" >&6
2897 if test "x$with_install_o" = xyes
2899 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'`
2904 echo "$as_me:2904: checking for long file names" >&5
2905 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2906 if test "${ac_cv_sys_long_file_names+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 ac_cv_sys_long_file_names=yes
2910 # Test for long file names in all the places we know might matter:
2911 # . the current directory, where building will happen
2912 # $prefix/lib where we will be installing things
2913 # $exec_prefix/lib likewise
2914 # eval it to expand exec_prefix.
2915 # $TMPDIR if set, where it might want to write temporary files
2916 # if $TMPDIR is not set:
2917 # /tmp where it might want to write temporary files
2920 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2923 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2925 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2926 test -d $ac_dir || continue
2927 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2928 ac_xdir=$ac_dir/cf$$
2929 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2930 ac_tf1=$ac_xdir/conftest9012345
2931 ac_tf2=$ac_xdir/conftest9012346
2932 (echo 1 >$ac_tf1) 2>/dev/null
2933 (echo 2 >$ac_tf2) 2>/dev/null
2934 ac_val=`cat $ac_tf1 2>/dev/null`
2935 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2936 ac_cv_sys_long_file_names=no
2937 rm -rf $ac_xdir 2>/dev/null
2940 rm -rf $ac_xdir 2>/dev/null
2943 echo "$as_me:2943: result: $ac_cv_sys_long_file_names" >&5
2944 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2945 if test $ac_cv_sys_long_file_names = yes; then
2947 cat >>confdefs.h <<\EOF
2948 #define HAVE_LONG_FILE_NAMES 1
2953 # if we find pkg-config, check if we should install the ".pc" files.
2955 echo "$as_me:2955: checking if you want to use pkg-config" >&5
2956 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2958 # Check whether --with-pkg-config or --without-pkg-config was given.
2959 if test "${with_pkg_config+set}" = set; then
2960 withval="$with_pkg_config"
2961 cf_pkg_config=$withval
2965 echo "$as_me:2965: result: $cf_pkg_config" >&5
2966 echo "${ECHO_T}$cf_pkg_config" >&6
2968 case $cf_pkg_config in
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2977 echo "$as_me:2977: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2987 ac_save_IFS=$IFS; IFS=$ac_path_separator
2989 for ac_dir in $ac_dummy; do
2991 test -z "$ac_dir" && ac_dir=.
2992 if $as_executable_p "$ac_dir/$ac_word"; then
2993 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2994 echo "$as_me:2994: found $ac_dir/$ac_word" >&5
3002 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3004 if test -n "$PKG_CONFIG"; then
3005 echo "$as_me:3005: result: $PKG_CONFIG" >&5
3006 echo "${ECHO_T}$PKG_CONFIG" >&6
3008 echo "$as_me:3008: result: no" >&5
3009 echo "${ECHO_T}no" >&6
3013 if test -z "$ac_cv_path_PKG_CONFIG"; then
3014 ac_pt_PKG_CONFIG=$PKG_CONFIG
3015 # Extract the first word of "pkg-config", so it can be a program name with args.
3016 set dummy pkg-config; ac_word=$2
3017 echo "$as_me:3017: checking for $ac_word" >&5
3018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3019 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 case $ac_pt_PKG_CONFIG in
3024 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3027 ac_save_IFS=$IFS; IFS=$ac_path_separator
3029 for ac_dir in $ac_dummy; do
3031 test -z "$ac_dir" && ac_dir=.
3032 if $as_executable_p "$ac_dir/$ac_word"; then
3033 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3034 echo "$as_me:3034: found $ac_dir/$ac_word" >&5
3039 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3043 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3045 if test -n "$ac_pt_PKG_CONFIG"; then
3046 echo "$as_me:3046: result: $ac_pt_PKG_CONFIG" >&5
3047 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3049 echo "$as_me:3049: result: no" >&5
3050 echo "${ECHO_T}no" >&6
3053 PKG_CONFIG=$ac_pt_PKG_CONFIG
3055 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3064 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3065 if test "$PKG_CONFIG" != none ; then
3067 if test "x$prefix" != xNONE; then
3068 cf_path_syntax="$prefix"
3070 cf_path_syntax="$ac_default_prefix"
3073 case ".$PKG_CONFIG" in
3078 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3080 (.\${*prefix}*|.\${*dir}*)
3081 eval PKG_CONFIG="$PKG_CONFIG"
3082 case ".$PKG_CONFIG" in
3084 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3089 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3092 { { echo "$as_me:3092: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3093 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3094 { (exit 1); exit 1; }; }
3098 elif test "x$cf_pkg_config" != xno ; then
3099 { echo "$as_me:3099: WARNING: pkg-config is not installed" >&5
3100 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3105 echo "$as_me:3105: checking for pkg-config library directory" >&5
3106 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3109 echo "$as_me:3109: checking for $PKG_CONFIG library directory" >&5
3110 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3114 PKG_CONFIG_LIBDIR=no
3116 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3117 if test "${with_pkg_config_libdir+set}" = set; then
3118 withval="$with_pkg_config_libdir"
3119 PKG_CONFIG_LIBDIR=$withval
3121 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3124 case x$PKG_CONFIG_LIBDIR in
3128 # Look for the library directory using the same prefix as the executable
3129 if test "x$PKG_CONFIG" = xnone
3133 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3136 # If you don't like using the default architecture, you have to specify the
3137 # intended library directory and corresponding compiler/linker options.
3139 # This case allows for Debian's 2014-flavor of multiarch, along with the
3140 # most common variations before that point. Some other variants spell the
3141 # directory differently, e.g., "pkg-config", and put it in unusual places.
3142 # pkg-config has always been poorly standardized, which is ironic...
3143 case x`(arch) 2>/dev/null` in
3146 $cf_path/lib/*64-linux-gnu \
3154 $cf_path/lib/*-linux-gnu \
3162 test -n "$verbose" && echo " list..." 1>&6
3164 echo "${as_me:-configure}:3164: testing list... ..." 1>&5
3166 for cf_config in $cf_search_path
3168 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3170 echo "${as_me:-configure}:3170: testing checking $cf_config/pkgconfig ..." 1>&5
3172 if test -d $cf_config/pkgconfig
3174 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3175 echo "$as_me:3175: checking done" >&5
3176 echo $ECHO_N "checking done... $ECHO_C" >&6
3185 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3186 echo "$as_me:3186: result: $PKG_CONFIG_LIBDIR" >&5
3187 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3190 echo "$as_me:3190: checking if you want to build test-programs" >&5
3191 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3193 # Check whether --with-tests or --without-tests was given.
3194 if test "${with_tests+set}" = set; then
3195 withval="$with_tests"
3196 cf_with_tests=$withval
3200 echo "$as_me:3200: result: $cf_with_tests" >&5
3201 echo "${ECHO_T}$cf_with_tests" >&6
3203 echo "$as_me:3203: checking if we should assume mixed-case filenames" >&5
3204 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3206 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3207 if test "${enable_mixed_case+set}" = set; then
3208 enableval="$enable_mixed_case"
3209 enable_mixedcase=$enableval
3211 enable_mixedcase=auto
3213 echo "$as_me:3213: result: $enable_mixedcase" >&5
3214 echo "${ECHO_T}$enable_mixedcase" >&6
3215 if test "$enable_mixedcase" = "auto" ; then
3217 echo "$as_me:3217: checking if filesystem supports mixed-case filenames" >&5
3218 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3219 if test "${cf_cv_mixedcase+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 if test "$cross_compiling" = yes ; then
3224 case $target_alias in
3225 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
3233 rm -f conftest CONFTEST
3235 if test -f CONFTEST ; then
3240 rm -f conftest CONFTEST
3244 echo "$as_me:3244: result: $cf_cv_mixedcase" >&5
3245 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3246 test "$cf_cv_mixedcase" = yes &&
3247 cat >>confdefs.h <<\EOF
3248 #define MIXEDCASE_FILENAMES 1
3252 cf_cv_mixedcase=$enable_mixedcase
3253 if test "$enable_mixedcase" = "yes" ; then
3254 cat >>confdefs.h <<\EOF
3255 #define MIXEDCASE_FILENAMES 1
3261 # do this after mixed-case option (tags/TAGS is not as important as tic).
3262 echo "$as_me:3262: checking whether ${MAKE-make} sets \${MAKE}" >&5
3263 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3264 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3265 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 cat >conftest.make <<\EOF
3270 @echo 'ac_maketemp="${MAKE}"'
3272 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3273 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3274 if test -n "$ac_maketemp"; then
3275 eval ac_cv_prog_make_${ac_make}_set=yes
3277 eval ac_cv_prog_make_${ac_make}_set=no
3281 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3282 echo "$as_me:3282: result: yes" >&5
3283 echo "${ECHO_T}yes" >&6
3286 echo "$as_me:3286: result: no" >&5
3287 echo "${ECHO_T}no" >&6
3288 SET_MAKE="MAKE=${MAKE-make}"
3291 for ac_prog in exctags ctags
3293 # Extract the first word of "$ac_prog", so it can be a program name with args.
3294 set dummy $ac_prog; ac_word=$2
3295 echo "$as_me:3295: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297 if test "${ac_cv_prog_CTAGS+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 if test -n "$CTAGS"; then
3301 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3303 ac_save_IFS=$IFS; IFS=$ac_path_separator
3305 for ac_dir in $ac_dummy; do
3307 test -z "$ac_dir" && ac_dir=.
3308 $as_executable_p "$ac_dir/$ac_word" || continue
3309 ac_cv_prog_CTAGS="$ac_prog"
3310 echo "$as_me:3310: found $ac_dir/$ac_word" >&5
3316 CTAGS=$ac_cv_prog_CTAGS
3317 if test -n "$CTAGS"; then
3318 echo "$as_me:3318: result: $CTAGS" >&5
3319 echo "${ECHO_T}$CTAGS" >&6
3321 echo "$as_me:3321: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3325 test -n "$CTAGS" && break
3328 for ac_prog in exetags etags
3330 # Extract the first word of "$ac_prog", so it can be a program name with args.
3331 set dummy $ac_prog; ac_word=$2
3332 echo "$as_me:3332: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_ETAGS+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 if test -n "$ETAGS"; then
3338 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3340 ac_save_IFS=$IFS; IFS=$ac_path_separator
3342 for ac_dir in $ac_dummy; do
3344 test -z "$ac_dir" && ac_dir=.
3345 $as_executable_p "$ac_dir/$ac_word" || continue
3346 ac_cv_prog_ETAGS="$ac_prog"
3347 echo "$as_me:3347: found $ac_dir/$ac_word" >&5
3353 ETAGS=$ac_cv_prog_ETAGS
3354 if test -n "$ETAGS"; then
3355 echo "$as_me:3355: result: $ETAGS" >&5
3356 echo "${ECHO_T}$ETAGS" >&6
3358 echo "$as_me:3358: result: no" >&5
3359 echo "${ECHO_T}no" >&6
3362 test -n "$ETAGS" && break
3365 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3366 set dummy ${CTAGS:-ctags}; ac_word=$2
3367 echo "$as_me:3367: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3369 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 if test -n "$MAKE_LOWER_TAGS"; then
3373 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3375 ac_save_IFS=$IFS; IFS=$ac_path_separator
3377 for ac_dir in $ac_dummy; do
3379 test -z "$ac_dir" && ac_dir=.
3380 $as_executable_p "$ac_dir/$ac_word" || continue
3381 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3382 echo "$as_me:3382: found $ac_dir/$ac_word" >&5
3386 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3389 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3390 if test -n "$MAKE_LOWER_TAGS"; then
3391 echo "$as_me:3391: result: $MAKE_LOWER_TAGS" >&5
3392 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3394 echo "$as_me:3394: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3398 if test "$cf_cv_mixedcase" = yes ; then
3399 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3400 set dummy ${ETAGS:-etags}; ac_word=$2
3401 echo "$as_me:3401: checking for $ac_word" >&5
3402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3403 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 if test -n "$MAKE_UPPER_TAGS"; then
3407 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3409 ac_save_IFS=$IFS; IFS=$ac_path_separator
3411 for ac_dir in $ac_dummy; do
3413 test -z "$ac_dir" && ac_dir=.
3414 $as_executable_p "$ac_dir/$ac_word" || continue
3415 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3416 echo "$as_me:3416: found $ac_dir/$ac_word" >&5
3420 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3423 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3424 if test -n "$MAKE_UPPER_TAGS"; then
3425 echo "$as_me:3425: result: $MAKE_UPPER_TAGS" >&5
3426 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3428 echo "$as_me:3428: result: no" >&5
3429 echo "${ECHO_T}no" >&6
3436 if test "$MAKE_UPPER_TAGS" = yes ; then
3442 if test "$MAKE_LOWER_TAGS" = yes ; then
3448 echo "$as_me:3448: checking for makeflags variable" >&5
3449 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3450 if test "${cf_cv_makeflags+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3457 cat >cf_makeflags.tmp <<CF_EOF
3460 @ echo '.$cf_option'
3462 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3463 case "$cf_result" in
3465 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3466 case "$cf_result" in
3467 (.*CC=*) cf_cv_makeflags=
3469 (*) cf_cv_makeflags=$cf_option
3478 echo "${as_me:-configure}:3478: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
3483 rm -f cf_makeflags.tmp
3486 echo "$as_me:3486: result: $cf_cv_makeflags" >&5
3487 echo "${ECHO_T}$cf_cv_makeflags" >&6
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3492 echo "$as_me:3492: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494 if test "${ac_cv_prog_RANLIB+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 if test -n "$RANLIB"; then
3498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3500 ac_save_IFS=$IFS; IFS=$ac_path_separator
3502 for ac_dir in $ac_dummy; do
3504 test -z "$ac_dir" && ac_dir=.
3505 $as_executable_p "$ac_dir/$ac_word" || continue
3506 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3507 echo "$as_me:3507: found $ac_dir/$ac_word" >&5
3513 RANLIB=$ac_cv_prog_RANLIB
3514 if test -n "$RANLIB"; then
3515 echo "$as_me:3515: result: $RANLIB" >&5
3516 echo "${ECHO_T}$RANLIB" >&6
3518 echo "$as_me:3518: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3523 if test -z "$ac_cv_prog_RANLIB"; then
3524 ac_ct_RANLIB=$RANLIB
3525 # Extract the first word of "ranlib", so it can be a program name with args.
3526 set dummy ranlib; ac_word=$2
3527 echo "$as_me:3527: checking for $ac_word" >&5
3528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 if test -n "$ac_ct_RANLIB"; then
3533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3535 ac_save_IFS=$IFS; IFS=$ac_path_separator
3537 for ac_dir in $ac_dummy; do
3539 test -z "$ac_dir" && ac_dir=.
3540 $as_executable_p "$ac_dir/$ac_word" || continue
3541 ac_cv_prog_ac_ct_RANLIB="ranlib"
3542 echo "$as_me:3542: found $ac_dir/$ac_word" >&5
3546 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3549 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3550 if test -n "$ac_ct_RANLIB"; then
3551 echo "$as_me:3551: result: $ac_ct_RANLIB" >&5
3552 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3554 echo "$as_me:3554: result: no" >&5
3555 echo "${ECHO_T}no" >&6
3558 RANLIB=$ac_ct_RANLIB
3560 RANLIB="$ac_cv_prog_RANLIB"
3563 if test -n "$ac_tool_prefix"; then
3564 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3565 set dummy ${ac_tool_prefix}ld; ac_word=$2
3566 echo "$as_me:3566: checking for $ac_word" >&5
3567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3568 if test "${ac_cv_prog_LD+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 if test -n "$LD"; then
3572 ac_cv_prog_LD="$LD" # Let the user override the test.
3574 ac_save_IFS=$IFS; IFS=$ac_path_separator
3576 for ac_dir in $ac_dummy; do
3578 test -z "$ac_dir" && ac_dir=.
3579 $as_executable_p "$ac_dir/$ac_word" || continue
3580 ac_cv_prog_LD="${ac_tool_prefix}ld"
3581 echo "$as_me:3581: found $ac_dir/$ac_word" >&5
3588 if test -n "$LD"; then
3589 echo "$as_me:3589: result: $LD" >&5
3590 echo "${ECHO_T}$LD" >&6
3592 echo "$as_me:3592: result: no" >&5
3593 echo "${ECHO_T}no" >&6
3597 if test -z "$ac_cv_prog_LD"; then
3599 # Extract the first word of "ld", so it can be a program name with args.
3600 set dummy ld; ac_word=$2
3601 echo "$as_me:3601: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3603 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 if test -n "$ac_ct_LD"; then
3607 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3609 ac_save_IFS=$IFS; IFS=$ac_path_separator
3611 for ac_dir in $ac_dummy; do
3613 test -z "$ac_dir" && ac_dir=.
3614 $as_executable_p "$ac_dir/$ac_word" || continue
3615 ac_cv_prog_ac_ct_LD="ld"
3616 echo "$as_me:3616: found $ac_dir/$ac_word" >&5
3620 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3623 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3624 if test -n "$ac_ct_LD"; then
3625 echo "$as_me:3625: result: $ac_ct_LD" >&5
3626 echo "${ECHO_T}$ac_ct_LD" >&6
3628 echo "$as_me:3628: result: no" >&5
3629 echo "${ECHO_T}no" >&6
3637 if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3639 set dummy ${ac_tool_prefix}ar; ac_word=$2
3640 echo "$as_me:3640: checking for $ac_word" >&5
3641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3642 if test "${ac_cv_prog_AR+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 if test -n "$AR"; then
3646 ac_cv_prog_AR="$AR" # Let the user override the test.
3648 ac_save_IFS=$IFS; IFS=$ac_path_separator
3650 for ac_dir in $ac_dummy; do
3652 test -z "$ac_dir" && ac_dir=.
3653 $as_executable_p "$ac_dir/$ac_word" || continue
3654 ac_cv_prog_AR="${ac_tool_prefix}ar"
3655 echo "$as_me:3655: found $ac_dir/$ac_word" >&5
3662 if test -n "$AR"; then
3663 echo "$as_me:3663: result: $AR" >&5
3664 echo "${ECHO_T}$AR" >&6
3666 echo "$as_me:3666: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3671 if test -z "$ac_cv_prog_AR"; then
3673 # Extract the first word of "ar", so it can be a program name with args.
3674 set dummy ar; ac_word=$2
3675 echo "$as_me:3675: checking for $ac_word" >&5
3676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3677 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 if test -n "$ac_ct_AR"; then
3681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3683 ac_save_IFS=$IFS; IFS=$ac_path_separator
3685 for ac_dir in $ac_dummy; do
3687 test -z "$ac_dir" && ac_dir=.
3688 $as_executable_p "$ac_dir/$ac_word" || continue
3689 ac_cv_prog_ac_ct_AR="ar"
3690 echo "$as_me:3690: found $ac_dir/$ac_word" >&5
3694 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3697 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3698 if test -n "$ac_ct_AR"; then
3699 echo "$as_me:3699: result: $ac_ct_AR" >&5
3700 echo "${ECHO_T}$ac_ct_AR" >&6
3702 echo "$as_me:3702: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3711 if test -n "$ac_tool_prefix"; then
3712 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3713 set dummy ${ac_tool_prefix}ar; ac_word=$2
3714 echo "$as_me:3714: checking for $ac_word" >&5
3715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3716 if test "${ac_cv_prog_AR+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 if test -n "$AR"; then
3720 ac_cv_prog_AR="$AR" # Let the user override the test.
3722 ac_save_IFS=$IFS; IFS=$ac_path_separator
3724 for ac_dir in $ac_dummy; do
3726 test -z "$ac_dir" && ac_dir=.
3727 $as_executable_p "$ac_dir/$ac_word" || continue
3728 ac_cv_prog_AR="${ac_tool_prefix}ar"
3729 echo "$as_me:3729: found $ac_dir/$ac_word" >&5
3736 if test -n "$AR"; then
3737 echo "$as_me:3737: result: $AR" >&5
3738 echo "${ECHO_T}$AR" >&6
3740 echo "$as_me:3740: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3745 if test -z "$ac_cv_prog_AR"; then
3747 # Extract the first word of "ar", so it can be a program name with args.
3748 set dummy ar; ac_word=$2
3749 echo "$as_me:3749: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if test -n "$ac_ct_AR"; then
3755 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3757 ac_save_IFS=$IFS; IFS=$ac_path_separator
3759 for ac_dir in $ac_dummy; do
3761 test -z "$ac_dir" && ac_dir=.
3762 $as_executable_p "$ac_dir/$ac_word" || continue
3763 ac_cv_prog_ac_ct_AR="ar"
3764 echo "$as_me:3764: found $ac_dir/$ac_word" >&5
3768 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3772 if test -n "$ac_ct_AR"; then
3773 echo "$as_me:3773: result: $ac_ct_AR" >&5
3774 echo "${ECHO_T}$ac_ct_AR" >&6
3776 echo "$as_me:3776: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3785 echo "$as_me:3785: checking for options to update archives" >&5
3786 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3787 if test "${cf_cv_ar_flags+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 case $cf_cv_system_name in
3794 cat >mk_static_lib.sh <<-EOF
3799 exec \$MSVC_BIN -out:"\$out" \$@
3801 chmod +x mk_static_lib.sh
3802 AR=`pwd`/mk_static_lib.sh
3805 cf_cv_ar_flags=unknown
3806 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
3809 # check if $ARFLAGS already contains this choice
3810 if test "x$ARFLAGS" != "x" ; then
3811 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3812 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3818 rm -f conftest.$ac_cv_objext
3821 cat >conftest.$ac_ext <<EOF
3822 #line 3822 "configure"
3823 int testdata[3] = { 123, 456, 789 };
3825 if { (eval echo "$as_me:3825: \"$ac_compile\"") >&5
3826 (eval $ac_compile) 2>&5
3828 echo "$as_me:3828: \$? = $ac_status" >&5
3829 (exit $ac_status); } ; then
3830 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3831 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3832 if test -f conftest.a ; then
3833 cf_cv_ar_flags=$cf_ar_flags
3837 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3839 echo "${as_me:-configure}:3839: testing cannot compile test-program ..." 1>&5
3844 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3849 echo "$as_me:3849: result: $cf_cv_ar_flags" >&5
3850 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3852 if test -n "$ARFLAGS" ; then
3853 if test -n "$cf_cv_ar_flags" ; then
3854 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3857 ARFLAGS=$cf_cv_ar_flags
3860 echo "$as_me:3860: checking for PATH separator" >&5
3861 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3862 case $cf_cv_system_name in
3863 (os2*) PATH_SEPARATOR=';' ;;
3864 (*) ${PATH_SEPARATOR:=':'} ;;
3867 echo "$as_me:3867: result: $PATH_SEPARATOR" >&5
3868 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3870 echo "$as_me:3870: checking if you have specified an install-prefix" >&5
3871 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3873 # Check whether --with-install-prefix or --without-install-prefix was given.
3874 if test "${with_install_prefix+set}" = set; then
3875 withval="$with_install_prefix"
3879 (*) DESTDIR="$withval"
3883 echo "$as_me:3883: result: $DESTDIR" >&5
3884 echo "${ECHO_T}$DESTDIR" >&6
3886 ###############################################################################
3888 # If we're cross-compiling, allow the user to override the tools and their
3889 # options. The configure script is oriented toward identifying the host
3890 # compiler, etc., but we need a build compiler to generate parts of the source.
3892 if test "$cross_compiling" = yes ; then
3894 # defaults that we might want to override
3895 : ${BUILD_CFLAGS:=''}
3896 : ${BUILD_CPPFLAGS:=''}
3897 : ${BUILD_LDFLAGS:=''}
3899 : ${BUILD_EXEEXT:='$x'}
3900 : ${BUILD_OBJEXT:='o'}
3902 # Check whether --with-build-cc or --without-build-cc was given.
3903 if test "${with_build_cc+set}" = set; then
3904 withval="$with_build_cc"
3907 for ac_prog in gcc clang c99 c89 cc cl
3909 # Extract the first word of "$ac_prog", so it can be a program name with args.
3910 set dummy $ac_prog; ac_word=$2
3911 echo "$as_me:3911: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 if test -n "$BUILD_CC"; then
3917 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3919 ac_save_IFS=$IFS; IFS=$ac_path_separator
3921 for ac_dir in $ac_dummy; do
3923 test -z "$ac_dir" && ac_dir=.
3924 $as_executable_p "$ac_dir/$ac_word" || continue