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