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