Update version
[official-gcc.git] / libobjc / configure
blobc78ef1ed3c8372f1438cb12d4e31eacd47faf6db
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
23 ac_help="$ac_help
24 --enable-shared[=PKGS] build shared libraries [default=no]"
25 ac_help="$ac_help
26 --enable-static[=PKGS] build static libraries [default=yes]"
27 ac_help="$ac_help
28 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
29 ac_help="$ac_help
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
31 ac_help="$ac_help
32 --disable-libtool-lock avoid locking (might break parallel builds)"
33 ac_help="$ac_help
34 --with-pic try to use only PIC/non-PIC objects [default=use both]"
35 ac_help="$ac_help
36 --enable-objc-gc enable the use of Boehm's garbage collector with
37 the GNU Objective-C runtime."
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
42 build=NONE
43 cache_file=./config.cache
44 exec_prefix=NONE
45 host=NONE
46 no_create=
47 nonopt=NONE
48 no_recursion=
49 prefix=NONE
50 program_prefix=NONE
51 program_suffix=NONE
52 program_transform_name=s,x,x,
53 silent=
54 site=
55 srcdir=
56 target=NONE
57 verbose=
58 x_includes=NONE
59 x_libraries=NONE
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
74 subdirs=
75 MFLAGS= MAKEFLAGS=
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
78 ac_max_here_lines=12
80 ac_prev=
81 for ac_option
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
87 ac_prev=
88 continue
91 case "$ac_option" in
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 *) ac_optarg= ;;
94 esac
96 # Accept the important Cygnus configure options, so we can diagnose typos.
98 case "$ac_option" in
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 ac_prev=bindir ;;
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
106 ac_prev=build ;;
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 ac_prev=datadir ;;
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 | --da=*)
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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 case "$ac_option" in
140 *=*) ;;
141 *) ac_optarg=yes ;;
142 esac
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
156 with_gas=yes ;;
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
161 cat << EOF
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
164 Configuration:
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
172 [$ac_default_prefix]
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 [same as prefix]
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
179 [PREFIX/share]
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 [PREFIX/com]
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
195 cat << EOF
196 Host type:
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
211 exit 0 ;;
213 -host | --host | --hos | --ho)
214 ac_prev=host ;;
215 -host=* | --host=* | --hos=* | --ho=*)
216 host="$ac_optarg" ;;
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 ac_prev=infodir ;;
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
230 -libdir | --libdir | --libdi | --libd)
231 ac_prev=libdir ;;
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 ac_prev=mandir ;;
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
256 -nfp | --nfp | --nf)
257 # Obsolete; use --without-fp.
258 with_fp=no ;;
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 | --no-cr | --no-c)
262 no_create=yes ;;
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 no_recursion=yes ;;
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 ac_prev=prefix ;;
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
315 silent=yes ;;
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 ac_prev=sbindir ;;
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 | --sbi=* | --sb=*)
321 sbindir="$ac_optarg" ;;
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
326 | --sha | --sh)
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 | --sha=* | --sh=*)
332 sharedstatedir="$ac_optarg" ;;
334 -site | --site | --sit)
335 ac_prev=site ;;
336 -site=* | --site=* | --sit=*)
337 site="$ac_optarg" ;;
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 ac_prev=srcdir ;;
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
352 ac_prev=target ;;
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 verbose=yes ;;
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
361 exit 0 ;;
363 -with-* | --with-*)
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 case "$ac_option" in
371 *=*) ;;
372 *) ac_optarg=yes ;;
373 esac
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
385 --x)
386 # Obsolete; use --with-x.
387 with_x=yes ;;
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 nonopt="$ac_option"
416 esac
417 done
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
426 # 0 standard input
427 # 1 file creation
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
434 exec 6>/dev/null
435 else
436 exec 6>&1
438 exec 5>./config.log
440 echo "\
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
443 " 1>&5
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
447 ac_configure_args=
448 for ac_arg
450 case "$ac_arg" in
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 esac
459 done
461 # NLS nuisances.
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 echo > confdefs.h
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=objc/objc.h
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
484 ac_prog=$0
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 srcdir=$ac_confdir
488 if test ! -r $srcdir/$ac_unique_file; then
489 srcdir=..
491 else
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 else
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 else
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
514 . "$ac_site_file"
516 done
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
520 . $cache_file
521 else
522 echo "creating cache $cache_file"
523 > $cache_file
526 ac_ext=c
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
533 ac_exeext=
534 ac_objext=o
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='
539 ' ac_t=' '
540 else
541 ac_n=-n ac_c= ac_t=
543 else
544 ac_n= ac_c='\c' ac_t=
550 # This works around the fact that libtool configuration may change LD
551 # for this particular configuration, but some shells, instead of
552 # keeping the changes in LD private, export them just because LD is
553 # exported.
554 ORIGINAL_LD_FOR_MULTILIBS=$LD
557 # Check whether --enable-multilib or --disable-multilib was given.
558 if test "${enable_multilib+set}" = set; then
559 enableval="$enable_multilib"
560 case "${enableval}" in
561 yes) multilib=yes ;;
562 no) multilib=no ;;
563 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
564 esac
565 else
566 multilib=yes
569 # When building with srcdir == objdir, links to the source files will
570 # be created in directories within the target_subdir. We have to
571 # adjust toplevel_srcdir accordingly, so that configure finds
572 # install-sh and other auxiliary files that live in the top-level
573 # source directory.
574 if test "${srcdir}" = "."; then
575 if test -z "${with_target_subdir}"; then
576 toprel=".."
577 else
578 if test "${with_target_subdir}" != "."; then
579 toprel="${with_multisrctop}../.."
580 else
581 toprel="${with_multisrctop}.."
584 else
585 toprel=".."
587 ac_aux_dir=
588 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
589 if test -f $ac_dir/install-sh; then
590 ac_aux_dir=$ac_dir
591 ac_install_sh="$ac_aux_dir/install-sh -c"
592 break
593 elif test -f $ac_dir/install.sh; then
594 ac_aux_dir=$ac_dir
595 ac_install_sh="$ac_aux_dir/install.sh -c"
596 break
598 done
599 if test -z "$ac_aux_dir"; then
600 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
602 ac_config_guess=$ac_aux_dir/config.guess
603 ac_config_sub=$ac_aux_dir/config.sub
604 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606 toplevel_srcdir=\${top_srcdir}/$toprel
611 # Do some error checking and defaulting for the host and target type.
612 # The inputs are:
613 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
615 # The rules are:
616 # 1. You are not allowed to specify --host, --target, and nonopt at the
617 # same time.
618 # 2. Host defaults to nonopt.
619 # 3. If nonopt is not specified, then host defaults to the current host,
620 # as determined by config.guess.
621 # 4. Target and build default to nonopt.
622 # 5. If nonopt is not specified, then target and build default to host.
624 # The aliases save the names the user supplied, while $host etc.
625 # will get canonicalized.
626 case $host---$target---$nonopt in
627 NONE---*---* | *---NONE---* | *---*---NONE) ;;
628 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
629 esac
632 # Make sure we can run config.sub.
633 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
634 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
637 echo $ac_n "checking host system type""... $ac_c" 1>&6
638 echo "configure:639: checking host system type" >&5
640 host_alias=$host
641 case "$host_alias" in
642 NONE)
643 case $nonopt in
644 NONE)
645 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
646 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
647 fi ;;
648 *) host_alias=$nonopt ;;
649 esac ;;
650 esac
652 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
653 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656 echo "$ac_t""$host" 1>&6
658 echo $ac_n "checking target system type""... $ac_c" 1>&6
659 echo "configure:660: checking target system type" >&5
661 target_alias=$target
662 case "$target_alias" in
663 NONE)
664 case $nonopt in
665 NONE) target_alias=$host_alias ;;
666 *) target_alias=$nonopt ;;
667 esac ;;
668 esac
670 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
671 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
672 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
673 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
674 echo "$ac_t""$target" 1>&6
676 echo $ac_n "checking build system type""... $ac_c" 1>&6
677 echo "configure:678: checking build system type" >&5
679 build_alias=$build
680 case "$build_alias" in
681 NONE)
682 case $nonopt in
683 NONE) build_alias=$host_alias ;;
684 *) build_alias=$nonopt ;;
685 esac ;;
686 esac
688 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
689 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
690 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
691 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
692 echo "$ac_t""$build" 1>&6
694 test "$host_alias" != "$target_alias" &&
695 test "$program_prefix$program_suffix$program_transform_name" = \
696 NONENONEs,x,x, &&
697 program_prefix=${target_alias}-
699 target_alias=${target_alias-$target}
702 if test $host != $build; then
703 ac_tool_prefix=${host_alias}-
704 else
705 ac_tool_prefix=
708 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
709 echo "configure:710: checking for Cygwin environment" >&5
710 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
712 else
713 cat > conftest.$ac_ext <<EOF
714 #line 715 "configure"
715 #include "confdefs.h"
717 int main() {
719 #ifndef __CYGWIN__
720 #define __CYGWIN__ __CYGWIN32__
721 #endif
722 return __CYGWIN__;
723 ; return 0; }
725 if { (eval echo configure:726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
726 rm -rf conftest*
727 ac_cv_cygwin=yes
728 else
729 echo "configure: failed program was:" >&5
730 cat conftest.$ac_ext >&5
731 rm -rf conftest*
732 ac_cv_cygwin=no
734 rm -f conftest*
735 rm -f conftest*
738 echo "$ac_t""$ac_cv_cygwin" 1>&6
739 CYGWIN=
740 test "$ac_cv_cygwin" = yes && CYGWIN=yes
741 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
742 echo "configure:743: checking for mingw32 environment" >&5
743 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
745 else
746 cat > conftest.$ac_ext <<EOF
747 #line 748 "configure"
748 #include "confdefs.h"
750 int main() {
751 return __MINGW32__;
752 ; return 0; }
754 if { (eval echo configure:755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
755 rm -rf conftest*
756 ac_cv_mingw32=yes
757 else
758 echo "configure: failed program was:" >&5
759 cat conftest.$ac_ext >&5
760 rm -rf conftest*
761 ac_cv_mingw32=no
763 rm -f conftest*
764 rm -f conftest*
767 echo "$ac_t""$ac_cv_mingw32" 1>&6
768 MINGW32=
769 test "$ac_cv_mingw32" = yes && MINGW32=yes
771 # Export build and source directories.
772 # These need to be absolute paths, yet at the same time need to
773 # canonicalize only relative paths, because then amd will not unmount
774 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
775 glibcpp_builddir=`pwd`
776 case $srcdir in
777 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
778 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
779 esac
785 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
786 # be 'cp -p' if linking isn't available.
787 #ac_cv_prog_LN_S='cp -p'
788 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
789 echo "configure:790: checking whether ln -s works" >&5
790 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
792 else
793 rm -f conftestdata
794 if ln -s X conftestdata 2>/dev/null
795 then
796 rm -f conftestdata
797 ac_cv_prog_LN_S="ln -s"
798 else
799 ac_cv_prog_LN_S=ln
802 LN_S="$ac_cv_prog_LN_S"
803 if test "$ac_cv_prog_LN_S" = "ln -s"; then
804 echo "$ac_t""yes" 1>&6
805 else
806 echo "$ac_t""no" 1>&6
810 # We use these options to decide which functions to include.
811 # Check whether --with-target-subdir or --without-target-subdir was given.
812 if test "${with_target_subdir+set}" = set; then
813 withval="$with_target_subdir"
817 # Check whether --with-cross-host or --without-cross-host was given.
818 if test "${with_cross_host+set}" = set; then
819 withval="$with_cross_host"
824 # Never versions of autoconf add an underscore to these functions.
825 # Prevent future problems ...
831 # AC_PROG_CC
833 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
834 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
835 # are probably using a cross compiler, which will not be able to fully
836 # link an executable. This should really be fixed in autoconf
837 # itself.
842 # Extract the first word of "gcc", so it can be a program name with args.
843 set dummy gcc; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
848 else
849 if test -n "$CC"; then
850 ac_cv_prog_CC="$CC" # Let the user override the test.
851 else
852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
853 ac_dummy="$PATH"
854 for ac_dir in $ac_dummy; do
855 test -z "$ac_dir" && ac_dir=.
856 if test -f $ac_dir/$ac_word; then
857 ac_cv_prog_CC="gcc"
858 break
860 done
861 IFS="$ac_save_ifs"
864 CC="$ac_cv_prog_CC"
865 if test -n "$CC"; then
866 echo "$ac_t""$CC" 1>&6
867 else
868 echo "$ac_t""no" 1>&6
871 if test -z "$CC"; then
872 # Extract the first word of "cc", so it can be a program name with args.
873 set dummy cc; ac_word=$2
874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875 echo "configure:876: checking for $ac_word" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
878 else
879 if test -n "$CC"; then
880 ac_cv_prog_CC="$CC" # Let the user override the test.
881 else
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
883 ac_prog_rejected=no
884 ac_dummy="$PATH"
885 for ac_dir in $ac_dummy; do
886 test -z "$ac_dir" && ac_dir=.
887 if test -f $ac_dir/$ac_word; then
888 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
889 ac_prog_rejected=yes
890 continue
892 ac_cv_prog_CC="cc"
893 break
895 done
896 IFS="$ac_save_ifs"
897 if test $ac_prog_rejected = yes; then
898 # We found a bogon in the path, so make sure we never use it.
899 set dummy $ac_cv_prog_CC
900 shift
901 if test $# -gt 0; then
902 # We chose a different compiler from the bogus one.
903 # However, it has the same basename, so the bogon will be chosen
904 # first if we set CC to just the basename; use the full file name.
905 shift
906 set dummy "$ac_dir/$ac_word" "$@"
907 shift
908 ac_cv_prog_CC="$@"
913 CC="$ac_cv_prog_CC"
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
916 else
917 echo "$ac_t""no" 1>&6
920 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
923 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
924 echo "configure:925: checking whether we are using GNU C" >&5
925 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
926 echo $ac_n "(cached) $ac_c" 1>&6
927 else
928 cat > conftest.c <<EOF
929 #ifdef __GNUC__
930 yes;
931 #endif
933 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
934 ac_cv_prog_gcc=yes
935 else
936 ac_cv_prog_gcc=no
940 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
942 if test $ac_cv_prog_gcc = yes; then
943 GCC=yes
944 ac_test_CFLAGS="${CFLAGS+set}"
945 ac_save_CFLAGS="$CFLAGS"
946 CFLAGS=
947 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
948 echo "configure:949: checking whether ${CC-cc} accepts -g" >&5
949 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
951 else
952 echo 'void f(){}' > conftest.c
953 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
954 ac_cv_prog_cc_g=yes
955 else
956 ac_cv_prog_cc_g=no
958 rm -f conftest*
962 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
963 if test "$ac_test_CFLAGS" = set; then
964 CFLAGS="$ac_save_CFLAGS"
965 elif test $ac_cv_prog_cc_g = yes; then
966 CFLAGS="-g -O2"
967 else
968 CFLAGS="-O2"
970 else
971 GCC=
972 test "${CFLAGS+set}" = set || CFLAGS="-g"
976 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
977 set dummy ${ac_tool_prefix}as; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
982 else
983 if test -n "$AS"; then
984 ac_cv_prog_AS="$AS" # Let the user override the test.
985 else
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
987 ac_dummy="$PATH"
988 for ac_dir in $ac_dummy; do
989 test -z "$ac_dir" && ac_dir=.
990 if test -f $ac_dir/$ac_word; then
991 ac_cv_prog_AS="${ac_tool_prefix}as"
992 break
994 done
995 IFS="$ac_save_ifs"
996 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
999 AS="$ac_cv_prog_AS"
1000 if test -n "$AS"; then
1001 echo "$ac_t""$AS" 1>&6
1002 else
1003 echo "$ac_t""no" 1>&6
1008 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1009 set dummy ${ac_tool_prefix}ar; ac_word=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011 echo "configure:1012: checking for $ac_word" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1014 else
1015 if test -n "$AR"; then
1016 ac_cv_prog_AR="$AR" # Let the user override the test.
1017 else
1018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1019 ac_dummy="$PATH"
1020 for ac_dir in $ac_dummy; do
1021 test -z "$ac_dir" && ac_dir=.
1022 if test -f $ac_dir/$ac_word; then
1023 ac_cv_prog_AR="${ac_tool_prefix}ar"
1024 break
1026 done
1027 IFS="$ac_save_ifs"
1028 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1031 AR="$ac_cv_prog_AR"
1032 if test -n "$AR"; then
1033 echo "$ac_t""$AR" 1>&6
1034 else
1035 echo "$ac_t""no" 1>&6
1040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1041 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1043 echo "configure:1044: checking for $ac_word" >&5
1044 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1046 else
1047 if test -n "$RANLIB"; then
1048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1049 else
1050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1051 ac_dummy="$PATH"
1052 for ac_dir in $ac_dummy; do
1053 test -z "$ac_dir" && ac_dir=.
1054 if test -f $ac_dir/$ac_word; then
1055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1056 break
1058 done
1059 IFS="$ac_save_ifs"
1062 RANLIB="$ac_cv_prog_RANLIB"
1063 if test -n "$RANLIB"; then
1064 echo "$ac_t""$RANLIB" 1>&6
1065 else
1066 echo "$ac_t""no" 1>&6
1070 if test -z "$ac_cv_prog_RANLIB"; then
1071 if test -n "$ac_tool_prefix"; then
1072 # Extract the first word of "ranlib", so it can be a program name with args.
1073 set dummy ranlib; ac_word=$2
1074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075 echo "configure:1076: checking for $ac_word" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1078 else
1079 if test -n "$RANLIB"; then
1080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1081 else
1082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1083 ac_dummy="$PATH"
1084 for ac_dir in $ac_dummy; do
1085 test -z "$ac_dir" && ac_dir=.
1086 if test -f $ac_dir/$ac_word; then
1087 ac_cv_prog_RANLIB="ranlib"
1088 break
1090 done
1091 IFS="$ac_save_ifs"
1092 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1095 RANLIB="$ac_cv_prog_RANLIB"
1096 if test -n "$RANLIB"; then
1097 echo "$ac_t""$RANLIB" 1>&6
1098 else
1099 echo "$ac_t""no" 1>&6
1102 else
1103 RANLIB="ranlib-not-found-in-path-error"
1107 # Find a good install program. We prefer a C program (faster),
1108 # so one script is as good as another. But avoid the broken or
1109 # incompatible versions:
1110 # SysV /etc/install, /usr/sbin/install
1111 # SunOS /usr/etc/install
1112 # IRIX /sbin/install
1113 # AIX /bin/install
1114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1117 # ./install, which can be erroneously created by make from ./install.sh.
1118 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1119 echo "configure:1120: checking for a BSD compatible install" >&5
1120 if test -z "$INSTALL"; then
1121 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1125 for ac_dir in $PATH; do
1126 # Account for people who put trailing slashes in PATH elements.
1127 case "$ac_dir/" in
1128 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1130 # OSF1 and SCO ODT 3.0 have their own names for install.
1131 # Don't use installbsd from OSF since it installs stuff as root
1132 # by default.
1133 for ac_prog in ginstall scoinst install; do
1134 if test -f $ac_dir/$ac_prog; then
1135 if test $ac_prog = install &&
1136 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1137 # AIX install. It has an incompatible calling convention.
1139 else
1140 ac_cv_path_install="$ac_dir/$ac_prog -c"
1141 break 2
1144 done
1146 esac
1147 done
1148 IFS="$ac_save_IFS"
1151 if test "${ac_cv_path_install+set}" = set; then
1152 INSTALL="$ac_cv_path_install"
1153 else
1154 # As a last resort, use the slow shell script. We don't cache a
1155 # path for INSTALL within a source directory, because that will
1156 # break other packages using the cache if that directory is
1157 # removed, or if the path is relative.
1158 INSTALL="$ac_install_sh"
1161 echo "$ac_t""$INSTALL" 1>&6
1163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1164 # It thinks the first close brace ends the variable substitution.
1165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1172 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1173 # at least currently, we never actually build a program, so we never
1174 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1175 # fails, because we are probably configuring with a cross compiler
1176 # which can't create executables. So we include AC_EXEEXT to keep
1177 # automake happy, but we don't execute it, since we don't care about
1178 # the result.
1179 if false; then
1180 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1181 # to nothing, so nothing would remain between `then' and `fi' if it
1182 # were not for the `:' below.
1186 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1187 echo "configure:1188: checking for executable suffix" >&5
1188 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1192 ac_cv_exeext=.exe
1193 else
1194 rm -f conftest*
1195 echo 'int main () { return 0; }' > conftest.$ac_ext
1196 ac_cv_exeext=
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1198 for file in conftest.*; do
1199 case $file in
1200 *.c | *.o | *.obj) ;;
1201 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1202 esac
1203 done
1204 else
1205 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1207 rm -f conftest*
1208 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1212 EXEEXT=""
1213 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1214 echo "$ac_t""${ac_cv_exeext}" 1>&6
1215 ac_exeext=$EXEEXT
1220 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
1221 # exported correctly in GLIBCPP_CONFIGURE.
1222 glibcpp_toolexecdir=no
1223 glibcpp_toolexeclibdir=no
1224 glibcpp_prefixdir=${prefix}
1226 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
1227 echo "configure:1228: checking for interface version number" >&5
1228 libstdcxx_interface=$INTERFACE
1229 echo "$ac_t""$libstdcxx_interface" 1>&6
1231 # Process the option "--enable-version-specific-runtime-libs"
1232 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
1233 echo "configure:1234: checking for --enable-version-specific-runtime-libs" >&5
1234 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1235 if test "${enable_version_specific_runtime_libs+set}" = set; then
1236 enableval="$enable_version_specific_runtime_libs"
1237 case "$enableval" in
1238 yes) version_specific_libs=yes ;;
1239 no) version_specific_libs=no ;;
1240 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
1241 esac
1242 else
1243 version_specific_libs=no
1245 # Option set, now we can test it.
1246 echo "$ac_t""$version_specific_libs" 1>&6
1248 gcc_version_trigger=${srcdir}/../gcc/version.c
1249 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1250 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1254 if test $version_specific_libs = yes; then
1255 # Need the gcc compiler version to know where to install libraries
1256 # and header files if --enable-version-specific-runtime-libs option
1257 # is selected.
1258 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1259 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1262 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
1263 # Install a library built with a cross compiler in tooldir, not libdir.
1264 if test x"$glibcpp_toolexecdir" = x"no"; then
1265 if test -n "$with_cross_host" &&
1266 test x"$with_cross_host" != x"no"; then
1267 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
1268 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
1269 else
1270 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1271 glibcpp_toolexeclibdir='$(libdir)'
1273 glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/`$CC -print-multi-os-directory`
1281 # If the language specific compiler does not exist, but the "gcc" directory
1282 # does, we do not build anything. Note, $r is set by the top-level Makefile.
1283 # Note that when we look for the compiler, we search both with and without
1284 # extension to handle cross and canadian cross builds.
1285 compiler_name=cc1obj
1286 rm -f skip-this-dir
1287 echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
1288 echo "configure:1289: checking if compiler $compiler_name has been built" >&5
1289 if eval "test \"`echo '$''{'objc_cv_compiler_exists'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1291 else
1292 objc_cv_compiler_exists=yes
1293 if test -n "$r"; then
1294 if test -d "$r"/gcc; then
1295 if test -f "$r"/gcc/$compiler_name \
1296 || test -f "$r"/gcc/$compiler_name.exe; then
1297 true
1298 else
1299 objc_cv_compiler_exists=no
1300 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
1307 echo "$ac_t""$objc_cv_compiler_exists" 1>&6
1308 if test x$objc_cv_compiler_exists = xno
1309 then
1310 rm -f Makefile conftest* confdefs* core
1311 exit 0
1315 # Disable shared libs by default
1316 # Check whether --enable-shared or --disable-shared was given.
1317 if test "${enable_shared+set}" = set; then
1318 enableval="$enable_shared"
1319 p=${PACKAGE-default}
1320 case $enableval in
1321 yes) enable_shared=yes ;;
1322 no) enable_shared=no ;;
1324 enable_shared=no
1325 # Look at the argument we got. We use all the common list separators.
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1327 for pkg in $enableval; do
1328 if test "X$pkg" = "X$p"; then
1329 enable_shared=yes
1331 done
1332 IFS="$ac_save_ifs"
1334 esac
1335 else
1336 enable_shared=no
1339 # Enable Win32 DLL on MS Windows - FIXME
1342 # Check whether --enable-static or --disable-static was given.
1343 if test "${enable_static+set}" = set; then
1344 enableval="$enable_static"
1345 p=${PACKAGE-default}
1346 case $enableval in
1347 yes) enable_static=yes ;;
1348 no) enable_static=no ;;
1350 enable_static=no
1351 # Look at the argument we got. We use all the common list separators.
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1353 for pkg in $enableval; do
1354 if test "X$pkg" = "X$p"; then
1355 enable_static=yes
1357 done
1358 IFS="$ac_save_ifs"
1360 esac
1361 else
1362 enable_static=yes
1365 # Check whether --enable-fast-install or --disable-fast-install was given.
1366 if test "${enable_fast_install+set}" = set; then
1367 enableval="$enable_fast_install"
1368 p=${PACKAGE-default}
1369 case $enableval in
1370 yes) enable_fast_install=yes ;;
1371 no) enable_fast_install=no ;;
1373 enable_fast_install=no
1374 # Look at the argument we got. We use all the common list separators.
1375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1376 for pkg in $enableval; do
1377 if test "X$pkg" = "X$p"; then
1378 enable_fast_install=yes
1380 done
1381 IFS="$ac_save_ifs"
1383 esac
1384 else
1385 enable_fast_install=yes
1388 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1389 if test "${with_gnu_ld+set}" = set; then
1390 withval="$with_gnu_ld"
1391 test "$withval" = no || with_gnu_ld=yes
1392 else
1393 with_gnu_ld=no
1396 ac_prog=ld
1397 if test "$GCC" = yes; then
1398 # Check if gcc -print-prog-name=ld gives a path.
1399 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1400 echo "configure:1401: checking for ld used by GCC" >&5
1401 case $host in
1402 *-*-mingw*)
1403 # gcc leaves a trailing carriage return which upsets mingw
1404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1407 esac
1408 case $ac_prog in
1409 # Accept absolute paths.
1410 [\\/]* | [A-Za-z]:[\\/]*)
1411 re_direlt='/[^/][^/]*/\.\./'
1412 # Canonicalize the path of ld
1413 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1414 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1415 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1416 done
1417 test -z "$LD" && LD="$ac_prog"
1420 # If it fails, then pretend we aren't using GCC.
1421 ac_prog=ld
1424 # If it is relative, then search for the first ld in PATH.
1425 with_gnu_ld=unknown
1427 esac
1428 elif test "$with_gnu_ld" = yes; then
1429 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1430 echo "configure:1431: checking for GNU ld" >&5
1431 else
1432 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1433 echo "configure:1434: checking for non-GNU ld" >&5
1435 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1437 else
1438 if test -z "$LD"; then
1439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1440 for ac_dir in $PATH; do
1441 test -z "$ac_dir" && ac_dir=.
1442 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1443 lt_cv_path_LD="$ac_dir/$ac_prog"
1444 # Check to see if the program is GNU ld. I'd rather use --version,
1445 # but apparently some GNU ld's only accept -v.
1446 # Break only if it was the GNU/non-GNU ld that we prefer.
1447 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1448 test "$with_gnu_ld" != no && break
1449 else
1450 test "$with_gnu_ld" != yes && break
1453 done
1454 IFS="$ac_save_ifs"
1455 else
1456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1460 LD="$lt_cv_path_LD"
1461 if test -n "$LD"; then
1462 echo "$ac_t""$LD" 1>&6
1463 else
1464 echo "$ac_t""no" 1>&6
1466 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1467 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1468 echo "configure:1469: checking if the linker ($LD) is GNU ld" >&5
1469 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1473 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1474 lt_cv_prog_gnu_ld=yes
1475 else
1476 lt_cv_prog_gnu_ld=no
1480 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1481 with_gnu_ld=$lt_cv_prog_gnu_ld
1484 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1485 echo "configure:1486: checking for $LD option to reload object files" >&5
1486 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1488 else
1489 lt_cv_ld_reload_flag='-r'
1492 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1493 reload_flag=$lt_cv_ld_reload_flag
1494 test -n "$reload_flag" && reload_flag=" $reload_flag"
1496 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1497 echo "configure:1498: checking for BSD-compatible nm" >&5
1498 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1500 else
1501 if test -n "$NM"; then
1502 # Let the user override the test.
1503 lt_cv_path_NM="$NM"
1504 else
1505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1506 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1507 test -z "$ac_dir" && ac_dir=.
1508 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1509 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1510 # Check to see if the nm accepts a BSD-compat flag.
1511 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1512 # nm: unknown option "B" ignored
1513 # Tru64's nm complains that /dev/null is an invalid object file
1514 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1515 lt_cv_path_NM="$tmp_nm -B"
1516 break
1517 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1518 lt_cv_path_NM="$tmp_nm -p"
1519 break
1520 else
1521 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1522 continue # so that we can try to find one that supports BSD flags
1525 done
1526 IFS="$ac_save_ifs"
1527 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1531 NM="$lt_cv_path_NM"
1532 echo "$ac_t""$NM" 1>&6
1534 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1535 echo "configure:1536: checking how to recognise dependant libraries" >&5
1536 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1538 else
1539 lt_cv_file_magic_cmd='$MAGIC_CMD'
1540 lt_cv_file_magic_test_file=
1541 lt_cv_deplibs_check_method='unknown'
1542 # Need to set the preceding variable on all platforms that support
1543 # interlibrary dependencies.
1544 # 'none' -- dependencies not supported.
1545 # `unknown' -- same as none, but documents that we really don't know.
1546 # 'pass_all' -- all dependencies passed with no checks.
1547 # 'test_compile' -- check by making test program.
1548 # 'file_magic [regex]' -- check by looking for files in library path
1549 # which responds to the $file_magic_cmd with a given egrep regex.
1550 # If you have `file' or equivalent on your system and you're not sure
1551 # whether `pass_all' will *always* work, you probably want this one.
1553 case $host_os in
1554 aix*)
1555 lt_cv_deplibs_check_method=pass_all
1558 beos*)
1559 lt_cv_deplibs_check_method=pass_all
1562 bsdi4*)
1563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1564 lt_cv_file_magic_cmd='/usr/bin/file -L'
1565 lt_cv_file_magic_test_file=/shlib/libc.so
1568 cygwin* | mingw* |pw32*)
1569 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1570 lt_cv_file_magic_cmd='$OBJDUMP -f'
1573 darwin* | rhapsody*)
1574 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1575 lt_cv_file_magic_cmd='/usr/bin/file -L'
1576 case "$host_os" in
1577 rhapsody* | darwin1.012)
1578 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1580 *) # Darwin 1.3 on
1581 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1583 esac
1586 freebsd* )
1587 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1588 case $host_cpu in
1589 i*86 )
1590 # Not sure whether the presence of OpenBSD here was a mistake.
1591 # Let's accept both of them until this is cleared up.
1592 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1593 lt_cv_file_magic_cmd=/usr/bin/file
1594 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1596 esac
1597 else
1598 lt_cv_deplibs_check_method=pass_all
1602 gnu*)
1603 lt_cv_deplibs_check_method=pass_all
1606 hpux10.20*|hpux11*)
1607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1608 lt_cv_file_magic_cmd=/usr/bin/file
1609 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1612 irix5* | irix6*)
1613 case $host_os in
1614 irix5*)
1615 # this will be overridden with pass_all, but let us keep it just in case
1616 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1619 case $LD in
1620 *-32|*"-32 ") libmagic=32-bit;;
1621 *-n32|*"-n32 ") libmagic=N32;;
1622 *-64|*"-64 ") libmagic=64-bit;;
1623 *) libmagic=never-match;;
1624 esac
1625 # this will be overridden with pass_all, but let us keep it just in case
1626 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1628 esac
1629 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1630 lt_cv_deplibs_check_method=pass_all
1633 # This must be Linux ELF.
1634 linux-gnu*)
1635 case $host_cpu in
1636 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1637 lt_cv_deplibs_check_method=pass_all ;;
1639 # glibc up to 2.1.1 does not perform some relocations on ARM
1640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1641 esac
1642 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1645 netbsd*)
1646 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1647 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1648 else
1649 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1653 newsos6)
1654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1655 lt_cv_file_magic_cmd=/usr/bin/file
1656 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1659 osf3* | osf4* | osf5*)
1660 # this will be overridden with pass_all, but let us keep it just in case
1661 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1662 lt_cv_file_magic_test_file=/shlib/libc.so
1663 lt_cv_deplibs_check_method=pass_all
1666 sco3.2v5*)
1667 lt_cv_deplibs_check_method=pass_all
1670 solaris*)
1671 lt_cv_deplibs_check_method=pass_all
1672 lt_cv_file_magic_test_file=/lib/libc.so
1675 sysv5uw[78]* | sysv4*uw2*)
1676 lt_cv_deplibs_check_method=pass_all
1679 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1680 case $host_vendor in
1681 ncr)
1682 lt_cv_deplibs_check_method=pass_all
1684 motorola)
1685 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]'
1686 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1688 esac
1690 esac
1694 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1695 file_magic_cmd=$lt_cv_file_magic_cmd
1696 deplibs_check_method=$lt_cv_deplibs_check_method
1698 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1699 echo "configure:1700: checking for object suffix" >&5
1700 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1702 else
1703 rm -f conftest*
1704 echo 'int i = 1;' > conftest.$ac_ext
1705 if { (eval echo configure:1706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1706 for ac_file in conftest.*; do
1707 case $ac_file in
1708 *.c) ;;
1709 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1710 esac
1711 done
1712 else
1713 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1715 rm -f conftest*
1718 echo "$ac_t""$ac_cv_objext" 1>&6
1719 OBJEXT=$ac_cv_objext
1720 ac_objext=$ac_cv_objext
1722 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1724 # Only perform the check for file, if the check method requires it
1725 case $deplibs_check_method in
1726 file_magic*)
1727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1728 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1729 echo "configure:1730: checking for ${ac_tool_prefix}file" >&5
1730 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1732 else
1733 case $MAGIC_CMD in
1735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1737 ?:/*)
1738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1741 ac_save_MAGIC_CMD="$MAGIC_CMD"
1742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1743 ac_dummy="/usr/bin:$PATH"
1744 for ac_dir in $ac_dummy; do
1745 test -z "$ac_dir" && ac_dir=.
1746 if test -f $ac_dir/${ac_tool_prefix}file; then
1747 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1748 if test -n "$file_magic_test_file"; then
1749 case $deplibs_check_method in
1750 "file_magic "*)
1751 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1753 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1754 egrep "$file_magic_regex" > /dev/null; then
1756 else
1757 cat <<EOF 1>&2
1759 *** Warning: the command libtool uses to detect shared libraries,
1760 *** $file_magic_cmd, produces output that libtool cannot recognize.
1761 *** The result is that libtool may fail to recognize shared libraries
1762 *** as such. This will affect the creation of libtool libraries that
1763 *** depend on shared libraries, but programs linked with such libtool
1764 *** libraries will work regardless of this problem. Nevertheless, you
1765 *** may want to report the problem to your system manager and/or to
1766 *** bug-libtool@gnu.org
1769 fi ;;
1770 esac
1772 break
1774 done
1775 IFS="$ac_save_ifs"
1776 MAGIC_CMD="$ac_save_MAGIC_CMD"
1778 esac
1781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1782 if test -n "$MAGIC_CMD"; then
1783 echo "$ac_t""$MAGIC_CMD" 1>&6
1784 else
1785 echo "$ac_t""no" 1>&6
1788 if test -z "$lt_cv_path_MAGIC_CMD"; then
1789 if test -n "$ac_tool_prefix"; then
1790 echo $ac_n "checking for file""... $ac_c" 1>&6
1791 echo "configure:1792: checking for file" >&5
1792 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795 case $MAGIC_CMD in
1797 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1799 ?:/*)
1800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1803 ac_save_MAGIC_CMD="$MAGIC_CMD"
1804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1805 ac_dummy="/usr/bin:$PATH"
1806 for ac_dir in $ac_dummy; do
1807 test -z "$ac_dir" && ac_dir=.
1808 if test -f $ac_dir/file; then
1809 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1810 if test -n "$file_magic_test_file"; then
1811 case $deplibs_check_method in
1812 "file_magic "*)
1813 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1816 egrep "$file_magic_regex" > /dev/null; then
1818 else
1819 cat <<EOF 1>&2
1821 *** Warning: the command libtool uses to detect shared libraries,
1822 *** $file_magic_cmd, produces output that libtool cannot recognize.
1823 *** The result is that libtool may fail to recognize shared libraries
1824 *** as such. This will affect the creation of libtool libraries that
1825 *** depend on shared libraries, but programs linked with such libtool
1826 *** libraries will work regardless of this problem. Nevertheless, you
1827 *** may want to report the problem to your system manager and/or to
1828 *** bug-libtool@gnu.org
1831 fi ;;
1832 esac
1834 break
1836 done
1837 IFS="$ac_save_ifs"
1838 MAGIC_CMD="$ac_save_MAGIC_CMD"
1840 esac
1843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1844 if test -n "$MAGIC_CMD"; then
1845 echo "$ac_t""$MAGIC_CMD" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1850 else
1851 MAGIC_CMD=:
1857 esac
1859 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1860 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1862 echo "configure:1863: checking for $ac_word" >&5
1863 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 if test -n "$RANLIB"; then
1867 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1868 else
1869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1870 ac_dummy="$PATH"
1871 for ac_dir in $ac_dummy; do
1872 test -z "$ac_dir" && ac_dir=.
1873 if test -f $ac_dir/$ac_word; then
1874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1875 break
1877 done
1878 IFS="$ac_save_ifs"
1881 RANLIB="$ac_cv_prog_RANLIB"
1882 if test -n "$RANLIB"; then
1883 echo "$ac_t""$RANLIB" 1>&6
1884 else
1885 echo "$ac_t""no" 1>&6
1889 if test -z "$ac_cv_prog_RANLIB"; then
1890 if test -n "$ac_tool_prefix"; then
1891 # Extract the first word of "ranlib", so it can be a program name with args.
1892 set dummy ranlib; ac_word=$2
1893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_word" >&5
1895 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 if test -n "$RANLIB"; then
1899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1900 else
1901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1902 ac_dummy="$PATH"
1903 for ac_dir in $ac_dummy; do
1904 test -z "$ac_dir" && ac_dir=.
1905 if test -f $ac_dir/$ac_word; then
1906 ac_cv_prog_RANLIB="ranlib"
1907 break
1909 done
1910 IFS="$ac_save_ifs"
1911 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1914 RANLIB="$ac_cv_prog_RANLIB"
1915 if test -n "$RANLIB"; then
1916 echo "$ac_t""$RANLIB" 1>&6
1917 else
1918 echo "$ac_t""no" 1>&6
1921 else
1922 RANLIB=":"
1926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1927 set dummy ${ac_tool_prefix}strip; ac_word=$2
1928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1929 echo "configure:1930: checking for $ac_word" >&5
1930 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933 if test -n "$STRIP"; then
1934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1935 else
1936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1937 ac_dummy="$PATH"
1938 for ac_dir in $ac_dummy; do
1939 test -z "$ac_dir" && ac_dir=.
1940 if test -f $ac_dir/$ac_word; then
1941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1942 break
1944 done
1945 IFS="$ac_save_ifs"
1948 STRIP="$ac_cv_prog_STRIP"
1949 if test -n "$STRIP"; then
1950 echo "$ac_t""$STRIP" 1>&6
1951 else
1952 echo "$ac_t""no" 1>&6
1956 if test -z "$ac_cv_prog_STRIP"; then
1957 if test -n "$ac_tool_prefix"; then
1958 # Extract the first word of "strip", so it can be a program name with args.
1959 set dummy strip; ac_word=$2
1960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_word" >&5
1962 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1964 else
1965 if test -n "$STRIP"; then
1966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1967 else
1968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1969 ac_dummy="$PATH"
1970 for ac_dir in $ac_dummy; do
1971 test -z "$ac_dir" && ac_dir=.
1972 if test -f $ac_dir/$ac_word; then
1973 ac_cv_prog_STRIP="strip"
1974 break
1976 done
1977 IFS="$ac_save_ifs"
1978 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1981 STRIP="$ac_cv_prog_STRIP"
1982 if test -n "$STRIP"; then
1983 echo "$ac_t""$STRIP" 1>&6
1984 else
1985 echo "$ac_t""no" 1>&6
1988 else
1989 STRIP=":"
1994 # Check for any special flags to pass to ltconfig.
1995 libtool_flags="--cache-file=$cache_file"
1996 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1997 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1998 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1999 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2000 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2002 libtool_flags="$libtool_flags --enable-win32-dll"
2003 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2004 if test "${enable_libtool_lock+set}" = set; then
2005 enableval="$enable_libtool_lock"
2009 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2010 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2012 # Check whether --with-pic or --without-pic was given.
2013 if test "${with_pic+set}" = set; then
2014 withval="$with_pic"
2015 pic_mode="$withval"
2016 else
2017 pic_mode=default
2020 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2021 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2023 # Some flags need to be propagated to the compiler or linker for good
2024 # libtool support.
2025 case $host in
2026 *-*-irix6*)
2027 # Find out which ABI we are using.
2028 echo '#line 2029 "configure"' > conftest.$ac_ext
2029 if { (eval echo configure:2030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2030 case `/usr/bin/file conftest.$ac_objext` in
2031 *32-bit*)
2032 LD="${LD-ld} -32"
2034 *N32*)
2035 LD="${LD-ld} -n32"
2037 *64-bit*)
2038 LD="${LD-ld} -64"
2040 esac
2042 rm -rf conftest*
2045 *-*-sco3.2v5*)
2046 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2047 SAVE_CFLAGS="$CFLAGS"
2048 CFLAGS="$CFLAGS -belf"
2049 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2050 echo "configure:2051: checking whether the C compiler needs -belf" >&5
2051 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2053 else
2055 ac_ext=c
2056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2057 ac_cpp='$CPP $CPPFLAGS'
2058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2060 cross_compiling=$ac_cv_prog_cc_cross
2062 cat > conftest.$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2066 int main() {
2068 ; return 0; }
2070 if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2071 rm -rf conftest*
2072 lt_cv_cc_needs_belf=yes
2073 else
2074 echo "configure: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 rm -rf conftest*
2077 lt_cv_cc_needs_belf=no
2079 rm -f conftest*
2080 ac_ext=c
2081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2085 cross_compiling=$ac_cv_prog_cc_cross
2089 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2090 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2091 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2092 CFLAGS="$SAVE_CFLAGS"
2096 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2097 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2098 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2100 echo "configure:2101: checking for $ac_word" >&5
2101 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104 if test -n "$DLLTOOL"; then
2105 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2106 else
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2108 ac_dummy="$PATH"
2109 for ac_dir in $ac_dummy; do
2110 test -z "$ac_dir" && ac_dir=.
2111 if test -f $ac_dir/$ac_word; then
2112 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2113 break
2115 done
2116 IFS="$ac_save_ifs"
2119 DLLTOOL="$ac_cv_prog_DLLTOOL"
2120 if test -n "$DLLTOOL"; then
2121 echo "$ac_t""$DLLTOOL" 1>&6
2122 else
2123 echo "$ac_t""no" 1>&6
2127 if test -z "$ac_cv_prog_DLLTOOL"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "dlltool", so it can be a program name with args.
2130 set dummy dlltool; ac_word=$2
2131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2132 echo "configure:2133: checking for $ac_word" >&5
2133 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2135 else
2136 if test -n "$DLLTOOL"; then
2137 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2138 else
2139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2140 ac_dummy="$PATH"
2141 for ac_dir in $ac_dummy; do
2142 test -z "$ac_dir" && ac_dir=.
2143 if test -f $ac_dir/$ac_word; then
2144 ac_cv_prog_DLLTOOL="dlltool"
2145 break
2147 done
2148 IFS="$ac_save_ifs"
2149 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2152 DLLTOOL="$ac_cv_prog_DLLTOOL"
2153 if test -n "$DLLTOOL"; then
2154 echo "$ac_t""$DLLTOOL" 1>&6
2155 else
2156 echo "$ac_t""no" 1>&6
2159 else
2160 DLLTOOL="false"
2164 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2165 set dummy ${ac_tool_prefix}as; ac_word=$2
2166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2167 echo "configure:2168: checking for $ac_word" >&5
2168 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2170 else
2171 if test -n "$AS"; then
2172 ac_cv_prog_AS="$AS" # Let the user override the test.
2173 else
2174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2175 ac_dummy="$PATH"
2176 for ac_dir in $ac_dummy; do
2177 test -z "$ac_dir" && ac_dir=.
2178 if test -f $ac_dir/$ac_word; then
2179 ac_cv_prog_AS="${ac_tool_prefix}as"
2180 break
2182 done
2183 IFS="$ac_save_ifs"
2186 AS="$ac_cv_prog_AS"
2187 if test -n "$AS"; then
2188 echo "$ac_t""$AS" 1>&6
2189 else
2190 echo "$ac_t""no" 1>&6
2194 if test -z "$ac_cv_prog_AS"; then
2195 if test -n "$ac_tool_prefix"; then
2196 # Extract the first word of "as", so it can be a program name with args.
2197 set dummy as; ac_word=$2
2198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2199 echo "configure:2200: checking for $ac_word" >&5
2200 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2202 else
2203 if test -n "$AS"; then
2204 ac_cv_prog_AS="$AS" # Let the user override the test.
2205 else
2206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2207 ac_dummy="$PATH"
2208 for ac_dir in $ac_dummy; do
2209 test -z "$ac_dir" && ac_dir=.
2210 if test -f $ac_dir/$ac_word; then
2211 ac_cv_prog_AS="as"
2212 break
2214 done
2215 IFS="$ac_save_ifs"
2216 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2219 AS="$ac_cv_prog_AS"
2220 if test -n "$AS"; then
2221 echo "$ac_t""$AS" 1>&6
2222 else
2223 echo "$ac_t""no" 1>&6
2226 else
2227 AS="false"
2231 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2232 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_word" >&5
2235 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2237 else
2238 if test -n "$OBJDUMP"; then
2239 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2240 else
2241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2242 ac_dummy="$PATH"
2243 for ac_dir in $ac_dummy; do
2244 test -z "$ac_dir" && ac_dir=.
2245 if test -f $ac_dir/$ac_word; then
2246 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2247 break
2249 done
2250 IFS="$ac_save_ifs"
2253 OBJDUMP="$ac_cv_prog_OBJDUMP"
2254 if test -n "$OBJDUMP"; then
2255 echo "$ac_t""$OBJDUMP" 1>&6
2256 else
2257 echo "$ac_t""no" 1>&6
2261 if test -z "$ac_cv_prog_OBJDUMP"; then
2262 if test -n "$ac_tool_prefix"; then
2263 # Extract the first word of "objdump", so it can be a program name with args.
2264 set dummy objdump; ac_word=$2
2265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2266 echo "configure:2267: checking for $ac_word" >&5
2267 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2269 else
2270 if test -n "$OBJDUMP"; then
2271 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2272 else
2273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2274 ac_dummy="$PATH"
2275 for ac_dir in $ac_dummy; do
2276 test -z "$ac_dir" && ac_dir=.
2277 if test -f $ac_dir/$ac_word; then
2278 ac_cv_prog_OBJDUMP="objdump"
2279 break
2281 done
2282 IFS="$ac_save_ifs"
2283 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2286 OBJDUMP="$ac_cv_prog_OBJDUMP"
2287 if test -n "$OBJDUMP"; then
2288 echo "$ac_t""$OBJDUMP" 1>&6
2289 else
2290 echo "$ac_t""no" 1>&6
2293 else
2294 OBJDUMP="false"
2299 # recent cygwin and mingw systems supply a stub DllMain which the user
2300 # can override, but on older systems we have to supply one
2301 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2302 echo "configure:2303: checking if libtool should supply DllMain function" >&5
2303 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2305 else
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2310 int main() {
2311 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2312 DllMain (0, 0, 0);
2313 ; return 0; }
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2316 rm -rf conftest*
2317 lt_cv_need_dllmain=no
2318 else
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -rf conftest*
2322 lt_cv_need_dllmain=yes
2324 rm -f conftest*
2327 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2329 case $host/$CC in
2330 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2331 # old mingw systems require "-dll" to link a DLL, while more recent ones
2332 # require "-mdll"
2333 SAVE_CFLAGS="$CFLAGS"
2334 CFLAGS="$CFLAGS -mdll"
2335 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2336 echo "configure:2337: checking how to link DLLs" >&5
2337 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2339 else
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2344 int main() {
2346 ; return 0; }
2348 if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2349 rm -rf conftest*
2350 lt_cv_cc_dll_switch=-mdll
2351 else
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2354 rm -rf conftest*
2355 lt_cv_cc_dll_switch=-dll
2357 rm -f conftest*
2360 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2361 CFLAGS="$SAVE_CFLAGS" ;;
2362 *-*-cygwin* | *-*-pw32*)
2363 # cygwin systems need to pass --dll to the linker, and not link
2364 # crt.o which will require a WinMain@16 definition.
2365 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2366 esac
2369 esac
2372 # Save cache, so that ltconfig can load it
2373 cat > confcache <<\EOF
2374 # This file is a shell script that caches the results of configure
2375 # tests run on this system so they can be shared between configure
2376 # scripts and configure runs. It is not useful on other systems.
2377 # If it contains results you don't want to keep, you may remove or edit it.
2379 # By default, configure uses ./config.cache as the cache file,
2380 # creating it if it does not exist already. You can give configure
2381 # the --cache-file=FILE option to use a different cache file; that is
2382 # what configure does when it calls configure scripts in
2383 # subdirectories, so they share the cache.
2384 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2385 # config.status only pays attention to the cache file if you give it the
2386 # --recheck option to rerun configure.
2389 # The following way of writing the cache mishandles newlines in values,
2390 # but we know of no workaround that is simple, portable, and efficient.
2391 # So, don't put newlines in cache variables' values.
2392 # Ultrix sh set writes to stderr and can't be redirected directly,
2393 # and sets the high bit in the cache file unless we assign to the vars.
2394 (set) 2>&1 |
2395 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2396 *ac_space=\ *)
2397 # `set' does not quote correctly, so add quotes (double-quote substitution
2398 # turns \\\\ into \\, and sed turns \\ into \).
2399 sed -n \
2400 -e "s/'/'\\\\''/g" \
2401 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2404 # `set' quotes correctly as required by POSIX, so do not add quotes.
2405 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2407 esac >> confcache
2408 if cmp -s $cache_file confcache; then
2410 else
2411 if test -w $cache_file; then
2412 echo "updating cache $cache_file"
2413 cat confcache > $cache_file
2414 else
2415 echo "not updating unwritable cache $cache_file"
2418 rm -f confcache
2421 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2422 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2423 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2424 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2425 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2426 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2427 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2428 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2429 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2430 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2432 # Reload cache, that may have been modified by ltconfig
2433 if test -r "$cache_file"; then
2434 echo "loading cache $cache_file"
2435 . $cache_file
2436 else
2437 echo "creating cache $cache_file"
2438 > $cache_file
2442 # This can be used to rebuild libtool when needed
2443 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2445 # Always use our own libtool.
2446 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2448 # Redirect the config.log output again, so that the ltconfig log is not
2449 # clobbered by the next message.
2450 exec 5>>./config.log
2458 test "$AR" || AR=ar
2460 if test "$RANLIB"; then :
2462 else
2463 # Extract the first word of "ranlib", so it can be a program name with args.
2464 set dummy ranlib; ac_word=$2
2465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_word" >&5
2467 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470 if test -n "$RANLIB"; then
2471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2472 else
2473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2474 ac_dummy="$PATH"
2475 for ac_dir in $ac_dummy; do
2476 test -z "$ac_dir" && ac_dir=.
2477 if test -f $ac_dir/$ac_word; then
2478 ac_cv_prog_RANLIB="ranlib"
2479 break
2481 done
2482 IFS="$ac_save_ifs"
2483 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2486 RANLIB="$ac_cv_prog_RANLIB"
2487 if test -n "$RANLIB"; then
2488 echo "$ac_t""$RANLIB" 1>&6
2489 else
2490 echo "$ac_t""no" 1>&6
2494 # Find a good install program. We prefer a C program (faster),
2495 # so one script is as good as another. But avoid the broken or
2496 # incompatible versions:
2497 # SysV /etc/install, /usr/sbin/install
2498 # SunOS /usr/etc/install
2499 # IRIX /sbin/install
2500 # AIX /bin/install
2501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2506 echo "configure:2507: checking for a BSD compatible install" >&5
2507 if test -z "$INSTALL"; then
2508 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2510 else
2511 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2512 for ac_dir in $PATH; do
2513 # Account for people who put trailing slashes in PATH elements.
2514 case "$ac_dir/" in
2515 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2517 # OSF1 and SCO ODT 3.0 have their own names for install.
2518 # Don't use installbsd from OSF since it installs stuff as root
2519 # by default.
2520 for ac_prog in ginstall scoinst install; do
2521 if test -f $ac_dir/$ac_prog; then
2522 if test $ac_prog = install &&
2523 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2524 # AIX install. It has an incompatible calling convention.
2526 else
2527 ac_cv_path_install="$ac_dir/$ac_prog -c"
2528 break 2
2531 done
2533 esac
2534 done
2535 IFS="$ac_save_IFS"
2538 if test "${ac_cv_path_install+set}" = set; then
2539 INSTALL="$ac_cv_path_install"
2540 else
2541 # As a last resort, use the slow shell script. We don't cache a
2542 # path for INSTALL within a source directory, because that will
2543 # break other packages using the cache if that directory is
2544 # removed, or if the path is relative.
2545 INSTALL="$ac_install_sh"
2548 echo "$ac_t""$INSTALL" 1>&6
2550 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2551 # It thinks the first close brace ends the variable substitution.
2552 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2554 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2556 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2558 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2559 echo "configure:2560: checking whether ${MAKE-make} sets \${MAKE}" >&5
2560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2561 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2563 else
2564 cat > conftestmake <<\EOF
2565 all:
2566 @echo 'ac_maketemp="${MAKE}"'
2568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2569 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2570 if test -n "$ac_maketemp"; then
2571 eval ac_cv_prog_make_${ac_make}_set=yes
2572 else
2573 eval ac_cv_prog_make_${ac_make}_set=no
2575 rm -f conftestmake
2577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2578 echo "$ac_t""yes" 1>&6
2579 SET_MAKE=
2580 else
2581 echo "$ac_t""no" 1>&6
2582 SET_MAKE="MAKE=${MAKE-make}"
2586 # Sanity check for the cross-compilation case:
2587 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2588 echo "configure:2589: checking how to run the C preprocessor" >&5
2589 # On Suns, sometimes $CPP names a directory.
2590 if test -n "$CPP" && test -d "$CPP"; then
2591 CPP=
2593 if test -z "$CPP"; then
2594 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2596 else
2597 # This must be in double quotes, not single quotes, because CPP may get
2598 # substituted into the Makefile and "${CC-cc}" will confuse make.
2599 CPP="${CC-cc} -E"
2600 # On the NeXT, cc -E runs the code through the compiler's parser,
2601 # not just through cpp.
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605 #include <assert.h>
2606 Syntax Error
2608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2609 { (eval echo configure:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2611 if test -z "$ac_err"; then
2613 else
2614 echo "$ac_err" >&5
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2617 rm -rf conftest*
2618 CPP="${CC-cc} -E -traditional-cpp"
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 #include <assert.h>
2623 Syntax Error
2625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2626 { (eval echo configure:2627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2628 if test -z "$ac_err"; then
2630 else
2631 echo "$ac_err" >&5
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 rm -rf conftest*
2635 CPP="${CC-cc} -nologo -E"
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2639 #include <assert.h>
2640 Syntax Error
2642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2643 { (eval echo configure:2644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2645 if test -z "$ac_err"; then
2647 else
2648 echo "$ac_err" >&5
2649 echo "configure: failed program was:" >&5
2650 cat conftest.$ac_ext >&5
2651 rm -rf conftest*
2652 CPP=/lib/cpp
2654 rm -f conftest*
2656 rm -f conftest*
2658 rm -f conftest*
2659 ac_cv_prog_CPP="$CPP"
2661 CPP="$ac_cv_prog_CPP"
2662 else
2663 ac_cv_prog_CPP="$CPP"
2665 echo "$ac_t""$CPP" 1>&6
2667 ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
2668 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
2669 echo "configure:2670: checking for stdio.h" >&5
2670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <stdio.h>
2678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2679 { (eval echo configure:2680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2681 if test -z "$ac_err"; then
2682 rm -rf conftest*
2683 eval "ac_cv_header_$ac_safe=yes"
2684 else
2685 echo "$ac_err" >&5
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -rf conftest*
2689 eval "ac_cv_header_$ac_safe=no"
2691 rm -f conftest*
2693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2696 else
2697 echo "$ac_t""no" 1>&6
2698 { echo "configure: error: Can't find stdio.h.
2699 You must have a usable C system for the target already installed, at least
2700 including headers and, preferably, the library, before you can configure
2701 the Objective C runtime system. If necessary, install gcc now with
2702 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." 1>&2; exit 1; }
2706 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2707 echo "configure:2708: checking for ANSI C header files" >&5
2708 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2710 else
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2714 #include <stdlib.h>
2715 #include <stdarg.h>
2716 #include <string.h>
2717 #include <float.h>
2719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2720 { (eval echo configure:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2722 if test -z "$ac_err"; then
2723 rm -rf conftest*
2724 ac_cv_header_stdc=yes
2725 else
2726 echo "$ac_err" >&5
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2729 rm -rf conftest*
2730 ac_cv_header_stdc=no
2732 rm -f conftest*
2734 if test $ac_cv_header_stdc = yes; then
2735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <string.h>
2741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2742 egrep "memchr" >/dev/null 2>&1; then
2744 else
2745 rm -rf conftest*
2746 ac_cv_header_stdc=no
2748 rm -f conftest*
2752 if test $ac_cv_header_stdc = yes; then
2753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2757 #include <stdlib.h>
2759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2760 egrep "free" >/dev/null 2>&1; then
2762 else
2763 rm -rf conftest*
2764 ac_cv_header_stdc=no
2766 rm -f conftest*
2770 if test $ac_cv_header_stdc = yes; then
2771 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2772 if test "$cross_compiling" = yes; then
2774 else
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 #include <ctype.h>
2779 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2780 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2781 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2782 int main () { int i; for (i = 0; i < 256; i++)
2783 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2784 exit (0); }
2787 if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2788 then
2790 else
2791 echo "configure: failed program was:" >&5
2792 cat conftest.$ac_ext >&5
2793 rm -fr conftest*
2794 ac_cv_header_stdc=no
2796 rm -fr conftest*
2802 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2803 if test $ac_cv_header_stdc = yes; then
2804 cat >> confdefs.h <<\EOF
2805 #define STDC_HEADERS 1
2811 for ac_hdr in sched.h
2813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_hdr" >&5
2816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2818 else
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2822 #include <$ac_hdr>
2824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2828 rm -rf conftest*
2829 eval "ac_cv_header_$ac_safe=yes"
2830 else
2831 echo "$ac_err" >&5
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 rm -rf conftest*
2835 eval "ac_cv_header_$ac_safe=no"
2837 rm -f conftest*
2839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2842 cat >> confdefs.h <<EOF
2843 #define $ac_tr_hdr 1
2846 else
2847 echo "$ac_t""no" 1>&6
2849 done
2852 # Determine CFLAGS for gthread.
2854 echo $ac_n "checking for gthread cflags""... $ac_c" 1>&6
2855 echo "configure:2856: checking for gthread cflags" >&5
2856 if eval "test \"`echo '$''{'objc_cv_gthread_flags'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2858 else
2859 if test -f "$r"/gcc/Makefile
2860 then
2861 objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
2862 else
2863 { echo "configure: error: not found" 1>&2; exit 1; }
2867 echo "$ac_t""$objc_cv_gthread_flags" 1>&6
2868 GTHREAD_FLAGS=$objc_cv_gthread_flags
2871 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2872 if test "${enable_objc_gc+set}" = set; then
2873 enableval="$enable_objc_gc"
2874 if [ x$enable_objc_gc = xno ]; then
2875 OBJC_BOEHM_GC=''
2876 else
2877 OBJC_BOEHM_GC=libobjc_gc.la
2879 else
2880 OBJC_BOEHM_GC=''
2886 # We need multilib support, but only if configuring for the target.
2887 trap '' 1 2 15
2888 cat > confcache <<\EOF
2889 # This file is a shell script that caches the results of configure
2890 # tests run on this system so they can be shared between configure
2891 # scripts and configure runs. It is not useful on other systems.
2892 # If it contains results you don't want to keep, you may remove or edit it.
2894 # By default, configure uses ./config.cache as the cache file,
2895 # creating it if it does not exist already. You can give configure
2896 # the --cache-file=FILE option to use a different cache file; that is
2897 # what configure does when it calls configure scripts in
2898 # subdirectories, so they share the cache.
2899 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2900 # config.status only pays attention to the cache file if you give it the
2901 # --recheck option to rerun configure.
2904 # The following way of writing the cache mishandles newlines in values,
2905 # but we know of no workaround that is simple, portable, and efficient.
2906 # So, don't put newlines in cache variables' values.
2907 # Ultrix sh set writes to stderr and can't be redirected directly,
2908 # and sets the high bit in the cache file unless we assign to the vars.
2909 (set) 2>&1 |
2910 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2911 *ac_space=\ *)
2912 # `set' does not quote correctly, so add quotes (double-quote substitution
2913 # turns \\\\ into \\, and sed turns \\ into \).
2914 sed -n \
2915 -e "s/'/'\\\\''/g" \
2916 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2919 # `set' quotes correctly as required by POSIX, so do not add quotes.
2920 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2922 esac >> confcache
2923 if cmp -s $cache_file confcache; then
2925 else
2926 if test -w $cache_file; then
2927 echo "updating cache $cache_file"
2928 cat confcache > $cache_file
2929 else
2930 echo "not updating unwritable cache $cache_file"
2933 rm -f confcache
2935 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2938 # Let make expand exec_prefix.
2939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2941 # Any assignment to VPATH causes Sun make to only execute
2942 # the first set of double-colon rules, so remove it if not needed.
2943 # If there is a colon in the path, we need to keep it.
2944 if test "x$srcdir" = x.; then
2945 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2948 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2950 DEFS=-DHAVE_CONFIG_H
2952 # Without the "./", some shells look in PATH for config.status.
2953 : ${CONFIG_STATUS=./config.status}
2955 echo creating $CONFIG_STATUS
2956 rm -f $CONFIG_STATUS
2957 cat > $CONFIG_STATUS <<EOF
2958 #! /bin/sh
2959 # Generated automatically by configure.
2960 # Run this file to recreate the current configuration.
2961 # This directory was configured as follows,
2962 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2964 # $0 $ac_configure_args
2966 # Compiler output produced by configure, useful for debugging
2967 # configure, is in ./config.log if it exists.
2969 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2970 for ac_option
2972 case "\$ac_option" in
2973 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2974 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2975 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2976 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2977 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2978 exit 0 ;;
2979 -help | --help | --hel | --he | --h)
2980 echo "\$ac_cs_usage"; exit 0 ;;
2981 *) echo "\$ac_cs_usage"; exit 1 ;;
2982 esac
2983 done
2985 ac_given_srcdir=$srcdir
2986 ac_given_INSTALL="$INSTALL"
2988 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2990 cat >> $CONFIG_STATUS <<EOF
2992 # Protect against being on the right side of a sed subst in config.status.
2993 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2994 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2995 $ac_vpsub
2996 $extrasub
2997 s%@SHELL@%$SHELL%g
2998 s%@CFLAGS@%$CFLAGS%g
2999 s%@CPPFLAGS@%$CPPFLAGS%g
3000 s%@CXXFLAGS@%$CXXFLAGS%g
3001 s%@FFLAGS@%$FFLAGS%g
3002 s%@DEFS@%$DEFS%g
3003 s%@LDFLAGS@%$LDFLAGS%g
3004 s%@LIBS@%$LIBS%g
3005 s%@exec_prefix@%$exec_prefix%g
3006 s%@prefix@%$prefix%g
3007 s%@program_transform_name@%$program_transform_name%g
3008 s%@bindir@%$bindir%g
3009 s%@sbindir@%$sbindir%g
3010 s%@libexecdir@%$libexecdir%g
3011 s%@datadir@%$datadir%g
3012 s%@sysconfdir@%$sysconfdir%g
3013 s%@sharedstatedir@%$sharedstatedir%g
3014 s%@localstatedir@%$localstatedir%g
3015 s%@libdir@%$libdir%g
3016 s%@includedir@%$includedir%g
3017 s%@oldincludedir@%$oldincludedir%g
3018 s%@infodir@%$infodir%g
3019 s%@mandir@%$mandir%g
3020 s%@toplevel_srcdir@%$toplevel_srcdir%g
3021 s%@host@%$host%g
3022 s%@host_alias@%$host_alias%g
3023 s%@host_cpu@%$host_cpu%g
3024 s%@host_vendor@%$host_vendor%g
3025 s%@host_os@%$host_os%g
3026 s%@target@%$target%g
3027 s%@target_alias@%$target_alias%g
3028 s%@target_cpu@%$target_cpu%g
3029 s%@target_vendor@%$target_vendor%g
3030 s%@target_os@%$target_os%g
3031 s%@build@%$build%g
3032 s%@build_alias@%$build_alias%g
3033 s%@build_cpu@%$build_cpu%g
3034 s%@build_vendor@%$build_vendor%g
3035 s%@build_os@%$build_os%g
3036 s%@glibcpp_builddir@%$glibcpp_builddir%g
3037 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
3038 s%@LN_S@%$LN_S%g
3039 s%@CC@%$CC%g
3040 s%@AS@%$AS%g
3041 s%@AR@%$AR%g
3042 s%@RANLIB@%$RANLIB%g
3043 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3044 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3045 s%@INSTALL_DATA@%$INSTALL_DATA%g
3046 s%@EXEEXT@%$EXEEXT%g
3047 s%@gcc_version@%$gcc_version%g
3048 s%@gcc_version_trigger@%$gcc_version_trigger%g
3049 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
3050 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
3051 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
3052 s%@OBJEXT@%$OBJEXT%g
3053 s%@STRIP@%$STRIP%g
3054 s%@DLLTOOL@%$DLLTOOL%g
3055 s%@OBJDUMP@%$OBJDUMP%g
3056 s%@LIBTOOL@%$LIBTOOL%g
3057 s%@SET_MAKE@%$SET_MAKE%g
3058 s%@CPP@%$CPP%g
3059 s%@GTHREAD_FLAGS@%$GTHREAD_FLAGS%g
3060 s%@OBJC_BOEHM_GC@%$OBJC_BOEHM_GC%g
3062 CEOF
3065 cat >> $CONFIG_STATUS <<\EOF
3067 # Split the substitutions into bite-sized pieces for seds with
3068 # small command number limits, like on Digital OSF/1 and HP-UX.
3069 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3070 ac_file=1 # Number of current file.
3071 ac_beg=1 # First line for current file.
3072 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3073 ac_more_lines=:
3074 ac_sed_cmds=""
3075 while $ac_more_lines; do
3076 if test $ac_beg -gt 1; then
3077 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3078 else
3079 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3081 if test ! -s conftest.s$ac_file; then
3082 ac_more_lines=false
3083 rm -f conftest.s$ac_file
3084 else
3085 if test -z "$ac_sed_cmds"; then
3086 ac_sed_cmds="sed -f conftest.s$ac_file"
3087 else
3088 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3090 ac_file=`expr $ac_file + 1`
3091 ac_beg=$ac_end
3092 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3094 done
3095 if test -z "$ac_sed_cmds"; then
3096 ac_sed_cmds=cat
3100 cat >> $CONFIG_STATUS <<EOF
3102 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3104 cat >> $CONFIG_STATUS <<\EOF
3105 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3107 case "$ac_file" in
3108 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3109 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3110 *) ac_file_in="${ac_file}.in" ;;
3111 esac
3113 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3115 # Remove last slash and all that follows it. Not all systems have dirname.
3116 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3117 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3118 # The file is in a subdirectory.
3119 test ! -d "$ac_dir" && mkdir "$ac_dir"
3120 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3121 # A "../" for each directory in $ac_dir_suffix.
3122 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3123 else
3124 ac_dir_suffix= ac_dots=
3127 case "$ac_given_srcdir" in
3128 .) srcdir=.
3129 if test -z "$ac_dots"; then top_srcdir=.
3130 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3131 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3132 *) # Relative path.
3133 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3134 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3135 esac
3137 case "$ac_given_INSTALL" in
3138 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3139 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3140 esac
3142 echo creating "$ac_file"
3143 rm -f "$ac_file"
3144 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3145 case "$ac_file" in
3146 *Makefile*) ac_comsub="1i\\
3147 # $configure_input" ;;
3148 *) ac_comsub= ;;
3149 esac
3151 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3152 sed -e "$ac_comsub
3153 s%@configure_input@%$configure_input%g
3154 s%@srcdir@%$srcdir%g
3155 s%@top_srcdir@%$top_srcdir%g
3156 s%@INSTALL@%$INSTALL%g
3157 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3158 fi; done
3159 rm -f conftest.s*
3161 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3162 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3164 # ac_d sets the value in "#define NAME VALUE" lines.
3165 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3166 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3167 ac_dC='\3'
3168 ac_dD='%g'
3169 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3170 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3171 ac_uB='\([ ]\)%\1#\2define\3'
3172 ac_uC=' '
3173 ac_uD='\4%g'
3174 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3175 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3176 ac_eB='$%\1#\2define\3'
3177 ac_eC=' '
3178 ac_eD='%g'
3180 if test "${CONFIG_HEADERS+set}" != set; then
3182 cat >> $CONFIG_STATUS <<EOF
3183 CONFIG_HEADERS="config.h"
3185 cat >> $CONFIG_STATUS <<\EOF
3187 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3188 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3189 case "$ac_file" in
3190 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3191 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3192 *) ac_file_in="${ac_file}.in" ;;
3193 esac
3195 echo creating $ac_file
3197 rm -f conftest.frag conftest.in conftest.out
3198 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3199 cat $ac_file_inputs > conftest.in
3203 # Transform confdefs.h into a sed script conftest.vals that substitutes
3204 # the proper values into config.h.in to produce config.h. And first:
3205 # Protect against being on the right side of a sed subst in config.status.
3206 # Protect against being in an unquoted here document in config.status.
3207 rm -f conftest.vals
3208 cat > conftest.hdr <<\EOF
3209 s/[\\&%]/\\&/g
3210 s%[\\$`]%\\&%g
3211 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3212 s%ac_d%ac_u%gp
3213 s%ac_u%ac_e%gp
3215 sed -n -f conftest.hdr confdefs.h > conftest.vals
3216 rm -f conftest.hdr
3218 # This sed command replaces #undef with comments. This is necessary, for
3219 # example, in the case of _POSIX_SOURCE, which is predefined and required
3220 # on some systems where configure will not decide to define it.
3221 cat >> conftest.vals <<\EOF
3222 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3225 # Break up conftest.vals because some shells have a limit on
3226 # the size of here documents, and old seds have small limits too.
3228 rm -f conftest.tail
3229 while :
3231 ac_lines=`grep -c . conftest.vals`
3232 # grep -c gives empty output for an empty file on some AIX systems.
3233 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3234 # Write a limited-size here document to conftest.frag.
3235 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3236 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3237 echo 'CEOF
3238 sed -f conftest.frag conftest.in > conftest.out
3239 rm -f conftest.in
3240 mv conftest.out conftest.in
3241 ' >> $CONFIG_STATUS
3242 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3243 rm -f conftest.vals
3244 mv conftest.tail conftest.vals
3245 done
3246 rm -f conftest.vals
3248 cat >> $CONFIG_STATUS <<\EOF
3249 rm -f conftest.frag conftest.h
3250 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3251 cat conftest.in >> conftest.h
3252 rm -f conftest.in
3253 if cmp -s $ac_file conftest.h 2>/dev/null; then
3254 echo "$ac_file is unchanged"
3255 rm -f conftest.h
3256 else
3257 # Remove last slash and all that follows it. Not all systems have dirname.
3258 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3259 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3260 # The file is in a subdirectory.
3261 test ! -d "$ac_dir" && mkdir "$ac_dir"
3263 rm -f $ac_file
3264 mv conftest.h $ac_file
3266 fi; done
3269 cat >> $CONFIG_STATUS <<EOF
3270 srcdir=${srcdir}
3271 host=${host}
3272 target=${target}
3273 with_target_subdir=${with_target_subdir}
3274 with_multisubdir=${with_multisubdir}
3275 ac_configure_args="--enable-multilib ${ac_configure_args}"
3276 toplevel_srcdir=${toplevel_srcdir}
3277 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3280 cat >> $CONFIG_STATUS <<\EOF
3281 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3282 if test -n "$CONFIG_FILES"; then
3283 if test -n "${with_target_subdir}"; then
3284 # FIXME: We shouldn't need to set ac_file
3285 ac_file=Makefile
3286 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3287 . ${toplevel_srcdir}/config-ml.in
3290 exit 0
3292 chmod +x $CONFIG_STATUS
3293 rm -fr confdefs* $ac_clean_files
3294 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1