source: trunk/src/gcc/libf2c/configure@ 1182

Last change on this file since 1182 was 1124, checked in by bird, 22 years ago

Regenerated with new autoconf (forced to use stable).

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