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=no]"
46 --enable-full-debug include full support for pointer backtracing etc."
48 # Initialize some variables set by options.
49 # The variables have the same names as the options, with
50 # dashes changed to underlines.
52 cache_file
=.
/config.cache
61 program_transform_name
=s
,x
,x
,
69 bindir
='${exec_prefix}/bin'
70 sbindir
='${exec_prefix}/sbin'
71 libexecdir
='${exec_prefix}/libexec'
72 datadir
='${prefix}/share'
73 sysconfdir
='${prefix}/etc'
74 sharedstatedir
='${prefix}/com'
75 localstatedir
='${prefix}/var'
76 libdir
='${exec_prefix}/lib'
77 includedir
='${prefix}/include'
78 oldincludedir
='/usr/include'
79 infodir
='${prefix}/info'
80 mandir
='${prefix}/man'
82 # Initialize some other variables.
85 SHELL
=${CONFIG_SHELL-/bin/sh}
86 # Maximum number of lines to put in a shell here document.
93 # If the previous option needs an argument, assign it.
94 if test -n "$ac_prev"; then
95 eval "$ac_prev=\$ac_option"
101 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
105 # Accept the important Cygnus configure options, so we can diagnose typos.
109 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
111 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
112 bindir
="$ac_optarg" ;;
114 -build |
--build |
--buil |
--bui |
--bu)
116 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
117 build
="$ac_optarg" ;;
119 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
120 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
121 ac_prev
=cache_file
;;
122 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
123 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
124 cache_file
="$ac_optarg" ;;
126 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
128 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
130 datadir
="$ac_optarg" ;;
132 -disable-* |
--disable-*)
133 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}=no" ;;
141 -enable-* |
--enable-*)
142 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
143 # Reject names that are not valid shell variable names.
144 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
145 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}='$ac_optarg'" ;;
154 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
155 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
156 |
--exec |
--exe |
--ex)
157 ac_prev
=exec_prefix
;;
158 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
159 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
160 |
--exec=* |
--exe=* |
--ex=*)
161 exec_prefix
="$ac_optarg" ;;
163 -gas |
--gas |
--ga |
--g)
164 # Obsolete; use --with-gas.
167 -help |
--help |
--hel |
--he)
168 # Omit some internal or obsolete options to make the list less imposing.
169 # This message is too long to be a string in the A/UX 3.1 sh.
171 Usage: configure [options] [host]
172 Options: [defaults in brackets after descriptions]
174 --cache-file=FILE cache test results in FILE
175 --help print this message
176 --no-create do not create output files
177 --quiet, --silent do not print \`checking...' messages
178 --version print the version of autoconf that created configure
179 Directory and file names:
180 --prefix=PREFIX install architecture-independent files in PREFIX
182 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
184 --bindir=DIR user executables in DIR [EPREFIX/bin]
185 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
186 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
187 --datadir=DIR read-only architecture-independent data in DIR
189 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
190 --sharedstatedir=DIR modifiable architecture-independent data in DIR
192 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
193 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
194 --includedir=DIR C header files in DIR [PREFIX/include]
195 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
196 --infodir=DIR info documentation in DIR [PREFIX/info]
197 --mandir=DIR man documentation in DIR [PREFIX/man]
198 --srcdir=DIR find the sources in DIR [configure dir or ..]
199 --program-prefix=PREFIX prepend PREFIX to installed program names
200 --program-suffix=SUFFIX append SUFFIX to installed program names
201 --program-transform-name=PROGRAM
202 run sed PROGRAM on installed program names
206 --build=BUILD configure for building on BUILD [BUILD=HOST]
207 --host=HOST configure for HOST [guessed]
208 --target=TARGET configure for TARGET [TARGET=HOST]
209 Features and packages:
210 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
211 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
212 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
213 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
214 --x-includes=DIR X include files are in DIR
215 --x-libraries=DIR X library files are in DIR
217 if test -n "$ac_help"; then
218 echo "--enable and --with options recognized:$ac_help"
222 -host |
--host |
--hos |
--ho)
224 -host=* |
--host=* |
--hos=* |
--ho=*)
227 -includedir |
--includedir |
--includedi |
--included |
--include \
228 |
--includ |
--inclu |
--incl |
--inc)
229 ac_prev
=includedir
;;
230 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
231 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
232 includedir
="$ac_optarg" ;;
234 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
236 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
237 infodir
="$ac_optarg" ;;
239 -libdir |
--libdir |
--libdi |
--libd)
241 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
242 libdir
="$ac_optarg" ;;
244 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
245 |
--libexe |
--libex |
--libe)
246 ac_prev
=libexecdir
;;
247 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
248 |
--libexe=* |
--libex=* |
--libe=*)
249 libexecdir
="$ac_optarg" ;;
251 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
252 |
--localstate |
--localstat |
--localsta |
--localst \
253 |
--locals |
--local |
--loca |
--loc |
--lo)
254 ac_prev
=localstatedir
;;
255 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
256 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
257 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
258 localstatedir
="$ac_optarg" ;;
260 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
262 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
263 mandir
="$ac_optarg" ;;
266 # Obsolete; use --without-fp.
269 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
273 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
274 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
277 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
278 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
279 |
--oldin |
--oldi |
--old |
--ol |
--o)
280 ac_prev
=oldincludedir
;;
281 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
282 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
283 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
284 oldincludedir
="$ac_optarg" ;;
286 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
288 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
289 prefix
="$ac_optarg" ;;
291 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
292 |
--program-pre |
--program-pr |
--program-p)
293 ac_prev
=program_prefix
;;
294 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
295 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
296 program_prefix
="$ac_optarg" ;;
298 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
299 |
--program-suf |
--program-su |
--program-s)
300 ac_prev
=program_suffix
;;
301 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
302 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
303 program_suffix
="$ac_optarg" ;;
305 -program-transform-name |
--program-transform-name \
306 |
--program-transform-nam |
--program-transform-na \
307 |
--program-transform-n |
--program-transform- \
308 |
--program-transform |
--program-transfor \
309 |
--program-transfo |
--program-transf \
310 |
--program-trans |
--program-tran \
311 |
--progr-tra |
--program-tr |
--program-t)
312 ac_prev
=program_transform_name
;;
313 -program-transform-name=* |
--program-transform-name=* \
314 |
--program-transform-nam=* |
--program-transform-na=* \
315 |
--program-transform-n=* |
--program-transform-=* \
316 |
--program-transform=* |
--program-transfor=* \
317 |
--program-transfo=* |
--program-transf=* \
318 |
--program-trans=* |
--program-tran=* \
319 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
320 program_transform_name
="$ac_optarg" ;;
322 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
323 |
-silent |
--silent |
--silen |
--sile |
--sil)
326 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
328 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
330 sbindir
="$ac_optarg" ;;
332 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
333 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
334 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
336 ac_prev
=sharedstatedir
;;
337 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
338 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
339 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
341 sharedstatedir
="$ac_optarg" ;;
343 -site |
--site |
--sit)
345 -site=* |
--site=* |
--sit=*)
348 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
350 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
351 srcdir
="$ac_optarg" ;;
353 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
354 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
355 ac_prev
=sysconfdir
;;
356 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
357 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
358 sysconfdir
="$ac_optarg" ;;
360 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
362 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
363 target
="$ac_optarg" ;;
365 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
368 -version |
--version |
--versio |
--versi |
--vers)
369 echo "configure generated by autoconf version 2.13"
373 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package
=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}='$ac_optarg'" ;;
385 -without-* |
--without-*)
386 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package
=`echo $ac_package| sed 's/-/_/g'`
392 eval "with_${ac_package}=no" ;;
395 # Obsolete; use --with-x.
398 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
399 |
--x-incl |
--x-inc |
--x-in |
--x-i)
400 ac_prev
=x_includes
;;
401 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
402 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
403 x_includes
="$ac_optarg" ;;
405 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
406 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
407 ac_prev
=x_libraries
;;
408 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
409 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
410 x_libraries
="$ac_optarg" ;;
412 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
416 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
417 echo "configure: warning: $ac_option: invalid host type" 1>&2
419 if test "x$nonopt" != xNONE
; then
420 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
428 if test -n "$ac_prev"; then
429 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
432 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
434 # File descriptor usage:
437 # 2 errors and warnings
438 # 3 some systems may open it to /dev/tty
439 # 4 used on the Kubota Titan
440 # 6 checking for... messages and results
441 # 5 compiler messages saved in config.log
442 if test "$silent" = yes; then
450 This file contains any messages produced by compilers while
451 running configure, to aid debugging if configure makes a mistake.
454 # Strip out --no-create and --no-recursion so they do not pile up.
455 # Also quote any args containing shell metacharacters.
460 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
461 |
--no-cr |
--no-c) ;;
462 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
463 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
464 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
465 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
466 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
471 # Only set these to C if already set. These must not be set unconditionally
472 # because not all systems understand e.g. LANG=C (notably SCO).
473 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
474 # Non-C LC_CTYPE values break the ctype check.
475 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
476 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
477 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
478 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
480 # confdefs.h avoids OS command line length limits that DEFS can exceed.
481 rm -rf conftest
* confdefs.h
482 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
485 # A filename unique to this package, relative to the directory that
486 # configure is in, which we can look for to find out if srcdir is correct.
487 ac_unique_file
=gcj_mlc.c
489 # Find the source files, if location was not specified.
490 if test -z "$srcdir"; then
491 ac_srcdir_defaulted
=yes
492 # Try the directory containing this script, then its parent.
494 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
495 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
497 if test ! -r $srcdir/$ac_unique_file; then
501 ac_srcdir_defaulted
=no
503 if test ! -r $srcdir/$ac_unique_file; then
504 if test "$ac_srcdir_defaulted" = yes; then
505 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
507 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
510 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
512 # Prefer explicitly selected file to automatically selected ones.
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE
; then
515 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
517 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520 for ac_site_file
in $CONFIG_SITE; do
521 if test -r "$ac_site_file"; then
522 echo "loading site script $ac_site_file"
527 if test -r "$cache_file"; then
528 echo "loading cache $cache_file"
531 echo "creating cache $cache_file"
536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
537 ac_cpp
='$CPP $CPPFLAGS'
538 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
539 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
540 cross_compiling
=$ac_cv_prog_cc_cross
544 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
545 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
546 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
553 ac_n
= ac_c
='\c' ac_t
=
559 for ac_dir
in .
$srcdir/.
; do
560 if test -f $ac_dir/install-sh
; then
562 ac_install_sh
="$ac_aux_dir/install-sh -c"
564 elif test -f $ac_dir/install.sh
; then
566 ac_install_sh
="$ac_aux_dir/install.sh -c"
570 if test -z "$ac_aux_dir"; then
571 { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; }
573 ac_config_guess
=$ac_aux_dir/config.guess
574 ac_config_sub
=$ac_aux_dir/config.sub
575 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
578 # Find a good install program. We prefer a C program (faster),
579 # so one script is as good as another. But avoid the broken or
580 # incompatible versions:
581 # SysV /etc/install, /usr/sbin/install
582 # SunOS /usr/etc/install
585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
588 # ./install, which can be erroneously created by make from ./install.sh.
589 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
590 echo "configure:591: checking for a BSD compatible install" >&5
591 if test -z "$INSTALL"; then
592 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
595 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
596 for ac_dir
in $PATH; do
597 # Account for people who put trailing slashes in PATH elements.
599 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
601 # OSF1 and SCO ODT 3.0 have their own names for install.
602 # Don't use installbsd from OSF since it installs stuff as root
604 for ac_prog
in ginstall scoinst
install; do
605 if test -f $ac_dir/$ac_prog; then
606 if test $ac_prog = install &&
607 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
608 # AIX install. It has an incompatible calling convention.
611 ac_cv_path_install
="$ac_dir/$ac_prog -c"
622 if test "${ac_cv_path_install+set}" = set; then
623 INSTALL
="$ac_cv_path_install"
625 # As a last resort, use the slow shell script. We don't cache a
626 # path for INSTALL within a source directory, because that will
627 # break other packages using the cache if that directory is
628 # removed, or if the path is relative.
629 INSTALL
="$ac_install_sh"
632 echo "$ac_t""$INSTALL" 1>&6
634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
635 # It thinks the first close brace ends the variable substitution.
636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
640 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
642 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
643 echo "configure:644: checking whether build environment is sane" >&5
646 echo timestamp
> conftestfile
647 # Do `set' in a subshell so we don't clobber the current shell's
648 # arguments. Must try -L first in case configure is actually a
649 # symlink; some systems play weird games with the mod time of symlinks
650 # (eg FreeBSD returns the mod time of the symlink's containing
653 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
654 if test "$*" = "X"; then
656 set X
`ls -t $srcdir/configure conftestfile`
658 if test "$*" != "X $srcdir/configure conftestfile" \
659 && test "$*" != "X conftestfile $srcdir/configure"; then
661 # If neither matched, then we have a broken ls. This can happen
662 # if, for instance, CONFIG_SHELL is bash and it inherits a
663 # broken ls alias from the environment. This has actually
664 # happened. Such a system could not be considered "sane".
665 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
666 alias in your environment" 1>&2; exit 1; }
669 test "$2" = conftestfile
675 { echo "configure: error: newly created file is older than distributed files!
676 Check your system clock" 1>&2; exit 1; }
679 echo "$ac_t""yes" 1>&6
680 if test "$program_transform_name" = s
,x
,x
,; then
681 program_transform_name
=
683 # Double any \ or $. echo might interpret backslashes.
684 cat <<\EOF_SED
> conftestsed
685 s
,\\,\\\\,g
; s
,\$
,$$
,g
687 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
690 test "$program_prefix" != NONE
&&
691 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
692 # Use a double $ so make ignores it.
693 test "$program_suffix" != NONE
&&
694 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
696 # sed with no file args requires a program.
697 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
699 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
700 echo "configure:701: checking whether ${MAKE-make} sets \${MAKE}" >&5
701 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
702 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
705 cat > conftestmake
<<\EOF
707 @
echo 'ac_maketemp="${MAKE}"'
709 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
710 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
711 if test -n "$ac_maketemp"; then
712 eval ac_cv_prog_make_
${ac_make}_set
=yes
714 eval ac_cv_prog_make_
${ac_make}_set
=no
718 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
719 echo "$ac_t""yes" 1>&6
722 echo "$ac_t""no" 1>&6
723 SET_MAKE
="MAKE=${MAKE-make}"
726 if test $host != $build; then
727 ac_tool_prefix
=${host_alias}-
732 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
733 echo "configure:734: checking for Cygwin environment" >&5
734 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
737 cat > conftest.
$ac_ext <<EOF
738 #line 739 "configure"
739 #include "confdefs.h"
744 #define __CYGWIN__ __CYGWIN32__
749 if { (eval echo configure
:750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
753 echo "configure: failed program was:" >&5
754 cat conftest.
$ac_ext >&5
762 echo "$ac_t""$ac_cv_cygwin" 1>&6
764 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
765 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
766 echo "configure:767: checking for mingw32 environment" >&5
767 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 cat > conftest.
$ac_ext <<EOF
771 #line 772 "configure"
772 #include "confdefs.h"
778 if { (eval echo configure
:779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
782 echo "configure: failed program was:" >&5
783 cat conftest.
$ac_ext >&5
791 echo "$ac_t""$ac_cv_mingw32" 1>&6
793 test "$ac_cv_mingw32" = yes && MINGW32
=yes
795 # Check whether --enable-multilib or --disable-multilib was given.
796 if test "${enable_multilib+set}" = set; then
797 enableval
="$enable_multilib"
798 case "${enableval}" in
801 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
808 if test "${srcdir}" = "."; then
809 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
810 gc_basedir
="${srcdir}/${with_multisrctop}../."
812 gc_basedir
="${srcdir}/${with_multisrctop}."
815 gc_basedir
="${srcdir}/."
819 for ac_dir
in $gc_basedir/..
$srcdir/$gc_basedir/..
; do
820 if test -f $ac_dir/install-sh
; then
822 ac_install_sh
="$ac_aux_dir/install-sh -c"
824 elif test -f $ac_dir/install.sh
; then
826 ac_install_sh
="$ac_aux_dir/install.sh -c"
830 if test -z "$ac_aux_dir"; then
831 { echo "configure: error: can not find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." 1>&2; exit 1; }
833 ac_config_guess
=$ac_aux_dir/config.guess
834 ac_config_sub
=$ac_aux_dir/config.sub
835 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
838 # This overrides the previous occurrence for automake, but not for
839 # autoconf, which is exactly what we want.
841 for ac_dir
in ..
$srcdir/..
; do
842 if test -f $ac_dir/install-sh
; then
844 ac_install_sh
="$ac_aux_dir/install-sh -c"
846 elif test -f $ac_dir/install.sh
; then
848 ac_install_sh
="$ac_aux_dir/install.sh -c"
852 if test -z "$ac_aux_dir"; then
853 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
855 ac_config_guess
=$ac_aux_dir/config.guess
856 ac_config_sub
=$ac_aux_dir/config.sub
857 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
862 # Do some error checking and defaulting for the host and target type.
864 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
867 # 1. You are not allowed to specify --host, --target, and nonopt at the
869 # 2. Host defaults to nonopt.
870 # 3. If nonopt is not specified, then host defaults to the current host,
871 # as determined by config.guess.
872 # 4. Target and build default to nonopt.
873 # 5. If nonopt is not specified, then target and build default to host.
875 # The aliases save the names the user supplied, while $host etc.
876 # will get canonicalized.
877 case $host---$target---$nonopt in
878 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
879 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
883 # Make sure we can run config.sub.
884 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
885 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
888 echo $ac_n "checking host system type""... $ac_c" 1>&6
889 echo "configure:890: checking host system type" >&5
892 case "$host_alias" in
896 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
897 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
899 *) host_alias
=$nonopt ;;
903 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
904 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
905 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
906 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
907 echo "$ac_t""$host" 1>&6
909 echo $ac_n "checking target system type""... $ac_c" 1>&6
910 echo "configure:911: checking target system type" >&5
913 case "$target_alias" in
916 NONE
) target_alias
=$host_alias ;;
917 *) target_alias
=$nonopt ;;
921 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
922 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
923 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
924 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
925 echo "$ac_t""$target" 1>&6
927 echo $ac_n "checking build system type""... $ac_c" 1>&6
928 echo "configure:929: checking build system type" >&5
931 case "$build_alias" in
934 NONE
) build_alias
=$host_alias ;;
935 *) build_alias
=$nonopt ;;
939 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
940 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
941 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
942 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
943 echo "$ac_t""$build" 1>&6
945 test "$host_alias" != "$target_alias" &&
946 test "$program_prefix$program_suffix$program_transform_name" = \
948 program_prefix
=${target_alias}-
951 # This works around an automake problem.
952 mkinstalldirs
="`cd $ac_aux_dir && pwd`/mkinstalldirs"
960 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
961 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
966 missing_dir
=`cd $ac_aux_dir && pwd`
967 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
968 echo "configure:969: checking for working aclocal" >&5
969 # Run test in a subshell; some versions of sh will print an error if
970 # an executable is not found, even if stderr is redirected.
971 # Redirect stdin to placate older versions of autoconf. Sigh.
972 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
974 echo "$ac_t""found" 1>&6
976 ACLOCAL
="$missing_dir/missing aclocal"
977 echo "$ac_t""missing" 1>&6
980 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
981 echo "configure:982: checking for working autoconf" >&5
982 # Run test in a subshell; some versions of sh will print an error if
983 # an executable is not found, even if stderr is redirected.
984 # Redirect stdin to placate older versions of autoconf. Sigh.
985 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
987 echo "$ac_t""found" 1>&6
989 AUTOCONF
="$missing_dir/missing autoconf"
990 echo "$ac_t""missing" 1>&6
993 echo $ac_n "checking for working automake""... $ac_c" 1>&6
994 echo "configure:995: checking for working automake" >&5
995 # Run test in a subshell; some versions of sh will print an error if
996 # an executable is not found, even if stderr is redirected.
997 # Redirect stdin to placate older versions of autoconf. Sigh.
998 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1000 echo "$ac_t""found" 1>&6
1002 AUTOMAKE
="$missing_dir/missing automake"
1003 echo "$ac_t""missing" 1>&6
1006 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1007 echo "configure:1008: checking for working autoheader" >&5
1008 # Run test in a subshell; some versions of sh will print an error if
1009 # an executable is not found, even if stderr is redirected.
1010 # Redirect stdin to placate older versions of autoconf. Sigh.
1011 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1012 AUTOHEADER
=autoheader
1013 echo "$ac_t""found" 1>&6
1015 AUTOHEADER
="$missing_dir/missing autoheader"
1016 echo "$ac_t""missing" 1>&6
1019 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working makeinfo" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf. Sigh.
1024 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1026 echo "$ac_t""found" 1>&6
1028 MAKEINFO
="$missing_dir/missing makeinfo"
1029 echo "$ac_t""missing" 1>&6
1034 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1035 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1036 # are probably using a cross compiler, which will not be able to fully
1037 # link an executable. This should really be fixed in autoconf
1043 # Extract the first word of "gcc", so it can be a program name with args.
1044 set dummy gcc
; ac_word
=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC
="$CC" # Let the user override the test.
1053 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1055 for ac_dir
in $ac_dummy; do
1056 test -z "$ac_dir" && ac_dir
=.
1057 if test -f $ac_dir/$ac_word; then
1066 if test -n "$CC"; then
1067 echo "$ac_t""$CC" 1>&6
1069 echo "$ac_t""no" 1>&6
1072 if test -z "$CC"; then
1073 # Extract the first word of "cc", so it can be a program name with args.
1074 set dummy cc
; ac_word
=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 if test -n "$CC"; then
1081 ac_cv_prog_CC
="$CC" # Let the user override the test.
1083 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1086 for ac_dir
in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir
=.
1088 if test -f $ac_dir/$ac_word; then
1089 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1090 ac_prog_rejected
=yes
1098 if test $ac_prog_rejected = yes; then
1099 # We found a bogon in the path, so make sure we never use it.
1100 set dummy
$ac_cv_prog_CC
1102 if test $# -gt 0; then
1103 # We chose a different compiler from the bogus one.
1104 # However, it has the same basename, so the bogon will be chosen
1105 # first if we set CC to just the basename; use the full file name.
1107 set dummy
"$ac_dir/$ac_word" "$@"
1115 if test -n "$CC"; then
1116 echo "$ac_t""$CC" 1>&6
1118 echo "$ac_t""no" 1>&6
1121 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1124 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 cat > conftest.c
<<EOF
1134 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1141 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1143 if test $ac_cv_prog_gcc = yes; then
1145 ac_test_CFLAGS
="${CFLAGS+set}"
1146 ac_save_CFLAGS
="$CFLAGS"
1148 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ${CC-cc} accepts -g" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 echo 'void f(){}' > conftest.c
1154 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1163 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1164 if test "$ac_test_CFLAGS" = set; then
1165 CFLAGS
="$ac_save_CFLAGS"
1166 elif test $ac_cv_prog_cc_g = yes; then
1173 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1177 # Likewise for AC_PROG_CXX.
1181 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1183 # Extract the first word of "$ac_prog", so it can be a program name with args.
1184 set dummy
$ac_prog; ac_word
=$2
1185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1186 echo "configure:1187: checking for $ac_word" >&5
1187 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 if test -n "$CXX"; then
1191 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1193 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1195 for ac_dir
in $ac_dummy; do
1196 test -z "$ac_dir" && ac_dir
=.
1197 if test -f $ac_dir/$ac_word; then
1198 ac_cv_prog_CXX
="$ac_prog"
1205 CXX
="$ac_cv_prog_CXX"
1206 if test -n "$CXX"; then
1207 echo "$ac_t""$CXX" 1>&6
1209 echo "$ac_t""no" 1>&6
1212 test -n "$CXX" && break
1214 test -n "$CXX" || CXX
="gcc"
1216 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1218 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1219 echo "configure:1220: checking whether we are using GNU C++" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 cat > conftest.C
<<EOF
1228 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1235 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1237 if test $ac_cv_prog_gxx = yes; then
1239 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1240 ac_save_CXXFLAGS
="$CXXFLAGS"
1242 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1243 echo "configure:1244: checking whether ${CXX-g++} accepts -g" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 echo 'void f(){}' > conftest.cc
1248 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1249 ac_cv_prog_cxx_g
=yes
1257 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1258 if test "$ac_test_CXXFLAGS" = set; then
1259 CXXFLAGS
="$ac_save_CXXFLAGS"
1260 elif test $ac_cv_prog_cxx_g = yes; then
1267 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1271 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1272 # run it explicitly here, it will be run implicitly before
1273 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1274 # be run before AC_CANONICAL_HOST.
1275 echo $ac_n "checking build system type""... $ac_c" 1>&6
1276 echo "configure:1277: checking build system type" >&5
1279 case "$build_alias" in
1282 NONE
) build_alias
=$host_alias ;;
1283 *) build_alias
=$nonopt ;;
1287 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1288 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1289 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1290 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1291 echo "$ac_t""$build" 1>&6
1294 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1295 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1297 echo "configure:1298: checking for $ac_word" >&5
1298 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 if test -n "$AS"; then
1302 ac_cv_prog_AS
="$AS" # Let the user override the test.
1304 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1306 for ac_dir
in $ac_dummy; do
1307 test -z "$ac_dir" && ac_dir
=.
1308 if test -f $ac_dir/$ac_word; then
1309 ac_cv_prog_AS
="${ac_tool_prefix}as"
1314 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1318 if test -n "$AS"; then
1319 echo "$ac_t""$AS" 1>&6
1321 echo "$ac_t""no" 1>&6
1326 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1327 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 if test -n "$AR"; then
1334 ac_cv_prog_AR
="$AR" # Let the user override the test.
1336 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1338 for ac_dir
in $ac_dummy; do
1339 test -z "$ac_dir" && ac_dir
=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1346 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1350 if test -n "$AR"; then
1351 echo "$ac_t""$AR" 1>&6
1353 echo "$ac_t""no" 1>&6
1358 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1359 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1361 echo "configure:1362: checking for $ac_word" >&5
1362 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6
1365 if test -n "$RANLIB"; then
1366 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1368 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1370 for ac_dir
in $ac_dummy; do
1371 test -z "$ac_dir" && ac_dir
=.
1372 if test -f $ac_dir/$ac_word; then
1373 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1380 RANLIB
="$ac_cv_prog_RANLIB"
1381 if test -n "$RANLIB"; then
1382 echo "$ac_t""$RANLIB" 1>&6
1384 echo "$ac_t""no" 1>&6
1388 if test -z "$ac_cv_prog_RANLIB"; then
1389 if test -n "$ac_tool_prefix"; then
1390 # Extract the first word of "ranlib", so it can be a program name with args.
1391 set dummy ranlib
; ac_word
=$2
1392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1393 echo "configure:1394: checking for $ac_word" >&5
1394 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 if test -n "$RANLIB"; then
1398 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1400 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1402 for ac_dir
in $ac_dummy; do
1403 test -z "$ac_dir" && ac_dir
=.
1404 if test -f $ac_dir/$ac_word; then
1405 ac_cv_prog_RANLIB
="ranlib"
1410 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1413 RANLIB
="$ac_cv_prog_RANLIB"
1414 if test -n "$RANLIB"; then
1415 echo "$ac_t""$RANLIB" 1>&6
1417 echo "$ac_t""no" 1>&6
1426 # Find a good install program. We prefer a C program (faster),
1427 # so one script is as good as another. But avoid the broken or
1428 # incompatible versions:
1429 # SysV /etc/install, /usr/sbin/install
1430 # SunOS /usr/etc/install
1431 # IRIX /sbin/install
1433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1436 # ./install, which can be erroneously created by make from ./install.sh.
1437 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1438 echo "configure:1439: checking for a BSD compatible install" >&5
1439 if test -z "$INSTALL"; then
1440 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1444 for ac_dir
in $PATH; do
1445 # Account for people who put trailing slashes in PATH elements.
1447 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1449 # OSF1 and SCO ODT 3.0 have their own names for install.
1450 # Don't use installbsd from OSF since it installs stuff as root
1452 for ac_prog
in ginstall scoinst
install; do
1453 if test -f $ac_dir/$ac_prog; then
1454 if test $ac_prog = install &&
1455 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1456 # AIX install. It has an incompatible calling convention.
1459 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1470 if test "${ac_cv_path_install+set}" = set; then
1471 INSTALL
="$ac_cv_path_install"
1473 # As a last resort, use the slow shell script. We don't cache a
1474 # path for INSTALL within a source directory, because that will
1475 # break other packages using the cache if that directory is
1476 # removed, or if the path is relative.
1477 INSTALL
="$ac_install_sh"
1480 echo "$ac_t""$INSTALL" 1>&6
1482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1483 # It thinks the first close brace ends the variable substitution.
1484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1488 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1491 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1492 echo "configure:1493: checking whether to enable maintainer-specific portions of Makefiles" >&5
1493 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1494 if test "${enable_maintainer_mode+set}" = set; then
1495 enableval
="$enable_maintainer_mode"
1496 USE_MAINTAINER_MODE
=$enableval
1498 USE_MAINTAINER_MODE
=no
1501 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1504 if test $USE_MAINTAINER_MODE = yes; then
1505 MAINTAINER_MODE_TRUE
=
1506 MAINTAINER_MODE_FALSE
='#'
1508 MAINTAINER_MODE_TRUE
='#'
1509 MAINTAINER_MODE_FALSE
=
1511 MAINT
=$MAINTAINER_MODE_TRUE
1515 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1516 # at least currently, we never actually build a program, so we never
1517 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1518 # fails, because we are probably configuring with a cross compiler
1519 # which can't create executables. So we include AC_EXEEXT to keep
1520 # automake happy, but we don't execute it, since we don't care about
1523 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1524 # to nothing, so nothing would remain between `then' and `fi' if it
1525 # were not for the `:' below.
1529 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1530 echo "configure:1531: checking for executable suffix" >&5
1531 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1538 echo 'int main () { return 0; }' > conftest.
$ac_ext
1540 if { (eval echo configure
:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1541 for file in conftest.
*; do
1543 *.c |
*.C |
*.o |
*.obj
) ;;
1544 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1548 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1551 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1556 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1557 echo "$ac_t""${ac_cv_exeext}" 1>&6
1562 .
${srcdir}/configure.
host
1564 case ${gc_basedir} in
1565 /* | A-Za-z
:/\\*) gc_flagbasedir
=${gc_basedir} ;;
1566 *) gc_flagbasedir
='$(top_builddir)/'${gc_basedir} ;;
1569 gc_cflags
="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1572 gc_cflags
="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1577 GC_CFLAGS
=${gc_cflags}
1581 # Check whether --enable-shared or --disable-shared was given.
1582 if test "${enable_shared+set}" = set; then
1583 enableval
="$enable_shared"
1584 p
=${PACKAGE-default}
1586 yes) enable_shared
=yes ;;
1587 no
) enable_shared
=no
;;
1590 # Look at the argument we got. We use all the common list separators.
1591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1592 for pkg
in $enableval; do
1593 if test "X$pkg" = "X$p"; then
1604 # Check whether --enable-static or --disable-static was given.
1605 if test "${enable_static+set}" = set; then
1606 enableval
="$enable_static"
1607 p
=${PACKAGE-default}
1609 yes) enable_static
=yes ;;
1610 no
) enable_static
=no
;;
1613 # Look at the argument we got. We use all the common list separators.
1614 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1615 for pkg
in $enableval; do
1616 if test "X$pkg" = "X$p"; then
1627 # Check whether --enable-fast-install or --disable-fast-install was given.
1628 if test "${enable_fast_install+set}" = set; then
1629 enableval
="$enable_fast_install"
1630 p
=${PACKAGE-default}
1632 yes) enable_fast_install
=yes ;;
1633 no
) enable_fast_install
=no
;;
1635 enable_fast_install
=no
1636 # Look at the argument we got. We use all the common list separators.
1637 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1638 for pkg
in $enableval; do
1639 if test "X$pkg" = "X$p"; then
1640 enable_fast_install
=yes
1647 enable_fast_install
=yes
1650 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1651 if test "${with_gnu_ld+set}" = set; then
1652 withval
="$with_gnu_ld"
1653 test "$withval" = no || with_gnu_ld
=yes
1659 if test "$GCC" = yes; then
1660 # Check if gcc -print-prog-name=ld gives a path.
1661 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1662 echo "configure:1663: checking for ld used by GCC" >&5
1665 # gcc leaves a trailing carriage return which upsets mingw
1666 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1668 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1671 # Accept absolute paths.
1672 [\\/]* |
[A-Za-z
]:[\\/]*)
1673 re_direlt
='/[^/][^/]*/\.\./'
1674 # Canonicalize the path of ld
1675 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1676 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1677 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1679 test -z "$LD" && LD
="$ac_prog"
1682 # If it fails, then pretend we aren't using GCC.
1686 # If it is relative, then search for the first ld in PATH.
1690 elif test "$with_gnu_ld" = yes; then
1691 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1692 echo "configure:1693: checking for GNU ld" >&5
1694 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1695 echo "configure:1696: checking for non-GNU ld" >&5
1697 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 if test -z "$LD"; then
1701 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1702 for ac_dir
in $PATH; do
1703 test -z "$ac_dir" && ac_dir
=.
1704 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1705 lt_cv_path_LD
="$ac_dir/$ac_prog"
1706 # Check to see if the program is GNU ld. I'd rather use --version,
1707 # but apparently some GNU ld's only accept -v.
1708 # Break only if it was the GNU/non-GNU ld that we prefer.
1709 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1710 test "$with_gnu_ld" != no
&& break
1712 test "$with_gnu_ld" != yes && break
1718 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1723 if test -n "$LD"; then
1724 echo "$ac_t""$LD" 1>&6
1726 echo "$ac_t""no" 1>&6
1728 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1729 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1730 echo "configure:1731: checking if the linker ($LD) is GNU ld" >&5
1731 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1735 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1736 lt_cv_prog_gnu_ld
=yes
1738 lt_cv_prog_gnu_ld
=no
1742 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1743 with_gnu_ld
=$lt_cv_prog_gnu_ld
1746 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1747 echo "configure:1748: checking for $LD option to reload object files" >&5
1748 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 lt_cv_ld_reload_flag
='-r'
1754 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1755 reload_flag
=$lt_cv_ld_reload_flag
1756 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1758 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1759 echo "configure:1760: checking for BSD-compatible nm" >&5
1760 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 if test -n "$NM"; then
1764 # Let the user override the test.
1767 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1768 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1769 test -z "$ac_dir" && ac_dir
=.
1770 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1771 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1772 # Check to see if the nm accepts a BSD-compat flag.
1773 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1774 # nm: unknown option "B" ignored
1775 # Tru64's nm complains that /dev/null is an invalid object file
1776 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1777 lt_cv_path_NM
="$tmp_nm -B"
1779 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1780 lt_cv_path_NM
="$tmp_nm -p"
1783 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1784 continue # so that we can try to find one that supports BSD flags
1789 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1794 echo "$ac_t""$NM" 1>&6
1796 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1797 echo "configure:1798: checking whether ln -s works" >&5
1798 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1802 if ln -s X conftestdata
2>/dev
/null
1805 ac_cv_prog_LN_S
="ln -s"
1810 LN_S
="$ac_cv_prog_LN_S"
1811 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1812 echo "$ac_t""yes" 1>&6
1814 echo "$ac_t""no" 1>&6
1817 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1818 echo "configure:1819: checking how to recognise dependant libraries" >&5
1819 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1823 lt_cv_file_magic_test_file
=
1824 lt_cv_deplibs_check_method
='unknown'
1825 # Need to set the preceding variable on all platforms that support
1826 # interlibrary dependencies.
1827 # 'none' -- dependencies not supported.
1828 # `unknown' -- same as none, but documents that we really don't know.
1829 # 'pass_all' -- all dependencies passed with no checks.
1830 # 'test_compile' -- check by making test program.
1831 # 'file_magic [regex]' -- check by looking for files in library path
1832 # which responds to the $file_magic_cmd with a given egrep regex.
1833 # If you have `file' or equivalent on your system and you're not sure
1834 # whether `pass_all' will *always* work, you probably want this one.
1838 lt_cv_deplibs_check_method
=pass_all
1842 lt_cv_deplibs_check_method
=pass_all
1846 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1847 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1848 lt_cv_file_magic_test_file
=/shlib
/libc.so
1851 cygwin
* | mingw
* |pw32
*)
1852 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1853 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1856 darwin
* | rhapsody
*)
1857 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1858 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1860 rhapsody
* | darwin1.012
)
1861 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1864 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1870 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1873 # Not sure whether the presence of OpenBSD here was a mistake.
1874 # Let's accept both of them until this is cleared up.
1875 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1876 lt_cv_file_magic_cmd
=/usr
/bin
/file
1877 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1881 lt_cv_deplibs_check_method
=pass_all
1886 lt_cv_deplibs_check_method
=pass_all
1890 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1891 lt_cv_file_magic_cmd
=/usr
/bin
/file
1892 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
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
* | 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 case `/usr/bin/file conftest.$ac_objext` in
2329 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2330 SAVE_CFLAGS
="$CFLAGS"
2331 CFLAGS
="$CFLAGS -belf"
2332 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2333 echo "configure:2334: checking whether the C compiler needs -belf" >&5
2334 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2340 ac_cpp
='$CPP $CPPFLAGS'
2341 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2342 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2343 cross_compiling
=$ac_cv_prog_cc_cross
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2353 if { (eval echo configure
:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2355 lt_cv_cc_needs_belf
=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 lt_cv_cc_needs_belf
=no
2364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2365 ac_cpp
='$CPP $CPPFLAGS'
2366 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2367 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2368 cross_compiling
=$ac_cv_prog_cc_cross
2372 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2373 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2374 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2375 CFLAGS
="$SAVE_CFLAGS"
2382 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2383 echo "configure:2384: checking how to run the C++ preprocessor" >&5
2384 if test -z "$CXXCPP"; then
2385 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2389 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2390 ac_cpp
='$CXXCPP $CPPFLAGS'
2391 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2392 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2393 cross_compiling
=$ac_cv_prog_cxx_cross
2394 CXXCPP
="${CXX-g++} -E"
2395 cat > conftest.
$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2400 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2401 { (eval echo configure
:2402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2402 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2403 if test -z "$ac_err"; then
2407 echo "configure: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2413 ac_cv_prog_CXXCPP
="$CXXCPP"
2415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2416 ac_cpp
='$CPP $CPPFLAGS'
2417 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2418 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2419 cross_compiling
=$ac_cv_prog_cc_cross
2422 CXXCPP
="$ac_cv_prog_CXXCPP"
2423 echo "$ac_t""$CXXCPP" 1>&6
2426 # Save cache, so that ltconfig can load it
2427 cat > confcache
<<\EOF
2428 # This file is a shell script that caches the results of configure
2429 # tests run on this system so they can be shared between configure
2430 # scripts and configure runs. It is not useful on other systems.
2431 # If it contains results you don't want to keep, you may remove or edit it.
2433 # By default, configure uses ./config.cache as the cache file,
2434 # creating it if it does not exist already. You can give configure
2435 # the --cache-file=FILE option to use a different cache file; that is
2436 # what configure does when it calls configure scripts in
2437 # subdirectories, so they share the cache.
2438 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2439 # config.status only pays attention to the cache file if you give it the
2440 # --recheck option to rerun configure.
2443 # The following way of writing the cache mishandles newlines in values,
2444 # but we know of no workaround that is simple, portable, and efficient.
2445 # So, don't put newlines in cache variables' values.
2446 # Ultrix sh set writes to stderr and can't be redirected directly,
2447 # and sets the high bit in the cache file unless we assign to the vars.
2449 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2451 # `set' does not quote correctly, so add quotes (double-quote substitution
2452 # turns \\\\ into \\, and sed turns \\ into \).
2454 -e "s/'/'\\\\''/g" \
2455 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2458 # `set' quotes correctly as required by POSIX, so do not add quotes.
2459 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2462 if cmp -s $cache_file confcache
; then
2465 if test -w $cache_file; then
2466 echo "updating cache $cache_file"
2467 cat confcache
> $cache_file
2469 echo "not updating unwritable cache $cache_file"
2475 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2476 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2477 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2478 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2479 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2480 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2481 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2482 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2483 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2484 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2486 # Reload cache, that may have been modified by ltconfig
2487 if test -r "$cache_file"; then
2488 echo "loading cache $cache_file"
2491 echo "creating cache $cache_file"
2496 # This can be used to rebuild libtool when needed
2497 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2499 # Always use our own libtool.
2500 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2502 # Redirect the config.log output again, so that the ltconfig log is not
2503 # clobbered by the next message.
2504 exec 5>>.
/config.log
2508 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2510 lt_save_CFLAGS
="$CFLAGS"
2511 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
2512 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2513 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2514 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2515 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2516 deplibs_check_method
="$deplibs_check_method" \
2517 file_magic_cmd
="$file_magic_cmd" \
2518 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
2519 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
2520 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2522 CFLAGS
="$lt_save_CFLAGS"
2524 # Redirect the config.log output again, so that the ltconfig log is not
2525 # clobbered by the next message.
2526 exec 5>>.
/config.log
2534 # Check whether --with-target-subdir or --without-target-subdir was given.
2535 if test "${with_target_subdir+set}" = set; then
2536 withval
="$with_target_subdir"
2540 # Check whether --with-cross-host or --without-cross-host was given.
2541 if test "${with_cross_host+set}" = set; then
2542 withval
="$with_cross_host"
2547 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether to enable maintainer-specific portions of Makefiles" >&5
2549 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2550 if test "${enable_maintainer_mode+set}" = set; then
2551 enableval
="$enable_maintainer_mode"
2552 USE_MAINTAINER_MODE
=$enableval
2554 USE_MAINTAINER_MODE
=no
2557 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2560 if test $USE_MAINTAINER_MODE = yes; then
2561 MAINTAINER_MODE_TRUE
=
2562 MAINTAINER_MODE_FALSE
='#'
2564 MAINTAINER_MODE_TRUE
='#'
2565 MAINTAINER_MODE_FALSE
=
2567 MAINT
=$MAINTAINER_MODE_TRUE
2570 # automake wants to see AC_EXEEXT. But we don't need it. And having
2571 # it is actually a problem, because the compiler we're passed can't
2572 # necessarily do a full link. So we fool automake here.
2574 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2575 # to nothing, so nothing would remain between `then' and `fi' if it
2576 # were not for the `:' below.
2580 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2581 echo "configure:2582: checking for executable suffix" >&5
2582 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2589 echo 'int main () { return 0; }' > conftest.
$ac_ext
2591 if { (eval echo configure
:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2592 for file in conftest.
*; do
2594 *.c |
*.C |
*.o |
*.obj
) ;;
2595 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2599 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2602 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2607 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2608 echo "$ac_t""${ac_cv_exeext}" 1>&6
2613 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2614 echo "configure:2615: checking for thread model used by GCC" >&5
2615 THREADS
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2616 if test -z "$THREADS"; then
2619 echo "$ac_t""$THREADS" 1>&6
2621 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2622 if test "${enable_parallel_mark+set}" = set; then
2623 enableval
="$enable_parallel_mark"
2626 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2633 INCLUDES
=-I${srcdir}/include
2641 THREADLIBS
=-lpthread
2643 x86-
*-linux* | ia64-
*-linux* | i586-
*-linux* | i686-
*-linux*)
2644 cat >> confdefs.h
<<\EOF
2645 #define GC_LINUX_THREADS 1
2648 cat >> confdefs.h
<<\EOF
2649 #define _REENTRANT 1
2652 if test "${enable_parallel_mark}"; then
2653 cat >> confdefs.h
<<\EOF
2654 #define PARALLEL_MARK 1
2658 cat >> confdefs.h
<<\EOF
2659 #define THREAD_LOCAL_ALLOC 1
2664 cat >> confdefs.h
<<\EOF
2665 #define GC_LINUX_THREADS 1
2668 cat >> confdefs.h
<<\EOF
2669 #define _REENTRANT 1
2674 echo "configure: warning: "Only HP
/UX
11 threads are supported.
"" 1>&2
2675 cat >> confdefs.h
<<\EOF
2676 #define GC_HPUX_THREADS 1
2679 cat >> confdefs.h
<<\EOF
2680 #define _POSIX_C_SOURCE 199506L
2683 if test "${enable_parallel_mark}" = yes; then
2684 cat >> confdefs.h
<<\EOF
2685 #define PARALLEL_MARK 1
2689 cat >> confdefs.h
<<\EOF
2690 #define THREAD_LOCAL_ALLOC 1
2693 THREADLIBS
="-lpthread -lrt"
2696 echo "configure: warning: "Threaded GC is prone to deadlock before FreeBSD
4.5.
"" 1>&2
2697 echo "configure: warning: "Related symptom is pthread_join returns spurious EINTR.
"" 1>&2
2698 cat >> confdefs.h
<<\EOF
2699 #define GC_FREEBSD_THREADS 1
2702 INCLUDES
="$INCLUDES -pthread"
2706 cat >> confdefs.h
<<\EOF
2707 #define GC_SOLARIS_THREADS 1
2710 cat >> confdefs.h
<<\EOF
2711 #define GC_SOLARIS_PTHREADS 1
2716 cat >> confdefs.h
<<\EOF
2717 #define GC_IRIX_THREADS 1
2726 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks
)
2727 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2730 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2735 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2736 echo "configure:2737: checking for dlopen in -ldl" >&5
2737 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 ac_save_LIBS
="$LIBS"
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 /* Override any gcc2 internal prototype to avoid an error. */
2747 /* We use char because int might match the return type of a gcc2
2748 builtin and then its argument prototype would still apply. */
2755 if { (eval echo configure
:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2757 eval "ac_cv_lib_$ac_lib_var=yes"
2759 echo "configure: failed program was:" >&5
2760 cat conftest.
$ac_ext >&5
2762 eval "ac_cv_lib_$ac_lib_var=no"
2765 LIBS
="$ac_save_LIBS"
2768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2769 echo "$ac_t""yes" 1>&6
2770 EXTRA_TEST_LIBS
="$EXTRA_TEST_LIBS -ldl"
2772 echo "$ac_t""no" 1>&6
2777 target_all
=libgcjgc.la
2781 # Check whether --with-ecos or --without-ecos was given.
2782 if test "${with_ecos+set}" = set; then
2783 withval
="$with_ecos"
2784 TARGET_ECOS
="$with_ecos"
2791 case "$TARGET_ECOS" in
2795 cat >> confdefs.h
<<\EOF
2799 CXXINCLUDES
="-I${TARGET_ECOS}/include"
2800 addobjs
="$addobjs ecos.lo"
2811 machdep
="alpha_mach_dep.lo"
2814 if test x
"${ac_cv_lib_dl_dlopen}" != xyes
; then
2815 echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2
2816 # Check whether --enable-shared or --disable-shared was given.
2817 if test "${enable_shared+set}" = set; then
2818 enableval
="$enable_shared"
2819 p
=${PACKAGE-default}
2821 yes) enable_shared
=yes ;;
2822 no
) enable_shared
=no
;;
2825 # Look at the argument we got. We use all the common list separators.
2826 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2827 for pkg
in $enableval; do
2828 if test "X$pkg" = "X$p"; then
2841 i?
86-*-solaris2.
[89]*)
2842 cat >> confdefs.h
<<\EOF
2843 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
2848 machdep
="mips_ultrix_mach_dep.lo"
2849 cat >> confdefs.h
<<\EOF
2850 #define STACKBASE __stackbase
2853 cat >> confdefs.h
<<\EOF
2854 #define DATASTART_IS_ETEXT 1
2859 machdep
="mips_ultrix_mach-dep.lo"
2862 machdep
="mips_sgi_mach_dep.lo"
2863 cat >> confdefs.h
<<\EOF
2864 #define NO_EXECUTE_PERMISSION 1
2868 sparc-sun-solaris2.3
*)
2869 cat >> confdefs.h
<<\EOF
2870 #define SUNOS53_SHARED_LIB 1
2875 machdep
="mach_dep.lo ia64_save_regs_in_stack.lo"
2878 if test x
"$machdep" = x
; then
2879 machdep
="mach_dep.lo"
2881 addobjs
="$addobjs $machdep"
2885 sparc-sun-solaris2
*)
2886 if test "$GCC" = yes; then
2888 for i
in $CFLAGS; do
2893 new_CFLAGS
="$new_CFLAGS $i"
2897 CFLAGS
="$new_CFLAGS"
2905 cat >> confdefs.h
<<\EOF
2909 cat >> confdefs.h
<<\EOF
2910 #define NO_SIGNALS 1
2913 cat >> confdefs.h
<<\EOF
2914 #define NO_EXECUTE_PERMISSION 1
2917 cat >> confdefs.h
<<\EOF
2918 #define ALL_INTERIOR_POINTERS 1
2922 cat >> confdefs.h
<<\EOF
2923 #define JAVA_FINALIZATION 1
2926 cat >> confdefs.h
<<\EOF
2927 #define GC_GCJ_SUPPORT 1
2930 cat >> confdefs.h
<<\EOF
2931 #define ATOMIC_UNCOLLECTABLE 1
2935 if test -n "${with_cross_host}"; then
2936 cat >> confdefs.h
<<\EOF
2940 cat >> confdefs.h
<<\EOF
2944 cat >> confdefs.h
<<\EOF
2945 #define SMALL_CONFIG 1
2948 cat >> confdefs.h
<<\EOF
2949 #define NO_DEBUGGING 1
2954 # Check whether --enable-full-debug or --disable-full-debug was given.
2955 if test "${enable_full_debug+set}" = set; then
2956 enableval
="$enable_full_debug"
2957 if test "$enable_full_debug" = "yes"; then
2958 echo "configure: warning: "Must define GC_DEBUG and use debug alloc.
in clients.
"" 1>&2
2959 cat >> confdefs.h
<<\EOF
2960 #define KEEP_BACK_PTRS 1
2963 cat >> confdefs.h
<<\EOF
2964 #define DBG_HDRS_ALL 1
2968 x86-
*-linux* | i586-
*-linux* | i686-
*-linux* )
2969 echo "configure: warning: "Client must not use
-fomit-frame-pointer.
"" 1>&2
2970 cat >> confdefs.h
<<\EOF
2971 #define SAVE_CALL_COUNT 8
2982 if test -z "$with_cross_host"; then
2984 USE_LIBDIR_FALSE
='#'
2990 if test "${multilib}" = "yes"; then
2991 multilib_arg
="--enable-multilib"
2997 cat > confcache
<<\EOF
2998 # This file is a shell script that caches the results of configure
2999 # tests run on this system so they can be shared between configure
3000 # scripts and configure runs. It is not useful on other systems.
3001 # If it contains results you don't want to keep, you may remove or edit it.
3003 # By default, configure uses ./config.cache as the cache file,
3004 # creating it if it does not exist already. You can give configure
3005 # the --cache-file=FILE option to use a different cache file; that is
3006 # what configure does when it calls configure scripts in
3007 # subdirectories, so they share the cache.
3008 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3009 # config.status only pays attention to the cache file if you give it the
3010 # --recheck option to rerun configure.
3013 # The following way of writing the cache mishandles newlines in values,
3014 # but we know of no workaround that is simple, portable, and efficient.
3015 # So, don't put newlines in cache variables' values.
3016 # Ultrix sh set writes to stderr and can't be redirected directly,
3017 # and sets the high bit in the cache file unless we assign to the vars.
3019 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3021 # `set' does not quote correctly, so add quotes (double-quote substitution
3022 # turns \\\\ into \\, and sed turns \\ into \).
3024 -e "s/'/'\\\\''/g" \
3025 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3028 # `set' quotes correctly as required by POSIX, so do not add quotes.
3029 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3032 if cmp -s $cache_file confcache
; then
3035 if test -w $cache_file; then
3036 echo "updating cache $cache_file"
3037 cat confcache
> $cache_file
3039 echo "not updating unwritable cache $cache_file"
3044 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3046 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3047 # Let make expand exec_prefix.
3048 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3050 # Any assignment to VPATH causes Sun make to only execute
3051 # the first set of double-colon rules, so remove it if not needed.
3052 # If there is a colon in the path, we need to keep it.
3053 if test "x$srcdir" = x.
; then
3054 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3057 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3059 # Transform confdefs.h into DEFS.
3060 # Protect against shell expansion while executing Makefile rules.
3061 # Protect against Makefile macro expansion.
3062 cat > conftest.defs
<<\EOF
3063 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3064 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3069 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
3073 # Without the "./", some shells look in PATH for config.status.
3074 : ${CONFIG_STATUS=./config.status}
3076 echo creating $CONFIG_STATUS
3077 rm -f $CONFIG_STATUS
3078 cat > $CONFIG_STATUS <<EOF
3080 # Generated automatically by configure.
3081 # Run this file to recreate the current configuration.
3082 # This directory was configured as follows,
3083 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
3085 # $0 $ac_configure_args
3087 # Compiler output produced by configure, useful for debugging
3088 # configure, is in ./config.log if it exists.
3090 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3093 case "\$ac_option" in
3094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3095 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3096 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3097 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3098 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3100 -help | --help | --hel | --he | --h)
3101 echo "\$ac_cs_usage"; exit 0 ;;
3102 *) echo "\$ac_cs_usage"; exit 1 ;;
3106 ac_given_srcdir=$srcdir
3107 ac_given_INSTALL="$INSTALL"
3109 trap 'rm -fr `echo "Makefile include/Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3111 cat >> $CONFIG_STATUS <<EOF
3113 # Protect against being on the right side of a sed subst in config.status.
3114 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3115 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3119 s%@CFLAGS@%$CFLAGS%g
3120 s%@CPPFLAGS@%$CPPFLAGS%g
3121 s%@CXXFLAGS@%$CXXFLAGS%g
3122 s%@FFLAGS@%$FFLAGS%g
3124 s%@LDFLAGS@%$LDFLAGS%g
3126 s%@exec_prefix@%$exec_prefix%g
3127 s%@prefix@%$prefix%g
3128 s%@program_transform_name@%$program_transform_name%g
3129 s%@bindir@%$bindir%g
3130 s%@sbindir@%$sbindir%g
3131 s%@libexecdir@%$libexecdir%g
3132 s%@datadir@%$datadir%g
3133 s%@sysconfdir@%$sysconfdir%g
3134 s%@sharedstatedir@%$sharedstatedir%g
3135 s%@localstatedir@%$localstatedir%g
3136 s%@libdir@%$libdir%g
3137 s%@includedir@%$includedir%g
3138 s%@oldincludedir@%$oldincludedir%g
3139 s%@infodir@%$infodir%g
3140 s%@mandir@%$mandir%g
3141 s%@gc_basedir@%$gc_basedir%g
3143 s%@host_alias@%$host_alias%g
3144 s%@host_cpu@%$host_cpu%g
3145 s%@host_vendor@%$host_vendor%g
3146 s%@host_os@%$host_os%g
3147 s%@target@%$target%g
3148 s%@target_alias@%$target_alias%g
3149 s%@target_cpu@%$target_cpu%g
3150 s%@target_vendor@%$target_vendor%g
3151 s%@target_os@%$target_os%g
3153 s%@build_alias@%$build_alias%g
3154 s%@build_cpu@%$build_cpu%g
3155 s%@build_vendor@%$build_vendor%g
3156 s%@build_os@%$build_os%g
3157 s%@mkinstalldirs@%$mkinstalldirs%g
3158 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3159 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3160 s%@INSTALL_DATA@%$INSTALL_DATA%g
3161 s%@PACKAGE@%$PACKAGE%g
3162 s%@VERSION@%$VERSION%g
3163 s%@ACLOCAL@%$ACLOCAL%g
3164 s%@AUTOCONF@%$AUTOCONF%g
3165 s%@AUTOMAKE@%$AUTOMAKE%g
3166 s%@AUTOHEADER@%$AUTOHEADER%g
3167 s%@MAKEINFO@%$MAKEINFO%g
3168 s%@SET_MAKE@%$SET_MAKE%g
3173 s%@RANLIB@%$RANLIB%g
3174 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3175 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3177 s%@EXEEXT@%$EXEEXT%g
3178 s%@GC_CFLAGS@%$GC_CFLAGS%g
3180 s%@OBJEXT@%$OBJEXT%g
3182 s%@LIBTOOL@%$LIBTOOL%g
3183 s%@CXXCPP@%$CXXCPP%g
3184 s%@THREADLIBS@%$THREADLIBS%g
3185 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3186 s%@target_all@%$target_all%g
3187 s%@INCLUDES@%$INCLUDES%g
3188 s%@CXXINCLUDES@%$CXXINCLUDES%g
3189 s%@addobjs@%$addobjs%g
3190 s%@MY_CFLAGS@%$MY_CFLAGS%g
3191 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3192 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3197 cat >> $CONFIG_STATUS <<\EOF
3199 # Split the substitutions into bite-sized pieces for seds with
3200 # small command number limits, like on Digital OSF/1 and HP-UX.
3201 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3202 ac_file=1 # Number of current file.
3203 ac_beg=1 # First line for current file.
3204 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3207 while $ac_more_lines; do
3208 if test $ac_beg -gt 1; then
3209 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3211 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3213 if test ! -s conftest.s$ac_file; then
3215 rm -f conftest.s$ac_file
3217 if test -z "$ac_sed_cmds"; then
3218 ac_sed_cmds="sed -f conftest.s$ac_file"
3220 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3222 ac_file=`expr $ac_file + 1`
3224 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3227 if test -z "$ac_sed_cmds"; then
3232 cat >> $CONFIG_STATUS <<EOF
3234 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"}
3236 cat >> $CONFIG_STATUS <<\EOF
3237 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3238 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3240 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
3241 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
3242 *) ac_file_in="${ac_file}.in" ;;
3245 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3247 # Remove last slash and all that follows it. Not all systems have dirname.
3248 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3249 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3250 # The file is in a subdirectory.
3251 test ! -d "$ac_dir" && mkdir "$ac_dir"
3252 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
3253 # A "../" for each directory in $ac_dir_suffix.
3254 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
3256 ac_dir_suffix= ac_dots=
3259 case "$ac_given_srcdir" in
3261 if test -z "$ac_dots"; then top_srcdir=.
3262 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
3263 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3265 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3266 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3269 case "$ac_given_INSTALL" in
3270 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3271 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3274 echo creating "$ac_file"
3276 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
3278 *Makefile*) ac_comsub="1i\\
3279 # $configure_input" ;;
3283 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3285 s%@configure_input@%$configure_input%g
3286 s%@srcdir@%$srcdir%g
3287 s%@top_srcdir@%$top_srcdir%g
3288 s%@INSTALL@%$INSTALL%g
3289 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3294 cat >> $CONFIG_STATUS <<EOF
3298 with_multisubdir=${with_multisubdir}
3299 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3300 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3301 gc_basedir=${gc_basedir}
3306 cat >> $CONFIG_STATUS <<\EOF
3308 echo "$DEFS" > boehm-cflags
3310 if test -n "$CONFIG_FILES"; then
3311 ac_file=Makefile . ${gc_basedir}/../config-ml.in
3315 chmod +x $CONFIG_STATUS
3316 rm -fr confdefs* $ac_clean_files
3317 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1