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