2 # From configure.in Revision: 1.78 .
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
1852 if test "x$CLANG_COMPILER" = "xyes" ; then
1853 for cf_clang_opt in \
1854 -Qunused-arguments \
1855 -Wno-error=implicit-function-declaration
1857 echo "$as_me:1857: checking if option $cf_clang_opt works" >&5
1858 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
1859 cf_save_CFLAGS="$CFLAGS"
1860 CFLAGS="$CFLAGS $cf_clang_opt"
1861 cat >conftest.$ac_ext <<_ACEOF
1862 #line 1862 "configure"
1863 #include "confdefs.h"
1875 rm -f conftest.$ac_objext conftest$ac_exeext
1876 if { (eval echo "$as_me:1876: \"$ac_link\"") >&5
1877 (eval $ac_link) 2>&5
1879 echo "$as_me:1879: \$? = $ac_status" >&5
1880 (exit $ac_status); } &&
1881 { ac_try='test -s conftest$ac_exeext'
1882 { (eval echo "$as_me:1882: \"$ac_try\"") >&5
1885 echo "$as_me:1885: \$? = $ac_status" >&5
1886 (exit $ac_status); }; }; then
1890 echo "$as_me: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1896 echo "$as_me:1896: result: $cf_clang_optok" >&5
1897 echo "${ECHO_T}$cf_clang_optok" >&6
1898 CFLAGS="$cf_save_CFLAGS"
1899 if test $cf_clang_optok = yes; then
1900 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
1902 echo "${as_me:-configure}:1902: testing adding option $cf_clang_opt ..." 1>&5
1904 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
1905 CFLAGS="${CFLAGS}$cf_clang_opt"
1911 echo "$as_me:1911: checking for $CC option to accept ANSI C" >&5
1912 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1913 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 ac_cv_prog_cc_stdc=no
1918 cat >conftest.$ac_ext <<_ACEOF
1919 #line 1919 "configure"
1920 #include "confdefs.h"
1923 #include <sys/types.h>
1924 #include <sys/stat.h>
1925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1926 struct buf { int x; };
1927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1928 static char *e (p, i)
1934 static char *f (char * (*g) (char **, int), char **p, ...)
1939 s = g (p, va_arg (v,int));
1943 int test (int i, double x);
1944 struct s1 {int (*f) (int a);};
1945 struct s2 {int (*f) (double a);};
1946 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1952 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1957 # Don't try gcc -ansi; that turns off useful extensions and
1958 # breaks some systems' header files.
1959 # AIX -qlanglvl=ansi
1960 # Ultrix and OSF/1 -std1
1961 # HP-UX 10.20 and later -Ae
1962 # HP-UX older versions -Aa -D_HPUX_SOURCE
1963 # SVR4 -Xc -D__EXTENSIONS__
1964 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1966 CC="$ac_save_CC $ac_arg"
1967 rm -f conftest.$ac_objext
1968 if { (eval echo "$as_me:1968: \"$ac_compile\"") >&5
1969 (eval $ac_compile) 2>&5
1971 echo "$as_me:1971: \$? = $ac_status" >&5
1972 (exit $ac_status); } &&
1973 { ac_try='test -s conftest.$ac_objext'
1974 { (eval echo "$as_me:1974: \"$ac_try\"") >&5
1977 echo "$as_me:1977: \$? = $ac_status" >&5
1978 (exit $ac_status); }; }; then
1979 ac_cv_prog_cc_stdc=$ac_arg
1982 echo "$as_me: failed program was:" >&5
1983 cat conftest.$ac_ext >&5
1985 rm -f conftest.$ac_objext
1987 rm -f conftest.$ac_ext conftest.$ac_objext
1992 case "x$ac_cv_prog_cc_stdc" in
1994 echo "$as_me:1994: result: none needed" >&5
1995 echo "${ECHO_T}none needed" >&6 ;;
1997 echo "$as_me:1997: result: $ac_cv_prog_cc_stdc" >&5
1998 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1999 CC="$CC $ac_cv_prog_cc_stdc" ;;
2002 # This should have been defined by AC_PROG_CC
2005 echo "$as_me:2005: checking \$CFLAGS variable" >&5
2006 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2009 echo "$as_me:2009: result: broken" >&5
2010 echo "${ECHO_T}broken" >&6
2011 { echo "$as_me:2011: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2012 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2015 for cf_arg in $cf_flags
2021 cf_new_extra_cppflags=
2023 for cf_add_cflags in $cf_arg
2025 case $cf_fix_cppflags in
2027 case $cf_add_cflags in
2028 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2029 case $cf_add_cflags in
2031 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2033 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2034 && test -z "${cf_tst_cflags}" \
2035 && cf_fix_cppflags=yes
2037 if test $cf_fix_cppflags = yes ; then
2039 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2040 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2043 elif test "${cf_tst_cflags}" = "\"'" ; then
2045 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2046 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2056 case $cf_add_cflags in
2058 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2060 CPPFLAGS=`echo "$CPPFLAGS" | \
2061 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2062 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2067 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2068 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2075 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2076 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2083 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2084 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2086 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2088 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2089 && test -z "${cf_tst_cflags}" \
2090 && cf_fix_cppflags=no
2095 if test -n "$cf_new_cflags" ; then
2097 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2098 CFLAGS="${CFLAGS}$cf_new_cflags"
2102 if test -n "$cf_new_cppflags" ; then
2104 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2105 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2109 if test -n "$cf_new_extra_cppflags" ; then
2111 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2112 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2119 echo "$as_me:2119: result: ok" >&5
2120 echo "${ECHO_T}ok" >&6
2124 echo "$as_me:2124: checking \$CC variable" >&5
2125 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2128 echo "$as_me:2128: result: broken" >&5
2129 echo "${ECHO_T}broken" >&6
2130 { echo "$as_me:2130: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2131 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2133 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2134 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2136 for cf_arg in $cf_flags
2144 cf_new_extra_cppflags=
2146 for cf_add_cflags in $cf_arg
2148 case $cf_fix_cppflags in
2150 case $cf_add_cflags in
2151 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2152 case $cf_add_cflags in
2154 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2156 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2157 && test -z "${cf_tst_cflags}" \
2158 && cf_fix_cppflags=yes
2160 if test $cf_fix_cppflags = yes ; then
2162 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2163 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2166 elif test "${cf_tst_cflags}" = "\"'" ; then
2168 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2169 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2179 case $cf_add_cflags in
2181 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2183 CPPFLAGS=`echo "$CPPFLAGS" | \
2184 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2185 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2190 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2191 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2198 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2199 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2206 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2207 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2209 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2211 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2212 && test -z "${cf_tst_cflags}" \
2213 && cf_fix_cppflags=no
2218 if test -n "$cf_new_cflags" ; then
2220 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2221 CFLAGS="${CFLAGS}$cf_new_cflags"
2225 if test -n "$cf_new_cppflags" ; then
2227 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2228 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2232 if test -n "$cf_new_extra_cppflags" ; then
2234 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2235 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2245 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2247 echo "${as_me:-configure}:2247: testing resulting CC: '$CC' ..." 1>&5
2249 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2251 echo "${as_me:-configure}:2251: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2253 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2255 echo "${as_me:-configure}:2255: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2259 echo "$as_me:2259: result: ok" >&5
2260 echo "${ECHO_T}ok" >&6
2265 ac_cpp='$CPP $CPPFLAGS'
2266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269 ac_main_return=return
2270 echo "$as_me:2270: checking how to run the C preprocessor" >&5
2271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2272 # On Suns, sometimes $CPP names a directory.
2273 if test -n "$CPP" && test -d "$CPP"; then
2276 if test -z "$CPP"; then
2277 if test "${ac_cv_prog_CPP+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 # Double quotes because CPP needs to be expanded
2281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2284 for ac_c_preproc_warn_flag in '' yes
2286 # Use a header file that comes with gcc, so configuring glibc
2287 # with a fresh cross-compiler works.
2288 # On the NeXT, cc -E runs the code through the compiler's parser,
2289 # not just through cpp. "Syntax error" is here to catch this case.
2290 cat >conftest.$ac_ext <<_ACEOF
2291 #line 2291 "configure"
2292 #include "confdefs.h"
2296 if { (eval echo "$as_me:2296: \"$ac_cpp conftest.$ac_ext\"") >&5
2297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2299 egrep -v '^ *\+' conftest.er1 >conftest.err
2301 cat conftest.err >&5
2302 echo "$as_me:2302: \$? = $ac_status" >&5
2303 (exit $ac_status); } >/dev/null; then
2304 if test -s conftest.err; then
2305 ac_cpp_err=$ac_c_preproc_warn_flag
2312 if test -z "$ac_cpp_err"; then
2315 echo "$as_me: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2317 # Broken: fails on valid input.
2320 rm -f conftest.err conftest.$ac_ext
2322 # OK, works on sane cases. Now check whether non-existent headers
2323 # can be detected and how.
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2327 #include <ac_nonexistent.h>
2329 if { (eval echo "$as_me:2329: \"$ac_cpp conftest.$ac_ext\"") >&5
2330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2332 egrep -v '^ *\+' conftest.er1 >conftest.err
2334 cat conftest.err >&5
2335 echo "$as_me:2335: \$? = $ac_status" >&5
2336 (exit $ac_status); } >/dev/null; then
2337 if test -s conftest.err; then
2338 ac_cpp_err=$ac_c_preproc_warn_flag
2345 if test -z "$ac_cpp_err"; then
2346 # Broken: success on invalid input.
2349 echo "$as_me: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 # Passes both tests.
2355 rm -f conftest.err conftest.$ac_ext
2358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2359 rm -f conftest.err conftest.$ac_ext
2360 if $ac_preproc_ok; then
2372 echo "$as_me:2372: result: $CPP" >&5
2373 echo "${ECHO_T}$CPP" >&6
2375 for ac_c_preproc_warn_flag in '' yes
2377 # Use a header file that comes with gcc, so configuring glibc
2378 # with a fresh cross-compiler works.
2379 # On the NeXT, cc -E runs the code through the compiler's parser,
2380 # not just through cpp. "Syntax error" is here to catch this case.
2381 cat >conftest.$ac_ext <<_ACEOF
2382 #line 2382 "configure"
2383 #include "confdefs.h"
2387 if { (eval echo "$as_me:2387: \"$ac_cpp conftest.$ac_ext\"") >&5
2388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2390 egrep -v '^ *\+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:2393: \$? = $ac_status" >&5
2394 (exit $ac_status); } >/dev/null; then
2395 if test -s conftest.err; then
2396 ac_cpp_err=$ac_c_preproc_warn_flag
2403 if test -z "$ac_cpp_err"; then
2406 echo "$as_me: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2408 # Broken: fails on valid input.
2411 rm -f conftest.err conftest.$ac_ext
2413 # OK, works on sane cases. Now check whether non-existent headers
2414 # can be detected and how.
2415 cat >conftest.$ac_ext <<_ACEOF
2416 #line 2416 "configure"
2417 #include "confdefs.h"
2418 #include <ac_nonexistent.h>
2420 if { (eval echo "$as_me:2420: \"$ac_cpp conftest.$ac_ext\"") >&5
2421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2423 egrep -v '^ *\+' conftest.er1 >conftest.err
2425 cat conftest.err >&5
2426 echo "$as_me:2426: \$? = $ac_status" >&5
2427 (exit $ac_status); } >/dev/null; then
2428 if test -s conftest.err; then
2429 ac_cpp_err=$ac_c_preproc_warn_flag
2436 if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2440 echo "$as_me: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2442 # Passes both tests.
2446 rm -f conftest.err conftest.$ac_ext
2449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2450 rm -f conftest.err conftest.$ac_ext
2451 if $ac_preproc_ok; then
2454 { { echo "$as_me:2454: error: C preprocessor \"$CPP\" fails sanity check" >&5
2455 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2456 { (exit 1); exit 1; }; }
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464 ac_main_return=return
2466 if test $ac_cv_c_compiler_gnu = yes; then
2467 echo "$as_me:2467: checking whether $CC needs -traditional" >&5
2468 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2469 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 ac_pattern="Autoconf.*'x'"
2473 cat >conftest.$ac_ext <<_ACEOF
2474 #line 2474 "configure"
2475 #include "confdefs.h"
2477 int Autoconf = TIOCGETP;
2479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2480 egrep "$ac_pattern" >/dev/null 2>&1; then
2481 ac_cv_prog_gcc_traditional=yes
2483 ac_cv_prog_gcc_traditional=no
2487 if test $ac_cv_prog_gcc_traditional = no; then
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line 2489 "configure"
2490 #include "confdefs.h"
2492 int Autoconf = TCGETA;
2494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2495 egrep "$ac_pattern" >/dev/null 2>&1; then
2496 ac_cv_prog_gcc_traditional=yes
2502 echo "$as_me:2502: result: $ac_cv_prog_gcc_traditional" >&5
2503 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2504 if test $ac_cv_prog_gcc_traditional = yes; then
2505 CC="$CC -traditional"
2509 echo "$as_me:2509: checking whether $CC understands -c and -o together" >&5
2510 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2511 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 cat > conftest.$ac_ext <<CF_EOF
2518 ${cf_cv_main_return:-return}(0);
2521 # We do the test twice because some compilers refuse to overwrite an
2522 # existing .o file with -o, though they will create one.
2523 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2524 if { (eval echo "$as_me:2524: \"$ac_try\"") >&5
2527 echo "$as_me:2527: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 test -f conftest2.$ac_objext && { (eval echo "$as_me:2529: \"$ac_try\"") >&5
2532 echo "$as_me:2532: \$? = $ac_status" >&5
2533 (exit $ac_status); };
2535 eval cf_cv_prog_CC_c_o=yes
2537 eval cf_cv_prog_CC_c_o=no
2542 if test $cf_cv_prog_CC_c_o = yes; then
2543 echo "$as_me:2543: result: yes" >&5
2544 echo "${ECHO_T}yes" >&6
2546 echo "$as_me:2546: result: no" >&5
2547 echo "${ECHO_T}no" >&6
2550 test "$program_prefix" != NONE &&
2551 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2552 # Use a double $ so make ignores it.
2553 test "$program_suffix" != NONE &&
2554 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2555 # Double any \ or $. echo might interpret backslashes.
2556 # By default was `s,x,x', remove it if useless.
2557 cat <<\_ACEOF >conftest.sed
2558 s/[\\$]/&&/g;s/;s,x,x,$//
2560 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2563 for ac_prog in mawk gawk nawk awk
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo "$as_me:2567: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2569 if test "${ac_cv_prog_AWK+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 if test -n "$AWK"; then
2573 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2575 ac_save_IFS=$IFS; IFS=$ac_path_separator
2577 for ac_dir in $ac_dummy; do
2579 test -z "$ac_dir" && ac_dir=.
2580 $as_executable_p "$ac_dir/$ac_word" || continue
2581 ac_cv_prog_AWK="$ac_prog"
2582 echo "$as_me:2582: found $ac_dir/$ac_word" >&5
2589 if test -n "$AWK"; then
2590 echo "$as_me:2590: result: $AWK" >&5
2591 echo "${ECHO_T}$AWK" >&6
2593 echo "$as_me:2593: result: no" >&5
2594 echo "${ECHO_T}no" >&6
2597 test -n "$AWK" && break
2600 test -z "$AWK" && { { echo "$as_me:2600: error: No awk program found" >&5
2601 echo "$as_me: error: No awk program found" >&2;}
2602 { (exit 1); exit 1; }; }
2604 echo "$as_me:2604: checking for egrep" >&5
2605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2606 if test "${ac_cv_prog_egrep+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2610 then ac_cv_prog_egrep='grep -E'
2611 else ac_cv_prog_egrep='egrep'
2614 echo "$as_me:2614: result: $ac_cv_prog_egrep" >&5
2615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2616 EGREP=$ac_cv_prog_egrep
2618 test -z "$EGREP" && { { echo "$as_me:2618: error: No egrep program found" >&5
2619 echo "$as_me: error: No egrep program found" >&2;}
2620 { (exit 1); exit 1; }; }
2622 # Find a good install program. We prefer a C program (faster),
2623 # so one script is as good as another. But avoid the broken or
2624 # incompatible versions:
2625 # SysV /etc/install, /usr/sbin/install
2626 # SunOS /usr/etc/install
2627 # IRIX /sbin/install
2629 # AmigaOS /C/install, which installs bootblocks on floppy discs
2630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2633 # ./install, which can be erroneously created by make from ./install.sh.
2634 echo "$as_me:2634: checking for a BSD compatible install" >&5
2635 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2636 if test -z "$INSTALL"; then
2637 if test "${ac_cv_path_install+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 ac_save_IFS=$IFS; IFS=$ac_path_separator
2641 for ac_dir in $PATH; do
2643 # Account for people who put trailing slashes in PATH elements.
2645 / | ./ | .// | /cC/* \
2646 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2649 # OSF1 and SCO ODT 3.0 have their own names for install.
2650 # Don't use installbsd from OSF since it installs stuff as root
2652 for ac_prog in ginstall scoinst install; do
2653 if $as_executable_p "$ac_dir/$ac_prog"; then
2654 if test $ac_prog = install &&
2655 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2656 # AIX install. It has an incompatible calling convention.
2658 elif test $ac_prog = install &&
2659 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2660 # program-specific install script used by HP pwplus--don't use.
2663 ac_cv_path_install="$ac_dir/$ac_prog -c"
2673 if test "${ac_cv_path_install+set}" = set; then
2674 INSTALL=$ac_cv_path_install
2676 # As a last resort, use the slow shell script. We don't cache a
2677 # path for INSTALL within a source directory, because that will
2678 # break other packages using the cache if that directory is
2679 # removed, or if the path is relative.
2680 INSTALL=$ac_install_sh
2683 echo "$as_me:2683: result: $INSTALL" >&5
2684 echo "${ECHO_T}$INSTALL" >&6
2686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2687 # It thinks the first close brace ends the variable substitution.
2688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2694 echo "$as_me:2694: checking whether ln -s works" >&5
2695 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2697 if test "$LN_S" = "ln -s"; then
2698 echo "$as_me:2698: result: yes" >&5
2699 echo "${ECHO_T}yes" >&6
2701 echo "$as_me:2701: result: no, using $LN_S" >&5
2702 echo "${ECHO_T}no, using $LN_S" >&6
2705 echo "$as_me:2705: checking if $LN_S -f options work" >&5
2706 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2708 rm -f conf$$.src conf$$dst
2710 echo first >conf$$.src
2711 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2716 rm -f conf$$.dst conf$$src
2717 echo "$as_me:2717: result: $cf_prog_ln_sf" >&5
2718 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2720 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2722 # Find a good install program. We prefer a C program (faster),
2723 # so one script is as good as another. But avoid the broken or
2724 # incompatible versions:
2725 # SysV /etc/install, /usr/sbin/install
2726 # SunOS /usr/etc/install
2727 # IRIX /sbin/install
2729 # AmigaOS /C/install, which installs bootblocks on floppy discs
2730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2733 # ./install, which can be erroneously created by make from ./install.sh.
2734 echo "$as_me:2734: checking for a BSD compatible install" >&5
2735 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2736 if test -z "$INSTALL"; then
2737 if test "${ac_cv_path_install+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 ac_save_IFS=$IFS; IFS=$ac_path_separator
2741 for ac_dir in $PATH; do
2743 # Account for people who put trailing slashes in PATH elements.
2745 / | ./ | .// | /cC/* \
2746 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2749 # OSF1 and SCO ODT 3.0 have their own names for install.
2750 # Don't use installbsd from OSF since it installs stuff as root
2752 for ac_prog in ginstall scoinst install; do
2753 if $as_executable_p "$ac_dir/$ac_prog"; then
2754 if test $ac_prog = install &&
2755 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2756 # AIX install. It has an incompatible calling convention.
2758 elif test $ac_prog = install &&
2759 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2760 # program-specific install script used by HP pwplus--don't use.
2763 ac_cv_path_install="$ac_dir/$ac_prog -c"
2773 if test "${ac_cv_path_install+set}" = set; then
2774 INSTALL=$ac_cv_path_install
2776 # As a last resort, use the slow shell script. We don't cache a
2777 # path for INSTALL within a source directory, because that will
2778 # break other packages using the cache if that directory is
2779 # removed, or if the path is relative.
2780 INSTALL=$ac_install_sh
2783 echo "$as_me:2783: result: $INSTALL" >&5
2784 echo "${ECHO_T}$INSTALL" >&6
2786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2787 # It thinks the first close brace ends the variable substitution.
2788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2798 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2799 test -z "$cf_dir" && cf_dir=.
2800 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2804 echo "$as_me:2804: checking if you want to install stripped executables" >&5
2805 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2807 # Check whether --enable-stripping or --disable-stripping was given.
2808 if test "${enable_stripping+set}" = set; then
2809 enableval="$enable_stripping"
2810 test "$enableval" != no && enableval=yes
2811 if test "$enableval" != "yes" ; then
2821 echo "$as_me:2821: result: $with_stripping" >&5
2822 echo "${ECHO_T}$with_stripping" >&6
2824 if test "$with_stripping" = yes
2831 : ${INSTALL:=install}
2832 echo "$as_me:2832: checking if install accepts -p option" >&5
2833 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2834 if test "${cf_cv_install_p+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2844 if test -f conftest.out/conftest.in
2846 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2847 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2848 if test -s conftest.err
2863 echo "$as_me:2863: result: $cf_cv_install_p" >&5
2864 echo "${ECHO_T}$cf_cv_install_p" >&6
2866 echo "$as_me:2866: checking if install needs to be told about ownership" >&5
2867 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2868 case `$ac_config_guess` in
2877 echo "$as_me:2877: result: $with_install_o" >&5
2878 echo "${ECHO_T}$with_install_o" >&6
2879 if test "x$with_install_o" = xyes
2881 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'`
2886 echo "$as_me:2886: checking for long file names" >&5
2887 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2888 if test "${ac_cv_sys_long_file_names+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 ac_cv_sys_long_file_names=yes
2892 # Test for long file names in all the places we know might matter:
2893 # . the current directory, where building will happen
2894 # $prefix/lib where we will be installing things
2895 # $exec_prefix/lib likewise
2896 # eval it to expand exec_prefix.
2897 # $TMPDIR if set, where it might want to write temporary files
2898 # if $TMPDIR is not set:
2899 # /tmp where it might want to write temporary files
2902 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2905 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2907 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2908 test -d $ac_dir || continue
2909 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2910 ac_xdir=$ac_dir/cf$$
2911 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2912 ac_tf1=$ac_xdir/conftest9012345
2913 ac_tf2=$ac_xdir/conftest9012346
2914 (echo 1 >$ac_tf1) 2>/dev/null
2915 (echo 2 >$ac_tf2) 2>/dev/null
2916 ac_val=`cat $ac_tf1 2>/dev/null`
2917 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2918 ac_cv_sys_long_file_names=no
2919 rm -rf $ac_xdir 2>/dev/null
2922 rm -rf $ac_xdir 2>/dev/null
2925 echo "$as_me:2925: result: $ac_cv_sys_long_file_names" >&5
2926 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2927 if test $ac_cv_sys_long_file_names = yes; then
2929 cat >>confdefs.h <<\EOF
2930 #define HAVE_LONG_FILE_NAMES 1
2935 # if we find pkg-config, check if we should install the ".pc" files.
2937 echo "$as_me:2937: checking if you want to use pkg-config" >&5
2938 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2940 # Check whether --with-pkg-config or --without-pkg-config was given.
2941 if test "${with_pkg_config+set}" = set; then
2942 withval="$with_pkg_config"
2943 cf_pkg_config=$withval
2947 echo "$as_me:2947: result: $cf_pkg_config" >&5
2948 echo "${ECHO_T}$cf_pkg_config" >&6
2950 case $cf_pkg_config in
2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2958 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2959 echo "$as_me:2959: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2969 ac_save_IFS=$IFS; IFS=$ac_path_separator
2971 for ac_dir in $ac_dummy; do
2973 test -z "$ac_dir" && ac_dir=.
2974 if $as_executable_p "$ac_dir/$ac_word"; then
2975 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2976 echo "$as_me:2976: found $ac_dir/$ac_word" >&5
2984 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2986 if test -n "$PKG_CONFIG"; then
2987 echo "$as_me:2987: result: $PKG_CONFIG" >&5
2988 echo "${ECHO_T}$PKG_CONFIG" >&6
2990 echo "$as_me:2990: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2995 if test -z "$ac_cv_path_PKG_CONFIG"; then
2996 ac_pt_PKG_CONFIG=$PKG_CONFIG
2997 # Extract the first word of "pkg-config", so it can be a program name with args.
2998 set dummy pkg-config; ac_word=$2
2999 echo "$as_me:2999: checking for $ac_word" >&5
3000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3001 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 case $ac_pt_PKG_CONFIG in
3006 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3009 ac_save_IFS=$IFS; IFS=$ac_path_separator
3011 for ac_dir in $ac_dummy; do
3013 test -z "$ac_dir" && ac_dir=.
3014 if $as_executable_p "$ac_dir/$ac_word"; then
3015 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3016 echo "$as_me:3016: found $ac_dir/$ac_word" >&5
3021 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3025 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3027 if test -n "$ac_pt_PKG_CONFIG"; then
3028 echo "$as_me:3028: result: $ac_pt_PKG_CONFIG" >&5
3029 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3031 echo "$as_me:3031: result: no" >&5
3032 echo "${ECHO_T}no" >&6
3035 PKG_CONFIG=$ac_pt_PKG_CONFIG
3037 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3046 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3047 if test "$PKG_CONFIG" != none ; then
3049 if test "x$prefix" != xNONE; then
3050 cf_path_syntax="$prefix"
3052 cf_path_syntax="$ac_default_prefix"
3055 case ".$PKG_CONFIG" in
3060 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3062 (.\${*prefix}*|.\${*dir}*)
3063 eval PKG_CONFIG="$PKG_CONFIG"
3064 case ".$PKG_CONFIG" in
3066 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3071 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3074 { { echo "$as_me:3074: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3075 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3076 { (exit 1); exit 1; }; }
3080 elif test "x$cf_pkg_config" != xno ; then
3081 { echo "$as_me:3081: WARNING: pkg-config is not installed" >&5
3082 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3087 echo "$as_me:3087: checking for pkg-config library directory" >&5
3088 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3091 echo "$as_me:3091: checking for $PKG_CONFIG library directory" >&5
3092 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3096 PKG_CONFIG_LIBDIR=no
3098 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3099 if test "${with_pkg_config_libdir+set}" = set; then
3100 withval="$with_pkg_config_libdir"
3101 PKG_CONFIG_LIBDIR=$withval
3103 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3106 case x$PKG_CONFIG_LIBDIR in
3110 # Look for the library directory using the same prefix as the executable
3111 if test "x$PKG_CONFIG" = xnone
3115 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3118 # If you don't like using the default architecture, you have to specify the
3119 # intended library directory and corresponding compiler/linker options.
3121 # This case allows for Debian's 2014-flavor of multiarch, along with the
3122 # most common variations before that point. Some other variants spell the
3123 # directory differently, e.g., "pkg-config", and put it in unusual places.
3124 # pkg-config has always been poorly standardized, which is ironic...
3125 case x`(arch) 2>/dev/null` in
3128 $cf_path/lib/*64-linux-gnu \
3136 $cf_path/lib/*-linux-gnu \
3144 test -n "$verbose" && echo " list..." 1>&6
3146 echo "${as_me:-configure}:3146: testing list... ..." 1>&5
3148 for cf_config in $cf_search_path
3150 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3152 echo "${as_me:-configure}:3152: testing checking $cf_config/pkgconfig ..." 1>&5
3154 if test -d $cf_config/pkgconfig
3156 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3157 echo "$as_me:3157: checking done" >&5
3158 echo $ECHO_N "checking done... $ECHO_C" >&6
3167 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3168 echo "$as_me:3168: result: $PKG_CONFIG_LIBDIR" >&5
3169 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3172 echo "$as_me:3172: checking if you want to build test-programs" >&5
3173 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3175 # Check whether --with-tests or --without-tests was given.
3176 if test "${with_tests+set}" = set; then
3177 withval="$with_tests"
3178 cf_with_tests=$withval
3182 echo "$as_me:3182: result: $cf_with_tests" >&5
3183 echo "${ECHO_T}$cf_with_tests" >&6
3185 echo "$as_me:3185: checking if we should assume mixed-case filenames" >&5
3186 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3188 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3189 if test "${enable_mixed_case+set}" = set; then
3190 enableval="$enable_mixed_case"
3191 enable_mixedcase=$enableval
3193 enable_mixedcase=auto
3195 echo "$as_me:3195: result: $enable_mixedcase" >&5
3196 echo "${ECHO_T}$enable_mixedcase" >&6
3197 if test "$enable_mixedcase" = "auto" ; then
3199 echo "$as_me:3199: checking if filesystem supports mixed-case filenames" >&5
3200 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3201 if test "${cf_cv_mixedcase+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 if test "$cross_compiling" = yes ; then
3206 case $target_alias in
3207 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
3215 rm -f conftest CONFTEST
3217 if test -f CONFTEST ; then
3222 rm -f conftest CONFTEST
3226 echo "$as_me:3226: result: $cf_cv_mixedcase" >&5
3227 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3228 test "$cf_cv_mixedcase" = yes &&
3229 cat >>confdefs.h <<\EOF
3230 #define MIXEDCASE_FILENAMES 1
3234 cf_cv_mixedcase=$enable_mixedcase
3235 if test "$enable_mixedcase" = "yes" ; then
3236 cat >>confdefs.h <<\EOF
3237 #define MIXEDCASE_FILENAMES 1
3243 # do this after mixed-case option (tags/TAGS is not as important as tic).
3244 echo "$as_me:3244: checking whether ${MAKE-make} sets \${MAKE}" >&5
3245 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3246 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3247 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 cat >conftest.make <<\EOF
3252 @echo 'ac_maketemp="${MAKE}"'
3254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3255 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3256 if test -n "$ac_maketemp"; then
3257 eval ac_cv_prog_make_${ac_make}_set=yes
3259 eval ac_cv_prog_make_${ac_make}_set=no
3263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3264 echo "$as_me:3264: result: yes" >&5
3265 echo "${ECHO_T}yes" >&6
3268 echo "$as_me:3268: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3270 SET_MAKE="MAKE=${MAKE-make}"
3273 for ac_prog in exctags ctags
3275 # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 echo "$as_me:3277: checking for $ac_word" >&5
3278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279 if test "${ac_cv_prog_CTAGS+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 if test -n "$CTAGS"; then
3283 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3285 ac_save_IFS=$IFS; IFS=$ac_path_separator
3287 for ac_dir in $ac_dummy; do
3289 test -z "$ac_dir" && ac_dir=.
3290 $as_executable_p "$ac_dir/$ac_word" || continue
3291 ac_cv_prog_CTAGS="$ac_prog"
3292 echo "$as_me:3292: found $ac_dir/$ac_word" >&5
3298 CTAGS=$ac_cv_prog_CTAGS
3299 if test -n "$CTAGS"; then
3300 echo "$as_me:3300: result: $CTAGS" >&5
3301 echo "${ECHO_T}$CTAGS" >&6
3303 echo "$as_me:3303: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3307 test -n "$CTAGS" && break
3310 for ac_prog in exetags etags
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy $ac_prog; ac_word=$2
3314 echo "$as_me:3314: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_ETAGS+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$ETAGS"; then
3320 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3322 ac_save_IFS=$IFS; IFS=$ac_path_separator
3324 for ac_dir in $ac_dummy; do
3326 test -z "$ac_dir" && ac_dir=.
3327 $as_executable_p "$ac_dir/$ac_word" || continue
3328 ac_cv_prog_ETAGS="$ac_prog"
3329 echo "$as_me:3329: found $ac_dir/$ac_word" >&5
3335 ETAGS=$ac_cv_prog_ETAGS
3336 if test -n "$ETAGS"; then
3337 echo "$as_me:3337: result: $ETAGS" >&5
3338 echo "${ECHO_T}$ETAGS" >&6
3340 echo "$as_me:3340: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3344 test -n "$ETAGS" && break
3347 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3348 set dummy ${CTAGS:-ctags}; ac_word=$2
3349 echo "$as_me:3349: checking for $ac_word" >&5
3350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3351 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 if test -n "$MAKE_LOWER_TAGS"; then
3355 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3357 ac_save_IFS=$IFS; IFS=$ac_path_separator
3359 for ac_dir in $ac_dummy; do
3361 test -z "$ac_dir" && ac_dir=.
3362 $as_executable_p "$ac_dir/$ac_word" || continue
3363 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3364 echo "$as_me:3364: found $ac_dir/$ac_word" >&5
3368 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3371 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3372 if test -n "$MAKE_LOWER_TAGS"; then
3373 echo "$as_me:3373: result: $MAKE_LOWER_TAGS" >&5
3374 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3376 echo "$as_me:3376: result: no" >&5
3377 echo "${ECHO_T}no" >&6
3380 if test "$cf_cv_mixedcase" = yes ; then
3381 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3382 set dummy ${ETAGS:-etags}; ac_word=$2
3383 echo "$as_me:3383: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3385 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 if test -n "$MAKE_UPPER_TAGS"; then
3389 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3391 ac_save_IFS=$IFS; IFS=$ac_path_separator
3393 for ac_dir in $ac_dummy; do
3395 test -z "$ac_dir" && ac_dir=.
3396 $as_executable_p "$ac_dir/$ac_word" || continue
3397 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3398 echo "$as_me:3398: found $ac_dir/$ac_word" >&5
3402 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3405 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3406 if test -n "$MAKE_UPPER_TAGS"; then
3407 echo "$as_me:3407: result: $MAKE_UPPER_TAGS" >&5
3408 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3410 echo "$as_me:3410: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3418 if test "$MAKE_UPPER_TAGS" = yes ; then
3424 if test "$MAKE_LOWER_TAGS" = yes ; then
3430 echo "$as_me:3430: checking for makeflags variable" >&5
3431 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3432 if test "${cf_cv_makeflags+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3439 cat >cf_makeflags.tmp <<CF_EOF
3442 @ echo '.$cf_option'
3444 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3445 case "$cf_result" in
3447 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3448 case "$cf_result" in
3449 (.*CC=*) cf_cv_makeflags=
3451 (*) cf_cv_makeflags=$cf_option
3460 echo "${as_me:-configure}:3460: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
3465 rm -f cf_makeflags.tmp
3468 echo "$as_me:3468: result: $cf_cv_makeflags" >&5
3469 echo "${ECHO_T}$cf_cv_makeflags" >&6
3471 if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3473 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3474 echo "$as_me:3474: checking for $ac_word" >&5
3475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3476 if test "${ac_cv_prog_RANLIB+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 if test -n "$RANLIB"; then
3480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3482 ac_save_IFS=$IFS; IFS=$ac_path_separator
3484 for ac_dir in $ac_dummy; do
3486 test -z "$ac_dir" && ac_dir=.
3487 $as_executable_p "$ac_dir/$ac_word" || continue
3488 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3489 echo "$as_me:3489: found $ac_dir/$ac_word" >&5
3495 RANLIB=$ac_cv_prog_RANLIB
3496 if test -n "$RANLIB"; then
3497 echo "$as_me:3497: result: $RANLIB" >&5
3498 echo "${ECHO_T}$RANLIB" >&6
3500 echo "$as_me:3500: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3505 if test -z "$ac_cv_prog_RANLIB"; then
3506 ac_ct_RANLIB=$RANLIB
3507 # Extract the first word of "ranlib", so it can be a program name with args.
3508 set dummy ranlib; ac_word=$2
3509 echo "$as_me:3509: checking for $ac_word" >&5
3510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3511 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 if test -n "$ac_ct_RANLIB"; then
3515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3517 ac_save_IFS=$IFS; IFS=$ac_path_separator
3519 for ac_dir in $ac_dummy; do
3521 test -z "$ac_dir" && ac_dir=.
3522 $as_executable_p "$ac_dir/$ac_word" || continue
3523 ac_cv_prog_ac_ct_RANLIB="ranlib"
3524 echo "$as_me:3524: found $ac_dir/$ac_word" >&5
3528 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3531 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3532 if test -n "$ac_ct_RANLIB"; then
3533 echo "$as_me:3533: result: $ac_ct_RANLIB" >&5
3534 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3536 echo "$as_me:3536: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3540 RANLIB=$ac_ct_RANLIB
3542 RANLIB="$ac_cv_prog_RANLIB"
3545 if test -n "$ac_tool_prefix"; then
3546 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3547 set dummy ${ac_tool_prefix}ld; ac_word=$2
3548 echo "$as_me:3548: checking for $ac_word" >&5
3549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3550 if test "${ac_cv_prog_LD+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 if test -n "$LD"; then
3554 ac_cv_prog_LD="$LD" # Let the user override the test.
3556 ac_save_IFS=$IFS; IFS=$ac_path_separator
3558 for ac_dir in $ac_dummy; do
3560 test -z "$ac_dir" && ac_dir=.
3561 $as_executable_p "$ac_dir/$ac_word" || continue
3562 ac_cv_prog_LD="${ac_tool_prefix}ld"
3563 echo "$as_me:3563: found $ac_dir/$ac_word" >&5
3570 if test -n "$LD"; then
3571 echo "$as_me:3571: result: $LD" >&5
3572 echo "${ECHO_T}$LD" >&6
3574 echo "$as_me:3574: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3579 if test -z "$ac_cv_prog_LD"; then
3581 # Extract the first word of "ld", so it can be a program name with args.
3582 set dummy ld; ac_word=$2
3583 echo "$as_me:3583: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 if test -n "$ac_ct_LD"; then
3589 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3591 ac_save_IFS=$IFS; IFS=$ac_path_separator
3593 for ac_dir in $ac_dummy; do
3595 test -z "$ac_dir" && ac_dir=.
3596 $as_executable_p "$ac_dir/$ac_word" || continue
3597 ac_cv_prog_ac_ct_LD="ld"
3598 echo "$as_me:3598: found $ac_dir/$ac_word" >&5
3602 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3605 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3606 if test -n "$ac_ct_LD"; then
3607 echo "$as_me:3607: result: $ac_ct_LD" >&5
3608 echo "${ECHO_T}$ac_ct_LD" >&6
3610 echo "$as_me:3610: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3619 if test -n "$ac_tool_prefix"; then
3620 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3621 set dummy ${ac_tool_prefix}ar; ac_word=$2
3622 echo "$as_me:3622: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_prog_AR+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 if test -n "$AR"; then
3628 ac_cv_prog_AR="$AR" # Let the user override the test.
3630 ac_save_IFS=$IFS; IFS=$ac_path_separator
3632 for ac_dir in $ac_dummy; do
3634 test -z "$ac_dir" && ac_dir=.
3635 $as_executable_p "$ac_dir/$ac_word" || continue
3636 ac_cv_prog_AR="${ac_tool_prefix}ar"
3637 echo "$as_me:3637: found $ac_dir/$ac_word" >&5
3644 if test -n "$AR"; then
3645 echo "$as_me:3645: result: $AR" >&5
3646 echo "${ECHO_T}$AR" >&6
3648 echo "$as_me:3648: result: no" >&5
3649 echo "${ECHO_T}no" >&6
3653 if test -z "$ac_cv_prog_AR"; then
3655 # Extract the first word of "ar", so it can be a program name with args.
3656 set dummy ar; ac_word=$2
3657 echo "$as_me:3657: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 if test -n "$ac_ct_AR"; then
3663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3665 ac_save_IFS=$IFS; IFS=$ac_path_separator
3667 for ac_dir in $ac_dummy; do
3669 test -z "$ac_dir" && ac_dir=.
3670 $as_executable_p "$ac_dir/$ac_word" || continue
3671 ac_cv_prog_ac_ct_AR="ar"
3672 echo "$as_me:3672: found $ac_dir/$ac_word" >&5
3676 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3679 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3680 if test -n "$ac_ct_AR"; then
3681 echo "$as_me:3681: result: $ac_ct_AR" >&5
3682 echo "${ECHO_T}$ac_ct_AR" >&6
3684 echo "$as_me:3684: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}ar; ac_word=$2
3696 echo "$as_me:3696: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_prog_AR+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 if test -n "$AR"; then
3702 ac_cv_prog_AR="$AR" # Let the user override the test.
3704 ac_save_IFS=$IFS; IFS=$ac_path_separator
3706 for ac_dir in $ac_dummy; do
3708 test -z "$ac_dir" && ac_dir=.
3709 $as_executable_p "$ac_dir/$ac_word" || continue
3710 ac_cv_prog_AR="${ac_tool_prefix}ar"
3711 echo "$as_me:3711: found $ac_dir/$ac_word" >&5
3718 if test -n "$AR"; then
3719 echo "$as_me:3719: result: $AR" >&5
3720 echo "${ECHO_T}$AR" >&6
3722 echo "$as_me:3722: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3727 if test -z "$ac_cv_prog_AR"; then
3729 # Extract the first word of "ar", so it can be a program name with args.
3730 set dummy ar; ac_word=$2
3731 echo "$as_me:3731: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if test -n "$ac_ct_AR"; then
3737 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3739 ac_save_IFS=$IFS; IFS=$ac_path_separator
3741 for ac_dir in $ac_dummy; do
3743 test -z "$ac_dir" && ac_dir=.
3744 $as_executable_p "$ac_dir/$ac_word" || continue
3745 ac_cv_prog_ac_ct_AR="ar"
3746 echo "$as_me:3746: found $ac_dir/$ac_word" >&5
3750 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3753 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3754 if test -n "$ac_ct_AR"; then
3755 echo "$as_me:3755: result: $ac_ct_AR" >&5
3756 echo "${ECHO_T}$ac_ct_AR" >&6
3758 echo "$as_me:3758: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3767 echo "$as_me:3767: checking for options to update archives" >&5
3768 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3769 if test "${cf_cv_ar_flags+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 case $cf_cv_system_name in
3776 cat >mk_static_lib.sh <<-EOF
3781 exec \$MSVC_BIN -out:"\$out" \$@
3783 chmod +x mk_static_lib.sh
3784 AR=`pwd`/mk_static_lib.sh
3787 cf_cv_ar_flags=unknown
3788 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
3791 # check if $ARFLAGS already contains this choice
3792 if test "x$ARFLAGS" != "x" ; then
3793 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3794 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3800 rm -f conftest.$ac_cv_objext
3803 cat >conftest.$ac_ext <<EOF
3804 #line 3804 "configure"
3805 int testdata[3] = { 123, 456, 789 };
3807 if { (eval echo "$as_me:3807: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>&5
3810 echo "$as_me:3810: \$? = $ac_status" >&5
3811 (exit $ac_status); } ; then
3812 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3813 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3814 if test -f conftest.a ; then
3815 cf_cv_ar_flags=$cf_ar_flags
3819 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3821 echo "${as_me:-configure}:3821: testing cannot compile test-program ..." 1>&5
3826 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3831 echo "$as_me:3831: result: $cf_cv_ar_flags" >&5
3832 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3834 if test -n "$ARFLAGS" ; then
3835 if test -n "$cf_cv_ar_flags" ; then
3836 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3839 ARFLAGS=$cf_cv_ar_flags
3842 echo "$as_me:3842: checking for PATH separator" >&5
3843 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3844 case $cf_cv_system_name in
3845 (os2*) PATH_SEPARATOR=';' ;;
3846 (*) ${PATH_SEPARATOR:=':'} ;;
3849 echo "$as_me:3849: result: $PATH_SEPARATOR" >&5
3850 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3852 echo "$as_me:3852: checking if you have specified an install-prefix" >&5
3853 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3855 # Check whether --with-install-prefix or --without-install-prefix was given.
3856 if test "${with_install_prefix+set}" = set; then
3857 withval="$with_install_prefix"
3861 (*) DESTDIR="$withval"
3865 echo "$as_me:3865: result: $DESTDIR" >&5
3866 echo "${ECHO_T}$DESTDIR" >&6
3868 ###############################################################################
3870 # If we're cross-compiling, allow the user to override the tools and their
3871 # options. The configure script is oriented toward identifying the host
3872 # compiler, etc., but we need a build compiler to generate parts of the source.
3874 if test "$cross_compiling" = yes ; then
3876 # defaults that we might want to override
3877 : ${BUILD_CFLAGS:=''}
3878 : ${BUILD_CPPFLAGS:=''}
3879 : ${BUILD_LDFLAGS:=''}
3881 : ${BUILD_EXEEXT:='$x'}
3882 : ${BUILD_OBJEXT:='o'}
3884 # Check whether --with-build-cc or --without-build-cc was given.
3885 if test "${with_build_cc+set}" = set; then
3886 withval="$with_build_cc"
3889 for ac_prog in gcc clang c99 c89 cc cl
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 echo "$as_me:3893: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 if test -n "$BUILD_CC"; then
3899 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3901 ac_save_IFS=$IFS; IFS=$ac_path_separator
3903 for ac_dir in $ac_dummy; do
3905 test -z "$ac_dir" && ac_dir=.
3906 $as_executable_p "$ac_dir/$ac_word" || continue
3907 ac_cv_prog_BUILD_CC="$ac_prog"
3908 echo "$as_me:3908: found $ac_dir/$ac_word" >&5
3914 BUILD_CC=$ac_cv_prog_BUILD_CC
3915 if test -n "$BUILD_CC"; then
3916 echo "$as_me:3916: result: $BUILD_CC" >&5
3917 echo "${ECHO_T}$BUILD_CC" >&6
3919 echo "$as_me:3919: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3923 test -n "$BUILD_CC" && break
3925 test -n "$BUILD_CC" || BUILD_CC="none"
3928 echo "$as_me:3928: checking for native build C compiler" >&5
3929 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3930 echo "$as_me:3930: result: $BUILD_CC" >&5
3931 echo "${ECHO_T}$BUILD_CC" >&6