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
=
558 # This works around the fact that libtool configuration may change LD
559 # for this particular configuration, but some shells, instead of
560 # keeping the changes in LD private, export them just because LD is
562 ORIGINAL_LD_FOR_MULTILIBS
=$LD
565 for ac_dir
in .
$srcdir/.
; do
566 if test -f $ac_dir/install-sh
; then
568 ac_install_sh
="$ac_aux_dir/install-sh -c"
570 elif test -f $ac_dir/install.sh
; then
572 ac_install_sh
="$ac_aux_dir/install.sh -c"
576 if test -z "$ac_aux_dir"; then
577 { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; }
579 ac_config_guess
=$ac_aux_dir/config.guess
580 ac_config_sub
=$ac_aux_dir/config.sub
581 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
584 # Find a good install program. We prefer a C program (faster),
585 # so one script is as good as another. But avoid the broken or
586 # incompatible versions:
587 # SysV /etc/install, /usr/sbin/install
588 # SunOS /usr/etc/install
591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
594 # ./install, which can be erroneously created by make from ./install.sh.
595 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
596 echo "configure:597: checking for a BSD compatible install" >&5
597 if test -z "$INSTALL"; then
598 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
601 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
602 for ac_dir
in $PATH; do
603 # Account for people who put trailing slashes in PATH elements.
605 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
607 # OSF1 and SCO ODT 3.0 have their own names for install.
608 # Don't use installbsd from OSF since it installs stuff as root
610 for ac_prog
in ginstall scoinst
install; do
611 if test -f $ac_dir/$ac_prog; then
612 if test $ac_prog = install &&
613 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
614 # AIX install. It has an incompatible calling convention.
617 ac_cv_path_install
="$ac_dir/$ac_prog -c"
628 if test "${ac_cv_path_install+set}" = set; then
629 INSTALL
="$ac_cv_path_install"
631 # As a last resort, use the slow shell script. We don't cache a
632 # path for INSTALL within a source directory, because that will
633 # break other packages using the cache if that directory is
634 # removed, or if the path is relative.
635 INSTALL
="$ac_install_sh"
638 echo "$ac_t""$INSTALL" 1>&6
640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
641 # It thinks the first close brace ends the variable substitution.
642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
646 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
648 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
649 echo "configure:650: checking whether build environment is sane" >&5
652 echo timestamp
> conftestfile
653 # Do `set' in a subshell so we don't clobber the current shell's
654 # arguments. Must try -L first in case configure is actually a
655 # symlink; some systems play weird games with the mod time of symlinks
656 # (eg FreeBSD returns the mod time of the symlink's containing
659 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
660 if test "$*" = "X"; then
662 set X
`ls -t $srcdir/configure conftestfile`
664 if test "$*" != "X $srcdir/configure conftestfile" \
665 && test "$*" != "X conftestfile $srcdir/configure"; then
667 # If neither matched, then we have a broken ls. This can happen
668 # if, for instance, CONFIG_SHELL is bash and it inherits a
669 # broken ls alias from the environment. This has actually
670 # happened. Such a system could not be considered "sane".
671 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
672 alias in your environment" 1>&2; exit 1; }
675 test "$2" = conftestfile
681 { echo "configure: error: newly created file is older than distributed files!
682 Check your system clock" 1>&2; exit 1; }
685 echo "$ac_t""yes" 1>&6
686 if test "$program_transform_name" = s
,x
,x
,; then
687 program_transform_name
=
689 # Double any \ or $. echo might interpret backslashes.
690 cat <<\EOF_SED
> conftestsed
691 s
,\\,\\\\,g
; s
,\$
,$$
,g
693 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
696 test "$program_prefix" != NONE
&&
697 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
698 # Use a double $ so make ignores it.
699 test "$program_suffix" != NONE
&&
700 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
702 # sed with no file args requires a program.
703 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
705 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
706 echo "configure:707: checking whether ${MAKE-make} sets \${MAKE}" >&5
707 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
708 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
711 cat > conftestmake
<<\EOF
713 @
echo 'ac_maketemp="${MAKE}"'
715 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
716 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
717 if test -n "$ac_maketemp"; then
718 eval ac_cv_prog_make_
${ac_make}_set
=yes
720 eval ac_cv_prog_make_
${ac_make}_set
=no
724 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
725 echo "$ac_t""yes" 1>&6
728 echo "$ac_t""no" 1>&6
729 SET_MAKE
="MAKE=${MAKE-make}"
732 if test $host != $build; then
733 ac_tool_prefix
=${host_alias}-
738 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
739 echo "configure:740: checking for Cygwin environment" >&5
740 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 cat > conftest.
$ac_ext <<EOF
744 #line 745 "configure"
745 #include "confdefs.h"
750 #define __CYGWIN__ __CYGWIN32__
755 if { (eval echo configure
:756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
759 echo "configure: failed program was:" >&5
760 cat conftest.
$ac_ext >&5
768 echo "$ac_t""$ac_cv_cygwin" 1>&6
770 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
771 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
772 echo "configure:773: checking for mingw32 environment" >&5
773 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
776 cat > conftest.
$ac_ext <<EOF
777 #line 778 "configure"
778 #include "confdefs.h"
784 if { (eval echo configure
:785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
788 echo "configure: failed program was:" >&5
789 cat conftest.
$ac_ext >&5
797 echo "$ac_t""$ac_cv_mingw32" 1>&6
799 test "$ac_cv_mingw32" = yes && MINGW32
=yes
801 # Check whether --enable-multilib or --disable-multilib was given.
802 if test "${enable_multilib+set}" = set; then
803 enableval
="$enable_multilib"
804 case "${enableval}" in
807 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
814 if test "${srcdir}" = "."; then
815 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
816 gc_basedir
="${srcdir}/${with_multisrctop}../."
818 gc_basedir
="${srcdir}/${with_multisrctop}."
821 gc_basedir
="${srcdir}/."
825 for ac_dir
in $gc_basedir/..
$srcdir/$gc_basedir/..
; do
826 if test -f $ac_dir/install-sh
; then
828 ac_install_sh
="$ac_aux_dir/install-sh -c"
830 elif test -f $ac_dir/install.sh
; then
832 ac_install_sh
="$ac_aux_dir/install.sh -c"
836 if test -z "$ac_aux_dir"; then
837 { echo "configure: error: can not find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." 1>&2; exit 1; }
839 ac_config_guess
=$ac_aux_dir/config.guess
840 ac_config_sub
=$ac_aux_dir/config.sub
841 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
844 # This overrides the previous occurrence for automake, but not for
845 # autoconf, which is exactly what we want.
847 for ac_dir
in ..
$srcdir/..
; do
848 if test -f $ac_dir/install-sh
; then
850 ac_install_sh
="$ac_aux_dir/install-sh -c"
852 elif test -f $ac_dir/install.sh
; then
854 ac_install_sh
="$ac_aux_dir/install.sh -c"
858 if test -z "$ac_aux_dir"; then
859 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
861 ac_config_guess
=$ac_aux_dir/config.guess
862 ac_config_sub
=$ac_aux_dir/config.sub
863 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
868 # Do some error checking and defaulting for the host and target type.
870 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
873 # 1. You are not allowed to specify --host, --target, and nonopt at the
875 # 2. Host defaults to nonopt.
876 # 3. If nonopt is not specified, then host defaults to the current host,
877 # as determined by config.guess.
878 # 4. Target and build default to nonopt.
879 # 5. If nonopt is not specified, then target and build default to host.
881 # The aliases save the names the user supplied, while $host etc.
882 # will get canonicalized.
883 case $host---$target---$nonopt in
884 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
885 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
889 # Make sure we can run config.sub.
890 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
891 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
894 echo $ac_n "checking host system type""... $ac_c" 1>&6
895 echo "configure:896: checking host system type" >&5
898 case "$host_alias" in
902 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
903 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
905 *) host_alias
=$nonopt ;;
909 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
910 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
911 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
912 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
913 echo "$ac_t""$host" 1>&6
915 echo $ac_n "checking target system type""... $ac_c" 1>&6
916 echo "configure:917: checking target system type" >&5
919 case "$target_alias" in
922 NONE
) target_alias
=$host_alias ;;
923 *) target_alias
=$nonopt ;;
927 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
928 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
929 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
930 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
931 echo "$ac_t""$target" 1>&6
933 echo $ac_n "checking build system type""... $ac_c" 1>&6
934 echo "configure:935: checking build system type" >&5
937 case "$build_alias" in
940 NONE
) build_alias
=$host_alias ;;
941 *) build_alias
=$nonopt ;;
945 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
946 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
947 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
948 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
949 echo "$ac_t""$build" 1>&6
951 test "$host_alias" != "$target_alias" &&
952 test "$program_prefix$program_suffix$program_transform_name" = \
954 program_prefix
=${target_alias}-
957 # This works around an automake problem.
958 mkinstalldirs
="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
966 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
967 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
972 missing_dir
=`cd $ac_aux_dir && pwd`
973 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
974 echo "configure:975: checking for working aclocal" >&5
975 # Run test in a subshell; some versions of sh will print an error if
976 # an executable is not found, even if stderr is redirected.
977 # Redirect stdin to placate older versions of autoconf. Sigh.
978 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
980 echo "$ac_t""found" 1>&6
982 ACLOCAL
="$missing_dir/missing aclocal"
983 echo "$ac_t""missing" 1>&6
986 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
987 echo "configure:988: checking for working autoconf" >&5
988 # Run test in a subshell; some versions of sh will print an error if
989 # an executable is not found, even if stderr is redirected.
990 # Redirect stdin to placate older versions of autoconf. Sigh.
991 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
993 echo "$ac_t""found" 1>&6
995 AUTOCONF
="$missing_dir/missing autoconf"
996 echo "$ac_t""missing" 1>&6
999 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1000 echo "configure:1001: checking for working automake" >&5
1001 # Run test in a subshell; some versions of sh will print an error if
1002 # an executable is not found, even if stderr is redirected.
1003 # Redirect stdin to placate older versions of autoconf. Sigh.
1004 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1006 echo "$ac_t""found" 1>&6
1008 AUTOMAKE
="$missing_dir/missing automake"
1009 echo "$ac_t""missing" 1>&6
1012 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1013 echo "configure:1014: checking for working autoheader" >&5
1014 # Run test in a subshell; some versions of sh will print an error if
1015 # an executable is not found, even if stderr is redirected.
1016 # Redirect stdin to placate older versions of autoconf. Sigh.
1017 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1018 AUTOHEADER
=autoheader
1019 echo "$ac_t""found" 1>&6
1021 AUTOHEADER
="$missing_dir/missing autoheader"
1022 echo "$ac_t""missing" 1>&6
1025 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1026 echo "configure:1027: checking for working makeinfo" >&5
1027 # Run test in a subshell; some versions of sh will print an error if
1028 # an executable is not found, even if stderr is redirected.
1029 # Redirect stdin to placate older versions of autoconf. Sigh.
1030 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1032 echo "$ac_t""found" 1>&6
1034 MAKEINFO
="$missing_dir/missing makeinfo"
1035 echo "$ac_t""missing" 1>&6
1040 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1041 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1042 # are probably using a cross compiler, which will not be able to fully
1043 # link an executable. This should really be fixed in autoconf
1049 # Extract the first word of "gcc", so it can be a program name with args.
1050 set dummy gcc
; ac_word
=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 if test -n "$CC"; then
1057 ac_cv_prog_CC
="$CC" # Let the user override the test.
1059 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1061 for ac_dir
in $ac_dummy; do
1062 test -z "$ac_dir" && ac_dir
=.
1063 if test -f $ac_dir/$ac_word; then
1072 if test -n "$CC"; then
1073 echo "$ac_t""$CC" 1>&6
1075 echo "$ac_t""no" 1>&6
1078 if test -z "$CC"; then
1079 # Extract the first word of "cc", so it can be a program name with args.
1080 set dummy cc
; ac_word
=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 if test -n "$CC"; then
1087 ac_cv_prog_CC
="$CC" # Let the user override the test.
1089 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1092 for ac_dir
in $ac_dummy; do
1093 test -z "$ac_dir" && ac_dir
=.
1094 if test -f $ac_dir/$ac_word; then
1095 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1096 ac_prog_rejected
=yes
1104 if test $ac_prog_rejected = yes; then
1105 # We found a bogon in the path, so make sure we never use it.
1106 set dummy
$ac_cv_prog_CC
1108 if test $# -gt 0; then
1109 # We chose a different compiler from the bogus one.
1110 # However, it has the same basename, so the bogon will be chosen
1111 # first if we set CC to just the basename; use the full file name.
1113 set dummy
"$ac_dir/$ac_word" "$@"
1121 if test -n "$CC"; then
1122 echo "$ac_t""$CC" 1>&6
1124 echo "$ac_t""no" 1>&6
1127 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1130 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether we are using GNU C" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 cat > conftest.c
<<EOF
1140 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1147 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1149 if test $ac_cv_prog_gcc = yes; then
1151 ac_test_CFLAGS
="${CFLAGS+set}"
1152 ac_save_CFLAGS
="$CFLAGS"
1154 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether ${CC-cc} accepts -g" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 echo 'void f(){}' > conftest.c
1160 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1169 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1170 if test "$ac_test_CFLAGS" = set; then
1171 CFLAGS
="$ac_save_CFLAGS"
1172 elif test $ac_cv_prog_cc_g = yes; then
1179 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1183 # Likewise for AC_PROG_CXX.
1187 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1189 # Extract the first word of "$ac_prog", so it can be a program name with args.
1190 set dummy
$ac_prog; ac_word
=$2
1191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_word" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 if test -n "$CXX"; then
1197 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1199 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1201 for ac_dir
in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir
=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_prog_CXX
="$ac_prog"
1211 CXX
="$ac_cv_prog_CXX"
1212 if test -n "$CXX"; then
1213 echo "$ac_t""$CXX" 1>&6
1215 echo "$ac_t""no" 1>&6
1218 test -n "$CXX" && break
1220 test -n "$CXX" || CXX
="gcc"
1222 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1224 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether we are using GNU C++" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 cat > conftest.C
<<EOF
1234 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1241 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1243 if test $ac_cv_prog_gxx = yes; then
1245 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1246 ac_save_CXXFLAGS
="$CXXFLAGS"
1248 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether ${CXX-g++} accepts -g" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 echo 'void f(){}' > conftest.cc
1254 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1255 ac_cv_prog_cxx_g
=yes
1263 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1264 if test "$ac_test_CXXFLAGS" = set; then
1265 CXXFLAGS
="$ac_save_CXXFLAGS"
1266 elif test $ac_cv_prog_cxx_g = yes; then
1273 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1277 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1278 # run it explicitly here, it will be run implicitly before
1279 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1280 # be run before AC_CANONICAL_HOST.
1281 echo $ac_n "checking build system type""... $ac_c" 1>&6
1282 echo "configure:1283: checking build system type" >&5
1285 case "$build_alias" in
1288 NONE
) build_alias
=$host_alias ;;
1289 *) build_alias
=$nonopt ;;
1293 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1294 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1295 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1296 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1297 echo "$ac_t""$build" 1>&6
1300 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1301 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1303 echo "configure:1304: checking for $ac_word" >&5
1304 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 if test -n "$AS"; then
1308 ac_cv_prog_AS
="$AS" # Let the user override the test.
1310 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1312 for ac_dir
in $ac_dummy; do
1313 test -z "$ac_dir" && ac_dir
=.
1314 if test -f $ac_dir/$ac_word; then
1315 ac_cv_prog_AS
="${ac_tool_prefix}as"
1320 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1324 if test -n "$AS"; then
1325 echo "$ac_t""$AS" 1>&6
1327 echo "$ac_t""no" 1>&6
1332 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1333 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1335 echo "configure:1336: checking for $ac_word" >&5
1336 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 if test -n "$AR"; then
1340 ac_cv_prog_AR
="$AR" # Let the user override the test.
1342 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1344 for ac_dir
in $ac_dummy; do
1345 test -z "$ac_dir" && ac_dir
=.
1346 if test -f $ac_dir/$ac_word; then
1347 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1352 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1356 if test -n "$AR"; then
1357 echo "$ac_t""$AR" 1>&6
1359 echo "$ac_t""no" 1>&6
1364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1365 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1367 echo "configure:1368: checking for $ac_word" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 if test -n "$RANLIB"; then
1372 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1374 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1376 for ac_dir
in $ac_dummy; do
1377 test -z "$ac_dir" && ac_dir
=.
1378 if test -f $ac_dir/$ac_word; then
1379 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1386 RANLIB
="$ac_cv_prog_RANLIB"
1387 if test -n "$RANLIB"; then
1388 echo "$ac_t""$RANLIB" 1>&6
1390 echo "$ac_t""no" 1>&6
1394 if test -z "$ac_cv_prog_RANLIB"; then
1395 if test -n "$ac_tool_prefix"; then
1396 # Extract the first word of "ranlib", so it can be a program name with args.
1397 set dummy ranlib
; ac_word
=$2
1398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1399 echo "configure:1400: checking for $ac_word" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 if test -n "$RANLIB"; then
1404 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1406 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1408 for ac_dir
in $ac_dummy; do
1409 test -z "$ac_dir" && ac_dir
=.
1410 if test -f $ac_dir/$ac_word; then
1411 ac_cv_prog_RANLIB
="ranlib"
1416 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1419 RANLIB
="$ac_cv_prog_RANLIB"
1420 if test -n "$RANLIB"; then
1421 echo "$ac_t""$RANLIB" 1>&6
1423 echo "$ac_t""no" 1>&6
1432 # Find a good install program. We prefer a C program (faster),
1433 # so one script is as good as another. But avoid the broken or
1434 # incompatible versions:
1435 # SysV /etc/install, /usr/sbin/install
1436 # SunOS /usr/etc/install
1437 # IRIX /sbin/install
1439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1442 # ./install, which can be erroneously created by make from ./install.sh.
1443 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1444 echo "configure:1445: checking for a BSD compatible install" >&5
1445 if test -z "$INSTALL"; then
1446 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1450 for ac_dir
in $PATH; do
1451 # Account for people who put trailing slashes in PATH elements.
1453 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1455 # OSF1 and SCO ODT 3.0 have their own names for install.
1456 # Don't use installbsd from OSF since it installs stuff as root
1458 for ac_prog
in ginstall scoinst
install; do
1459 if test -f $ac_dir/$ac_prog; then
1460 if test $ac_prog = install &&
1461 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1462 # AIX install. It has an incompatible calling convention.
1465 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1476 if test "${ac_cv_path_install+set}" = set; then
1477 INSTALL
="$ac_cv_path_install"
1479 # As a last resort, use the slow shell script. We don't cache a
1480 # path for INSTALL within a source directory, because that will
1481 # break other packages using the cache if that directory is
1482 # removed, or if the path is relative.
1483 INSTALL
="$ac_install_sh"
1486 echo "$ac_t""$INSTALL" 1>&6
1488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1489 # It thinks the first close brace ends the variable substitution.
1490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1494 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1497 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1498 echo "configure:1499: checking whether to enable maintainer-specific portions of Makefiles" >&5
1499 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1500 if test "${enable_maintainer_mode+set}" = set; then
1501 enableval
="$enable_maintainer_mode"
1502 USE_MAINTAINER_MODE
=$enableval
1504 USE_MAINTAINER_MODE
=no
1507 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1510 if test $USE_MAINTAINER_MODE = yes; then
1511 MAINTAINER_MODE_TRUE
=
1512 MAINTAINER_MODE_FALSE
='#'
1514 MAINTAINER_MODE_TRUE
='#'
1515 MAINTAINER_MODE_FALSE
=
1517 MAINT
=$MAINTAINER_MODE_TRUE
1521 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1522 # at least currently, we never actually build a program, so we never
1523 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1524 # fails, because we are probably configuring with a cross compiler
1525 # which can't create executables. So we include AC_EXEEXT to keep
1526 # automake happy, but we don't execute it, since we don't care about
1529 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1530 # to nothing, so nothing would remain between `then' and `fi' if it
1531 # were not for the `:' below.
1535 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1536 echo "configure:1537: checking for executable suffix" >&5
1537 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1544 echo 'int main () { return 0; }' > conftest.
$ac_ext
1546 if { (eval echo configure
:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1547 for file in conftest.
*; do
1549 *.c |
*.o |
*.obj
) ;;
1550 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1554 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1557 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1562 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1563 echo "$ac_t""${ac_cv_exeext}" 1>&6
1568 .
${srcdir}/configure.
host
1570 case ${gc_basedir} in
1571 /* | A-Za-z
:/\\*) gc_flagbasedir
=${gc_basedir} ;;
1572 *) gc_flagbasedir
='$(top_builddir)/'${gc_basedir} ;;
1575 gc_cflags
="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1578 gc_cflags
="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1583 GC_CFLAGS
=${gc_cflags}
1587 # Check whether --enable-shared or --disable-shared was given.
1588 if test "${enable_shared+set}" = set; then
1589 enableval
="$enable_shared"
1590 p
=${PACKAGE-default}
1592 yes) enable_shared
=yes ;;
1593 no
) enable_shared
=no
;;
1596 # Look at the argument we got. We use all the common list separators.
1597 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1598 for pkg
in $enableval; do
1599 if test "X$pkg" = "X$p"; then
1610 # Check whether --enable-static or --disable-static was given.
1611 if test "${enable_static+set}" = set; then
1612 enableval
="$enable_static"
1613 p
=${PACKAGE-default}
1615 yes) enable_static
=yes ;;
1616 no
) enable_static
=no
;;
1619 # Look at the argument we got. We use all the common list separators.
1620 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1621 for pkg
in $enableval; do
1622 if test "X$pkg" = "X$p"; then
1633 # Check whether --enable-fast-install or --disable-fast-install was given.
1634 if test "${enable_fast_install+set}" = set; then
1635 enableval
="$enable_fast_install"
1636 p
=${PACKAGE-default}
1638 yes) enable_fast_install
=yes ;;
1639 no
) enable_fast_install
=no
;;
1641 enable_fast_install
=no
1642 # Look at the argument we got. We use all the common list separators.
1643 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1644 for pkg
in $enableval; do
1645 if test "X$pkg" = "X$p"; then
1646 enable_fast_install
=yes
1653 enable_fast_install
=yes
1656 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1657 if test "${with_gnu_ld+set}" = set; then
1658 withval
="$with_gnu_ld"
1659 test "$withval" = no || with_gnu_ld
=yes
1665 if test "$GCC" = yes; then
1666 # Check if gcc -print-prog-name=ld gives a path.
1667 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1668 echo "configure:1669: checking for ld used by GCC" >&5
1671 # gcc leaves a trailing carriage return which upsets mingw
1672 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1674 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1677 # Accept absolute paths.
1678 [\\/]* |
[A-Za-z
]:[\\/]*)
1679 re_direlt
='/[^/][^/]*/\.\./'
1680 # Canonicalize the path of ld
1681 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1682 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1683 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1685 test -z "$LD" && LD
="$ac_prog"
1688 # If it fails, then pretend we aren't using GCC.
1692 # If it is relative, then search for the first ld in PATH.
1696 elif test "$with_gnu_ld" = yes; then
1697 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1698 echo "configure:1699: checking for GNU ld" >&5
1700 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1701 echo "configure:1702: checking for non-GNU ld" >&5
1703 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 if test -z "$LD"; then
1707 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1708 for ac_dir
in $PATH; do
1709 test -z "$ac_dir" && ac_dir
=.
1710 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1711 lt_cv_path_LD
="$ac_dir/$ac_prog"
1712 # Check to see if the program is GNU ld. I'd rather use --version,
1713 # but apparently some GNU ld's only accept -v.
1714 # Break only if it was the GNU/non-GNU ld that we prefer.
1715 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1716 test "$with_gnu_ld" != no
&& break
1718 test "$with_gnu_ld" != yes && break
1724 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1729 if test -n "$LD"; then
1730 echo "$ac_t""$LD" 1>&6
1732 echo "$ac_t""no" 1>&6
1734 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1735 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1736 echo "configure:1737: checking if the linker ($LD) is GNU ld" >&5
1737 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1741 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1742 lt_cv_prog_gnu_ld
=yes
1744 lt_cv_prog_gnu_ld
=no
1748 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1749 with_gnu_ld
=$lt_cv_prog_gnu_ld
1752 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1753 echo "configure:1754: checking for $LD option to reload object files" >&5
1754 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 lt_cv_ld_reload_flag
='-r'
1760 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1761 reload_flag
=$lt_cv_ld_reload_flag
1762 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1764 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1765 echo "configure:1766: checking for BSD-compatible nm" >&5
1766 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 if test -n "$NM"; then
1770 # Let the user override the test.
1773 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1774 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1775 test -z "$ac_dir" && ac_dir
=.
1776 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1777 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1778 # Check to see if the nm accepts a BSD-compat flag.
1779 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1780 # nm: unknown option "B" ignored
1781 # Tru64's nm complains that /dev/null is an invalid object file
1782 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1783 lt_cv_path_NM
="$tmp_nm -B"
1785 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1786 lt_cv_path_NM
="$tmp_nm -p"
1789 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1790 continue # so that we can try to find one that supports BSD flags
1795 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1800 echo "$ac_t""$NM" 1>&6
1802 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether ln -s works" >&5
1804 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1808 if ln -s X conftestdata
2>/dev
/null
1811 ac_cv_prog_LN_S
="ln -s"
1816 LN_S
="$ac_cv_prog_LN_S"
1817 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1818 echo "$ac_t""yes" 1>&6
1820 echo "$ac_t""no" 1>&6
1823 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1824 echo "configure:1825: checking how to recognise dependant libraries" >&5
1825 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1829 lt_cv_file_magic_test_file
=
1830 lt_cv_deplibs_check_method
='unknown'
1831 # Need to set the preceding variable on all platforms that support
1832 # interlibrary dependencies.
1833 # 'none' -- dependencies not supported.
1834 # `unknown' -- same as none, but documents that we really don't know.
1835 # 'pass_all' -- all dependencies passed with no checks.
1836 # 'test_compile' -- check by making test program.
1837 # 'file_magic [regex]' -- check by looking for files in library path
1838 # which responds to the $file_magic_cmd with a given egrep regex.
1839 # If you have `file' or equivalent on your system and you're not sure
1840 # whether `pass_all' will *always* work, you probably want this one.
1844 lt_cv_deplibs_check_method
=pass_all
1848 lt_cv_deplibs_check_method
=pass_all
1852 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1853 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1854 lt_cv_file_magic_test_file
=/shlib
/libc.so
1857 cygwin
* | mingw
* |pw32
*)
1858 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1859 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1862 darwin
* | rhapsody
*)
1863 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1864 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1866 rhapsody
* | darwin1.012
)
1867 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1870 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1876 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1879 # Not sure whether the presence of OpenBSD here was a mistake.
1880 # Let's accept both of them until this is cleared up.
1881 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1882 lt_cv_file_magic_cmd
=/usr
/bin
/file
1883 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1887 lt_cv_deplibs_check_method
=pass_all
1892 lt_cv_deplibs_check_method
=pass_all
1898 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1899 lt_cv_file_magic_cmd
=/usr
/bin
/file
1900 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1903 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1904 lt_cv_file_magic_cmd
=/usr
/bin
/file
1905 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1913 # this will be overridden with pass_all, but let us keep it just in case
1914 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1918 *-32|
*"-32 ") libmagic
=32-bit;;
1919 *-n32|
*"-n32 ") libmagic
=N32
;;
1920 *-64|
*"-64 ") libmagic
=64-bit;;
1921 *) libmagic
=never-match
;;
1923 # this will be overridden with pass_all, but let us keep it just in case
1924 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1927 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1928 lt_cv_deplibs_check_method
=pass_all
1931 # This must be Linux ELF.
1934 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1935 lt_cv_deplibs_check_method
=pass_all
;;
1937 # glibc up to 2.1.1 does not perform some relocations on ARM
1938 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1940 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1944 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1945 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1947 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1952 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1953 lt_cv_file_magic_cmd
=/usr
/bin
/file
1954 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1957 osf3
* | osf4
* | osf5
*)
1958 # this will be overridden with pass_all, but let us keep it just in case
1959 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1960 lt_cv_file_magic_test_file
=/shlib
/libc.so
1961 lt_cv_deplibs_check_method
=pass_all
1965 lt_cv_deplibs_check_method
=pass_all
1969 lt_cv_deplibs_check_method
=pass_all
1970 lt_cv_file_magic_test_file
=/lib
/libc.so
1973 sysv5uw
[78]* | sysv4
*uw2
*)
1974 lt_cv_deplibs_check_method
=pass_all
1977 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1978 case $host_vendor in
1980 lt_cv_deplibs_check_method
=pass_all
1983 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]'
1984 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1992 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1993 file_magic_cmd
=$lt_cv_file_magic_cmd
1994 deplibs_check_method
=$lt_cv_deplibs_check_method
1996 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1997 echo "configure:1998: checking for object suffix" >&5
1998 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2002 echo 'int i = 1;' > conftest.
$ac_ext
2003 if { (eval echo configure
:2004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 for ac_file
in conftest.
*; do
2007 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
2011 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2016 echo "$ac_t""$ac_cv_objext" 1>&6
2017 OBJEXT
=$ac_cv_objext
2018 ac_objext
=$ac_cv_objext
2020 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2022 # Only perform the check for file, if the check method requires it
2023 case $deplibs_check_method in
2025 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2026 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2027 echo "configure:2028: checking for ${ac_tool_prefix}file" >&5
2028 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2033 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2036 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2039 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2040 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2041 ac_dummy
="/usr/bin:$PATH"
2042 for ac_dir
in $ac_dummy; do
2043 test -z "$ac_dir" && ac_dir
=.
2044 if test -f $ac_dir/${ac_tool_prefix}file; then
2045 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2046 if test -n "$file_magic_test_file"; then
2047 case $deplibs_check_method in
2049 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2050 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2051 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2052 egrep "$file_magic_regex" > /dev
/null
; then
2057 *** Warning: the command libtool uses to detect shared libraries,
2058 *** $file_magic_cmd, produces output that libtool cannot recognize.
2059 *** The result is that libtool may fail to recognize shared libraries
2060 *** as such. This will affect the creation of libtool libraries that
2061 *** depend on shared libraries, but programs linked with such libtool
2062 *** libraries will work regardless of this problem. Nevertheless, you
2063 *** may want to report the problem to your system manager and/or to
2064 *** bug-libtool@gnu.org
2074 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2079 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2080 if test -n "$MAGIC_CMD"; then
2081 echo "$ac_t""$MAGIC_CMD" 1>&6
2083 echo "$ac_t""no" 1>&6
2086 if test -z "$lt_cv_path_MAGIC_CMD"; then
2087 if test -n "$ac_tool_prefix"; then
2088 echo $ac_n "checking for file""... $ac_c" 1>&6
2089 echo "configure:2090: checking for file" >&5
2090 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2095 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2098 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2101 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2102 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2103 ac_dummy
="/usr/bin:$PATH"
2104 for ac_dir
in $ac_dummy; do
2105 test -z "$ac_dir" && ac_dir
=.
2106 if test -f $ac_dir/file; then
2107 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2108 if test -n "$file_magic_test_file"; then
2109 case $deplibs_check_method in
2111 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2112 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2113 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2114 egrep "$file_magic_regex" > /dev
/null
; then
2119 *** Warning: the command libtool uses to detect shared libraries,
2120 *** $file_magic_cmd, produces output that libtool cannot recognize.
2121 *** The result is that libtool may fail to recognize shared libraries
2122 *** as such. This will affect the creation of libtool libraries that
2123 *** depend on shared libraries, but programs linked with such libtool
2124 *** libraries will work regardless of this problem. Nevertheless, you
2125 *** may want to report the problem to your system manager and/or to
2126 *** bug-libtool@gnu.org
2136 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2141 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2142 if test -n "$MAGIC_CMD"; then
2143 echo "$ac_t""$MAGIC_CMD" 1>&6
2145 echo "$ac_t""no" 1>&6
2157 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2158 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_word" >&5
2161 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 if test -n "$RANLIB"; then
2165 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2167 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2169 for ac_dir
in $ac_dummy; do
2170 test -z "$ac_dir" && ac_dir
=.
2171 if test -f $ac_dir/$ac_word; then
2172 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2179 RANLIB
="$ac_cv_prog_RANLIB"
2180 if test -n "$RANLIB"; then
2181 echo "$ac_t""$RANLIB" 1>&6
2183 echo "$ac_t""no" 1>&6
2187 if test -z "$ac_cv_prog_RANLIB"; then
2188 if test -n "$ac_tool_prefix"; then
2189 # Extract the first word of "ranlib", so it can be a program name with args.
2190 set dummy ranlib
; ac_word
=$2
2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2192 echo "configure:2193: checking for $ac_word" >&5
2193 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2196 if test -n "$RANLIB"; then
2197 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2199 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2201 for ac_dir
in $ac_dummy; do
2202 test -z "$ac_dir" && ac_dir
=.
2203 if test -f $ac_dir/$ac_word; then
2204 ac_cv_prog_RANLIB
="ranlib"
2209 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2212 RANLIB
="$ac_cv_prog_RANLIB"
2213 if test -n "$RANLIB"; then
2214 echo "$ac_t""$RANLIB" 1>&6
2216 echo "$ac_t""no" 1>&6
2224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2225 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_word" >&5
2228 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 if test -n "$STRIP"; then
2232 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2234 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2236 for ac_dir
in $ac_dummy; do
2237 test -z "$ac_dir" && ac_dir
=.
2238 if test -f $ac_dir/$ac_word; then
2239 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2246 STRIP
="$ac_cv_prog_STRIP"
2247 if test -n "$STRIP"; then
2248 echo "$ac_t""$STRIP" 1>&6
2250 echo "$ac_t""no" 1>&6
2254 if test -z "$ac_cv_prog_STRIP"; then
2255 if test -n "$ac_tool_prefix"; then
2256 # Extract the first word of "strip", so it can be a program name with args.
2257 set dummy strip
; ac_word
=$2
2258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_word" >&5
2260 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 if test -n "$STRIP"; then
2264 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2266 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2268 for ac_dir
in $ac_dummy; do
2269 test -z "$ac_dir" && ac_dir
=.
2270 if test -f $ac_dir/$ac_word; then
2271 ac_cv_prog_STRIP
="strip"
2276 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2279 STRIP
="$ac_cv_prog_STRIP"
2280 if test -n "$STRIP"; then
2281 echo "$ac_t""$STRIP" 1>&6
2283 echo "$ac_t""no" 1>&6
2292 # Check for any special flags to pass to ltconfig.
2293 libtool_flags
="--cache-file=$cache_file"
2294 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2295 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2296 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2297 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2298 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2301 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2302 if test "${enable_libtool_lock+set}" = set; then
2303 enableval
="$enable_libtool_lock"
2307 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2308 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2310 # Check whether --with-pic or --without-pic was given.
2311 if test "${with_pic+set}" = set; then
2318 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2319 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2321 # Some flags need to be propagated to the compiler or linker for good
2325 # Find out which ABI we are using.
2326 echo '#line 2327 "configure"' > conftest.
$ac_ext
2327 if { (eval echo configure
:2328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2328 if test "$lt_cv_prog_gnu_ld" = yes; then
2329 case `/usr/bin/file conftest.$ac_objext` in
2331 LD
="${LD-ld} -melf32bsmip"
2334 LD
="${LD-ld} -melf32bmipn32"
2337 LD
="${LD-ld} -melf64bmip"
2341 case `/usr/bin/file conftest.$ac_objext` in
2358 # Find out which ABI we are using.
2359 echo 'int i;' > conftest.
$ac_ext
2360 if { (eval echo configure
:2361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2361 case "`/usr/bin/file conftest.o`" in
2373 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
2374 # Find out which ABI we are using.
2375 echo 'int i;' > conftest.
$ac_ext
2376 if { (eval echo configure
:2377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2377 case "`/usr/bin/file conftest.o`" in
2381 LD
="${LD-ld} -m elf_i386"
2384 LD
="${LD-ld} -m elf32ppclinux"
2387 LD
="${LD-ld} -m elf_s390"
2390 LD
="${LD-ld} -m elf32_sparc"
2397 LD
="${LD-ld} -m elf_x86_64"
2399 ppc
*-*linux
*|powerpc
*-*linux
*)
2400 LD
="${LD-ld} -m elf64ppc"
2403 LD
="${LD-ld} -m elf64_s390"
2406 LD
="${LD-ld} -m elf64_sparc"
2416 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2417 SAVE_CFLAGS
="$CFLAGS"
2418 CFLAGS
="$CFLAGS -belf"
2419 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2420 echo "configure:2421: checking whether the C compiler needs -belf" >&5
2421 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2426 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2427 ac_cpp
='$CPP $CPPFLAGS'
2428 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2429 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2430 cross_compiling
=$ac_cv_prog_cc_cross
2432 cat > conftest.
$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2440 if { (eval echo configure
:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2442 lt_cv_cc_needs_belf
=yes
2444 echo "configure: failed program was:" >&5
2445 cat conftest.
$ac_ext >&5
2447 lt_cv_cc_needs_belf
=no
2451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2452 ac_cpp
='$CPP $CPPFLAGS'
2453 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2454 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2455 cross_compiling
=$ac_cv_prog_cc_cross
2459 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2460 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2462 CFLAGS
="$SAVE_CFLAGS"
2469 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2470 echo "configure:2471: checking how to run the C++ preprocessor" >&5
2471 if test -z "$CXXCPP"; then
2472 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2477 ac_cpp
='$CXXCPP $CPPFLAGS'
2478 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2479 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2480 cross_compiling
=$ac_cv_prog_cxx_cross
2481 CXXCPP
="${CXX-g++} -E"
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2487 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2488 { (eval echo configure
:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2489 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2490 if test -z "$ac_err"; then
2494 echo "configure: failed program was:" >&5
2495 cat conftest.
$ac_ext >&5
2500 ac_cv_prog_CXXCPP
="$CXXCPP"
2502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2503 ac_cpp
='$CPP $CPPFLAGS'
2504 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2505 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2506 cross_compiling
=$ac_cv_prog_cc_cross
2509 CXXCPP
="$ac_cv_prog_CXXCPP"
2510 echo "$ac_t""$CXXCPP" 1>&6
2513 # Save cache, so that ltconfig can load it
2514 cat > confcache
<<\EOF
2515 # This file is a shell script that caches the results of configure
2516 # tests run on this system so they can be shared between configure
2517 # scripts and configure runs. It is not useful on other systems.
2518 # If it contains results you don't want to keep, you may remove or edit it.
2520 # By default, configure uses ./config.cache as the cache file,
2521 # creating it if it does not exist already. You can give configure
2522 # the --cache-file=FILE option to use a different cache file; that is
2523 # what configure does when it calls configure scripts in
2524 # subdirectories, so they share the cache.
2525 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2526 # config.status only pays attention to the cache file if you give it the
2527 # --recheck option to rerun configure.
2530 # The following way of writing the cache mishandles newlines in values,
2531 # but we know of no workaround that is simple, portable, and efficient.
2532 # So, don't put newlines in cache variables' values.
2533 # Ultrix sh set writes to stderr and can't be redirected directly,
2534 # and sets the high bit in the cache file unless we assign to the vars.
2536 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2538 # `set' does not quote correctly, so add quotes (double-quote substitution
2539 # turns \\\\ into \\, and sed turns \\ into \).
2541 -e "s/'/'\\\\''/g" \
2542 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2545 # `set' quotes correctly as required by POSIX, so do not add quotes.
2546 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2549 if cmp -s $cache_file confcache
; then
2552 if test -w $cache_file; then
2553 echo "updating cache $cache_file"
2554 cat confcache
> $cache_file
2556 echo "not updating unwritable cache $cache_file"
2562 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2563 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2564 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2565 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2566 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2567 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2568 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2569 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2570 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2571 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2573 # Reload cache, that may have been modified by ltconfig
2574 if test -r "$cache_file"; then
2575 echo "loading cache $cache_file"
2578 echo "creating cache $cache_file"
2583 # This can be used to rebuild libtool when needed
2584 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2586 # Always use our own libtool.
2587 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2589 # Redirect the config.log output again, so that the ltconfig log is not
2590 # clobbered by the next message.
2591 exec 5>>.
/config.log
2595 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2597 lt_save_CFLAGS
="$CFLAGS"
2598 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
2599 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2600 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2601 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2602 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2603 deplibs_check_method
="$deplibs_check_method" \
2604 file_magic_cmd
="$file_magic_cmd" \
2605 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
2606 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
2607 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2609 CFLAGS
="$lt_save_CFLAGS"
2611 # Redirect the config.log output again, so that the ltconfig log is not
2612 # clobbered by the next message.
2613 exec 5>>.
/config.log
2621 # Check whether --with-target-subdir or --without-target-subdir was given.
2622 if test "${with_target_subdir+set}" = set; then
2623 withval
="$with_target_subdir"
2627 # Check whether --with-cross-host or --without-cross-host was given.
2628 if test "${with_cross_host+set}" = set; then
2629 withval
="$with_cross_host"
2634 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2635 echo "configure:2636: checking whether to enable maintainer-specific portions of Makefiles" >&5
2636 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2637 if test "${enable_maintainer_mode+set}" = set; then
2638 enableval
="$enable_maintainer_mode"
2639 USE_MAINTAINER_MODE
=$enableval
2641 USE_MAINTAINER_MODE
=no
2644 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2647 if test $USE_MAINTAINER_MODE = yes; then
2648 MAINTAINER_MODE_TRUE
=
2649 MAINTAINER_MODE_FALSE
='#'
2651 MAINTAINER_MODE_TRUE
='#'
2652 MAINTAINER_MODE_FALSE
=
2654 MAINT
=$MAINTAINER_MODE_TRUE
2657 # automake wants to see AC_EXEEXT. But we don't need it. And having
2658 # it is actually a problem, because the compiler we're passed can't
2659 # necessarily do a full link. So we fool automake here.
2661 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2662 # to nothing, so nothing would remain between `then' and `fi' if it
2663 # were not for the `:' below.
2667 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2668 echo "configure:2669: checking for executable suffix" >&5
2669 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2676 echo 'int main () { return 0; }' > conftest.
$ac_ext
2678 if { (eval echo configure
:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2679 for file in conftest.
*; do
2681 *.c |
*.o |
*.obj
) ;;
2682 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2686 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2689 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2694 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2695 echo "$ac_t""${ac_cv_exeext}" 1>&6
2700 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2701 echo "configure:2702: checking for thread model used by GCC" >&5
2702 THREADS
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2703 if test -z "$THREADS"; then
2706 echo "$ac_t""$THREADS" 1>&6
2708 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2709 if test "${enable_parallel_mark+set}" = set; then
2710 enableval
="$enable_parallel_mark"
2713 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2720 INCLUDES
=-I${srcdir}/include
2728 THREADLIBS
=-lpthread
2730 x86-
*-linux* | ia64-
*-linux* | i586-
*-linux* | i686-
*-linux* | x86_64-
*-linux* )
2731 cat >> confdefs.h
<<\EOF
2732 #define GC_LINUX_THREADS 1
2735 cat >> confdefs.h
<<\EOF
2736 #define _REENTRANT 1
2739 if test "${enable_parallel_mark}"; then
2740 cat >> confdefs.h
<<\EOF
2741 #define PARALLEL_MARK 1
2745 cat >> confdefs.h
<<\EOF
2746 #define THREAD_LOCAL_ALLOC 1
2751 cat >> confdefs.h
<<\EOF
2752 #define GC_LINUX_THREADS 1
2755 cat >> confdefs.h
<<\EOF
2756 #define _REENTRANT 1
2761 echo "configure: warning: "Only HP
/UX
11 threads are supported.
"" 1>&2
2762 cat >> confdefs.h
<<\EOF
2763 #define GC_HPUX_THREADS 1
2766 cat >> confdefs.h
<<\EOF
2767 #define _POSIX_C_SOURCE 199506L
2770 if test "${enable_parallel_mark}" = yes; then
2771 cat >> confdefs.h
<<\EOF
2772 #define PARALLEL_MARK 1
2776 cat >> confdefs.h
<<\EOF
2777 #define THREAD_LOCAL_ALLOC 1
2780 THREADLIBS
="-lpthread -lrt"
2783 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC.
"" 1>&2
2784 cat >> confdefs.h
<<\EOF
2785 #define GC_FREEBSD_THREADS 1
2788 INCLUDES
="$INCLUDES -pthread"
2792 cat >> confdefs.h
<<\EOF
2793 #define GC_SOLARIS_THREADS 1
2796 cat >> confdefs.h
<<\EOF
2797 #define GC_SOLARIS_PTHREADS 1
2802 cat >> confdefs.h
<<\EOF
2803 #define GC_IRIX_THREADS 1
2813 cat >> confdefs.h
<<\EOF
2814 #define GC_WIN32_THREADS 1
2817 cat >> confdefs.h
<<\EOF
2822 decosf1 | irix | mach | os2 | solaris | dce | vxworks
)
2823 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2826 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2831 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2832 echo "configure:2833: checking for dlopen in -ldl" >&5
2833 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 ac_save_LIBS
="$LIBS"
2839 cat > conftest.
$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 /* Override any gcc2 internal prototype to avoid an error. */
2843 /* We use char because int might match the return type of a gcc2
2844 builtin and then its argument prototype would still apply. */
2851 if { (eval echo configure
:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2853 eval "ac_cv_lib_$ac_lib_var=yes"
2855 echo "configure: failed program was:" >&5
2856 cat conftest.
$ac_ext >&5
2858 eval "ac_cv_lib_$ac_lib_var=no"
2861 LIBS
="$ac_save_LIBS"
2864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2865 echo "$ac_t""yes" 1>&6
2866 EXTRA_TEST_LIBS
="$EXTRA_TEST_LIBS -ldl"
2868 echo "$ac_t""no" 1>&6
2873 target_all
=libgcjgc.la
2878 # Check whether --with-ecos or --without-ecos was given.
2879 if test "${with_ecos+set}" = set; then
2880 withval
="$with_ecos"
2881 TARGET_ECOS
="$with_ecos"
2888 case "$TARGET_ECOS" in
2892 cat >> confdefs.h
<<\EOF
2896 CXXINCLUDES
="-I${TARGET_ECOS}/include"
2897 addobjs
="$addobjs ecos.lo"
2908 machdep
="alpha_mach_dep.lo"
2909 if test x
"${ac_cv_lib_dl_dlopen}" != xyes
; then
2910 echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2
2911 # Check whether --enable-shared or --disable-shared was given.
2912 if test "${enable_shared+set}" = set; then
2913 enableval
="$enable_shared"
2914 p
=${PACKAGE-default}
2916 yes) enable_shared
=yes ;;
2917 no
) enable_shared
=no
;;
2920 # Look at the argument we got. We use all the common list separators.
2921 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2922 for pkg
in $enableval; do
2923 if test "X$pkg" = "X$p"; then
2937 machdep
="alpha_mach_dep.lo"
2939 i?
86-*-solaris2.
[89]*)
2940 cat >> confdefs.h
<<\EOF
2941 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
2946 machdep
="mips_ultrix_mach_dep.lo"
2947 cat >> confdefs.h
<<\EOF
2948 #define STACKBASE __stackbase
2951 cat >> confdefs.h
<<\EOF
2952 #define DATASTART_IS_ETEXT 1
2957 machdep
="mips_ultrix_mach-dep.lo"
2962 machdep
="mips_sgi_mach_dep.lo"
2963 cat >> confdefs.h
<<\EOF
2964 #define NO_EXECUTE_PERMISSION 1
2968 sparc-sun-solaris2.3
*)
2969 machdep
="sparc_mach_dep.lo"
2970 cat >> confdefs.h
<<\EOF
2971 #define SUNOS53_SHARED_LIB 1
2975 sparc-sun-solaris2.
*)
2976 machdep
="sparc_mach_dep.lo"
2979 machdep
="mach_dep.lo ia64_save_regs_in_stack.lo"
2982 if test x
"$machdep" = x
; then
2983 machdep
="mach_dep.lo"
2985 addobjs
="$addobjs $machdep"
2989 sparc-sun-solaris2
*)
2990 if test "$GCC" = yes; then
2992 for i
in $CFLAGS; do
2997 new_CFLAGS
="$new_CFLAGS $i"
3001 CFLAGS
="$new_CFLAGS"
3009 cat >> confdefs.h
<<\EOF
3013 cat >> confdefs.h
<<\EOF
3014 #define NO_SIGNALS 1
3017 cat >> confdefs.h
<<\EOF
3018 #define NO_EXECUTE_PERMISSION 1
3021 cat >> confdefs.h
<<\EOF
3022 #define ALL_INTERIOR_POINTERS 1
3026 cat >> confdefs.h
<<\EOF
3027 #define JAVA_FINALIZATION 1
3030 cat >> confdefs.h
<<\EOF
3031 #define GC_GCJ_SUPPORT 1
3034 cat >> confdefs.h
<<\EOF
3035 #define ATOMIC_UNCOLLECTABLE 1
3039 if test -n "${with_cross_host}"; then
3040 cat >> confdefs.h
<<\EOF
3044 cat >> confdefs.h
<<\EOF
3045 #define NO_DEBUGGING 1
3050 # Check whether --enable-full-debug or --disable-full-debug was given.
3051 if test "${enable_full_debug+set}" = set; then
3052 enableval
="$enable_full_debug"
3053 if test "$enable_full_debug" = "yes"; then
3054 echo "configure: warning: "Must define GC_DEBUG and use debug alloc.
in clients.
"" 1>&2
3055 cat >> confdefs.h
<<\EOF
3056 #define KEEP_BACK_PTRS 1
3059 cat >> confdefs.h
<<\EOF
3060 #define DBG_HDRS_ALL 1
3065 cat >> confdefs.h
<<\EOF
3066 #define MAKE_BACK_GRAPH 1
3070 x86-
*-linux* | i586-
*-linux* | i686-
*-linux* | x86_64-
*-linux* )
3071 cat >> confdefs.h
<<\EOF
3072 #define MAKE_BACK_GRAPH 1
3075 echo "configure: warning: "Client must not use
-fomit-frame-pointer.
"" 1>&2
3076 cat >> confdefs.h
<<\EOF
3077 #define SAVE_CALL_COUNT 8
3086 if test -n "$with_cross_host" &&
3087 test x
"$with_cross_host" != x
"no"; then
3088 toolexecdir
='$(exec_prefix)/$(target_alias)'
3089 toolexeclibdir
='$(toolexecdir)/lib'
3091 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3092 toolexeclibdir
='$(libdir)'
3094 multi_os_directory
=`$CC -print-multi-os-directory`
3095 case $multi_os_directory in
3096 .
) ;; # Avoid trailing /.
3097 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3102 if test "${multilib}" = "yes"; then
3103 multilib_arg
="--enable-multilib"
3109 cat > confcache
<<\EOF
3110 # This file is a shell script that caches the results of configure
3111 # tests run on this system so they can be shared between configure
3112 # scripts and configure runs. It is not useful on other systems.
3113 # If it contains results you don't want to keep, you may remove or edit it.
3115 # By default, configure uses ./config.cache as the cache file,
3116 # creating it if it does not exist already. You can give configure
3117 # the --cache-file=FILE option to use a different cache file; that is
3118 # what configure does when it calls configure scripts in
3119 # subdirectories, so they share the cache.
3120 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3121 # config.status only pays attention to the cache file if you give it the
3122 # --recheck option to rerun configure.
3125 # The following way of writing the cache mishandles newlines in values,
3126 # but we know of no workaround that is simple, portable, and efficient.
3127 # So, don't put newlines in cache variables' values.
3128 # Ultrix sh set writes to stderr and can't be redirected directly,
3129 # and sets the high bit in the cache file unless we assign to the vars.
3131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3133 # `set' does not quote correctly, so add quotes (double-quote substitution
3134 # turns \\\\ into \\, and sed turns \\ into \).
3136 -e "s/'/'\\\\''/g" \
3137 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3140 # `set' quotes correctly as required by POSIX, so do not add quotes.
3141 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3144 if cmp -s $cache_file confcache
; then
3147 if test -w $cache_file; then
3148 echo "updating cache $cache_file"
3149 cat confcache
> $cache_file
3151 echo "not updating unwritable cache $cache_file"
3156 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3158 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3159 # Let make expand exec_prefix.
3160 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3162 # Any assignment to VPATH causes Sun make to only execute
3163 # the first set of double-colon rules, so remove it if not needed.
3164 # If there is a colon in the path, we need to keep it.
3165 if test "x$srcdir" = x.
; then
3166 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3169 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3171 # Transform confdefs.h into DEFS.
3172 # Protect against shell expansion while executing Makefile rules.
3173 # Protect against Makefile macro expansion.
3175 # If the first sed substitution is executed (which looks for macros that
3176 # take arguments), then we branch to the quote section. Otherwise,
3177 # look for a macro that doesn't take arguments.
3178 cat >confdef2opt.
sed <<\_ACEOF
3181 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3183 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3187 s
,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3193 # We use echo to avoid assuming a particular line-breaking character.
3194 # The extra dot is to prevent the shell from consuming trailing
3195 # line-breaks from the sub-command output. A line-break within
3196 # single-quotes doesn't work because, if this script is created in a
3197 # platform that uses two characters for line-breaks (e.g., DOS), tr
3199 ac_LF_and_DOT=`echo; echo .
`
3200 DEFS=`sed -n -f confdef2opt.
sed confdefs.h |
tr "$ac_LF_and_DOT" ' .'`
3201 rm -f confdef2opt.sed
3204 # Without the "./", some shells look in PATH for config.status.
3205 : ${CONFIG_STATUS=./config.status}
3207 echo creating $CONFIG_STATUS
3208 rm -f $CONFIG_STATUS
3209 cat > $CONFIG_STATUS <<EOF
3211 # Generated automatically by configure.
3212 # Run this file to recreate the current configuration.
3213 # This directory was configured as follows,
3214 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
3216 # $0 $ac_configure_args
3218 # Compiler output produced by configure, useful for debugging
3219 # configure, is in ./config.log if it exists.
3221 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3224 case "\$ac_option" in
3225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3226 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3227 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3228 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3229 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3231 -help | --help | --hel | --he | --h)
3232 echo "\$ac_cs_usage"; exit 0 ;;
3233 *) echo "\$ac_cs_usage"; exit 1 ;;
3237 ac_given_srcdir=$srcdir
3238 ac_given_INSTALL="$INSTALL"
3240 trap 'rm -fr `echo "Makefile include/Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3242 cat >> $CONFIG_STATUS <<EOF
3244 # Protect against being on the right side of a sed subst in config.status.
3245 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3246 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3250 s%@CFLAGS@%$CFLAGS%g
3251 s%@CPPFLAGS@%$CPPFLAGS%g
3252 s%@CXXFLAGS@%$CXXFLAGS%g
3253 s%@FFLAGS@%$FFLAGS%g
3255 s%@LDFLAGS@%$LDFLAGS%g
3257 s%@exec_prefix@%$exec_prefix%g
3258 s%@prefix@%$prefix%g
3259 s%@program_transform_name@%$program_transform_name%g
3260 s%@bindir@%$bindir%g
3261 s%@sbindir@%$sbindir%g
3262 s%@libexecdir@%$libexecdir%g
3263 s%@datadir@%$datadir%g
3264 s%@sysconfdir@%$sysconfdir%g
3265 s%@sharedstatedir@%$sharedstatedir%g
3266 s%@localstatedir@%$localstatedir%g
3267 s%@libdir@%$libdir%g
3268 s%@includedir@%$includedir%g
3269 s%@oldincludedir@%$oldincludedir%g
3270 s%@infodir@%$infodir%g
3271 s%@mandir@%$mandir%g
3272 s%@gc_basedir@%$gc_basedir%g
3274 s%@host_alias@%$host_alias%g
3275 s%@host_cpu@%$host_cpu%g
3276 s%@host_vendor@%$host_vendor%g
3277 s%@host_os@%$host_os%g
3278 s%@target@%$target%g
3279 s%@target_alias@%$target_alias%g
3280 s%@target_cpu@%$target_cpu%g
3281 s%@target_vendor@%$target_vendor%g
3282 s%@target_os@%$target_os%g
3284 s%@build_alias@%$build_alias%g
3285 s%@build_cpu@%$build_cpu%g
3286 s%@build_vendor@%$build_vendor%g
3287 s%@build_os@%$build_os%g
3288 s%@mkinstalldirs@%$mkinstalldirs%g
3289 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3290 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3291 s%@INSTALL_DATA@%$INSTALL_DATA%g
3292 s%@PACKAGE@%$PACKAGE%g
3293 s%@VERSION@%$VERSION%g
3294 s%@ACLOCAL@%$ACLOCAL%g
3295 s%@AUTOCONF@%$AUTOCONF%g
3296 s%@AUTOMAKE@%$AUTOMAKE%g
3297 s%@AUTOHEADER@%$AUTOHEADER%g
3298 s%@MAKEINFO@%$MAKEINFO%g
3299 s%@SET_MAKE@%$SET_MAKE%g
3304 s%@RANLIB@%$RANLIB%g
3305 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3306 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3308 s%@EXEEXT@%$EXEEXT%g
3309 s%@GC_CFLAGS@%$GC_CFLAGS%g
3311 s%@OBJEXT@%$OBJEXT%g
3313 s%@LIBTOOL@%$LIBTOOL%g
3314 s%@CXXCPP@%$CXXCPP%g
3315 s%@THREADLIBS@%$THREADLIBS%g
3316 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3317 s%@target_all@%$target_all%g
3318 s%@INCLUDES@%$INCLUDES%g
3319 s%@CXXINCLUDES@%$CXXINCLUDES%g
3320 s%@addobjs@%$addobjs%g
3321 s%@MY_CFLAGS@%$MY_CFLAGS%g
3322 s%@toolexecdir@%$toolexecdir%g
3323 s%@toolexeclibdir@%$toolexeclibdir%g
3328 cat >> $CONFIG_STATUS <<\EOF
3330 # Split the substitutions into bite-sized pieces for seds with
3331 # small command number limits, like on Digital OSF/1 and HP-UX.
3332 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3333 ac_file=1 # Number of current file.
3334 ac_beg=1 # First line for current file.
3335 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3338 while $ac_more_lines; do
3339 if test $ac_beg -gt 1; then
3340 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3342 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3344 if test ! -s conftest.s$ac_file; then
3346 rm -f conftest.s$ac_file
3348 if test -z "$ac_sed_cmds"; then
3349 ac_sed_cmds="sed -f conftest.s$ac_file"
3351 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3353 ac_file=`expr $ac_file + 1`
3355 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3358 if test -z "$ac_sed_cmds"; then
3363 cat >> $CONFIG_STATUS <<EOF
3365 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"}
3367 cat >> $CONFIG_STATUS <<\EOF
3368 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3371 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
3372 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
3373 *) ac_file_in="${ac_file}.in" ;;
3376 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3378 # Remove last slash and all that follows it. Not all systems have dirname.
3379 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3380 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3381 # The file is in a subdirectory.
3382 test ! -d "$ac_dir" && mkdir "$ac_dir"
3383 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
3384 # A "../" for each directory in $ac_dir_suffix.
3385 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
3387 ac_dir_suffix= ac_dots=
3390 case "$ac_given_srcdir" in
3392 if test -z "$ac_dots"; then top_srcdir=.
3393 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
3394 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3396 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3397 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3400 case "$ac_given_INSTALL" in
3401 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3402 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3405 echo creating "$ac_file"
3407 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
3409 *Makefile*) ac_comsub="1i\\
3410 # $configure_input" ;;
3414 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3416 s%@configure_input@%$configure_input%g
3417 s%@srcdir@%$srcdir%g
3418 s%@top_srcdir@%$top_srcdir%g
3419 s%@INSTALL@%$INSTALL%g
3420 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3425 cat >> $CONFIG_STATUS <<EOF
3429 with_multisubdir=${with_multisubdir}
3430 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3431 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3432 gc_basedir=${gc_basedir}
3434 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
3438 cat >> $CONFIG_STATUS <<\EOF
3440 echo "$DEFS" > boehm-cflags
3442 if test -n "$CONFIG_FILES"; then
3443 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3444 ac_file=Makefile . ${gc_basedir}/../config-ml.in
3448 chmod +x $CONFIG_STATUS
3449 rm -fr confdefs* $ac_clean_files
3450 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1