PR c++/7478
[official-gcc.git] / libf2c / configure
blob6e577812a2576eb7d5e2f6bb30ed4bb7542c91f3
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=yes]"
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]"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 srcdir=
53 target=NONE
54 verbose=
55 x_includes=NONE
56 x_libraries=NONE
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
70 # Initialize some other variables.
71 subdirs=
72 MFLAGS= MAKEFLAGS=
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
75 ac_max_here_lines=12
77 ac_prev=
78 for ac_option
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
93 # Accept the important Cygnus configure options, so we can diagnose typos.
95 case "$ac_option" in
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 ac_prev=bindir ;;
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
103 ac_prev=build ;;
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 ac_prev=datadir ;;
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 | --da=*)
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 case "$ac_option" in
137 *=*) ;;
138 *) ac_optarg=yes ;;
139 esac
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
153 with_gas=yes ;;
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
158 cat << EOF
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
161 Configuration:
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
169 [$ac_default_prefix]
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 [same as prefix]
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
176 [PREFIX/share]
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 [PREFIX/com]
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
192 cat << EOF
193 Host type:
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
208 exit 0 ;;
210 -host | --host | --hos | --ho)
211 ac_prev=host ;;
212 -host=* | --host=* | --hos=* | --ho=*)
213 host="$ac_optarg" ;;
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 ac_prev=infodir ;;
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
228 ac_prev=libdir ;;
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 ac_prev=mandir ;;
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
253 -nfp | --nfp | --nf)
254 # Obsolete; use --without-fp.
255 with_fp=no ;;
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 | --no-cr | --no-c)
259 no_create=yes ;;
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 no_recursion=yes ;;
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 ac_prev=prefix ;;
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
312 silent=yes ;;
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 ac_prev=sbindir ;;
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 | --sbi=* | --sb=*)
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
323 | --sha | --sh)
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 | --sha=* | --sh=*)
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
332 ac_prev=site ;;
333 -site=* | --site=* | --sit=*)
334 site="$ac_optarg" ;;
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 ac_prev=srcdir ;;
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
349 ac_prev=target ;;
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 verbose=yes ;;
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
358 exit 0 ;;
360 -with-* | --with-*)
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 case "$ac_option" in
368 *=*) ;;
369 *) ac_optarg=yes ;;
370 esac
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
382 --x)
383 # Obsolete; use --with-x.
384 with_x=yes ;;
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 nonopt="$ac_option"
413 esac
414 done
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
423 # 0 standard input
424 # 1 file creation
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
431 exec 6>/dev/null
432 else
433 exec 6>&1
435 exec 5>./config.log
437 echo "\
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
440 " 1>&5
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
444 ac_configure_args=
445 for ac_arg
447 case "$ac_arg" in
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 esac
456 done
458 # NLS nuisances.
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 echo > confdefs.h
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=libF77/Version.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
481 ac_prog=$0
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 srcdir=$ac_confdir
485 if test ! -r $srcdir/$ac_unique_file; then
486 srcdir=..
488 else
489 ac_srcdir_defaulted=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 else
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 else
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
511 . "$ac_site_file"
513 done
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 . $cache_file
518 else
519 echo "creating cache $cache_file"
520 > $cache_file
523 ac_ext=c
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
530 ac_exeext=
531 ac_objext=o
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='
536 ' ac_t=' '
537 else
538 ac_n=-n ac_c= ac_t=
540 else
541 ac_n= ac_c='\c' ac_t=
546 # This works around the fact that libtool configuration may change LD
547 # for this particular configuration, but some shells, instead of
548 # keeping the changes in LD private, export them just because LD is
549 # exported.
550 ORIGINAL_LD_FOR_MULTILIBS=$LD
553 # Check whether --enable-multilib or --disable-multilib was given.
554 if test "${enable_multilib+set}" = set; then
555 enableval="$enable_multilib"
556 case "${enableval}" in
557 yes) multilib=yes ;;
558 no) multilib=no ;;
559 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
560 esac
561 else
562 multilib=yes
565 # When building with srcdir == objdir, links to the source files will
566 # be created in directories within the target_subdir. We have to
567 # adjust toplevel_srcdir accordingly, so that configure finds
568 # install-sh and other auxiliary files that live in the top-level
569 # source directory.
570 if test "${srcdir}" = "."; then
571 if test -z "${with_target_subdir}"; then
572 toprel=".."
573 else
574 if test "${with_target_subdir}" != "."; then
575 toprel="${with_multisrctop}../.."
576 else
577 toprel="${with_multisrctop}.."
580 else
581 toprel=".."
583 ac_aux_dir=
584 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
585 if test -f $ac_dir/install-sh; then
586 ac_aux_dir=$ac_dir
587 ac_install_sh="$ac_aux_dir/install-sh -c"
588 break
589 elif 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
594 done
595 if test -z "$ac_aux_dir"; then
596 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
598 ac_config_guess=$ac_aux_dir/config.guess
599 ac_config_sub=$ac_aux_dir/config.sub
600 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
602 toplevel_srcdir=\${top_srcdir}/$toprel
607 # Do some error checking and defaulting for the host and target type.
608 # The inputs are:
609 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
611 # The rules are:
612 # 1. You are not allowed to specify --host, --target, and nonopt at the
613 # same time.
614 # 2. Host defaults to nonopt.
615 # 3. If nonopt is not specified, then host defaults to the current host,
616 # as determined by config.guess.
617 # 4. Target and build default to nonopt.
618 # 5. If nonopt is not specified, then target and build default to host.
620 # The aliases save the names the user supplied, while $host etc.
621 # will get canonicalized.
622 case $host---$target---$nonopt in
623 NONE---*---* | *---NONE---* | *---*---NONE) ;;
624 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
625 esac
628 # Make sure we can run config.sub.
629 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
630 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
633 echo $ac_n "checking host system type""... $ac_c" 1>&6
634 echo "configure:635: checking host system type" >&5
636 host_alias=$host
637 case "$host_alias" in
638 NONE)
639 case $nonopt in
640 NONE)
641 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
642 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
643 fi ;;
644 *) host_alias=$nonopt ;;
645 esac ;;
646 esac
648 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
649 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$host" 1>&6
654 echo $ac_n "checking target system type""... $ac_c" 1>&6
655 echo "configure:656: checking target system type" >&5
657 target_alias=$target
658 case "$target_alias" in
659 NONE)
660 case $nonopt in
661 NONE) target_alias=$host_alias ;;
662 *) target_alias=$nonopt ;;
663 esac ;;
664 esac
666 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
667 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
668 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
669 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
670 echo "$ac_t""$target" 1>&6
672 echo $ac_n "checking build system type""... $ac_c" 1>&6
673 echo "configure:674: checking build system type" >&5
675 build_alias=$build
676 case "$build_alias" in
677 NONE)
678 case $nonopt in
679 NONE) build_alias=$host_alias ;;
680 *) build_alias=$nonopt ;;
681 esac ;;
682 esac
684 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
685 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688 echo "$ac_t""$build" 1>&6
690 test "$host_alias" != "$target_alias" &&
691 test "$program_prefix$program_suffix$program_transform_name" = \
692 NONENONEs,x,x, &&
693 program_prefix=${target_alias}-
695 target_alias=${target_alias-$target}
698 if test $host != $build; then
699 ac_tool_prefix=${host_alias}-
700 else
701 ac_tool_prefix=
704 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
705 echo "configure:706: checking for Cygwin environment" >&5
706 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
708 else
709 cat > conftest.$ac_ext <<EOF
710 #line 711 "configure"
711 #include "confdefs.h"
713 int main() {
715 #ifndef __CYGWIN__
716 #define __CYGWIN__ __CYGWIN32__
717 #endif
718 return __CYGWIN__;
719 ; return 0; }
721 if { (eval echo configure:722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
722 rm -rf conftest*
723 ac_cv_cygwin=yes
724 else
725 echo "configure: failed program was:" >&5
726 cat conftest.$ac_ext >&5
727 rm -rf conftest*
728 ac_cv_cygwin=no
730 rm -f conftest*
731 rm -f conftest*
734 echo "$ac_t""$ac_cv_cygwin" 1>&6
735 CYGWIN=
736 test "$ac_cv_cygwin" = yes && CYGWIN=yes
737 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
738 echo "configure:739: checking for mingw32 environment" >&5
739 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
741 else
742 cat > conftest.$ac_ext <<EOF
743 #line 744 "configure"
744 #include "confdefs.h"
746 int main() {
747 return __MINGW32__;
748 ; return 0; }
750 if { (eval echo configure:751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
751 rm -rf conftest*
752 ac_cv_mingw32=yes
753 else
754 echo "configure: failed program was:" >&5
755 cat conftest.$ac_ext >&5
756 rm -rf conftest*
757 ac_cv_mingw32=no
759 rm -f conftest*
760 rm -f conftest*
763 echo "$ac_t""$ac_cv_mingw32" 1>&6
764 MINGW32=
765 test "$ac_cv_mingw32" = yes && MINGW32=yes
767 # Export build and source directories.
768 # These need to be absolute paths, yet at the same time need to
769 # canonicalize only relative paths, because then amd will not unmount
770 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
771 glibcpp_builddir=`pwd`
772 case $srcdir in
773 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
774 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
775 esac
781 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
782 # be 'cp -p' if linking isn't available.
783 #ac_cv_prog_LN_S='cp -p'
784 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
785 echo "configure:786: checking whether ln -s works" >&5
786 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
788 else
789 rm -f conftestdata
790 if ln -s X conftestdata 2>/dev/null
791 then
792 rm -f conftestdata
793 ac_cv_prog_LN_S="ln -s"
794 else
795 ac_cv_prog_LN_S=ln
798 LN_S="$ac_cv_prog_LN_S"
799 if test "$ac_cv_prog_LN_S" = "ln -s"; then
800 echo "$ac_t""yes" 1>&6
801 else
802 echo "$ac_t""no" 1>&6
806 # We use these options to decide which functions to include.
807 # Check whether --with-target-subdir or --without-target-subdir was given.
808 if test "${with_target_subdir+set}" = set; then
809 withval="$with_target_subdir"
813 # Check whether --with-cross-host or --without-cross-host was given.
814 if test "${with_cross_host+set}" = set; then
815 withval="$with_cross_host"
820 # Never versions of autoconf add an underscore to these functions.
821 # Prevent future problems ...
827 # AC_PROG_CC
829 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
830 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
831 # are probably using a cross compiler, which will not be able to fully
832 # link an executable. This should really be fixed in autoconf
833 # itself.
838 # Extract the first word of "gcc", so it can be a program name with args.
839 set dummy gcc; ac_word=$2
840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841 echo "configure:842: checking for $ac_word" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
844 else
845 if test -n "$CC"; then
846 ac_cv_prog_CC="$CC" # Let the user override the test.
847 else
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
849 ac_dummy="$PATH"
850 for ac_dir in $ac_dummy; do
851 test -z "$ac_dir" && ac_dir=.
852 if test -f $ac_dir/$ac_word; then
853 ac_cv_prog_CC="gcc"
854 break
856 done
857 IFS="$ac_save_ifs"
860 CC="$ac_cv_prog_CC"
861 if test -n "$CC"; then
862 echo "$ac_t""$CC" 1>&6
863 else
864 echo "$ac_t""no" 1>&6
867 if test -z "$CC"; then
868 # Extract the first word of "cc", so it can be a program name with args.
869 set dummy cc; ac_word=$2
870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871 echo "configure:872: checking for $ac_word" >&5
872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
874 else
875 if test -n "$CC"; then
876 ac_cv_prog_CC="$CC" # Let the user override the test.
877 else
878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
879 ac_prog_rejected=no
880 ac_dummy="$PATH"
881 for ac_dir in $ac_dummy; do
882 test -z "$ac_dir" && ac_dir=.
883 if test -f $ac_dir/$ac_word; then
884 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
885 ac_prog_rejected=yes
886 continue
888 ac_cv_prog_CC="cc"
889 break
891 done
892 IFS="$ac_save_ifs"
893 if test $ac_prog_rejected = yes; then
894 # We found a bogon in the path, so make sure we never use it.
895 set dummy $ac_cv_prog_CC
896 shift
897 if test $# -gt 0; then
898 # We chose a different compiler from the bogus one.
899 # However, it has the same basename, so the bogon will be chosen
900 # first if we set CC to just the basename; use the full file name.
901 shift
902 set dummy "$ac_dir/$ac_word" "$@"
903 shift
904 ac_cv_prog_CC="$@"
909 CC="$ac_cv_prog_CC"
910 if test -n "$CC"; then
911 echo "$ac_t""$CC" 1>&6
912 else
913 echo "$ac_t""no" 1>&6
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
920 echo "configure:921: checking whether we are using GNU C" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
923 else
924 cat > conftest.c <<EOF
925 #ifdef __GNUC__
926 yes;
927 #endif
929 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
930 ac_cv_prog_gcc=yes
931 else
932 ac_cv_prog_gcc=no
936 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
938 if test $ac_cv_prog_gcc = yes; then
939 GCC=yes
940 ac_test_CFLAGS="${CFLAGS+set}"
941 ac_save_CFLAGS="$CFLAGS"
942 CFLAGS=
943 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
944 echo "configure:945: checking whether ${CC-cc} accepts -g" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
947 else
948 echo 'void f(){}' > conftest.c
949 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
950 ac_cv_prog_cc_g=yes
951 else
952 ac_cv_prog_cc_g=no
954 rm -f conftest*
958 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
959 if test "$ac_test_CFLAGS" = set; then
960 CFLAGS="$ac_save_CFLAGS"
961 elif test $ac_cv_prog_cc_g = yes; then
962 CFLAGS="-g -O2"
963 else
964 CFLAGS="-O2"
966 else
967 GCC=
968 test "${CFLAGS+set}" = set || CFLAGS="-g"
972 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
973 set dummy ${ac_tool_prefix}as; ac_word=$2
974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
975 echo "configure:976: checking for $ac_word" >&5
976 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
978 else
979 if test -n "$AS"; then
980 ac_cv_prog_AS="$AS" # Let the user override the test.
981 else
982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
983 ac_dummy="$PATH"
984 for ac_dir in $ac_dummy; do
985 test -z "$ac_dir" && ac_dir=.
986 if test -f $ac_dir/$ac_word; then
987 ac_cv_prog_AS="${ac_tool_prefix}as"
988 break
990 done
991 IFS="$ac_save_ifs"
992 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
995 AS="$ac_cv_prog_AS"
996 if test -n "$AS"; then
997 echo "$ac_t""$AS" 1>&6
998 else
999 echo "$ac_t""no" 1>&6
1004 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1005 set dummy ${ac_tool_prefix}ar; ac_word=$2
1006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007 echo "configure:1008: checking for $ac_word" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1010 else
1011 if test -n "$AR"; then
1012 ac_cv_prog_AR="$AR" # Let the user override the test.
1013 else
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1015 ac_dummy="$PATH"
1016 for ac_dir in $ac_dummy; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1019 ac_cv_prog_AR="${ac_tool_prefix}ar"
1020 break
1022 done
1023 IFS="$ac_save_ifs"
1024 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1027 AR="$ac_cv_prog_AR"
1028 if test -n "$AR"; then
1029 echo "$ac_t""$AR" 1>&6
1030 else
1031 echo "$ac_t""no" 1>&6
1036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1039 echo "configure:1040: checking for $ac_word" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1042 else
1043 if test -n "$RANLIB"; then
1044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1045 else
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 ac_dummy="$PATH"
1048 for ac_dir in $ac_dummy; do
1049 test -z "$ac_dir" && ac_dir=.
1050 if test -f $ac_dir/$ac_word; then
1051 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1052 break
1054 done
1055 IFS="$ac_save_ifs"
1058 RANLIB="$ac_cv_prog_RANLIB"
1059 if test -n "$RANLIB"; then
1060 echo "$ac_t""$RANLIB" 1>&6
1061 else
1062 echo "$ac_t""no" 1>&6
1066 if test -z "$ac_cv_prog_RANLIB"; then
1067 if test -n "$ac_tool_prefix"; then
1068 # Extract the first word of "ranlib", so it can be a program name with args.
1069 set dummy ranlib; ac_word=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1074 else
1075 if test -n "$RANLIB"; then
1076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1077 else
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1079 ac_dummy="$PATH"
1080 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 ac_cv_prog_RANLIB="ranlib"
1084 break
1086 done
1087 IFS="$ac_save_ifs"
1088 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1091 RANLIB="$ac_cv_prog_RANLIB"
1092 if test -n "$RANLIB"; then
1093 echo "$ac_t""$RANLIB" 1>&6
1094 else
1095 echo "$ac_t""no" 1>&6
1098 else
1099 RANLIB="ranlib-not-found-in-path-error"
1103 # Find a good install program. We prefer a C program (faster),
1104 # so one script is as good as another. But avoid the broken or
1105 # incompatible versions:
1106 # SysV /etc/install, /usr/sbin/install
1107 # SunOS /usr/etc/install
1108 # IRIX /sbin/install
1109 # AIX /bin/install
1110 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1111 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1112 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1113 # ./install, which can be erroneously created by make from ./install.sh.
1114 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1115 echo "configure:1116: checking for a BSD compatible install" >&5
1116 if test -z "$INSTALL"; then
1117 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119 else
1120 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1121 for ac_dir in $PATH; do
1122 # Account for people who put trailing slashes in PATH elements.
1123 case "$ac_dir/" in
1124 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1126 # OSF1 and SCO ODT 3.0 have their own names for install.
1127 # Don't use installbsd from OSF since it installs stuff as root
1128 # by default.
1129 for ac_prog in ginstall scoinst install; do
1130 if test -f $ac_dir/$ac_prog; then
1131 if test $ac_prog = install &&
1132 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1133 # AIX install. It has an incompatible calling convention.
1135 else
1136 ac_cv_path_install="$ac_dir/$ac_prog -c"
1137 break 2
1140 done
1142 esac
1143 done
1144 IFS="$ac_save_IFS"
1147 if test "${ac_cv_path_install+set}" = set; then
1148 INSTALL="$ac_cv_path_install"
1149 else
1150 # As a last resort, use the slow shell script. We don't cache a
1151 # path for INSTALL within a source directory, because that will
1152 # break other packages using the cache if that directory is
1153 # removed, or if the path is relative.
1154 INSTALL="$ac_install_sh"
1157 echo "$ac_t""$INSTALL" 1>&6
1159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1160 # It thinks the first close brace ends the variable substitution.
1161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1165 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1168 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1169 # at least currently, we never actually build a program, so we never
1170 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1171 # fails, because we are probably configuring with a cross compiler
1172 # which can't create executables. So we include AC_EXEEXT to keep
1173 # automake happy, but we don't execute it, since we don't care about
1174 # the result.
1175 if false; then
1176 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1177 # to nothing, so nothing would remain between `then' and `fi' if it
1178 # were not for the `:' below.
1182 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1183 echo "configure:1184: checking for executable suffix" >&5
1184 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1186 else
1187 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1188 ac_cv_exeext=.exe
1189 else
1190 rm -f conftest*
1191 echo 'int main () { return 0; }' > conftest.$ac_ext
1192 ac_cv_exeext=
1193 if { (eval echo configure:1194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1194 for file in conftest.*; do
1195 case $file in
1196 *.c | *.o | *.obj) ;;
1197 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1198 esac
1199 done
1200 else
1201 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1203 rm -f conftest*
1204 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1208 EXEEXT=""
1209 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1210 echo "$ac_t""${ac_cv_exeext}" 1>&6
1211 ac_exeext=$EXEEXT
1216 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
1217 # exported correctly in GLIBCPP_CONFIGURE.
1218 glibcpp_toolexecdir=no
1219 glibcpp_toolexeclibdir=no
1220 glibcpp_prefixdir=${prefix}
1222 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
1223 echo "configure:1224: checking for interface version number" >&5
1224 libstdcxx_interface=$INTERFACE
1225 echo "$ac_t""$libstdcxx_interface" 1>&6
1227 # Process the option "--enable-version-specific-runtime-libs"
1228 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
1229 echo "configure:1230: checking for --enable-version-specific-runtime-libs" >&5
1230 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1231 if test "${enable_version_specific_runtime_libs+set}" = set; then
1232 enableval="$enable_version_specific_runtime_libs"
1233 case "$enableval" in
1234 yes) version_specific_libs=yes ;;
1235 no) version_specific_libs=no ;;
1236 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
1237 esac
1238 else
1239 version_specific_libs=no
1241 # Option set, now we can test it.
1242 echo "$ac_t""$version_specific_libs" 1>&6
1244 gcc_version_trigger=${toplevel_srcdir}/gcc/version.c
1245 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1246 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1250 if test $version_specific_libs = yes; then
1251 # Need the gcc compiler version to know where to install libraries
1252 # and header files if --enable-version-specific-runtime-libs option
1253 # is selected.
1254 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1255 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1258 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
1259 # Install a library built with a cross compiler in tooldir, not libdir.
1260 if test x"$glibcpp_toolexecdir" = x"no"; then
1261 if test -n "$with_cross_host" &&
1262 test x"$with_cross_host" != x"no"; then
1263 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
1264 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
1265 else
1266 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1267 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
1276 # If the language specific compiler does not exist, but the "gcc" directory
1277 # does, we do not build anything. Note, $r is set by the top-level Makefile.
1278 # Note that when we look for the compiler, we search both with and without
1279 # extension to handle cross and canadian cross builds.
1280 compiler_name=f771
1281 rm -f skip-this-dir
1282 echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
1283 echo "configure:1284: checking if compiler $compiler_name has been built" >&5
1284 if eval "test \"`echo '$''{'g77_cv_compiler_exists'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287 g77_cv_compiler_exists=yes
1288 if test -n "$r"; then
1289 if test -d "$r"/gcc; then
1290 if test -f "$r"/gcc/$compiler_name \
1291 || test -f "$r"/gcc/$compiler_name.exe; then
1292 true
1293 else
1294 g77_cv_compiler_exists=no
1295 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
1302 echo "$ac_t""$g77_cv_compiler_exists" 1>&6
1303 if test x$g77_cv_compiler_exists = xno
1304 then
1305 rm -f Makefile conftest* confdefs* core
1306 exit 0
1310 # Check whether --enable-shared or --disable-shared was given.
1311 if test "${enable_shared+set}" = set; then
1312 enableval="$enable_shared"
1313 p=${PACKAGE-default}
1314 case $enableval in
1315 yes) enable_shared=yes ;;
1316 no) enable_shared=no ;;
1318 enable_shared=no
1319 # Look at the argument we got. We use all the common list separators.
1320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1321 for pkg in $enableval; do
1322 if test "X$pkg" = "X$p"; then
1323 enable_shared=yes
1325 done
1326 IFS="$ac_save_ifs"
1328 esac
1329 else
1330 enable_shared=yes
1333 # Check whether --enable-static or --disable-static was given.
1334 if test "${enable_static+set}" = set; then
1335 enableval="$enable_static"
1336 p=${PACKAGE-default}
1337 case $enableval in
1338 yes) enable_static=yes ;;
1339 no) enable_static=no ;;
1341 enable_static=no
1342 # Look at the argument we got. We use all the common list separators.
1343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1344 for pkg in $enableval; do
1345 if test "X$pkg" = "X$p"; then
1346 enable_static=yes
1348 done
1349 IFS="$ac_save_ifs"
1351 esac
1352 else
1353 enable_static=yes
1356 # Check whether --enable-fast-install or --disable-fast-install was given.
1357 if test "${enable_fast_install+set}" = set; then
1358 enableval="$enable_fast_install"
1359 p=${PACKAGE-default}
1360 case $enableval in
1361 yes) enable_fast_install=yes ;;
1362 no) enable_fast_install=no ;;
1364 enable_fast_install=no
1365 # Look at the argument we got. We use all the common list separators.
1366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1367 for pkg in $enableval; do
1368 if test "X$pkg" = "X$p"; then
1369 enable_fast_install=yes
1371 done
1372 IFS="$ac_save_ifs"
1374 esac
1375 else
1376 enable_fast_install=yes
1379 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1380 if test "${with_gnu_ld+set}" = set; then
1381 withval="$with_gnu_ld"
1382 test "$withval" = no || with_gnu_ld=yes
1383 else
1384 with_gnu_ld=no
1387 ac_prog=ld
1388 if test "$GCC" = yes; then
1389 # Check if gcc -print-prog-name=ld gives a path.
1390 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1391 echo "configure:1392: checking for ld used by GCC" >&5
1392 case $host in
1393 *-*-mingw*)
1394 # gcc leaves a trailing carriage return which upsets mingw
1395 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1397 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1398 esac
1399 case $ac_prog in
1400 # Accept absolute paths.
1401 [\\/]* | [A-Za-z]:[\\/]*)
1402 re_direlt='/[^/][^/]*/\.\./'
1403 # Canonicalize the path of ld
1404 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1405 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1406 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1407 done
1408 test -z "$LD" && LD="$ac_prog"
1411 # If it fails, then pretend we aren't using GCC.
1412 ac_prog=ld
1415 # If it is relative, then search for the first ld in PATH.
1416 with_gnu_ld=unknown
1418 esac
1419 elif test "$with_gnu_ld" = yes; then
1420 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1421 echo "configure:1422: checking for GNU ld" >&5
1422 else
1423 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1424 echo "configure:1425: checking for non-GNU ld" >&5
1426 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429 if test -z "$LD"; then
1430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1431 for ac_dir in $PATH; do
1432 test -z "$ac_dir" && ac_dir=.
1433 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1434 lt_cv_path_LD="$ac_dir/$ac_prog"
1435 # Check to see if the program is GNU ld. I'd rather use --version,
1436 # but apparently some GNU ld's only accept -v.
1437 # Break only if it was the GNU/non-GNU ld that we prefer.
1438 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1439 test "$with_gnu_ld" != no && break
1440 else
1441 test "$with_gnu_ld" != yes && break
1444 done
1445 IFS="$ac_save_ifs"
1446 else
1447 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1451 LD="$lt_cv_path_LD"
1452 if test -n "$LD"; then
1453 echo "$ac_t""$LD" 1>&6
1454 else
1455 echo "$ac_t""no" 1>&6
1457 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1458 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1459 echo "configure:1460: checking if the linker ($LD) is GNU ld" >&5
1460 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1462 else
1463 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1464 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1465 lt_cv_prog_gnu_ld=yes
1466 else
1467 lt_cv_prog_gnu_ld=no
1471 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1472 with_gnu_ld=$lt_cv_prog_gnu_ld
1475 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1476 echo "configure:1477: checking for $LD option to reload object files" >&5
1477 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1479 else
1480 lt_cv_ld_reload_flag='-r'
1483 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1484 reload_flag=$lt_cv_ld_reload_flag
1485 test -n "$reload_flag" && reload_flag=" $reload_flag"
1487 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1488 echo "configure:1489: checking for BSD-compatible nm" >&5
1489 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1491 else
1492 if test -n "$NM"; then
1493 # Let the user override the test.
1494 lt_cv_path_NM="$NM"
1495 else
1496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1497 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1498 test -z "$ac_dir" && ac_dir=.
1499 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1500 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1501 # Check to see if the nm accepts a BSD-compat flag.
1502 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1503 # nm: unknown option "B" ignored
1504 # Tru64's nm complains that /dev/null is an invalid object file
1505 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1506 lt_cv_path_NM="$tmp_nm -B"
1507 break
1508 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1509 lt_cv_path_NM="$tmp_nm -p"
1510 break
1511 else
1512 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1513 continue # so that we can try to find one that supports BSD flags
1516 done
1517 IFS="$ac_save_ifs"
1518 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1522 NM="$lt_cv_path_NM"
1523 echo "$ac_t""$NM" 1>&6
1525 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1526 echo "configure:1527: checking how to recognise dependant libraries" >&5
1527 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1529 else
1530 lt_cv_file_magic_cmd='$MAGIC_CMD'
1531 lt_cv_file_magic_test_file=
1532 lt_cv_deplibs_check_method='unknown'
1533 # Need to set the preceding variable on all platforms that support
1534 # interlibrary dependencies.
1535 # 'none' -- dependencies not supported.
1536 # `unknown' -- same as none, but documents that we really don't know.
1537 # 'pass_all' -- all dependencies passed with no checks.
1538 # 'test_compile' -- check by making test program.
1539 # 'file_magic [regex]' -- check by looking for files in library path
1540 # which responds to the $file_magic_cmd with a given egrep regex.
1541 # If you have `file' or equivalent on your system and you're not sure
1542 # whether `pass_all' will *always* work, you probably want this one.
1544 case $host_os in
1545 aix*)
1546 lt_cv_deplibs_check_method=pass_all
1549 beos*)
1550 lt_cv_deplibs_check_method=pass_all
1553 bsdi4*)
1554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1555 lt_cv_file_magic_cmd='/usr/bin/file -L'
1556 lt_cv_file_magic_test_file=/shlib/libc.so
1559 cygwin* | mingw* |pw32*)
1560 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1561 lt_cv_file_magic_cmd='$OBJDUMP -f'
1564 darwin* | rhapsody*)
1565 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1566 lt_cv_file_magic_cmd='/usr/bin/file -L'
1567 case "$host_os" in
1568 rhapsody* | darwin1.012)
1569 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1571 *) # Darwin 1.3 on
1572 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1574 esac
1577 freebsd* )
1578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1579 case $host_cpu in
1580 i*86 )
1581 # Not sure whether the presence of OpenBSD here was a mistake.
1582 # Let's accept both of them until this is cleared up.
1583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1584 lt_cv_file_magic_cmd=/usr/bin/file
1585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1587 esac
1588 else
1589 lt_cv_deplibs_check_method=pass_all
1593 gnu*)
1594 lt_cv_deplibs_check_method=pass_all
1597 hpux10.20*|hpux11*)
1598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1599 lt_cv_file_magic_cmd=/usr/bin/file
1600 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1603 irix5* | irix6*)
1604 case $host_os in
1605 irix5*)
1606 # this will be overridden with pass_all, but let us keep it just in case
1607 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1610 case $LD in
1611 *-32|*"-32 ") libmagic=32-bit;;
1612 *-n32|*"-n32 ") libmagic=N32;;
1613 *-64|*"-64 ") libmagic=64-bit;;
1614 *) libmagic=never-match;;
1615 esac
1616 # this will be overridden with pass_all, but let us keep it just in case
1617 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1619 esac
1620 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1621 lt_cv_deplibs_check_method=pass_all
1624 # This must be Linux ELF.
1625 linux-gnu*)
1626 case $host_cpu in
1627 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1628 lt_cv_deplibs_check_method=pass_all ;;
1630 # glibc up to 2.1.1 does not perform some relocations on ARM
1631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1632 esac
1633 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1636 netbsd*)
1637 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1638 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1639 else
1640 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1644 newsos6)
1645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1646 lt_cv_file_magic_cmd=/usr/bin/file
1647 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1650 osf3* | osf4* | osf5*)
1651 # this will be overridden with pass_all, but let us keep it just in case
1652 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1653 lt_cv_file_magic_test_file=/shlib/libc.so
1654 lt_cv_deplibs_check_method=pass_all
1657 sco3.2v5*)
1658 lt_cv_deplibs_check_method=pass_all
1661 solaris*)
1662 lt_cv_deplibs_check_method=pass_all
1663 lt_cv_file_magic_test_file=/lib/libc.so
1666 sysv5uw[78]* | sysv4*uw2*)
1667 lt_cv_deplibs_check_method=pass_all
1670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1671 case $host_vendor in
1672 ncr)
1673 lt_cv_deplibs_check_method=pass_all
1675 motorola)
1676 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]'
1677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1679 esac
1681 esac
1685 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1686 file_magic_cmd=$lt_cv_file_magic_cmd
1687 deplibs_check_method=$lt_cv_deplibs_check_method
1689 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1690 echo "configure:1691: checking for object suffix" >&5
1691 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1693 else
1694 rm -f conftest*
1695 echo 'int i = 1;' > conftest.$ac_ext
1696 if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1697 for ac_file in conftest.*; do
1698 case $ac_file in
1699 *.c) ;;
1700 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1701 esac
1702 done
1703 else
1704 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1706 rm -f conftest*
1709 echo "$ac_t""$ac_cv_objext" 1>&6
1710 OBJEXT=$ac_cv_objext
1711 ac_objext=$ac_cv_objext
1713 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1715 # Only perform the check for file, if the check method requires it
1716 case $deplibs_check_method in
1717 file_magic*)
1718 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1719 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1720 echo "configure:1721: checking for ${ac_tool_prefix}file" >&5
1721 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1723 else
1724 case $MAGIC_CMD in
1726 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1728 ?:/*)
1729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1732 ac_save_MAGIC_CMD="$MAGIC_CMD"
1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1734 ac_dummy="/usr/bin:$PATH"
1735 for ac_dir in $ac_dummy; do
1736 test -z "$ac_dir" && ac_dir=.
1737 if test -f $ac_dir/${ac_tool_prefix}file; then
1738 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1739 if test -n "$file_magic_test_file"; then
1740 case $deplibs_check_method in
1741 "file_magic "*)
1742 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1745 egrep "$file_magic_regex" > /dev/null; then
1747 else
1748 cat <<EOF 1>&2
1750 *** Warning: the command libtool uses to detect shared libraries,
1751 *** $file_magic_cmd, produces output that libtool cannot recognize.
1752 *** The result is that libtool may fail to recognize shared libraries
1753 *** as such. This will affect the creation of libtool libraries that
1754 *** depend on shared libraries, but programs linked with such libtool
1755 *** libraries will work regardless of this problem. Nevertheless, you
1756 *** may want to report the problem to your system manager and/or to
1757 *** bug-libtool@gnu.org
1760 fi ;;
1761 esac
1763 break
1765 done
1766 IFS="$ac_save_ifs"
1767 MAGIC_CMD="$ac_save_MAGIC_CMD"
1769 esac
1772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1773 if test -n "$MAGIC_CMD"; then
1774 echo "$ac_t""$MAGIC_CMD" 1>&6
1775 else
1776 echo "$ac_t""no" 1>&6
1779 if test -z "$lt_cv_path_MAGIC_CMD"; then
1780 if test -n "$ac_tool_prefix"; then
1781 echo $ac_n "checking for file""... $ac_c" 1>&6
1782 echo "configure:1783: checking for file" >&5
1783 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786 case $MAGIC_CMD in
1788 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1790 ?:/*)
1791 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1794 ac_save_MAGIC_CMD="$MAGIC_CMD"
1795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1796 ac_dummy="/usr/bin:$PATH"
1797 for ac_dir in $ac_dummy; do
1798 test -z "$ac_dir" && ac_dir=.
1799 if test -f $ac_dir/file; then
1800 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1801 if test -n "$file_magic_test_file"; then
1802 case $deplibs_check_method in
1803 "file_magic "*)
1804 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1806 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1807 egrep "$file_magic_regex" > /dev/null; then
1809 else
1810 cat <<EOF 1>&2
1812 *** Warning: the command libtool uses to detect shared libraries,
1813 *** $file_magic_cmd, produces output that libtool cannot recognize.
1814 *** The result is that libtool may fail to recognize shared libraries
1815 *** as such. This will affect the creation of libtool libraries that
1816 *** depend on shared libraries, but programs linked with such libtool
1817 *** libraries will work regardless of this problem. Nevertheless, you
1818 *** may want to report the problem to your system manager and/or to
1819 *** bug-libtool@gnu.org
1822 fi ;;
1823 esac
1825 break
1827 done
1828 IFS="$ac_save_ifs"
1829 MAGIC_CMD="$ac_save_MAGIC_CMD"
1831 esac
1834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1835 if test -n "$MAGIC_CMD"; then
1836 echo "$ac_t""$MAGIC_CMD" 1>&6
1837 else
1838 echo "$ac_t""no" 1>&6
1841 else
1842 MAGIC_CMD=:
1848 esac
1850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1851 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1853 echo "configure:1854: checking for $ac_word" >&5
1854 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857 if test -n "$RANLIB"; then
1858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1859 else
1860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1861 ac_dummy="$PATH"
1862 for ac_dir in $ac_dummy; do
1863 test -z "$ac_dir" && ac_dir=.
1864 if test -f $ac_dir/$ac_word; then
1865 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1866 break
1868 done
1869 IFS="$ac_save_ifs"
1872 RANLIB="$ac_cv_prog_RANLIB"
1873 if test -n "$RANLIB"; then
1874 echo "$ac_t""$RANLIB" 1>&6
1875 else
1876 echo "$ac_t""no" 1>&6
1880 if test -z "$ac_cv_prog_RANLIB"; then
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "ranlib", so it can be a program name with args.
1883 set dummy ranlib; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1888 else
1889 if test -n "$RANLIB"; then
1890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1891 else
1892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1893 ac_dummy="$PATH"
1894 for ac_dir in $ac_dummy; do
1895 test -z "$ac_dir" && ac_dir=.
1896 if test -f $ac_dir/$ac_word; then
1897 ac_cv_prog_RANLIB="ranlib"
1898 break
1900 done
1901 IFS="$ac_save_ifs"
1902 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1905 RANLIB="$ac_cv_prog_RANLIB"
1906 if test -n "$RANLIB"; then
1907 echo "$ac_t""$RANLIB" 1>&6
1908 else
1909 echo "$ac_t""no" 1>&6
1912 else
1913 RANLIB=":"
1917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1918 set dummy ${ac_tool_prefix}strip; ac_word=$2
1919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1920 echo "configure:1921: checking for $ac_word" >&5
1921 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1923 else
1924 if test -n "$STRIP"; then
1925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1926 else
1927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1928 ac_dummy="$PATH"
1929 for ac_dir in $ac_dummy; do
1930 test -z "$ac_dir" && ac_dir=.
1931 if test -f $ac_dir/$ac_word; then
1932 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1933 break
1935 done
1936 IFS="$ac_save_ifs"
1939 STRIP="$ac_cv_prog_STRIP"
1940 if test -n "$STRIP"; then
1941 echo "$ac_t""$STRIP" 1>&6
1942 else
1943 echo "$ac_t""no" 1>&6
1947 if test -z "$ac_cv_prog_STRIP"; then
1948 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "strip", so it can be a program name with args.
1950 set dummy strip; ac_word=$2
1951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_word" >&5
1953 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1955 else
1956 if test -n "$STRIP"; then
1957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1958 else
1959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1960 ac_dummy="$PATH"
1961 for ac_dir in $ac_dummy; do
1962 test -z "$ac_dir" && ac_dir=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_prog_STRIP="strip"
1965 break
1967 done
1968 IFS="$ac_save_ifs"
1969 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1972 STRIP="$ac_cv_prog_STRIP"
1973 if test -n "$STRIP"; then
1974 echo "$ac_t""$STRIP" 1>&6
1975 else
1976 echo "$ac_t""no" 1>&6
1979 else
1980 STRIP=":"
1985 # Check for any special flags to pass to ltconfig.
1986 libtool_flags="--cache-file=$cache_file"
1987 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1988 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1989 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1990 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1991 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1994 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1995 if test "${enable_libtool_lock+set}" = set; then
1996 enableval="$enable_libtool_lock"
2000 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2001 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2003 # Check whether --with-pic or --without-pic was given.
2004 if test "${with_pic+set}" = set; then
2005 withval="$with_pic"
2006 pic_mode="$withval"
2007 else
2008 pic_mode=default
2011 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2012 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2014 # Some flags need to be propagated to the compiler or linker for good
2015 # libtool support.
2016 case $host in
2017 *-*-irix6*)
2018 # Find out which ABI we are using.
2019 echo '#line 2020 "configure"' > conftest.$ac_ext
2020 if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2021 case `/usr/bin/file conftest.$ac_objext` in
2022 *32-bit*)
2023 LD="${LD-ld} -32"
2025 *N32*)
2026 LD="${LD-ld} -n32"
2028 *64-bit*)
2029 LD="${LD-ld} -64"
2031 esac
2033 rm -rf conftest*
2036 *-*-sco3.2v5*)
2037 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2038 SAVE_CFLAGS="$CFLAGS"
2039 CFLAGS="$CFLAGS -belf"
2040 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2041 echo "configure:2042: checking whether the C compiler needs -belf" >&5
2042 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044 else
2046 ac_ext=c
2047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2051 cross_compiling=$ac_cv_prog_cc_cross
2053 cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2057 int main() {
2059 ; return 0; }
2061 if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2062 rm -rf conftest*
2063 lt_cv_cc_needs_belf=yes
2064 else
2065 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 rm -rf conftest*
2068 lt_cv_cc_needs_belf=no
2070 rm -f conftest*
2071 ac_ext=c
2072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2073 ac_cpp='$CPP $CPPFLAGS'
2074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2076 cross_compiling=$ac_cv_prog_cc_cross
2080 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2081 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2082 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2083 CFLAGS="$SAVE_CFLAGS"
2088 esac
2091 # Save cache, so that ltconfig can load it
2092 cat > confcache <<\EOF
2093 # This file is a shell script that caches the results of configure
2094 # tests run on this system so they can be shared between configure
2095 # scripts and configure runs. It is not useful on other systems.
2096 # If it contains results you don't want to keep, you may remove or edit it.
2098 # By default, configure uses ./config.cache as the cache file,
2099 # creating it if it does not exist already. You can give configure
2100 # the --cache-file=FILE option to use a different cache file; that is
2101 # what configure does when it calls configure scripts in
2102 # subdirectories, so they share the cache.
2103 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2104 # config.status only pays attention to the cache file if you give it the
2105 # --recheck option to rerun configure.
2108 # The following way of writing the cache mishandles newlines in values,
2109 # but we know of no workaround that is simple, portable, and efficient.
2110 # So, don't put newlines in cache variables' values.
2111 # Ultrix sh set writes to stderr and can't be redirected directly,
2112 # and sets the high bit in the cache file unless we assign to the vars.
2113 (set) 2>&1 |
2114 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2115 *ac_space=\ *)
2116 # `set' does not quote correctly, so add quotes (double-quote substitution
2117 # turns \\\\ into \\, and sed turns \\ into \).
2118 sed -n \
2119 -e "s/'/'\\\\''/g" \
2120 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2123 # `set' quotes correctly as required by POSIX, so do not add quotes.
2124 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2126 esac >> confcache
2127 if cmp -s $cache_file confcache; then
2129 else
2130 if test -w $cache_file; then
2131 echo "updating cache $cache_file"
2132 cat confcache > $cache_file
2133 else
2134 echo "not updating unwritable cache $cache_file"
2137 rm -f confcache
2140 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2141 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2142 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2143 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2144 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2145 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2146 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2147 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2148 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2149 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2151 # Reload cache, that may have been modified by ltconfig
2152 if test -r "$cache_file"; then
2153 echo "loading cache $cache_file"
2154 . $cache_file
2155 else
2156 echo "creating cache $cache_file"
2157 > $cache_file
2161 # This can be used to rebuild libtool when needed
2162 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2164 # Always use our own libtool.
2165 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2167 # Redirect the config.log output again, so that the ltconfig log is not
2168 # clobbered by the next message.
2169 exec 5>>./config.log
2177 test "$AR" || AR=ar
2179 if test "$RANLIB"; then :
2181 else
2182 # Extract the first word of "ranlib", so it can be a program name with args.
2183 set dummy ranlib; ac_word=$2
2184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2185 echo "configure:2186: checking for $ac_word" >&5
2186 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2188 else
2189 if test -n "$RANLIB"; then
2190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2191 else
2192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2193 ac_dummy="$PATH"
2194 for ac_dir in $ac_dummy; do
2195 test -z "$ac_dir" && ac_dir=.
2196 if test -f $ac_dir/$ac_word; then
2197 ac_cv_prog_RANLIB="ranlib"
2198 break
2200 done
2201 IFS="$ac_save_ifs"
2202 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2205 RANLIB="$ac_cv_prog_RANLIB"
2206 if test -n "$RANLIB"; then
2207 echo "$ac_t""$RANLIB" 1>&6
2208 else
2209 echo "$ac_t""no" 1>&6
2213 # Find a good install program. We prefer a C program (faster),
2214 # so one script is as good as another. But avoid the broken or
2215 # incompatible versions:
2216 # SysV /etc/install, /usr/sbin/install
2217 # SunOS /usr/etc/install
2218 # IRIX /sbin/install
2219 # AIX /bin/install
2220 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2223 # ./install, which can be erroneously created by make from ./install.sh.
2224 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2225 echo "configure:2226: checking for a BSD compatible install" >&5
2226 if test -z "$INSTALL"; then
2227 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2229 else
2230 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2231 for ac_dir in $PATH; do
2232 # Account for people who put trailing slashes in PATH elements.
2233 case "$ac_dir/" in
2234 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2236 # OSF1 and SCO ODT 3.0 have their own names for install.
2237 # Don't use installbsd from OSF since it installs stuff as root
2238 # by default.
2239 for ac_prog in ginstall scoinst install; do
2240 if test -f $ac_dir/$ac_prog; then
2241 if test $ac_prog = install &&
2242 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2243 # AIX install. It has an incompatible calling convention.
2245 else
2246 ac_cv_path_install="$ac_dir/$ac_prog -c"
2247 break 2
2250 done
2252 esac
2253 done
2254 IFS="$ac_save_IFS"
2257 if test "${ac_cv_path_install+set}" = set; then
2258 INSTALL="$ac_cv_path_install"
2259 else
2260 # As a last resort, use the slow shell script. We don't cache a
2261 # path for INSTALL within a source directory, because that will
2262 # break other packages using the cache if that directory is
2263 # removed, or if the path is relative.
2264 INSTALL="$ac_install_sh"
2267 echo "$ac_t""$INSTALL" 1>&6
2269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2270 # It thinks the first close brace ends the variable substitution.
2271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2277 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2278 echo "configure:2279: checking whether ${MAKE-make} sets \${MAKE}" >&5
2279 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2280 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2282 else
2283 cat > conftestmake <<\EOF
2284 all:
2285 @echo 'ac_maketemp="${MAKE}"'
2287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2288 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2289 if test -n "$ac_maketemp"; then
2290 eval ac_cv_prog_make_${ac_make}_set=yes
2291 else
2292 eval ac_cv_prog_make_${ac_make}_set=no
2294 rm -f conftestmake
2296 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2297 echo "$ac_t""yes" 1>&6
2298 SET_MAKE=
2299 else
2300 echo "$ac_t""no" 1>&6
2301 SET_MAKE="MAKE=${MAKE-make}"
2305 # Sanity check for the cross-compilation case:
2306 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2307 echo "configure:2308: checking how to run the C preprocessor" >&5
2308 # On Suns, sometimes $CPP names a directory.
2309 if test -n "$CPP" && test -d "$CPP"; then
2310 CPP=
2312 if test -z "$CPP"; then
2313 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2315 else
2316 # This must be in double quotes, not single quotes, because CPP may get
2317 # substituted into the Makefile and "${CC-cc}" will confuse make.
2318 CPP="${CC-cc} -E"
2319 # On the NeXT, cc -E runs the code through the compiler's parser,
2320 # not just through cpp.
2321 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 #include <assert.h>
2325 Syntax Error
2327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2328 { (eval echo configure:2329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2330 if test -z "$ac_err"; then
2332 else
2333 echo "$ac_err" >&5
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2336 rm -rf conftest*
2337 CPP="${CC-cc} -E -traditional-cpp"
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 #include <assert.h>
2342 Syntax Error
2344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2345 { (eval echo configure:2346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2347 if test -z "$ac_err"; then
2349 else
2350 echo "$ac_err" >&5
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 rm -rf conftest*
2354 CPP="${CC-cc} -nologo -E"
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358 #include <assert.h>
2359 Syntax Error
2361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2362 { (eval echo configure:2363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2364 if test -z "$ac_err"; then
2366 else
2367 echo "$ac_err" >&5
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 rm -rf conftest*
2371 CPP=/lib/cpp
2373 rm -f conftest*
2375 rm -f conftest*
2377 rm -f conftest*
2378 ac_cv_prog_CPP="$CPP"
2380 CPP="$ac_cv_prog_CPP"
2381 else
2382 ac_cv_prog_CPP="$CPP"
2384 echo "$ac_t""$CPP" 1>&6
2386 ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
2387 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
2388 echo "configure:2389: checking for stdio.h" >&5
2389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2391 else
2392 cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 #include <stdio.h>
2397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2398 { (eval echo configure:2399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2400 if test -z "$ac_err"; then
2401 rm -rf conftest*
2402 eval "ac_cv_header_$ac_safe=yes"
2403 else
2404 echo "$ac_err" >&5
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2407 rm -rf conftest*
2408 eval "ac_cv_header_$ac_safe=no"
2410 rm -f conftest*
2412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2415 else
2416 echo "$ac_t""no" 1>&6
2417 { echo "configure: error: Can't find stdio.h.
2418 You must have a usable C system for the target already installed, at least
2419 including headers and, preferably, the library, before you can configure
2420 the G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c',
2421 then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; }
2425 echo $ac_n "checking for built-in g77 integer types""... $ac_c" 1>&6
2426 echo "configure:2427: checking for built-in g77 integer types" >&5
2427 if eval "test \"`echo '$''{'libf2c_cv_has_g77_builtin_types'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2434 int main() {
2435 __g77_integer g77i;
2436 __g77_uinteger g77ui;
2437 __g77_longint g77l;
2438 __g77_ulongint g77ul;
2439 ; return 0; }
2441 if { (eval echo configure:2442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2442 rm -rf conftest*
2443 libf2c_cv_has_g77_builtin_types=yes
2444 else
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2447 rm -rf conftest*
2448 libf2c_cv_has_g77_builtin_types=no
2450 rm -f conftest*
2453 echo "$ac_t""$libf2c_cv_has_g77_builtin_types" 1>&6
2454 if test $libf2c_cv_has_g77_builtin_types = no; then
2455 { echo "configure: error: gcc doesn't define all of the built in types __g77_integer,
2456 __g77_uinteger, __g77_longint, and __g77_ulongint. You may not be using
2457 a new enough version of gcc, or your target may not have type sizes which
2458 accommodate those types." 1>&2; exit 1; }
2461 # avoid confusion in case the `makefile's from the f2c distribution have
2462 # got put here
2463 test -f libF77/makefile && mv libF77/makefile libF77/makefile.ori
2464 test -f libI77/makefile && mv libI77/makefile libI77/makefile.ori
2465 test -f libU77/makefile && mv libU77/makefile libU77/makefile.ori
2467 subdirs="libU77 libI77 libF77"
2469 # Do Makefile first since g2c.h depends on it and shouldn't get an
2470 # earlier timestamp. Of course, it does when the multilib gunk below
2471 # edits Makefile, sigh; see additional touch below.
2472 trap '' 1 2 15
2473 cat > confcache <<\EOF
2474 # This file is a shell script that caches the results of configure
2475 # tests run on this system so they can be shared between configure
2476 # scripts and configure runs. It is not useful on other systems.
2477 # If it contains results you don't want to keep, you may remove or edit it.
2479 # By default, configure uses ./config.cache as the cache file,
2480 # creating it if it does not exist already. You can give configure
2481 # the --cache-file=FILE option to use a different cache file; that is
2482 # what configure does when it calls configure scripts in
2483 # subdirectories, so they share the cache.
2484 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2485 # config.status only pays attention to the cache file if you give it the
2486 # --recheck option to rerun configure.
2489 # The following way of writing the cache mishandles newlines in values,
2490 # but we know of no workaround that is simple, portable, and efficient.
2491 # So, don't put newlines in cache variables' values.
2492 # Ultrix sh set writes to stderr and can't be redirected directly,
2493 # and sets the high bit in the cache file unless we assign to the vars.
2494 (set) 2>&1 |
2495 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2496 *ac_space=\ *)
2497 # `set' does not quote correctly, so add quotes (double-quote substitution
2498 # turns \\\\ into \\, and sed turns \\ into \).
2499 sed -n \
2500 -e "s/'/'\\\\''/g" \
2501 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2504 # `set' quotes correctly as required by POSIX, so do not add quotes.
2505 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2507 esac >> confcache
2508 if cmp -s $cache_file confcache; then
2510 else
2511 if test -w $cache_file; then
2512 echo "updating cache $cache_file"
2513 cat confcache > $cache_file
2514 else
2515 echo "not updating unwritable cache $cache_file"
2518 rm -f confcache
2520 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2523 # Let make expand exec_prefix.
2524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2526 # Any assignment to VPATH causes Sun make to only execute
2527 # the first set of double-colon rules, so remove it if not needed.
2528 # If there is a colon in the path, we need to keep it.
2529 if test "x$srcdir" = x.; then
2530 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2533 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2535 # Transform confdefs.h into DEFS.
2536 # Protect against shell expansion while executing Makefile rules.
2537 # Protect against Makefile macro expansion.
2538 cat > conftest.defs <<\EOF
2539 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2540 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2541 s%\[%\\&%g
2542 s%\]%\\&%g
2543 s%\$%$$%g
2545 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2546 rm -f conftest.defs
2549 # Without the "./", some shells look in PATH for config.status.
2550 : ${CONFIG_STATUS=./config.status}
2552 echo creating $CONFIG_STATUS
2553 rm -f $CONFIG_STATUS
2554 cat > $CONFIG_STATUS <<EOF
2555 #! /bin/sh
2556 # Generated automatically by configure.
2557 # Run this file to recreate the current configuration.
2558 # This directory was configured as follows,
2559 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2561 # $0 $ac_configure_args
2563 # Compiler output produced by configure, useful for debugging
2564 # configure, is in ./config.log if it exists.
2566 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2567 for ac_option
2569 case "\$ac_option" in
2570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2571 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2572 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2573 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2574 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2575 exit 0 ;;
2576 -help | --help | --hel | --he | --h)
2577 echo "\$ac_cs_usage"; exit 0 ;;
2578 *) echo "\$ac_cs_usage"; exit 1 ;;
2579 esac
2580 done
2582 ac_given_srcdir=$srcdir
2583 ac_given_INSTALL="$INSTALL"
2585 trap 'rm -fr `echo "Makefile g2c.h:g2c.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2587 cat >> $CONFIG_STATUS <<EOF
2589 # Protect against being on the right side of a sed subst in config.status.
2590 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2591 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2592 $ac_vpsub
2593 $extrasub
2594 s%@SHELL@%$SHELL%g
2595 s%@CFLAGS@%$CFLAGS%g
2596 s%@CPPFLAGS@%$CPPFLAGS%g
2597 s%@CXXFLAGS@%$CXXFLAGS%g
2598 s%@FFLAGS@%$FFLAGS%g
2599 s%@DEFS@%$DEFS%g
2600 s%@LDFLAGS@%$LDFLAGS%g
2601 s%@LIBS@%$LIBS%g
2602 s%@exec_prefix@%$exec_prefix%g
2603 s%@prefix@%$prefix%g
2604 s%@program_transform_name@%$program_transform_name%g
2605 s%@bindir@%$bindir%g
2606 s%@sbindir@%$sbindir%g
2607 s%@libexecdir@%$libexecdir%g
2608 s%@datadir@%$datadir%g
2609 s%@sysconfdir@%$sysconfdir%g
2610 s%@sharedstatedir@%$sharedstatedir%g
2611 s%@localstatedir@%$localstatedir%g
2612 s%@libdir@%$libdir%g
2613 s%@includedir@%$includedir%g
2614 s%@oldincludedir@%$oldincludedir%g
2615 s%@infodir@%$infodir%g
2616 s%@mandir@%$mandir%g
2617 s%@toplevel_srcdir@%$toplevel_srcdir%g
2618 s%@host@%$host%g
2619 s%@host_alias@%$host_alias%g
2620 s%@host_cpu@%$host_cpu%g
2621 s%@host_vendor@%$host_vendor%g
2622 s%@host_os@%$host_os%g
2623 s%@target@%$target%g
2624 s%@target_alias@%$target_alias%g
2625 s%@target_cpu@%$target_cpu%g
2626 s%@target_vendor@%$target_vendor%g
2627 s%@target_os@%$target_os%g
2628 s%@build@%$build%g
2629 s%@build_alias@%$build_alias%g
2630 s%@build_cpu@%$build_cpu%g
2631 s%@build_vendor@%$build_vendor%g
2632 s%@build_os@%$build_os%g
2633 s%@glibcpp_builddir@%$glibcpp_builddir%g
2634 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
2635 s%@LN_S@%$LN_S%g
2636 s%@CC@%$CC%g
2637 s%@AS@%$AS%g
2638 s%@AR@%$AR%g
2639 s%@RANLIB@%$RANLIB%g
2640 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2641 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2642 s%@INSTALL_DATA@%$INSTALL_DATA%g
2643 s%@EXEEXT@%$EXEEXT%g
2644 s%@gcc_version@%$gcc_version%g
2645 s%@gcc_version_trigger@%$gcc_version_trigger%g
2646 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
2647 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
2648 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
2649 s%@OBJEXT@%$OBJEXT%g
2650 s%@STRIP@%$STRIP%g
2651 s%@LIBTOOL@%$LIBTOOL%g
2652 s%@SET_MAKE@%$SET_MAKE%g
2653 s%@CPP@%$CPP%g
2654 s%@subdirs@%$subdirs%g
2656 CEOF
2659 cat >> $CONFIG_STATUS <<\EOF
2661 # Split the substitutions into bite-sized pieces for seds with
2662 # small command number limits, like on Digital OSF/1 and HP-UX.
2663 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2664 ac_file=1 # Number of current file.
2665 ac_beg=1 # First line for current file.
2666 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2667 ac_more_lines=:
2668 ac_sed_cmds=""
2669 while $ac_more_lines; do
2670 if test $ac_beg -gt 1; then
2671 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2672 else
2673 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2675 if test ! -s conftest.s$ac_file; then
2676 ac_more_lines=false
2677 rm -f conftest.s$ac_file
2678 else
2679 if test -z "$ac_sed_cmds"; then
2680 ac_sed_cmds="sed -f conftest.s$ac_file"
2681 else
2682 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2684 ac_file=`expr $ac_file + 1`
2685 ac_beg=$ac_end
2686 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2688 done
2689 if test -z "$ac_sed_cmds"; then
2690 ac_sed_cmds=cat
2694 cat >> $CONFIG_STATUS <<EOF
2696 CONFIG_FILES=\${CONFIG_FILES-"Makefile g2c.h:g2c.hin"}
2698 cat >> $CONFIG_STATUS <<\EOF
2699 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2700 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2701 case "$ac_file" in
2702 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2703 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2704 *) ac_file_in="${ac_file}.in" ;;
2705 esac
2707 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2709 # Remove last slash and all that follows it. Not all systems have dirname.
2710 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2711 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2712 # The file is in a subdirectory.
2713 test ! -d "$ac_dir" && mkdir "$ac_dir"
2714 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2715 # A "../" for each directory in $ac_dir_suffix.
2716 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2717 else
2718 ac_dir_suffix= ac_dots=
2721 case "$ac_given_srcdir" in
2722 .) srcdir=.
2723 if test -z "$ac_dots"; then top_srcdir=.
2724 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2725 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2726 *) # Relative path.
2727 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2728 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2729 esac
2731 case "$ac_given_INSTALL" in
2732 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2733 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2734 esac
2736 echo creating "$ac_file"
2737 rm -f "$ac_file"
2738 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2739 case "$ac_file" in
2740 *Makefile*) ac_comsub="1i\\
2741 # $configure_input" ;;
2742 *) ac_comsub= ;;
2743 esac
2745 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2746 sed -e "$ac_comsub
2747 s%@configure_input@%$configure_input%g
2748 s%@srcdir@%$srcdir%g
2749 s%@top_srcdir@%$top_srcdir%g
2750 s%@INSTALL@%$INSTALL%g
2751 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2752 fi; done
2753 rm -f conftest.s*
2756 cat >> $CONFIG_STATUS <<EOF
2757 srcdir=${srcdir}
2758 host=${host}
2759 target=${target}
2760 with_target_subdir=${with_target_subdir}
2761 with_multisubdir=${with_multisubdir}
2762 ac_configure_args="--enable-multilib ${ac_configure_args}"
2763 toplevel_srcdir=${toplevel_srcdir}
2764 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2767 cat >> $CONFIG_STATUS <<\EOF
2768 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2769 if test -n "$CONFIG_FILES"; then
2770 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
2771 if test -n "${with_target_subdir}"; then
2772 # FIXME: We shouldn't need to set ac_file
2773 ac_file=Makefile
2774 . ${toplevel_srcdir}/config-ml.in
2775 touch g2c.h # to keep it more recent than Makefile
2778 exit 0
2780 chmod +x $CONFIG_STATUS
2781 rm -fr confdefs* $ac_clean_files
2782 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2784 if test "$no_recursion" != yes; then
2786 # Remove --cache-file and --srcdir arguments so they do not pile up.
2787 ac_sub_configure_args=
2788 ac_prev=
2789 for ac_arg in $ac_configure_args; do
2790 if test -n "$ac_prev"; then
2791 ac_prev=
2792 continue
2794 case "$ac_arg" in
2795 -cache-file | --cache-file | --cache-fil | --cache-fi \
2796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2797 ac_prev=cache_file ;;
2798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2801 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2802 ac_prev=srcdir ;;
2803 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2805 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2806 esac
2807 done
2809 for ac_config_dir in libU77 libI77 libF77; do
2811 # Do not complain, so a configure script can configure whichever
2812 # parts of a large source tree are present.
2813 if test ! -d $srcdir/$ac_config_dir; then
2814 continue
2817 echo configuring in $ac_config_dir
2819 case "$srcdir" in
2820 .) ;;
2822 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2823 else
2824 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2827 esac
2829 ac_popdir=`pwd`
2830 cd $ac_config_dir
2832 # A "../" for each directory in /$ac_config_dir.
2833 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2835 case "$srcdir" in
2836 .) # No --srcdir option. We are building in place.
2837 ac_sub_srcdir=$srcdir ;;
2838 /*) # Absolute path.
2839 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2840 *) # Relative path.
2841 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2842 esac
2844 # Check for guested configure; otherwise get Cygnus style configure.
2845 if test -f $ac_sub_srcdir/configure; then
2846 ac_sub_configure=$ac_sub_srcdir/configure
2847 elif test -f $ac_sub_srcdir/configure.in; then
2848 ac_sub_configure=$ac_configure
2849 else
2850 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2851 ac_sub_configure=
2854 # The recursion is here.
2855 if test -n "$ac_sub_configure"; then
2857 # Make the cache file name correct relative to the subdirectory.
2858 case "$cache_file" in
2859 /*) ac_sub_cache_file=$cache_file ;;
2860 *) # Relative path.
2861 ac_sub_cache_file="$ac_dots$cache_file" ;;
2862 esac
2863 case "$ac_given_INSTALL" in
2864 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2865 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2866 esac
2868 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2869 # The eval makes quoting arguments work.
2870 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2871 then :
2872 else
2873 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2877 cd $ac_popdir
2878 done