source: branches/libc-0.6/src/gcc/libobjc/configure

Last change on this file was 1479, checked in by bird, 21 years ago

Joined gcc 3.3.4 with head.

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