]>
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 | |
23c84d33 | 841 | for ac_prog in mawk gawk 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 | |
e8751f35 | 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 | |
2c839a4e | 1500 | # Find platform-specific directories containing configuration info. In |
5e3cbe0b | 1501 | # addition to possibly modifying the same flags, it also sets up symlinks. |
d0941a31 | 1502 | |
b731048b | 1503 | . ${glibcpp_basedir}/configure.host |
974e336b PE |
1504 | echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6 |
1505 | echo "$ac_t""OS config directory is $os_include_dir" 1>&6 | |
d0941a31 PE |
1506 | |
1507 | ||
33590f13 | 1508 | |
249ed716 | 1509 | am__api_version="1.4" |
2f235b6d | 1510 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
b731048b | 1511 | echo "configure:1512: checking whether build environment is sane" >&5 |
2f235b6d PE |
1512 | # Just in case |
1513 | sleep 1 | |
1514 | echo timestamp > conftestfile | |
1515 | # Do `set' in a subshell so we don't clobber the current shell's | |
1516 | # arguments. Must try -L first in case configure is actually a | |
1517 | # symlink; some systems play weird games with the mod time of symlinks | |
1518 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1519 | # directory). | |
1520 | if ( | |
1521 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
1522 | if test "$*" = "X"; then | |
1523 | # -L didn't work. | |
1524 | set X `ls -t $srcdir/configure conftestfile` | |
1525 | fi | |
1526 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
1527 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
1528 | ||
1529 | # If neither matched, then we have a broken ls. This can happen | |
1530 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1531 | # broken ls alias from the environment. This has actually | |
1532 | # happened. Such a system could not be considered "sane". | |
1533 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
1534 | alias in your environment" 1>&2; exit 1; } | |
1535 | fi | |
1536 | ||
1537 | test "$2" = conftestfile | |
1538 | ) | |
1539 | then | |
1540 | # Ok. | |
1541 | : | |
1542 | else | |
1543 | { echo "configure: error: newly created file is older than distributed files! | |
1544 | Check your system clock" 1>&2; exit 1; } | |
1545 | fi | |
1546 | rm -f conftest* | |
1547 | echo "$ac_t""yes" 1>&6 | |
1548 | if test "$program_transform_name" = s,x,x,; then | |
1549 | program_transform_name= | |
1550 | else | |
1551 | # Double any \ or $. echo might interpret backslashes. | |
1552 | cat <<\EOF_SED > conftestsed | |
1553 | s,\\,\\\\,g; s,\$,$$,g | |
1554 | EOF_SED | |
1555 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
1556 | rm -f conftestsed | |
1557 | fi | |
1558 | test "$program_prefix" != NONE && | |
1559 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
1560 | # Use a double $ so make ignores it. | |
1561 | test "$program_suffix" != NONE && | |
1562 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
1563 | ||
1564 | # sed with no file args requires a program. | |
1565 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
1566 | ||
1567 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
b731048b | 1568 | echo "configure:1569: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
2f235b6d PE |
1569 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1570 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1572 | else | |
1573 | cat > conftestmake <<\EOF | |
1574 | all: | |
1575 | @echo 'ac_maketemp="${MAKE}"' | |
1576 | EOF | |
1577 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1578 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1579 | if test -n "$ac_maketemp"; then | |
1580 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1581 | else | |
1582 | eval ac_cv_prog_make_${ac_make}_set=no | |
1583 | fi | |
1584 | rm -f conftestmake | |
1585 | fi | |
1586 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1587 | echo "$ac_t""yes" 1>&6 | |
1588 | SET_MAKE= | |
1589 | else | |
1590 | echo "$ac_t""no" 1>&6 | |
1591 | SET_MAKE="MAKE=${MAKE-make}" | |
1592 | fi | |
1593 | ||
1594 | ||
1595 | PACKAGE=$PACKAGE | |
1596 | ||
1597 | VERSION=$gcc_version | |
1598 | ||
1599 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
1600 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
1601 | fi | |
1602 | cat >> confdefs.h <<EOF | |
1603 | #define PACKAGE "$PACKAGE" | |
1604 | EOF | |
1605 | ||
1606 | cat >> confdefs.h <<EOF | |
1607 | #define VERSION "$VERSION" | |
1608 | EOF | |
1609 | ||
1610 | ||
1611 | ||
1612 | missing_dir=`cd $ac_aux_dir && pwd` | |
249ed716 | 1613 | echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6 |
b731048b | 1614 | echo "configure:1615: checking for working aclocal-${am__api_version}" >&5 |
2f235b6d PE |
1615 | # Run test in a subshell; some versions of sh will print an error if |
1616 | # an executable is not found, even if stderr is redirected. | |
1617 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
249ed716 BK |
1618 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
1619 | ACLOCAL=aclocal-${am__api_version} | |
2f235b6d PE |
1620 | echo "$ac_t""found" 1>&6 |
1621 | else | |
249ed716 | 1622 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
2f235b6d PE |
1623 | echo "$ac_t""missing" 1>&6 |
1624 | fi | |
1625 | ||
1626 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
b731048b | 1627 | echo "configure:1628: checking for working autoconf" >&5 |
2f235b6d PE |
1628 | # Run test in a subshell; some versions of sh will print an error if |
1629 | # an executable is not found, even if stderr is redirected. | |
1630 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1631 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1632 | AUTOCONF=autoconf | |
1633 | echo "$ac_t""found" 1>&6 | |
1634 | else | |
1635 | AUTOCONF="$missing_dir/missing autoconf" | |
1636 | echo "$ac_t""missing" 1>&6 | |
1637 | fi | |
1638 | ||
249ed716 | 1639 | echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 |
b731048b | 1640 | echo "configure:1641: checking for working automake-${am__api_version}" >&5 |
2f235b6d PE |
1641 | # Run test in a subshell; some versions of sh will print an error if |
1642 | # an executable is not found, even if stderr is redirected. | |
1643 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
249ed716 BK |
1644 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
1645 | AUTOMAKE=automake-${am__api_version} | |
2f235b6d PE |
1646 | echo "$ac_t""found" 1>&6 |
1647 | else | |
249ed716 | 1648 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
2f235b6d PE |
1649 | echo "$ac_t""missing" 1>&6 |
1650 | fi | |
1651 | ||
1652 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
b731048b | 1653 | echo "configure:1654: checking for working autoheader" >&5 |
2f235b6d PE |
1654 | # Run test in a subshell; some versions of sh will print an error if |
1655 | # an executable is not found, even if stderr is redirected. | |
1656 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1657 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1658 | AUTOHEADER=autoheader | |
1659 | echo "$ac_t""found" 1>&6 | |
1660 | else | |
1661 | AUTOHEADER="$missing_dir/missing autoheader" | |
1662 | echo "$ac_t""missing" 1>&6 | |
1663 | fi | |
1664 | ||
1665 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
b731048b | 1666 | echo "configure:1667: checking for working makeinfo" >&5 |
2f235b6d PE |
1667 | # Run test in a subshell; some versions of sh will print an error if |
1668 | # an executable is not found, even if stderr is redirected. | |
1669 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1670 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1671 | MAKEINFO=makeinfo | |
1672 | echo "$ac_t""found" 1>&6 | |
1673 | else | |
1674 | MAKEINFO="$missing_dir/missing makeinfo" | |
1675 | echo "$ac_t""missing" 1>&6 | |
1676 | fi | |
1677 | ||
1678 | ||
1679 | ||
1680 | ||
1681 | ||
5780a46b | 1682 | |
f4c79fef | 1683 | |
b2dad0e3 BK |
1684 | # Check whether --enable-shared or --disable-shared was given. |
1685 | if test "${enable_shared+set}" = set; then | |
1686 | enableval="$enable_shared" | |
1687 | p=${PACKAGE-default} | |
c21b6f87 | 1688 | case $enableval in |
b2dad0e3 BK |
1689 | yes) enable_shared=yes ;; |
1690 | no) enable_shared=no ;; | |
1691 | *) | |
1692 | enable_shared=no | |
1693 | # Look at the argument we got. We use all the common list separators. | |
1694 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1695 | for pkg in $enableval; do | |
1696 | if test "X$pkg" = "X$p"; then | |
1697 | enable_shared=yes | |
1698 | fi | |
1699 | done | |
1700 | IFS="$ac_save_ifs" | |
1701 | ;; | |
1702 | esac | |
1703 | else | |
1704 | enable_shared=yes | |
1705 | fi | |
1706 | ||
1707 | # Check whether --enable-static or --disable-static was given. | |
1708 | if test "${enable_static+set}" = set; then | |
1709 | enableval="$enable_static" | |
1710 | p=${PACKAGE-default} | |
c21b6f87 | 1711 | case $enableval in |
b2dad0e3 BK |
1712 | yes) enable_static=yes ;; |
1713 | no) enable_static=no ;; | |
1714 | *) | |
1715 | enable_static=no | |
1716 | # Look at the argument we got. We use all the common list separators. | |
1717 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1718 | for pkg in $enableval; do | |
1719 | if test "X$pkg" = "X$p"; then | |
1720 | enable_static=yes | |
1721 | fi | |
1722 | done | |
1723 | IFS="$ac_save_ifs" | |
1724 | ;; | |
1725 | esac | |
1726 | else | |
1727 | enable_static=yes | |
1728 | fi | |
1729 | ||
1730 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
1731 | if test "${enable_fast_install+set}" = set; then | |
1732 | enableval="$enable_fast_install" | |
1733 | p=${PACKAGE-default} | |
c21b6f87 | 1734 | case $enableval in |
b2dad0e3 BK |
1735 | yes) enable_fast_install=yes ;; |
1736 | no) enable_fast_install=no ;; | |
1737 | *) | |
1738 | enable_fast_install=no | |
1739 | # Look at the argument we got. We use all the common list separators. | |
1740 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1741 | for pkg in $enableval; do | |
1742 | if test "X$pkg" = "X$p"; then | |
1743 | enable_fast_install=yes | |
1744 | fi | |
1745 | done | |
1746 | IFS="$ac_save_ifs" | |
1747 | ;; | |
1748 | esac | |
1749 | else | |
1750 | enable_fast_install=yes | |
1751 | fi | |
1752 | ||
b2dad0e3 BK |
1753 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1754 | if test "${with_gnu_ld+set}" = set; then | |
1755 | withval="$with_gnu_ld" | |
1756 | test "$withval" = no || with_gnu_ld=yes | |
1757 | else | |
1758 | with_gnu_ld=no | |
1759 | fi | |
1760 | ||
1761 | ac_prog=ld | |
c21b6f87 | 1762 | if test "$GCC" = yes; then |
b2dad0e3 BK |
1763 | # Check if gcc -print-prog-name=ld gives a path. |
1764 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
b731048b | 1765 | echo "configure:1766: checking for ld used by GCC" >&5 |
3df64633 AO |
1766 | case $host in |
1767 | *-*-mingw*) | |
1768 | # gcc leaves a trailing carriage return which upsets mingw | |
1769 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1770 | *) | |
1771 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1772 | esac | |
c21b6f87 | 1773 | case $ac_prog in |
b2dad0e3 | 1774 | # Accept absolute paths. |
3840fa2a | 1775 | [\\/]* | [A-Za-z]:[\\/]*) |
b2dad0e3 BK |
1776 | re_direlt='/[^/][^/]*/\.\./' |
1777 | # Canonicalize the path of ld | |
1778 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1779 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1780 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1781 | done | |
1782 | test -z "$LD" && LD="$ac_prog" | |
1783 | ;; | |
1784 | "") | |
1785 | # If it fails, then pretend we aren't using GCC. | |
1786 | ac_prog=ld | |
1787 | ;; | |
1788 | *) | |
1789 | # If it is relative, then search for the first ld in PATH. | |
1790 | with_gnu_ld=unknown | |
1791 | ;; | |
1792 | esac | |
1793 | elif test "$with_gnu_ld" = yes; then | |
1794 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
b731048b | 1795 | echo "configure:1796: checking for GNU ld" >&5 |
b2dad0e3 BK |
1796 | else |
1797 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
b731048b | 1798 | echo "configure:1799: checking for non-GNU ld" >&5 |
b2dad0e3 | 1799 | fi |
c21b6f87 | 1800 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
b2dad0e3 BK |
1801 | echo $ac_n "(cached) $ac_c" 1>&6 |
1802 | else | |
1803 | if test -z "$LD"; then | |
3840fa2a | 1804 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2dad0e3 BK |
1805 | for ac_dir in $PATH; do |
1806 | test -z "$ac_dir" && ac_dir=. | |
3840fa2a | 1807 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
c21b6f87 | 1808 | lt_cv_path_LD="$ac_dir/$ac_prog" |
b2dad0e3 BK |
1809 | # Check to see if the program is GNU ld. I'd rather use --version, |
1810 | # but apparently some GNU ld's only accept -v. | |
1811 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
c21b6f87 | 1812 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
b2dad0e3 BK |
1813 | test "$with_gnu_ld" != no && break |
1814 | else | |
1815 | test "$with_gnu_ld" != yes && break | |
1816 | fi | |
1817 | fi | |
1818 | done | |
1819 | IFS="$ac_save_ifs" | |
1820 | else | |
c21b6f87 | 1821 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
b2dad0e3 BK |
1822 | fi |
1823 | fi | |
1824 | ||
c21b6f87 | 1825 | LD="$lt_cv_path_LD" |
b2dad0e3 BK |
1826 | if test -n "$LD"; then |
1827 | echo "$ac_t""$LD" 1>&6 | |
1828 | else | |
1829 | echo "$ac_t""no" 1>&6 | |
1830 | fi | |
1831 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
1832 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
b731048b | 1833 | echo "configure:1834: checking if the linker ($LD) is GNU ld" >&5 |
c21b6f87 | 1834 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
b2dad0e3 BK |
1835 | echo $ac_n "(cached) $ac_c" 1>&6 |
1836 | else | |
1837 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1838 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
c21b6f87 | 1839 | lt_cv_prog_gnu_ld=yes |
b2dad0e3 | 1840 | else |
c21b6f87 | 1841 | lt_cv_prog_gnu_ld=no |
b2dad0e3 BK |
1842 | fi |
1843 | fi | |
1844 | ||
c21b6f87 PE |
1845 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
1846 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3df64633 | 1847 | |
b2dad0e3 | 1848 | |
3df64633 | 1849 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 |
b731048b | 1850 | echo "configure:1851: checking for $LD option to reload object files" >&5 |
3df64633 AO |
1851 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1853 | else | |
1854 | lt_cv_ld_reload_flag='-r' | |
1855 | fi | |
1856 | ||
1857 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | |
1858 | reload_flag=$lt_cv_ld_reload_flag | |
1859 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
b2dad0e3 BK |
1860 | |
1861 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
b731048b | 1862 | echo "configure:1863: checking for BSD-compatible nm" >&5 |
c21b6f87 | 1863 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
b2dad0e3 BK |
1864 | echo $ac_n "(cached) $ac_c" 1>&6 |
1865 | else | |
1866 | if test -n "$NM"; then | |
1867 | # Let the user override the test. | |
c21b6f87 | 1868 | lt_cv_path_NM="$NM" |
b2dad0e3 | 1869 | else |
3840fa2a | 1870 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2dad0e3 BK |
1871 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
1872 | test -z "$ac_dir" && ac_dir=. | |
3df64633 AO |
1873 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
1874 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
b2dad0e3 BK |
1875 | # Check to see if the nm accepts a BSD-compat flag. |
1876 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1877 | # nm: unknown option "B" ignored | |
6d93bca4 AO |
1878 | # Tru64's nm complains that /dev/null is an invalid object file |
1879 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
c21b6f87 | 1880 | lt_cv_path_NM="$tmp_nm -B" |
b2dad0e3 | 1881 | break |
3df64633 | 1882 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
c21b6f87 | 1883 | lt_cv_path_NM="$tmp_nm -p" |
b2dad0e3 BK |
1884 | break |
1885 | else | |
c21b6f87 | 1886 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2dad0e3 BK |
1887 | continue # so that we can try to find one that supports BSD flags |
1888 | fi | |
1889 | fi | |
1890 | done | |
1891 | IFS="$ac_save_ifs" | |
c21b6f87 | 1892 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
b2dad0e3 BK |
1893 | fi |
1894 | fi | |
1895 | ||
c21b6f87 | 1896 | NM="$lt_cv_path_NM" |
b2dad0e3 BK |
1897 | echo "$ac_t""$NM" 1>&6 |
1898 | ||
3df64633 | 1899 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
b731048b | 1900 | echo "configure:1901: checking how to recognise dependant libraries" >&5 |
3df64633 AO |
1901 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
1902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1903 | else | |
3dd7094e | 1904 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3df64633 AO |
1905 | lt_cv_file_magic_test_file= |
1906 | lt_cv_deplibs_check_method='unknown' | |
1907 | # Need to set the preceding variable on all platforms that support | |
1908 | # interlibrary dependencies. | |
1909 | # 'none' -- dependencies not supported. | |
1910 | # `unknown' -- same as none, but documents that we really don't know. | |
1911 | # 'pass_all' -- all dependencies passed with no checks. | |
1912 | # 'test_compile' -- check by making test program. | |
1913 | # 'file_magic [regex]' -- check by looking for files in library path | |
1914 | # which responds to the $file_magic_cmd with a given egrep regex. | |
1915 | # If you have `file' or equivalent on your system and you're not sure | |
1916 | # whether `pass_all' will *always* work, you probably want this one. | |
1917 | ||
c21b6f87 PE |
1918 | case $host_os in |
1919 | aix*) | |
3df64633 AO |
1920 | lt_cv_deplibs_check_method=pass_all |
1921 | ;; | |
1922 | ||
1923 | beos*) | |
1924 | lt_cv_deplibs_check_method=pass_all | |
1925 | ;; | |
1926 | ||
1927 | bsdi4*) | |
c21b6f87 PE |
1928 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
1929 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3df64633 AO |
1930 | lt_cv_file_magic_test_file=/shlib/libc.so |
1931 | ;; | |
1932 | ||
3dd7094e | 1933 | cygwin* | mingw* |pw32*) |
3df64633 | 1934 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3dd7094e | 1935 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3df64633 AO |
1936 | ;; |
1937 | ||
c21b6f87 PE |
1938 | darwin* | rhapsody*) |
1939 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
47e982b2 BK |
1940 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
1941 | case "$host_os" in | |
1942 | rhapsody* | darwin1.012) | |
1943 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
1944 | ;; | |
1945 | *) # Darwin 1.3 on | |
1946 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
1947 | ;; | |
1948 | esac | |
c21b6f87 PE |
1949 | ;; |
1950 | ||
3df64633 AO |
1951 | freebsd* ) |
1952 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
c21b6f87 | 1953 | case $host_cpu in |
3df64633 | 1954 | i*86 ) |
6d93bca4 AO |
1955 | # Not sure whether the presence of OpenBSD here was a mistake. |
1956 | # Let's accept both of them until this is cleared up. | |
c21b6f87 PE |
1957 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
1958 | lt_cv_file_magic_cmd=/usr/bin/file | |
3df64633 AO |
1959 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
1960 | ;; | |
1961 | esac | |
1962 | else | |
1963 | lt_cv_deplibs_check_method=pass_all | |
1964 | fi | |
1965 | ;; | |
1966 | ||
1967 | gnu*) | |
1968 | lt_cv_deplibs_check_method=pass_all | |
1969 | ;; | |
1970 | ||
c21b6f87 | 1971 | hpux10.20*|hpux11*) |
38cca750 BK |
1972 | case $host_cpu in |
1973 | hppa*) | |
1974 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
1975 | lt_cv_file_magic_cmd=/usr/bin/file | |
1976 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
1977 | ;; | |
1978 | ia64*) | |
1979 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
1980 | lt_cv_file_magic_cmd=/usr/bin/file | |
1981 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
1982 | ;; | |
1983 | esac | |
3df64633 AO |
1984 | ;; |
1985 | ||
1986 | irix5* | irix6*) | |
c21b6f87 | 1987 | case $host_os in |
3df64633 AO |
1988 | irix5*) |
1989 | # this will be overridden with pass_all, but let us keep it just in case | |
1990 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
1991 | ;; | |
1992 | *) | |
c21b6f87 | 1993 | case $LD in |
3df64633 AO |
1994 | *-32|*"-32 ") libmagic=32-bit;; |
1995 | *-n32|*"-n32 ") libmagic=N32;; | |
1996 | *-64|*"-64 ") libmagic=64-bit;; | |
1997 | *) libmagic=never-match;; | |
1998 | esac | |
1999 | # this will be overridden with pass_all, but let us keep it just in case | |
c21b6f87 PE |
2000 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
2001 | ;; | |
3df64633 AO |
2002 | esac |
2003 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
2004 | lt_cv_deplibs_check_method=pass_all | |
2005 | ;; | |
2006 | ||
2007 | # This must be Linux ELF. | |
6d93bca4 | 2008 | linux-gnu*) |
c21b6f87 | 2009 | case $host_cpu in |
b1e0a93e | 2010 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
3df64633 AO |
2011 | lt_cv_deplibs_check_method=pass_all ;; |
2012 | *) | |
2013 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
c21b6f87 PE |
2014 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
2015 | esac | |
3df64633 AO |
2016 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
2017 | ;; | |
2018 | ||
2019 | netbsd*) | |
c21b6f87 | 2020 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
47e982b2 | 2021 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
3df64633 | 2022 | else |
47e982b2 | 2023 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
3df64633 | 2024 | fi |
c21b6f87 PE |
2025 | ;; |
2026 | ||
2027 | newsos6) | |
2028 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
2029 | lt_cv_file_magic_cmd=/usr/bin/file | |
2030 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3df64633 AO |
2031 | ;; |
2032 | ||
2033 | osf3* | osf4* | osf5*) | |
2034 | # this will be overridden with pass_all, but let us keep it just in case | |
2035 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
2036 | lt_cv_file_magic_test_file=/shlib/libc.so | |
2037 | lt_cv_deplibs_check_method=pass_all | |
2038 | ;; | |
2039 | ||
2040 | sco3.2v5*) | |
2041 | lt_cv_deplibs_check_method=pass_all | |
2042 | ;; | |
2043 | ||
2044 | solaris*) | |
2045 | lt_cv_deplibs_check_method=pass_all | |
2046 | lt_cv_file_magic_test_file=/lib/libc.so | |
2047 | ;; | |
2048 | ||
bfa1e6b1 BK |
2049 | sysv5uw[78]* | sysv4*uw2*) |
2050 | lt_cv_deplibs_check_method=pass_all | |
2051 | ;; | |
2052 | ||
3df64633 | 2053 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
c21b6f87 | 2054 | case $host_vendor in |
3df64633 AO |
2055 | ncr) |
2056 | lt_cv_deplibs_check_method=pass_all | |
2057 | ;; | |
2058 | motorola) | |
c21b6f87 PE |
2059 | 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]' |
2060 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3df64633 AO |
2061 | ;; |
2062 | esac | |
2063 | ;; | |
2064 | esac | |
2065 | ||
2066 | fi | |
2067 | ||
2068 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
2069 | file_magic_cmd=$lt_cv_file_magic_cmd | |
2070 | deplibs_check_method=$lt_cv_deplibs_check_method | |
2071 | ||
2072 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
b731048b | 2073 | echo "configure:2074: checking for object suffix" >&5 |
3df64633 AO |
2074 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
2075 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2076 | else | |
2077 | rm -f conftest* | |
2078 | echo 'int i = 1;' > conftest.$ac_ext | |
b731048b | 2079 | if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3df64633 AO |
2080 | for ac_file in conftest.*; do |
2081 | case $ac_file in | |
2082 | *.c) ;; | |
2083 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
2084 | esac | |
2085 | done | |
2086 | else | |
2087 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
2088 | fi | |
2089 | rm -f conftest* | |
2090 | fi | |
2091 | ||
2092 | echo "$ac_t""$ac_cv_objext" 1>&6 | |
2093 | OBJEXT=$ac_cv_objext | |
2094 | ac_objext=$ac_cv_objext | |
2095 | ||
2096 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
2097 | ||
2098 | # Only perform the check for file, if the check method requires it | |
c21b6f87 | 2099 | case $deplibs_check_method in |
3df64633 | 2100 | file_magic*) |
3dd7094e | 2101 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
3df64633 | 2102 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
b731048b | 2103 | echo "configure:2104: checking for ${ac_tool_prefix}file" >&5 |
3dd7094e | 2104 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
3df64633 AO |
2105 | echo $ac_n "(cached) $ac_c" 1>&6 |
2106 | else | |
c21b6f87 | 2107 | case $MAGIC_CMD in |
3df64633 | 2108 | /*) |
3dd7094e | 2109 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3df64633 AO |
2110 | ;; |
2111 | ?:/*) | |
3dd7094e | 2112 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
3df64633 AO |
2113 | ;; |
2114 | *) | |
3dd7094e | 2115 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
3df64633 AO |
2116 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2117 | ac_dummy="/usr/bin:$PATH" | |
2118 | for ac_dir in $ac_dummy; do | |
2119 | test -z "$ac_dir" && ac_dir=. | |
2120 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3dd7094e | 2121 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
3df64633 | 2122 | if test -n "$file_magic_test_file"; then |
c21b6f87 | 2123 | case $deplibs_check_method in |
3df64633 AO |
2124 | "file_magic "*) |
2125 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3dd7094e | 2126 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3df64633 AO |
2127 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2128 | egrep "$file_magic_regex" > /dev/null; then | |
2129 | : | |
2130 | else | |
2131 | cat <<EOF 1>&2 | |
2132 | ||
2133 | *** Warning: the command libtool uses to detect shared libraries, | |
2134 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2135 | *** The result is that libtool may fail to recognize shared libraries | |
2136 | *** as such. This will affect the creation of libtool libraries that | |
2137 | *** depend on shared libraries, but programs linked with such libtool | |
2138 | *** libraries will work regardless of this problem. Nevertheless, you | |
2139 | *** may want to report the problem to your system manager and/or to | |
2140 | *** bug-libtool@gnu.org | |
2141 | ||
2142 | EOF | |
2143 | fi ;; | |
2144 | esac | |
2145 | fi | |
2146 | break | |
2147 | fi | |
2148 | done | |
2149 | IFS="$ac_save_ifs" | |
3dd7094e | 2150 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
3df64633 AO |
2151 | ;; |
2152 | esac | |
2153 | fi | |
2154 | ||
3dd7094e AO |
2155 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2156 | if test -n "$MAGIC_CMD"; then | |
2157 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
3df64633 AO |
2158 | else |
2159 | echo "$ac_t""no" 1>&6 | |
2160 | fi | |
2161 | ||
3dd7094e | 2162 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
3df64633 AO |
2163 | if test -n "$ac_tool_prefix"; then |
2164 | echo $ac_n "checking for file""... $ac_c" 1>&6 | |
b731048b | 2165 | echo "configure:2166: checking for file" >&5 |
3dd7094e | 2166 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
3df64633 AO |
2167 | echo $ac_n "(cached) $ac_c" 1>&6 |
2168 | else | |
c21b6f87 | 2169 | case $MAGIC_CMD in |
3df64633 | 2170 | /*) |
3dd7094e | 2171 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3df64633 AO |
2172 | ;; |
2173 | ?:/*) | |
3dd7094e | 2174 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
3df64633 AO |
2175 | ;; |
2176 | *) | |
3dd7094e | 2177 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
3df64633 AO |
2178 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2179 | ac_dummy="/usr/bin:$PATH" | |
2180 | for ac_dir in $ac_dummy; do | |
2181 | test -z "$ac_dir" && ac_dir=. | |
2182 | if test -f $ac_dir/file; then | |
3dd7094e | 2183 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
3df64633 | 2184 | if test -n "$file_magic_test_file"; then |
c21b6f87 | 2185 | case $deplibs_check_method in |
3df64633 AO |
2186 | "file_magic "*) |
2187 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3dd7094e | 2188 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3df64633 AO |
2189 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2190 | egrep "$file_magic_regex" > /dev/null; then | |
2191 | : | |
2192 | else | |
2193 | cat <<EOF 1>&2 | |
2194 | ||
2195 | *** Warning: the command libtool uses to detect shared libraries, | |
2196 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2197 | *** The result is that libtool may fail to recognize shared libraries | |
2198 | *** as such. This will affect the creation of libtool libraries that | |
2199 | *** depend on shared libraries, but programs linked with such libtool | |
2200 | *** libraries will work regardless of this problem. Nevertheless, you | |
2201 | *** may want to report the problem to your system manager and/or to | |
2202 | *** bug-libtool@gnu.org | |
2203 | ||
2204 | EOF | |
2205 | fi ;; | |
2206 | esac | |
2207 | fi | |
2208 | break | |
2209 | fi | |
2210 | done | |
2211 | IFS="$ac_save_ifs" | |
3dd7094e | 2212 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
3df64633 AO |
2213 | ;; |
2214 | esac | |
2215 | fi | |
2216 | ||
3dd7094e AO |
2217 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2218 | if test -n "$MAGIC_CMD"; then | |
2219 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
3df64633 AO |
2220 | else |
2221 | echo "$ac_t""no" 1>&6 | |
2222 | fi | |
2223 | ||
2224 | else | |
3dd7094e | 2225 | MAGIC_CMD=: |
3df64633 AO |
2226 | fi |
2227 | fi | |
2228 | ||
2229 | fi | |
2230 | ;; | |
2231 | esac | |
2232 | ||
2233 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2234 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2235 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b731048b | 2236 | echo "configure:2237: checking for $ac_word" >&5 |
3df64633 AO |
2237 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2238 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2239 | else | |
2240 | if test -n "$RANLIB"; then | |
2241 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2242 | else | |
2243 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2244 | ac_dummy="$PATH" | |
2245 | for ac_dir in $ac_dummy; do | |
2246 | test -z "$ac_dir" && ac_dir=. | |
2247 | if test -f $ac_dir/$ac_word; then | |
2248 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2249 | break | |
2250 | fi | |
2251 | done | |
2252 | IFS="$ac_save_ifs" | |
2253 | fi | |
2254 | fi | |
2255 | RANLIB="$ac_cv_prog_RANLIB" | |
2256 | if test -n "$RANLIB"; then | |
2257 | echo "$ac_t""$RANLIB" 1>&6 | |
2258 | else | |
2259 | echo "$ac_t""no" 1>&6 | |
2260 | fi | |
2261 | ||
2262 | ||
2263 | if test -z "$ac_cv_prog_RANLIB"; then | |
2264 | if test -n "$ac_tool_prefix"; then | |
2265 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2266 | set dummy ranlib; ac_word=$2 | |
2267 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b731048b | 2268 | echo "configure:2269: checking for $ac_word" >&5 |
3df64633 AO |
2269 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2271 | else | |
2272 | if test -n "$RANLIB"; then | |
2273 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2274 | else | |
2275 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2276 | ac_dummy="$PATH" | |
2277 | for ac_dir in $ac_dummy; do | |
2278 | test -z "$ac_dir" && ac_dir=. | |
2279 | if test -f $ac_dir/$ac_word; then | |
2280 | ac_cv_prog_RANLIB="ranlib" | |
2281 | break | |
2282 | fi | |
2283 | done | |
2284 | IFS="$ac_save_ifs" | |
2285 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2286 | fi | |
2287 | fi | |
2288 | RANLIB="$ac_cv_prog_RANLIB" | |
2289 | if test -n "$RANLIB"; then | |
2290 | echo "$ac_t""$RANLIB" 1>&6 | |
2291 | else | |
2292 | echo "$ac_t""no" 1>&6 | |
2293 | fi | |
2294 | ||
2295 | else | |
2296 | RANLIB=":" | |
2297 | fi | |
2298 | fi | |
2299 | ||
2300 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2301 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2302 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b731048b | 2303 | echo "configure:2304: checking for $ac_word" >&5 |
3df64633 AO |
2304 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2306 | else | |
2307 | if test -n "$STRIP"; then | |
2308 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2309 | else | |
2310 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2311 | ac_dummy="$PATH" | |
2312 | for ac_dir in $ac_dummy; do | |
2313 | test -z "$ac_dir" && ac_dir=. | |
2314 | if test -f $ac_dir/$ac_word; then | |
2315 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2316 | break | |
2317 | fi | |
2318 | done | |
2319 | IFS="$ac_save_ifs" | |
2320 | fi | |
2321 | fi | |
2322 | STRIP="$ac_cv_prog_STRIP" | |
2323 | if test -n "$STRIP"; then | |
2324 | echo "$ac_t""$STRIP" 1>&6 | |
2325 | else | |
2326 | echo "$ac_t""no" 1>&6 | |
2327 | fi | |
2328 | ||
2329 | ||
2330 | if test -z "$ac_cv_prog_STRIP"; then | |
2331 | if test -n "$ac_tool_prefix"; then | |
2332 | # Extract the first word of "strip", so it can be a program name with args. | |
2333 | set dummy strip; ac_word=$2 | |
2334 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b731048b | 2335 | echo "configure:2336: checking for $ac_word" >&5 |
3df64633 AO |
2336 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2338 | else | |
2339 | if test -n "$STRIP"; then | |
2340 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2341 | else | |
2342 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2343 | ac_dummy="$PATH" | |
2344 | for ac_dir in $ac_dummy; do | |
2345 | test -z "$ac_dir" && ac_dir=. | |
2346 | if test -f $ac_dir/$ac_word; then | |
2347 | ac_cv_prog_STRIP="strip" | |
2348 | break | |
2349 | fi | |
2350 | done | |
2351 | IFS="$ac_save_ifs" | |
2352 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
2353 | fi | |
2354 | fi | |
2355 | STRIP="$ac_cv_prog_STRIP" | |
2356 | if test -n "$STRIP"; then | |
2357 | echo "$ac_t""$STRIP" 1>&6 | |
2358 | else | |
2359 | echo "$ac_t""no" 1>&6 | |
2360 | fi | |
2361 | ||
2362 | else | |
2363 | STRIP=":" | |
2364 | fi | |
2365 | fi | |
2366 | ||
b2dad0e3 | 2367 | |
b2dad0e3 BK |
2368 | # Check for any special flags to pass to ltconfig. |
2369 | libtool_flags="--cache-file=$cache_file" | |
2370 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
2371 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
2372 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
c21b6f87 PE |
2373 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
2374 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
3840fa2a BK |
2375 | libtool_flags="$libtool_flags --enable-dlopen" |
2376 | ||
2377 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2378 | if test "${enable_libtool_lock+set}" = set; then | |
2379 | enableval="$enable_libtool_lock" | |
2380 | : | |
2381 | fi | |
2382 | ||
2383 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2384 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
b2dad0e3 | 2385 | |
3df64633 AO |
2386 | # Check whether --with-pic or --without-pic was given. |
2387 | if test "${with_pic+set}" = set; then | |
2388 | withval="$with_pic" | |
2389 | pic_mode="$withval" | |
2390 | else | |
2391 | pic_mode=default | |
2392 | fi | |
2393 | ||
2394 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
2395 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2396 | ||
b2dad0e3 BK |
2397 | # Some flags need to be propagated to the compiler or linker for good |
2398 | # libtool support. | |
c21b6f87 | 2399 | case $host in |
b2dad0e3 BK |
2400 | *-*-irix6*) |
2401 | # Find out which ABI we are using. | |
b731048b BK |
2402 | echo '#line 2403 "configure"' > conftest.$ac_ext |
2403 | if { (eval echo configure:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3a15abf1 BK |
2404 | if test "$lt_cv_prog_gnu_ld" = yes; then |
2405 | case `/usr/bin/file conftest.$ac_objext` in | |
2406 | *32-bit*) | |
2407 | LD="${LD-ld} -melf32bsmip" | |
2408 | ;; | |
2409 | *N32*) | |
2410 | LD="${LD-ld} -melf32bmipn32" | |
2411 | ;; | |
2412 | *64-bit*) | |
2413 | LD="${LD-ld} -melf64bmip" | |
2414 | ;; | |
2415 | esac | |
2416 | else | |
c21b6f87 | 2417 | case `/usr/bin/file conftest.$ac_objext` in |
b2dad0e3 BK |
2418 | *32-bit*) |
2419 | LD="${LD-ld} -32" | |
2420 | ;; | |
2421 | *N32*) | |
2422 | LD="${LD-ld} -n32" | |
2423 | ;; | |
2424 | *64-bit*) | |
2425 | LD="${LD-ld} -64" | |
2426 | ;; | |
2427 | esac | |
3a15abf1 | 2428 | fi |
b2dad0e3 BK |
2429 | fi |
2430 | rm -rf conftest* | |
2431 | ;; | |
2432 | ||
38cca750 BK |
2433 | ia64-*-hpux*) |
2434 | # Find out which ABI we are using. | |
2435 | echo 'int i;' > conftest.$ac_ext | |
b731048b | 2436 | if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38cca750 BK |
2437 | case "`/usr/bin/file conftest.o`" in |
2438 | *ELF-32*) | |
2439 | HPUX_IA64_MODE="32" | |
2440 | ;; | |
2441 | *ELF-64*) | |
2442 | HPUX_IA64_MODE="64" | |
2443 | ;; | |
2444 | esac | |
2445 | fi | |
2446 | rm -rf conftest* | |
2447 | ;; | |
2448 | ||
162c7cd9 SW |
2449 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
2450 | # Find out which ABI we are using. | |
2451 | echo 'int i;' > conftest.$ac_ext | |
b731048b | 2452 | if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
162c7cd9 SW |
2453 | case "`/usr/bin/file conftest.o`" in |
2454 | *32-bit*) | |
2455 | case $host in | |
2456 | x86_64-*linux*) | |
2457 | LD="${LD-ld} -m elf_i386" | |
2458 | ;; | |
2459 | ppc64-*linux*) | |
2460 | LD="${LD-ld} -m elf32ppclinux" | |
2461 | ;; | |
2462 | s390x-*linux*) | |
2463 | LD="${LD-ld} -m elf_s390" | |
2464 | ;; | |
2465 | sparc64-*linux*) | |
2466 | LD="${LD-ld} -m elf32_sparc" | |
2467 | ;; | |
2468 | esac | |
2469 | ;; | |
2470 | *64-bit*) | |
2471 | case $host in | |
2472 | x86_64-*linux*) | |
2473 | LD="${LD-ld} -m elf_x86_64" | |
2474 | ;; | |
2475 | ppc*-*linux*|powerpc*-*linux*) | |
2476 | LD="${LD-ld} -m elf64ppc" | |
2477 | ;; | |
2478 | s390*-*linux*) | |
2479 | LD="${LD-ld} -m elf64_s390" | |
2480 | ;; | |
2481 | sparc*-*linux*) | |
2482 | LD="${LD-ld} -m elf64_sparc" | |
2483 | ;; | |
2484 | esac | |
2485 | ;; | |
2486 | esac | |
2487 | fi | |
2488 | rm -rf conftest* | |
2489 | ;; | |
2490 | ||
b2dad0e3 BK |
2491 | *-*-sco3.2v5*) |
2492 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
2493 | SAVE_CFLAGS="$CFLAGS" | |
2494 | CFLAGS="$CFLAGS -belf" | |
2495 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
b731048b | 2496 | echo "configure:2497: checking whether the C compiler needs -belf" >&5 |
b2dad0e3 BK |
2497 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
2498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2499 | else | |
3df64633 AO |
2500 | |
2501 | ac_ext=c | |
2502 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2503 | ac_cpp='$CPP $CPPFLAGS' | |
2504 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2505 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2506 | cross_compiling=$ac_cv_prog_cc_cross | |
2507 | ||
2508 | cat > conftest.$ac_ext <<EOF | |
b731048b | 2509 | #line 2510 "configure" |
b2dad0e3 BK |
2510 | #include "confdefs.h" |
2511 | ||
2512 | int main() { | |
2513 | ||
2514 | ; return 0; } | |
2515 | EOF | |
b731048b | 2516 | if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2dad0e3 BK |
2517 | rm -rf conftest* |
2518 | lt_cv_cc_needs_belf=yes | |
2519 | else | |
2520 | echo "configure: failed program was:" >&5 | |
2521 | cat conftest.$ac_ext >&5 | |
2522 | rm -rf conftest* | |
2523 | lt_cv_cc_needs_belf=no | |
2524 | fi | |
2525 | rm -f conftest* | |
3df64633 AO |
2526 | ac_ext=c |
2527 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2528 | ac_cpp='$CPP $CPPFLAGS' | |
2529 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2530 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2531 | cross_compiling=$ac_cv_prog_cc_cross | |
2532 | ||
b2dad0e3 BK |
2533 | fi |
2534 | ||
2535 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2536 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2537 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2538 | CFLAGS="$SAVE_CFLAGS" | |
2539 | fi | |
2540 | ;; | |
2541 | ||
2542 | ||
2543 | esac | |
2544 | ||
3df64633 | 2545 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
b731048b | 2546 | echo "configure:2547: checking how to run the C++ preprocessor" >&5 |
3df64633 AO |
2547 | if test -z "$CXXCPP"; then |
2548 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
2549 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2550 | else | |
2551 | ac_ext=C | |
2552 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2553 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2554 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2555 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2556 | cross_compiling=$ac_cv_prog_cxx_cross | |
2557 | CXXCPP="${CXX-g++} -E" | |
2558 | cat > conftest.$ac_ext <<EOF | |
b731048b | 2559 | #line 2560 "configure" |
3df64633 AO |
2560 | #include "confdefs.h" |
2561 | #include <stdlib.h> | |
2562 | EOF | |
2563 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b731048b | 2564 | { (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3df64633 AO |
2565 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2566 | if test -z "$ac_err"; then | |
2567 | : | |
2568 | else | |
2569 | echo "$ac_err" >&5 | |
2570 | echo "configure: failed program was:" >&5 | |
2571 | cat conftest.$ac_ext >&5 | |
2572 | rm -rf conftest* | |
2573 | CXXCPP=/lib/cpp | |
2574 | fi | |
2575 | rm -f conftest* | |
2576 | ac_cv_prog_CXXCPP="$CXXCPP" | |
2577 | ac_ext=c | |
2578 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2579 | ac_cpp='$CPP $CPPFLAGS' | |
2580 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2581 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2582 | cross_compiling=$ac_cv_prog_cc_cross | |
2583 | fi | |
2584 | fi | |
2585 | CXXCPP="$ac_cv_prog_CXXCPP" | |
2586 | echo "$ac_t""$CXXCPP" 1>&6 | |
2587 | ||
b2dad0e3 BK |
2588 | |
2589 | # Save cache, so that ltconfig can load it | |
2590 | cat > confcache <<\EOF | |
2591 | # This file is a shell script that caches the results of configure | |
2592 | # tests run on this system so they can be shared between configure | |
2593 | # scripts and configure runs. It is not useful on other systems. | |
2594 | # If it contains results you don't want to keep, you may remove or edit it. | |
2595 | # | |
2596 | # By default, configure uses ./config.cache as the cache file, | |
2597 | # creating it if it does not exist already. You can give configure | |
2598 | # the --cache-file=FILE option to use a different cache file; that is | |
2599 | # what configure does when it calls configure scripts in | |
2600 | # subdirectories, so they share the cache. | |
2601 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2602 | # config.status only pays attention to the cache file if you give it the | |
2603 | # --recheck option to rerun configure. | |
2604 | # | |
2605 | EOF | |
2606 | # The following way of writing the cache mishandles newlines in values, | |
2607 | # but we know of no workaround that is simple, portable, and efficient. | |
2608 | # So, don't put newlines in cache variables' values. | |
2609 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2610 | # and sets the high bit in the cache file unless we assign to the vars. | |
2611 | (set) 2>&1 | | |
2612 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2613 | *ac_space=\ *) | |
2614 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2615 | # turns \\\\ into \\, and sed turns \\ into \). | |
2616 | sed -n \ | |
2617 | -e "s/'/'\\\\''/g" \ | |
2618 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2619 | ;; | |
2620 | *) | |
2621 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2622 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2623 | ;; | |
2624 | esac >> confcache | |
2625 | if cmp -s $cache_file confcache; then | |
2626 | : | |
2627 | else | |
2628 | if test -w $cache_file; then | |
2629 | echo "updating cache $cache_file" | |
2630 | cat confcache > $cache_file | |
2631 | else | |
2632 | echo "not updating unwritable cache $cache_file" | |
2633 | fi | |
2634 | fi | |
2635 | rm -f confcache | |
2636 | ||
2637 | ||
2638 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
3df64633 | 2639 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
3dd7094e | 2640 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
3df64633 AO |
2641 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2642 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2643 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2644 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
b2dad0e3 | 2645 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
3df64633 | 2646 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
b2dad0e3 BK |
2647 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
2648 | ||
2649 | # Reload cache, that may have been modified by ltconfig | |
2650 | if test -r "$cache_file"; then | |
2651 | echo "loading cache $cache_file" | |
2652 | . $cache_file | |
2653 | else | |
2654 | echo "creating cache $cache_file" | |
2655 | > $cache_file | |
2656 | fi | |
2657 | ||
2658 | ||
2659 | # This can be used to rebuild libtool when needed | |
3df64633 | 2660 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2dad0e3 BK |
2661 | |
2662 | # Always use our own libtool. | |
2663 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2664 | ||
2665 | # Redirect the config.log output again, so that the ltconfig log is not | |
2666 | # clobbered by the next message. | |
2667 | exec 5>>./config.log | |
2668 | ||
3df64633 AO |
2669 | |
2670 | ||
3df64633 AO |
2671 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" |
2672 | lt_save_CC="$CC" | |
2673 | lt_save_CFLAGS="$CFLAGS" | |
2674 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
c21b6f87 | 2675 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
3df64633 AO |
2676 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2677 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2678 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2679 | deplibs_check_method="$deplibs_check_method" \ | |
2680 | file_magic_cmd="$file_magic_cmd" \ | |
2681 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | |
2682 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \ | |
2683 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; } | |
2684 | CC="$lt_save_CC" | |
2685 | CFLAGS="$lt_save_CFLAGS" | |
2686 | ||
2687 | # Redirect the config.log output again, so that the ltconfig log is not | |
2688 | # clobbered by the next message. | |
2689 | exec 5>>./config.log | |
2690 | ||
3df64633 AO |
2691 | |
2692 | ||
2693 | ||
2694 | ||
3dd7094e | 2695 | |
34791641 PE |
2696 | |
2697 | ||
33590f13 | 2698 | |
33590f13 | 2699 | # Check for c++ or library specific bits that don't require linking. |
5780a46b | 2700 | echo $ac_n "checking for GNU make""... $ac_c" 1>&6 |
b731048b | 2701 | echo "configure:2702: checking for GNU make" >&5 |
5780a46b BK |
2702 | if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then |
2703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2704 | else | |
2705 | _cv_gnu_make_command='' ; | |
57d278be | 2706 | for a in "${MAKE-make}" make gmake gnumake ; do |
ea0c0b6e | 2707 | if ( $a --version 2> /dev/null | grep -c GNU > /dev/null ) |
79f5e38e | 2708 | then |
5780a46b BK |
2709 | _cv_gnu_make_command=$a ; |
2710 | break; | |
2711 | fi | |
2712 | done ; | |
2713 | ||
2714 | fi | |
2715 | ||
2716 | echo "$ac_t""$_cv_gnu_make_command" 1>&6 ; | |
2717 | if test "x$_cv_gnu_make_command" != "x" ; then | |
2718 | ifGNUmake='' ; | |
2719 | else | |
2720 | ifGNUmake='#' ; | |
2721 | fi | |
2722 | ||
2723 | ||
249ed716 BK |
2724 | #GLIBCPP_CHECK_COMPILER_VERSION |
2725 | ||
2726 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
2727 | ac_save_CXXFLAGS="$CXXFLAGS" | |
2728 | CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header' | |
2729 | ||
2730 | echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6 | |
b731048b | 2731 | echo "configure:2732: checking for compiler that seems to compile .gch files" >&5 |
249ed716 BK |
2732 | if test x${glibcpp_pch_comp+set} != xset; then |
2733 | if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then | |
2734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2735 | else | |
2736 | ||
2737 | ||
2738 | ac_ext=C | |
2739 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2740 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2741 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2742 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2743 | cross_compiling=$ac_cv_prog_cxx_cross | |
2744 | ||
2745 | cat > conftest.$ac_ext <<EOF | |
b731048b | 2746 | #line 2747 "configure" |
249ed716 BK |
2747 | #include "confdefs.h" |
2748 | #include <math.h> | |
2749 | ||
2750 | int main() { | |
2751 | (0); | |
2752 | ; return 0; } | |
2753 | EOF | |
b731048b | 2754 | if { (eval echo configure:2755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
249ed716 BK |
2755 | rm -rf conftest* |
2756 | glibcpp_pch_comp=yes | |
2757 | else | |
2758 | echo "configure: failed program was:" >&5 | |
2759 | cat conftest.$ac_ext >&5 | |
2760 | rm -rf conftest* | |
2761 | glibcpp_pch_comp=no | |
2762 | fi | |
2763 | rm -f conftest* | |
2764 | ac_ext=c | |
2765 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2766 | ac_cpp='$CPP $CPPFLAGS' | |
2767 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2768 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2769 | cross_compiling=$ac_cv_prog_cc_cross | |
2770 | ||
2771 | ||
2772 | fi | |
2773 | ||
2774 | fi | |
2775 | echo "$ac_t""$glibcpp_pch_comp" 1>&6 | |
2776 | ||
2777 | CXXFLAGS="$ac_save_CXXFLAGS" | |
2778 | ||
2779 | ||
2780 | if test "$glibcpp_pch_comp" = yes; then | |
2781 | GLIBCPP_BUILD_PCH_TRUE= | |
2782 | GLIBCPP_BUILD_PCH_FALSE='#' | |
2783 | else | |
2784 | GLIBCPP_BUILD_PCH_TRUE='#' | |
2785 | GLIBCPP_BUILD_PCH_FALSE= | |
2786 | fi | |
bddc3107 RO |
2787 | if test "$glibcpp_pch_comp" = yes; then |
2788 | glibcpp_PCHFLAGS="-include bits/stdc++.h" | |
2789 | else | |
2790 | glibcpp_PCHFLAGS="" | |
2791 | fi | |
2792 | ||
249ed716 | 2793 | |
04e78786 | 2794 | |
33590f13 | 2795 | # Enable all the variable C++ stuff. C_MBCHAR must come early. |
c470c17d | 2796 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
23c84d33 | 2797 | echo "configure:2798: checking how to run the C preprocessor" >&5 |
c470c17d BK |
2798 | # On Suns, sometimes $CPP names a directory. |
2799 | if test -n "$CPP" && test -d "$CPP"; then | |
2800 | CPP= | |
2801 | fi | |
2802 | if test -z "$CPP"; then | |
2803 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
b2dad0e3 BK |
2804 | echo $ac_n "(cached) $ac_c" 1>&6 |
2805 | else | |
c470c17d BK |
2806 | # This must be in double quotes, not single quotes, because CPP may get |
2807 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2808 | CPP="${CC-cc} -E" | |
2809 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2810 | # not just through cpp. | |
b2dad0e3 | 2811 | cat > conftest.$ac_ext <<EOF |
23c84d33 | 2812 | #line 2813 "configure" |
b2dad0e3 | 2813 | #include "confdefs.h" |
c470c17d BK |
2814 | #include <assert.h> |
2815 | Syntax Error | |
b2dad0e3 BK |
2816 | EOF |
2817 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
23c84d33 | 2818 | { (eval echo configure:2819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b2dad0e3 BK |
2819 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2820 | if test -z "$ac_err"; then | |
2821 | : | |
2822 | else | |
2823 | echo "$ac_err" >&5 | |
2824 | echo "configure: failed program was:" >&5 | |
2825 | cat conftest.$ac_ext >&5 | |
2826 | rm -rf conftest* | |
c470c17d BK |
2827 | CPP="${CC-cc} -E -traditional-cpp" |
2828 | cat > conftest.$ac_ext <<EOF | |
23c84d33 | 2829 | #line 2830 "configure" |
c470c17d BK |
2830 | #include "confdefs.h" |
2831 | #include <assert.h> | |
2832 | Syntax Error | |
2833 | EOF | |
2834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
23c84d33 | 2835 | { (eval echo configure:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c470c17d BK |
2836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2837 | if test -z "$ac_err"; then | |
2838 | : | |
2839 | else | |
2840 | echo "$ac_err" >&5 | |
2841 | echo "configure: failed program was:" >&5 | |
2842 | cat conftest.$ac_ext >&5 | |
2843 | rm -rf conftest* | |
2844 | CPP="${CC-cc} -nologo -E" | |
2845 | cat > conftest.$ac_ext <<EOF | |
23c84d33 | 2846 | #line 2847 "configure" |
c470c17d BK |
2847 | #include "confdefs.h" |
2848 | #include <assert.h> | |
2849 | Syntax Error | |
2850 | EOF | |
2851 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
23c84d33 | 2852 | { (eval echo configure:2853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c470c17d BK |
2853 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2854 | if test -z "$ac_err"; then | |
2855 | : | |
2856 | else | |
2857 | echo "$ac_err" >&5 | |
2858 | echo "configure: failed program was:" >&5 | |
2859 | cat conftest.$ac_ext >&5 | |
2860 | rm -rf conftest* | |
2861 | CPP=/lib/cpp | |
b2dad0e3 BK |
2862 | fi |
2863 | rm -f conftest* | |
2864 | fi | |
33590f13 BK |
2865 | rm -f conftest* |
2866 | fi | |
2867 | rm -f conftest* | |
2868 | ac_cv_prog_CPP="$CPP" | |
2869 | fi | |
2870 | CPP="$ac_cv_prog_CPP" | |
2871 | else | |
2872 | ac_cv_prog_CPP="$CPP" | |
2873 | fi | |
2874 | echo "$ac_t""$CPP" 1>&6 | |
2875 | ||
2876 | ||
2877 | echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6 | |
23c84d33 | 2878 | echo "configure:2879: checking for cstdio to use" >&5 |
33590f13 BK |
2879 | # Check whether --enable-cstdio or --disable-cstdio was given. |
2880 | if test "${enable_cstdio+set}" = set; then | |
2881 | enableval="$enable_cstdio" | |
2882 | if test x$enable_cstdio = xno; then | |
2883 | enable_cstdio=stdio | |
2884 | fi | |
2885 | else | |
2886 | enable_cstdio=stdio | |
2887 | fi | |
2888 | ||
2889 | ||
2890 | enable_cstdio_flag=$enable_cstdio | |
2891 | ||
2892 | case x${enable_cstdio_flag} in | |
2893 | xlibio) | |
2894 | CSTDIO_H=config/io/c_io_libio.h | |
2895 | BASIC_FILE_H=config/io/basic_file_libio.h | |
2896 | BASIC_FILE_CC=config/io/basic_file_libio.cc | |
2897 | echo "$ac_t""libio" 1>&6 | |
2898 | ||
2899 | # see if we are on a system with libio native (ie, linux) | |
2900 | ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'` | |
2901 | echo $ac_n "checking for libio.h""... $ac_c" 1>&6 | |
23c84d33 | 2902 | echo "configure:2903: checking for libio.h" >&5 |
33590f13 BK |
2903 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2905 | else | |
2906 | cat > conftest.$ac_ext <<EOF | |
23c84d33 | 2907 | #line 2908 "configure" |
33590f13 BK |
2908 | #include "confdefs.h" |
2909 | #include <libio.h> | |
2910 | EOF | |
2911 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
23c84d33 | 2912 | { (eval echo configure:2913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
33590f13 BK |
2913 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2914 | if test -z "$ac_err"; then | |
2915 | rm -rf conftest* | |
2916 | eval "ac_cv_header_$ac_safe=yes" | |
2917 | else | |
2918 | echo "$ac_err" >&5 | |
2919 | echo "configure: failed program was:" >&5 | |
2920 | cat conftest.$ac_ext >&5 | |
2921 | rm -rf conftest* | |
2922 | eval "ac_cv_header_$ac_safe=no" | |
2923 | fi | |
2924 | rm -f conftest* | |
2925 | fi | |
2926 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2927 | echo "$ac_t""yes" 1>&6 | |
2928 | has_libio=yes | |
2929 | else | |
2930 | echo "$ac_t""no" 1>&6 | |
2931 | has_libio=no | |
2932 | fi | |
2933 | ||
2934 | ||
2935 | # Need to check and see what version of glibc is being used. If | |
37bc6ca2 | 2936 | # it's not glibc-2.2 or higher, then we'll need to go ahead and |
33590f13 BK |
2937 | # compile most of libio for linux systems. |
2938 | if test x$has_libio = x"yes"; then | |
2939 | case "$target" in | |
2940 | *-*-linux*) | |
2941 | echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6 | |
23c84d33 | 2942 | echo "configure:2943: checking for glibc version >= 2.2" >&5 |
33590f13 | 2943 | cat > conftest.$ac_ext <<EOF |
23c84d33 | 2944 | #line 2945 "configure" |
33590f13 BK |
2945 | #include "confdefs.h" |
2946 | ||
2947 | #include <features.h> | |
37bc6ca2 | 2948 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) |
33590f13 BK |
2949 | ok |
2950 | #endif | |
2951 | ||
2952 | EOF | |
2953 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2954 | egrep "ok" >/dev/null 2>&1; then | |
2955 | rm -rf conftest* | |
2956 | glibc_satisfactory=yes | |
2957 | else | |
2958 | rm -rf conftest* | |
2959 | glibc_satisfactory=no | |
2960 | fi | |
2961 | rm -f conftest* | |
2962 | ||
2963 | echo "$ac_t""$glibc_satisfactory" 1>&6 | |
2964 | ;; | |
2965 | esac | |
2966 | ||
2967 | # XXX at the moment, admit defeat and force the recompilation | |
2968 | # XXX of glibc even on glibc-2.2 systems, because libio is not synched. | |
37bc6ca2 | 2969 | glibc_satisfactory=no |
33590f13 BK |
2970 | |
2971 | if test x$glibc_satisfactory = x"yes"; then | |
2972 | need_libio=no | |
37bc6ca2 | 2973 | need_wlibio=no |
33590f13 BK |
2974 | else |
2975 | need_libio=yes | |
2976 | # bkoz XXX need to add checks to enable this | |
2977 | # pme XXX here's a first pass at such a check | |
2978 | if test x$enable_c_mbchar != xno; then | |
2979 | need_wlibio=yes | |
2980 | else | |
2981 | need_wlibio=no | |
2982 | fi | |
2983 | fi | |
2984 | ||
2985 | else | |
2986 | # Using libio, but <libio.h> doesn't exist on the target system. . . | |
2987 | need_libio=yes | |
2988 | # bkoz XXX need to add checks to enable this | |
2989 | # pme XXX here's a first pass at such a check | |
2990 | if test x$enable_c_mbchar != xno; then | |
2991 | need_wlibio=yes | |
2992 | else | |
2993 | need_wlibio=no | |
2994 | fi | |
2995 | fi | |
2996 | ;; | |
2997 | xstdio | x | xno | xnone | xyes) | |
2998 | # default | |
2999 | CSTDIO_H=config/io/c_io_stdio.h | |
3000 | BASIC_FILE_H=config/io/basic_file_stdio.h | |
3001 | BASIC_FILE_CC=config/io/basic_file_stdio.cc | |
3002 | echo "$ac_t""stdio" 1>&6 | |
3003 | ||
3004 | # We're not using stdio. | |
3005 | need_libio=no | |
3006 | need_wlibio=no | |
3007 | ;; | |
3008 | *) | |
3009 | echo "$enable_cstdio is an unknown io package" 1>&2 | |
3010 | exit 1 | |
3011 | ;; | |
3012 | esac | |
3013 | ||
3014 | ||
3015 | ||
3016 | ||
3017 | # 2000-08-04 bkoz hack | |
3018 | CCODECVT_C=config/io/c_io_libio_codecvt.c | |
3019 | ||
3020 | # 2000-08-04 bkoz hack | |
3021 | ||
3022 | ||
3023 | ||
4e10943d BK |
3024 | if test "$need_libio" = yes || test "$need_wlibio" = yes; then |
3025 | GLIBCPP_BUILD_LIBIO_TRUE= | |
3026 | GLIBCPP_BUILD_LIBIO_FALSE='#' | |
b2dad0e3 | 3027 | else |
4e10943d BK |
3028 | GLIBCPP_BUILD_LIBIO_TRUE='#' |
3029 | GLIBCPP_BUILD_LIBIO_FALSE= | |
3030 | fi | |
3031 | ||
3032 | ||
3033 | if test "$need_libio" = yes; then | |
3034 | GLIBCPP_NEED_LIBIO_TRUE= | |
3035 | GLIBCPP_NEED_LIBIO_FALSE='#' | |
b2dad0e3 | 3036 | else |
4e10943d BK |
3037 | GLIBCPP_NEED_LIBIO_TRUE='#' |
3038 | GLIBCPP_NEED_LIBIO_FALSE= | |
b2dad0e3 | 3039 | fi |
4e10943d BK |
3040 | |
3041 | ||
3042 | if test "$need_wlibio" = yes; then | |
3043 | GLIBCPP_NEED_WLIBIO_TRUE= | |
3044 | GLIBCPP_NEED_WLIBIO_FALSE='#' | |
3045 | else | |
3046 | GLIBCPP_NEED_WLIBIO_TRUE='#' | |
3047 | GLIBCPP_NEED_WLIBIO_FALSE= | |
b2dad0e3 | 3048 | fi |
4e10943d BK |
3049 | if test "$need_libio" = yes || test "$need_wlibio" = yes; then |
3050 | libio_la=../libio/libio.la | |
3051 | else | |
3052 | libio_la= | |
3053 | fi | |
3054 | ||
3055 | ||
3056 | ||
3057 | echo $ac_n "checking for clocale to use""... $ac_c" 1>&6 | |
23c84d33 | 3058 | echo "configure:3059: checking for clocale to use" >&5 |
4e10943d BK |
3059 | # Check whether --enable-clocale or --disable-clocale was given. |
3060 | if test "${enable_clocale+set}" = set; then | |
3061 | enableval="$enable_clocale" | |
3062 | if test x$enable_clocale = xno; then | |
56deb74c | 3063 | enable_clocale=no |
4e10943d | 3064 | fi |
b2dad0e3 | 3065 | else |
56deb74c | 3066 | enable_clocale=no |
b2dad0e3 BK |
3067 | fi |
3068 | ||
20427c6b | 3069 | |
4e10943d | 3070 | enable_clocale_flag=$enable_clocale |
dd75251f | 3071 | |
56deb74c BK |
3072 | if test x$enable_clocale_flag = xno; then |
3073 | case x${target_os} in | |
3074 | xlinux* | xgnu*) | |
3075 | cat > conftest.$ac_ext <<EOF | |
23c84d33 | 3076 | #line 3077 "configure" |
56deb74c BK |
3077 | #include "confdefs.h" |
3078 | ||
3079 | #include <features.h> | |
37bc6ca2 | 3080 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) |
1451a492 | 3081 | _GLIBCPP_ok |
56deb74c BK |
3082 | #endif |
3083 | ||
3084 | EOF | |
3085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1451a492 | 3086 | egrep "_GLIBCPP_ok" >/dev/null 2>&1; then |
56deb74c BK |
3087 | rm -rf conftest* |
3088 | enable_clocale_flag=gnu | |
3089 | else | |
3090 | rm -rf conftest* | |
3091 | enable_clocale_flag=generic | |
3092 | fi | |
3093 | rm -f conftest* | |
3094 | ||
1451a492 BK |
3095 | |
3096 | # Test for bugs early in glibc-2.2.x series | |
3097 | if test x$enable_clocale_flag = xgnu; then | |
3098 | if test "$cross_compiling" = yes; then | |
3099 | enable_clocale_flag=generic | |
3100 | else | |
3101 | cat > conftest.$ac_ext <<EOF | |
23c84d33 | 3102 | #line 3103 "configure" |
1451a492 BK |
3103 | #include "confdefs.h" |
3104 | ||
3105 | #define _GNU_SOURCE 1 | |
3106 | #include <locale.h> | |
89671b70 JJ |
3107 | #include <string.h> |
3108 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) | |
3109 | extern __typeof(newlocale) __newlocale; | |
3110 | extern __typeof(duplocale) __duplocale; | |
3111 | extern __typeof(strcoll_l) __strcoll_l; | |
3112 | #endif | |
1451a492 BK |
3113 | int main() |
3114 | { | |
3115 |