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

Last change on this file since 603 was 80, checked in by bird, 23 years ago

Regenerated configure on OS/2.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 92.3 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21ac_help="$ac_help
22 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
23ac_help="$ac_help
24 --enable-shared[=PKGS] build shared libraries [default=yes]"
25ac_help="$ac_help
26 --enable-static[=PKGS] build static libraries [default=yes]"
27ac_help="$ac_help
28 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
29ac_help="$ac_help
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
31ac_help="$ac_help
32 --disable-libtool-lock avoid locking (might break parallel builds)"
33ac_help="$ac_help
34 --with-pic try to use only PIC/non-PIC objects [default=use both]"
35
36# Initialize some variables set by options.
37# The variables have the same names as the options, with
38# dashes changed to underlines.
39build=NONE
40cache_file=./config.cache
41exec_prefix=NONE
42host=NONE
43no_create=
44nonopt=NONE
45no_recursion=
46prefix=NONE
47program_prefix=NONE
48program_suffix=NONE
49program_transform_name=s,x,x,
50silent=
51site=
52srcdir=
53target=NONE
54verbose=
55x_includes=NONE
56x_libraries=NONE
57bindir='${exec_prefix}/bin'
58sbindir='${exec_prefix}/sbin'
59libexecdir='${exec_prefix}/libexec'
60datadir='${prefix}/share'
61sysconfdir='${prefix}/etc'
62sharedstatedir='${prefix}/com'
63localstatedir='${prefix}/var'
64libdir='${exec_prefix}/lib'
65includedir='${prefix}/include'
66oldincludedir='/usr/include'
67infodir='${prefix}/info'
68mandir='${prefix}/man'
69
70# Initialize some other variables.
71subdirs=
72MFLAGS= MAKEFLAGS=
73SHELL=${CONFIG_SHELL-/bin/sh}
74# Maximum number of lines to put in a shell here document.
75ac_max_here_lines=12
76
77ac_prev=
78for ac_option
79do
80
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
86 fi
87
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
92
93 # Accept the important Cygnus configure options, so we can diagnose typos.
94
95 case "$ac_option" in
96
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 ac_prev=bindir ;;
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
101
102 -build | --build | --buil | --bui | --bu)
103 ac_prev=build ;;
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
106
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
113
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 ac_prev=datadir ;;
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 | --da=*)
118 datadir="$ac_optarg" ;;
119
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 fi
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
128
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 fi
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 case "$ac_option" in
137 *=*) ;;
138 *) ac_optarg=yes ;;
139 esac
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
141
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
150
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
153 with_gas=yes ;;
154
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
158 cat << EOF
159Usage: configure [options] [host]
160Options: [defaults in brackets after descriptions]
161Configuration:
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
169 [$ac_default_prefix]
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 [same as prefix]
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
176 [PREFIX/share]
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 [PREFIX/com]
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
191EOF
192 cat << EOF
193Host type:
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
204EOF
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
207 fi
208 exit 0 ;;
209
210 -host | --host | --hos | --ho)
211 ac_prev=host ;;
212 -host=* | --host=* | --hos=* | --ho=*)
213 host="$ac_optarg" ;;
214
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
221
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 ac_prev=infodir ;;
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
226
227 -libdir | --libdir | --libdi | --libd)
228 ac_prev=libdir ;;
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
231
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
238
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
247
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 ac_prev=mandir ;;
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
252
253 -nfp | --nfp | --nf)
254 # Obsolete; use --without-fp.
255 with_fp=no ;;
256
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 | --no-cr | --no-c)
259 no_create=yes ;;
260
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 no_recursion=yes ;;
264
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
273
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 ac_prev=prefix ;;
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
278
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
285
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
292
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
309
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
312 silent=yes ;;
313
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 ac_prev=sbindir ;;
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 | --sbi=* | --sb=*)
318 sbindir="$ac_optarg" ;;
319
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
323 | --sha | --sh)
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 | --sha=* | --sh=*)
329 sharedstatedir="$ac_optarg" ;;
330
331 -site | --site | --sit)
332 ac_prev=site ;;
333 -site=* | --site=* | --sit=*)
334 site="$ac_optarg" ;;
335
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 ac_prev=srcdir ;;
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
340
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
347
348 -target | --target | --targe | --targ | --tar | --ta | --t)
349 ac_prev=target ;;
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
352
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 verbose=yes ;;
355
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
358 exit 0 ;;
359
360 -with-* | --with-*)
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 fi
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 case "$ac_option" in
368 *=*) ;;
369 *) ac_optarg=yes ;;
370 esac
371 eval "with_${ac_package}='$ac_optarg'" ;;
372
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 fi
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
381
382 --x)
383 # Obsolete; use --with-x.
384 with_x=yes ;;
385
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
392
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
399
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 ;;
402
403 *)
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 fi
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 fi
410 nonopt="$ac_option"
411 ;;
412
413 esac
414done
415
416if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418fi
419
420trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
422# File descriptor usage:
423# 0 standard input
424# 1 file creation
425# 2 errors and warnings
426# 3 some systems may open it to /dev/tty
427# 4 used on the Kubota Titan
428# 6 checking for... messages and results
429# 5 compiler messages saved in config.log
430if test "$silent" = yes; then
431 exec 6>/dev/null
432else
433 exec 6>&1
434fi
435exec 5>./config.log
436
437echo "\
438This file contains any messages produced by compilers while
439running configure, to aid debugging if configure makes a mistake.
440" 1>&5
441
442# Strip out --no-create and --no-recursion so they do not pile up.
443# Also quote any args containing shell metacharacters.
444ac_configure_args=
445for ac_arg
446do
447 case "$ac_arg" in
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 esac
456done
457
458# NLS nuisances.
459# Only set these to C if already set. These must not be set unconditionally
460# because not all systems understand e.g. LANG=C (notably SCO).
461# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462# Non-C LC_CTYPE values break the ctype check.
463if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467
468# confdefs.h avoids OS command line length limits that DEFS can exceed.
469rm -rf conftest* confdefs.h
470# AIX cpp loses on an empty file, so make sure it contains at least a newline.
471echo > confdefs.h
472
473# A filename unique to this package, relative to the directory that
474# configure is in, which we can look for to find out if srcdir is correct.
475ac_unique_file=libF77/Version.c
476
477# Find the source files, if location was not specified.
478if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
481 ac_prog=$0
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 srcdir=$ac_confdir
485 if test ! -r $srcdir/$ac_unique_file; then
486 srcdir=..
487 fi
488else
489 ac_srcdir_defaulted=no
490fi
491if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 else
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 fi
497fi
498srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499
500# Prefer explicitly selected file to automatically selected ones.
501if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 else
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 fi
507fi
508for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
511 . "$ac_site_file"
512 fi
513done
514
515if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 . $cache_file
518else
519 echo "creating cache $cache_file"
520 > $cache_file
521fi
522
523ac_ext=c
524# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525ac_cpp='$CPP $CPPFLAGS'
526ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528cross_compiling=$ac_cv_prog_cc_cross
529
530ac_exeext=
531ac_objext=o
532if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='
536' ac_t=' '
537 else
538 ac_n=-n ac_c= ac_t=
539 fi
540else
541 ac_n= ac_c='\c' ac_t=
542fi
543
544echo $ac_n "checking for path separator""... $ac_c" 1>&6
545echo "configure:546: checking for path separator" >&5
546# Filter path to get backslahes into forwardslashes
547case "`uname -s 2> /dev/null`" in
548OS/2)
549 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
550 PATH_IFS=';'
551 ;;
552*)
553 PATH_IFS=':'
554 ;;
555esac
556echo "$ac_t""${PATH_IFS}" 1>&6
557
558echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
559echo "configure:560: checking for Cygwin environment" >&5
560if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
561 echo $ac_n "(cached) $ac_c" 1>&6
562else
563 cat > conftest.$ac_ext <<EOF
564#line 565 "configure"
565#include "confdefs.h"
566
567int main() {
568
569#ifndef __CYGWIN__
570#define __CYGWIN__ __CYGWIN32__
571#endif
572return __CYGWIN__;
573; return 0; }
574EOF
575if { (eval echo configure:576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
576 rm -rf conftest*
577 ac_cv_cygwin=yes
578else
579 echo "configure: failed program was:" >&5
580 cat conftest.$ac_ext >&5
581 rm -rf conftest*
582 ac_cv_cygwin=no
583fi
584rm -f conftest*
585rm -f conftest*
586fi
587
588echo "$ac_t""$ac_cv_cygwin" 1>&6
589CYGWIN=
590test "$ac_cv_cygwin" = yes && CYGWIN=yes
591echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
592echo "configure:593: checking for mingw32 environment" >&5
593if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
595else
596 cat > conftest.$ac_ext <<EOF
597#line 598 "configure"
598#include "confdefs.h"
599
600int main() {
601return __MINGW32__;
602; return 0; }
603EOF
604if { (eval echo configure:605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
605 rm -rf conftest*
606 ac_cv_mingw32=yes
607else
608 echo "configure: failed program was:" >&5
609 cat conftest.$ac_ext >&5
610 rm -rf conftest*
611 ac_cv_mingw32=no
612fi
613rm -f conftest*
614rm -f conftest*
615fi
616
617echo "$ac_t""$ac_cv_mingw32" 1>&6
618MINGW32=
619test "$ac_cv_mingw32" = yes && MINGW32=yes
620echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
621echo "configure:622: checking for EMX/OS2 environment" >&5
622if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
624else
625 : ${CC=gcc.exe}
626cat > conftest.$ac_ext <<EOF
627#line 628 "configure"
628#include "confdefs.h"
629
630int main() {
631return __EMX__;
632; return 0; }
633EOF
634if { (eval echo configure:635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
635 rm -rf conftest*
636 ac_cv_emxos2=yes
637else
638 echo "configure: failed program was:" >&5
639 cat conftest.$ac_ext >&5
640 rm -rf conftest*
641 ac_cv_emxos2=no
642fi
643rm -f conftest*
644rm -f conftest*
645fi
646
647echo "$ac_t""$ac_cv_emxos2" 1>&6
648if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
649 echo $ac_n "(cached) $ac_c" 1>&6
650else
651 if test "$ac_cv_emxos2" = yes ; then
652 ac_cv_libpre=
653else
654 ac_cv_libpre=lib
655fi
656
657fi
658
659EMXOS2=
660test "$ac_cv_emxos2" = yes && EMXOS2=yes
661
662
663
664echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
665echo "configure:666: checking for executable suffix" >&5
666if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
668else
669 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
670 ac_cv_exeext=.exe
671else
672 rm -f conftest*
673 echo 'int main () { return 0; }' > conftest.$ac_ext
674 ac_cv_exeext=
675 if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
676 for file in conftest.*; do
677 case $file in
678 *.c | *.o | *.obj) ;;
679 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
680 esac
681 done
682 else
683 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
684 fi
685 rm -f conftest*
686 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
687fi
688fi
689
690EXEEXT=""
691test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
692echo "$ac_t""${ac_cv_exeext}" 1>&6
693ac_exeext=$EXEEXT
694
695
696
697# This works around the fact that libtool configuration may change LD
698# for this particular configuration, but some shells, instead of
699# keeping the changes in LD private, export them just because LD is
700# exported.
701ORIGINAL_LD_FOR_MULTILIBS=$LD
702
703
704 # Check whether --enable-multilib or --disable-multilib was given.
705if test "${enable_multilib+set}" = set; then
706 enableval="$enable_multilib"
707 case "${enableval}" in
708 yes) multilib=yes ;;
709 no) multilib=no ;;
710 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
711 esac
712else
713 multilib=yes
714fi
715
716# When building with srcdir == objdir, links to the source files will
717# be created in directories within the target_subdir. We have to
718# adjust toplevel_srcdir accordingly, so that configure finds
719# install-sh and other auxiliary files that live in the top-level
720# source directory.
721if test "${srcdir}" = "."; then
722 if test -z "${with_target_subdir}"; then
723 toprel=".."
724 else
725 if test "${with_target_subdir}" != "."; then
726 toprel="${with_multisrctop}../.."
727 else
728 toprel="${with_multisrctop}.."
729 fi
730 fi
731else
732 toprel=".."
733fi
734ac_aux_dir=
735for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
736 if test -f $ac_dir/install-sh; then
737 ac_aux_dir=$ac_dir
738 ac_install_sh="$ac_aux_dir/install-sh -c"
739 break
740 elif test -f $ac_dir/install.sh; then
741 ac_aux_dir=$ac_dir
742 ac_install_sh="$ac_aux_dir/install.sh -c"
743 break
744 fi
745done
746if test -z "$ac_aux_dir"; then
747 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
748fi
749ac_config_guess=$ac_aux_dir/config.guess
750ac_config_sub=$ac_aux_dir/config.sub
751ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
752
753toplevel_srcdir=\${top_srcdir}/$toprel
754
755
756
757
758# Do some error checking and defaulting for the host and target type.
759# The inputs are:
760# configure --host=HOST --target=TARGET --build=BUILD NONOPT
761#
762# The rules are:
763# 1. You are not allowed to specify --host, --target, and nonopt at the
764# same time.
765# 2. Host defaults to nonopt.
766# 3. If nonopt is not specified, then host defaults to the current host,
767# as determined by config.guess.
768# 4. Target and build default to nonopt.
769# 5. If nonopt is not specified, then target and build default to host.
770
771# The aliases save the names the user supplied, while $host etc.
772# will get canonicalized.
773case $host---$target---$nonopt in
774NONE---*---* | *---NONE---* | *---*---NONE) ;;
775*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
776esac
777
778
779# Make sure we can run config.sub.
780if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
781else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
782fi
783
784echo $ac_n "checking host system type""... $ac_c" 1>&6
785echo "configure:786: checking host system type" >&5
786
787host_alias=$host
788case "$host_alias" in
789NONE)
790 case $nonopt in
791 NONE)
792 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
793 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
794 fi ;;
795 *) host_alias=$nonopt ;;
796 esac ;;
797esac
798
799host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
800host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
801host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
802host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
803echo "$ac_t""$host" 1>&6
804
805echo $ac_n "checking target system type""... $ac_c" 1>&6
806echo "configure:807: checking target system type" >&5
807
808target_alias=$target
809case "$target_alias" in
810NONE)
811 case $nonopt in
812 NONE) target_alias=$host_alias ;;
813 *) target_alias=$nonopt ;;
814 esac ;;
815esac
816
817target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
818target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
819target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
820target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
821echo "$ac_t""$target" 1>&6
822
823echo $ac_n "checking build system type""... $ac_c" 1>&6
824echo "configure:825: checking build system type" >&5
825
826build_alias=$build
827case "$build_alias" in
828NONE)
829 case $nonopt in
830 NONE) build_alias=$host_alias ;;
831 *) build_alias=$nonopt ;;
832 esac ;;
833esac
834
835build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
836build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
837build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
838build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
839echo "$ac_t""$build" 1>&6
840
841test "$host_alias" != "$target_alias" &&
842 test "$program_prefix$program_suffix$program_transform_name" = \
843 NONENONEs,x,x, &&
844 program_prefix=${target_alias}-
845
846target_alias=${target_alias-$target}
847
848
849if test $host != $build; then
850 ac_tool_prefix=${host_alias}-
851else
852 ac_tool_prefix=
853fi
854
855
856# Export build and source directories.
857# These need to be absolute paths, yet at the same time need to
858# canonicalize only relative paths, because then amd will not unmount
859# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
860glibcpp_builddir=`pwd`
861case $srcdir in
862\\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
863*) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
864esac
865
866
867
868
869
870# Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
871# be 'cp -p' if linking isn't available.
872#ac_cv_prog_LN_S='cp -p'
873echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
874echo "configure:875: checking whether ln -s works" >&5
875if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877else
878 rm -f conftestdata
879if ln -s X conftestdata 2>/dev/null
880then
881 rm -f conftestdata
882 ac_cv_prog_LN_S="ln -s"
883else
884 echo A > conftestdata;
885 if ln conftestdata conftestdata2 2>/dev/null; then
886 ac_cv_prog_LN_S=ln
887 else
888 ac_cv_prog_LN_S=cp
889 fi
890fi
891rm -f conftestdata*
892fi
893LN_S="$ac_cv_prog_LN_S"
894if test "$ac_cv_prog_LN_S" = "ln -s"; then
895 echo "$ac_t""yes" 1>&6
896else
897 echo "$ac_t""no" 1>&6
898fi
899
900
901# We use these options to decide which functions to include.
902# Check whether --with-target-subdir or --without-target-subdir was given.
903if test "${with_target_subdir+set}" = set; then
904 withval="$with_target_subdir"
905 :
906fi
907
908# Check whether --with-cross-host or --without-cross-host was given.
909if test "${with_cross_host+set}" = set; then
910 withval="$with_cross_host"
911 :
912fi
913
914
915 # Never versions of autoconf add an underscore to these functions.
916 # Prevent future problems ...
917
918
919
920
921
922# AC_PROG_CC
923
924# FIXME: We temporarily define our own version of AC_PROG_CC. This is
925# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
926# are probably using a cross compiler, which will not be able to fully
927# link an executable. This should really be fixed in autoconf
928# itself.
929
930
931
932
933# Extract the first word of "gcc", so it can be a program name with args.
934set dummy gcc; ac_word=$2
935echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936echo "configure:937: checking for $ac_word" >&5
937if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
939else
940 if test -n "$CC"; then
941 ac_cv_prog_CC="$CC" # Let the user override the test.
942else
943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
944 ac_dummy="$PATH"
945 for ac_dir in $ac_dummy; do
946 test -z "$ac_dir" && ac_dir=.
947 if test -f $ac_dir/$ac_word -o \
948 -f $ac_dir/$ac_word$ac_exeext ; then
949 ac_cv_prog_CC="gcc"
950 break
951 fi
952 done
953 IFS="$ac_save_ifs"
954fi
955fi
956CC="$ac_cv_prog_CC"
957if test -n "$CC"; then
958 echo "$ac_t""$CC" 1>&6
959else
960 echo "$ac_t""no" 1>&6
961fi
962
963if test -z "$CC"; then
964 # Extract the first word of "cc", so it can be a program name with args.
965set dummy cc; ac_word=$2
966echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
967echo "configure:968: checking for $ac_word" >&5
968if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
970else
971 if test -n "$CC"; then
972 ac_cv_prog_CC="$CC" # Let the user override the test.
973else
974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
975 ac_prog_rejected=no
976 ac_dummy="$PATH"
977 for ac_dir in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir=.
979 if test -f $ac_dir/$ac_word -o \
980 -f $ac_dir/$ac_word$ac_exeext ; then
981 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
982 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
983 ac_prog_rejected=yes
984 continue
985 fi
986 ac_cv_prog_CC="cc"
987 break
988 fi
989 done
990 IFS="$ac_save_ifs"
991if test $ac_prog_rejected = yes; then
992 # We found a bogon in the path, so make sure we never use it.
993 set dummy $ac_cv_prog_CC
994 shift
995 if test $# -gt 0; then
996 # We chose a different compiler from the bogus one.
997 # However, it has the same basename, so the bogon will be chosen
998 # first if we set CC to just the basename; use the full file name.
999 shift
1000 set dummy "$ac_dir/$ac_word" "$@"
1001 shift
1002 ac_cv_prog_CC="$@"
1003 fi
1004fi
1005fi
1006fi
1007CC="$ac_cv_prog_CC"
1008if test -n "$CC"; then
1009 echo "$ac_t""$CC" 1>&6
1010else
1011 echo "$ac_t""no" 1>&6
1012fi
1013
1014 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1015fi
1016
1017echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018echo "configure:1019: checking whether we are using GNU C" >&5
1019if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021else
1022 cat > conftest.c <<EOF
1023#ifdef __GNUC__
1024 yes;
1025#endif
1026EOF
1027if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028 ac_cv_prog_gcc=yes
1029else
1030 ac_cv_prog_gcc=no
1031fi
1032fi
1033
1034echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1035
1036if test $ac_cv_prog_gcc = yes; then
1037 GCC=yes
1038 ac_test_CFLAGS="${CFLAGS+set}"
1039 ac_save_CFLAGS="$CFLAGS"
1040 CFLAGS=
1041 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045else
1046 echo 'void f(){}' > conftest.c
1047if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048 ac_cv_prog_cc_g=yes
1049else
1050 ac_cv_prog_cc_g=no
1051fi
1052rm -f conftest*
1053
1054fi
1055
1056echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057 if test "$ac_test_CFLAGS" = set; then
1058 CFLAGS="$ac_save_CFLAGS"
1059 elif test $ac_cv_prog_cc_g = yes; then
1060 CFLAGS="-g -O2"
1061 else
1062 CFLAGS="-O2"
1063 fi
1064else
1065 GCC=
1066 test "${CFLAGS+set}" = set || CFLAGS="-g"
1067fi
1068
1069
1070 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1071set dummy ${ac_tool_prefix}as; ac_word=$2
1072echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1073echo "configure:1074: checking for $ac_word" >&5
1074if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1076else
1077 if test -n "$AS"; then
1078 ac_cv_prog_AS="$AS" # Let the user override the test.
1079else
1080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1081 ac_dummy="$PATH"
1082 for ac_dir in $ac_dummy; do
1083 test -z "$ac_dir" && ac_dir=.
1084 if test -f $ac_dir/$ac_word -o \
1085 -f $ac_dir/$ac_word$ac_exeext ; then
1086 ac_cv_prog_AS="${ac_tool_prefix}as"
1087 break
1088 fi
1089 done
1090 IFS="$ac_save_ifs"
1091 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1092fi
1093fi
1094AS="$ac_cv_prog_AS"
1095if test -n "$AS"; then
1096 echo "$ac_t""$AS" 1>&6
1097else
1098 echo "$ac_t""no" 1>&6
1099fi
1100
1101
1102
1103 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1104set dummy ${ac_tool_prefix}ar; ac_word=$2
1105echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106echo "configure:1107: checking for $ac_word" >&5
1107if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1109else
1110 if test -n "$AR"; then
1111 ac_cv_prog_AR="$AR" # Let the user override the test.
1112else
1113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1114 ac_dummy="$PATH"
1115 for ac_dir in $ac_dummy; do
1116 test -z "$ac_dir" && ac_dir=.
1117 if test -f $ac_dir/$ac_word -o \
1118 -f $ac_dir/$ac_word$ac_exeext ; then
1119 ac_cv_prog_AR="${ac_tool_prefix}ar"
1120 break
1121 fi
1122 done
1123 IFS="$ac_save_ifs"
1124 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1125fi
1126fi
1127AR="$ac_cv_prog_AR"
1128if test -n "$AR"; then
1129 echo "$ac_t""$AR" 1>&6
1130else
1131 echo "$ac_t""no" 1>&6
1132fi
1133
1134
1135
1136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1137set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1138echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1139echo "configure:1140: checking for $ac_word" >&5
1140if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1142else
1143 if test -n "$RANLIB"; then
1144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1145else
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1147 ac_dummy="$PATH"
1148 for ac_dir in $ac_dummy; do
1149 test -z "$ac_dir" && ac_dir=.
1150 if test -f $ac_dir/$ac_word -o \
1151 -f $ac_dir/$ac_word$ac_exeext ; then
1152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1153 break
1154 fi
1155 done
1156 IFS="$ac_save_ifs"
1157fi
1158fi
1159RANLIB="$ac_cv_prog_RANLIB"
1160if test -n "$RANLIB"; then
1161 echo "$ac_t""$RANLIB" 1>&6
1162else
1163 echo "$ac_t""no" 1>&6
1164fi
1165
1166
1167if test -z "$ac_cv_prog_RANLIB"; then
1168if test -n "$ac_tool_prefix"; then
1169 # Extract the first word of "ranlib", so it can be a program name with args.
1170set dummy ranlib; ac_word=$2
1171echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172echo "configure:1173: checking for $ac_word" >&5
1173if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1175else
1176 if test -n "$RANLIB"; then
1177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1178else
1179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1180 ac_dummy="$PATH"
1181 for ac_dir in $ac_dummy; do
1182 test -z "$ac_dir" && ac_dir=.
1183 if test -f $ac_dir/$ac_word -o \
1184 -f $ac_dir/$ac_word$ac_exeext ; then
1185 ac_cv_prog_RANLIB="ranlib"
1186 break
1187 fi
1188 done
1189 IFS="$ac_save_ifs"
1190 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1191fi
1192fi
1193RANLIB="$ac_cv_prog_RANLIB"
1194if test -n "$RANLIB"; then
1195 echo "$ac_t""$RANLIB" 1>&6
1196else
1197 echo "$ac_t""no" 1>&6
1198fi
1199
1200else
1201 RANLIB="ranlib-not-found-in-path-error"
1202fi
1203fi
1204
1205 # Find a good install program. We prefer a C program (faster),
1206# so one script is as good as another. But avoid the broken or
1207# incompatible versions:
1208# SysV /etc/install, /usr/sbin/install
1209# SunOS /usr/etc/install
1210# IRIX /sbin/install
1211# AIX /bin/install
1212# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1213# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1214# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1215# ./install, which can be erroneously created by make from ./install.sh.
1216echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1217echo "configure:1218: checking for a BSD compatible install" >&5
1218if test -z "$INSTALL"; then
1219if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1221else
1222 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1223 for ac_dir in $PATH; do
1224 # Account for people who put trailing slashes in PATH elements.
1225 case "$ac_dir/" in
1226 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1227 # We reject the install program from OS/2 or W3.1
1228 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1229 *)
1230 # OSF1 and SCO ODT 3.0 have their own names for install.
1231 # Don't use installbsd from OSF since it installs stuff as root
1232 # by default.
1233 for ac_prog in ginstall scoinst install; do
1234 if test -f $ac_dir/$ac_prog$ac_exeext; then
1235 if test $ac_prog = install &&
1236 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1237 # AIX install. It has an incompatible calling convention.
1238 :
1239 else
1240 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1241 break 2
1242 fi
1243 fi
1244 done
1245 ;;
1246 esac
1247 done
1248 IFS="$ac_save_IFS"
1249
1250fi
1251 if test "${ac_cv_path_install+set}" = set; then
1252 INSTALL="$ac_cv_path_install"
1253 else
1254 # As a last resort, use the slow shell script. We don't cache a
1255 # path for INSTALL within a source directory, because that will
1256 # break other packages using the cache if that directory is
1257 # removed, or if the path is relative.
1258 INSTALL="$ac_install_sh"
1259 fi
1260fi
1261echo "$ac_t""$INSTALL" 1>&6
1262
1263# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1264# It thinks the first close brace ends the variable substitution.
1265test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1266
1267test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1268
1269test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1270
1271
1272 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1273 # at least currently, we never actually build a program, so we never
1274 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1275 # fails, because we are probably configuring with a cross compiler
1276 # which can't create executables. So we include AC_EXEEXT to keep
1277 # automake happy, but we don't execute it, since we don't care about
1278 # the result.
1279 if false; then
1280 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1281 # to nothing, so nothing would remain between `then' and `fi' if it
1282 # were not for the `:' below.
1283 :
1284
1285
1286
1287echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1288echo "configure:1289: checking for executable suffix" >&5
1289if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1291else
1292 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
1293 ac_cv_exeext=.exe
1294else
1295 rm -f conftest*
1296 echo 'int main () { return 0; }' > conftest.$ac_ext
1297 ac_cv_exeext=
1298 if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1299 for file in conftest.*; do
1300 case $file in
1301 *.c | *.o | *.obj) ;;
1302 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1303 esac
1304 done
1305 else
1306 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1307 fi
1308 rm -f conftest*
1309 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1310fi
1311fi
1312
1313EXEEXT=""
1314test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1315echo "$ac_t""${ac_cv_exeext}" 1>&6
1316ac_exeext=$EXEEXT
1317
1318 fi
1319
1320
1321# Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
1322# exported correctly in GLIBCPP_CONFIGURE.
1323glibcpp_toolexecdir=no
1324glibcpp_toolexeclibdir=no
1325glibcpp_prefixdir=${prefix}
1326
1327echo $ac_n "checking for interface version number""... $ac_c" 1>&6
1328echo "configure:1329: checking for interface version number" >&5
1329libstdcxx_interface=$INTERFACE
1330echo "$ac_t""$libstdcxx_interface" 1>&6
1331
1332# Process the option "--enable-version-specific-runtime-libs"
1333echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
1334echo "configure:1335: checking for --enable-version-specific-runtime-libs" >&5
1335# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1336if test "${enable_version_specific_runtime_libs+set}" = set; then
1337 enableval="$enable_version_specific_runtime_libs"
1338 case "$enableval" in
1339 yes) version_specific_libs=yes ;;
1340 no) version_specific_libs=no ;;
1341 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
1342 esac
1343else
1344 version_specific_libs=no
1345fi
1346# Option set, now we can test it.
1347echo "$ac_t""$version_specific_libs" 1>&6
1348
1349gcc_version_trigger=${toplevel_srcdir}/gcc/version.c
1350gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1351gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1352
1353
1354
1355if test $version_specific_libs = yes; then
1356 # Need the gcc compiler version to know where to install libraries
1357 # and header files if --enable-version-specific-runtime-libs option
1358 # is selected.
1359 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1360 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1361 fi
1362
1363# Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
1364# Install a library built with a cross compiler in tooldir, not libdir.
1365if test x"$glibcpp_toolexecdir" = x"no"; then
1366 if test -n "$with_cross_host" &&
1367 test x"$with_cross_host" != x"no"; then
1368 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
1369 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
1370 else
1371 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1372 glibcpp_toolexeclibdir='$(libdir)'
1373 fi
1374 glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/`$CC -print-multi-os-directory`
1375fi
1376
1377
1378
1379
1380
1381
1382# If the language specific compiler does not exist, but the "gcc" directory
1383# does, we do not build anything. Note, $r is set by the top-level Makefile.
1384# Note that when we look for the compiler, we search both with and without
1385# extension to handle cross and canadian cross builds.
1386compiler_name=f771
1387rm -f skip-this-dir
1388echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
1389echo "configure:1390: checking if compiler $compiler_name has been built" >&5
1390if eval "test \"`echo '$''{'g77_cv_compiler_exists'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1392else
1393 g77_cv_compiler_exists=yes
1394if test -n "$r"; then
1395 if test -d "$r"/gcc; then
1396 if test -f "$r"/gcc/$compiler_name \
1397 || test -f "$r"/gcc/$compiler_name.exe; then
1398 true
1399 else
1400 g77_cv_compiler_exists=no
1401 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
1402 fi
1403 fi
1404fi
1405
1406fi
1407
1408echo "$ac_t""$g77_cv_compiler_exists" 1>&6
1409if test x$g77_cv_compiler_exists = xno
1410then
1411 rm -f Makefile conftest* confdefs* core
1412 exit 0
1413fi
1414
1415
1416# Check whether --enable-shared or --disable-shared was given.
1417if test "${enable_shared+set}" = set; then
1418 enableval="$enable_shared"
1419 p=${PACKAGE-default}
1420case $enableval in
1421yes) enable_shared=yes ;;
1422no) enable_shared=no ;;
1423*)
1424 enable_shared=no
1425 # Look at the argument we got. We use all the common list separators.
1426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1427 for pkg in $enableval; do
1428 if test "X$pkg" = "X$p"; then
1429 enable_shared=yes
1430 fi
1431 done
1432 IFS="$ac_save_ifs"
1433 ;;
1434esac
1435else
1436 enable_shared=yes
1437fi
1438
1439# Check whether --enable-static or --disable-static was given.
1440if test "${enable_static+set}" = set; then
1441 enableval="$enable_static"
1442 p=${PACKAGE-default}
1443case $enableval in
1444yes) enable_static=yes ;;
1445no) enable_static=no ;;
1446*)
1447 enable_static=no
1448 # Look at the argument we got. We use all the common list separators.
1449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1450 for pkg in $enableval; do
1451 if test "X$pkg" = "X$p"; then
1452 enable_static=yes
1453 fi
1454 done
1455 IFS="$ac_save_ifs"
1456 ;;
1457esac
1458else
1459 enable_static=yes
1460fi
1461
1462# Check whether --enable-fast-install or --disable-fast-install was given.
1463if test "${enable_fast_install+set}" = set; then
1464 enableval="$enable_fast_install"
1465 p=${PACKAGE-default}
1466case $enableval in
1467yes) enable_fast_install=yes ;;
1468no) enable_fast_install=no ;;
1469*)
1470 enable_fast_install=no
1471 # Look at the argument we got. We use all the common list separators.
1472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1473 for pkg in $enableval; do
1474 if test "X$pkg" = "X$p"; then
1475 enable_fast_install=yes
1476 fi
1477 done
1478 IFS="$ac_save_ifs"
1479 ;;
1480esac
1481else
1482 enable_fast_install=yes
1483fi
1484
1485# Check whether --with-gnu-ld or --without-gnu-ld was given.
1486if test "${with_gnu_ld+set}" = set; then
1487 withval="$with_gnu_ld"
1488 test "$withval" = no || with_gnu_ld=yes
1489else
1490 with_gnu_ld=no
1491fi
1492
1493ac_prog=ld
1494if test "$GCC" = yes; then
1495 # Check if gcc -print-prog-name=ld gives a path.
1496 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1497echo "configure:1498: checking for ld used by GCC" >&5
1498 case $host in
1499 *-*-mingw*)
1500 # gcc leaves a trailing carriage return which upsets mingw
1501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1502 *)
1503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1504 esac
1505 case $ac_prog in
1506 # Accept absolute paths.
1507 [\\/]* | [A-Za-z]:[\\/]*)
1508 re_direlt='/[^/][^/]*/\.\./'
1509 # Canonicalize the path of ld
1510 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1511 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1512 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1513 done
1514 test -z "$LD" && LD="$ac_prog"
1515 ;;
1516 "")
1517 # If it fails, then pretend we aren't using GCC.
1518 ac_prog=ld
1519 ;;
1520 *)
1521 # If it is relative, then search for the first ld in PATH.
1522 with_gnu_ld=unknown
1523 ;;
1524 esac
1525elif test "$with_gnu_ld" = yes; then
1526 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1527echo "configure:1528: checking for GNU ld" >&5
1528else
1529 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1530echo "configure:1531: checking for non-GNU ld" >&5
1531fi
1532if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1534else
1535 if test -z "$LD"; then
1536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1537 for ac_dir in $PATH; do
1538 test -z "$ac_dir" && ac_dir=.
1539 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1540 lt_cv_path_LD="$ac_dir/$ac_prog"
1541 # Check to see if the program is GNU ld. I'd rather use --version,
1542 # but apparently some GNU ld's only accept -v.
1543 # Break only if it was the GNU/non-GNU ld that we prefer.
1544 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1545 test "$with_gnu_ld" != no && break
1546 else
1547 test "$with_gnu_ld" != yes && break
1548 fi
1549 fi
1550 done
1551 IFS="$ac_save_ifs"
1552else
1553 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1554fi
1555fi
1556
1557LD="$lt_cv_path_LD"
1558if test -n "$LD"; then
1559 echo "$ac_t""$LD" 1>&6
1560else
1561 echo "$ac_t""no" 1>&6
1562fi
1563test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1564echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1565echo "configure:1566: checking if the linker ($LD) is GNU ld" >&5
1566if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1568else
1569 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1570if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1571 lt_cv_prog_gnu_ld=yes
1572else
1573 lt_cv_prog_gnu_ld=no
1574fi
1575fi
1576
1577echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1578with_gnu_ld=$lt_cv_prog_gnu_ld
1579
1580
1581echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1582echo "configure:1583: checking for $LD option to reload object files" >&5
1583if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585else
1586 lt_cv_ld_reload_flag='-r'
1587fi
1588
1589echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1590reload_flag=$lt_cv_ld_reload_flag
1591test -n "$reload_flag" && reload_flag=" $reload_flag"
1592
1593echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1594echo "configure:1595: checking for BSD-compatible nm" >&5
1595if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1597else
1598 if test -n "$NM"; then
1599 # Let the user override the test.
1600 lt_cv_path_NM="$NM"
1601else
1602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1603 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1604 test -z "$ac_dir" && ac_dir=.
1605 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1606 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1607 # Check to see if the nm accepts a BSD-compat flag.
1608 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1609 # nm: unknown option "B" ignored
1610 # Tru64's nm complains that /dev/null is an invalid object file
1611 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1612 lt_cv_path_NM="$tmp_nm -B"
1613 break
1614 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1615 lt_cv_path_NM="$tmp_nm -p"
1616 break
1617 else
1618 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1619 continue # so that we can try to find one that supports BSD flags
1620 fi
1621 fi
1622 done
1623 IFS="$ac_save_ifs"
1624 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1625fi
1626fi
1627
1628NM="$lt_cv_path_NM"
1629echo "$ac_t""$NM" 1>&6
1630
1631echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1632echo "configure:1633: checking how to recognise dependant libraries" >&5
1633if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635else
1636 lt_cv_file_magic_cmd='$MAGIC_CMD'
1637lt_cv_file_magic_test_file=
1638lt_cv_deplibs_check_method='unknown'
1639# Need to set the preceding variable on all platforms that support
1640# interlibrary dependencies.
1641# 'none' -- dependencies not supported.
1642# `unknown' -- same as none, but documents that we really don't know.
1643# 'pass_all' -- all dependencies passed with no checks.
1644# 'test_compile' -- check by making test program.
1645# 'file_magic [regex]' -- check by looking for files in library path
1646# which responds to the $file_magic_cmd with a given egrep regex.
1647# If you have `file' or equivalent on your system and you're not sure
1648# whether `pass_all' will *always* work, you probably want this one.
1649
1650case $host_os in
1651aix*)
1652 lt_cv_deplibs_check_method=pass_all
1653 ;;
1654
1655beos*)
1656 lt_cv_deplibs_check_method=pass_all
1657 ;;
1658
1659bsdi4*)
1660 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1661 lt_cv_file_magic_cmd='/usr/bin/file -L'
1662 lt_cv_file_magic_test_file=/shlib/libc.so
1663 ;;
1664
1665cygwin* | mingw* |pw32*)
1666 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1667 lt_cv_file_magic_cmd='$OBJDUMP -f'
1668 ;;
1669
1670darwin* | rhapsody*)
1671 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1672 lt_cv_file_magic_cmd='/usr/bin/file -L'
1673 case "$host_os" in
1674 rhapsody* | darwin1.012)
1675 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1676 ;;
1677 *) # Darwin 1.3 on
1678 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1679 ;;
1680 esac
1681 ;;
1682
1683freebsd* )
1684 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1685 case $host_cpu in
1686 i*86 )
1687 # Not sure whether the presence of OpenBSD here was a mistake.
1688 # Let's accept both of them until this is cleared up.
1689 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1690 lt_cv_file_magic_cmd=/usr/bin/file
1691 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1692 ;;
1693 esac
1694 else
1695 lt_cv_deplibs_check_method=pass_all
1696 fi
1697 ;;
1698
1699gnu*)
1700 lt_cv_deplibs_check_method=pass_all
1701 ;;
1702
1703hpux10.20*|hpux11*)
1704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1705 lt_cv_file_magic_cmd=/usr/bin/file
1706 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1707 ;;
1708
1709irix5* | irix6*)
1710 case $host_os in
1711 irix5*)
1712 # this will be overridden with pass_all, but let us keep it just in case
1713 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1714 ;;
1715 *)
1716 case $LD in
1717 *-32|*"-32 ") libmagic=32-bit;;
1718 *-n32|*"-n32 ") libmagic=N32;;
1719 *-64|*"-64 ") libmagic=64-bit;;
1720 *) libmagic=never-match;;
1721 esac
1722 # this will be overridden with pass_all, but let us keep it just in case
1723 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1724 ;;
1725 esac
1726 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1727 lt_cv_deplibs_check_method=pass_all
1728 ;;
1729
1730# This must be Linux ELF.
1731linux-gnu*)
1732 case $host_cpu in
1733 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1734 lt_cv_deplibs_check_method=pass_all ;;
1735 *)
1736 # glibc up to 2.1.1 does not perform some relocations on ARM
1737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1738 esac
1739 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1740 ;;
1741
1742netbsd*)
1743 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1744 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1745 else
1746 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1747 fi
1748 ;;
1749
1750newsos6)
1751 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1752 lt_cv_file_magic_cmd=/usr/bin/file
1753 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1754 ;;
1755
1756osf3* | osf4* | osf5*)
1757 # this will be overridden with pass_all, but let us keep it just in case
1758 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1759 lt_cv_file_magic_test_file=/shlib/libc.so
1760 lt_cv_deplibs_check_method=pass_all
1761 ;;
1762
1763sco3.2v5*)
1764 lt_cv_deplibs_check_method=pass_all
1765 ;;
1766
1767solaris*)
1768 lt_cv_deplibs_check_method=pass_all
1769 lt_cv_file_magic_test_file=/lib/libc.so
1770 ;;
1771
1772sysv5uw[78]* | sysv4*uw2*)
1773 lt_cv_deplibs_check_method=pass_all
1774 ;;
1775
1776sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1777 case $host_vendor in
1778 ncr)
1779 lt_cv_deplibs_check_method=pass_all
1780 ;;
1781 motorola)
1782 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]'
1783 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1784 ;;
1785 esac
1786 ;;
1787esac
1788
1789fi
1790
1791echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1792file_magic_cmd=$lt_cv_file_magic_cmd
1793deplibs_check_method=$lt_cv_deplibs_check_method
1794
1795echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1796echo "configure:1797: checking for object suffix" >&5
1797if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1799else
1800 rm -f conftest*
1801echo 'int i = 1;' > conftest.$ac_ext
1802if { (eval echo configure:1803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1803 for ac_file in conftest.*; do
1804 case $ac_file in
1805 *.c) ;;
1806 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1807 esac
1808 done
1809else
1810 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1811fi
1812rm -f conftest*
1813fi
1814
1815echo "$ac_t""$ac_cv_objext" 1>&6
1816OBJEXT=$ac_cv_objext
1817ac_objext=$ac_cv_objext
1818
1819# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1820
1821# Only perform the check for file, if the check method requires it
1822case $deplibs_check_method in
1823file_magic*)
1824 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1825 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1826echo "configure:1827: checking for ${ac_tool_prefix}file" >&5
1827if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1829else
1830 case $MAGIC_CMD in
1831 /*)
1832 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1833 ;;
1834 ?:/*)
1835 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1836 ;;
1837 *)
1838 ac_save_MAGIC_CMD="$MAGIC_CMD"
1839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1840 ac_dummy="/usr/bin:$PATH"
1841 for ac_dir in $ac_dummy; do
1842 test -z "$ac_dir" && ac_dir=.
1843 if test -f $ac_dir/${ac_tool_prefix}file; then
1844 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1845 if test -n "$file_magic_test_file"; then
1846 case $deplibs_check_method in
1847 "file_magic "*)
1848 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1851 egrep "$file_magic_regex" > /dev/null; then
1852 :
1853 else
1854 cat <<EOF 1>&2
1855
1856*** Warning: the command libtool uses to detect shared libraries,
1857*** $file_magic_cmd, produces output that libtool cannot recognize.
1858*** The result is that libtool may fail to recognize shared libraries
1859*** as such. This will affect the creation of libtool libraries that
1860*** depend on shared libraries, but programs linked with such libtool
1861*** libraries will work regardless of this problem. Nevertheless, you
1862*** may want to report the problem to your system manager and/or to
1863*** [email protected]
1864
1865EOF
1866 fi ;;
1867 esac
1868 fi
1869 break
1870 fi
1871 done
1872 IFS="$ac_save_ifs"
1873 MAGIC_CMD="$ac_save_MAGIC_CMD"
1874 ;;
1875esac
1876fi
1877
1878MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1879if test -n "$MAGIC_CMD"; then
1880 echo "$ac_t""$MAGIC_CMD" 1>&6
1881else
1882 echo "$ac_t""no" 1>&6
1883fi
1884
1885if test -z "$lt_cv_path_MAGIC_CMD"; then
1886 if test -n "$ac_tool_prefix"; then
1887 echo $ac_n "checking for file""... $ac_c" 1>&6
1888echo "configure:1889: checking for file" >&5
1889if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891else
1892 case $MAGIC_CMD in
1893 /*)
1894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1895 ;;
1896 ?:/*)
1897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1898 ;;
1899 *)
1900 ac_save_MAGIC_CMD="$MAGIC_CMD"
1901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1902 ac_dummy="/usr/bin:$PATH"
1903 for ac_dir in $ac_dummy; do
1904 test -z "$ac_dir" && ac_dir=.
1905 if test -f $ac_dir/file; then
1906 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1907 if test -n "$file_magic_test_file"; then
1908 case $deplibs_check_method in
1909 "file_magic "*)
1910 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1911 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1912 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1913 egrep "$file_magic_regex" > /dev/null; then
1914 :
1915 else
1916 cat <<EOF 1>&2
1917
1918*** Warning: the command libtool uses to detect shared libraries,
1919*** $file_magic_cmd, produces output that libtool cannot recognize.
1920*** The result is that libtool may fail to recognize shared libraries
1921*** as such. This will affect the creation of libtool libraries that
1922*** depend on shared libraries, but programs linked with such libtool
1923*** libraries will work regardless of this problem. Nevertheless, you
1924*** may want to report the problem to your system manager and/or to
1925*** [email protected]
1926
1927EOF
1928 fi ;;
1929 esac
1930 fi
1931 break
1932 fi
1933 done
1934 IFS="$ac_save_ifs"
1935 MAGIC_CMD="$ac_save_MAGIC_CMD"
1936 ;;
1937esac
1938fi
1939
1940MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1941if test -n "$MAGIC_CMD"; then
1942 echo "$ac_t""$MAGIC_CMD" 1>&6
1943else
1944 echo "$ac_t""no" 1>&6
1945fi
1946
1947 else
1948 MAGIC_CMD=:
1949 fi
1950fi
1951
1952 fi
1953 ;;
1954esac
1955
1956# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1957set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1959echo "configure:1960: checking for $ac_word" >&5
1960if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1962else
1963 if test -n "$RANLIB"; then
1964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1965else
1966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1967 ac_dummy="$PATH"
1968 for ac_dir in $ac_dummy; do
1969 test -z "$ac_dir" && ac_dir=.
1970 if test -f $ac_dir/$ac_word -o \
1971 -f $ac_dir/$ac_word$ac_exeext ; then
1972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1973 break
1974 fi
1975 done
1976 IFS="$ac_save_ifs"
1977fi
1978fi
1979RANLIB="$ac_cv_prog_RANLIB"
1980if test -n "$RANLIB"; then
1981 echo "$ac_t""$RANLIB" 1>&6
1982else
1983 echo "$ac_t""no" 1>&6
1984fi
1985
1986
1987if test -z "$ac_cv_prog_RANLIB"; then
1988if test -n "$ac_tool_prefix"; then
1989 # Extract the first word of "ranlib", so it can be a program name with args.
1990set dummy ranlib; ac_word=$2
1991echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1992echo "configure:1993: checking for $ac_word" >&5
1993if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1995else
1996 if test -n "$RANLIB"; then
1997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1998else
1999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2000 ac_dummy="$PATH"
2001 for ac_dir in $ac_dummy; do
2002 test -z "$ac_dir" && ac_dir=.
2003 if test -f $ac_dir/$ac_word -o \
2004 -f $ac_dir/$ac_word$ac_exeext ; then
2005 ac_cv_prog_RANLIB="ranlib"
2006 break
2007 fi
2008 done
2009 IFS="$ac_save_ifs"
2010 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2011fi
2012fi
2013RANLIB="$ac_cv_prog_RANLIB"
2014if test -n "$RANLIB"; then
2015 echo "$ac_t""$RANLIB" 1>&6
2016else
2017 echo "$ac_t""no" 1>&6
2018fi
2019
2020else
2021 RANLIB=":"
2022fi
2023fi
2024
2025# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2026set dummy ${ac_tool_prefix}strip; ac_word=$2
2027echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2028echo "configure:2029: checking for $ac_word" >&5
2029if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031else
2032 if test -n "$STRIP"; then
2033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2034else
2035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2036 ac_dummy="$PATH"
2037 for ac_dir in $ac_dummy; do
2038 test -z "$ac_dir" && ac_dir=.
2039 if test -f $ac_dir/$ac_word -o \
2040 -f $ac_dir/$ac_word$ac_exeext ; then
2041 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2042 break
2043 fi
2044 done
2045 IFS="$ac_save_ifs"
2046fi
2047fi
2048STRIP="$ac_cv_prog_STRIP"
2049if test -n "$STRIP"; then
2050 echo "$ac_t""$STRIP" 1>&6
2051else
2052 echo "$ac_t""no" 1>&6
2053fi
2054
2055
2056if test -z "$ac_cv_prog_STRIP"; then
2057if test -n "$ac_tool_prefix"; then
2058 # Extract the first word of "strip", so it can be a program name with args.
2059set dummy strip; ac_word=$2
2060echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2061echo "configure:2062: checking for $ac_word" >&5
2062if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2064else
2065 if test -n "$STRIP"; then
2066 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2067else
2068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2069 ac_dummy="$PATH"
2070 for ac_dir in $ac_dummy; do
2071 test -z "$ac_dir" && ac_dir=.
2072 if test -f $ac_dir/$ac_word -o \
2073 -f $ac_dir/$ac_word$ac_exeext ; then
2074 ac_cv_prog_STRIP="strip"
2075 break
2076 fi
2077 done
2078 IFS="$ac_save_ifs"
2079 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2080fi
2081fi
2082STRIP="$ac_cv_prog_STRIP"
2083if test -n "$STRIP"; then
2084 echo "$ac_t""$STRIP" 1>&6
2085else
2086 echo "$ac_t""no" 1>&6
2087fi
2088
2089else
2090 STRIP=":"
2091fi
2092fi
2093
2094
2095# Check for any special flags to pass to ltconfig.
2096libtool_flags="--cache-file=$cache_file"
2097test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2098test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2099test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2100test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2101test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2102
2103
2104# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2105if test "${enable_libtool_lock+set}" = set; then
2106 enableval="$enable_libtool_lock"
2107 :
2108fi
2109
2110test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2111test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2112
2113# Check whether --with-pic or --without-pic was given.
2114if test "${with_pic+set}" = set; then
2115 withval="$with_pic"
2116 pic_mode="$withval"
2117else
2118 pic_mode=default
2119fi
2120
2121test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2122test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2123
2124# Some flags need to be propagated to the compiler or linker for good
2125# libtool support.
2126case $host in
2127*-*-irix6*)
2128 # Find out which ABI we are using.
2129 echo '#line 2130 "configure"' > conftest.$ac_ext
2130 if { (eval echo configure:2131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2131 case `/usr/bin/file conftest.$ac_objext` in
2132 *32-bit*)
2133 LD="${LD-ld} -32"
2134 ;;
2135 *N32*)
2136 LD="${LD-ld} -n32"
2137 ;;
2138 *64-bit*)
2139 LD="${LD-ld} -64"
2140 ;;