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 # This works around an automake problem.
746 mkinstalldirs
="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
749 # Find a good install program. We prefer a C program (faster),
750 # so one script is as good as another. But avoid the broken or
751 # incompatible versions:
752 # SysV /etc/install, /usr/sbin/install
753 # SunOS /usr/etc/install
756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
759 # ./install, which can be erroneously created by make from ./install.sh.
760 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
761 echo "configure:762: checking for a BSD compatible install" >&5
762 if test -z "$INSTALL"; then
763 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
767 for ac_dir
in $PATH; do
768 # Account for people who put trailing slashes in PATH elements.
770 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
772 # OSF1 and SCO ODT 3.0 have their own names for install.
773 # Don't use installbsd from OSF since it installs stuff as root
775 for ac_prog
in ginstall scoinst
install; do
776 if test -f $ac_dir/$ac_prog; then
777 if test $ac_prog = install &&
778 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
779 # AIX install. It has an incompatible calling convention.
782 ac_cv_path_install
="$ac_dir/$ac_prog -c"
793 if test "${ac_cv_path_install+set}" = set; then
794 INSTALL
="$ac_cv_path_install"
796 # As a last resort, use the slow shell script. We don't cache a
797 # path for INSTALL within a source directory, because that will
798 # break other packages using the cache if that directory is
799 # removed, or if the path is relative.
800 INSTALL
="$ac_install_sh"
803 echo "$ac_t""$INSTALL" 1>&6
805 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
806 # It thinks the first close brace ends the variable substitution.
807 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
809 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
811 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
813 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
814 echo "configure:815: checking whether build environment is sane" >&5
817 echo timestamp
> conftestfile
818 # Do `set' in a subshell so we don't clobber the current shell's
819 # arguments. Must try -L first in case configure is actually a
820 # symlink; some systems play weird games with the mod time of symlinks
821 # (eg FreeBSD returns the mod time of the symlink's containing
824 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
825 if test "$*" = "X"; then
827 set X
`ls -t $srcdir/configure conftestfile`
829 if test "$*" != "X $srcdir/configure conftestfile" \
830 && test "$*" != "X conftestfile $srcdir/configure"; then
832 # If neither matched, then we have a broken ls. This can happen
833 # if, for instance, CONFIG_SHELL is bash and it inherits a
834 # broken ls alias from the environment. This has actually
835 # happened. Such a system could not be considered "sane".
836 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
837 alias in your environment" 1>&2; exit 1; }
840 test "$2" = conftestfile
846 { echo "configure: error: newly created file is older than distributed files!
847 Check your system clock" 1>&2; exit 1; }
850 echo "$ac_t""yes" 1>&6
851 if test "$program_transform_name" = s
,x
,x
,; then
852 program_transform_name
=
854 # Double any \ or $. echo might interpret backslashes.
855 cat <<\EOF_SED
> conftestsed
856 s
,\\,\\\\,g
; s
,\$
,$$
,g
858 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
861 test "$program_prefix" != NONE
&&
862 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
863 # Use a double $ so make ignores it.
864 test "$program_suffix" != NONE
&&
865 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
867 # sed with no file args requires a program.
868 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
870 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
871 echo "configure:872: checking whether ${MAKE-make} sets \${MAKE}" >&5
872 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
873 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 cat > conftestmake
<<\EOF
878 @
echo 'ac_maketemp="${MAKE}"'
880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
881 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
882 if test -n "$ac_maketemp"; then
883 eval ac_cv_prog_make_
${ac_make}_set
=yes
885 eval ac_cv_prog_make_
${ac_make}_set
=no
889 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
890 echo "$ac_t""yes" 1>&6
893 echo "$ac_t""no" 1>&6
894 SET_MAKE
="MAKE=${MAKE-make}"
897 if test $host != $build; then
898 ac_tool_prefix
=${host_alias}-
903 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
904 echo "configure:905: checking for Cygwin environment" >&5
905 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 cat > conftest.
$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
915 #define __CYGWIN__ __CYGWIN32__
920 if { (eval echo configure
:921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
924 echo "configure: failed program was:" >&5
925 cat conftest.
$ac_ext >&5
933 echo "$ac_t""$ac_cv_cygwin" 1>&6
935 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
936 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
937 echo "configure:938: checking for mingw32 environment" >&5
938 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
941 cat > conftest.
$ac_ext <<EOF
942 #line 943 "configure"
943 #include "confdefs.h"
949 if { (eval echo configure
:950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
953 echo "configure: failed program was:" >&5
954 cat conftest.
$ac_ext >&5
962 echo "$ac_t""$ac_cv_mingw32" 1>&6
964 test "$ac_cv_mingw32" = yes && MINGW32
=yes
972 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
973 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
978 missing_dir
=`cd $ac_aux_dir && pwd`
979 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
980 echo "configure:981: checking for working aclocal" >&5
981 # Run test in a subshell; some versions of sh will print an error if
982 # an executable is not found, even if stderr is redirected.
983 # Redirect stdin to placate older versions of autoconf. Sigh.
984 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
986 echo "$ac_t""found" 1>&6
988 ACLOCAL
="$missing_dir/missing aclocal"
989 echo "$ac_t""missing" 1>&6
992 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
993 echo "configure:994: checking for working autoconf" >&5
994 # Run test in a subshell; some versions of sh will print an error if
995 # an executable is not found, even if stderr is redirected.
996 # Redirect stdin to placate older versions of autoconf. Sigh.
997 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
999 echo "$ac_t""found" 1>&6
1001 AUTOCONF
="$missing_dir/missing autoconf"
1002 echo "$ac_t""missing" 1>&6
1005 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1006 echo "configure:1007: checking for working automake" >&5
1007 # Run test in a subshell; some versions of sh will print an error if
1008 # an executable is not found, even if stderr is redirected.
1009 # Redirect stdin to placate older versions of autoconf. Sigh.
1010 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1012 echo "$ac_t""found" 1>&6
1014 AUTOMAKE
="$missing_dir/missing automake"
1015 echo "$ac_t""missing" 1>&6
1018 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1019 echo "configure:1020: checking for working autoheader" >&5
1020 # Run test in a subshell; some versions of sh will print an error if
1021 # an executable is not found, even if stderr is redirected.
1022 # Redirect stdin to placate older versions of autoconf. Sigh.
1023 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1024 AUTOHEADER
=autoheader
1025 echo "$ac_t""found" 1>&6
1027 AUTOHEADER
="$missing_dir/missing autoheader"
1028 echo "$ac_t""missing" 1>&6
1031 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1032 echo "configure:1033: checking for working makeinfo" >&5
1033 # Run test in a subshell; some versions of sh will print an error if
1034 # an executable is not found, even if stderr is redirected.
1035 # Redirect stdin to placate older versions of autoconf. Sigh.
1036 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1038 echo "$ac_t""found" 1>&6
1040 MAKEINFO
="$missing_dir/missing makeinfo"
1041 echo "$ac_t""missing" 1>&6
1046 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1047 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1048 # are probably using a cross compiler, which will not be able to fully
1049 # link an executable. This should really be fixed in autoconf
1055 # Extract the first word of "gcc", so it can be a program name with args.
1056 set dummy gcc
; ac_word
=$2
1057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1058 echo "configure:1059: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 if test -n "$CC"; then
1063 ac_cv_prog_CC
="$CC" # Let the user override the test.
1065 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1067 for ac_dir
in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir
=.
1069 if test -f $ac_dir/$ac_word; then
1078 if test -n "$CC"; then
1079 echo "$ac_t""$CC" 1>&6
1081 echo "$ac_t""no" 1>&6
1084 if test -z "$CC"; then
1085 # Extract the first word of "cc", so it can be a program name with args.
1086 set dummy cc
; ac_word
=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 if test -n "$CC"; then
1093 ac_cv_prog_CC
="$CC" # Let the user override the test.
1095 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1098 for ac_dir
in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir
=.
1100 if test -f $ac_dir/$ac_word; then
1101 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1102 ac_prog_rejected
=yes
1110 if test $ac_prog_rejected = yes; then
1111 # We found a bogon in the path, so make sure we never use it.
1112 set dummy
$ac_cv_prog_CC
1114 if test $# -gt 0; then
1115 # We chose a different compiler from the bogus one.
1116 # However, it has the same basename, so the bogon will be chosen
1117 # first if we set CC to just the basename; use the full file name.
1119 set dummy
"$ac_dir/$ac_word" "$@"
1127 if test -n "$CC"; then
1128 echo "$ac_t""$CC" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1136 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1137 echo "configure:1138: checking whether we are using GNU C" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 cat > conftest.c
<<EOF
1146 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1153 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1155 if test $ac_cv_prog_gcc = yes; then
1157 ac_test_CFLAGS
="${CFLAGS+set}"
1158 ac_save_CFLAGS
="$CFLAGS"
1160 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether ${CC-cc} accepts -g" >&5
1162 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 echo 'void f(){}' > conftest.c
1166 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1175 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1176 if test "$ac_test_CFLAGS" = set; then
1177 CFLAGS
="$ac_save_CFLAGS"
1178 elif test $ac_cv_prog_cc_g = yes; then
1185 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1189 # Likewise for AC_PROG_CXX.
1193 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1195 # Extract the first word of "$ac_prog", so it can be a program name with args.
1196 set dummy
$ac_prog; ac_word
=$2
1197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1198 echo "configure:1199: checking for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 if test -n "$CXX"; then
1203 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1205 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1207 for ac_dir
in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir
=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_CXX
="$ac_prog"
1217 CXX
="$ac_cv_prog_CXX"
1218 if test -n "$CXX"; then
1219 echo "$ac_t""$CXX" 1>&6
1221 echo "$ac_t""no" 1>&6
1224 test -n "$CXX" && break
1226 test -n "$CXX" || CXX
="gcc"
1228 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1230 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether we are using GNU C++" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 cat > conftest.C
<<EOF
1240 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1247 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1249 if test $ac_cv_prog_gxx = yes; then
1251 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1252 ac_save_CXXFLAGS
="$CXXFLAGS"
1254 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether ${CXX-g++} accepts -g" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 echo 'void f(){}' > conftest.cc
1260 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1261 ac_cv_prog_cxx_g
=yes
1269 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1270 if test "$ac_test_CXXFLAGS" = set; then
1271 CXXFLAGS
="$ac_save_CXXFLAGS"
1272 elif test $ac_cv_prog_cxx_g = yes; then
1279 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1283 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1284 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 if test -n "$AS"; then
1291 ac_cv_prog_AS
="$AS" # Let the user override the test.
1293 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1295 for ac_dir
in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir
=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_prog_AS
="${ac_tool_prefix}as"
1303 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1307 if test -n "$AS"; then
1308 echo "$ac_t""$AS" 1>&6
1310 echo "$ac_t""no" 1>&6
1315 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1316 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if test -n "$AR"; then
1323 ac_cv_prog_AR
="$AR" # Let the user override the test.
1325 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1327 for ac_dir
in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir
=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1335 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1339 if test -n "$AR"; then
1340 echo "$ac_t""$AR" 1>&6
1342 echo "$ac_t""no" 1>&6
1347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1348 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 if test -n "$RANLIB"; then
1355 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1357 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1359 for ac_dir
in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir
=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1369 RANLIB
="$ac_cv_prog_RANLIB"
1370 if test -n "$RANLIB"; then
1371 echo "$ac_t""$RANLIB" 1>&6
1373 echo "$ac_t""no" 1>&6
1377 if test -z "$ac_cv_prog_RANLIB"; then
1378 if test -n "$ac_tool_prefix"; then
1379 # Extract the first word of "ranlib", so it can be a program name with args.
1380 set dummy ranlib
; ac_word
=$2
1381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1382 echo "configure:1383: checking for $ac_word" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 if test -n "$RANLIB"; then
1387 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1389 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1391 for ac_dir
in $ac_dummy; do
1392 test -z "$ac_dir" && ac_dir
=.
1393 if test -f $ac_dir/$ac_word; then
1394 ac_cv_prog_RANLIB
="ranlib"
1399 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1402 RANLIB
="$ac_cv_prog_RANLIB"
1403 if test -n "$RANLIB"; then
1404 echo "$ac_t""$RANLIB" 1>&6
1406 echo "$ac_t""no" 1>&6
1415 # Find a good install program. We prefer a C program (faster),
1416 # so one script is as good as another. But avoid the broken or
1417 # incompatible versions:
1418 # SysV /etc/install, /usr/sbin/install
1419 # SunOS /usr/etc/install
1420 # IRIX /sbin/install
1422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1425 # ./install, which can be erroneously created by make from ./install.sh.
1426 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1427 echo "configure:1428: checking for a BSD compatible install" >&5
1428 if test -z "$INSTALL"; then
1429 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1433 for ac_dir
in $PATH; do
1434 # Account for people who put trailing slashes in PATH elements.
1436 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1438 # OSF1 and SCO ODT 3.0 have their own names for install.
1439 # Don't use installbsd from OSF since it installs stuff as root
1441 for ac_prog
in ginstall scoinst
install; do
1442 if test -f $ac_dir/$ac_prog; then
1443 if test $ac_prog = install &&
1444 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1445 # AIX install. It has an incompatible calling convention.
1448 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1459 if test "${ac_cv_path_install+set}" = set; then
1460 INSTALL
="$ac_cv_path_install"
1462 # As a last resort, use the slow shell script. We don't cache a
1463 # path for INSTALL within a source directory, because that will
1464 # break other packages using the cache if that directory is
1465 # removed, or if the path is relative.
1466 INSTALL
="$ac_install_sh"
1469 echo "$ac_t""$INSTALL" 1>&6
1471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1472 # It thinks the first close brace ends the variable substitution.
1473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1477 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1480 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1481 echo "configure:1482: checking whether to enable maintainer-specific portions of Makefiles" >&5
1482 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1483 if test "${enable_maintainer_mode+set}" = set; then
1484 enableval
="$enable_maintainer_mode"
1485 USE_MAINTAINER_MODE
=$enableval
1487 USE_MAINTAINER_MODE
=no
1490 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1493 if test $USE_MAINTAINER_MODE = yes; then
1494 MAINTAINER_MODE_TRUE
=
1495 MAINTAINER_MODE_FALSE
='#'
1497 MAINTAINER_MODE_TRUE
='#'
1498 MAINTAINER_MODE_FALSE
=
1500 MAINT
=$MAINTAINER_MODE_TRUE
1504 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1505 # at least currently, we never actually build a program, so we never
1506 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1507 # fails, because we are probably configuring with a cross compiler
1508 # which can't create executables. So we include AC_EXEEXT to keep
1509 # automake happy, but we don't execute it, since we don't care about
1512 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1513 # to nothing, so nothing would remain between `then' and `fi' if it
1514 # were not for the `:' below.
1518 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1519 echo "configure:1520: checking for executable suffix" >&5
1520 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1527 echo 'int main () { return 0; }' > conftest.
$ac_ext
1529 if { (eval echo configure
:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1530 for file in conftest.
*; do
1532 *.
$ac_ext |
*.c |
*.o |
*.obj
) ;;
1533 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1537 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1540 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1545 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1546 echo "$ac_t""${ac_cv_exeext}" 1>&6
1551 .
${srcdir}/configure.
host
1553 case ${gc_basedir} in
1554 /* | A-Za-z
:/\\*) gc_flagbasedir
=${gc_basedir} ;;
1555 *) gc_flagbasedir
='$(top_builddir)/'${gc_basedir} ;;
1558 gc_cflags
="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1561 gc_cflags
="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1566 GC_CFLAGS
=${gc_cflags}
1570 # Check whether --enable-shared or --disable-shared was given.
1571 if test "${enable_shared+set}" = set; then
1572 enableval
="$enable_shared"
1573 p
=${PACKAGE-default}
1575 yes) enable_shared
=yes ;;
1576 no
) enable_shared
=no
;;
1579 # Look at the argument we got. We use all the common list separators.
1580 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1581 for pkg
in $enableval; do
1582 if test "X$pkg" = "X$p"; then
1593 # Check whether --enable-static or --disable-static was given.
1594 if test "${enable_static+set}" = set; then
1595 enableval
="$enable_static"
1596 p
=${PACKAGE-default}
1598 yes) enable_static
=yes ;;
1599 no
) enable_static
=no
;;
1602 # Look at the argument we got. We use all the common list separators.
1603 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1604 for pkg
in $enableval; do
1605 if test "X$pkg" = "X$p"; then
1616 # Check whether --enable-fast-install or --disable-fast-install was given.
1617 if test "${enable_fast_install+set}" = set; then
1618 enableval
="$enable_fast_install"
1619 p
=${PACKAGE-default}
1621 yes) enable_fast_install
=yes ;;
1622 no
) enable_fast_install
=no
;;
1624 enable_fast_install
=no
1625 # Look at the argument we got. We use all the common list separators.
1626 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1627 for pkg
in $enableval; do
1628 if test "X$pkg" = "X$p"; then
1629 enable_fast_install
=yes
1636 enable_fast_install
=yes
1639 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1640 if test "${with_gnu_ld+set}" = set; then
1641 withval
="$with_gnu_ld"
1642 test "$withval" = no || with_gnu_ld
=yes
1648 if test "$GCC" = yes; then
1649 # Check if gcc -print-prog-name=ld gives a path.
1650 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1651 echo "configure:1652: checking for ld used by GCC" >&5
1654 # gcc leaves a trailing carriage return which upsets mingw
1655 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1657 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1660 # Accept absolute paths.
1661 [\\/]* |
[A-Za-z
]:[\\/]*)
1662 re_direlt
='/[^/][^/]*/\.\./'
1663 # Canonicalize the path of ld
1664 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1665 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1666 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1668 test -z "$LD" && LD
="$ac_prog"
1671 # If it fails, then pretend we aren't using GCC.
1675 # If it is relative, then search for the first ld in PATH.
1679 elif test "$with_gnu_ld" = yes; then
1680 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1681 echo "configure:1682: checking for GNU ld" >&5
1683 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1684 echo "configure:1685: checking for non-GNU ld" >&5
1686 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 if test -z "$LD"; then
1690 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1691 for ac_dir
in $PATH; do
1692 test -z "$ac_dir" && ac_dir
=.
1693 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1694 lt_cv_path_LD
="$ac_dir/$ac_prog"
1695 # Check to see if the program is GNU ld. I'd rather use --version,
1696 # but apparently some GNU ld's only accept -v.
1697 # Break only if it was the GNU/non-GNU ld that we prefer.
1698 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1699 test "$with_gnu_ld" != no
&& break
1701 test "$with_gnu_ld" != yes && break
1707 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1712 if test -n "$LD"; then
1713 echo "$ac_t""$LD" 1>&6
1715 echo "$ac_t""no" 1>&6
1717 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1718 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1719 echo "configure:1720: checking if the linker ($LD) is GNU ld" >&5
1720 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1724 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1725 lt_cv_prog_gnu_ld
=yes
1727 lt_cv_prog_gnu_ld
=no
1731 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1732 with_gnu_ld
=$lt_cv_prog_gnu_ld
1735 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $LD option to reload object files" >&5
1737 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 lt_cv_ld_reload_flag
='-r'
1743 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1744 reload_flag
=$lt_cv_ld_reload_flag
1745 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1747 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1748 echo "configure:1749: checking for BSD-compatible nm" >&5
1749 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 if test -n "$NM"; then
1753 # Let the user override the test.
1756 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1757 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1758 test -z "$ac_dir" && ac_dir
=.
1759 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1760 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1761 # Check to see if the nm accepts a BSD-compat flag.
1762 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1763 # nm: unknown option "B" ignored
1764 # Tru64's nm complains that /dev/null is an invalid object file
1765 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1766 lt_cv_path_NM
="$tmp_nm -B"
1768 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1769 lt_cv_path_NM
="$tmp_nm -p"
1772 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1773 continue # so that we can try to find one that supports BSD flags
1778 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1783 echo "$ac_t""$NM" 1>&6
1785 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether ln -s works" >&5
1787 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1791 if ln -s X conftestdata
2>/dev
/null
1794 ac_cv_prog_LN_S
="ln -s"
1799 LN_S
="$ac_cv_prog_LN_S"
1800 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1801 echo "$ac_t""yes" 1>&6
1803 echo "$ac_t""no" 1>&6
1806 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1807 echo "configure:1808: checking how to recognise dependant libraries" >&5
1808 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1812 lt_cv_file_magic_test_file
=
1813 lt_cv_deplibs_check_method
='unknown'
1814 # Need to set the preceding variable on all platforms that support
1815 # interlibrary dependencies.
1816 # 'none' -- dependencies not supported.
1817 # `unknown' -- same as none, but documents that we really don't know.
1818 # 'pass_all' -- all dependencies passed with no checks.
1819 # 'test_compile' -- check by making test program.
1820 # 'file_magic [regex]' -- check by looking for files in library path
1821 # which responds to the $file_magic_cmd with a given egrep regex.
1822 # If you have `file' or equivalent on your system and you're not sure
1823 # whether `pass_all' will *always* work, you probably want this one.
1827 lt_cv_deplibs_check_method
=pass_all
1831 lt_cv_deplibs_check_method
=pass_all
1835 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1836 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1837 lt_cv_file_magic_test_file
=/shlib
/libc.so
1840 cygwin
* | mingw
* |pw32
*)
1841 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1842 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1845 darwin
* | rhapsody
*)
1846 # this will be overwritten by pass_all, but leave it in just in case
1847 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1848 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1850 rhapsody
* | darwin1.012
)
1851 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1854 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1857 lt_cv_deplibs_check_method
=pass_all
1861 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1864 # Not sure whether the presence of OpenBSD here was a mistake.
1865 # Let's accept both of them until this is cleared up.
1866 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1867 lt_cv_file_magic_cmd
=/usr
/bin
/file
1868 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1872 lt_cv_deplibs_check_method
=pass_all
1877 lt_cv_deplibs_check_method
=pass_all
1883 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1884 lt_cv_file_magic_cmd
=/usr
/bin
/file
1885 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1888 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1889 lt_cv_file_magic_cmd
=/usr
/bin
/file
1890 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1898 # this will be overridden with pass_all, but let us keep it just in case
1899 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1903 *-32|
*"-32 ") libmagic
=32-bit;;
1904 *-n32|
*"-n32 ") libmagic
=N32
;;
1905 *-64|
*"-64 ") libmagic
=64-bit;;
1906 *) libmagic
=never-match
;;
1908 # this will be overridden with pass_all, but let us keep it just in case
1909 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1912 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1913 lt_cv_deplibs_check_method
=pass_all
1916 # This must be Linux ELF.
1919 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1920 lt_cv_deplibs_check_method
=pass_all
;;
1922 # glibc up to 2.1.1 does not perform some relocations on ARM
1923 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1925 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1929 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1930 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1932 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1937 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1938 lt_cv_file_magic_cmd
=/usr
/bin
/file
1939 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1942 osf3
* | osf4
* | osf5
*)
1943 # this will be overridden with pass_all, but let us keep it just in case
1944 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1945 lt_cv_file_magic_test_file
=/shlib
/libc.so
1946 lt_cv_deplibs_check_method
=pass_all
1950 lt_cv_deplibs_check_method
=pass_all
1954 lt_cv_deplibs_check_method
=pass_all
1955 lt_cv_file_magic_test_file
=/lib
/libc.so
1958 sysv5uw
[78]* | sysv4
*uw2
*)
1959 lt_cv_deplibs_check_method
=pass_all
1962 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1963 case $host_vendor in
1965 lt_cv_deplibs_check_method
=pass_all
1968 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]'
1969 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1977 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1978 file_magic_cmd
=$lt_cv_file_magic_cmd
1979 deplibs_check_method
=$lt_cv_deplibs_check_method
1981 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1982 echo "configure:1983: checking for object suffix" >&5
1983 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1987 echo 'int i = 1;' > conftest.
$ac_ext
1988 if { (eval echo configure
:1989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1989 for ac_file
in conftest.
*; do
1992 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1996 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2001 echo "$ac_t""$ac_cv_objext" 1>&6
2002 OBJEXT
=$ac_cv_objext
2003 ac_objext
=$ac_cv_objext
2005 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2007 # Only perform the check for file, if the check method requires it
2008 case $deplibs_check_method in
2010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2011 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2012 echo "configure:2013: checking for ${ac_tool_prefix}file" >&5
2013 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2018 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2021 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2024 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2025 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2026 ac_dummy
="/usr/bin:$PATH"
2027 for ac_dir
in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir
=.
2029 if test -f $ac_dir/${ac_tool_prefix}file; then
2030 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2031 if test -n "$file_magic_test_file"; then
2032 case $deplibs_check_method in
2034 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2035 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2036 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2037 egrep "$file_magic_regex" > /dev
/null
; then
2042 *** Warning: the command libtool uses to detect shared libraries,
2043 *** $file_magic_cmd, produces output that libtool cannot recognize.
2044 *** The result is that libtool may fail to recognize shared libraries
2045 *** as such. This will affect the creation of libtool libraries that
2046 *** depend on shared libraries, but programs linked with such libtool
2047 *** libraries will work regardless of this problem. Nevertheless, you
2048 *** may want to report the problem to your system manager and/or to
2049 *** bug-libtool@gnu.org
2059 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2064 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2065 if test -n "$MAGIC_CMD"; then
2066 echo "$ac_t""$MAGIC_CMD" 1>&6
2068 echo "$ac_t""no" 1>&6
2071 if test -z "$lt_cv_path_MAGIC_CMD"; then
2072 if test -n "$ac_tool_prefix"; then
2073 echo $ac_n "checking for file""... $ac_c" 1>&6
2074 echo "configure:2075: checking for file" >&5
2075 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2080 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2083 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2086 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2087 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2088 ac_dummy
="/usr/bin:$PATH"
2089 for ac_dir
in $ac_dummy; do
2090 test -z "$ac_dir" && ac_dir
=.
2091 if test -f $ac_dir/file; then
2092 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2093 if test -n "$file_magic_test_file"; then
2094 case $deplibs_check_method in
2096 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2097 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2098 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2099 egrep "$file_magic_regex" > /dev
/null
; then
2104 *** Warning: the command libtool uses to detect shared libraries,
2105 *** $file_magic_cmd, produces output that libtool cannot recognize.
2106 *** The result is that libtool may fail to recognize shared libraries
2107 *** as such. This will affect the creation of libtool libraries that
2108 *** depend on shared libraries, but programs linked with such libtool
2109 *** libraries will work regardless of this problem. Nevertheless, you
2110 *** may want to report the problem to your system manager and/or to
2111 *** bug-libtool@gnu.org
2121 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2126 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2127 if test -n "$MAGIC_CMD"; then
2128 echo "$ac_t""$MAGIC_CMD" 1>&6
2130 echo "$ac_t""no" 1>&6
2142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2143 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2145 echo "configure:2146: checking for $ac_word" >&5
2146 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 if test -n "$RANLIB"; then
2150 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2152 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2154 for ac_dir
in $ac_dummy; do
2155 test -z "$ac_dir" && ac_dir
=.
2156 if test -f $ac_dir/$ac_word; then
2157 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2164 RANLIB
="$ac_cv_prog_RANLIB"
2165 if test -n "$RANLIB"; then
2166 echo "$ac_t""$RANLIB" 1>&6
2168 echo "$ac_t""no" 1>&6
2172 if test -z "$ac_cv_prog_RANLIB"; then
2173 if test -n "$ac_tool_prefix"; then
2174 # Extract the first word of "ranlib", so it can be a program name with args.
2175 set dummy ranlib
; ac_word
=$2
2176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_word" >&5
2178 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2181 if test -n "$RANLIB"; then
2182 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2184 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2186 for ac_dir
in $ac_dummy; do
2187 test -z "$ac_dir" && ac_dir
=.
2188 if test -f $ac_dir/$ac_word; then
2189 ac_cv_prog_RANLIB
="ranlib"
2194 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2197 RANLIB
="$ac_cv_prog_RANLIB"
2198 if test -n "$RANLIB"; then
2199 echo "$ac_t""$RANLIB" 1>&6
2201 echo "$ac_t""no" 1>&6
2209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2210 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_word" >&5
2213 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 if test -n "$STRIP"; then
2217 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2219 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2221 for ac_dir
in $ac_dummy; do
2222 test -z "$ac_dir" && ac_dir
=.
2223 if test -f $ac_dir/$ac_word; then
2224 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2231 STRIP
="$ac_cv_prog_STRIP"
2232 if test -n "$STRIP"; then
2233 echo "$ac_t""$STRIP" 1>&6
2235 echo "$ac_t""no" 1>&6
2239 if test -z "$ac_cv_prog_STRIP"; then
2240 if test -n "$ac_tool_prefix"; then
2241 # Extract the first word of "strip", so it can be a program name with args.
2242 set dummy strip
; ac_word
=$2
2243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2244 echo "configure:2245: checking for $ac_word" >&5
2245 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 if test -n "$STRIP"; then
2249 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2251 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2253 for ac_dir
in $ac_dummy; do
2254 test -z "$ac_dir" && ac_dir
=.
2255 if test -f $ac_dir/$ac_word; then
2256 ac_cv_prog_STRIP
="strip"
2261 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2264 STRIP
="$ac_cv_prog_STRIP"
2265 if test -n "$STRIP"; then
2266 echo "$ac_t""$STRIP" 1>&6
2268 echo "$ac_t""no" 1>&6
2277 # Check for any special flags to pass to ltconfig.
2278 libtool_flags
="--cache-file=$cache_file"
2279 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2280 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2281 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2282 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2283 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2286 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2287 if test "${enable_libtool_lock+set}" = set; then
2288 enableval
="$enable_libtool_lock"
2292 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2293 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2295 # Check whether --with-pic or --without-pic was given.
2296 if test "${with_pic+set}" = set; then
2303 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2304 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2306 # Some flags need to be propagated to the compiler or linker for good
2310 # Find out which ABI we are using.
2311 echo '#line 2312 "configure"' > conftest.
$ac_ext
2312 if { (eval echo configure
:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2313 if test "$lt_cv_prog_gnu_ld" = yes; then
2314 case `/usr/bin/file conftest.$ac_objext` in
2316 LD
="${LD-ld} -melf32bsmip"
2319 LD
="${LD-ld} -melf32bmipn32"
2322 LD
="${LD-ld} -melf64bmip"
2326 case `/usr/bin/file conftest.$ac_objext` in
2343 # Find out which ABI we are using.
2344 echo 'int i;' > conftest.
$ac_ext
2345 if { (eval echo configure
:2346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2346 case "`/usr/bin/file conftest.o`" in
2358 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
2359 # Find out which ABI we are using.
2360 echo 'int i;' > conftest.
$ac_ext
2361 if { (eval echo configure
:2362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2362 case "`/usr/bin/file conftest.o`" in
2366 LD
="${LD-ld} -m elf_i386"
2368 ppc64-
*linux
*|powerpc64-
*linux
*)
2369 LD
="${LD-ld} -m elf32ppclinux"
2372 LD
="${LD-ld} -m elf_s390"
2375 LD
="${LD-ld} -m elf32_sparc"
2382 LD
="${LD-ld} -m elf_x86_64"
2384 ppc
*-*linux
*|powerpc
*-*linux
*)
2385 LD
="${LD-ld} -m elf64ppc"
2388 LD
="${LD-ld} -m elf64_s390"
2391 LD
="${LD-ld} -m elf64_sparc"
2401 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2402 SAVE_CFLAGS
="$CFLAGS"
2403 CFLAGS
="$CFLAGS -belf"
2404 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2405 echo "configure:2406: checking whether the C compiler needs -belf" >&5
2406 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2412 ac_cpp
='$CPP $CPPFLAGS'
2413 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2414 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2415 cross_compiling
=$ac_cv_prog_cc_cross
2417 cat > conftest.
$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2425 if { (eval echo configure
:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2427 lt_cv_cc_needs_belf
=yes
2429 echo "configure: failed program was:" >&5
2430 cat conftest.
$ac_ext >&5
2432 lt_cv_cc_needs_belf
=no
2436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2437 ac_cpp
='$CPP $CPPFLAGS'
2438 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2439 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2440 cross_compiling
=$ac_cv_prog_cc_cross
2444 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2445 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2447 CFLAGS
="$SAVE_CFLAGS"
2454 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2455 echo "configure:2456: checking how to run the C++ preprocessor" >&5
2456 if test -z "$CXXCPP"; then
2457 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2462 ac_cpp
='$CXXCPP $CPPFLAGS'
2463 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2464 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2465 cross_compiling
=$ac_cv_prog_cxx_cross
2466 CXXCPP
="${CXX-g++} -E"
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2473 { (eval echo configure
:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2474 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2475 if test -z "$ac_err"; then
2479 echo "configure: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2485 ac_cv_prog_CXXCPP
="$CXXCPP"
2487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2488 ac_cpp
='$CPP $CPPFLAGS'
2489 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2490 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2491 cross_compiling
=$ac_cv_prog_cc_cross
2494 CXXCPP
="$ac_cv_prog_CXXCPP"
2495 echo "$ac_t""$CXXCPP" 1>&6
2498 # Save cache, so that ltconfig can load it
2499 cat > confcache
<<\EOF
2500 # This file is a shell script that caches the results of configure
2501 # tests run on this system so they can be shared between configure
2502 # scripts and configure runs. It is not useful on other systems.
2503 # If it contains results you don't want to keep, you may remove or edit it.
2505 # By default, configure uses ./config.cache as the cache file,
2506 # creating it if it does not exist already. You can give configure
2507 # the --cache-file=FILE option to use a different cache file; that is
2508 # what configure does when it calls configure scripts in
2509 # subdirectories, so they share the cache.
2510 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2511 # config.status only pays attention to the cache file if you give it the
2512 # --recheck option to rerun configure.
2515 # The following way of writing the cache mishandles newlines in values,
2516 # but we know of no workaround that is simple, portable, and efficient.
2517 # So, don't put newlines in cache variables' values.
2518 # Ultrix sh set writes to stderr and can't be redirected directly,
2519 # and sets the high bit in the cache file unless we assign to the vars.
2521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2523 # `set' does not quote correctly, so add quotes (double-quote substitution
2524 # turns \\\\ into \\, and sed turns \\ into \).
2526 -e "s/'/'\\\\''/g" \
2527 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2530 # `set' quotes correctly as required by POSIX, so do not add quotes.
2531 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2534 if cmp -s $cache_file confcache
; then
2537 if test -w $cache_file; then
2538 echo "updating cache $cache_file"
2539 cat confcache
> $cache_file
2541 echo "not updating unwritable cache $cache_file"
2547 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2548 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2549 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2550 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2551 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2552 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2553 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2554 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2555 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2556 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2558 # Reload cache, that may have been modified by ltconfig
2559 if test -r "$cache_file"; then
2560 echo "loading cache $cache_file"
2563 echo "creating cache $cache_file"
2568 # This can be used to rebuild libtool when needed
2569 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2571 # Always use our own libtool.
2572 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2574 # Redirect the config.log output again, so that the ltconfig log is not
2575 # clobbered by the next message.
2576 exec 5>>.
/config.log
2580 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2582 lt_save_CFLAGS
="$CFLAGS"
2583 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
2584 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2585 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2586 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2587 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2588 deplibs_check_method
="$deplibs_check_method" \
2589 file_magic_cmd
="$file_magic_cmd" \
2590 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
2591 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
2592 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2594 CFLAGS
="$lt_save_CFLAGS"
2596 # Redirect the config.log output again, so that the ltconfig log is not
2597 # clobbered by the next message.
2598 exec 5>>.
/config.log
2606 # Check whether --with-target-subdir or --without-target-subdir was given.
2607 if test "${with_target_subdir+set}" = set; then
2608 withval
="$with_target_subdir"
2612 # Check whether --with-cross-host or --without-cross-host was given.
2613 if test "${with_cross_host+set}" = set; then
2614 withval
="$with_cross_host"
2619 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2620 echo "configure:2621: checking whether to enable maintainer-specific portions of Makefiles" >&5
2621 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2622 if test "${enable_maintainer_mode+set}" = set; then
2623 enableval
="$enable_maintainer_mode"
2624 USE_MAINTAINER_MODE
=$enableval
2626 USE_MAINTAINER_MODE
=no
2629 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2632 if test $USE_MAINTAINER_MODE = yes; then
2633 MAINTAINER_MODE_TRUE
=
2634 MAINTAINER_MODE_FALSE
='#'
2636 MAINTAINER_MODE_TRUE
='#'
2637 MAINTAINER_MODE_FALSE
=
2639 MAINT
=$MAINTAINER_MODE_TRUE
2642 # automake wants to see AC_EXEEXT. But we don't need it. And having
2643 # it is actually a problem, because the compiler we're passed can't
2644 # necessarily do a full link. So we fool automake here.
2646 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2647 # to nothing, so nothing would remain between `then' and `fi' if it
2648 # were not for the `:' below.
2652 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2653 echo "configure:2654: checking for executable suffix" >&5
2654 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2661 echo 'int main () { return 0; }' > conftest.
$ac_ext
2663 if { (eval echo configure
:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2664 for file in conftest.
*; do
2666 *.
$ac_ext |
*.c |
*.o |
*.obj
) ;;
2667 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2671 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2674 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2679 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2680 echo "$ac_t""${ac_cv_exeext}" 1>&6
2685 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2686 echo "configure:2687: checking for thread model used by GCC" >&5
2687 THREADS
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2688 if test -z "$THREADS"; then
2691 echo "$ac_t""$THREADS" 1>&6
2693 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2694 if test "${enable_parallel_mark+set}" = set; then
2695 enableval
="$enable_parallel_mark"
2698 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2705 INCLUDES
="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
2713 THREADLIBS
=-lpthread
2715 x86-
*-linux* | ia64-
*-linux* | i586-
*-linux* | i686-
*-linux* | x86_64-
*-linux* | alpha-
*-linux*)
2716 cat >> confdefs.h
<<\EOF
2717 #define GC_LINUX_THREADS 1
2720 cat >> confdefs.h
<<\EOF
2721 #define _REENTRANT 1
2724 if test "${enable_parallel_mark}" = yes; then
2725 cat >> confdefs.h
<<\EOF
2726 #define PARALLEL_MARK 1
2730 cat >> confdefs.h
<<\EOF
2731 #define THREAD_LOCAL_ALLOC 1
2736 cat >> confdefs.h
<<\EOF
2737 #define GC_LINUX_THREADS 1
2740 cat >> confdefs.h
<<\EOF
2741 #define _REENTRANT 1
2746 cat >> confdefs.h
<<\EOF
2747 #define GC_AIX_THREADS 1
2750 cat >> confdefs.h
<<\EOF
2751 #define _REENTRANT 1
2756 echo "configure: warning: "Only HP
/UX
11 threads are supported.
"" 1>&2
2757 cat >> confdefs.h
<<\EOF
2758 #define GC_HPUX_THREADS 1
2761 cat >> confdefs.h
<<\EOF
2762 #define _POSIX_C_SOURCE 199506L
2765 if test "${enable_parallel_mark}" = yes; then
2766 cat >> confdefs.h
<<\EOF
2767 #define PARALLEL_MARK 1
2771 cat >> confdefs.h
<<\EOF
2772 #define THREAD_LOCAL_ALLOC 1
2775 THREADLIBS
="-lpthread -lrt"
2778 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC.
"" 1>&2
2779 cat >> confdefs.h
<<\EOF
2780 #define GC_FREEBSD_THREADS 1
2783 INCLUDES
="$INCLUDES -pthread"
2787 cat >> confdefs.h
<<\EOF
2788 #define GC_SOLARIS_THREADS 1
2791 cat >> confdefs.h
<<\EOF
2792 #define GC_SOLARIS_PTHREADS 1
2797 cat >> confdefs.h
<<\EOF
2798 #define GC_IRIX_THREADS 1
2803 cat >> confdefs.h
<<\EOF
2804 #define GC_WIN32_THREADS 1
2809 cat >> confdefs.h
<<\EOF
2810 #define GC_DARWIN_THREADS 1
2813 cat >> confdefs.h
<<\EOF
2814 #define THREAD_LOCAL_ALLOC 1
2817 if test "${enable_parallel_mark}" = yes; then
2818 cat >> confdefs.h
<<\EOF
2819 #define PARALLEL_MARK 1
2825 cat >> confdefs.h
<<\EOF
2826 #define GC_OSF1_THREADS 1
2829 if test "${enable_parallel_mark}" = yes; then
2830 cat >> confdefs.h
<<\EOF
2831 #define PARALLEL_MARK 1
2834 cat >> confdefs.h
<<\EOF
2835 #define THREAD_LOCAL_ALLOC 1
2838 # May want to enable it in other cases, too.
2839 # Measurements havent yet been done.
2841 INCLUDES
="$INCLUDES -pthread"
2842 THREADLIBS
="-lpthread -lrt"
2847 cat >> confdefs.h
<<\EOF
2848 #define GC_WIN32_THREADS 1
2854 echo "$ac_t""$THREADLIBS" 1>&6
2855 # Use pthread GCC switch
2857 if test "${enable_parallel_mark}" = yes; then
2858 cat >> confdefs.h
<<\EOF
2859 #define PARALLEL_MARK 1
2863 cat >> confdefs.h
<<\EOF
2864 #define THREAD_LOCAL_ALLOC 1
2867 cat >> confdefs.h
<<\EOF
2868 #define GC_DGUX386_THREADS 1
2871 cat >> confdefs.h
<<\EOF
2872 #define DGUX_THREADS 1
2875 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
2876 INCLUDES
="-pthread $INCLUDES"
2880 THREADLIBS
=-lpthread
2881 cat >> confdefs.h
<<\EOF
2882 #define GC_AIX_THREADS 1
2885 cat >> confdefs.h
<<\EOF
2886 #define _REENTRANT 1
2890 decosf1 | irix | mach | os2 | solaris | dce | vxworks
)
2891 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2894 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2906 if test x
$powerpc_darwin = xtrue
; then
2907 POWERPC_DARWIN_TRUE
=
2908 POWERPC_DARWIN_FALSE
='#'
2910 POWERPC_DARWIN_TRUE
='#'
2911 POWERPC_DARWIN_FALSE
=
2914 # We never want libdl on darwin. It is a fake libdl that just ends up making
2919 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2920 echo "configure:2921: checking for dlopen in -ldl" >&5
2921 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2925 ac_save_LIBS
="$LIBS"
2927 cat > conftest.
$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2930 /* Override any gcc2 internal prototype to avoid an error. */
2931 /* We use char because int might match the return type of a gcc2
2932 builtin and then its argument prototype would still apply. */
2939 if { (eval echo configure
:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2941 eval "ac_cv_lib_$ac_lib_var=yes"
2943 echo "configure: failed program was:" >&5
2944 cat conftest.
$ac_ext >&5
2946 eval "ac_cv_lib_$ac_lib_var=no"
2949 LIBS
="$ac_save_LIBS"
2952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2953 echo "$ac_t""yes" 1>&6
2954 EXTRA_TEST_LIBS
="$EXTRA_TEST_LIBS -ldl"
2956 echo "$ac_t""no" 1>&6
2964 target_all
=libgcjgc.la
2969 # Check whether --with-ecos or --without-ecos was given.
2970 if test "${with_ecos+set}" = set; then
2971 withval
="$with_ecos"
2972 TARGET_ECOS
="$with_ecos"
2982 case "$TARGET_ECOS" in
2986 cat >> confdefs.h
<<\EOF
2990 CXXINCLUDES
="-I${TARGET_ECOS}/include"
2991 addobjs
="$addobjs ecos.lo"
2995 if test "${enable_cplusplus}" = yes; then
2996 addincludes
="$addincludes include/gc_cpp.h include/gc_allocator.h"
2997 addtests
="$addtests test_cpp"
3002 if test "${enable_cplusplus}" = yes; then
3015 # Configuration of shared libraries
3017 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
3018 echo "configure:3019: checking whether to build shared libraries" >&5
3019 # Check whether --enable-shared or --disable-shared was given.
3020 if test "${enable_shared+set}" = set; then
3021 enableval
="$enable_shared"
3022 p
=${PACKAGE-default}
3024 yes) enable_shared
=yes ;;
3025 no
) enable_shared
=no
;;
3028 # Look at the argument we got. We use all the common list separators.
3029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3030 for pkg
in $enableval; do
3031 if test "X$pkg" = "X$p"; then
3046 echo "$ac_t""no" 1>&6
3049 echo "$ac_t""yes" 1>&6
3053 # Configuration of machine-dependent code
3055 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
3056 # anything else that creates trampolines in gc-allocated memory)
3057 # always needs exec permission. The exceptions to this are IA-64 and
3058 # some variations of Power PC, where trampolines don't contain
3061 echo $ac_n "checking which machine-dependent code should be used""... $ac_c" 1>&6
3062 echo "configure:3063: checking which machine-dependent code should be used" >&5
3066 machdep
="alpha_mach_dep.lo"
3067 if test x
"${ac_cv_lib_dl_dlopen}" != xyes
; then
3068 echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2
3072 machdep
="alpha_mach_dep.lo"
3074 i?
86-*-solaris2.
[89] | i?
86-*-solaris2.1?
)
3075 cat >> confdefs.h
<<\EOF
3076 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
3081 machdep
="mips_ultrix_mach_dep.lo"
3082 cat >> confdefs.h
<<\EOF
3083 #define STACKBASE __stackbase
3086 cat >> confdefs.h
<<\EOF
3087 #define DATASTART_IS_ETEXT 1
3092 machdep
="mips_ultrix_mach-dep.lo"
3094 mips-nec-sysv
*|mips-unknown-sysv
*)
3099 machdep
="mips_sgi_mach_dep.lo"
3102 machdep
="sparc_netbsd_mach_dep.lo"
3104 sparc-sun-solaris2.3
)
3105 machdep
="sparc_mach_dep.lo"
3106 cat >> confdefs.h
<<\EOF
3107 #define SUNOS53_SHARED_LIB 1
3111 sparc-sun-solaris2.
*)
3112 machdep
="sparc_mach_dep.lo"
3115 cat >> confdefs.h
<<\EOF
3116 #define NO_EXECUTE_PERMISSION 1
3119 machdep
="mach_dep.lo ia64_save_regs_in_stack.lo"
3122 if test x
"$machdep" = x
; then
3123 echo "$ac_t""$machdep" 1>&6
3124 machdep
="mach_dep.lo"
3126 addobjs
="$addobjs $machdep"
3139 # Check for AViiON Machines running DGUX
3141 echo $ac_n "checking if host is AViiON running DGUX""... $ac_c" 1>&6
3142 echo "configure:3143: checking if host is AViiON running DGUX" >&5
3144 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3145 echo "configure:3146: checking how to run the C preprocessor" >&5
3146 # On Suns, sometimes $CPP names a directory.
3147 if test -n "$CPP" && test -d "$CPP"; then
3150 if test -z "$CPP"; then
3151 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 # This must be in double quotes, not single quotes, because CPP may get
3155 # substituted into the Makefile and "${CC-cc}" will confuse make.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp.
3159 cat > conftest.
$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3165 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3166 { (eval echo configure
:3167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3167 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3168 if test -z "$ac_err"; then
3172 echo "configure: failed program was:" >&5
3173 cat conftest.
$ac_ext >&5
3175 CPP
="${CC-cc} -E -traditional-cpp"
3176 cat > conftest.
$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3182 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3183 { (eval echo configure
:3184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3184 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3185 if test -z "$ac_err"; then
3189 echo "configure: failed program was:" >&5
3190 cat conftest.
$ac_ext >&5
3192 CPP
="${CC-cc} -nologo -E"
3193 cat > conftest.
$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3199 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3200 { (eval echo configure
:3201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3201 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3202 if test -z "$ac_err"; then
3206 echo "configure: failed program was:" >&5
3207 cat conftest.
$ac_ext >&5
3216 ac_cv_prog_CPP
="$CPP"
3218 CPP
="$ac_cv_prog_CPP"
3220 ac_cv_prog_CPP
="$CPP"
3222 echo "$ac_t""$CPP" 1>&6
3224 ac_safe
=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
3225 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
3226 echo "configure:3227: checking for sys/dg_sys_info.h" >&5
3227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 cat > conftest.
$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 #include <sys/dg_sys_info.h>
3235 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3236 { (eval echo configure
:3237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3237 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3238 if test -z "$ac_err"; then
3240 eval "ac_cv_header_$ac_safe=yes"
3243 echo "configure: failed program was:" >&5
3244 cat conftest.
$ac_ext >&5
3246 eval "ac_cv_header_$ac_safe=no"
3250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3251 echo "$ac_t""yes" 1>&6
3254 echo "$ac_t""no" 1>&6
3258 echo "$ac_t""$ac_is_dgux" 1>&6
3259 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
3260 if test $ac_is_dgux = yes; then
3261 if test "$enable_full_debug" = "yes"; then
3262 CFLAGS
="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3263 CXXFLAGS
="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3265 CFLAGS
="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3266 CXXFLAGS
="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3272 # Check whether --with-target-subdir or --without-target-subdir was given.
3273 if test "${with_target_subdir+set}" = set; then
3274 withval
="$with_target_subdir"
3278 # Check whether --with-cross-host or --without-cross-host was given.
3279 if test "${with_cross_host+set}" = set; then
3280 withval
="$with_cross_host"
3285 # automake wants to see AC_EXEEXT. But we don't need it. And having
3286 # it is actually a problem, because the compiler we're passed can't
3287 # necessarily do a full link. So we fool automake here.
3289 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
3290 # to nothing, so nothing would remain between `then' and `fi' if it
3291 # were not for the `:' below.
3295 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3296 echo "configure:3297: checking for executable suffix" >&5
3297 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3304 echo 'int main () { return 0; }' > conftest.
$ac_ext
3306 if { (eval echo configure
:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3307 for file in conftest.
*; do
3309 *.
$ac_ext |
*.c |
*.o |
*.obj
) ;;
3310 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3314 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3317 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3322 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3323 echo "$ac_t""${ac_cv_exeext}" 1>&6
3328 echo $ac_n "checking whether Solaris gcc optimization fix is necessary""... $ac_c" 1>&6
3329 echo "configure:3330: checking whether Solaris gcc optimization fix is necessary" >&5
3331 sparc-sun-solaris2
*|
*aix
*)
3332 if test "$GCC" = yes; then
3333 echo "$ac_t""yes" 1>&6
3335 for i
in $CFLAGS; do
3340 new_CFLAGS
="$new_CFLAGS $i"
3344 CFLAGS
="$new_CFLAGS"
3346 echo "$ac_t""no" 1>&6
3349 *) echo "$ac_t""no" 1>&6 ;;
3355 cat >> confdefs.h
<<\EOF
3359 cat >> confdefs.h
<<\EOF
3360 #define NO_SIGNALS 1
3363 cat >> confdefs.h
<<\EOF
3364 #define ALL_INTERIOR_POINTERS 1
3368 cat >> confdefs.h
<<\EOF
3369 #define JAVA_FINALIZATION 1
3372 cat >> confdefs.h
<<\EOF
3373 #define GC_GCJ_SUPPORT 1
3376 cat >> confdefs.h
<<\EOF
3377 #define ATOMIC_UNCOLLECTABLE 1
3381 if test -n "${with_cross_host}"; then
3382 cat >> confdefs.h
<<\EOF
3386 cat >> confdefs.h
<<\EOF
3387 #define NO_DEBUGGING 1
3392 # Check whether --enable-full-debug or --disable-full-debug was given.
3393 if test "${enable_full_debug+set}" = set; then
3394 enableval
="$enable_full_debug"
3395 if test "$enable_full_debug" = "yes"; then
3396 echo "configure: warning: "Must define GC_DEBUG and use debug alloc.
in clients.
"" 1>&2
3397 cat >> confdefs.h
<<\EOF
3398 #define KEEP_BACK_PTRS 1
3401 cat >> confdefs.h
<<\EOF
3402 #define DBG_HDRS_ALL 1
3407 cat >> confdefs.h
<<\EOF
3408 #define MAKE_BACK_GRAPH 1
3412 x86-
*-linux* | i586-
*-linux* | i686-
*-linux* | x86_64-
*-linux* )
3413 cat >> confdefs.h
<<\EOF
3414 #define MAKE_BACK_GRAPH 1
3417 echo "configure: warning: "Client must not use
-fomit-frame-pointer.
"" 1>&2
3418 cat >> confdefs.h
<<\EOF
3419 #define SAVE_CALL_COUNT 8
3424 cat >> confdefs.h
<<\EOF
3425 #define MAKE_BACK_GRAPH 1
3434 if test -n "$with_cross_host" &&
3435 test x
"$with_cross_host" != x
"no"; then
3436 toolexecdir
='$(exec_prefix)/$(target_alias)'
3437 toolexeclibdir
='$(toolexecdir)/lib'
3439 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3440 toolexeclibdir
='$(libdir)'
3442 multi_os_directory
=`$CC -print-multi-os-directory`
3443 case $multi_os_directory in
3444 .
) ;; # Avoid trailing /.
3445 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3450 if test "${multilib}" = "yes"; then
3451 multilib_arg
="--enable-multilib"
3457 cat > confcache
<<\EOF
3458 # This file is a shell script that caches the results of configure
3459 # tests run on this system so they can be shared between configure
3460 # scripts and configure runs. It is not useful on other systems.
3461 # If it contains results you don't want to keep, you may remove or edit it.
3463 # By default, configure uses ./config.cache as the cache file,
3464 # creating it if it does not exist already. You can give configure
3465 # the --cache-file=FILE option to use a different cache file; that is
3466 # what configure does when it calls configure scripts in
3467 # subdirectories, so they share the cache.
3468 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3469 # config.status only pays attention to the cache file if you give it the
3470 # --recheck option to rerun configure.
3473 # The following way of writing the cache mishandles newlines in values,
3474 # but we know of no workaround that is simple, portable, and efficient.
3475 # So, don't put newlines in cache variables' values.
3476 # Ultrix sh set writes to stderr and can't be redirected directly,
3477 # and sets the high bit in the cache file unless we assign to the vars.
3479 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3481 # `set' does not quote correctly, so add quotes (double-quote substitution
3482 # turns \\\\ into \\, and sed turns \\ into \).
3484 -e "s/'/'\\\\''/g" \
3485 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3488 # `set' quotes correctly as required by POSIX, so do not add quotes.
3489 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3492 if cmp -s $cache_file confcache
; then
3495 if test -w $cache_file; then
3496 echo "updating cache $cache_file"
3497 cat confcache
> $cache_file
3499 echo "not updating unwritable cache $cache_file"
3504 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3506 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3507 # Let make expand exec_prefix.
3508 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3510 # Any assignment to VPATH causes Sun make to only execute
3511 # the first set of double-colon rules, so remove it if not needed.
3512 # If there is a colon in the path, we need to keep it.
3513 if test "x$srcdir" = x.
; then
3514 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3517 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3519 # Transform confdefs.h into DEFS.
3520 # Protect against shell expansion while executing Makefile rules.
3521 # Protect against Makefile macro expansion.
3522 cat > conftest.defs
<<\EOF
3523 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3524 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3529 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
3533 # Without the "./", some shells look in PATH for config.status.
3534 : ${CONFIG_STATUS=./config.status}
3536 echo creating $CONFIG_STATUS
3537 rm -f $CONFIG_STATUS
3538 cat > $CONFIG_STATUS <<EOF
3540 # Generated automatically by configure.
3541 # Run this file to recreate the current configuration.
3542 # This directory was configured as follows,
3543 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
3545 # $0 $ac_configure_args
3547 # Compiler output produced by configure, useful for debugging
3548 # configure, is in ./config.log if it exists.
3550 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3553 case "\$ac_option" in
3554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3555 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3556 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3557 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3558 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3560 -help | --help | --hel | --he | --h)
3561 echo "\$ac_cs_usage"; exit 0 ;;
3562 *) echo "\$ac_cs_usage"; exit 1 ;;
3566 ac_given_srcdir=$srcdir
3567 ac_given_INSTALL="$INSTALL"
3569 trap 'rm -fr `echo "Makefile include/Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3571 cat >> $CONFIG_STATUS <<EOF
3573 # Protect against being on the right side of a sed subst in config.status.
3574 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3575 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3579 s%@CFLAGS@%$CFLAGS%g
3580 s%@CPPFLAGS@%$CPPFLAGS%g
3581 s%@CXXFLAGS@%$CXXFLAGS%g
3582 s%@FFLAGS@%$FFLAGS%g
3584 s%@LDFLAGS@%$LDFLAGS%g
3586 s%@exec_prefix@%$exec_prefix%g
3587 s%@prefix@%$prefix%g
3588 s%@program_transform_name@%$program_transform_name%g
3589 s%@bindir@%$bindir%g
3590 s%@sbindir@%$sbindir%g
3591 s%@libexecdir@%$libexecdir%g
3592 s%@datadir@%$datadir%g
3593 s%@sysconfdir@%$sysconfdir%g
3594 s%@sharedstatedir@%$sharedstatedir%g
3595 s%@localstatedir@%$localstatedir%g
3596 s%@libdir@%$libdir%g
3597 s%@includedir@%$includedir%g
3598 s%@oldincludedir@%$oldincludedir%g
3599 s%@infodir@%$infodir%g
3600 s%@mandir@%$mandir%g
3601 s%@gc_basedir@%$gc_basedir%g
3603 s%@host_alias@%$host_alias%g
3604 s%@host_cpu@%$host_cpu%g
3605 s%@host_vendor@%$host_vendor%g
3606 s%@host_os@%$host_os%g
3607 s%@target@%$target%g
3608 s%@target_alias@%$target_alias%g
3609 s%@target_cpu@%$target_cpu%g
3610 s%@target_vendor@%$target_vendor%g
3611 s%@target_os@%$target_os%g
3613 s%@build_alias@%$build_alias%g
3614 s%@build_cpu@%$build_cpu%g
3615 s%@build_vendor@%$build_vendor%g
3616 s%@build_os@%$build_os%g
3617 s%@mkinstalldirs@%$mkinstalldirs%g
3618 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3619 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3620 s%@INSTALL_DATA@%$INSTALL_DATA%g
3621 s%@PACKAGE@%$PACKAGE%g
3622 s%@VERSION@%$VERSION%g
3623 s%@ACLOCAL@%$ACLOCAL%g
3624 s%@AUTOCONF@%$AUTOCONF%g
3625 s%@AUTOMAKE@%$AUTOMAKE%g
3626 s%@AUTOHEADER@%$AUTOHEADER%g
3627 s%@MAKEINFO@%$MAKEINFO%g
3628 s%@SET_MAKE@%$SET_MAKE%g
3633 s%@RANLIB@%$RANLIB%g
3634 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3635 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3637 s%@EXEEXT@%$EXEEXT%g
3638 s%@GC_CFLAGS@%$GC_CFLAGS%g
3640 s%@OBJEXT@%$OBJEXT%g
3642 s%@LIBTOOL@%$LIBTOOL%g
3643 s%@CXXCPP@%$CXXCPP%g
3644 s%@THREADLIBS@%$THREADLIBS%g
3645 s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
3646 s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
3647 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3648 s%@target_all@%$target_all%g
3649 s%@CPLUSPLUS_TRUE@%$CPLUSPLUS_TRUE%g
3650 s%@CPLUSPLUS_FALSE@%$CPLUSPLUS_FALSE%g
3651 s%@INCLUDES@%$INCLUDES%g
3652 s%@CXXINCLUDES@%$CXXINCLUDES%g
3653 s%@addobjs@%$addobjs%g
3654 s%@addincludes@%$addincludes%g
3655 s%@addlibs@%$addlibs%g
3656 s%@addtests@%$addtests%g
3658 s%@MY_CFLAGS@%$MY_CFLAGS%g
3659 s%@toolexecdir@%$toolexecdir%g
3660 s%@toolexeclibdir@%$toolexeclibdir%g
3665 cat >> $CONFIG_STATUS <<\EOF
3667 # Split the substitutions into bite-sized pieces for seds with
3668 # small command number limits, like on Digital OSF/1 and HP-UX.
3669 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3670 ac_file=1 # Number of current file.
3671 ac_beg=1 # First line for current file.
3672 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3675 while $ac_more_lines; do
3676 if test $ac_beg -gt 1; then
3677 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3679 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3681 if test ! -s conftest.s$ac_file; then
3683 rm -f conftest.s$ac_file
3685 if test -z "$ac_sed_cmds"; then
3686 ac_sed_cmds="sed -f conftest.s$ac_file"
3688 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3690 ac_file=`expr $ac_file + 1`
3692 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3695 if test -z "$ac_sed_cmds"; then
3700 cat >> $CONFIG_STATUS <<EOF
3702 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"}
3704 cat >> $CONFIG_STATUS <<\EOF
3705 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3708 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
3709 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
3710 *) ac_file_in="${ac_file}.in" ;;
3713 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3715 # Remove last slash and all that follows it. Not all systems have dirname.
3716 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3717 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3718 # The file is in a subdirectory.
3719 test ! -d "$ac_dir" && mkdir "$ac_dir"
3720 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
3721 # A "../" for each directory in $ac_dir_suffix.
3722 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
3724 ac_dir_suffix= ac_dots=
3727 case "$ac_given_srcdir" in
3729 if test -z "$ac_dots"; then top_srcdir=.
3730 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
3731 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3733 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3734 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3737 case "$ac_given_INSTALL" in
3738 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3739 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3742 echo creating "$ac_file"
3744 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
3746 *Makefile*) ac_comsub="1i\\
3747 # $configure_input" ;;
3751 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3753 s%@configure_input@%$configure_input%g
3754 s%@srcdir@%$srcdir%g
3755 s%@top_srcdir@%$top_srcdir%g
3756 s%@INSTALL@%$INSTALL%g
3757 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3762 cat >> $CONFIG_STATUS <<EOF
3766 with_multisubdir=${with_multisubdir}
3767 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3768 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3769 gc_basedir=${gc_basedir}
3771 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
3773 INCLUDES="$INCLUDES"
3776 cat >> $CONFIG_STATUS <<\EOF
3778 echo "$INCLUDES $DEFS" > boehm-cflags
3780 if test -n "$CONFIG_FILES"; then
3781 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3782 ac_file=Makefile . ${gc_basedir}/../config-ml.in
3786 chmod +x $CONFIG_STATUS
3787 rm -fr confdefs* $ac_clean_files
3788 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1