2 # From configure.in Revision: 1.65 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20170501.
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 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
607 # Report the --help message.
609 if test "$ac_init_help" = "long"; then
610 # Omit some internal or obsolete options to make the list less imposing.
611 # This message is too long to be a string in the A/UX 3.1 sh.
613 \`configure' configures this package to adapt to many kinds of systems.
615 Usage: $0 [OPTION]... [VAR=VALUE]...
617 To assign environment variables (e.g., CC, CFLAGS...), specify them as
618 VAR=VALUE. See below for descriptions of some of the useful variables.
620 Defaults for the options are specified in brackets.
623 -h, --help display this help and exit
624 --help=short display options specific to this package
625 --help=recursive display the short help of all the included packages
626 -V, --version display version information and exit
627 -q, --quiet, --silent do not print \`checking...' messages
628 --cache-file=FILE cache test results in FILE [disabled]
629 -C, --config-cache alias for \`--cache-file=config.cache'
630 -n, --no-create do not create output files
631 --srcdir=DIR find the sources in DIR [configure dir or \`..']
636 Installation directories:
637 --prefix=PREFIX install architecture-independent files in PREFIX
639 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
642 By default, \`make install' will install all the files in
643 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
644 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
645 for instance \`--prefix=\$HOME'.
647 For better control, use the options below.
649 Fine tuning of the installation directories:
650 --bindir=DIR user executables [EPREFIX/bin]
651 --sbindir=DIR system admin executables [EPREFIX/sbin]
652 --libexecdir=DIR program executables [EPREFIX/libexec]
653 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
654 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
655 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
656 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
657 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
658 --libdir=DIR object code libraries [EPREFIX/lib]
659 --includedir=DIR C header files [PREFIX/include]
660 --oldincludedir=DIR C header files for non-gcc [/usr/include]
661 --infodir=DIR info documentation [DATAROOTDIR/info]
662 --mandir=DIR man documentation [DATAROOTDIR/man]
668 --program-prefix=PREFIX prepend PREFIX to installed program names
669 --program-suffix=SUFFIX append SUFFIX to installed program names
670 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
673 --build=BUILD configure for building on BUILD [guessed]
674 --host=HOST build programs to run on HOST [BUILD]
675 --target=TARGET configure for building compilers for TARGET [HOST]
679 if test -n "$ac_init_help"; then
684 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
685 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
688 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
689 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
692 --with-system-type=XXX test: override derived host system-type
693 --disable-stripping do not strip installed executables
694 --with-pkg-config{=path} enable/disable use of pkg-config
695 --with-pkg-config-libdir=XXX use given directory for installing pc-files
696 --without-tests suppress build with test-programs
697 --enable-mixed-case tic should assume mixed-case filenames
698 --with-install-prefix prefixes actual install-location ($DESTDIR)
699 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
700 --with-build-cc=XXX the build C compiler ($BUILD_CC)
701 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
702 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
703 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
704 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
705 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
706 Options to Specify the Libraries Built/Used:
707 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
708 --with-curses-dir=DIR directory in which (n)curses is installed
709 --enable-widec compile with wide-char/UTF-8 code
710 --with-lib-prefix override library-prefix
711 --with-shlib-version=X Specify rel or abi version for shared libs
712 --enable-rpath-link link sample programs with rpath option
713 Fine-Tuning Your Configuration:
714 --enable-broken_linker compile with broken-linker support code
715 --disable-largefile omit support for large files
716 --with-rcs-ids compile-in RCS identifiers
718 --disable-ext-funcs disable function-extensions
719 --enable-const compile with extra/non-standard const
721 --without-develop disable development options
723 --with-pthread use POSIX thread library
724 --enable-weak-symbols enable weak-symbols for pthreads
725 --enable-reentrant compile with experimental reentrant code
726 --with-wrap-prefix=XXX override prefix used for public variables
727 Testing/development Options:
728 --disable-echo do not display "compiling" commands
729 --enable-warnings build: turn on GCC compiler warnings
730 --enable-assertions test: turn on generation of assertion code
731 --enable-expanded test: generate functions for certain macros
732 --disable-macros test: use functions rather than macros
733 --with-trace test: add trace() function to all models of ncurses
734 --disable-gnat-projects test: disable GNAT projects even if usable
735 Ada95 Binding Options:
736 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
737 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
738 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
739 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
741 Some influential environment variables:
742 CC C compiler command
743 CFLAGS C compiler flags
744 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
745 nonstandard directory <lib dir>
746 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
747 headers in a nonstandard directory <include dir>
750 Use these variables to override the choices made by `configure' or to help
751 it to find libraries and programs with nonstandard names/locations.
756 if test "$ac_init_help" = "recursive"; then
757 # If there are subdirs, report their specific --help.
759 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
761 # A "../" for each directory in /$ac_subdir.
762 ac_dots=`echo $ac_subdir |
763 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
766 .) # No --srcdir option. We are building in place.
767 ac_sub_srcdir=$srcdir ;;
768 [\\/]* | ?:[\\/]* ) # Absolute path.
769 ac_sub_srcdir=$srcdir/$ac_subdir ;;
771 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
774 # Check for guested configure; otherwise get Cygnus style configure.
775 if test -f $ac_sub_srcdir/configure.gnu; then
777 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
778 elif test -f $ac_sub_srcdir/configure; then
780 $SHELL $ac_sub_srcdir/configure --help=recursive
781 elif test -f $ac_sub_srcdir/configure.ac ||
782 test -f $ac_sub_srcdir/configure.in; then
786 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
792 test -n "$ac_init_help" && exit 0
793 if $ac_init_version; then
796 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
797 Free Software Foundation, Inc.
798 This configure script is free software; the Free Software Foundation
799 gives unlimited permission to copy, distribute and modify it.
805 This file contains any messages produced by compilers while
806 running configure, to aid debugging if configure makes a mistake.
808 It was created by $as_me, which was
809 generated by GNU Autoconf 2.52.20170501. Invocation command line was
820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
827 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
829 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
830 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
832 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
833 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
834 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
835 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
849 # Keep a trace of the command line.
850 # Strip out --no-create and --no-recursion so they do not pile up.
851 # Also quote any args containing shell meta-characters.
857 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
858 | --no-cr | --no-c) ;;
859 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
860 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
861 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
862 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
863 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
865 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
868 # Get rid of the leading space.
871 # When interrupted or exit'd, cleanup temporary files, and complete
872 # config.log. We remove comments because anyway the quotes in there
873 # would cause problems or look ugly.
875 # Save into config.log some information that might help in debugging.
877 echo "## ----------------- ##" >&5
878 echo "## Cache variables. ##" >&5
879 echo "## ----------------- ##" >&5
881 # The following way of writing the cache mishandles newlines in values,
884 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
887 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
892 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
896 sed "/^$/d" confdefs.h >conftest.log
897 if test -s conftest.log; then
899 echo "## ------------ ##" >&5
900 echo "## confdefs.h. ##" >&5
901 echo "## ------------ ##" >&5
906 test "$ac_signal" != 0 &&
907 echo "$as_me: caught signal $ac_signal" >&5
908 echo "$as_me: exit $exit_status" >&5
909 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
912 for ac_signal in 1 2 13 15; do
913 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
917 # confdefs.h avoids OS command line length limits that DEFS can exceed.
918 rm -rf conftest* confdefs.h
919 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
922 # Let the site file select an alternate cache file if it wants to.
923 # Prefer explicitly selected file to automatically selected ones.
924 if test -z "$CONFIG_SITE"; then
925 if test "x$prefix" != xNONE; then
926 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
928 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
931 for ac_site_file in $CONFIG_SITE; do
932 if test -r "$ac_site_file"; then
933 { echo "$as_me:933: loading site script $ac_site_file" >&5
934 echo "$as_me: loading site script $ac_site_file" >&6;}
935 cat "$ac_site_file" >&5
940 if test -r "$cache_file"; then
941 # Some versions of bash will fail to source /dev/null (special
942 # files actually), so we avoid doing that.
943 if test -f "$cache_file"; then
944 { echo "$as_me:944: loading cache $cache_file" >&5
945 echo "$as_me: loading cache $cache_file" >&6;}
947 [\\/]* | ?:[\\/]* ) . $cache_file;;
952 { echo "$as_me:952: creating cache $cache_file" >&5
953 echo "$as_me: creating cache $cache_file" >&6;}
957 # Check that the precious variables saved in the cache have kept the same
959 ac_cache_corrupted=false
960 for ac_var in `(set) 2>&1 |
961 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
962 eval ac_old_set=\$ac_cv_env_${ac_var}_set
963 eval ac_new_set=\$ac_env_${ac_var}_set
964 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
965 eval ac_new_val="\$ac_env_${ac_var}_value"
966 case $ac_old_set,$ac_new_set in
968 { echo "$as_me:968: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
969 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
970 ac_cache_corrupted=: ;;
972 { echo "$as_me:972: error: \`$ac_var' was not set in the previous run" >&5
973 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
974 ac_cache_corrupted=: ;;
977 if test "x$ac_old_val" != "x$ac_new_val"; then
978 { echo "$as_me:978: error: \`$ac_var' has changed since the previous run:" >&5
979 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
980 { echo "$as_me:980: former value: $ac_old_val" >&5
981 echo "$as_me: former value: $ac_old_val" >&2;}
982 { echo "$as_me:982: current value: $ac_new_val" >&5
983 echo "$as_me: current value: $ac_new_val" >&2;}
987 # Pass precious variables to config.status. It doesn't matter if
988 # we pass some twice (in addition to the command line arguments).
989 if test "$ac_new_set" = set; then
991 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
992 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
993 ac_configure_args="$ac_configure_args '$ac_arg'"
995 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1000 if $ac_cache_corrupted; then
1001 { echo "$as_me:1001: error: changes in the environment can compromise the build" >&5
1002 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1003 { { echo "$as_me:1003: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1004 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1005 { (exit 1); exit 1; }; }
1009 ac_cpp='$CPP $CPPFLAGS'
1010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1013 ac_main_return=return
1015 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1016 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1018 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1019 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1021 echo "#! $SHELL" >conftest.sh
1022 echo "exit 0" >>conftest.sh
1023 chmod +x conftest.sh
1024 if { (echo "$as_me:1024: PATH=\".;.\"; conftest.sh") >&5
1025 (PATH=".;."; conftest.sh) 2>&5
1027 echo "$as_me:1027: \$? = $ac_status" >&5
1028 (exit $ac_status); }; then
1029 ac_path_separator=';'
1033 PATH_SEPARATOR="$ac_path_separator"
1036 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1041 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1042 if test -f $ac_dir/install-sh; then
1044 ac_install_sh="$ac_aux_dir/install-sh -c"
1046 elif test -f $ac_dir/install.sh; then
1048 ac_install_sh="$ac_aux_dir/install.sh -c"
1050 elif test -f $ac_dir/shtool; then
1052 ac_install_sh="$ac_aux_dir/shtool install -c"
1056 if test -z "$ac_aux_dir"; then
1057 { { echo "$as_me:1057: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1058 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1059 { (exit 1); exit 1; }; }
1061 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1062 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1063 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1065 # Make sure we can run config.sub.
1066 $ac_config_sub sun4 >/dev/null 2>&1 ||
1067 { { echo "$as_me:1067: error: cannot run $ac_config_sub" >&5
1068 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1069 { (exit 1); exit 1; }; }
1071 echo "$as_me:1071: checking build system type" >&5
1072 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1073 if test "${ac_cv_build+set}" = set; then
1074 echo $ECHO_N "(cached) $ECHO_C" >&6
1076 ac_cv_build_alias=$build_alias
1077 test -z "$ac_cv_build_alias" &&
1078 ac_cv_build_alias=`$ac_config_guess`
1079 test -z "$ac_cv_build_alias" &&
1080 { { echo "$as_me:1080: error: cannot guess build type; you must specify one" >&5
1081 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1082 { (exit 1); exit 1; }; }
1083 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1084 { { echo "$as_me:1084: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1085 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1086 { (exit 1); exit 1; }; }
1089 echo "$as_me:1089: result: $ac_cv_build" >&5
1090 echo "${ECHO_T}$ac_cv_build" >&6
1092 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1093 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1094 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1096 echo "$as_me:1096: checking host system type" >&5
1097 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1098 if test "${ac_cv_host+set}" = set; then
1099 echo $ECHO_N "(cached) $ECHO_C" >&6
1101 ac_cv_host_alias=$host_alias
1102 test -z "$ac_cv_host_alias" &&
1103 ac_cv_host_alias=$ac_cv_build_alias
1104 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1105 { { echo "$as_me:1105: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1106 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1107 { (exit 1); exit 1; }; }
1110 echo "$as_me:1110: result: $ac_cv_host" >&5
1111 echo "${ECHO_T}$ac_cv_host" >&6
1113 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1114 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1115 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1117 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1118 echo "$as_me:1118: checking target system type" >&5
1119 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1120 if test "${ac_cv_target+set}" = set; then
1121 echo $ECHO_N "(cached) $ECHO_C" >&6
1123 ac_cv_target_alias=$target_alias
1124 test "x$ac_cv_target_alias" = "x" &&
1125 ac_cv_target_alias=$ac_cv_host_alias
1126 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1127 { { echo "$as_me:1127: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1128 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1129 { (exit 1); exit 1; }; }
1132 echo "$as_me:1132: result: $ac_cv_target" >&5
1133 echo "${ECHO_T}$ac_cv_target" >&6
1134 target=$ac_cv_target
1135 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1136 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1137 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1139 # The aliases save the names the user supplied, while $host etc.
1140 # will get canonicalized.
1141 test -n "$target_alias" &&
1142 test "$program_prefix$program_suffix$program_transform_name" = \
1144 program_prefix=${target_alias}-
1145 system_name="$host_os"
1147 system_name="`(uname -s -r) 2>/dev/null`"
1148 if test -z "$system_name" ; then
1149 system_name="`(hostname) 2>/dev/null`"
1152 test -n "$system_name" &&
1153 cat >>confdefs.h <<EOF
1154 #define SYSTEM_NAME "$system_name"
1157 if test "${cf_cv_system_name+set}" = set; then
1158 echo $ECHO_N "(cached) $ECHO_C" >&6
1160 cf_cv_system_name="$system_name"
1163 test -z "$system_name" && system_name="$cf_cv_system_name"
1164 test -n "$cf_cv_system_name" && echo "$as_me:1164: result: Configuring for $cf_cv_system_name" >&5
1165 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1167 if test ".$system_name" != ".$cf_cv_system_name" ; then
1168 echo "$as_me:1168: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1169 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1170 { { echo "$as_me:1170: error: \"Please remove config.cache and try again.\"" >&5
1171 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1172 { (exit 1); exit 1; }; }
1175 # Check whether --with-system-type or --without-system-type was given.
1176 if test "${with_system_type+set}" = set; then
1177 withval="$with_system_type"
1178 { echo "$as_me:1178: WARNING: overriding system type to $withval" >&5
1179 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1180 cf_cv_system_name=$withval
1185 ### Save the given $CFLAGS to allow user-override.
1186 cf_user_CFLAGS="$CFLAGS"
1188 ### Default install-location
1190 echo "$as_me:1190: checking for prefix" >&5
1191 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1192 if test "x$prefix" = "xNONE" ; then
1193 case "$cf_cv_system_name" in
1194 # non-vendor systems don't have a conflict
1195 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1198 (*) prefix=$ac_default_prefix
1202 echo "$as_me:1202: result: $prefix" >&5
1203 echo "${ECHO_T}$prefix" >&6
1205 if test "x$prefix" = "xNONE" ; then
1206 echo "$as_me:1206: checking for default include-directory" >&5
1207 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1208 test -n "$verbose" && echo 1>&6
1211 $includedir/ncurses \
1213 $prefix/include/ncurses \
1214 /usr/local/include \
1215 /usr/local/include/ncurses \
1217 /usr/include/ncurses
1219 cf_dir=`eval echo $cf_symbol`
1220 if test -f $cf_dir/curses.h ; then
1221 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1222 includedir="$cf_symbol"
1223 test -n "$verbose" && echo $ac_n " found " 1>&6
1227 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1229 echo "$as_me:1229: result: $includedir" >&5
1230 echo "${ECHO_T}$includedir" >&6
1233 ### Checks for programs.
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240 ac_main_return=return
1241 if test -n "$ac_tool_prefix"; then
1242 for ac_prog in gnatgcc gcc cc
1244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1246 echo "$as_me:1246: checking for $ac_word" >&5
1247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1248 if test "${ac_cv_prog_CC+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1251 if test -n "$CC"; then
1252 ac_cv_prog_CC="$CC" # Let the user override the test.
1254 ac_save_IFS=$IFS; IFS=$ac_path_separator
1256 for ac_dir in $ac_dummy; do
1258 test -z "$ac_dir" && ac_dir=.
1259 $as_executable_p "$ac_dir/$ac_word" || continue
1260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1261 echo "$as_me:1261: found $ac_dir/$ac_word" >&5
1268 if test -n "$CC"; then
1269 echo "$as_me:1269: result: $CC" >&5
1270 echo "${ECHO_T}$CC" >&6
1272 echo "$as_me:1272: result: no" >&5
1273 echo "${ECHO_T}no" >&6
1276 test -n "$CC" && break
1279 if test -z "$CC"; then
1281 for ac_prog in gnatgcc gcc cc
1283 # Extract the first word of "$ac_prog", so it can be a program name with args.
1284 set dummy $ac_prog; ac_word=$2
1285 echo "$as_me:1285: checking for $ac_word" >&5
1286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1288 echo $ECHO_N "(cached) $ECHO_C" >&6
1290 if test -n "$ac_ct_CC"; then
1291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1293 ac_save_IFS=$IFS; IFS=$ac_path_separator
1295 for ac_dir in $ac_dummy; do
1297 test -z "$ac_dir" && ac_dir=.
1298 $as_executable_p "$ac_dir/$ac_word" || continue
1299 ac_cv_prog_ac_ct_CC="$ac_prog"
1300 echo "$as_me:1300: found $ac_dir/$ac_word" >&5
1306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1307 if test -n "$ac_ct_CC"; then
1308 echo "$as_me:1308: result: $ac_ct_CC" >&5
1309 echo "${ECHO_T}$ac_ct_CC" >&6
1311 echo "$as_me:1311: result: no" >&5
1312 echo "${ECHO_T}no" >&6
1315 test -n "$ac_ct_CC" && break
1321 test -z "$CC" && { { echo "$as_me:1321: error: no acceptable cc found in \$PATH" >&5
1322 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1323 { (exit 1); exit 1; }; }
1325 # Provide some information about the compiler.
1326 echo "$as_me:1326:" \
1327 "checking for C compiler version" >&5
1328 ac_compiler=`set X $ac_compile; echo $2`
1329 { (eval echo "$as_me:1329: \"$ac_compiler --version </dev/null >&5\"") >&5
1330 (eval $ac_compiler --version </dev/null >&5) 2>&5
1332 echo "$as_me:1332: \$? = $ac_status" >&5
1333 (exit $ac_status); }
1334 { (eval echo "$as_me:1334: \"$ac_compiler -v </dev/null >&5\"") >&5
1335 (eval $ac_compiler -v </dev/null >&5) 2>&5
1337 echo "$as_me:1337: \$? = $ac_status" >&5
1338 (exit $ac_status); }
1339 { (eval echo "$as_me:1339: \"$ac_compiler -V </dev/null >&5\"") >&5
1340 (eval $ac_compiler -V </dev/null >&5) 2>&5
1342 echo "$as_me:1342: \$? = $ac_status" >&5
1343 (exit $ac_status); }
1345 cat >conftest.$ac_ext <<_ACEOF
1346 #line 1346 "configure"
1347 #include "confdefs.h"
1357 ac_clean_files_save=$ac_clean_files
1358 ac_clean_files="$ac_clean_files a.out a.exe"
1359 # Try to create an executable without -o first, disregard a.out.
1360 # It will help us diagnose broken compilers, and finding out an intuition
1362 echo "$as_me:1362: checking for C compiler default output" >&5
1363 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1364 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1365 if { (eval echo "$as_me:1365: \"$ac_link_default\"") >&5
1366 (eval $ac_link_default) 2>&5
1368 echo "$as_me:1368: \$? = $ac_status" >&5
1369 (exit $ac_status); }; then
1370 # Find the output, starting from the most likely. This scheme is
1371 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1373 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1374 ls a.out conftest 2>/dev/null;
1375 ls a.* conftest.* 2>/dev/null`; do
1377 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1378 a.out ) # We found the default executable, but exeext='' is most
1381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1382 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1389 echo "$as_me: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1391 { { echo "$as_me:1391: error: C compiler cannot create executables" >&5
1392 echo "$as_me: error: C compiler cannot create executables" >&2;}
1393 { (exit 77); exit 77; }; }
1396 ac_exeext=$ac_cv_exeext
1397 echo "$as_me:1397: result: $ac_file" >&5
1398 echo "${ECHO_T}$ac_file" >&6
1400 # Check the compiler produces executables we can run. If not, either
1401 # the compiler is broken, or we cross compile.
1402 echo "$as_me:1402: checking whether the C compiler works" >&5
1403 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1404 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1405 # If not cross compiling, check that we can run a simple program.
1406 if test "$cross_compiling" != yes; then
1407 if { ac_try='./$ac_file'
1408 { (eval echo "$as_me:1408: \"$ac_try\"") >&5
1411 echo "$as_me:1411: \$? = $ac_status" >&5
1412 (exit $ac_status); }; }; then
1415 if test "$cross_compiling" = maybe; then
1418 { { echo "$as_me:1418: error: cannot run C compiled programs.
1419 If you meant to cross compile, use \`--host'." >&5
1420 echo "$as_me: error: cannot run C compiled programs.
1421 If you meant to cross compile, use \`--host'." >&2;}
1422 { (exit 1); exit 1; }; }
1426 echo "$as_me:1426: result: yes" >&5
1427 echo "${ECHO_T}yes" >&6
1429 rm -f a.out a.exe conftest$ac_cv_exeext
1430 ac_clean_files=$ac_clean_files_save
1431 # Check the compiler produces executables we can run. If not, either
1432 # the compiler is broken, or we cross compile.
1433 echo "$as_me:1433: checking whether we are cross compiling" >&5
1434 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1435 echo "$as_me:1435: result: $cross_compiling" >&5
1436 echo "${ECHO_T}$cross_compiling" >&6
1438 echo "$as_me:1438: checking for executable suffix" >&5
1439 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1440 if { (eval echo "$as_me:1440: \"$ac_link\"") >&5
1441 (eval $ac_link) 2>&5
1443 echo "$as_me:1443: \$? = $ac_status" >&5
1444 (exit $ac_status); }; then
1445 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1446 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1447 # work properly (i.e., refer to `conftest.exe'), while it won't with
1449 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1451 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1459 { { echo "$as_me:1459: error: cannot compute EXEEXT: cannot compile and link" >&5
1460 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1461 { (exit 1); exit 1; }; }
1464 rm -f conftest$ac_cv_exeext
1465 echo "$as_me:1465: result: $ac_cv_exeext" >&5
1466 echo "${ECHO_T}$ac_cv_exeext" >&6
1468 rm -f conftest.$ac_ext
1469 EXEEXT=$ac_cv_exeext
1471 echo "$as_me:1471: checking for object suffix" >&5
1472 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1473 if test "${ac_cv_objext+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 cat >conftest.$ac_ext <<_ACEOF
1477 #line 1477 "configure"
1478 #include "confdefs.h"
1488 rm -f conftest.o conftest.obj
1489 if { (eval echo "$as_me:1489: \"$ac_compile\"") >&5
1490 (eval $ac_compile) 2>&5
1492 echo "$as_me:1492: \$? = $ac_status" >&5
1493 (exit $ac_status); }; then
1494 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1496 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1497 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1502 echo "$as_me: failed program was:" >&5
1503 cat conftest.$ac_ext >&5
1504 { { echo "$as_me:1504: error: cannot compute OBJEXT: cannot compile" >&5
1505 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1506 { (exit 1); exit 1; }; }
1509 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1511 echo "$as_me:1511: result: $ac_cv_objext" >&5
1512 echo "${ECHO_T}$ac_cv_objext" >&6
1513 OBJEXT=$ac_cv_objext
1515 echo "$as_me:1515: checking whether we are using the GNU C compiler" >&5
1516 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1517 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 cat >conftest.$ac_ext <<_ACEOF
1521 #line 1521 "configure"
1522 #include "confdefs.h"
1535 rm -f conftest.$ac_objext
1536 if { (eval echo "$as_me:1536: \"$ac_compile\"") >&5
1537 (eval $ac_compile) 2>&5
1539 echo "$as_me:1539: \$? = $ac_status" >&5
1540 (exit $ac_status); } &&
1541 { ac_try='test -s conftest.$ac_objext'
1542 { (eval echo "$as_me:1542: \"$ac_try\"") >&5
1545 echo "$as_me:1545: \$? = $ac_status" >&5
1546 (exit $ac_status); }; }; then
1549 echo "$as_me: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1553 rm -f conftest.$ac_objext conftest.$ac_ext
1554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1557 echo "$as_me:1557: result: $ac_cv_c_compiler_gnu" >&5
1558 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1559 GCC=`test $ac_compiler_gnu = yes && echo yes`
1560 ac_test_CFLAGS=${CFLAGS+set}
1561 ac_save_CFLAGS=$CFLAGS
1563 echo "$as_me:1563: checking whether $CC accepts -g" >&5
1564 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1565 if test "${ac_cv_prog_cc_g+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 cat >conftest.$ac_ext <<_ACEOF
1569 #line 1569 "configure"
1570 #include "confdefs.h"
1580 rm -f conftest.$ac_objext
1581 if { (eval echo "$as_me:1581: \"$ac_compile\"") >&5
1582 (eval $ac_compile) 2>&5
1584 echo "$as_me:1584: \$? = $ac_status" >&5
1585 (exit $ac_status); } &&
1586 { ac_try='test -s conftest.$ac_objext'
1587 { (eval echo "$as_me:1587: \"$ac_try\"") >&5
1590 echo "$as_me:1590: \$? = $ac_status" >&5
1591 (exit $ac_status); }; }; then
1594 echo "$as_me: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1598 rm -f conftest.$ac_objext conftest.$ac_ext
1600 echo "$as_me:1600: result: $ac_cv_prog_cc_g" >&5
1601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1602 if test "$ac_test_CFLAGS" = set; then
1603 CFLAGS=$ac_save_CFLAGS
1604 elif test $ac_cv_prog_cc_g = yes; then
1605 if test "$GCC" = yes; then
1611 if test "$GCC" = yes; then
1617 # Some people use a C++ compiler to compile C. Since we use `exit',
1618 # in C++ we need to declare it. In case someone uses the same compiler
1619 # for both compiling C and C++ we need to have the C++ compiler decide
1620 # the declaration of exit, since it's the most demanding environment.
1621 cat >conftest.$ac_ext <<_ACEOF
1626 rm -f conftest.$ac_objext
1627 if { (eval echo "$as_me:1627: \"$ac_compile\"") >&5
1628 (eval $ac_compile) 2>&5
1630 echo "$as_me:1630: \$? = $ac_status" >&5
1631 (exit $ac_status); } &&
1632 { ac_try='test -s conftest.$ac_objext'
1633 { (eval echo "$as_me:1633: \"$ac_try\"") >&5
1636 echo "$as_me:1636: \$? = $ac_status" >&5
1637 (exit $ac_status); }; }; then
1638 for ac_declaration in \
1640 '#include <stdlib.h>' \
1641 'extern "C" void std::exit (int) throw (); using std::exit;' \
1642 'extern "C" void std::exit (int); using std::exit;' \
1643 'extern "C" void exit (int) throw ();' \
1644 'extern "C" void exit (int);' \
1647 cat >conftest.$ac_ext <<_ACEOF
1648 #line 1648 "configure"
1649 #include "confdefs.h"
1660 rm -f conftest.$ac_objext
1661 if { (eval echo "$as_me:1661: \"$ac_compile\"") >&5
1662 (eval $ac_compile) 2>&5
1664 echo "$as_me:1664: \$? = $ac_status" >&5
1665 (exit $ac_status); } &&
1666 { ac_try='test -s conftest.$ac_objext'
1667 { (eval echo "$as_me:1667: \"$ac_try\"") >&5
1670 echo "$as_me:1670: \$? = $ac_status" >&5
1671 (exit $ac_status); }; }; then
1674 echo "$as_me: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1678 rm -f conftest.$ac_objext conftest.$ac_ext
1679 cat >conftest.$ac_ext <<_ACEOF
1680 #line 1680 "configure"
1681 #include "confdefs.h"
1691 rm -f conftest.$ac_objext
1692 if { (eval echo "$as_me:1692: \"$ac_compile\"") >&5
1693 (eval $ac_compile) 2>&5
1695 echo "$as_me:1695: \$? = $ac_status" >&5
1696 (exit $ac_status); } &&
1697 { ac_try='test -s conftest.$ac_objext'
1698 { (eval echo "$as_me:1698: \"$ac_try\"") >&5
1701 echo "$as_me:1701: \$? = $ac_status" >&5
1702 (exit $ac_status); }; }; then
1705 echo "$as_me: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1708 rm -f conftest.$ac_objext conftest.$ac_ext
1711 if test -n "$ac_declaration"; then
1712 echo '#ifdef __cplusplus' >>confdefs.h
1713 echo $ac_declaration >>confdefs.h
1714 echo '#endif' >>confdefs.h
1718 echo "$as_me: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 rm -f conftest.$ac_objext conftest.$ac_ext
1723 ac_cpp='$CPP $CPPFLAGS'
1724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1727 ac_main_return=return
1730 if test "$GCC" = yes ; then
1731 echo "$as_me:1731: checking version of $CC" >&5
1732 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1733 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.].*//'`"
1734 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1735 echo "$as_me:1735: result: $GCC_VERSION" >&5
1736 echo "${ECHO_T}$GCC_VERSION" >&6
1739 echo "$as_me:1739: checking for $CC option to accept ANSI C" >&5
1740 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1741 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 ac_cv_prog_cc_stdc=no
1746 cat >conftest.$ac_ext <<_ACEOF
1747 #line 1747 "configure"
1748 #include "confdefs.h"
1751 #include <sys/types.h>
1752 #include <sys/stat.h>
1753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1754 struct buf { int x; };
1755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1756 static char *e (p, i)
1762 static char *f (char * (*g) (char **, int), char **p, ...)
1767 s = g (p, va_arg (v,int));
1771 int test (int i, double x);
1772 struct s1 {int (*f) (int a);};
1773 struct s2 {int (*f) (double a);};
1774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1785 # Don't try gcc -ansi; that turns off useful extensions and
1786 # breaks some systems' header files.
1787 # AIX -qlanglvl=ansi
1788 # Ultrix and OSF/1 -std1
1789 # HP-UX 10.20 and later -Ae
1790 # HP-UX older versions -Aa -D_HPUX_SOURCE
1791 # SVR4 -Xc -D__EXTENSIONS__
1792 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1794 CC="$ac_save_CC $ac_arg"
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1807 ac_cv_prog_cc_stdc=$ac_arg
1810 echo "$as_me: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1813 rm -f conftest.$ac_objext
1815 rm -f conftest.$ac_ext conftest.$ac_objext
1820 case "x$ac_cv_prog_cc_stdc" in
1822 echo "$as_me:1822: result: none needed" >&5
1823 echo "${ECHO_T}none needed" >&6 ;;
1825 echo "$as_me:1825: result: $ac_cv_prog_cc_stdc" >&5
1826 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1827 CC="$CC $ac_cv_prog_cc_stdc" ;;
1830 # This should have been defined by AC_PROG_CC
1833 echo "$as_me:1833: checking \$CC variable" >&5
1834 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1837 echo "$as_me:1837: result: broken" >&5
1838 echo "${ECHO_T}broken" >&6
1839 { echo "$as_me:1839: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1840 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1842 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
1843 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
1845 for cf_arg in $cf_flags
1853 cf_new_extra_cppflags=
1855 for cf_add_cflags in $cf_arg
1857 case $cf_fix_cppflags in
1859 case $cf_add_cflags in
1860 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1861 case $cf_add_cflags in
1863 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1865 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1866 && test -z "${cf_tst_cflags}" \
1867 && cf_fix_cppflags=yes
1869 if test $cf_fix_cppflags = yes ; then
1871 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1872 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1875 elif test "${cf_tst_cflags}" = "\"'" ; then
1877 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1878 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1888 case $cf_add_cflags in
1890 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1892 CPPFLAGS=`echo "$CPPFLAGS" | \
1893 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1894 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1899 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
1900 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
1907 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
1908 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
1915 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1916 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1918 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1920 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1921 && test -z "${cf_tst_cflags}" \
1922 && cf_fix_cppflags=no
1927 if test -n "$cf_new_cflags" ; then
1929 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
1930 CFLAGS="${CFLAGS}$cf_new_cflags"
1934 if test -n "$cf_new_cppflags" ; then
1936 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
1937 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
1941 if test -n "$cf_new_extra_cppflags" ; then
1943 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
1944 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
1954 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
1956 echo "${as_me:-configure}:1956: testing resulting CC: '$CC' ..." 1>&5
1958 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
1960 echo "${as_me:-configure}:1960: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
1962 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
1964 echo "${as_me:-configure}:1964: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
1968 echo "$as_me:1968: result: ok" >&5
1969 echo "${ECHO_T}ok" >&6
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978 ac_main_return=return
1979 echo "$as_me:1979: checking how to run the C preprocessor" >&5
1980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1981 # On Suns, sometimes $CPP names a directory.
1982 if test -n "$CPP" && test -d "$CPP"; then
1985 if test -z "$CPP"; then
1986 if test "${ac_cv_prog_CPP+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 # Double quotes because CPP needs to be expanded
1990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1993 for ac_c_preproc_warn_flag in '' yes
1995 # Use a header file that comes with gcc, so configuring glibc
1996 # with a fresh cross-compiler works.
1997 # On the NeXT, cc -E runs the code through the compiler's parser,
1998 # not just through cpp. "Syntax error" is here to catch this case.
1999 cat >conftest.$ac_ext <<_ACEOF
2000 #line 2000 "configure"
2001 #include "confdefs.h"
2005 if { (eval echo "$as_me:2005: \"$ac_cpp conftest.$ac_ext\"") >&5
2006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2008 egrep -v '^ *\+' conftest.er1 >conftest.err
2010 cat conftest.err >&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); } >/dev/null; then
2013 if test -s conftest.err; then
2014 ac_cpp_err=$ac_c_preproc_warn_flag
2021 if test -z "$ac_cpp_err"; then
2024 echo "$as_me: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2026 # Broken: fails on valid input.
2029 rm -f conftest.err conftest.$ac_ext
2031 # OK, works on sane cases. Now check whether non-existent headers
2032 # can be detected and how.
2033 cat >conftest.$ac_ext <<_ACEOF
2034 #line 2034 "configure"
2035 #include "confdefs.h"
2036 #include <ac_nonexistent.h>
2038 if { (eval echo "$as_me:2038: \"$ac_cpp conftest.$ac_ext\"") >&5
2039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2041 egrep -v '^ *\+' conftest.er1 >conftest.err
2043 cat conftest.err >&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } >/dev/null; then
2046 if test -s conftest.err; then
2047 ac_cpp_err=$ac_c_preproc_warn_flag
2054 if test -z "$ac_cpp_err"; then
2055 # Broken: success on invalid input.
2058 echo "$as_me: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2060 # Passes both tests.
2064 rm -f conftest.err conftest.$ac_ext
2067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2068 rm -f conftest.err conftest.$ac_ext
2069 if $ac_preproc_ok; then
2081 echo "$as_me:2081: result: $CPP" >&5
2082 echo "${ECHO_T}$CPP" >&6
2084 for ac_c_preproc_warn_flag in '' yes
2086 # Use a header file that comes with gcc, so configuring glibc
2087 # with a fresh cross-compiler works.
2088 # On the NeXT, cc -E runs the code through the compiler's parser,
2089 # not just through cpp. "Syntax error" is here to catch this case.
2090 cat >conftest.$ac_ext <<_ACEOF
2091 #line 2091 "configure"
2092 #include "confdefs.h"
2096 if { (eval echo "$as_me:2096: \"$ac_cpp conftest.$ac_ext\"") >&5
2097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2099 egrep -v '^ *\+' conftest.er1 >conftest.err
2101 cat conftest.err >&5
2102 echo "$as_me:2102: \$? = $ac_status" >&5
2103 (exit $ac_status); } >/dev/null; then
2104 if test -s conftest.err; then
2105 ac_cpp_err=$ac_c_preproc_warn_flag
2112 if test -z "$ac_cpp_err"; then
2115 echo "$as_me: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2117 # Broken: fails on valid input.
2120 rm -f conftest.err conftest.$ac_ext
2122 # OK, works on sane cases. Now check whether non-existent headers
2123 # can be detected and how.
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line 2125 "configure"
2126 #include "confdefs.h"
2127 #include <ac_nonexistent.h>
2129 if { (eval echo "$as_me:2129: \"$ac_cpp conftest.$ac_ext\"") >&5
2130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2132 egrep -v '^ *\+' conftest.er1 >conftest.err
2134 cat conftest.err >&5
2135 echo "$as_me:2135: \$? = $ac_status" >&5
2136 (exit $ac_status); } >/dev/null; then
2137 if test -s conftest.err; then
2138 ac_cpp_err=$ac_c_preproc_warn_flag
2145 if test -z "$ac_cpp_err"; then
2146 # Broken: success on invalid input.
2149 echo "$as_me: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2151 # Passes both tests.
2155 rm -f conftest.err conftest.$ac_ext
2158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2159 rm -f conftest.err conftest.$ac_ext
2160 if $ac_preproc_ok; then
2163 { { echo "$as_me:2163: error: C preprocessor \"$CPP\" fails sanity check" >&5
2164 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2165 { (exit 1); exit 1; }; }
2169 ac_cpp='$CPP $CPPFLAGS'
2170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173 ac_main_return=return
2175 if test $ac_cv_c_compiler_gnu = yes; then
2176 echo "$as_me:2176: checking whether $CC needs -traditional" >&5
2177 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2178 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 ac_pattern="Autoconf.*'x'"
2182 cat >conftest.$ac_ext <<_ACEOF
2183 #line 2183 "configure"
2184 #include "confdefs.h"
2186 int Autoconf = TIOCGETP;
2188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2189 egrep "$ac_pattern" >/dev/null 2>&1; then
2190 ac_cv_prog_gcc_traditional=yes
2192 ac_cv_prog_gcc_traditional=no
2196 if test $ac_cv_prog_gcc_traditional = no; then
2197 cat >conftest.$ac_ext <<_ACEOF
2198 #line 2198 "configure"
2199 #include "confdefs.h"
2201 int Autoconf = TCGETA;
2203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2204 egrep "$ac_pattern" >/dev/null 2>&1; then
2205 ac_cv_prog_gcc_traditional=yes
2211 echo "$as_me:2211: result: $ac_cv_prog_gcc_traditional" >&5
2212 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2213 if test $ac_cv_prog_gcc_traditional = yes; then
2214 CC="$CC -traditional"
2218 echo "$as_me:2218: checking whether $CC understands -c and -o together" >&5
2219 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2220 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 cat > conftest.$ac_ext <<CF_EOF
2227 ${cf_cv_main_return:-return}(0);
2230 # We do the test twice because some compilers refuse to overwrite an
2231 # existing .o file with -o, though they will create one.
2232 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2233 if { (eval echo "$as_me:2233: \"$ac_try\"") >&5
2236 echo "$as_me:2236: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 test -f conftest2.$ac_objext && { (eval echo "$as_me:2238: \"$ac_try\"") >&5
2241 echo "$as_me:2241: \$? = $ac_status" >&5
2242 (exit $ac_status); };
2244 eval cf_cv_prog_CC_c_o=yes
2246 eval cf_cv_prog_CC_c_o=no
2251 if test $cf_cv_prog_CC_c_o = yes; then
2252 echo "$as_me:2252: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2255 echo "$as_me:2255: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2259 test "$program_prefix" != NONE &&
2260 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2261 # Use a double $ so make ignores it.
2262 test "$program_suffix" != NONE &&
2263 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2264 # Double any \ or $. echo might interpret backslashes.
2265 # By default was `s,x,x', remove it if useless.
2266 cat <<\_ACEOF >conftest.sed
2267 s/[\\$]/&&/g;s/;s,x,x,$//
2269 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2272 for ac_prog in mawk gawk nawk awk
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275 set dummy $ac_prog; ac_word=$2
2276 echo "$as_me:2276: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2278 if test "${ac_cv_prog_AWK+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 if test -n "$AWK"; then
2282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2284 ac_save_IFS=$IFS; IFS=$ac_path_separator
2286 for ac_dir in $ac_dummy; do
2288 test -z "$ac_dir" && ac_dir=.
2289 $as_executable_p "$ac_dir/$ac_word" || continue
2290 ac_cv_prog_AWK="$ac_prog"
2291 echo "$as_me:2291: found $ac_dir/$ac_word" >&5
2298 if test -n "$AWK"; then
2299 echo "$as_me:2299: result: $AWK" >&5
2300 echo "${ECHO_T}$AWK" >&6
2302 echo "$as_me:2302: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2306 test -n "$AWK" && break
2309 test -z "$AWK" && { { echo "$as_me:2309: error: No awk program found" >&5
2310 echo "$as_me: error: No awk program found" >&2;}
2311 { (exit 1); exit 1; }; }
2313 echo "$as_me:2313: checking for egrep" >&5
2314 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2315 if test "${ac_cv_prog_egrep+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2319 then ac_cv_prog_egrep='grep -E'
2320 else ac_cv_prog_egrep='egrep'
2323 echo "$as_me:2323: result: $ac_cv_prog_egrep" >&5
2324 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2325 EGREP=$ac_cv_prog_egrep
2327 test -z "$EGREP" && { { echo "$as_me:2327: error: No egrep program found" >&5
2328 echo "$as_me: error: No egrep program found" >&2;}
2329 { (exit 1); exit 1; }; }
2331 # Find a good install program. We prefer a C program (faster),
2332 # so one script is as good as another. But avoid the broken or
2333 # incompatible versions:
2334 # SysV /etc/install, /usr/sbin/install
2335 # SunOS /usr/etc/install
2336 # IRIX /sbin/install
2338 # AmigaOS /C/install, which installs bootblocks on floppy discs
2339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2342 # ./install, which can be erroneously created by make from ./install.sh.
2343 echo "$as_me:2343: checking for a BSD compatible install" >&5
2344 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2345 if test -z "$INSTALL"; then
2346 if test "${ac_cv_path_install+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 ac_save_IFS=$IFS; IFS=$ac_path_separator
2350 for ac_dir in $PATH; do
2352 # Account for people who put trailing slashes in PATH elements.
2354 / | ./ | .// | /cC/* \
2355 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2358 # OSF1 and SCO ODT 3.0 have their own names for install.
2359 # Don't use installbsd from OSF since it installs stuff as root
2361 for ac_prog in ginstall scoinst install; do
2362 if $as_executable_p "$ac_dir/$ac_prog"; then
2363 if test $ac_prog = install &&
2364 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2365 # AIX install. It has an incompatible calling convention.
2367 elif test $ac_prog = install &&
2368 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2369 # program-specific install script used by HP pwplus--don't use.
2372 ac_cv_path_install="$ac_dir/$ac_prog -c"
2382 if test "${ac_cv_path_install+set}" = set; then
2383 INSTALL=$ac_cv_path_install
2385 # As a last resort, use the slow shell script. We don't cache a
2386 # path for INSTALL within a source directory, because that will
2387 # break other packages using the cache if that directory is
2388 # removed, or if the path is relative.
2389 INSTALL=$ac_install_sh
2392 echo "$as_me:2392: result: $INSTALL" >&5
2393 echo "${ECHO_T}$INSTALL" >&6
2395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2396 # It thinks the first close brace ends the variable substitution.
2397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2403 echo "$as_me:2403: checking whether ln -s works" >&5
2404 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2406 if test "$LN_S" = "ln -s"; then
2407 echo "$as_me:2407: result: yes" >&5
2408 echo "${ECHO_T}yes" >&6
2410 echo "$as_me:2410: result: no, using $LN_S" >&5
2411 echo "${ECHO_T}no, using $LN_S" >&6
2414 echo "$as_me:2414: checking if $LN_S -f options work" >&5
2415 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2417 rm -f conf$$.src conf$$dst
2419 echo first >conf$$.src
2420 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2425 rm -f conf$$.dst conf$$src
2426 echo "$as_me:2426: result: $cf_prog_ln_sf" >&5
2427 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2429 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2431 # Find a good install program. We prefer a C program (faster),
2432 # so one script is as good as another. But avoid the broken or
2433 # incompatible versions:
2434 # SysV /etc/install, /usr/sbin/install
2435 # SunOS /usr/etc/install
2436 # IRIX /sbin/install
2438 # AmigaOS /C/install, which installs bootblocks on floppy discs
2439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442 # ./install, which can be erroneously created by make from ./install.sh.
2443 echo "$as_me:2443: checking for a BSD compatible install" >&5
2444 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2445 if test -z "$INSTALL"; then
2446 if test "${ac_cv_path_install+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 ac_save_IFS=$IFS; IFS=$ac_path_separator
2450 for ac_dir in $PATH; do
2452 # Account for people who put trailing slashes in PATH elements.
2454 / | ./ | .// | /cC/* \
2455 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2458 # OSF1 and SCO ODT 3.0 have their own names for install.
2459 # Don't use installbsd from OSF since it installs stuff as root
2461 for ac_prog in ginstall scoinst install; do
2462 if $as_executable_p "$ac_dir/$ac_prog"; then
2463 if test $ac_prog = install &&
2464 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2467 elif test $ac_prog = install &&
2468 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2472 ac_cv_path_install="$ac_dir/$ac_prog -c"
2482 if test "${ac_cv_path_install+set}" = set; then
2483 INSTALL=$ac_cv_path_install
2485 # As a last resort, use the slow shell script. We don't cache a
2486 # path for INSTALL within a source directory, because that will
2487 # break other packages using the cache if that directory is
2488 # removed, or if the path is relative.
2489 INSTALL=$ac_install_sh
2492 echo "$as_me:2492: result: $INSTALL" >&5
2493 echo "${ECHO_T}$INSTALL" >&6
2495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2496 # It thinks the first close brace ends the variable substitution.
2497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2507 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2508 test -z "$cf_dir" && cf_dir=.
2509 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2513 echo "$as_me:2513: checking if you want to install stripped executables" >&5
2514 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2516 # Check whether --enable-stripping or --disable-stripping was given.
2517 if test "${enable_stripping+set}" = set; then
2518 enableval="$enable_stripping"
2519 test "$enableval" != no && enableval=yes
2520 if test "$enableval" != "yes" ; then
2530 echo "$as_me:2530: result: $with_stripping" >&5
2531 echo "${ECHO_T}$with_stripping" >&6
2533 if test "$with_stripping" = yes
2540 echo "$as_me:2540: checking if install needs to be told about ownership" >&5
2541 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2542 case `$ac_config_guess` in
2551 echo "$as_me:2551: result: $with_install_o" >&5
2552 echo "${ECHO_T}$with_install_o" >&6
2553 if test "x$with_install_o" = xyes
2555 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'`
2560 echo "$as_me:2560: checking for long file names" >&5
2561 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2562 if test "${ac_cv_sys_long_file_names+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 ac_cv_sys_long_file_names=yes
2566 # Test for long file names in all the places we know might matter:
2567 # . the current directory, where building will happen
2568 # $prefix/lib where we will be installing things
2569 # $exec_prefix/lib likewise
2570 # eval it to expand exec_prefix.
2571 # $TMPDIR if set, where it might want to write temporary files
2572 # if $TMPDIR is not set:
2573 # /tmp where it might want to write temporary files
2576 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2579 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2581 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2582 test -d $ac_dir || continue
2583 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2584 ac_xdir=$ac_dir/cf$$
2585 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2586 ac_tf1=$ac_xdir/conftest9012345
2587 ac_tf2=$ac_xdir/conftest9012346
2588 (echo 1 >$ac_tf1) 2>/dev/null
2589 (echo 2 >$ac_tf2) 2>/dev/null
2590 ac_val=`cat $ac_tf1 2>/dev/null`
2591 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2592 ac_cv_sys_long_file_names=no
2593 rm -rf $ac_xdir 2>/dev/null
2596 rm -rf $ac_xdir 2>/dev/null
2599 echo "$as_me:2599: result: $ac_cv_sys_long_file_names" >&5
2600 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2601 if test $ac_cv_sys_long_file_names = yes; then
2603 cat >>confdefs.h <<\EOF
2604 #define HAVE_LONG_FILE_NAMES 1
2609 # if we find pkg-config, check if we should install the ".pc" files.
2611 echo "$as_me:2611: checking if you want to use pkg-config" >&5
2612 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2614 # Check whether --with-pkg-config or --without-pkg-config was given.
2615 if test "${with_pkg_config+set}" = set; then
2616 withval="$with_pkg_config"
2617 cf_pkg_config=$withval
2621 echo "$as_me:2621: result: $cf_pkg_config" >&5
2622 echo "${ECHO_T}$cf_pkg_config" >&6
2624 case $cf_pkg_config in
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2633 echo "$as_me:2633: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2643 ac_save_IFS=$IFS; IFS=$ac_path_separator
2645 for ac_dir in $ac_dummy; do
2647 test -z "$ac_dir" && ac_dir=.
2648 if $as_executable_p "$ac_dir/$ac_word"; then
2649 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2650 echo "$as_me:2650: found $ac_dir/$ac_word" >&5
2658 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2660 if test -n "$PKG_CONFIG"; then
2661 echo "$as_me:2661: result: $PKG_CONFIG" >&5
2662 echo "${ECHO_T}$PKG_CONFIG" >&6
2664 echo "$as_me:2664: result: no" >&5
2665 echo "${ECHO_T}no" >&6
2669 if test -z "$ac_cv_path_PKG_CONFIG"; then
2670 ac_pt_PKG_CONFIG=$PKG_CONFIG
2671 # Extract the first word of "pkg-config", so it can be a program name with args.
2672 set dummy pkg-config; ac_word=$2
2673 echo "$as_me:2673: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 case $ac_pt_PKG_CONFIG in
2680 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2683 ac_save_IFS=$IFS; IFS=$ac_path_separator
2685 for ac_dir in $ac_dummy; do
2687 test -z "$ac_dir" && ac_dir=.
2688 if $as_executable_p "$ac_dir/$ac_word"; then
2689 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2690 echo "$as_me:2690: found $ac_dir/$ac_word" >&5
2695 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2699 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2701 if test -n "$ac_pt_PKG_CONFIG"; then
2702 echo "$as_me:2702: result: $ac_pt_PKG_CONFIG" >&5
2703 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2705 echo "$as_me:2705: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2709 PKG_CONFIG=$ac_pt_PKG_CONFIG
2711 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2720 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2721 if test "$PKG_CONFIG" != none ; then
2723 if test "x$prefix" != xNONE; then
2724 cf_path_syntax="$prefix"
2726 cf_path_syntax="$ac_default_prefix"
2729 case ".$PKG_CONFIG" in
2734 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
2736 (.\${*prefix}*|.\${*dir}*)
2737 eval PKG_CONFIG="$PKG_CONFIG"
2738 case ".$PKG_CONFIG" in
2740 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2745 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2748 { { echo "$as_me:2748: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2749 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2750 { (exit 1); exit 1; }; }
2754 elif test "x$cf_pkg_config" != xno ; then
2755 { echo "$as_me:2755: WARNING: pkg-config is not installed" >&5
2756 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
2761 echo "$as_me:2761: checking for pkg-config library directory" >&5
2762 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
2765 echo "$as_me:2765: checking for $PKG_CONFIG library directory" >&5
2766 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2770 PKG_CONFIG_LIBDIR=no
2772 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2773 if test "${with_pkg_config_libdir+set}" = set; then
2774 withval="$with_pkg_config_libdir"
2775 PKG_CONFIG_LIBDIR=$withval
2777 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
2780 case x$PKG_CONFIG_LIBDIR in
2784 # Look for the library directory using the same prefix as the executable
2785 if test "x$PKG_CONFIG" = xnone
2789 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2792 # If you don't like using the default architecture, you have to specify the
2793 # intended library directory and corresponding compiler/linker options.
2795 # This case allows for Debian's 2014-flavor of multiarch, along with the
2796 # most common variations before that point. Some other variants spell the
2797 # directory differently, e.g., "pkg-config", and put it in unusual places.
2798 # pkg-config has always been poorly standardized, which is ironic...
2799 case x`(arch) 2>/dev/null` in
2802 $cf_path/lib/*64-linux-gnu \
2810 $cf_path/lib/*-linux-gnu \
2818 test -n "$verbose" && echo " list..." 1>&6
2820 echo "${as_me:-configure}:2820: testing list... ..." 1>&5
2822 for cf_config in $cf_search_path
2824 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
2826 echo "${as_me:-configure}:2826: testing checking $cf_config/pkgconfig ..." 1>&5
2828 if test -d $cf_config/pkgconfig
2830 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2831 echo "$as_me:2831: checking done" >&5
2832 echo $ECHO_N "checking done... $ECHO_C" >&6
2841 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
2842 echo "$as_me:2842: result: $PKG_CONFIG_LIBDIR" >&5
2843 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
2846 echo "$as_me:2846: checking if you want to build test-programs" >&5
2847 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2849 # Check whether --with-tests or --without-tests was given.
2850 if test "${with_tests+set}" = set; then
2851 withval="$with_tests"
2852 cf_with_tests=$withval
2856 echo "$as_me:2856: result: $cf_with_tests" >&5
2857 echo "${ECHO_T}$cf_with_tests" >&6
2859 echo "$as_me:2859: checking if we should assume mixed-case filenames" >&5
2860 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2862 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2863 if test "${enable_mixed_case+set}" = set; then
2864 enableval="$enable_mixed_case"
2865 enable_mixedcase=$enableval
2867 enable_mixedcase=auto
2869 echo "$as_me:2869: result: $enable_mixedcase" >&5
2870 echo "${ECHO_T}$enable_mixedcase" >&6
2871 if test "$enable_mixedcase" = "auto" ; then
2873 echo "$as_me:2873: checking if filesystem supports mixed-case filenames" >&5
2874 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2875 if test "${cf_cv_mixedcase+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 if test "$cross_compiling" = yes ; then
2880 case $target_alias in
2881 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2889 rm -f conftest CONFTEST
2891 if test -f CONFTEST ; then
2896 rm -f conftest CONFTEST
2900 echo "$as_me:2900: result: $cf_cv_mixedcase" >&5
2901 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2902 test "$cf_cv_mixedcase" = yes &&
2903 cat >>confdefs.h <<\EOF
2904 #define MIXEDCASE_FILENAMES 1
2908 cf_cv_mixedcase=$enable_mixedcase
2909 if test "$enable_mixedcase" = "yes" ; then
2910 cat >>confdefs.h <<\EOF
2911 #define MIXEDCASE_FILENAMES 1
2917 # do this after mixed-case option (tags/TAGS is not as important as tic).
2918 echo "$as_me:2918: checking whether ${MAKE-make} sets \${MAKE}" >&5
2919 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2920 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2921 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 cat >conftest.make <<\EOF
2926 @echo 'ac_maketemp="${MAKE}"'
2928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2929 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2930 if test -n "$ac_maketemp"; then
2931 eval ac_cv_prog_make_${ac_make}_set=yes
2933 eval ac_cv_prog_make_${ac_make}_set=no
2937 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2938 echo "$as_me:2938: result: yes" >&5
2939 echo "${ECHO_T}yes" >&6
2942 echo "$as_me:2942: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2944 SET_MAKE="MAKE=${MAKE-make}"
2947 for ac_prog in exctags ctags
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 echo "$as_me:2951: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2953 if test "${ac_cv_prog_CTAGS+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -n "$CTAGS"; then
2957 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2959 ac_save_IFS=$IFS; IFS=$ac_path_separator
2961 for ac_dir in $ac_dummy; do
2963 test -z "$ac_dir" && ac_dir=.
2964 $as_executable_p "$ac_dir/$ac_word" || continue
2965 ac_cv_prog_CTAGS="$ac_prog"
2966 echo "$as_me:2966: found $ac_dir/$ac_word" >&5
2972 CTAGS=$ac_cv_prog_CTAGS
2973 if test -n "$CTAGS"; then
2974 echo "$as_me:2974: result: $CTAGS" >&5
2975 echo "${ECHO_T}$CTAGS" >&6
2977 echo "$as_me:2977: result: no" >&5
2978 echo "${ECHO_T}no" >&6
2981 test -n "$CTAGS" && break
2984 for ac_prog in exetags etags
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 echo "$as_me:2988: checking for $ac_word" >&5
2989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990 if test "${ac_cv_prog_ETAGS+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 if test -n "$ETAGS"; then
2994 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2996 ac_save_IFS=$IFS; IFS=$ac_path_separator
2998 for ac_dir in $ac_dummy; do
3000 test -z "$ac_dir" && ac_dir=.
3001 $as_executable_p "$ac_dir/$ac_word" || continue
3002 ac_cv_prog_ETAGS="$ac_prog"
3003 echo "$as_me:3003: found $ac_dir/$ac_word" >&5
3009 ETAGS=$ac_cv_prog_ETAGS
3010 if test -n "$ETAGS"; then
3011 echo "$as_me:3011: result: $ETAGS" >&5
3012 echo "${ECHO_T}$ETAGS" >&6
3014 echo "$as_me:3014: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3018 test -n "$ETAGS" && break
3021 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3022 set dummy ${CTAGS:-ctags}; ac_word=$2
3023 echo "$as_me:3023: checking for $ac_word" >&5
3024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3025 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 if test -n "$MAKE_LOWER_TAGS"; then
3029 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3031 ac_save_IFS=$IFS; IFS=$ac_path_separator
3033 for ac_dir in $ac_dummy; do
3035 test -z "$ac_dir" && ac_dir=.
3036 $as_executable_p "$ac_dir/$ac_word" || continue
3037 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3038 echo "$as_me:3038: found $ac_dir/$ac_word" >&5
3042 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3045 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3046 if test -n "$MAKE_LOWER_TAGS"; then
3047 echo "$as_me:3047: result: $MAKE_LOWER_TAGS" >&5
3048 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3050 echo "$as_me:3050: result: no" >&5
3051 echo "${ECHO_T}no" >&6
3054 if test "$cf_cv_mixedcase" = yes ; then
3055 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3056 set dummy ${ETAGS:-etags}; ac_word=$2
3057 echo "$as_me:3057: checking for $ac_word" >&5
3058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3059 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 if test -n "$MAKE_UPPER_TAGS"; then
3063 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3065 ac_save_IFS=$IFS; IFS=$ac_path_separator
3067 for ac_dir in $ac_dummy; do
3069 test -z "$ac_dir" && ac_dir=.
3070 $as_executable_p "$ac_dir/$ac_word" || continue
3071 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3072 echo "$as_me:3072: found $ac_dir/$ac_word" >&5
3076 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3079 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3080 if test -n "$MAKE_UPPER_TAGS"; then
3081 echo "$as_me:3081: result: $MAKE_UPPER_TAGS" >&5
3082 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3084 echo "$as_me:3084: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3092 if test "$MAKE_UPPER_TAGS" = yes ; then
3098 if test "$MAKE_LOWER_TAGS" = yes ; then
3104 echo "$as_me:3104: checking for makeflags variable" >&5
3105 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3106 if test "${cf_cv_makeflags+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3113 cat >cf_makeflags.tmp <<CF_EOF
3116 @ echo '.$cf_option'
3118 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3119 case "$cf_result" in
3121 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3122 case "$cf_result" in
3123 (.*CC=*) cf_cv_makeflags=
3125 (*) cf_cv_makeflags=$cf_option
3131 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
3135 rm -f cf_makeflags.tmp
3138 echo "$as_me:3138: result: $cf_cv_makeflags" >&5
3139 echo "${ECHO_T}$cf_cv_makeflags" >&6
3141 if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3144 echo "$as_me:3144: checking for $ac_word" >&5
3145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3146 if test "${ac_cv_prog_RANLIB+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 if test -n "$RANLIB"; then
3150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3152 ac_save_IFS=$IFS; IFS=$ac_path_separator
3154 for ac_dir in $ac_dummy; do
3156 test -z "$ac_dir" && ac_dir=.
3157 $as_executable_p "$ac_dir/$ac_word" || continue
3158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3159 echo "$as_me:3159: found $ac_dir/$ac_word" >&5
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167 echo "$as_me:3167: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3170 echo "$as_me:3170: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176 ac_ct_RANLIB=$RANLIB
3177 # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:3179: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 if test -n "$ac_ct_RANLIB"; then
3185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3187 ac_save_IFS=$IFS; IFS=$ac_path_separator
3189 for ac_dir in $ac_dummy; do
3191 test -z "$ac_dir" && ac_dir=.
3192 $as_executable_p "$ac_dir/$ac_word" || continue
3193 ac_cv_prog_ac_ct_RANLIB="ranlib"
3194 echo "$as_me:3194: found $ac_dir/$ac_word" >&5
3198 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3202 if test -n "$ac_ct_RANLIB"; then
3203 echo "$as_me:3203: result: $ac_ct_RANLIB" >&5
3204 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3206 echo "$as_me:3206: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3210 RANLIB=$ac_ct_RANLIB
3212 RANLIB="$ac_cv_prog_RANLIB"
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}ld; ac_word=$2
3218 echo "$as_me:3218: checking for $ac_word" >&5
3219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220 if test "${ac_cv_prog_LD+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 if test -n "$LD"; then
3224 ac_cv_prog_LD="$LD" # Let the user override the test.
3226 ac_save_IFS=$IFS; IFS=$ac_path_separator
3228 for ac_dir in $ac_dummy; do
3230 test -z "$ac_dir" && ac_dir=.
3231 $as_executable_p "$ac_dir/$ac_word" || continue
3232 ac_cv_prog_LD="${ac_tool_prefix}ld"
3233 echo "$as_me:3233: found $ac_dir/$ac_word" >&5
3240 if test -n "$LD"; then
3241 echo "$as_me:3241: result: $LD" >&5
3242 echo "${ECHO_T}$LD" >&6
3244 echo "$as_me:3244: result: no" >&5
3245 echo "${ECHO_T}no" >&6
3249 if test -z "$ac_cv_prog_LD"; then
3251 # Extract the first word of "ld", so it can be a program name with args.
3252 set dummy ld; ac_word=$2
3253 echo "$as_me:3253: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 if test -n "$ac_ct_LD"; then
3259 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3261 ac_save_IFS=$IFS; IFS=$ac_path_separator
3263 for ac_dir in $ac_dummy; do
3265 test -z "$ac_dir" && ac_dir=.
3266 $as_executable_p "$ac_dir/$ac_word" || continue
3267 ac_cv_prog_ac_ct_LD="ld"
3268 echo "$as_me:3268: found $ac_dir/$ac_word" >&5
3272 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3275 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3276 if test -n "$ac_ct_LD"; then
3277 echo "$as_me:3277: result: $ac_ct_LD" >&5
3278 echo "${ECHO_T}$ac_ct_LD" >&6
3280 echo "$as_me:3280: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3289 if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}ar; ac_word=$2
3292 echo "$as_me:3292: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294 if test "${ac_cv_prog_AR+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 if test -n "$AR"; then
3298 ac_cv_prog_AR="$AR" # Let the user override the test.
3300 ac_save_IFS=$IFS; IFS=$ac_path_separator
3302 for ac_dir in $ac_dummy; do
3304 test -z "$ac_dir" && ac_dir=.
3305 $as_executable_p "$ac_dir/$ac_word" || continue
3306 ac_cv_prog_AR="${ac_tool_prefix}ar"
3307 echo "$as_me:3307: found $ac_dir/$ac_word" >&5
3314 if test -n "$AR"; then
3315 echo "$as_me:3315: result: $AR" >&5
3316 echo "${ECHO_T}$AR" >&6
3318 echo "$as_me:3318: result: no" >&5
3319 echo "${ECHO_T}no" >&6
3323 if test -z "$ac_cv_prog_AR"; then
3325 # Extract the first word of "ar", so it can be a program name with args.
3326 set dummy ar; ac_word=$2
3327 echo "$as_me:3327: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 if test -n "$ac_ct_AR"; then
3333 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3335 ac_save_IFS=$IFS; IFS=$ac_path_separator
3337 for ac_dir in $ac_dummy; do
3339 test -z "$ac_dir" && ac_dir=.
3340 $as_executable_p "$ac_dir/$ac_word" || continue
3341 ac_cv_prog_ac_ct_AR="ar"
3342 echo "$as_me:3342: found $ac_dir/$ac_word" >&5
3346 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3349 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3350 if test -n "$ac_ct_AR"; then
3351 echo "$as_me:3351: result: $ac_ct_AR" >&5
3352 echo "${ECHO_T}$ac_ct_AR" >&6
3354 echo "$as_me:3354: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}ar; ac_word=$2
3366 echo "$as_me:3366: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368 if test "${ac_cv_prog_AR+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if test -n "$AR"; then
3372 ac_cv_prog_AR="$AR" # Let the user override the test.
3374 ac_save_IFS=$IFS; IFS=$ac_path_separator
3376 for ac_dir in $ac_dummy; do
3378 test -z "$ac_dir" && ac_dir=.
3379 $as_executable_p "$ac_dir/$ac_word" || continue
3380 ac_cv_prog_AR="${ac_tool_prefix}ar"
3381 echo "$as_me:3381: found $ac_dir/$ac_word" >&5
3388 if test -n "$AR"; then
3389 echo "$as_me:3389: result: $AR" >&5
3390 echo "${ECHO_T}$AR" >&6
3392 echo "$as_me:3392: result: no" >&5
3393 echo "${ECHO_T}no" >&6
3397 if test -z "$ac_cv_prog_AR"; then
3399 # Extract the first word of "ar", so it can be a program name with args.
3400 set dummy ar; ac_word=$2
3401 echo "$as_me:3401: checking for $ac_word" >&5
3402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3403 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 if test -n "$ac_ct_AR"; then
3407 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3409 ac_save_IFS=$IFS; IFS=$ac_path_separator
3411 for ac_dir in $ac_dummy; do
3413 test -z "$ac_dir" && ac_dir=.
3414 $as_executable_p "$ac_dir/$ac_word" || continue
3415 ac_cv_prog_ac_ct_AR="ar"
3416 echo "$as_me:3416: found $ac_dir/$ac_word" >&5
3420 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3424 if test -n "$ac_ct_AR"; then
3425 echo "$as_me:3425: result: $ac_ct_AR" >&5
3426 echo "${ECHO_T}$ac_ct_AR" >&6
3428 echo "$as_me:3428: result: no" >&5
3429 echo "${ECHO_T}no" >&6
3437 echo "$as_me:3437: checking for options to update archives" >&5
3438 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3439 if test "${cf_cv_ar_flags+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 cf_cv_ar_flags=unknown
3444 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
3447 # check if $ARFLAGS already contains this choice
3448 if test "x$ARFLAGS" != "x" ; then
3449 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3450 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3456 rm -f conftest.$ac_cv_objext
3459 cat >conftest.$ac_ext <<EOF
3460 #line 3460 "configure"
3461 int testdata[3] = { 123, 456, 789 };
3463 if { (eval echo "$as_me:3463: \"$ac_compile\"") >&5
3464 (eval $ac_compile) 2>&5
3466 echo "$as_me:3466: \$? = $ac_status" >&5
3467 (exit $ac_status); } ; then
3468 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3469 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3470 if test -f conftest.a ; then
3471 cf_cv_ar_flags=$cf_ar_flags
3475 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3477 echo "${as_me:-configure}:3477: testing cannot compile test-program ..." 1>&5
3482 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3485 echo "$as_me:3485: result: $cf_cv_ar_flags" >&5
3486 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3488 if test -n "$ARFLAGS" ; then
3489 if test -n "$cf_cv_ar_flags" ; then
3490 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3493 ARFLAGS=$cf_cv_ar_flags
3496 echo "$as_me:3496: checking for PATH separator" >&5
3497 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3498 case $cf_cv_system_name in
3499 (os2*) PATH_SEPARATOR=';' ;;
3500 (*) ${PATH_SEPARATOR:=':'} ;;
3503 echo "$as_me:3503: result: $PATH_SEPARATOR" >&5
3504 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3506 echo "$as_me:3506: checking if you have specified an install-prefix" >&5
3507 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3509 # Check whether --with-install-prefix or --without-install-prefix was given.
3510 if test "${with_install_prefix+set}" = set; then
3511 withval="$with_install_prefix"
3515 (*) DESTDIR="$withval"
3519 echo "$as_me:3519: result: $DESTDIR" >&5
3520 echo "${ECHO_T}$DESTDIR" >&6
3522 ###############################################################################
3524 # If we're cross-compiling, allow the user to override the tools and their
3525 # options. The configure script is oriented toward identifying the host
3526 # compiler, etc., but we need a build compiler to generate parts of the source.
3528 if test "$cross_compiling" = yes ; then
3530 # defaults that we might want to override
3531 : ${BUILD_CFLAGS:=''}
3532 : ${BUILD_CPPFLAGS:=''}
3533 : ${BUILD_LDFLAGS:=''}
3535 : ${BUILD_EXEEXT:='$x'}
3536 : ${BUILD_OBJEXT:='o'}
3538 # Check whether --with-build-cc or --without-build-cc was given.
3539 if test "${with_build_cc+set}" = set; then
3540 withval="$with_build_cc"
3543 for ac_prog in gcc clang c99 c89 cc cl
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2
3547 echo "$as_me:3547: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 if test -n "$BUILD_CC"; then
3553 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3555 ac_save_IFS=$IFS; IFS=$ac_path_separator
3557 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 $as_executable_p "$ac_dir/$ac_word" || continue
3561 ac_cv_prog_BUILD_CC="$ac_prog"
3562 echo "$as_me:3562: found $ac_dir/$ac_word" >&5
3568 BUILD_CC=$ac_cv_prog_BUILD_CC
3569 if test -n "$BUILD_CC"; then
3570 echo "$as_me:3570: result: $BUILD_CC" >&5
3571 echo "${ECHO_T}$BUILD_CC" >&6
3573 echo "$as_me:3573: result: no" >&5
3574 echo "${ECHO_T}no" >&6
3577 test -n "$BUILD_CC" && break
3579 test -n "$BUILD_CC" || BUILD_CC="none"
3582 echo "$as_me:3582: checking for native build C compiler" >&5
3583 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3584 echo "$as_me:3584: result: $BUILD_CC" >&5
3585 echo "${ECHO_T}$BUILD_CC" >&6
3587 echo "$as_me:3587: checking for native build C preprocessor" >&5
3588 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3590 # Check whether --with-build-cpp or --without-build-cpp was given.
3591 if test "${with_build_cpp+set}" = set; then
3592 withval="$with_build_cpp"
3593 BUILD_CPP="$withval"
3595 BUILD_CPP='${BUILD_CC} -E'
3597 echo "$as_me:3597: result: $BUILD_CPP" >&5
3598 echo "${ECHO_T}$BUILD_CPP" >&6
3600 echo "$as_me:3600: checking for native build C flags" >&5
3601 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3603 # Check whether --with-build-cflags or --without-build-cflags was given.
3604 if test "${with_build_cflags+set}" = set; then
3605 withval="$with_build_cflags"
3606 BUILD_CFLAGS="$withval"
3608 echo "$as_me:3608: result: $BUILD_CFLAGS" >&5
3609 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3611 echo "$as_me:3611: checking for native build C preprocessor-flags" >&5
3612 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3614 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3615 if test "${with_build_cppflags+set}" = set; then
3616 withval="$with_build_cppflags"
3617 BUILD_CPPFLAGS="$withval"
3619 echo "$as_me:3619: result: $BUILD_CPPFLAGS" >&5
3620 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3622 echo "$as_me:3622: checking for native build linker-flags" >&5
3623 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3625 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3626 if test "${with_build_ldflags+set}" = set; then
3627 withval="$with_build_ldflags"
3628 BUILD_LDFLAGS="$withval"
3630 echo "$as_me:3630: result: $BUILD_LDFLAGS" >&5
3631 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3633 echo "$as_me:3633: checking for native build linker-libraries" >&5
3634 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3636 # Check whether --with-build-libs or --without-build-libs was given.
3637 if test "${with_build_libs+set}" = set; then
3638 withval="$with_build_libs"
3639 BUILD_LIBS="$withval"
3641 echo "$as_me:3641: result: $BUILD_LIBS" >&5
3642 echo "${ECHO_T}$BUILD_LIBS" >&6
3644 # this assumes we're on Unix.
3648 : ${BUILD_CC:='${CC}'}
3650 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3651 { { echo "$as_me:3651: error: Cross-build requires two compilers.
3652 Use --with-build-cc to specify the native compiler." >&5
3653 echo "$as_me: error: Cross-build requires two compilers.
3654 Use --with-build-cc to specify the native compiler." >&2;}
3655 { (exit 1); exit 1; }; }
3659 : ${BUILD_CC:='${CC}'}
3660 : ${BUILD_CPP:='${CPP}'}
3661 : ${BUILD_CFLAGS:='${CFLAGS}'}
3662 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3663 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3664 : ${BUILD_LIBS:='${LIBS}'}
3665 : ${BUILD_EXEEXT:='$x'}
3666 : ${BUILD_OBJEXT:='o'}
3669 ###############################################################################
3671 ### Options to allow the user to specify the set of libraries which are used.
3672 ### Use "--without-normal --with-shared" to allow the default model to be
3673 ### shared, for example.
3676 echo "$as_me:3676: checking if you want to build shared C-objects" >&5
3677 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3679 # Check whether --with-shared or --without-shared was given.
3680 if test "${with_shared+set}" = set; then
3681 withval="$with_shared"
3682 with_shared=$withval
3686 echo "$as_me:3686: result: $with_shared" >&5
3687 echo "${ECHO_T}$with_shared" >&6
3688 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3690 echo "$as_me:3690: checking for specified models" >&5
3691 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3692 test -z "$cf_list_models" && cf_list_models=normal
3693 echo "$as_me:3693: result: $cf_list_models" >&5
3694 echo "${ECHO_T}$cf_list_models" >&6
3696 ### Use the first model as the default, and save its suffix for use in building
3697 ### up test-applications.
3698 echo "$as_me:3698: checking for default model" >&5
3699 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3700 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3701 echo "$as_me:3701: result: $DFT_LWR_MODEL" >&5
3702 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3704 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3706 echo "$as_me:3706: checking for specific curses-directory" >&5
3707 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3709 # Check whether --with-curses-dir or --without-curses-dir was given.
3710 if test "${with_curses_dir+set}" = set; then
3711 withval="$with_curses_dir"
3712 cf_cv_curses_dir=$withval
3716 echo "$as_me:3716: result: $cf_cv_curses_dir" >&5
3717 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3719 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3722 if test "x$prefix" != xNONE; then
3723 cf_path_syntax="$prefix"
3725 cf_path_syntax="$ac_default_prefix"
3733 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3735 (.\${*prefix}*|.\${*dir}*)
3736 eval withval="$withval"
3739 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3744 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3747 { { echo "$as_me:3747: error: expected a pathname, not \"$withval\"" >&5
3748 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3749 { (exit 1); exit 1; }; }
3753 if test -d "$cf_cv_curses_dir"
3756 if test -n "$cf_cv_curses_dir/include" ; then
3757 for cf_add_incdir in $cf_cv_curses_dir/include
3759 while test $cf_add_incdir != /usr/include
3761 if test -d $cf_add_incdir
3764 if test -n "$CFLAGS$CPPFLAGS" ; then
3765 # a loop is needed to ensure we can add subdirs of existing dirs
3766 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3767 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3768 cf_have_incdir=yes; break
3773 if test "$cf_have_incdir" = no ; then
3774 if test "$cf_add_incdir" = /usr/local/include ; then
3775 if test "$GCC" = yes
3777 cf_save_CPPFLAGS=$CPPFLAGS
3778 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3779 cat >conftest.$ac_ext <<_ACEOF
3780 #line 3780 "configure"
3781 #include "confdefs.h"
3791 rm -f conftest.$ac_objext
3792 if { (eval echo "$as_me:3792: \"$ac_compile\"") >&5
3793 (eval $ac_compile) 2>&5
3795 echo "$as_me:3795: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -s conftest.$ac_objext'
3798 { (eval echo "$as_me:3798: \"$ac_try\"") >&5
3801 echo "$as_me:3801: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3805 echo "$as_me: failed program was:" >&5
3806 cat conftest.$ac_ext >&5
3809 rm -f conftest.$ac_objext conftest.$ac_ext
3810 CPPFLAGS=$cf_save_CPPFLAGS
3815 if test "$cf_have_incdir" = no ; then
3816 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3818 echo "${as_me:-configure}:3818: testing adding $cf_add_incdir to include-path ..." 1>&5
3820 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3822 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3823 test "$cf_top_incdir" = "$cf_add_incdir" && break
3824 cf_add_incdir="$cf_top_incdir"
3835 if test -n "$cf_cv_curses_dir/lib" ; then
3836 for cf_add_libdir in $cf_cv_curses_dir/lib
3838 if test $cf_add_libdir = /usr/lib ; then
3840 elif test -d $cf_add_libdir
3843 if test -n "$LDFLAGS$LIBS" ; then
3844 # a loop is needed to ensure we can add subdirs of existing dirs
3845 for cf_test_libdir in $LDFLAGS $LIBS ; do
3846 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3847 cf_have_libdir=yes; break
3851 if test "$cf_have_libdir" = no ; then
3852 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
3854 echo "${as_me:-configure}:3854: testing adding $cf_add_libdir to library-path ..." 1>&5
3856 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3865 cf_ncuconfig_root=ncurses
3866 cf_have_ncuconfig=no
3868 if test "x${PKG_CONFIG:=none}" != xnone; then
3869 echo "$as_me:3869: checking pkg-config for $cf_ncuconfig_root" >&5
3870 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
3871 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
3872 echo "$as_me:3872: result: yes" >&5
3873 echo "${ECHO_T}yes" >&6
3875 echo "$as_me:3875: checking if the $cf_ncuconfig_root package files work" >&5
3876 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
3877 cf_have_ncuconfig=unknown
3879 cf_save_CPPFLAGS="$CPPFLAGS"
3880 cf_save_LIBS="$LIBS"
3882 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
3884 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
3885 # Filter out duplicates - this happens with badly-designed ".pc" files...
3886 for cf_add_1lib in $LIBS
3888 for cf_add_2lib in $cf_add_libs
3890 if test "x$cf_add_1lib" = "x$cf_add_2lib"
3896 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
3900 cat >conftest.$ac_ext <<_ACEOF
3901 #line 3901 "configure"
3902 #include "confdefs.h"
3903 #include <${cf_cv_ncurses_header:-curses.h}>
3907 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
3912 rm -f conftest.$ac_objext conftest$ac_exeext
3913 if { (eval echo "$as_me:3913: \"$ac_link\"") >&5
3914 (eval $ac_link) 2>&5
3916 echo "$as_me:3916: \$? = $ac_status" >&5
3917 (exit $ac_status); } &&
3918 { ac_try='test -s conftest$ac_exeext'
3919 { (eval echo "$as_me:3919: \"$ac_try\"") >&5
3922 echo "$as_me:3922: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 if test "$cross_compiling" = yes; then
3925 cf_have_ncuconfig=maybe
3927 cat >conftest.$ac_ext <<_ACEOF
3928 #line 3928 "configure"