]>
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= | |
6706f116 | 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 | |
6706f116 | 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 | ||
6706f116 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. | |
6706f116 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 |
6706f116 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 | |
596 | # exported. | |
597 | ORIGINAL_LD_FOR_MULTILIBS=$LD | |
598 | ||
33590f13 | 599 | PACKAGE=libstdc++ |
33590f13 | 600 | |
4e10943d BK |
601 | # For typical GNU versioning info, format is MAJOR.MINOR.MICRO |
602 | release_VERSION=3.1.0 | |
603 | ||
604 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
605 | libtool_VERSION=4:0:0 | |
33590f13 BK |
606 | |
607 | ||
58b08ac3 | 608 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. |
d2caef2e PE |
609 | # AC 2.5x sets target_alias iff the user specified --target, but we use it |
610 | # everywhere, so we set it here just to be sure. In AC 2.13 | |
611 | # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM. | |
b2dad0e3 | 612 | ac_aux_dir= |
33590f13 | 613 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
b2dad0e3 BK |
614 | if test -f $ac_dir/install-sh; then |
615 | ac_aux_dir=$ac_dir | |
616 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
617 | break | |
618 | elif test -f $ac_dir/install.sh; then | |
619 | ac_aux_dir=$ac_dir | |
620 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
621 | break | |
622 | fi | |
623 | done | |
624 | if test -z "$ac_aux_dir"; then | |
33590f13 | 625 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
b2dad0e3 BK |
626 | fi |
627 | ac_config_guess=$ac_aux_dir/config.guess | |
628 | ac_config_sub=$ac_aux_dir/config.sub | |
629 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
630 | ||
b2dad0e3 BK |
631 | |
632 | # Do some error checking and defaulting for the host and target type. | |
633 | # The inputs are: | |
634 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
635 | # | |
636 | # The rules are: | |
637 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
638 | # same time. | |
639 | # 2. Host defaults to nonopt. | |
640 | # 3. If nonopt is not specified, then host defaults to the current host, | |
641 | # as determined by config.guess. | |
642 | # 4. Target and build default to nonopt. | |
643 | # 5. If nonopt is not specified, then target and build default to host. | |
644 | ||
645 | # The aliases save the names the user supplied, while $host etc. | |
646 | # will get canonicalized. | |
647 | case $host---$target---$nonopt in | |
648 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
649 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
650 | esac | |
651 | ||
652 | ||
653 | # Make sure we can run config.sub. | |
654 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
655 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
656 | fi | |
657 | ||
658 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
6706f116 | 659 | echo "configure:660: checking host system type" >&5 |
b2dad0e3 BK |
660 | |
661 | host_alias=$host | |
662 | case "$host_alias" in | |
663 | NONE) | |
664 | case $nonopt in | |
665 | NONE) | |
666 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
667 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
668 | fi ;; | |
669 | *) host_alias=$nonopt ;; | |
670 | esac ;; | |
671 | esac | |
672 | ||
673 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
674 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
675 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
676 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
677 | echo "$ac_t""$host" 1>&6 | |
678 | ||
679 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
6706f116 | 680 | echo "configure:681: checking target system type" >&5 |
b2dad0e3 BK |
681 | |
682 | target_alias=$target | |
683 | case "$target_alias" in | |
684 | NONE) | |
685 | case $nonopt in | |
686 | NONE) target_alias=$host_alias ;; | |
687 | *) target_alias=$nonopt ;; | |
688 | esac ;; | |
689 | esac | |
690 | ||
691 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
692 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
693 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
694 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
695 | echo "$ac_t""$target" 1>&6 | |
696 | ||
697 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
6706f116 | 698 | echo "configure:699: checking build system type" >&5 |
b2dad0e3 BK |
699 | |
700 | build_alias=$build | |
701 | case "$build_alias" in | |
702 | NONE) | |
703 | case $nonopt in | |
704 | NONE) build_alias=$host_alias ;; | |
705 | *) build_alias=$nonopt ;; | |
706 | esac ;; | |
707 | esac | |
708 | ||
709 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
710 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
711 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
712 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
713 | echo "$ac_t""$build" 1>&6 | |
714 | ||
715 | test "$host_alias" != "$target_alias" && | |
716 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
717 | NONENONEs,x,x, && | |
718 | program_prefix=${target_alias}- | |
719 | ||
52b55e7d PE |
720 | target_alias=${target_alias-$target} |
721 | ||
b2dad0e3 | 722 | |
b2dad0e3 BK |
723 | # Find a good install program. We prefer a C program (faster), |
724 | # so one script is as good as another. But avoid the broken or | |
725 | # incompatible versions: | |
726 | # SysV /etc/install, /usr/sbin/install | |
727 | # SunOS /usr/etc/install | |
728 | # IRIX /sbin/install | |
729 | # AIX /bin/install | |
730 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
731 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
732 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
733 | # ./install, which can be erroneously created by make from ./install.sh. | |
734 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
6706f116 | 735 | echo "configure:736: checking for a BSD compatible install" >&5 |
b2dad0e3 BK |
736 | if test -z "$INSTALL"; then |
737 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
739 | else | |
740 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
741 | for ac_dir in $PATH; do | |
742 | # Account for people who put trailing slashes in PATH elements. | |
743 | case "$ac_dir/" in | |
744 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
745 | *) | |
746 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
747 | # Don't use installbsd from OSF since it installs stuff as root | |
748 | # by default. | |
749 | for ac_prog in ginstall scoinst install; do | |
750 | if test -f $ac_dir/$ac_prog; then | |
751 | if test $ac_prog = install && | |
752 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
753 | # AIX install. It has an incompatible calling convention. | |
754 | : | |
755 | else | |
756 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
757 | break 2 | |
758 | fi | |
759 | fi | |
760 | done | |
761 | ;; | |
762 | esac | |
763 | done | |
764 | IFS="$ac_save_IFS" | |
765 | ||
766 | fi | |
767 | if test "${ac_cv_path_install+set}" = set; then | |
768 | INSTALL="$ac_cv_path_install" | |
769 | else | |
770 | # As a last resort, use the slow shell script. We don't cache a | |
771 | # path for INSTALL within a source directory, because that will | |
772 | # break other packages using the cache if that directory is | |
773 | # removed, or if the path is relative. | |
774 | INSTALL="$ac_install_sh" | |
775 | fi | |
776 | fi | |
777 | echo "$ac_t""$INSTALL" 1>&6 | |
778 | ||
779 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
780 | # It thinks the first close brace ends the variable substitution. | |
781 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
782 | ||
783 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
784 | ||
785 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
786 | ||
787 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
6706f116 | 788 | echo "configure:789: checking whether build environment is sane" >&5 |
b2dad0e3 BK |
789 | # Just in case |
790 | sleep 1 | |
791 | echo timestamp > conftestfile | |
792 | # Do `set' in a subshell so we don't clobber the current shell's | |
793 | # arguments. Must try -L first in case configure is actually a | |
794 | # symlink; some systems play weird games with the mod time of symlinks | |
795 | # (eg FreeBSD returns the mod time of the symlink's containing | |
796 | # directory). | |
797 | if ( | |
798 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
799 | if test "$*" = "X"; then | |
800 | # -L didn't work. | |
801 | set X `ls -t $srcdir/configure conftestfile` | |
802 | fi | |
803 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
804 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
805 | ||
806 | # If neither matched, then we have a broken ls. This can happen | |
807 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
808 | # broken ls alias from the environment. This has actually | |
809 | # happened. Such a system could not be considered "sane". | |
810 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
811 | alias in your environment" 1>&2; exit 1; } | |
812 | fi | |
813 | ||
814 | test "$2" = conftestfile | |
815 | ) | |
816 | then | |
817 | # Ok. | |
818 | : | |
819 | else | |
820 | { echo "configure: error: newly created file is older than distributed files! | |
821 | Check your system clock" 1>&2; exit 1; } | |
822 | fi | |
823 | rm -f conftest* | |
824 | echo "$ac_t""yes" 1>&6 | |
825 | if test "$program_transform_name" = s,x,x,; then | |
826 | program_transform_name= | |
827 | else | |
828 | # Double any \ or $. echo might interpret backslashes. | |
829 | cat <<\EOF_SED > conftestsed | |
830 | s,\\,\\\\,g; s,\$,$$,g | |
831 | EOF_SED | |
832 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
833 | rm -f conftestsed | |
834 | fi | |
835 | test "$program_prefix" != NONE && | |
836 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
837 | # Use a double $ so make ignores it. | |
838 | test "$program_suffix" != NONE && | |
839 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
840 | ||
841 | # sed with no file args requires a program. | |
842 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
843 | ||
844 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
6706f116 | 845 | echo "configure:846: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
b2dad0e3 BK |
846 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
847 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
849 | else | |
850 | cat > conftestmake <<\EOF | |
851 | all: | |
852 | @echo 'ac_maketemp="${MAKE}"' | |
853 | EOF | |
854 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
855 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
856 | if test -n "$ac_maketemp"; then | |
857 | eval ac_cv_prog_make_${ac_make}_set=yes | |
858 | else | |
859 | eval ac_cv_prog_make_${ac_make}_set=no | |
860 | fi | |
861 | rm -f conftestmake | |
862 | fi | |
863 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
864 | echo "$ac_t""yes" 1>&6 | |
865 | SET_MAKE= | |
866 | else | |
867 | echo "$ac_t""no" 1>&6 | |
868 | SET_MAKE="MAKE=${MAKE-make}" | |
869 | fi | |
870 | ||
b2dad0e3 | 871 | |
33590f13 | 872 | PACKAGE=$PACKAGE |
b2dad0e3 | 873 | |
4e10943d | 874 | VERSION=$release_VERSION |
b2dad0e3 BK |
875 | |
876 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
877 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
878 | fi | |
879 | cat >> confdefs.h <<EOF | |
880 | #define PACKAGE "$PACKAGE" | |
881 | EOF | |
882 | ||
883 | cat >> confdefs.h <<EOF | |
884 | #define VERSION "$VERSION" | |
885 | EOF | |
886 | ||
887 | ||
888 | ||
889 | missing_dir=`cd $ac_aux_dir && pwd` | |
890 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
6706f116 | 891 | echo "configure:892: checking for working aclocal" >&5 |
b2dad0e3 BK |
892 | # Run test in a subshell; some versions of sh will print an error if |
893 | # an executable is not found, even if stderr is redirected. | |
894 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
895 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
896 | ACLOCAL=aclocal | |
897 | echo "$ac_t""found" 1>&6 | |
898 | else | |
899 | ACLOCAL="$missing_dir/missing aclocal" | |
900 | echo "$ac_t""missing" 1>&6 | |
901 | fi | |
902 | ||
903 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
6706f116 | 904 | echo "configure:905: checking for working autoconf" >&5 |
b2dad0e3 BK |
905 | # Run test in a subshell; some versions of sh will print an error if |
906 | # an executable is not found, even if stderr is redirected. | |
907 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
908 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
909 | AUTOCONF=autoconf | |
910 | echo "$ac_t""found" 1>&6 | |
911 | else | |
912 | AUTOCONF="$missing_dir/missing autoconf" | |
913 | echo "$ac_t""missing" 1>&6 | |
914 | fi | |
915 | ||
916 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
6706f116 | 917 | echo "configure:918: checking for working automake" >&5 |
b2dad0e3 BK |
918 | # Run test in a subshell; some versions of sh will print an error if |
919 | # an executable is not found, even if stderr is redirected. | |
920 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
921 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
922 | AUTOMAKE=automake | |
923 | echo "$ac_t""found" 1>&6 | |
924 | else | |
925 | AUTOMAKE="$missing_dir/missing automake" | |
926 | echo "$ac_t""missing" 1>&6 | |
927 | fi | |
928 | ||
929 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
6706f116 | 930 | echo "configure:931: checking for working autoheader" >&5 |
b2dad0e3 BK |
931 | # Run test in a subshell; some versions of sh will print an error if |
932 | # an executable is not found, even if stderr is redirected. | |
933 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
934 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
935 | AUTOHEADER=autoheader | |
936 | echo "$ac_t""found" 1>&6 | |
937 | else | |
938 | AUTOHEADER="$missing_dir/missing autoheader" | |
939 | echo "$ac_t""missing" 1>&6 | |
940 | fi | |
941 | ||
942 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
6706f116 | 943 | echo "configure:944: checking for working makeinfo" >&5 |
b2dad0e3 BK |
944 | # Run test in a subshell; some versions of sh will print an error if |
945 | # an executable is not found, even if stderr is redirected. | |
946 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
947 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
948 | MAKEINFO=makeinfo | |
949 | echo "$ac_t""found" 1>&6 | |
950 | else | |
951 | MAKEINFO="$missing_dir/missing makeinfo" | |
952 | echo "$ac_t""missing" 1>&6 | |
953 | fi | |
954 | ||
955 | ||
956 | ||
b2dad0e3 BK |
957 | |
958 | ||
959 | ||
33590f13 | 960 | # Runs configure.host and configure.target, as well as finds CC, CXX |
d2caef2e | 961 | # and assorted other critical bits. Have to run this before the |
33590f13 BK |
962 | # GLIBCPP_ENABLE_* macros below. |
963 | if test $host != $build; then | |
964 | ac_tool_prefix=${host_alias}- | |
965 | else | |
966 | ac_tool_prefix= | |
967 | fi | |
b2dad0e3 | 968 | |
33590f13 | 969 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
6706f116 | 970 | echo "configure:971: checking for Cygwin environment" >&5 |
33590f13 | 971 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
b2dad0e3 BK |
972 | echo $ac_n "(cached) $ac_c" 1>&6 |
973 | else | |
33590f13 | 974 | cat > conftest.$ac_ext <<EOF |
6706f116 | 975 | #line 976 "configure" |
33590f13 BK |
976 | #include "confdefs.h" |
977 | ||
978 | int main() { | |
979 | ||
980 | #ifndef __CYGWIN__ | |
981 | #define __CYGWIN__ __CYGWIN32__ | |
982 | #endif | |
983 | return __CYGWIN__; | |
984 | ; return 0; } | |
985 | EOF | |
6706f116 | 986 | if { (eval echo configure:987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
33590f13 BK |
987 | rm -rf conftest* |
988 | ac_cv_cygwin=yes | |
b2dad0e3 | 989 | else |
33590f13 BK |
990 | echo "configure: failed program was:" >&5 |
991 | cat conftest.$ac_ext >&5 | |
992 | rm -rf conftest* | |
993 | ac_cv_cygwin=no | |
b2dad0e3 | 994 | fi |
33590f13 BK |
995 | rm -f conftest* |
996 | rm -f conftest* | |
b2dad0e3 BK |
997 | fi |
998 | ||
33590f13 BK |
999 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
1000 | CYGWIN= | |
1001 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
1002 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
6706f116 | 1003 | echo "configure:1004: checking for mingw32 environment" >&5 |
33590f13 | 1004 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
b2dad0e3 BK |
1005 | echo $ac_n "(cached) $ac_c" 1>&6 |
1006 | else | |
33590f13 | 1007 | cat > conftest.$ac_ext <<EOF |
6706f116 | 1008 | #line 1009 "configure" |
33590f13 BK |
1009 | #include "confdefs.h" |
1010 | ||
1011 | int main() { | |
1012 | return __MINGW32__; | |
1013 | ; return 0; } | |
1014 | EOF | |
6706f116 | 1015 | if { (eval echo configure:1016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
33590f13 BK |
1016 | rm -rf conftest* |
1017 | ac_cv_mingw32=yes | |
b2dad0e3 | 1018 | else |
33590f13 BK |
1019 | echo "configure: failed program was:" >&5 |
1020 | cat conftest.$ac_ext >&5 | |
1021 | rm -rf conftest* | |
1022 | ac_cv_mingw32=no | |
1023 | fi | |
1024 | rm -f conftest* | |
1025 | rm -f conftest* | |
1026 | fi | |
1027 | ||
1028 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
1029 | MINGW32= | |
1030 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
1031 | ||
1032 | # Check whether --enable-multilib or --disable-multilib was given. | |
1033 | if test "${enable_multilib+set}" = set; then | |
1034 | enableval="$enable_multilib" | |
1035 | case "${enableval}" in | |
1036 | yes) multilib=yes ;; | |
1037 | no) multilib=no ;; | |
1038 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; | |
1039 | esac | |
1040 | else | |
1041 | multilib=yes | |
1042 | fi | |
1043 | ||
d2caef2e PE |
1044 | # When building with srcdir == objdir, links to the source files will |
1045 | # be created in directories within the target_subdir. We have to | |
1046 | # adjust toplevel_srcdir accordingly, so that configure finds | |
1047 | # install-sh and other auxiliary files that live in the top-level | |
1048 | # source directory. | |
1049 | if test "${srcdir}" = "."; then | |
1050 | if test -z "${with_target_subdir}"; then | |
1051 | toprel=".." | |
33590f13 | 1052 | else |
d2caef2e PE |
1053 | if test "${with_target_subdir}" != "."; then |
1054 | toprel="${with_multisrctop}../.." | |
1055 | else | |
1056 | toprel="${with_multisrctop}.." | |
1057 | fi | |
33590f13 | 1058 | fi |
d2caef2e PE |
1059 | else |
1060 | toprel=".." | |
33590f13 | 1061 | fi |
d2caef2e | 1062 | ac_aux_dir= |
33590f13 BK |
1063 | for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do |
1064 | if test -f $ac_dir/install-sh; then | |
1065 | ac_aux_dir=$ac_dir | |
1066 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1067 | break | |
1068 | elif test -f $ac_dir/install.sh; then | |
1069 | ac_aux_dir=$ac_dir | |
1070 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1071 | break | |
1072 | fi | |
1073 | done | |
1074 | if test -z "$ac_aux_dir"; then | |
1075 | { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; } | |
1076 | fi | |
1077 | ac_config_guess=$ac_aux_dir/config.guess | |
1078 | ac_config_sub=$ac_aux_dir/config.sub | |
1079 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
1080 | ||
d2caef2e PE |
1081 | toplevel_srcdir=\${top_srcdir}/$toprel |
1082 | ||
33590f13 | 1083 | |
d2caef2e PE |
1084 | # Export build and source directories. |
1085 | # These need to be absolute paths, yet at the same time need to | |
1086 | # canonicalize only relative paths, because then amd will not unmount | |
1087 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. | |
1e6347d8 | 1088 | glibcpp_builddir=`${PWDCMD-pwd}` |
d2caef2e PE |
1089 | case $srcdir in |
1090 | \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;; | |
1091 | *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; | |
1092 | esac | |
1093 | ||
1094 | ||
33590f13 | 1095 | |
d2caef2e | 1096 | |
33590f13 | 1097 | |
6706f116 | 1098 | for ac_prog in mawk gawk nawk awk |
c98b201b PE |
1099 | do |
1100 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1101 | set dummy $ac_prog; ac_word=$2 | |
1102 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 1103 | echo "configure:1104: checking for $ac_word" >&5 |
c98b201b PE |
1104 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1106 | else | |
1107 | if test -n "$AWK"; then | |
1108 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1109 | else | |
1110 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1111 | ac_dummy="$PATH" | |
1112 | for ac_dir in $ac_dummy; do | |
1113 | test -z "$ac_dir" && ac_dir=. | |
1114 | if test -f $ac_dir/$ac_word; then | |
1115 | ac_cv_prog_AWK="$ac_prog" | |
1116 | break | |
1117 | fi | |
1118 | done | |
1119 | IFS="$ac_save_ifs" | |
1120 | fi | |
1121 | fi | |
1122 | AWK="$ac_cv_prog_AWK" | |
1123 | if test -n "$AWK"; then | |
1124 | echo "$ac_t""$AWK" 1>&6 | |
1125 | else | |
1126 | echo "$ac_t""no" 1>&6 | |
1127 | fi | |
1128 | ||
1129 | test -n "$AWK" && break | |
1130 | done | |
1131 | ||
d2caef2e PE |
1132 | # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also |
1133 | # be 'cp -p' if linking isn't available. | |
1134 | #ac_cv_prog_LN_S='cp -p' | |
1135 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
6706f116 | 1136 | echo "configure:1137: checking whether ln -s works" >&5 |
33590f13 BK |
1137 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1139 | else | |
1140 | rm -f conftestdata | |
1141 | if ln -s X conftestdata 2>/dev/null | |
1142 | then | |
1143 | rm -f conftestdata | |
1144 | ac_cv_prog_LN_S="ln -s" | |
1145 | else | |
1146 | ac_cv_prog_LN_S=ln | |
1147 | fi | |
1148 | fi | |
1149 | LN_S="$ac_cv_prog_LN_S" | |
1150 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1151 | echo "$ac_t""yes" 1>&6 | |
1152 | else | |
1153 | echo "$ac_t""no" 1>&6 | |
1154 | fi | |
1155 | ||
1156 | ||
d2caef2e PE |
1157 | # We use these options to decide which functions to include. |
1158 | # Check whether --with-target-subdir or --without-target-subdir was given. | |
33590f13 BK |
1159 | if test "${with_target_subdir+set}" = set; then |
1160 | withval="$with_target_subdir" | |
1161 | : | |
1162 | fi | |
1163 | ||
d2caef2e | 1164 | # Check whether --with-cross-host or --without-cross-host was given. |
33590f13 BK |
1165 | if test "${with_cross_host+set}" = set; then |
1166 | withval="$with_cross_host" | |
1167 | : | |
1168 | fi | |
1169 | ||
1170 | ||
1171 | glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3 | |
1172 | ||
1173 | ||
1174 | # Never versions of autoconf add an underscore to these functions. | |
1175 | # Prevent future problems ... | |
1176 | ||
1177 | ||
1178 | ||
1179 | ||
1180 | ||
d2caef2e PE |
1181 | # AC_PROG_CC |
1182 | # FIXME: We temporarily define our own version of AC_PROG_CC. This is | |
1183 | # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We | |
1184 | # are probably using a cross compiler, which will not be able to fully | |
1185 | # link an executable. This is addressed in later versions of autoconf. | |
33590f13 | 1186 | |
d2caef2e | 1187 | |
33590f13 | 1188 | |
d2caef2e PE |
1189 | |
1190 | # Extract the first word of "gcc", so it can be a program name with args. | |
33590f13 BK |
1191 | set dummy gcc; ac_word=$2 |
1192 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 1193 | echo "configure:1194: checking for $ac_word" >&5 |
33590f13 BK |
1194 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1196 | else | |
1197 | if test -n "$CC"; then | |
1198 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1199 | else | |
1200 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1201 | ac_dummy="$PATH" | |
1202 | for ac_dir in $ac_dummy; do | |
1203 | test -z "$ac_dir" && ac_dir=. | |
1204 | if test -f $ac_dir/$ac_word; then | |
1205 | ac_cv_prog_CC="gcc" | |
1206 | break | |
1207 | fi | |
1208 | done | |
1209 | IFS="$ac_save_ifs" | |
1210 | fi | |
1211 | fi | |
1212 | CC="$ac_cv_prog_CC" | |
1213 | if test -n "$CC"; then | |
1214 | echo "$ac_t""$CC" 1>&6 | |
1215 | else | |
1216 | echo "$ac_t""no" 1>&6 | |
1217 | fi | |
1218 | ||
d2caef2e PE |
1219 | if test -z "$CC"; then |
1220 | # Extract the first word of "cc", so it can be a program name with args. | |
33590f13 BK |
1221 | set dummy cc; ac_word=$2 |
1222 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 1223 | echo "configure:1224: checking for $ac_word" >&5 |
33590f13 BK |
1224 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1226 | else | |
1227 | if test -n "$CC"; then | |
1228 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1229 | else | |
1230 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1231 | ac_prog_rejected=no | |
1232 | ac_dummy="$PATH" | |
1233 | for ac_dir in $ac_dummy; do | |
1234 | test -z "$ac_dir" && ac_dir=. | |
1235 | if test -f $ac_dir/$ac_word; then | |
1236 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1237 | ac_prog_rejected=yes | |
1238 | continue | |
b2dad0e3 BK |
1239 | fi |
1240 | ac_cv_prog_CC="cc" | |
1241 | break | |
1242 | fi | |
1243 | done | |
1244 | IFS="$ac_save_ifs" | |
1245 | if test $ac_prog_rejected = yes; then | |
1246 | # We found a bogon in the path, so make sure we never use it. | |
1247 | set dummy $ac_cv_prog_CC | |
1248 | shift | |
1249 | if test $# -gt 0; then | |
1250 | # We chose a different compiler from the bogus one. | |
1251 | # However, it has the same basename, so the bogon will be chosen | |
1252 | # first if we set CC to just the basename; use the full file name. | |
1253 | shift | |
1254 | set dummy "$ac_dir/$ac_word" "$@" | |
1255 | shift | |
1256 | ac_cv_prog_CC="$@" | |
1257 | fi | |
1258 | fi | |
1259 | fi | |
1260 | fi | |
1261 | CC="$ac_cv_prog_CC" | |
1262 | if test -n "$CC"; then | |
1263 | echo "$ac_t""$CC" 1>&6 | |
1264 | else | |
1265 | echo "$ac_t""no" 1>&6 | |
1266 | fi | |
1267 | ||
d2caef2e PE |
1268 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1269 | fi | |
b2dad0e3 | 1270 | |
d2caef2e | 1271 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
6706f116 | 1272 | echo "configure:1273: checking whether we are using GNU C" >&5 |
b2dad0e3 BK |
1273 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1275 | else | |
1276 | cat > conftest.c <<EOF | |
1277 | #ifdef __GNUC__ | |
1278 | yes; | |
1279 | #endif | |
1280 | EOF | |
6706f116 | 1281 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
b2dad0e3 BK |
1282 | ac_cv_prog_gcc=yes |
1283 | else | |
1284 | ac_cv_prog_gcc=no | |
1285 | fi | |
1286 | fi | |
1287 | ||
1288 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1289 | ||
d2caef2e PE |
1290 | if test $ac_cv_prog_gcc = yes; then |
1291 | GCC=yes | |
1292 | ac_test_CFLAGS="${CFLAGS+set}" | |
1293 | ac_save_CFLAGS="$CFLAGS" | |
1294 | CFLAGS= | |
1295 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
6706f116 | 1296 | echo "configure:1297: checking whether ${CC-cc} accepts -g" >&5 |
b2dad0e3 BK |
1297 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1299 | else | |
1300 | echo 'void f(){}' > conftest.c | |
1301 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1302 | ac_cv_prog_cc_g=yes | |
1303 | else | |
1304 | ac_cv_prog_cc_g=no | |
1305 | fi | |
1306 | rm -f conftest* | |
1307 | ||
1308 | fi | |
1309 | ||
1310 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
d2caef2e PE |
1311 | if test "$ac_test_CFLAGS" = set; then |
1312 | CFLAGS="$ac_save_CFLAGS" | |
1313 | elif test $ac_cv_prog_cc_g = yes; then | |
1314 | CFLAGS="-g -O2" | |
1315 | else | |
1316 | CFLAGS="-O2" | |
1317 | fi | |
b2dad0e3 | 1318 | else |
d2caef2e PE |
1319 | GCC= |
1320 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
b2dad0e3 | 1321 | fi |
d2caef2e | 1322 | |
b2dad0e3 | 1323 | |
d2caef2e PE |
1324 | # Likewise for AC_PROG_CXX. We can't just call it directly because g++ |
1325 | # will try to link in libstdc++. | |
1326 | ||
b2dad0e3 | 1327 | |
d2caef2e PE |
1328 | |
1329 | # Use glibcpp_CXX so that we do not cause CXX to be cached with the | |
1330 | # flags that come in CXX while configuring libstdc++. They're different | |
1331 | # from those used for all other target libraries. If CXX is set in | |
1332 | # the environment, respect that here. | |
1333 | glibcpp_CXX=$CXX | |
1334 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ | |
b2dad0e3 BK |
1335 | do |
1336 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1337 | set dummy $ac_prog; ac_word=$2 | |
1338 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 1339 | echo "configure:1340: checking for $ac_word" >&5 |
46840bcd | 1340 | if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then |
b2dad0e3 BK |
1341 | echo $ac_n "(cached) $ac_c" 1>&6 |
1342 | else | |
46840bcd BK |
1343 | if test -n "$glibcpp_CXX"; then |
1344 | ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test. | |
b2dad0e3 BK |
1345 | else |
1346 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1347 | ac_dummy="$PATH" | |
1348 | for ac_dir in $ac_dummy; do | |
1349 | test -z "$ac_dir" && ac_dir=. | |
1350 | if test -f $ac_dir/$ac_word; then | |
46840bcd | 1351 | ac_cv_prog_glibcpp_CXX="$ac_prog" |
b2dad0e3 BK |
1352 | break |
1353 | fi | |
1354 | done | |
1355 | IFS="$ac_save_ifs" | |
1356 | fi | |
1357 | fi | |
46840bcd BK |
1358 | glibcpp_CXX="$ac_cv_prog_glibcpp_CXX" |
1359 | if test -n "$glibcpp_CXX"; then | |
1360 | echo "$ac_t""$glibcpp_CXX" 1>&6 | |
b2dad0e3 BK |
1361 | else |
1362 | echo "$ac_t""no" 1>&6 | |
1363 | fi | |
1364 | ||
46840bcd | 1365 | test -n "$glibcpp_CXX" && break |
b2dad0e3 | 1366 | done |
46840bcd | 1367 | test -n "$glibcpp_CXX" || glibcpp_CXX="gcc" |
de9aefe0 | 1368 | |
d2caef2e PE |
1369 | |
1370 | CXX=$glibcpp_CXX | |
1371 | test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } | |
b2dad0e3 | 1372 | |
d2caef2e | 1373 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
6706f116 | 1374 | echo "configure:1375: checking whether we are using GNU C++" >&5 |
b2dad0e3 BK |
1375 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
1376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1377 | else | |
1378 | cat > conftest.C <<EOF | |
1379 | #ifdef __GNUC__ | |
1380 | yes; | |
1381 | #endif | |
1382 | EOF | |
6706f116 | 1383 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
b2dad0e3 BK |
1384 | ac_cv_prog_gxx=yes |
1385 | else | |
1386 | ac_cv_prog_gxx=no | |
1387 | fi | |
1388 | fi | |
1389 | ||
1390 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
1391 | ||
d2caef2e PE |
1392 | if test $ac_cv_prog_gxx = yes; then |
1393 | GXX=yes | |
1394 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
1395 | ac_save_CXXFLAGS="$CXXFLAGS" | |
1396 | CXXFLAGS= | |
1397 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
6706f116 | 1398 | echo "configure:1399: checking whether ${CXX-g++} accepts -g" >&5 |
b2dad0e3 BK |
1399 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
1400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1401 | else | |
1402 | echo 'void f(){}' > conftest.cc | |
1403 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
1404 | ac_cv_prog_cxx_g=yes | |
1405 | else | |
1406 | ac_cv_prog_cxx_g=no | |
1407 | fi | |
1408 | rm -f conftest* | |
1409 | ||
1410 | fi | |
1411 | ||
1412 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
d2caef2e PE |
1413 | if test "$ac_test_CXXFLAGS" = set; then |
1414 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1415 | elif test $ac_cv_prog_cxx_g = yes; then | |
1416 | CXXFLAGS="-g -O2" | |
1417 | else | |
1418 | CXXFLAGS="-O2" | |
1419 | fi | |
b2dad0e3 | 1420 | else |
d2caef2e PE |
1421 | GXX= |
1422 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | |
b2dad0e3 | 1423 | fi |
d2caef2e | 1424 | |
ab3bc736 | 1425 | |
d2caef2e | 1426 | # For some reason, gettext needs this. |
263c6fa8 SE |
1427 | |
1428 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 | |
6706f116 | 1429 | echo "configure:1430: checking for strerror in -lcposix" >&5 |
263c6fa8 SE |
1430 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
1431 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1433 | else | |
1434 | ac_save_LIBS="$LIBS" | |
1435 | LIBS="-lcposix $LIBS" | |
1436 | cat > conftest.$ac_ext <<EOF | |
6706f116 | 1437 | #line 1438 "configure" |
263c6fa8 SE |
1438 | #include "confdefs.h" |
1439 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1440 | /* We use char because int might match the return type of a gcc2 | |
1441 | builtin and then its argument prototype would still apply. */ | |
1442 | char strerror(); | |
1443 | ||
1444 | int main() { | |
1445 | strerror() | |
1446 | ; return 0; } | |
33590f13 | 1447 | EOF |
6706f116 | 1448 | if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
263c6fa8 SE |
1449 | rm -rf conftest* |
1450 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1451 | else | |
1452 | echo "configure: failed program was:" >&5 | |
1453 | cat conftest.$ac_ext >&5 | |
1454 | rm -rf conftest* | |
1455 | eval "ac_cv_lib_$ac_lib_var=no" | |
1456 | fi | |
1457 | rm -f conftest* | |
1458 | LIBS="$ac_save_LIBS" | |
33590f13 | 1459 | |
263c6fa8 SE |
1460 | fi |
1461 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1462 | echo "$ac_t""yes" 1>&6 | |
1463 | LIBS="$LIBS -lcposix" | |
33590f13 BK |
1464 | else |
1465 | echo "$ac_t""no" 1>&6 | |
33590f13 BK |
1466 | fi |
1467 | ||
263c6fa8 SE |
1468 | |
1469 | ||
33590f13 | 1470 | |
5780a46b | 1471 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
b2dad0e3 BK |
1472 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
1473 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 1474 | echo "configure:1475: checking for $ac_word" >&5 |
b2dad0e3 BK |
1475 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
1476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1477 | else | |
1478 | if test -n "$AS"; then | |
1479 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1480 | else | |
1481 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1482 | ac_dummy="$PATH" | |
1483 | for ac_dir in $ac_dummy; do | |
1484 | test -z "$ac_dir" && ac_dir=. | |
1485 | if test -f $ac_dir/$ac_word; then | |
1486 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
1487 | break | |
1488 | fi | |
1489 | done | |
1490 | IFS="$ac_save_ifs" | |
1491 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" | |
1492 | fi | |
1493 | fi | |
1494 | AS="$ac_cv_prog_AS" | |
1495 | if test -n "$AS"; then | |
1496 | echo "$ac_t""$AS" 1>&6 | |
1497 | else | |
1498 | echo "$ac_t""no" 1>&6 | |
1499 | fi | |
1500 | ||
1501 | ||
1502 | ||
5780a46b | 1503 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
b2dad0e3 BK |
1504 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
1505 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 1506 | echo "configure:1507: checking for $ac_word" >&5 |
b2dad0e3 BK |
1507 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1509 | else | |
1510 | if test -n "$AR"; then | |
1511 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1512 | else | |
1513 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1514 | ac_dummy="$PATH" | |
1515 | for ac_dir in $ac_dummy; do | |
1516 | test -z "$ac_dir" && ac_dir=. | |
1517 | if test -f $ac_dir/$ac_word; then | |
1518 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1519 | break | |
1520 | fi | |
1521 | done | |
1522 | IFS="$ac_save_ifs" | |
1523 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1524 | fi | |
1525 | fi | |
1526 | AR="$ac_cv_prog_AR" | |
1527 | if test -n "$AR"; then | |
1528 | echo "$ac_t""$AR" 1>&6 | |
1529 | else | |
1530 | echo "$ac_t""no" 1>&6 | |
1531 | fi | |
1532 | ||
1533 | ||
1534 | ||
5780a46b | 1535 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
b2dad0e3 BK |
1536 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
1537 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 1538 | echo "configure:1539: checking for $ac_word" >&5 |
b2dad0e3 BK |
1539 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1541 | else | |
1542 | if test -n "$RANLIB"; then | |
1543 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1544 | else | |
1545 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1546 | ac_dummy="$PATH" | |
1547 | for ac_dir in $ac_dummy; do | |
1548 | test -z "$ac_dir" && ac_dir=. | |
1549 | if test -f $ac_dir/$ac_word; then | |
1550 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1551 | break | |
1552 | fi | |
1553 | done | |
1554 | IFS="$ac_save_ifs" | |
1555 | fi | |
1556 | fi | |
1557 | RANLIB="$ac_cv_prog_RANLIB" | |
1558 | if test -n "$RANLIB"; then | |
1559 | echo "$ac_t""$RANLIB" 1>&6 | |
1560 | else | |
1561 | echo "$ac_t""no" 1>&6 | |
1562 | fi | |
1563 | ||
1564 | ||
1565 | if test -z "$ac_cv_prog_RANLIB"; then | |
1566 | if test -n "$ac_tool_prefix"; then | |
1567 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1568 | set dummy ranlib; ac_word=$2 | |
1569 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 1570 | echo "configure:1571: checking for $ac_word" >&5 |
b2dad0e3 BK |
1571 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1572 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1573 | else | |
1574 | if test -n "$RANLIB"; then | |
1575 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1576 | else | |
1577 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1578 | ac_dummy="$PATH" | |
1579 | for ac_dir in $ac_dummy; do | |
1580 | test -z "$ac_dir" && ac_dir=. | |
1581 | if test -f $ac_dir/$ac_word; then | |
1582 | ac_cv_prog_RANLIB="ranlib" | |
1583 | break | |
1584 | fi | |
1585 | done | |
1586 | IFS="$ac_save_ifs" | |
46840bcd | 1587 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error" |
b2dad0e3 BK |
1588 | fi |
1589 | fi | |
1590 | RANLIB="$ac_cv_prog_RANLIB" | |
1591 | if test -n "$RANLIB"; then | |
1592 | echo "$ac_t""$RANLIB" 1>&6 | |
1593 | else | |
1594 | echo "$ac_t""no" 1>&6 | |
1595 | fi | |
1596 | ||
1597 | else | |
46840bcd BK |
1598 | RANLIB="ranlib-not-found-in-path-error" |
1599 | fi | |
1600 | fi | |
1601 | ||
5780a46b | 1602 | # Find a good install program. We prefer a C program (faster), |
b2dad0e3 BK |
1603 | # so one script is as good as another. But avoid the broken or |
1604 | # incompatible versions: | |
1605 | # SysV /etc/install, /usr/sbin/install | |
1606 | # SunOS /usr/etc/install | |
1607 | # IRIX /sbin/install | |
1608 | # AIX /bin/install | |
1609 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1610 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1611 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1612 | # ./install, which can be erroneously created by make from ./install.sh. | |
1613 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
6706f116 | 1614 | echo "configure:1615: checking for a BSD compatible install" >&5 |
b2dad0e3 BK |
1615 | if test -z "$INSTALL"; then |
1616 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1618 | else | |
1619 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
1620 | for ac_dir in $PATH; do | |
1621 | # Account for people who put trailing slashes in PATH elements. | |
1622 | case "$ac_dir/" in | |
1623 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1624 | *) | |
1625 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1626 | # Don't use installbsd from OSF since it installs stuff as root | |
1627 | # by default. | |
1628 | for ac_prog in ginstall scoinst install; do | |
1629 | if test -f $ac_dir/$ac_prog; then | |
1630 | if test $ac_prog = install && | |
1631 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1632 | # AIX install. It has an incompatible calling convention. | |
1633 | : | |
1634 | else | |
1635 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1636 | break 2 | |
1637 | fi | |
1638 | fi | |
1639 | done | |
1640 | ;; | |
1641 | esac | |
1642 | done | |
1643 | IFS="$ac_save_IFS" | |
1644 | ||
1645 | fi | |
1646 | if test "${ac_cv_path_install+set}" = set; then | |
1647 | INSTALL="$ac_cv_path_install" | |
1648 | else | |
1649 | # As a last resort, use the slow shell script. We don't cache a | |
1650 | # path for INSTALL within a source directory, because that will | |
1651 | # break other packages using the cache if that directory is | |
1652 | # removed, or if the path is relative. | |
1653 | INSTALL="$ac_install_sh" | |
1654 | fi | |
1655 | fi | |
1656 | echo "$ac_t""$INSTALL" 1>&6 | |
1657 | ||
1658 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1659 | # It thinks the first close brace ends the variable substitution. | |
1660 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1661 | ||
1662 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
1663 | ||
1664 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1665 | ||
1666 | ||
5780a46b | 1667 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
6706f116 | 1668 | echo "configure:1669: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
b2dad0e3 BK |
1669 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1670 | if test "${enable_maintainer_mode+set}" = set; then | |
1671 | enableval="$enable_maintainer_mode" | |
1672 | USE_MAINTAINER_MODE=$enableval | |
1673 | else | |
1674 | USE_MAINTAINER_MODE=no | |
1675 | fi | |
1676 | ||
1677 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
1678 | ||
1679 | ||
1680 | if test $USE_MAINTAINER_MODE = yes; then | |
1681 | MAINTAINER_MODE_TRUE= | |
1682 | MAINTAINER_MODE_FALSE='#' | |
1683 | else | |
1684 | MAINTAINER_MODE_TRUE='#' | |
1685 | MAINTAINER_MODE_FALSE= | |
1686 | fi | |
1687 | MAINT=$MAINTAINER_MODE_TRUE | |
1688 | ||
1689 | ||
1690 | ||
5780a46b BK |
1691 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However, |
1692 | # at least currently, we never actually build a program, so we never | |
1693 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally | |
1694 | # fails, because we are probably configuring with a cross compiler | |
c5504edb JM |
1695 | # which can't create executables. So we include AC_EXEEXT to keep |
1696 | # automake happy, but we don't execute it, since we don't care about | |
4d0e4296 | 1697 | # the result. |
5780a46b | 1698 | if false; then |
61c71946 BK |
1699 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands |
1700 | # to nothing, so nothing would remain between `then' and `fi' if it | |
1701 | # were not for the `:' below. | |
1702 | : | |
5780a46b | 1703 | |
b2dad0e3 BK |
1704 | |
1705 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
6706f116 | 1706 | echo "configure:1707: checking for executable suffix" >&5 |
b2dad0e3 BK |
1707 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1708 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1709 | else | |
1710 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1711 | ac_cv_exeext=.exe | |
1712 | else | |
1713 | rm -f conftest* | |
1714 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1715 | ac_cv_exeext= | |
6706f116 | 1716 | if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
b2dad0e3 BK |
1717 | for file in conftest.*; do |
1718 | case $file in | |
6706f116 | 1719 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
b2dad0e3 BK |
1720 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1721 | esac | |
1722 | done | |
1723 | else | |
1724 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1725 | fi | |
1726 | rm -f conftest* | |
1727 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1728 | fi | |
1729 | fi | |
1730 | ||
1731 | EXEEXT="" | |
1732 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1733 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1734 | ac_exeext=$EXEEXT | |
1735 | ||
5780a46b | 1736 | fi |
b2dad0e3 | 1737 | |
5780a46b | 1738 | . ${glibcpp_basedir}/configure.host |
b2dad0e3 | 1739 | |
5780a46b | 1740 | case ${glibcpp_basedir} in |
56c1d2ee | 1741 | /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;; |
5780a46b BK |
1742 | *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;; |
1743 | esac | |
3840fa2a | 1744 | |
d0941a31 | 1745 | # This does for the target what configure.host does for the host. In |
5e3cbe0b | 1746 | # addition to possibly modifying the same flags, it also sets up symlinks. |
d0941a31 PE |
1747 | |
1748 | . ${glibcpp_basedir}/configure.target | |
1749 | echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6 | |
1750 | echo "$ac_t""OS config directory is $os_include_dir" 1>&6 | |
d0941a31 PE |
1751 | |
1752 | ||
33590f13 | 1753 | |
5780a46b | 1754 | |
f4c79fef | 1755 | |
b2dad0e3 BK |
1756 | # Check whether --enable-shared or --disable-shared was given. |
1757 | if test "${enable_shared+set}" = set; then | |
1758 | enableval="$enable_shared" | |
1759 | p=${PACKAGE-default} | |
c21b6f87 | 1760 | case $enableval in |
b2dad0e3 BK |
1761 | yes) enable_shared=yes ;; |
1762 | no) enable_shared=no ;; | |
1763 | *) | |
1764 | enable_shared=no | |
1765 | # Look at the argument we got. We use all the common list separators. | |
1766 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1767 | for pkg in $enableval; do | |
1768 | if test "X$pkg" = "X$p"; then | |
1769 | enable_shared=yes | |
1770 | fi | |
1771 | done | |
1772 | IFS="$ac_save_ifs" | |
1773 | ;; | |
1774 | esac | |
1775 | else | |
1776 | enable_shared=yes | |
1777 | fi | |
1778 | ||
1779 | # Check whether --enable-static or --disable-static was given. | |
1780 | if test "${enable_static+set}" = set; then | |
1781 | enableval="$enable_static" | |
1782 | p=${PACKAGE-default} | |
c21b6f87 | 1783 | case $enableval in |
b2dad0e3 BK |
1784 | yes) enable_static=yes ;; |
1785 | no) enable_static=no ;; | |
1786 | *) | |
1787 | enable_static=no | |
1788 | # Look at the argument we got. We use all the common list separators. | |
1789 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1790 | for pkg in $enableval; do | |
1791 | if test "X$pkg" = "X$p"; then | |
1792 | enable_static=yes | |
1793 | fi | |
1794 | done | |
1795 | IFS="$ac_save_ifs" | |
1796 | ;; | |
1797 | esac | |
1798 | else | |
1799 | enable_static=yes | |
1800 | fi | |
1801 | ||
1802 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
1803 | if test "${enable_fast_install+set}" = set; then | |
1804 | enableval="$enable_fast_install" | |
1805 | p=${PACKAGE-default} | |
c21b6f87 | 1806 | case $enableval in |
b2dad0e3 BK |
1807 | yes) enable_fast_install=yes ;; |
1808 | no) enable_fast_install=no ;; | |
1809 | *) | |
1810 | enable_fast_install=no | |
1811 | # Look at the argument we got. We use all the common list separators. | |
1812 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1813 | for pkg in $enableval; do | |
1814 | if test "X$pkg" = "X$p"; then | |
1815 | enable_fast_install=yes | |
1816 | fi | |
1817 | done | |
1818 | IFS="$ac_save_ifs" | |
1819 | ;; | |
1820 | esac | |
1821 | else | |
1822 | enable_fast_install=yes | |
1823 | fi | |
1824 | ||
b2dad0e3 BK |
1825 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1826 | if test "${with_gnu_ld+set}" = set; then | |
1827 | withval="$with_gnu_ld" | |
1828 | test "$withval" = no || with_gnu_ld=yes | |
1829 | else | |
1830 | with_gnu_ld=no | |
1831 | fi | |
1832 | ||
1833 | ac_prog=ld | |
c21b6f87 | 1834 | if test "$GCC" = yes; then |
b2dad0e3 BK |
1835 | # Check if gcc -print-prog-name=ld gives a path. |
1836 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
6706f116 | 1837 | echo "configure:1838: checking for ld used by GCC" >&5 |
3df64633 AO |
1838 | case $host in |
1839 | *-*-mingw*) | |
1840 | # gcc leaves a trailing carriage return which upsets mingw | |
1841 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1842 | *) | |
1843 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1844 | esac | |
c21b6f87 | 1845 | case $ac_prog in |
b2dad0e3 | 1846 | # Accept absolute paths. |
3840fa2a | 1847 | [\\/]* | [A-Za-z]:[\\/]*) |
b2dad0e3 BK |
1848 | re_direlt='/[^/][^/]*/\.\./' |
1849 | # Canonicalize the path of ld | |
1850 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1851 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1852 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1853 | done | |
1854 | test -z "$LD" && LD="$ac_prog" | |
1855 | ;; | |
1856 | "") | |
1857 | # If it fails, then pretend we aren't using GCC. | |
1858 | ac_prog=ld | |
1859 | ;; | |
1860 | *) | |
1861 | # If it is relative, then search for the first ld in PATH. | |
1862 | with_gnu_ld=unknown | |
1863 | ;; | |
1864 | esac | |
1865 | elif test "$with_gnu_ld" = yes; then | |
1866 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
6706f116 | 1867 | echo "configure:1868: checking for GNU ld" >&5 |
b2dad0e3 BK |
1868 | else |
1869 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
6706f116 | 1870 | echo "configure:1871: checking for non-GNU ld" >&5 |
b2dad0e3 | 1871 | fi |
c21b6f87 | 1872 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
b2dad0e3 BK |
1873 | echo $ac_n "(cached) $ac_c" 1>&6 |
1874 | else | |
1875 | if test -z "$LD"; then | |
3840fa2a | 1876 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2dad0e3 BK |
1877 | for ac_dir in $PATH; do |
1878 | test -z "$ac_dir" && ac_dir=. | |
3840fa2a | 1879 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
c21b6f87 | 1880 | lt_cv_path_LD="$ac_dir/$ac_prog" |
b2dad0e3 BK |
1881 | # Check to see if the program is GNU ld. I'd rather use --version, |
1882 | # but apparently some GNU ld's only accept -v. | |
1883 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
c21b6f87 | 1884 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
b2dad0e3 BK |
1885 | test "$with_gnu_ld" != no && break |
1886 | else | |
1887 | test "$with_gnu_ld" != yes && break | |
1888 | fi | |
1889 | fi | |
1890 | done | |
1891 | IFS="$ac_save_ifs" | |
1892 | else | |
c21b6f87 | 1893 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
b2dad0e3 BK |
1894 | fi |
1895 | fi | |
1896 | ||
c21b6f87 | 1897 | LD="$lt_cv_path_LD" |
b2dad0e3 BK |
1898 | if test -n "$LD"; then |
1899 | echo "$ac_t""$LD" 1>&6 | |
1900 | else | |
1901 | echo "$ac_t""no" 1>&6 | |
1902 | fi | |
1903 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
1904 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
6706f116 | 1905 | echo "configure:1906: checking if the linker ($LD) is GNU ld" >&5 |
c21b6f87 | 1906 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
b2dad0e3 BK |
1907 | echo $ac_n "(cached) $ac_c" 1>&6 |
1908 | else | |
1909 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1910 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
c21b6f87 | 1911 | lt_cv_prog_gnu_ld=yes |
b2dad0e3 | 1912 | else |
c21b6f87 | 1913 | lt_cv_prog_gnu_ld=no |
b2dad0e3 BK |
1914 | fi |
1915 | fi | |
1916 | ||
c21b6f87 PE |
1917 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
1918 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3df64633 | 1919 | |
b2dad0e3 | 1920 | |
3df64633 | 1921 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 |
6706f116 | 1922 | echo "configure:1923: checking for $LD option to reload object files" >&5 |
3df64633 AO |
1923 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1925 | else | |
1926 | lt_cv_ld_reload_flag='-r' | |
1927 | fi | |
1928 | ||
1929 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | |
1930 | reload_flag=$lt_cv_ld_reload_flag | |
1931 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
b2dad0e3 BK |
1932 | |
1933 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
6706f116 | 1934 | echo "configure:1935: checking for BSD-compatible nm" >&5 |
c21b6f87 | 1935 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
b2dad0e3 BK |
1936 | echo $ac_n "(cached) $ac_c" 1>&6 |
1937 | else | |
1938 | if test -n "$NM"; then | |
1939 | # Let the user override the test. | |
c21b6f87 | 1940 | lt_cv_path_NM="$NM" |
b2dad0e3 | 1941 | else |
3840fa2a | 1942 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2dad0e3 BK |
1943 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
1944 | test -z "$ac_dir" && ac_dir=. | |
3df64633 AO |
1945 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
1946 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
b2dad0e3 BK |
1947 | # Check to see if the nm accepts a BSD-compat flag. |
1948 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1949 | # nm: unknown option "B" ignored | |
6d93bca4 AO |
1950 | # Tru64's nm complains that /dev/null is an invalid object file |
1951 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
c21b6f87 | 1952 | lt_cv_path_NM="$tmp_nm -B" |
b2dad0e3 | 1953 | break |
3df64633 | 1954 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
c21b6f87 | 1955 | lt_cv_path_NM="$tmp_nm -p" |
b2dad0e3 BK |
1956 | break |
1957 | else | |
c21b6f87 | 1958 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2dad0e3 BK |
1959 | continue # so that we can try to find one that supports BSD flags |
1960 | fi | |
1961 | fi | |
1962 | done | |
1963 | IFS="$ac_save_ifs" | |
c21b6f87 | 1964 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
b2dad0e3 BK |
1965 | fi |
1966 | fi | |
1967 | ||
c21b6f87 | 1968 | NM="$lt_cv_path_NM" |
b2dad0e3 BK |
1969 | echo "$ac_t""$NM" 1>&6 |
1970 | ||
3df64633 | 1971 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
6706f116 | 1972 | echo "configure:1973: checking how to recognise dependant libraries" >&5 |
3df64633 AO |
1973 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
1974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1975 | else | |
3dd7094e | 1976 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3df64633 AO |
1977 | lt_cv_file_magic_test_file= |
1978 | lt_cv_deplibs_check_method='unknown' | |
1979 | # Need to set the preceding variable on all platforms that support | |
1980 | # interlibrary dependencies. | |
1981 | # 'none' -- dependencies not supported. | |
1982 | # `unknown' -- same as none, but documents that we really don't know. | |
1983 | # 'pass_all' -- all dependencies passed with no checks. | |
1984 | # 'test_compile' -- check by making test program. | |
1985 | # 'file_magic [regex]' -- check by looking for files in library path | |
1986 | # which responds to the $file_magic_cmd with a given egrep regex. | |
1987 | # If you have `file' or equivalent on your system and you're not sure | |
1988 | # whether `pass_all' will *always* work, you probably want this one. | |
1989 | ||
c21b6f87 PE |
1990 | case $host_os in |
1991 | aix*) | |
3df64633 AO |
1992 | lt_cv_deplibs_check_method=pass_all |
1993 | ;; | |
1994 | ||
1995 | beos*) | |
1996 | lt_cv_deplibs_check_method=pass_all | |
1997 | ;; | |
1998 | ||
1999 | bsdi4*) | |
c21b6f87 PE |
2000 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
2001 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3df64633 AO |
2002 | lt_cv_file_magic_test_file=/shlib/libc.so |
2003 | ;; | |
2004 | ||
3dd7094e | 2005 | cygwin* | mingw* |pw32*) |
3df64633 | 2006 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3dd7094e | 2007 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3df64633 AO |
2008 | ;; |
2009 | ||
c21b6f87 PE |
2010 | darwin* | rhapsody*) |
2011 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
47e982b2 BK |
2012 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
2013 | case "$host_os" in | |
2014 | rhapsody* | darwin1.012) | |
2015 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
2016 | ;; | |
2017 | *) # Darwin 1.3 on | |
2018 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
2019 | ;; | |
2020 | esac | |
c21b6f87 PE |
2021 | ;; |
2022 | ||
3df64633 AO |
2023 | freebsd* ) |
2024 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
c21b6f87 | 2025 | case $host_cpu in |
3df64633 | 2026 | i*86 ) |
6d93bca4 AO |
2027 | # Not sure whether the presence of OpenBSD here was a mistake. |
2028 | # Let's accept both of them until this is cleared up. | |
c21b6f87 PE |
2029 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
2030 | lt_cv_file_magic_cmd=/usr/bin/file | |
3df64633 AO |
2031 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
2032 | ;; | |
2033 | esac | |
2034 | else | |
2035 | lt_cv_deplibs_check_method=pass_all | |
2036 | fi | |
2037 | ;; | |
2038 | ||
2039 | gnu*) | |
2040 | lt_cv_deplibs_check_method=pass_all | |
2041 | ;; | |
2042 | ||
c21b6f87 PE |
2043 | hpux10.20*|hpux11*) |
2044 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3df64633 AO |
2045 | lt_cv_file_magic_cmd=/usr/bin/file |
2046 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
2047 | ;; | |
2048 | ||
2049 | irix5* | irix6*) | |
c21b6f87 | 2050 | case $host_os in |
3df64633 AO |
2051 | irix5*) |
2052 | # this will be overridden with pass_all, but let us keep it just in case | |
2053 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
2054 | ;; | |
2055 | *) | |
c21b6f87 | 2056 | case $LD in |
3df64633 AO |
2057 | *-32|*"-32 ") libmagic=32-bit;; |
2058 | *-n32|*"-n32 ") libmagic=N32;; | |
2059 | *-64|*"-64 ") libmagic=64-bit;; | |
2060 | *) libmagic=never-match;; | |
2061 | esac | |
2062 | # this will be overridden with pass_all, but let us keep it just in case | |
c21b6f87 PE |
2063 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
2064 | ;; | |
3df64633 AO |
2065 | esac |
2066 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
2067 | lt_cv_deplibs_check_method=pass_all | |
2068 | ;; | |
2069 | ||
2070 | # This must be Linux ELF. | |
6d93bca4 | 2071 | linux-gnu*) |
c21b6f87 | 2072 | case $host_cpu in |
bfa1e6b1 | 2073 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
3df64633 AO |
2074 | lt_cv_deplibs_check_method=pass_all ;; |
2075 | *) | |
2076 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
c21b6f87 PE |
2077 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
2078 | esac | |
3df64633 AO |
2079 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
2080 | ;; | |
2081 | ||
2082 | netbsd*) | |
c21b6f87 | 2083 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
47e982b2 | 2084 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
3df64633 | 2085 | else |
47e982b2 | 2086 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
3df64633 | 2087 | fi |
c21b6f87 PE |
2088 | ;; |
2089 | ||
2090 | newsos6) | |
2091 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
2092 | lt_cv_file_magic_cmd=/usr/bin/file | |
2093 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3df64633 AO |
2094 | ;; |
2095 | ||
2096 | osf3* | osf4* | osf5*) | |
2097 | # this will be overridden with pass_all, but let us keep it just in case | |
2098 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
2099 | lt_cv_file_magic_test_file=/shlib/libc.so | |
2100 | lt_cv_deplibs_check_method=pass_all | |
2101 | ;; | |
2102 | ||
2103 | sco3.2v5*) | |
2104 | lt_cv_deplibs_check_method=pass_all | |
2105 | ;; | |
2106 | ||
2107 | solaris*) | |
2108 | lt_cv_deplibs_check_method=pass_all | |
2109 | lt_cv_file_magic_test_file=/lib/libc.so | |
2110 | ;; | |
2111 | ||
bfa1e6b1 BK |
2112 | sysv5uw[78]* | sysv4*uw2*) |
2113 | lt_cv_deplibs_check_method=pass_all | |
2114 | ;; | |
2115 | ||
3df64633 | 2116 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
c21b6f87 | 2117 | case $host_vendor in |
3df64633 AO |
2118 | ncr) |
2119 | lt_cv_deplibs_check_method=pass_all | |
2120 | ;; | |
2121 | motorola) | |
c21b6f87 PE |
2122 | 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]' |
2123 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3df64633 AO |
2124 | ;; |
2125 | esac | |
2126 | ;; | |
2127 | esac | |
2128 | ||
2129 | fi | |
2130 | ||
2131 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
2132 | file_magic_cmd=$lt_cv_file_magic_cmd | |
2133 | deplibs_check_method=$lt_cv_deplibs_check_method | |
2134 | ||
2135 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
6706f116 | 2136 | echo "configure:2137: checking for object suffix" >&5 |
3df64633 AO |
2137 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
2138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2139 | else | |
2140 | rm -f conftest* | |
2141 | echo 'int i = 1;' > conftest.$ac_ext | |
6706f116 | 2142 | if { (eval echo configure:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3df64633 AO |
2143 | for ac_file in conftest.*; do |
2144 | case $ac_file in | |
2145 | *.c) ;; | |
2146 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
2147 | esac | |
2148 | done | |
2149 | else | |
2150 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
2151 | fi | |
2152 | rm -f conftest* | |
2153 | fi | |
2154 | ||
2155 | echo "$ac_t""$ac_cv_objext" 1>&6 | |
2156 | OBJEXT=$ac_cv_objext | |
2157 | ac_objext=$ac_cv_objext | |
2158 | ||
2159 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
2160 | ||
2161 | # Only perform the check for file, if the check method requires it | |
c21b6f87 | 2162 | case $deplibs_check_method in |
3df64633 | 2163 | file_magic*) |
3dd7094e | 2164 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
3df64633 | 2165 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
6706f116 | 2166 | echo "configure:2167: checking for ${ac_tool_prefix}file" >&5 |
3dd7094e | 2167 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
3df64633 AO |
2168 | echo $ac_n "(cached) $ac_c" 1>&6 |
2169 | else | |
c21b6f87 | 2170 | case $MAGIC_CMD in |
3df64633 | 2171 | /*) |
3dd7094e | 2172 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3df64633 AO |
2173 | ;; |
2174 | ?:/*) | |
3dd7094e | 2175 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
3df64633 AO |
2176 | ;; |
2177 | *) | |
3dd7094e | 2178 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
3df64633 AO |
2179 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2180 | ac_dummy="/usr/bin:$PATH" | |
2181 | for ac_dir in $ac_dummy; do | |
2182 | test -z "$ac_dir" && ac_dir=. | |
2183 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3dd7094e | 2184 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
3df64633 | 2185 | if test -n "$file_magic_test_file"; then |
c21b6f87 | 2186 | case $deplibs_check_method in |
3df64633 AO |
2187 | "file_magic "*) |
2188 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3dd7094e | 2189 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3df64633 AO |
2190 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2191 | egrep "$file_magic_regex" > /dev/null; then | |
2192 | : | |
2193 | else | |
2194 | cat <<EOF 1>&2 | |
2195 | ||
2196 | *** Warning: the command libtool uses to detect shared libraries, | |
2197 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2198 | *** The result is that libtool may fail to recognize shared libraries | |
2199 | *** as such. This will affect the creation of libtool libraries that | |
2200 | *** depend on shared libraries, but programs linked with such libtool | |
2201 | *** libraries will work regardless of this problem. Nevertheless, you | |
2202 | *** may want to report the problem to your system manager and/or to | |
2203 | *** bug-libtool@gnu.org | |
2204 | ||
2205 | EOF | |
2206 | fi ;; | |
2207 | esac | |
2208 | fi | |
2209 | break | |
2210 | fi | |
2211 | done | |
2212 | IFS="$ac_save_ifs" | |
3dd7094e | 2213 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
3df64633 AO |
2214 | ;; |
2215 | esac | |
2216 | fi | |
2217 | ||
3dd7094e AO |
2218 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2219 | if test -n "$MAGIC_CMD"; then | |
2220 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
3df64633 AO |
2221 | else |
2222 | echo "$ac_t""no" 1>&6 | |
2223 | fi | |
2224 | ||
3dd7094e | 2225 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
3df64633 AO |
2226 | if test -n "$ac_tool_prefix"; then |
2227 | echo $ac_n "checking for file""... $ac_c" 1>&6 | |
6706f116 | 2228 | echo "configure:2229: checking for file" >&5 |
3dd7094e | 2229 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
3df64633 AO |
2230 | echo $ac_n "(cached) $ac_c" 1>&6 |
2231 | else | |
c21b6f87 | 2232 | case $MAGIC_CMD in |
3df64633 | 2233 | /*) |
3dd7094e | 2234 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3df64633 AO |
2235 | ;; |
2236 | ?:/*) | |
3dd7094e | 2237 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
3df64633 AO |
2238 | ;; |
2239 | *) | |
3dd7094e | 2240 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
3df64633 AO |
2241 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2242 | ac_dummy="/usr/bin:$PATH" | |
2243 | for ac_dir in $ac_dummy; do | |
2244 | test -z "$ac_dir" && ac_dir=. | |
2245 | if test -f $ac_dir/file; then | |
3dd7094e | 2246 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
3df64633 | 2247 | if test -n "$file_magic_test_file"; then |
c21b6f87 | 2248 | case $deplibs_check_method in |
3df64633 AO |
2249 | "file_magic "*) |
2250 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3dd7094e | 2251 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3df64633 AO |
2252 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2253 | egrep "$file_magic_regex" > /dev/null; then | |
2254 | : | |
2255 | else | |
2256 | cat <<EOF 1>&2 | |
2257 | ||
2258 | *** Warning: the command libtool uses to detect shared libraries, | |
2259 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2260 | *** The result is that libtool may fail to recognize shared libraries | |
2261 | *** as such. This will affect the creation of libtool libraries that | |
2262 | *** depend on shared libraries, but programs linked with such libtool | |
2263 | *** libraries will work regardless of this problem. Nevertheless, you | |
2264 | *** may want to report the problem to your system manager and/or to | |
2265 | *** bug-libtool@gnu.org | |
2266 | ||
2267 | EOF | |
2268 | fi ;; | |
2269 | esac | |
2270 | fi | |
2271 | break | |
2272 | fi | |
2273 | done | |
2274 | IFS="$ac_save_ifs" | |
3dd7094e | 2275 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
3df64633 AO |
2276 | ;; |
2277 | esac | |
2278 | fi | |
2279 | ||
3dd7094e AO |
2280 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2281 | if test -n "$MAGIC_CMD"; then | |
2282 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
3df64633 AO |
2283 | else |
2284 | echo "$ac_t""no" 1>&6 | |
2285 | fi | |
2286 | ||
2287 | else | |
3dd7094e | 2288 | MAGIC_CMD=: |
3df64633 AO |
2289 | fi |
2290 | fi | |
2291 | ||
2292 | fi | |
2293 | ;; | |
2294 | esac | |
2295 | ||
2296 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2297 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2298 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 2299 | echo "configure:2300: checking for $ac_word" >&5 |
3df64633 AO |
2300 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2302 | else | |
2303 | if test -n "$RANLIB"; then | |
2304 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2305 | else | |
2306 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2307 | ac_dummy="$PATH" | |
2308 | for ac_dir in $ac_dummy; do | |
2309 | test -z "$ac_dir" && ac_dir=. | |
2310 | if test -f $ac_dir/$ac_word; then | |
2311 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2312 | break | |
2313 | fi | |
2314 | done | |
2315 | IFS="$ac_save_ifs" | |
2316 | fi | |
2317 | fi | |
2318 | RANLIB="$ac_cv_prog_RANLIB" | |
2319 | if test -n "$RANLIB"; then | |
2320 | echo "$ac_t""$RANLIB" 1>&6 | |
2321 | else | |
2322 | echo "$ac_t""no" 1>&6 | |
2323 | fi | |
2324 | ||
2325 | ||
2326 | if test -z "$ac_cv_prog_RANLIB"; then | |
2327 | if test -n "$ac_tool_prefix"; then | |
2328 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2329 | set dummy ranlib; ac_word=$2 | |
2330 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 2331 | echo "configure:2332: checking for $ac_word" >&5 |
3df64633 AO |
2332 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2334 | else | |
2335 | if test -n "$RANLIB"; then | |
2336 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2337 | else | |
2338 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2339 | ac_dummy="$PATH" | |
2340 | for ac_dir in $ac_dummy; do | |
2341 | test -z "$ac_dir" && ac_dir=. | |
2342 | if test -f $ac_dir/$ac_word; then | |
2343 | ac_cv_prog_RANLIB="ranlib" | |
2344 | break | |
2345 | fi | |
2346 | done | |
2347 | IFS="$ac_save_ifs" | |
2348 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2349 | fi | |
2350 | fi | |
2351 | RANLIB="$ac_cv_prog_RANLIB" | |
2352 | if test -n "$RANLIB"; then | |
2353 | echo "$ac_t""$RANLIB" 1>&6 | |
2354 | else | |
2355 | echo "$ac_t""no" 1>&6 | |
2356 | fi | |
2357 | ||
2358 | else | |
2359 | RANLIB=":" | |
2360 | fi | |
2361 | fi | |
2362 | ||
2363 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2364 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2365 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 2366 | echo "configure:2367: checking for $ac_word" >&5 |
3df64633 AO |
2367 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2368 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2369 | else | |
2370 | if test -n "$STRIP"; then | |
2371 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2372 | else | |
2373 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2374 | ac_dummy="$PATH" | |
2375 | for ac_dir in $ac_dummy; do | |
2376 | test -z "$ac_dir" && ac_dir=. | |
2377 | if test -f $ac_dir/$ac_word; then | |
2378 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2379 | break | |
2380 | fi | |
2381 | done | |
2382 | IFS="$ac_save_ifs" | |
2383 | fi | |
2384 | fi | |
2385 | STRIP="$ac_cv_prog_STRIP" | |
2386 | if test -n "$STRIP"; then | |
2387 | echo "$ac_t""$STRIP" 1>&6 | |
2388 | else | |
2389 | echo "$ac_t""no" 1>&6 | |
2390 | fi | |
2391 | ||
2392 | ||
2393 | if test -z "$ac_cv_prog_STRIP"; then | |
2394 | if test -n "$ac_tool_prefix"; then | |
2395 | # Extract the first word of "strip", so it can be a program name with args. | |
2396 | set dummy strip; ac_word=$2 | |
2397 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6706f116 | 2398 | echo "configure:2399: checking for $ac_word" >&5 |
3df64633 AO |
2399 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2401 | else | |
2402 | if test -n "$STRIP"; then | |
2403 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2404 | else | |
2405 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2406 | ac_dummy="$PATH" | |
2407 | for ac_dir in $ac_dummy; do | |
2408 | test -z "$ac_dir" && ac_dir=. | |
2409 | if test -f $ac_dir/$ac_word; then | |
2410 | ac_cv_prog_STRIP="strip" | |
2411 | break | |
2412 | fi | |
2413 | done | |
2414 | IFS="$ac_save_ifs" | |
2415 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
2416 | fi | |
2417 | fi | |
2418 | STRIP="$ac_cv_prog_STRIP" | |
2419 | if test -n "$STRIP"; then | |
2420 | echo "$ac_t""$STRIP" 1>&6 | |
2421 | else | |
2422 | echo "$ac_t""no" 1>&6 | |
2423 | fi | |
2424 | ||
2425 | else | |
2426 | STRIP=":" | |
2427 | fi | |
2428 | fi | |
2429 | ||
b2dad0e3 | 2430 | |
b2dad0e3 BK |
2431 | # Check for any special flags to pass to ltconfig. |
2432 | libtool_flags="--cache-file=$cache_file" | |
2433 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
2434 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
2435 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
c21b6f87 PE |
2436 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
2437 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
3840fa2a BK |
2438 | libtool_flags="$libtool_flags --enable-dlopen" |
2439 | ||
2440 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2441 | if test "${enable_libtool_lock+set}" = set; then | |
2442 | enableval="$enable_libtool_lock" | |
2443 | : | |
2444 | fi | |
2445 | ||
2446 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2447 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
b2dad0e3 | 2448 | |
3df64633 AO |
2449 | # Check whether --with-pic or --without-pic was given. |
2450 | if test "${with_pic+set}" = set; then | |
2451 | withval="$with_pic" | |
2452 | pic_mode="$withval" | |
2453 | else | |
2454 | pic_mode=default | |
2455 | fi | |
2456 | ||
2457 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
2458 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2459 | ||
b2dad0e3 BK |
2460 | # Some flags need to be propagated to the compiler or linker for good |
2461 | # libtool support. | |
c21b6f87 | 2462 | case $host in |
b2dad0e3 BK |
2463 | *-*-irix6*) |
2464 | # Find out which ABI we are using. | |
6706f116 AO |
2465 | echo '#line 2466 "configure"' > conftest.$ac_ext |
2466 | if { (eval echo configure:2467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
c21b6f87 | 2467 | case `/usr/bin/file conftest.$ac_objext` in |
b2dad0e3 BK |
2468 | *32-bit*) |
2469 | LD="${LD-ld} -32" | |
2470 | ;; | |
2471 | *N32*) | |
2472 | LD="${LD-ld} -n32" | |
2473 | ;; | |
2474 | *64-bit*) | |
2475 | LD="${LD-ld} -64" | |
2476 | ;; | |
2477 | esac | |
2478 | fi | |
2479 | rm -rf conftest* | |
2480 | ;; | |
2481 | ||
2482 | *-*-sco3.2v5*) | |
2483 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
2484 | SAVE_CFLAGS="$CFLAGS" | |
2485 | CFLAGS="$CFLAGS -belf" | |
2486 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
6706f116 | 2487 | echo "configure:2488: checking whether the C compiler needs -belf" >&5 |
b2dad0e3 BK |
2488 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
2489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2490 | else | |
3df64633 AO |
2491 | |
2492 | ac_ext=c | |
2493 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2494 | ac_cpp='$CPP $CPPFLAGS' | |
2495 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2496 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2497 | cross_compiling=$ac_cv_prog_cc_cross | |
2498 | ||
2499 | cat > conftest.$ac_ext <<EOF | |
6706f116 | 2500 | #line 2501 "configure" |
b2dad0e3 BK |
2501 | #include "confdefs.h" |
2502 | ||
2503 | int main() { | |
2504 | ||
2505 | ; return 0; } | |
2506 | EOF | |
6706f116 | 2507 | if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2dad0e3 BK |
2508 | rm -rf conftest* |
2509 | lt_cv_cc_needs_belf=yes | |
2510 | else | |
2511 | echo "configure: failed program was:" >&5 | |
2512 | cat conftest.$ac_ext >&5 | |
2513 | rm -rf conftest* | |
2514 | lt_cv_cc_needs_belf=no | |
2515 | fi | |
2516 | rm -f conftest* | |
3df64633 AO |
2517 | ac_ext=c |
2518 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2519 | ac_cpp='$CPP $CPPFLAGS' | |
2520 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2521 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2522 | cross_compiling=$ac_cv_prog_cc_cross | |
2523 | ||
b2dad0e3 BK |
2524 | fi |
2525 | ||
2526 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2527 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2528 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2529 | CFLAGS="$SAVE_CFLAGS" | |
2530 | fi | |
2531 | ;; | |
2532 | ||
2533 | ||
2534 | esac | |
2535 | ||
3df64633 | 2536 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
6706f116 | 2537 | echo "configure:2538: checking how to run the C++ preprocessor" >&5 |
3df64633 AO |
2538 | if test -z "$CXXCPP"; then |
2539 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
2540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2541 | else | |
2542 | ac_ext=C | |
2543 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2544 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2545 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2546 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2547 | cross_compiling=$ac_cv_prog_cxx_cross | |
2548 | CXXCPP="${CXX-g++} -E" | |
2549 | cat > conftest.$ac_ext <<EOF | |
6706f116 | 2550 | #line 2551 "configure" |
3df64633 AO |
2551 | #include "confdefs.h" |
2552 | #include <stdlib.h> | |
2553 | EOF | |
2554 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6706f116 | 2555 | { (eval echo configure:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3df64633 AO |
2556 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2557 | if test -z "$ac_err"; then | |
2558 | : | |
2559 | else | |
2560 | echo "$ac_err" >&5 | |
2561 | echo "configure: failed program was:" >&5 | |
2562 | cat conftest.$ac_ext >&5 | |
2563 | rm -rf conftest* | |
2564 | CXXCPP=/lib/cpp | |
2565 | fi | |
2566 | rm -f conftest* | |
2567 | ac_cv_prog_CXXCPP="$CXXCPP" | |
2568 | ac_ext=c | |
2569 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2570 | ac_cpp='$CPP $CPPFLAGS' | |
2571 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2572 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2573 | cross_compiling=$ac_cv_prog_cc_cross | |
2574 | fi | |
2575 | fi | |
2576 | CXXCPP="$ac_cv_prog_CXXCPP" | |
2577 | echo "$ac_t""$CXXCPP" 1>&6 | |
2578 | ||
b2dad0e3 BK |
2579 | |
2580 | # Save cache, so that ltconfig can load it | |
2581 | cat > confcache <<\EOF | |
2582 | # This file is a shell script that caches the results of configure | |
2583 | # tests run on this system so they can be shared between configure | |
2584 | # scripts and configure runs. It is not useful on other systems. | |
2585 | # If it contains results you don't want to keep, you may remove or edit it. | |
2586 | # | |
2587 | # By default, configure uses ./config.cache as the cache file, | |
2588 | # creating it if it does not exist already. You can give configure | |
2589 | # the --cache-file=FILE option to use a different cache file; that is | |
2590 | # what configure does when it calls configure scripts in | |
2591 | # subdirectories, so they share the cache. | |
2592 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2593 | # config.status only pays attention to the cache file if you give it the | |
2594 | # --recheck option to rerun configure. | |
2595 | # | |
2596 | EOF | |
2597 | # The following way of writing the cache mishandles newlines in values, | |
2598 | # but we know of no workaround that is simple, portable, and efficient. | |
2599 | # So, don't put newlines in cache variables' values. | |
2600 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2601 | # and sets the high bit in the cache file unless we assign to the vars. | |
2602 | (set) 2>&1 | | |
2603 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2604 | *ac_space=\ *) | |
2605 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2606 | # turns \\\\ into \\, and sed turns \\ into \). | |
2607 | sed -n \ | |
2608 | -e "s/'/'\\\\''/g" \ | |
2609 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2610 | ;; | |
2611 | *) | |
2612 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2613 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2614 | ;; | |
2615 | esac >> confcache | |
2616 | if cmp -s $cache_file confcache; then | |
2617 | : | |
2618 | else | |
2619 | if test -w $cache_file; then | |
2620 | echo "updating cache $cache_file" | |
2621 | cat confcache > $cache_file | |
2622 | else | |
2623 | echo "not updating unwritable cache $cache_file" | |
2624 | fi | |
2625 | fi | |
2626 | rm -f confcache | |
2627 | ||
2628 | ||
2629 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
3df64633 | 2630 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
3dd7094e | 2631 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
3df64633 AO |
2632 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2633 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2634 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2635 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
b2dad0e3 | 2636 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
3df64633 | 2637 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
b2dad0e3 BK |
2638 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
2639 | ||
2640 | # Reload cache, that may have been modified by ltconfig | |
2641 | if test -r "$cache_file"; then | |
2642 | echo "loading cache $cache_file" | |
2643 | . $cache_file | |
2644 | else | |
2645 | echo "creating cache $cache_file" | |
2646 | > $cache_file | |
2647 | fi | |
2648 | ||
2649 | ||
2650 | # This can be used to rebuild libtool when needed | |
3df64633 | 2651 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2dad0e3 BK |
2652 | |
2653 | # Always use our own libtool. | |
2654 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2655 | ||
2656 | # Redirect the config.log output again, so that the ltconfig log is not | |
2657 | # clobbered by the next message. | |
2658 | exec 5>>./config.log | |
2659 | ||
3df64633 AO |
2660 | |
2661 | ||
3df64633 AO |
2662 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" |
2663 | lt_save_CC="$CC" | |
2664 | lt_save_CFLAGS="$CFLAGS" | |
2665 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
c21b6f87 | 2666 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
3df64633 AO |
2667 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2668 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2669 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2670 | deplibs_check_method="$deplibs_check_method" \ | |
2671 | file_magic_cmd="$file_magic_cmd" \ | |
2672 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | |
2673 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \ | |
2674 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; } | |
2675 | CC="$lt_save_CC" | |
2676 | CFLAGS="$lt_save_CFLAGS" | |
2677 | ||
2678 | # Redirect the config.log output again, so that the ltconfig log is not | |
2679 | # clobbered by the next message. | |
2680 | exec 5>>./config.log | |
2681 | ||
3df64633 AO |
2682 | |
2683 | ||
2684 | ||
2685 | ||
3dd7094e | 2686 | |
34791641 PE |
2687 | |
2688 | ||
33590f13 | 2689 | |
33590f13 BK |
2690 | # Check for c++ or library specific bits that don't require linking. |
2691 | #GLIBCPP_CHECK_COMPILER_VERSION | |
5780a46b | 2692 | echo $ac_n "checking for GNU make""... $ac_c" 1>&6 |
6706f116 | 2693 | echo "configure:2694: checking for GNU make" >&5 |
5780a46b BK |
2694 | if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then |
2695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2696 | else | |
2697 | _cv_gnu_make_command='' ; | |
57d278be | 2698 | for a in "${MAKE-make}" make gmake gnumake ; do |
ea0c0b6e | 2699 | if ( $a --version 2> /dev/null | grep -c GNU > /dev/null ) |
79f5e38e | 2700 | then |
5780a46b BK |
2701 | _cv_gnu_make_command=$a ; |
2702 | break; | |
2703 | fi | |
2704 | done ; | |
2705 | ||
2706 | fi | |
2707 | ||
2708 | echo "$ac_t""$_cv_gnu_make_command" 1>&6 ; | |
2709 | if test "x$_cv_gnu_make_command" != "x" ; then | |
2710 | ifGNUmake='' ; | |
2711 | else | |
2712 | ifGNUmake='#' ; | |
2713 | fi | |
2714 | ||
2715 | ||
04e78786 | 2716 | |
33590f13 | 2717 | # Enable all the variable C++ stuff. C_MBCHAR must come early. |
44382959 BK |
2718 | # Check whether --enable-debug or --disable-debug was given. |
2719 | if test "${enable_debug+set}" = set; then | |
2720 | enableval="$enable_debug" | |
2721 | case "${enableval}" in | |
2722 | yes) enable_debug=yes ;; | |
2723 | no) enable_debug=no ;; | |
2724 | *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;; | |
2725 | esac | |
2726 | else | |
2727 | enable_debug=no | |
2728 | fi | |
2729 | ||
2730 | case "${enable_debug}" in | |
2731 | yes) | |
2732 | DEBUG_FLAGS='-O0 -ggdb3' | |
6abd2230 | 2733 | ;; |
44382959 BK |
2734 | no) |
2735 | DEBUG_FLAGS='-g' | |
2736 | ;; | |
2737 | esac | |
2738 | ||
2739 | ||
c470c17d | 2740 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
6706f116 | 2741 | echo "configure:2742: checking how to run the C preprocessor" >&5 |
c470c17d BK |
2742 | # On Suns, sometimes $CPP names a directory. |
2743 | if test -n "$CPP" && test -d "$CPP"; then | |
2744 | CPP= | |
2745 | fi | |
2746 | if test -z "$CPP"; then | |
2747 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
b2dad0e3 BK |
2748 | echo $ac_n "(cached) $ac_c" 1>&6 |
2749 | else | |
c470c17d BK |
2750 | # This must be in double quotes, not single quotes, because CPP may get |
2751 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2752 | CPP="${CC-cc} -E" | |
2753 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2754 | # not just through cpp. | |
b2dad0e3 | 2755 | cat > conftest.$ac_ext <<EOF |
6706f116 | 2756 | #line 2757 "configure" |
b2dad0e3 | 2757 | #include "confdefs.h" |
c470c17d BK |
2758 | #include <assert.h> |
2759 | Syntax Error | |
b2dad0e3 BK |
2760 | EOF |
2761 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6706f116 | 2762 | { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b2dad0e3 BK |
2763 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2764 | if test -z "$ac_err"; then | |
2765 | : | |
2766 | else | |
2767 | echo "$ac_err" >&5 | |
2768 | echo "configure: failed program was:" >&5 | |
2769 | cat conftest.$ac_ext >&5 | |
2770 | rm -rf conftest* | |
c470c17d BK |
2771 | CPP="${CC-cc} -E -traditional-cpp" |
2772 | cat > conftest.$ac_ext <<EOF | |
6706f116 | 2773 | #line 2774 "configure" |
c470c17d BK |
2774 | #include "confdefs.h" |
2775 | #include <assert.h> | |
2776 | Syntax Error | |
2777 | EOF | |
2778 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6706f116 | 2779 | { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c470c17d BK |
2780 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2781 | if test -z "$ac_err"; then | |
2782 | : | |
2783 | else | |
2784 | echo "$ac_err" >&5 | |
2785 | echo "configure: failed program was:" >&5 | |
2786 | cat conftest.$ac_ext >&5 | |
2787 | rm -rf conftest* | |
2788 | CPP="${CC-cc} -nologo -E" | |
2789 | cat > conftest.$ac_ext <<EOF | |
6706f116 | 2790 | #line 2791 "configure" |
c470c17d BK |
2791 | #include "confdefs.h" |
2792 | #include <assert.h> | |
2793 | Syntax Error | |
2794 | EOF | |
2795 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6706f116 | 2796 | { (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c470c17d BK |
2797 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2798 | if test -z "$ac_err"; then | |
2799 | : | |
2800 | else | |
2801 | echo "$ac_err" >&5 | |
2802 | echo "configure: failed program was:" >&5 | |
2803 | cat conftest.$ac_ext >&5 | |
2804 | rm -rf conftest* | |
2805 | CPP=/lib/cpp | |
b2dad0e3 BK |
2806 | fi |
2807 | rm -f conftest* | |
2808 | fi | |
33590f13 BK |
2809 | rm -f conftest* |
2810 | fi | |
2811 | rm -f conftest* | |
2812 | ac_cv_prog_CPP="$CPP" | |
2813 | fi | |
2814 | CPP="$ac_cv_prog_CPP" | |
2815 | else | |
2816 | ac_cv_prog_CPP="$CPP" | |
2817 | fi | |
2818 | echo "$ac_t""$CPP" 1>&6 | |
2819 | ||
2820 | ||
2821 | echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6 | |
6706f116 | 2822 | echo "configure:2823: checking for cstdio to use" >&5 |
33590f13 BK |
2823 | # Check whether --enable-cstdio or --disable-cstdio was given. |
2824 | if test "${enable_cstdio+set}" = set; then | |
2825 | enableval="$enable_cstdio" | |
2826 | if test x$enable_cstdio = xno; then | |
2827 | enable_cstdio=stdio | |
2828 | fi | |
2829 | else | |
2830 | enable_cstdio=stdio | |
2831 | fi | |
2832 | ||
2833 | ||
2834 | enable_cstdio_flag=$enable_cstdio | |
2835 | ||
2836 | case x${enable_cstdio_flag} in | |
2837 | xlibio) | |
2838 | CSTDIO_H=config/io/c_io_libio.h | |
2839 | BASIC_FILE_H=config/io/basic_file_libio.h | |
2840 | BASIC_FILE_CC=config/io/basic_file_libio.cc | |
2841 | echo "$ac_t""libio" 1>&6 | |
2842 | ||
2843 | # see if we are on a system with libio native (ie, linux) | |
2844 | ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'` | |
2845 | echo $ac_n "checking for libio.h""... $ac_c" 1>&6 | |
6706f116 | 2846 | echo "configure:2847: checking for libio.h" >&5 |
33590f13 BK |
2847 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2849 | else | |
2850 | cat > conftest.$ac_ext <<EOF | |
6706f116 | 2851 | #line 2852 "configure" |
33590f13 BK |
2852 | #include "confdefs.h" |
2853 | #include <libio.h> | |
2854 | EOF | |
2855 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6706f116 | 2856 | { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
33590f13 BK |
2857 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2858 | if test -z "$ac_err"; then | |
2859 | rm -rf conftest* | |
2860 | eval "ac_cv_header_$ac_safe=yes" | |
2861 | else | |
2862 | echo "$ac_err" >&5 | |
2863 | echo "configure: failed program was:" >&5 | |
2864 | cat conftest.$ac_ext >&5 | |
2865 | rm -rf conftest* | |
2866 | eval "ac_cv_header_$ac_safe=no" | |
2867 | fi | |
2868 | rm -f conftest* | |
2869 | fi | |
2870 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2871 | echo "$ac_t""yes" 1>&6 | |
2872 | has_libio=yes | |
2873 | else | |
2874 | echo "$ac_t""no" 1>&6 | |
2875 | has_libio=no | |
2876 | fi | |
2877 | ||
2878 | ||
2879 | # Need to check and see what version of glibc is being used. If | |
2880 | # it's not glibc-2.2 or higher, then we'll need to go ahead and | |
2881 | # compile most of libio for linux systems. | |
2882 | if test x$has_libio = x"yes"; then | |
2883 | case "$target" in | |
2884 | *-*-linux*) | |
2885 | echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6 | |
6706f116 | 2886 | echo "configure:2887: checking for glibc version >= 2.2" >&5 |
33590f13 | 2887 | cat > conftest.$ac_ext <<EOF |
6706f116 | 2888 | #line 2889 "configure" |
33590f13 BK |
2889 | #include "confdefs.h" |
2890 | ||
2891 | #include <features.h> | |
2892 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) | |
2893 | ok | |
2894 | #endif | |
2895 | ||
2896 | EOF | |
2897 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2898 | egrep "ok" >/dev/null 2>&1; then | |
2899 | rm -rf conftest* | |
2900 | glibc_satisfactory=yes | |
2901 | else | |
2902 | rm -rf conftest* | |
2903 | glibc_satisfactory=no | |
2904 | fi | |
2905 | rm -f conftest* | |
2906 | ||
2907 | echo "$ac_t""$glibc_satisfactory" 1>&6 | |
2908 | ;; | |
2909 | esac | |
2910 | ||
2911 | # XXX at the moment, admit defeat and force the recompilation | |
2912 | # XXX of glibc even on glibc-2.2 systems, because libio is not synched. | |
2913 | glibc_satisfactory=no | |
2914 | ||
2915 | if test x$glibc_satisfactory = x"yes"; then | |
2916 | need_libio=no | |
2917 | need_wlibio=no | |
2918 | else | |
2919 | need_libio=yes | |
2920 | # bkoz XXX need to add checks to enable this | |
2921 | # pme XXX here's a first pass at such a check | |
2922 | if test x$enable_c_mbchar != xno; then | |
2923 | need_wlibio=yes | |
2924 | else | |
2925 | need_wlibio=no | |
2926 | fi | |
2927 | fi | |
2928 | ||
2929 | else | |
2930 | # Using libio, but <libio.h> doesn't exist on the target system. . . | |
2931 | need_libio=yes | |
2932 | # bkoz XXX need to add checks to enable this | |
2933 | # pme XXX here's a first pass at such a check | |
2934 | if test x$enable_c_mbchar != xno; then | |
2935 | need_wlibio=yes | |
2936 | else | |
2937 | need_wlibio=no | |
2938 | fi | |
2939 | fi | |
2940 | ;; | |
2941 | xstdio | x | xno | xnone | xyes) | |
2942 | # default | |
2943 | CSTDIO_H=config/io/c_io_stdio.h | |
2944 | BASIC_FILE_H=config/io/basic_file_stdio.h | |
2945 | BASIC_FILE_CC=config/io/basic_file_stdio.cc | |
2946 | echo "$ac_t""stdio" 1>&6 | |
2947 | ||
2948 | # We're not using stdio. | |
2949 | need_libio=no | |
2950 | need_wlibio=no | |
2951 | ;; | |
2952 | *) | |
2953 | echo "$enable_cstdio is an unknown io package" 1>&2 | |
2954 | exit 1 | |
2955 | ;; | |
2956 | esac | |
2957 | ||
2958 | ||
2959 | ||
2960 | ||
2961 | # 2000-08-04 bkoz hack | |
2962 | CCODECVT_C=config/io/c_io_libio_codecvt.c | |
2963 | ||
2964 | # 2000-08-04 bkoz hack | |
2965 | ||
2966 | ||
2967 | ||
4e10943d BK |
2968 | if test "$need_libio" = yes || test "$need_wlibio" = yes; then |
2969 | GLIBCPP_BUILD_LIBIO_TRUE= | |
2970 | GLIBCPP_BUILD_LIBIO_FALSE='#' | |
b2dad0e3 | 2971 | else |
4e10943d BK |
2972 | GLIBCPP_BUILD_LIBIO_TRUE='#' |
2973 | GLIBCPP_BUILD_LIBIO_FALSE= | |
2974 | fi | |
2975 | ||
2976 | ||
2977 | if test "$need_libio" = yes; then | |
2978 | GLIBCPP_NEED_LIBIO_TRUE= | |
2979 | GLIBCPP_NEED_LIBIO_FALSE='#' | |
b2dad0e3 | 2980 | else |
4e10943d BK |
2981 | GLIBCPP_NEED_LIBIO_TRUE='#' |
2982 | GLIBCPP_NEED_LIBIO_FALSE= | |
b2dad0e3 | 2983 | fi |
4e10943d BK |
2984 | |
2985 | ||
2986 | if test "$need_wlibio" = yes; then | |
2987 | GLIBCPP_NEED_WLIBIO_TRUE= | |
2988 | GLIBCPP_NEED_WLIBIO_FALSE='#' | |
2989 | else | |
2990 | GLIBCPP_NEED_WLIBIO_TRUE='#' | |
2991 | GLIBCPP_NEED_WLIBIO_FALSE= | |
b2dad0e3 | 2992 | fi |
4e10943d BK |
2993 | if test "$need_libio" = yes || test "$need_wlibio" = yes; then |
2994 | libio_la=../libio/libio.la | |
2995 | else | |
2996 | libio_la= | |
2997 | fi | |
2998 | ||
2999 | ||
3000 | ||
3001 | echo $ac_n "checking for clocale to use""... $ac_c" 1>&6 | |
6706f116 | 3002 | echo "configure:3003: checking for clocale to use" >&5 |
4e10943d BK |
3003 | # Check whether --enable-clocale or --disable-clocale was given. |
3004 | if test "${enable_clocale+set}" = set; then | |
3005 | enableval="$enable_clocale" | |
3006 | if test x$enable_clocale = xno; then | |
56deb74c | 3007 | enable_clocale=no |
4e10943d | 3008 | fi |
b2dad0e3 | 3009 | else |
56deb74c | 3010 | enable_clocale=no |
b2dad0e3 BK |
3011 | fi |
3012 | ||
20427c6b | 3013 | |
4e10943d | 3014 | enable_clocale_flag=$enable_clocale |
dd75251f | 3015 | |
56deb74c BK |
3016 | if test x$enable_clocale_flag = xno; then |
3017 | case x${target_os} in | |
3018 | xlinux* | xgnu*) | |
3019 | cat > conftest.$ac_ext <<EOF | |
6706f116 | 3020 | #line 3021 "configure" |
56deb74c BK |
3021 | #include "confdefs.h" |
3022 | ||
3023 | #include <features.h> | |
3024 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) | |
1451a492 | 3025 | _GLIBCPP_ok |
56deb74c BK |
3026 | #endif |
3027 | ||
3028 | EOF | |
3029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1451a492 | 3030 | egrep "_GLIBCPP_ok" >/dev/null 2>&1; then |
56deb74c BK |
3031 | rm -rf conftest* |
3032 | enable_clocale_flag=gnu | |
3033 | else | |
3034 | rm -rf conftest* | |
3035 | enable_clocale_flag=generic | |
3036 | fi | |
3037 | rm -f conftest* | |
3038 | ||
1451a492 BK |
3039 | |
3040 | # Test for bugs early in glibc-2.2.x series | |
3041 | if test x$enable_clocale_flag = xgnu; then | |
3042 | if test "$cross_compiling" = yes; then | |
3043 | enable_clocale_flag=generic | |
3044 | else | |
3045 | cat > conftest.$ac_ext <<EOF | |
6706f116 | 3046 | #line 3047 "configure" |
1451a492 BK |
3047 | #include "confdefs.h" |
3048 | ||
3049 | #define _GNU_SOURCE 1 | |
3050 | #include <locale.h> | |
3051 | int main() | |
3052 | { | |
3053 |