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