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