3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-multilib build many library versions (default)"
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
22 --enable-static[=PKGS] build static libraries [default=yes]"
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
28 --disable-libtool-lock avoid locking (might break parallel builds)"
30 --with-pic try to use only PIC/non-PIC objects [default=use both]"
32 --with-target-subdir=SUBDIR
33 configuring with a cross compiler"
35 --with-cross-host=HOST configuring with a cross compiler"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --enable-parallel-mark parallelize marking and free list construction"
42 --with-ecos enable runtime eCos target support"
44 --enable-shared[=PKGS] build shared libraries [default=yes]"
46 --with-target-subdir=SUBDIR
47 configuring with a cross compiler"
49 --with-cross-host=HOST configuring with a cross compiler"
51 --enable-full-debug include full support for pointer backtracing etc."
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file=./config.cache
66 program_transform_name=s,x,x,
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
87 # Initialize some other variables.
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 # Accept the important Cygnus configure options, so we can diagnose typos.
114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
119 -build | --build | --buil | --bui | --bu)
121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122 build="$ac_optarg" ;;
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135 datadir="$ac_optarg" ;;
137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
227 -host | --host | --hos | --ho)
229 -host=* | --host=* | --hos=* | --ho=*)
232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
244 -libdir | --libdir | --libdi | --libd)
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
271 # Obsolete; use --without-fp.
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335 sbindir="$ac_optarg" ;;
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346 sharedstatedir="$ac_optarg" ;;
348 -site | --site | --sit)
350 -site=* | --site=* | --sit=*)
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
365 -target | --target | --targe | --targ | --tar | --ta | --t)
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 -version | --version | --versio | --versi | --vers)
374 echo "configure generated by autoconf version 2.13"
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=gcj_mlc.c
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
563 # This works around the fact that libtool configuration may change LD
564 # for this particular configuration, but some shells, instead of
565 # keeping the changes in LD private, export them just because LD is
567 ORIGINAL_LD_FOR_MULTILIBS=$LD
570 for ac_dir in . $srcdir/.; do
571 if test -f $ac_dir/install-sh; then
573 ac_install_sh="$ac_aux_dir/install-sh -c"
575 elif test -f $ac_dir/install.sh; then
577 ac_install_sh="$ac_aux_dir/install.sh -c"
581 if test -z "$ac_aux_dir"; then
582 { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; }
584 ac_config_guess=$ac_aux_dir/config.guess
585 ac_config_sub=$ac_aux_dir/config.sub
586 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
589 # Check whether --enable-multilib or --disable-multilib was given.
590 if test "${enable_multilib+set}" = set; then
591 enableval="$enable_multilib"
592 case "${enableval}" in
595 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
602 if test "${srcdir}" = "."; then
603 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
604 gc_basedir="${srcdir}/${with_multisrctop}../."
606 gc_basedir="${srcdir}/${with_multisrctop}."
609 gc_basedir="${srcdir}/."
613 for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do
614 if test -f $ac_dir/install-sh; then
616 ac_install_sh="$ac_aux_dir/install-sh -c"
618 elif test -f $ac_dir/install.sh; then
620 ac_install_sh="$ac_aux_dir/install.sh -c"
624 if test -z "$ac_aux_dir"; then
625 { echo "configure: error: can not find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." 1>&2; exit 1; }
627 ac_config_guess=$ac_aux_dir/config.guess
628 ac_config_sub=$ac_aux_dir/config.sub
629 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
632 # This overrides the previous occurrence for automake, but not for
633 # autoconf, which is exactly what we want.
635 for ac_dir in .. $srcdir/..; do
636 if test -f $ac_dir/install-sh; then
638 ac_install_sh="$ac_aux_dir/install-sh -c"
640 elif test -f $ac_dir/install.sh; then
642 ac_install_sh="$ac_aux_dir/install.sh -c"
646 if test -z "$ac_aux_dir"; then
647 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
649 ac_config_guess=$ac_aux_dir/config.guess
650 ac_config_sub=$ac_aux_dir/config.sub
651 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
656 # Do some error checking and defaulting for the host and target type.
658 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
661 # 1. You are not allowed to specify --host, --target, and nonopt at the
663 # 2. Host defaults to nonopt.
664 # 3. If nonopt is not specified, then host defaults to the current host,
665 # as determined by config.guess.
666 # 4. Target and build default to nonopt.
667 # 5. If nonopt is not specified, then target and build default to host.
669 # The aliases save the names the user supplied, while $host etc.
670 # will get canonicalized.
671 case $host---$target---$nonopt in
672 NONE---*---* | *---NONE---* | *---*---NONE) ;;
673 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
677 # Make sure we can run config.sub.
678 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
679 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
682 echo $ac_n "checking host system type""... $ac_c" 1>&6
683 echo "configure:684: checking host system type" >&5
686 case "$host_alias" in
690 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
691 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
693 *) host_alias=$nonopt ;;
697 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
698 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$host" 1>&6
703 echo $ac_n "checking target system type""... $ac_c" 1>&6
704 echo "configure:705: checking target system type" >&5
707 case "$target_alias" in
710 NONE) target_alias=$host_alias ;;
711 *) target_alias=$nonopt ;;
715 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
716 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo "$ac_t""$target" 1>&6
721 echo $ac_n "checking build system type""... $ac_c" 1>&6
722 echo "configure:723: checking build system type" >&5
725 case "$build_alias" in
728 NONE) build_alias=$host_alias ;;
729 *) build_alias=$nonopt ;;
733 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
734 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
735 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
736 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
737 echo "$ac_t""$build" 1>&6
739 test "$host_alias" != "$target_alias" &&
740 test "$program_prefix$program_suffix$program_transform_name" = \
742 program_prefix=${target_alias}-
745 # Get the 'noncanonical' system names.
746 # Autoconf M4 include file defining utility macros for complex Canadian
755 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
757 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
760 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
761 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
762 # Code is pretty much lifted from autoconf2.53.
767 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
768 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
773 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
774 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
779 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
780 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
781 # For now, using this also overrides header checks to use only the
782 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
783 # bit harder from here).
784 # Eventually autoconf will default to checking headers with the compiler
785 # instead, and we'll have to do this differently.
789 case ${build_alias} in
790 "") build_noncanonical=${build} ;;
791 *) build_noncanonical=${build_alias} ;;
794 case ${host_alias} in
795 "") host_noncanonical=${build_noncanonical} ;;
796 *) host_noncanonical=${host_alias} ;;
799 case ${target_alias} in
800 "") target_noncanonical=${host_noncanonical} ;;
801 *) target_noncanonical=${target_alias} ;;
805 # This works around an automake problem.
806 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
809 # Find a good install program. We prefer a C program (faster),
810 # so one script is as good as another. But avoid the broken or
811 # incompatible versions:
812 # SysV /etc/install, /usr/sbin/install
813 # SunOS /usr/etc/install
816 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
817 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
818 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
819 # ./install, which can be erroneously created by make from ./install.sh.
820 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
821 echo "configure:822: checking for a BSD compatible install" >&5
822 if test -z "$INSTALL"; then
823 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
827 for ac_dir in $PATH; do
828 # Account for people who put trailing slashes in PATH elements.
830 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
832 # OSF1 and SCO ODT 3.0 have their own names for install.
833 # Don't use installbsd from OSF since it installs stuff as root
835 for ac_prog in ginstall scoinst install; do
836 if test -f $ac_dir/$ac_prog; then
837 if test $ac_prog = install &&
838 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
839 # AIX install. It has an incompatible calling convention.
842 ac_cv_path_install="$ac_dir/$ac_prog -c"
853 if test "${ac_cv_path_install+set}" = set; then
854 INSTALL="$ac_cv_path_install"
856 # As a last resort, use the slow shell script. We don't cache a
857 # path for INSTALL within a source directory, because that will
858 # break other packages using the cache if that directory is
859 # removed, or if the path is relative.
860 INSTALL="$ac_install_sh"
863 echo "$ac_t""$INSTALL" 1>&6
865 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
866 # It thinks the first close brace ends the variable substitution.
867 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
869 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
871 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
873 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
874 echo "configure:875: checking whether build environment is sane" >&5
877 echo timestamp > conftestfile
878 # Do `set' in a subshell so we don't clobber the current shell's
879 # arguments. Must try -L first in case configure is actually a
880 # symlink; some systems play weird games with the mod time of symlinks
881 # (eg FreeBSD returns the mod time of the symlink's containing
884 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
885 if test "$*" = "X"; then
887 set X `ls -t $srcdir/configure conftestfile`
889 if test "$*" != "X $srcdir/configure conftestfile" \
890 && test "$*" != "X conftestfile $srcdir/configure"; then
892 # If neither matched, then we have a broken ls. This can happen
893 # if, for instance, CONFIG_SHELL is bash and it inherits a
894 # broken ls alias from the environment. This has actually
895 # happened. Such a system could not be considered "sane".
896 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
897 alias in your environment" 1>&2; exit 1; }
900 test "$2" = conftestfile
906 { echo "configure: error: newly created file is older than distributed files!
907 Check your system clock" 1>&2; exit 1; }
910 echo "$ac_t""yes" 1>&6
911 if test "$program_transform_name" = s,x,x,; then
912 program_transform_name=
914 # Double any \ or $. echo might interpret backslashes.
915 cat <<\EOF_SED > conftestsed
916 s,\\,\\\\,g; s,\$,$$,g
918 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
921 test "$program_prefix" != NONE &&
922 program_transform_name="s,^,${program_prefix},; $program_transform_name"
923 # Use a double $ so make ignores it.
924 test "$program_suffix" != NONE &&
925 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
927 # sed with no file args requires a program.
928 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
930 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
931 echo "configure:932: checking whether ${MAKE-make} sets \${MAKE}" >&5
932 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
933 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 cat > conftestmake <<\EOF
938 @echo 'ac_maketemp="${MAKE}"'
940 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
941 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
942 if test -n "$ac_maketemp"; then
943 eval ac_cv_prog_make_${ac_make}_set=yes
945 eval ac_cv_prog_make_${ac_make}_set=no
949 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
950 echo "$ac_t""yes" 1>&6
953 echo "$ac_t""no" 1>&6
954 SET_MAKE="MAKE=${MAKE-make}"
957 if test $host != $build; then
958 ac_tool_prefix=${host_alias}-
963 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
964 echo "configure:965: checking for Cygwin environment" >&5
965 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 cat > conftest.$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
975 #define __CYGWIN__ __CYGWIN32__
980 if { (eval echo configure:981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
984 echo "configure: failed program was:" >&5
985 cat conftest.$ac_ext >&5
993 echo "$ac_t""$ac_cv_cygwin" 1>&6
995 test "$ac_cv_cygwin" = yes && CYGWIN=yes
996 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
997 echo "configure:998: checking for mingw32 environment" >&5
998 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 cat > conftest.$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1009 if { (eval echo configure:1010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1013 echo "configure: failed program was:" >&5
1014 cat conftest.$ac_ext >&5
1022 echo "$ac_t""$ac_cv_mingw32" 1>&6
1024 test "$ac_cv_mingw32" = yes && MINGW32=yes
1032 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1033 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1038 missing_dir=`cd $ac_aux_dir && pwd`
1039 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1040 echo "configure:1041: checking for working aclocal" >&5
1041 # Run test in a subshell; some versions of sh will print an error if
1042 # an executable is not found, even if stderr is redirected.
1043 # Redirect stdin to placate older versions of autoconf. Sigh.
1044 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1046 echo "$ac_t""found" 1>&6
1048 ACLOCAL="$missing_dir/missing aclocal"
1049 echo "$ac_t""missing" 1>&6
1052 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1053 echo "configure:1054: checking for working autoconf" >&5
1054 # Run test in a subshell; some versions of sh will print an error if
1055 # an executable is not found, even if stderr is redirected.
1056 # Redirect stdin to placate older versions of autoconf. Sigh.
1057 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1059 echo "$ac_t""found" 1>&6
1061 AUTOCONF="$missing_dir/missing autoconf"
1062 echo "$ac_t""missing" 1>&6
1065 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1066 echo "configure:1067: checking for working automake" >&5
1067 # Run test in a subshell; some versions of sh will print an error if
1068 # an executable is not found, even if stderr is redirected.
1069 # Redirect stdin to placate older versions of autoconf. Sigh.
1070 if (automake --version) < /dev/null > /dev/null 2>&1; then
1072 echo "$ac_t""found" 1>&6
1074 AUTOMAKE="$missing_dir/missing automake"
1075 echo "$ac_t""missing" 1>&6
1078 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1079 echo "configure:1080: checking for working autoheader" >&5
1080 # Run test in a subshell; some versions of sh will print an error if
1081 # an executable is not found, even if stderr is redirected.
1082 # Redirect stdin to placate older versions of autoconf. Sigh.
1083 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1084 AUTOHEADER=autoheader
1085 echo "$ac_t""found" 1>&6
1087 AUTOHEADER="$missing_dir/missing autoheader"
1088 echo "$ac_t""missing" 1>&6
1091 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1092 echo "configure:1093: checking for working makeinfo" >&5
1093 # Run test in a subshell; some versions of sh will print an error if
1094 # an executable is not found, even if stderr is redirected.
1095 # Redirect stdin to placate older versions of autoconf. Sigh.
1096 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1098 echo "$ac_t""found" 1>&6
1100 MAKEINFO="$missing_dir/missing makeinfo"
1101 echo "$ac_t""missing" 1>&6
1106 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1107 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1108 # are probably using a cross compiler, which will not be able to fully
1109 # link an executable. This should really be fixed in autoconf
1115 # Extract the first word of "gcc", so it can be a program name with args.
1116 set dummy gcc; ac_word=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$CC"; then
1123 ac_cv_prog_CC="$CC" # Let the user override the test.
1125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 if test -f $ac_dir/$ac_word; then
1138 if test -n "$CC"; then
1139 echo "$ac_t""$CC" 1>&6
1141 echo "$ac_t""no" 1>&6
1144 if test -z "$CC"; then
1145 # Extract the first word of "cc", so it can be a program name with args.
1146 set dummy cc; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$CC"; then
1153 ac_cv_prog_CC="$CC" # Let the user override the test.
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1158 for ac_dir in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir=.
1160 if test -f $ac_dir/$ac_word; then
1161 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1162 ac_prog_rejected=yes
1170 if test $ac_prog_rejected = yes; then
1171 # We found a bogon in the path, so make sure we never use it.
1172 set dummy $ac_cv_prog_CC
1174 if test $# -gt 0; then
1175 # We chose a different compiler from the bogus one.
1176 # However, it has the same basename, so the bogon will be chosen
1177 # first if we set CC to just the basename; use the full file name.
1179 set dummy "$ac_dir/$ac_word" "$@"
1187 if test -n "$CC"; then
1188 echo "$ac_t""$CC" 1>&6
1190 echo "$ac_t""no" 1>&6
1193 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1196 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether we are using GNU C" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 cat > conftest.c <<EOF
1206 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1213 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1215 if test $ac_cv_prog_gcc = yes; then
1217 ac_test_CFLAGS="${CFLAGS+set}"
1218 ac_save_CFLAGS="$CFLAGS"
1220 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether ${CC-cc} accepts -g" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 echo 'void f(){}' > conftest.c
1226 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1235 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1236 if test "$ac_test_CFLAGS" = set; then
1237 CFLAGS="$ac_save_CFLAGS"
1238 elif test $ac_cv_prog_cc_g = yes; then
1245 test "${CFLAGS+set}" = set || CFLAGS="-g"
1249 # Likewise for AC_PROG_CXX.
1253 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1255 # Extract the first word of "$ac_prog", so it can be a program name with args.
1256 set dummy $ac_prog; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 if test -n "$CXX"; then
1263 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1267 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_CXX="$ac_prog"
1277 CXX="$ac_cv_prog_CXX"
1278 if test -n "$CXX"; then
1279 echo "$ac_t""$CXX" 1>&6
1281 echo "$ac_t""no" 1>&6
1284 test -n "$CXX" && break
1286 test -n "$CXX" || CXX="gcc"
1288 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1290 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1291 echo "configure:1292: checking whether we are using GNU C++" >&5
1292 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 cat > conftest.C <<EOF
1300 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1307 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1309 if test $ac_cv_prog_gxx = yes; then
1311 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1312 ac_save_CXXFLAGS="$CXXFLAGS"
1314 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1315 echo "configure:1316: checking whether ${CXX-g++} accepts -g" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 echo 'void f(){}' > conftest.cc
1320 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1321 ac_cv_prog_cxx_g=yes
1329 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1330 if test "$ac_test_CXXFLAGS" = set; then
1331 CXXFLAGS="$ac_save_CXXFLAGS"
1332 elif test $ac_cv_prog_cxx_g = yes; then
1339 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1343 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1344 set dummy ${ac_tool_prefix}as; ac_word=$2
1345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1346 echo "configure:1347: checking for $ac_word" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 if test -n "$AS"; then
1351 ac_cv_prog_AS="$AS" # Let the user override the test.
1353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1355 for ac_dir in $ac_dummy; do
1356 test -z "$ac_dir" && ac_dir=.
1357 if test -f $ac_dir/$ac_word; then
1358 ac_cv_prog_AS="${ac_tool_prefix}as"
1363 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1367 if test -n "$AS"; then
1368 echo "$ac_t""$AS" 1>&6
1370 echo "$ac_t""no" 1>&6
1375 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1376 set dummy ${ac_tool_prefix}ar; ac_word=$2
1377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1378 echo "configure:1379: checking for $ac_word" >&5
1379 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1382 if test -n "$AR"; then
1383 ac_cv_prog_AR="$AR" # Let the user override the test.
1385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1387 for ac_dir in $ac_dummy; do
1388 test -z "$ac_dir" && ac_dir=.
1389 if test -f $ac_dir/$ac_word; then
1390 ac_cv_prog_AR="${ac_tool_prefix}ar"
1395 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1399 if test -n "$AR"; then
1400 echo "$ac_t""$AR" 1>&6
1402 echo "$ac_t""no" 1>&6
1407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 if test -n "$RANLIB"; then
1415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1419 for ac_dir in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir=.
1421 if test -f $ac_dir/$ac_word; then
1422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1429 RANLIB="$ac_cv_prog_RANLIB"
1430 if test -n "$RANLIB"; then
1431 echo "$ac_t""$RANLIB" 1>&6
1433 echo "$ac_t""no" 1>&6
1437 if test -z "$ac_cv_prog_RANLIB"; then
1438 if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "ranlib", so it can be a program name with args.
1440 set dummy ranlib; ac_word=$2
1441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1442 echo "configure:1443: checking for $ac_word" >&5
1443 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 if test -n "$RANLIB"; then
1447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1451 for ac_dir in $ac_dummy; do
1452 test -z "$ac_dir" && ac_dir=.
1453 if test -f $ac_dir/$ac_word; then
1454 ac_cv_prog_RANLIB="ranlib"
1459 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1462 RANLIB="$ac_cv_prog_RANLIB"
1463 if test -n "$RANLIB"; then
1464 echo "$ac_t""$RANLIB" 1>&6
1466 echo "$ac_t""no" 1>&6
1475 # Find a good install program. We prefer a C program (faster),
1476 # so one script is as good as another. But avoid the broken or
1477 # incompatible versions:
1478 # SysV /etc/install, /usr/sbin/install
1479 # SunOS /usr/etc/install
1480 # IRIX /sbin/install
1482 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1483 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1484 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1485 # ./install, which can be erroneously created by make from ./install.sh.
1486 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1487 echo "configure:1488: checking for a BSD compatible install" >&5
1488 if test -z "$INSTALL"; then
1489 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1492 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1493 for ac_dir in $PATH; do
1494 # Account for people who put trailing slashes in PATH elements.
1496 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1498 # OSF1 and SCO ODT 3.0 have their own names for install.
1499 # Don't use installbsd from OSF since it installs stuff as root
1501 for ac_prog in ginstall scoinst install; do
1502 if test -f $ac_dir/$ac_prog; then
1503 if test $ac_prog = install &&
1504 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1505 # AIX install. It has an incompatible calling convention.
1508 ac_cv_path_install="$ac_dir/$ac_prog -c"
1519 if test "${ac_cv_path_install+set}" = set; then
1520 INSTALL="$ac_cv_path_install"
1522 # As a last resort, use the slow shell script. We don't cache a
1523 # path for INSTALL within a source directory, because that will
1524 # break other packages using the cache if that directory is
1525 # removed, or if the path is relative.
1526 INSTALL="$ac_install_sh"
1529 echo "$ac_t""$INSTALL" 1>&6
1531 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1532 # It thinks the first close brace ends the variable substitution.
1533 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1535 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1537 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1540 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1541 echo "configure:1542: checking whether to enable maintainer-specific portions of Makefiles" >&5
1542 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1543 if test "${enable_maintainer_mode+set}" = set; then
1544 enableval="$enable_maintainer_mode"
1545 USE_MAINTAINER_MODE=$enableval
1547 USE_MAINTAINER_MODE=no
1550 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1553 if test $USE_MAINTAINER_MODE = yes; then
1554 MAINTAINER_MODE_TRUE=
1555 MAINTAINER_MODE_FALSE='#'
1557 MAINTAINER_MODE_TRUE='#'
1558 MAINTAINER_MODE_FALSE=
1560 MAINT=$MAINTAINER_MODE_TRUE
1564 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1565 # at least currently, we never actually build a program, so we never
1566 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1567 # fails, because we are probably configuring with a cross compiler
1568 # which can't create executables. So we include AC_EXEEXT to keep
1569 # automake happy, but we don't execute it, since we don't care about
1572 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1573 # to nothing, so nothing would remain between `then' and `fi' if it
1574 # were not for the `:' below.
1578 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1579 echo "configure:1580: checking for executable suffix" >&5
1580 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1583 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1587 echo 'int main () { return 0; }' > conftest.$ac_ext
1589 if { (eval echo configure:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1590 for file in conftest.*; do
1592 *.$ac_ext | *.c | *.o | *.obj) ;;
1593 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1597 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1600 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1605 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1606 echo "$ac_t""${ac_cv_exeext}" 1>&6
1611 . ${srcdir}/configure.host
1613 case ${gc_basedir} in
1614 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
1615 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1618 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1621 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1626 GC_CFLAGS=${gc_cflags}
1630 # Check whether --enable-shared or --disable-shared was given.
1631 if test "${enable_shared+set}" = set; then
1632 enableval="$enable_shared"
1633 p=${PACKAGE-default}
1635 yes) enable_shared=yes ;;
1636 no) enable_shared=no ;;
1639 # Look at the argument we got. We use all the common list separators.
1640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1641 for pkg in $enableval; do
1642 if test "X$pkg" = "X$p"; then
1653 # Check whether --enable-static or --disable-static was given.
1654 if test "${enable_static+set}" = set; then
1655 enableval="$enable_static"
1656 p=${PACKAGE-default}
1658 yes) enable_static=yes ;;
1659 no) enable_static=no ;;
1662 # Look at the argument we got. We use all the common list separators.
1663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1664 for pkg in $enableval; do
1665 if test "X$pkg" = "X$p"; then
1676 # Check whether --enable-fast-install or --disable-fast-install was given.
1677 if test "${enable_fast_install+set}" = set; then
1678 enableval="$enable_fast_install"
1679 p=${PACKAGE-default}
1681 yes) enable_fast_install=yes ;;
1682 no) enable_fast_install=no ;;
1684 enable_fast_install=no
1685 # Look at the argument we got. We use all the common list separators.
1686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1687 for pkg in $enableval; do
1688 if test "X$pkg" = "X$p"; then
1689 enable_fast_install=yes
1696 enable_fast_install=yes
1699 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1700 if test "${with_gnu_ld+set}" = set; then
1701 withval="$with_gnu_ld"
1702 test "$withval" = no || with_gnu_ld=yes
1708 if test "$GCC" = yes; then
1709 # Check if gcc -print-prog-name=ld gives a path.
1710 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1711 echo "configure:1712: checking for ld used by GCC" >&5
1714 # gcc leaves a trailing carriage return which upsets mingw
1715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1720 # Accept absolute paths.
1721 [\\/]* | [A-Za-z]:[\\/]*)
1722 re_direlt='/[^/][^/]*/\.\./'
1723 # Canonicalize the path of ld
1724 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1725 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1726 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1728 test -z "$LD" && LD="$ac_prog"
1731 # If it fails, then pretend we aren't using GCC.
1735 # If it is relative, then search for the first ld in PATH.
1739 elif test "$with_gnu_ld" = yes; then
1740 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1741 echo "configure:1742: checking for GNU ld" >&5
1743 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1744 echo "configure:1745: checking for non-GNU ld" >&5
1746 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 if test -z "$LD"; then
1750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1751 for ac_dir in $PATH; do
1752 test -z "$ac_dir" && ac_dir=.
1753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1754 lt_cv_path_LD="$ac_dir/$ac_prog"
1755 # Check to see if the program is GNU ld. I'd rather use --version,
1756 # but apparently some GNU ld's only accept -v.
1757 # Break only if it was the GNU/non-GNU ld that we prefer.
1758 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1759 test "$with_gnu_ld" != no && break
1761 test "$with_gnu_ld" != yes && break
1767 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1772 if test -n "$LD"; then
1773 echo "$ac_t""$LD" 1>&6
1775 echo "$ac_t""no" 1>&6
1777 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1778 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1779 echo "configure:1780: checking if the linker ($LD) is GNU ld" >&5
1780 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1784 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1785 lt_cv_prog_gnu_ld=yes
1787 lt_cv_prog_gnu_ld=no
1791 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1792 with_gnu_ld=$lt_cv_prog_gnu_ld
1795 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $LD option to reload object files" >&5
1797 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 lt_cv_ld_reload_flag='-r'
1803 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1804 reload_flag=$lt_cv_ld_reload_flag
1805 test -n "$reload_flag" && reload_flag=" $reload_flag"
1807 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1808 echo "configure:1809: checking for BSD-compatible nm" >&5
1809 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 if test -n "$NM"; then
1813 # Let the user override the test.
1816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1817 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1818 test -z "$ac_dir" && ac_dir=.
1819 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1820 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1821 # Check to see if the nm accepts a BSD-compat flag.
1822 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1823 # nm: unknown option "B" ignored
1824 # Tru64's nm complains that /dev/null is an invalid object file
1825 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1826 lt_cv_path_NM="$tmp_nm -B"
1828 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1829 lt_cv_path_NM="$tmp_nm -p"
1832 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1833 continue # so that we can try to find one that supports BSD flags
1838 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1843 echo "$ac_t""$NM" 1>&6
1845 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1846 echo "configure:1847: checking whether ln -s works" >&5
1847 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1851 if ln -s X conftestdata 2>/dev/null
1854 ac_cv_prog_LN_S="ln -s"
1859 LN_S="$ac_cv_prog_LN_S"
1860 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1861 echo "$ac_t""yes" 1>&6
1863 echo "$ac_t""no" 1>&6
1866 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1867 echo "configure:1868: checking how to recognise dependant libraries" >&5
1868 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 lt_cv_file_magic_cmd='$MAGIC_CMD'
1872 lt_cv_file_magic_test_file=
1873 lt_cv_deplibs_check_method='unknown'
1874 # Need to set the preceding variable on all platforms that support
1875 # interlibrary dependencies.
1876 # 'none' -- dependencies not supported.
1877 # `unknown' -- same as none, but documents that we really don't know.
1878 # 'pass_all' -- all dependencies passed with no checks.
1879 # 'test_compile' -- check by making test program.
1880 # 'file_magic [regex]' -- check by looking for files in library path
1881 # which responds to the $file_magic_cmd with a given egrep regex.
1882 # If you have `file' or equivalent on your system and you're not sure
1883 # whether `pass_all' will *always* work, you probably want this one.
1887 lt_cv_deplibs_check_method=pass_all
1891 lt_cv_deplibs_check_method=pass_all
1895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1896 lt_cv_file_magic_cmd='/usr/bin/file -L'
1897 lt_cv_file_magic_test_file=/shlib/libc.so
1900 cygwin* | mingw* |pw32*)
1901 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1902 lt_cv_file_magic_cmd='$OBJDUMP -f'
1905 darwin* | rhapsody*)
1906 # this will be overwritten by pass_all, but leave it in just in case
1907 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1908 lt_cv_file_magic_cmd='/usr/bin/file -L'
1910 rhapsody* | darwin1.012)
1911 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1914 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1917 lt_cv_deplibs_check_method=pass_all
1921 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1924 # Not sure whether the presence of OpenBSD here was a mistake.
1925 # Let's accept both of them until this is cleared up.
1926 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1927 lt_cv_file_magic_cmd=/usr/bin/file
1928 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1932 lt_cv_deplibs_check_method=pass_all
1937 lt_cv_deplibs_check_method=pass_all
1943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1944 lt_cv_file_magic_cmd=/usr/bin/file
1945 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1948 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1949 lt_cv_file_magic_cmd=/usr/bin/file
1950 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1958 # this will be overridden with pass_all, but let us keep it just in case
1959 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1963 *-32|*"-32 ") libmagic=32-bit;;
1964 *-n32|*"-n32 ") libmagic=N32;;
1965 *-64|*"-64 ") libmagic=64-bit;;
1966 *) libmagic=never-match;;
1968 # this will be overridden with pass_all, but let us keep it just in case
1969 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1972 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1973 lt_cv_deplibs_check_method=pass_all
1976 # This must be Linux ELF.
1979 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1980 lt_cv_deplibs_check_method=pass_all ;;
1982 # glibc up to 2.1.1 does not perform some relocations on ARM
1983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1985 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1989 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1990 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1992 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1998 lt_cv_file_magic_cmd=/usr/bin/file
1999 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2002 osf3* | osf4* | osf5*)
2003 # this will be overridden with pass_all, but let us keep it just in case
2004 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2005 lt_cv_file_magic_test_file=/shlib/libc.so
2006 lt_cv_deplibs_check_method=pass_all
2010 lt_cv_deplibs_check_method=pass_all
2014 lt_cv_deplibs_check_method=pass_all
2015 lt_cv_file_magic_test_file=/lib/libc.so
2018 sysv5uw[78]* | sysv4*uw2*)
2019 lt_cv_deplibs_check_method=pass_all
2022 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2023 case $host_vendor in
2025 lt_cv_deplibs_check_method=pass_all
2028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2037 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2038 file_magic_cmd=$lt_cv_file_magic_cmd
2039 deplibs_check_method=$lt_cv_deplibs_check_method
2041 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2042 echo "configure:2043: checking for object suffix" >&5
2043 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2047 echo 'int i = 1;' > conftest.$ac_ext
2048 if { (eval echo configure:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049 for ac_file in conftest.*; do
2052 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2056 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2061 echo "$ac_t""$ac_cv_objext" 1>&6
2062 OBJEXT=$ac_cv_objext
2063 ac_objext=$ac_cv_objext
2065 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2067 # Only perform the check for file, if the check method requires it
2068 case $deplibs_check_method in
2070 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2071 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2072 echo "configure:2073: checking for ${ac_tool_prefix}file" >&5
2073 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2084 ac_save_MAGIC_CMD="$MAGIC_CMD"
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2086 ac_dummy="/usr/bin:$PATH"
2087 for ac_dir in $ac_dummy; do
2088 test -z "$ac_dir" && ac_dir=.
2089 if test -f $ac_dir/${ac_tool_prefix}file; then
2090 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2091 if test -n "$file_magic_test_file"; then
2092 case $deplibs_check_method in
2094 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2096 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2097 egrep "$file_magic_regex" > /dev/null; then
2102 *** Warning: the command libtool uses to detect shared libraries,
2103 *** $file_magic_cmd, produces output that libtool cannot recognize.
2104 *** The result is that libtool may fail to recognize shared libraries
2105 *** as such. This will affect the creation of libtool libraries that
2106 *** depend on shared libraries, but programs linked with such libtool
2107 *** libraries will work regardless of this problem. Nevertheless, you
2108 *** may want to report the problem to your system manager and/or to
2109 *** bug-libtool@gnu.org
2119 MAGIC_CMD="$ac_save_MAGIC_CMD"
2124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2125 if test -n "$MAGIC_CMD"; then
2126 echo "$ac_t""$MAGIC_CMD" 1>&6
2128 echo "$ac_t""no" 1>&6
2131 if test -z "$lt_cv_path_MAGIC_CMD"; then
2132 if test -n "$ac_tool_prefix"; then
2133 echo $ac_n "checking for file""... $ac_c" 1>&6
2134 echo "configure:2135: checking for file" >&5
2135 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2140 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2146 ac_save_MAGIC_CMD="$MAGIC_CMD"
2147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2148 ac_dummy="/usr/bin:$PATH"
2149 for ac_dir in $ac_dummy; do
2150 test -z "$ac_dir" && ac_dir=.
2151 if test -f $ac_dir/file; then
2152 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2153 if test -n "$file_magic_test_file"; then
2154 case $deplibs_check_method in
2156 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2159 egrep "$file_magic_regex" > /dev/null; then
2164 *** Warning: the command libtool uses to detect shared libraries,
2165 *** $file_magic_cmd, produces output that libtool cannot recognize.
2166 *** The result is that libtool may fail to recognize shared libraries
2167 *** as such. This will affect the creation of libtool libraries that
2168 *** depend on shared libraries, but programs linked with such libtool
2169 *** libraries will work regardless of this problem. Nevertheless, you
2170 *** may want to report the problem to your system manager and/or to
2171 *** bug-libtool@gnu.org
2181 MAGIC_CMD="$ac_save_MAGIC_CMD"
2186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2187 if test -n "$MAGIC_CMD"; then
2188 echo "$ac_t""$MAGIC_CMD" 1>&6
2190 echo "$ac_t""no" 1>&6
2202 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2203 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2205 echo "configure:2206: checking for $ac_word" >&5
2206 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 if test -n "$RANLIB"; then
2210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2214 for ac_dir in $ac_dummy; do
2215 test -z "$ac_dir" && ac_dir=.
2216 if test -f $ac_dir/$ac_word; then
2217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2224 RANLIB="$ac_cv_prog_RANLIB"
2225 if test -n "$RANLIB"; then
2226 echo "$ac_t""$RANLIB" 1>&6
2228 echo "$ac_t""no" 1>&6
2232 if test -z "$ac_cv_prog_RANLIB"; then
2233 if test -n "$ac_tool_prefix"; then
2234 # Extract the first word of "ranlib", so it can be a program name with args.
2235 set dummy ranlib; ac_word=$2
2236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2237 echo "configure:2238: checking for $ac_word" >&5
2238 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 if test -n "$RANLIB"; then
2242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2246 for ac_dir in $ac_dummy; do
2247 test -z "$ac_dir" && ac_dir=.
2248 if test -f $ac_dir/$ac_word; then
2249 ac_cv_prog_RANLIB="ranlib"
2254 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2257 RANLIB="$ac_cv_prog_RANLIB"
2258 if test -n "$RANLIB"; then
2259 echo "$ac_t""$RANLIB" 1>&6
2261 echo "$ac_t""no" 1>&6
2269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}strip; ac_word=$2
2271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2272 echo "configure:2273: checking for $ac_word" >&5
2273 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 if test -n "$STRIP"; then
2277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2281 for ac_dir in $ac_dummy; do
2282 test -z "$ac_dir" && ac_dir=.
2283 if test -f $ac_dir/$ac_word; then
2284 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2291 STRIP="$ac_cv_prog_STRIP"
2292 if test -n "$STRIP"; then
2293 echo "$ac_t""$STRIP" 1>&6
2295 echo "$ac_t""no" 1>&6
2299 if test -z "$ac_cv_prog_STRIP"; then
2300 if test -n "$ac_tool_prefix"; then
2301 # Extract the first word of "strip", so it can be a program name with args.
2302 set dummy strip; ac_word=$2
2303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_word" >&5
2305 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 if test -n "$STRIP"; then
2309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2313 for ac_dir in $ac_dummy; do
2314 test -z "$ac_dir" && ac_dir=.
2315 if test -f $ac_dir/$ac_word; then
2316 ac_cv_prog_STRIP="strip"
2321 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2324 STRIP="$ac_cv_prog_STRIP"
2325 if test -n "$STRIP"; then
2326 echo "$ac_t""$STRIP" 1>&6
2328 echo "$ac_t""no" 1>&6
2337 # Check for any special flags to pass to ltconfig.
2338 libtool_flags="--cache-file=$cache_file"
2339 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2340 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2341 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2342 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2343 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2346 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2347 if test "${enable_libtool_lock+set}" = set; then
2348 enableval="$enable_libtool_lock"
2352 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2353 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2355 # Check whether --with-pic or --without-pic was given.
2356 if test "${with_pic+set}" = set; then
2363 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2364 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2366 # Some flags need to be propagated to the compiler or linker for good
2370 # Find out which ABI we are using.
2371 echo '#line 2372 "configure"' > conftest.$ac_ext
2372 if { (eval echo configure:2373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2373 if test "$lt_cv_prog_gnu_ld" = yes; then
2374 case `/usr/bin/file conftest.$ac_objext` in
2376 LD="${LD-ld} -melf32bsmip"
2379 LD="${LD-ld} -melf32bmipn32"
2382 LD="${LD-ld} -melf64bmip"
2386 case `/usr/bin/file conftest.$ac_objext` in
2403 # Find out which ABI we are using.
2404 echo 'int i;' > conftest.$ac_ext
2405 if { (eval echo configure:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2406 case "`/usr/bin/file conftest.o`" in
2418 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2419 # Find out which ABI we are using.
2420 echo 'int i;' > conftest.$ac_ext
2421 if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2422 case "`/usr/bin/file conftest.o`" in
2426 LD="${LD-ld} -m elf_i386"
2428 ppc64-*linux*|powerpc64-*linux*)
2429 LD="${LD-ld} -m elf32ppclinux"
2432 LD="${LD-ld} -m elf_s390"
2435 LD="${LD-ld} -m elf32_sparc"
2442 LD="${LD-ld} -m elf_x86_64"
2444 ppc*-*linux*|powerpc*-*linux*)
2445 LD="${LD-ld} -m elf64ppc"
2448 LD="${LD-ld} -m elf64_s390"
2451 LD="${LD-ld} -m elf64_sparc"
2461 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2462 SAVE_CFLAGS="$CFLAGS"
2463 CFLAGS="$CFLAGS -belf"
2464 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2465 echo "configure:2466: checking whether the C compiler needs -belf" >&5
2466 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2475 cross_compiling=$ac_cv_prog_cc_cross
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2485 if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487 lt_cv_cc_needs_belf=yes
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2492 lt_cv_cc_needs_belf=no
2496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2500 cross_compiling=$ac_cv_prog_cc_cross
2504 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2505 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2506 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2507 CFLAGS="$SAVE_CFLAGS"
2514 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2515 echo "configure:2516: checking how to run the C++ preprocessor" >&5
2516 if test -z "$CXXCPP"; then
2517 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2521 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2522 ac_cpp='$CXXCPP $CPPFLAGS'
2523 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2524 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2525 cross_compiling=$ac_cv_prog_cxx_cross
2526 CXXCPP="${CXX-g++} -E"
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2533 { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2535 if test -z "$ac_err"; then
2539 echo "configure: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2545 ac_cv_prog_CXXCPP="$CXXCPP"
2547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2551 cross_compiling=$ac_cv_prog_cc_cross
2554 CXXCPP="$ac_cv_prog_CXXCPP"
2555 echo "$ac_t""$CXXCPP" 1>&6
2558 # Save cache, so that ltconfig can load it
2559 cat > confcache <<\EOF
2560 # This file is a shell script that caches the results of configure
2561 # tests run on this system so they can be shared between configure
2562 # scripts and configure runs. It is not useful on other systems.
2563 # If it contains results you don't want to keep, you may remove or edit it.
2565 # By default, configure uses ./config.cache as the cache file,
2566 # creating it if it does not exist already. You can give configure
2567 # the --cache-file=FILE option to use a different cache file; that is
2568 # what configure does when it calls configure scripts in
2569 # subdirectories, so they share the cache.
2570 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2571 # config.status only pays attention to the cache file if you give it the
2572 # --recheck option to rerun configure.
2575 # The following way of writing the cache mishandles newlines in values,
2576 # but we know of no workaround that is simple, portable, and efficient.
2577 # So, don't put newlines in cache variables' values.
2578 # Ultrix sh set writes to stderr and can't be redirected directly,
2579 # and sets the high bit in the cache file unless we assign to the vars.
2581 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2583 # `set' does not quote correctly, so add quotes (double-quote substitution
2584 # turns \\\\ into \\, and sed turns \\ into \).
2586 -e "s/'/'\\\\''/g" \
2587 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2590 # `set' quotes correctly as required by POSIX, so do not add quotes.
2591 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2594 if cmp -s $cache_file confcache; then
2597 if test -w $cache_file; then
2598 echo "updating cache $cache_file"
2599 cat confcache > $cache_file
2601 echo "not updating unwritable cache $cache_file"
2607 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2608 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2609 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2610 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2611 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2612 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2613 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2614 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2615 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2616 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2618 # Reload cache, that may have been modified by ltconfig
2619 if test -r "$cache_file"; then
2620 echo "loading cache $cache_file"
2623 echo "creating cache $cache_file"
2628 # This can be used to rebuild libtool when needed
2629 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2631 # Always use our own libtool.
2632 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2634 # Redirect the config.log output again, so that the ltconfig log is not
2635 # clobbered by the next message.
2636 exec 5>>./config.log
2640 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2642 lt_save_CFLAGS="$CFLAGS"
2643 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2644 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2645 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2646 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2647 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2648 deplibs_check_method="$deplibs_check_method" \
2649 file_magic_cmd="$file_magic_cmd" \
2650 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2651 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2652 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2654 CFLAGS="$lt_save_CFLAGS"
2656 # Redirect the config.log output again, so that the ltconfig log is not
2657 # clobbered by the next message.
2658 exec 5>>./config.log
2666 # Check whether --with-target-subdir or --without-target-subdir was given.
2667 if test "${with_target_subdir+set}" = set; then
2668 withval="$with_target_subdir"
2672 # Check whether --with-cross-host or --without-cross-host was given.
2673 if test "${with_cross_host+set}" = set; then
2674 withval="$with_cross_host"
2679 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2680 echo "configure:2681: checking whether to enable maintainer-specific portions of Makefiles" >&5
2681 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2682 if test "${enable_maintainer_mode+set}" = set; then
2683 enableval="$enable_maintainer_mode"
2684 USE_MAINTAINER_MODE=$enableval
2686 USE_MAINTAINER_MODE=no
2689 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2692 if test $USE_MAINTAINER_MODE = yes; then
2693 MAINTAINER_MODE_TRUE=
2694 MAINTAINER_MODE_FALSE='#'
2696 MAINTAINER_MODE_TRUE='#'
2697 MAINTAINER_MODE_FALSE=
2699 MAINT=$MAINTAINER_MODE_TRUE
2702 # automake wants to see AC_EXEEXT. But we don't need it. And having
2703 # it is actually a problem, because the compiler we're passed can't
2704 # necessarily do a full link. So we fool automake here.
2706 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2707 # to nothing, so nothing would remain between `then' and `fi' if it
2708 # were not for the `:' below.
2712 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2713 echo "configure:2714: checking for executable suffix" >&5
2714 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2717 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2721 echo 'int main () { return 0; }' > conftest.$ac_ext
2723 if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2724 for file in conftest.*; do
2726 *.$ac_ext | *.c | *.o | *.obj) ;;
2727 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2731 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2734 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2739 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2740 echo "$ac_t""${ac_cv_exeext}" 1>&6
2745 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2746 echo "configure:2747: checking for thread model used by GCC" >&5
2747 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2748 if test -z "$THREADS"; then
2751 echo "$ac_t""$THREADS" 1>&6
2753 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2754 if test "${enable_parallel_mark+set}" = set; then
2755 enableval="$enable_parallel_mark"
2758 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2765 INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
2773 THREADLIBS=-lpthread
2775 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
2776 cat >> confdefs.h <<\EOF
2777 #define GC_LINUX_THREADS 1
2780 cat >> confdefs.h <<\EOF
2781 #define _REENTRANT 1
2784 if test "${enable_parallel_mark}" = yes; then
2785 cat >> confdefs.h <<\EOF
2786 #define PARALLEL_MARK 1
2790 cat >> confdefs.h <<\EOF
2791 #define THREAD_LOCAL_ALLOC 1
2796 cat >> confdefs.h <<\EOF
2797 #define GC_LINUX_THREADS 1
2800 cat >> confdefs.h <<\EOF
2801 #define _REENTRANT 1
2806 cat >> confdefs.h <<\EOF
2807 #define GC_AIX_THREADS 1
2810 cat >> confdefs.h <<\EOF
2811 #define _REENTRANT 1
2816 echo "configure: warning: "Only HP/UX 11 threads are supported."" 1>&2
2817 cat >> confdefs.h <<\EOF
2818 #define GC_HPUX_THREADS 1
2821 cat >> confdefs.h <<\EOF
2822 #define _POSIX_C_SOURCE 199506L
2825 if test "${enable_parallel_mark}" = yes; then
2826 cat >> confdefs.h <<\EOF
2827 #define PARALLEL_MARK 1
2831 cat >> confdefs.h <<\EOF
2832 #define THREAD_LOCAL_ALLOC 1
2835 THREADLIBS="-lpthread -lrt"
2838 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC."" 1>&2
2839 cat >> confdefs.h <<\EOF
2840 #define GC_FREEBSD_THREADS 1
2843 INCLUDES="$INCLUDES -pthread"
2847 cat >> confdefs.h <<\EOF
2848 #define GC_SOLARIS_THREADS 1
2851 cat >> confdefs.h <<\EOF
2852 #define GC_SOLARIS_PTHREADS 1
2857 cat >> confdefs.h <<\EOF
2858 #define GC_IRIX_THREADS 1
2863 cat >> confdefs.h <<\EOF
2864 #define GC_WIN32_THREADS 1
2869 cat >> confdefs.h <<\EOF
2870 #define GC_DARWIN_THREADS 1
2873 cat >> confdefs.h <<\EOF
2874 #define THREAD_LOCAL_ALLOC 1
2877 if test "${enable_parallel_mark}" = yes; then
2878 cat >> confdefs.h <<\EOF
2879 #define PARALLEL_MARK 1
2885 cat >> confdefs.h <<\EOF
2886 #define GC_OSF1_THREADS 1
2889 if test "${enable_parallel_mark}" = yes; then
2890 cat >> confdefs.h <<\EOF
2891 #define PARALLEL_MARK 1
2894 cat >> confdefs.h <<\EOF
2895 #define THREAD_LOCAL_ALLOC 1
2898 # May want to enable it in other cases, too.
2899 # Measurements havent yet been done.
2901 INCLUDES="$INCLUDES -pthread"
2902 THREADLIBS="-lpthread -lrt"
2907 cat >> confdefs.h <<\EOF
2908 #define GC_WIN32_THREADS 1
2914 echo "$ac_t""$THREADLIBS" 1>&6
2915 # Use pthread GCC switch
2917 if test "${enable_parallel_mark}" = yes; then
2918 cat >> confdefs.h <<\EOF
2919 #define PARALLEL_MARK 1
2923 cat >> confdefs.h <<\EOF
2924 #define THREAD_LOCAL_ALLOC 1
2927 cat >> confdefs.h <<\EOF
2928 #define GC_DGUX386_THREADS 1
2931 cat >> confdefs.h <<\EOF
2932 #define DGUX_THREADS 1
2935 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
2936 INCLUDES="-pthread $INCLUDES"
2940 THREADLIBS=-lpthread
2941 cat >> confdefs.h <<\EOF
2942 #define GC_AIX_THREADS 1
2945 cat >> confdefs.h <<\EOF
2946 #define _REENTRANT 1
2950 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
2951 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2954 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2966 if test x$powerpc_darwin = xtrue; then
2967 POWERPC_DARWIN_TRUE=
2968 POWERPC_DARWIN_FALSE='#'
2970 POWERPC_DARWIN_TRUE='#'
2971 POWERPC_DARWIN_FALSE=
2974 # We never want libdl on darwin. It is a fake libdl that just ends up making
2979 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2980 echo "configure:2981: checking for dlopen in -ldl" >&5
2981 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 ac_save_LIBS="$LIBS"
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 /* Override any gcc2 internal prototype to avoid an error. */
2991 /* We use char because int might match the return type of a gcc2
2992 builtin and then its argument prototype would still apply. */
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3001 eval "ac_cv_lib_$ac_lib_var=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 eval "ac_cv_lib_$ac_lib_var=no"
3009 LIBS="$ac_save_LIBS"
3012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
3016 echo "$ac_t""no" 1>&6
3024 target_all=libgcjgc.la
3029 # Check whether --with-ecos or --without-ecos was given.
3030 if test "${with_ecos+set}" = set; then
3031 withval="$with_ecos"
3032 TARGET_ECOS="$with_ecos"
3042 case "$TARGET_ECOS" in
3046 cat >> confdefs.h <<\EOF
3050 CXXINCLUDES="-I${TARGET_ECOS}/include"
3051 addobjs="$addobjs ecos.lo"
3055 if test "${enable_cplusplus}" = yes; then
3056 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
3057 addtests="$addtests test_cpp"
3062 if test "${enable_cplusplus}" = yes; then
3075 # Configuration of shared libraries
3077 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
3078 echo "configure:3079: checking whether to build shared libraries" >&5
3079 # Check whether --enable-shared or --disable-shared was given.
3080 if test "${enable_shared+set}" = set; then
3081 enableval="$enable_shared"
3082 p=${PACKAGE-default}
3084 yes) enable_shared=yes ;;
3085 no) enable_shared=no ;;
3088 # Look at the argument we got. We use all the common list separators.
3089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3090 for pkg in $enableval; do
3091 if test "X$pkg" = "X$p"; then
3106 echo "$ac_t""no" 1>&6
3109 echo "$ac_t""yes" 1>&6
3113 # Configuration of machine-dependent code
3115 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
3116 # anything else that creates trampolines in gc-allocated memory)
3117 # always needs exec permission. The exceptions to this are IA-64 and
3118 # some variations of Power PC, where trampolines don't contain
3121 echo $ac_n "checking which machine-dependent code should be used""... $ac_c" 1>&6
3122 echo "configure:3123: checking which machine-dependent code should be used" >&5
3126 machdep="alpha_mach_dep.lo"
3127 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
3128 echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2
3132 machdep="alpha_mach_dep.lo"
3134 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
3135 cat >> confdefs.h <<\EOF
3136 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
3141 machdep="mips_ultrix_mach_dep.lo"
3142 cat >> confdefs.h <<\EOF
3143 #define STACKBASE __stackbase
3146 cat >> confdefs.h <<\EOF
3147 #define DATASTART_IS_ETEXT 1
3152 machdep="mips_ultrix_mach-dep.lo"
3154 mips-nec-sysv*|mips-unknown-sysv*)
3159 machdep="mips_sgi_mach_dep.lo"
3162 machdep="sparc_netbsd_mach_dep.lo"
3164 sparc-sun-solaris2.3)
3165 machdep="sparc_mach_dep.lo"
3166 cat >> confdefs.h <<\EOF
3167 #define SUNOS53_SHARED_LIB 1
3171 sparc-sun-solaris2.*)
3172 machdep="sparc_mach_dep.lo"
3175 cat >> confdefs.h <<\EOF
3176 #define NO_EXECUTE_PERMISSION 1
3179 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
3182 if test x"$machdep" = x; then
3183 echo "$ac_t""$machdep" 1>&6
3184 machdep="mach_dep.lo"
3186 addobjs="$addobjs $machdep"
3199 # Check for AViiON Machines running DGUX
3201 echo $ac_n "checking if host is AViiON running DGUX""... $ac_c" 1>&6
3202 echo "configure:3203: checking if host is AViiON running DGUX" >&5
3204 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3205 echo "configure:3206: checking how to run the C preprocessor" >&5
3206 # On Suns, sometimes $CPP names a directory.
3207 if test -n "$CPP" && test -d "$CPP"; then
3210 if test -z "$CPP"; then
3211 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 # This must be in double quotes, not single quotes, because CPP may get
3215 # substituted into the Makefile and "${CC-cc}" will confuse make.
3217 # On the NeXT, cc -E runs the code through the compiler's parser,
3218 # not just through cpp.
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3226 { (eval echo configure:3227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3228 if test -z "$ac_err"; then
3232 echo "configure: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3235 CPP="${CC-cc} -E -traditional-cpp"
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3243 { (eval echo configure:3244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3245 if test -z "$ac_err"; then
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3252 CPP="${CC-cc} -nologo -E"
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3260 { (eval echo configure:3261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3262 if test -z "$ac_err"; then
3266 echo "configure: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3276 ac_cv_prog_CPP="$CPP"
3278 CPP="$ac_cv_prog_CPP"
3280 ac_cv_prog_CPP="$CPP"
3282 echo "$ac_t""$CPP" 1>&6
3284 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
3285 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
3286 echo "configure:3287: checking for sys/dg_sys_info.h" >&5
3287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 #include <sys/dg_sys_info.h>
3295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3296 { (eval echo configure:3297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3298 if test -z "$ac_err"; then
3300 eval "ac_cv_header_$ac_safe=yes"
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3306 eval "ac_cv_header_$ac_safe=no"
3310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3311 echo "$ac_t""yes" 1>&6
3314 echo "$ac_t""no" 1>&6
3318 echo "$ac_t""$ac_is_dgux" 1>&6
3319 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
3320 if test $ac_is_dgux = yes; then
3321 if test "$enable_full_debug" = "yes"; then
3322 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3323 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3325 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3326 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3332 # Check whether --with-target-subdir or --without-target-subdir was given.
3333 if test "${with_target_subdir+set}" = set; then
3334 withval="$with_target_subdir"
3338 # Check whether --with-cross-host or --without-cross-host was given.
3339 if test "${with_cross_host+set}" = set; then
3340 withval="$with_cross_host"
3345 # automake wants to see AC_EXEEXT. But we don't need it. And having
3346 # it is actually a problem, because the compiler we're passed can't
3347 # necessarily do a full link. So we fool automake here.
3349 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
3350 # to nothing, so nothing would remain between `then' and `fi' if it
3351 # were not for the `:' below.
3355 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3356 echo "configure:3357: checking for executable suffix" >&5
3357 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3364 echo 'int main () { return 0; }' > conftest.$ac_ext
3366 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3367 for file in conftest.*; do
3369 *.$ac_ext | *.c | *.o | *.obj) ;;
3370 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3374 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3377 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3382 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3383 echo "$ac_t""${ac_cv_exeext}" 1>&6
3388 echo $ac_n "checking whether Solaris gcc optimization fix is necessary""... $ac_c" 1>&6
3389 echo "configure:3390: checking whether Solaris gcc optimization fix is necessary" >&5
3391 sparc-sun-solaris2*|*aix*)
3392 if test "$GCC" = yes; then
3393 echo "$ac_t""yes" 1>&6
3395 for i in $CFLAGS; do
3400 new_CFLAGS="$new_CFLAGS $i"
3404 CFLAGS="$new_CFLAGS"
3406 echo "$ac_t""no" 1>&6
3409 *) echo "$ac_t""no" 1>&6 ;;
3415 cat >> confdefs.h <<\EOF
3419 cat >> confdefs.h <<\EOF
3420 #define NO_SIGNALS 1
3423 cat >> confdefs.h <<\EOF
3424 #define ALL_INTERIOR_POINTERS 1
3428 cat >> confdefs.h <<\EOF
3429 #define JAVA_FINALIZATION 1
3432 cat >> confdefs.h <<\EOF
3433 #define GC_GCJ_SUPPORT 1
3436 cat >> confdefs.h <<\EOF
3437 #define ATOMIC_UNCOLLECTABLE 1
3441 if test -n "${with_cross_host}"; then
3442 cat >> confdefs.h <<\EOF
3446 cat >> confdefs.h <<\EOF
3447 #define NO_DEBUGGING 1
3452 # Check whether --enable-full-debug or --disable-full-debug was given.
3453 if test "${enable_full_debug+set}" = set; then
3454 enableval="$enable_full_debug"
3455 if test "$enable_full_debug" = "yes"; then
3456 echo "configure: warning: "Must define GC_DEBUG and use debug alloc. in clients."" 1>&2
3457 cat >> confdefs.h <<\EOF
3458 #define KEEP_BACK_PTRS 1
3461 cat >> confdefs.h <<\EOF
3462 #define DBG_HDRS_ALL 1
3467 cat >> confdefs.h <<\EOF
3468 #define MAKE_BACK_GRAPH 1
3472 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
3473 cat >> confdefs.h <<\EOF
3474 #define MAKE_BACK_GRAPH 1
3477 echo "configure: warning: "Client must not use -fomit-frame-pointer."" 1>&2
3478 cat >> confdefs.h <<\EOF
3479 #define SAVE_CALL_COUNT 8
3484 cat >> confdefs.h <<\EOF
3485 #define MAKE_BACK_GRAPH 1
3494 if test -n "$with_cross_host" &&
3495 test x"$with_cross_host" != x"no"; then
3496 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
3497 toolexeclibdir='$(toolexecdir)/lib'
3499 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
3500 toolexeclibdir='$(libdir)'
3502 multi_os_directory=`$CC -print-multi-os-directory`
3503 case $multi_os_directory in
3504 .) ;; # Avoid trailing /.
3505 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3510 if test "${multilib}" = "yes"; then
3511 multilib_arg="--enable-multilib"
3517 cat > confcache <<\EOF
3518 # This file is a shell script that caches the results of configure
3519 # tests run on this system so they can be shared between configure
3520 # scripts and configure runs. It is not useful on other systems.
3521 # If it contains results you don't want to keep, you may remove or edit it.
3523 # By default, configure uses ./config.cache as the cache file,
3524 # creating it if it does not exist already. You can give configure
3525 # the --cache-file=FILE option to use a different cache file; that is
3526 # what configure does when it calls configure scripts in
3527 # subdirectories, so they share the cache.
3528 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3529 # config.status only pays attention to the cache file if you give it the
3530 # --recheck option to rerun configure.
3533 # The following way of writing the cache mishandles newlines in values,
3534 # but we know of no workaround that is simple, portable, and efficient.
3535 # So, don't put newlines in cache variables' values.
3536 # Ultrix sh set writes to stderr and can't be redirected directly,
3537 # and sets the high bit in the cache file unless we assign to the vars.
3539 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3541 # `set' does not quote correctly, so add quotes (double-quote substitution
3542 # turns \\\\ into \\, and sed turns \\ into \).
3544 -e "s/'/'\\\\''/g" \
3545 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3548 # `set' quotes correctly as required by POSIX, so do not add quotes.
3549 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3552 if cmp -s $cache_file confcache; then
3555 if test -w $cache_file; then
3556 echo "updating cache $cache_file"
3557 cat confcache > $cache_file
3559 echo "not updating unwritable cache $cache_file"
3564 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3566 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3567 # Let make expand exec_prefix.
3568 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3570 # Any assignment to VPATH causes Sun make to only execute
3571 # the first set of double-colon rules, so remove it if not needed.
3572 # If there is a colon in the path, we need to keep it.
3573 if test "x$srcdir" = x.; then
3574 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3577 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3579 # Transform confdefs.h into DEFS.
3580 # Protect against shell expansion while executing Makefile rules.
3581 # Protect against Makefile macro expansion.
3582 cat > conftest.defs <<\EOF
3583 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3584 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3589 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3593 # Without the "./", some shells look in PATH for config.status.
3594 : ${CONFIG_STATUS=./config.status}
3596 echo creating $CONFIG_STATUS
3597 rm -f $CONFIG_STATUS
3598 cat > $CONFIG_STATUS <<EOF
3600 # Generated automatically by configure.
3601 # Run this file to recreate the current configuration.
3602 # This directory was configured as follows,
3603 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3605 # $0 $ac_configure_args
3607 # Compiler output produced by configure, useful for debugging
3608 # configure, is in ./config.log if it exists.
3610 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3613 case "\$ac_option" in
3614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3615 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3616 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3617 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3618 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3620 -help | --help | --hel | --he | --h)
3621 echo "\$ac_cs_usage"; exit 0 ;;
3622 *) echo "\$ac_cs_usage"; exit 1 ;;
3626 ac_given_srcdir=$srcdir
3627 ac_given_INSTALL="$INSTALL"
3629 trap 'rm -fr `echo "Makefile include/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3631 cat >> $CONFIG_STATUS <<EOF
3633 # Protect against being on the right side of a sed subst in config.status.
3634 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3635 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3639 s%@CFLAGS@%$CFLAGS%g
3640 s%@CPPFLAGS@%$CPPFLAGS%g
3641 s%@CXXFLAGS@%$CXXFLAGS%g
3642 s%@FFLAGS@%$FFLAGS%g
3644 s%@LDFLAGS@%$LDFLAGS%g
3646 s%@exec_prefix@%$exec_prefix%g
3647 s%@prefix@%$prefix%g
3648 s%@program_transform_name@%$program_transform_name%g
3649 s%@bindir@%$bindir%g
3650 s%@sbindir@%$sbindir%g
3651 s%@libexecdir@%$libexecdir%g
3652 s%@datadir@%$datadir%g
3653 s%@sysconfdir@%$sysconfdir%g
3654 s%@sharedstatedir@%$sharedstatedir%g
3655 s%@localstatedir@%$localstatedir%g
3656 s%@libdir@%$libdir%g
3657 s%@includedir@%$includedir%g
3658 s%@oldincludedir@%$oldincludedir%g
3659 s%@infodir@%$infodir%g
3660 s%@mandir@%$mandir%g
3661 s%@gc_basedir@%$gc_basedir%g
3663 s%@host_alias@%$host_alias%g
3664 s%@host_cpu@%$host_cpu%g
3665 s%@host_vendor@%$host_vendor%g
3666 s%@host_os@%$host_os%g
3667 s%@target@%$target%g
3668 s%@target_alias@%$target_alias%g
3669 s%@target_cpu@%$target_cpu%g
3670 s%@target_vendor@%$target_vendor%g
3671 s%@target_os@%$target_os%g
3673 s%@build_alias@%$build_alias%g
3674 s%@build_cpu@%$build_cpu%g
3675 s%@build_vendor@%$build_vendor%g
3676 s%@build_os@%$build_os%g
3677 s%@mkinstalldirs@%$mkinstalldirs%g
3678 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3679 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3680 s%@INSTALL_DATA@%$INSTALL_DATA%g
3681 s%@PACKAGE@%$PACKAGE%g
3682 s%@VERSION@%$VERSION%g
3683 s%@ACLOCAL@%$ACLOCAL%g
3684 s%@AUTOCONF@%$AUTOCONF%g
3685 s%@AUTOMAKE@%$AUTOMAKE%g
3686 s%@AUTOHEADER@%$AUTOHEADER%g
3687 s%@MAKEINFO@%$MAKEINFO%g
3688 s%@SET_MAKE@%$SET_MAKE%g
3693 s%@RANLIB@%$RANLIB%g
3694 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3695 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3697 s%@EXEEXT@%$EXEEXT%g
3698 s%@GC_CFLAGS@%$GC_CFLAGS%g
3700 s%@OBJEXT@%$OBJEXT%g
3702 s%@LIBTOOL@%$LIBTOOL%g
3703 s%@CXXCPP@%$CXXCPP%g
3704 s%@THREADLIBS@%$THREADLIBS%g
3705 s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
3706 s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
3707 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3708 s%@target_all@%$target_all%g
3709 s%@target_noncanonical@%$target_noncanonical%g
3710 s%@CPLUSPLUS_TRUE@%$CPLUSPLUS_TRUE%g
3711 s%@CPLUSPLUS_FALSE@%$CPLUSPLUS_FALSE%g
3712 s%@INCLUDES@%$INCLUDES%g
3713 s%@CXXINCLUDES@%$CXXINCLUDES%g
3714 s%@addobjs@%$addobjs%g
3715 s%@addincludes@%$addincludes%g
3716 s%@addlibs@%$addlibs%g
3717 s%@addtests@%$addtests%g
3719 s%@MY_CFLAGS@%$MY_CFLAGS%g
3720 s%@toolexecdir@%$toolexecdir%g
3721 s%@toolexeclibdir@%$toolexeclibdir%g
3726 cat >> $CONFIG_STATUS <<\EOF
3728 # Split the substitutions into bite-sized pieces for seds with
3729 # small command number limits, like on Digital OSF/1 and HP-UX.
3730 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3731 ac_file=1 # Number of current file.
3732 ac_beg=1 # First line for current file.
3733 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3736 while $ac_more_lines; do
3737 if test $ac_beg -gt 1; then
3738 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3740 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3742 if test ! -s conftest.s$ac_file; then
3744 rm -f conftest.s$ac_file
3746 if test -z "$ac_sed_cmds"; then
3747 ac_sed_cmds="sed -f conftest.s$ac_file"
3749 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3751 ac_file=`expr $ac_file + 1`
3753 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3756 if test -z "$ac_sed_cmds"; then
3761 cat >> $CONFIG_STATUS <<EOF
3763 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"}
3765 cat >> $CONFIG_STATUS <<\EOF
3766 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3769 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3770 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3771 *) ac_file_in="${ac_file}.in" ;;
3774 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3776 # Remove last slash and all that follows it. Not all systems have dirname.
3777 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3778 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3779 # The file is in a subdirectory.
3780 test ! -d "$ac_dir" && mkdir "$ac_dir"
3781 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3782 # A "../" for each directory in $ac_dir_suffix.
3783 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3785 ac_dir_suffix= ac_dots=
3788 case "$ac_given_srcdir" in
3790 if test -z "$ac_dots"; then top_srcdir=.
3791 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3792 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3794 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3795 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3798 case "$ac_given_INSTALL" in
3799 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3800 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3803 echo creating "$ac_file"
3805 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3807 *Makefile*) ac_comsub="1i\\
3808 # $configure_input" ;;
3812 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3814 s%@configure_input@%$configure_input%g
3815 s%@srcdir@%$srcdir%g
3816 s%@top_srcdir@%$top_srcdir%g
3817 s%@INSTALL@%$INSTALL%g
3818 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3823 cat >> $CONFIG_STATUS <<EOF
3827 with_multisubdir=${with_multisubdir}
3828 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3829 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3830 gc_basedir=${gc_basedir}
3832 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
3834 INCLUDES="$INCLUDES"
3837 cat >> $CONFIG_STATUS <<\EOF
3839 echo "$INCLUDES $DEFS" > boehm-cflags
3841 if test -n "$CONFIG_FILES"; then
3842 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3843 ac_file=Makefile . ${gc_basedir}/../config-ml.in
3847 chmod +x $CONFIG_STATUS
3848 rm -fr confdefs* $ac_clean_files
3849 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1