OSDN Git Service

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