]>
Commit | Line | Data |
---|---|---|
1530be84 TT |
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: | |
14 | ac_help="$ac_help | |
54ce7452 | 15 | --enable-multilib build many library versions (default)" |
1530be84 TT |
16 | ac_help="$ac_help |
17 | --enable-maintainer-mode enable make rules and dependencies not useful | |
18 | (and sometimes confusing) to the casual installer" | |
66deb2be TT |
19 | ac_help="$ac_help |
20 | --enable-shared[=PKGS] build shared libraries [default=yes]" | |
21 | ac_help="$ac_help | |
22 | --enable-static[=PKGS] build static libraries [default=yes]" | |
115dabb8 TT |
23 | ac_help="$ac_help |
24 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
66deb2be TT |
25 | ac_help="$ac_help |
26 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
115dabb8 | 27 | ac_help="$ac_help |
20bbd3cd | 28 | --disable-libtool-lock avoid locking (might break parallel builds)" |
2f7bf5b7 AO |
29 | ac_help="$ac_help |
30 | --with-pic try to use only PIC/non-PIC objects [default=use both]" | |
1530be84 | 31 | ac_help="$ac_help |
61e922d2 RO |
32 | --with-target-subdir=SUBDIR |
33 | configuring with a cross compiler" | |
1530be84 | 34 | ac_help="$ac_help |
61e922d2 | 35 | --with-cross-host=HOST configuring with a cross compiler" |
1530be84 TT |
36 | ac_help="$ac_help |
37 | --enable-maintainer-mode enable make rules and dependencies not useful | |
38 | (and sometimes confusing) to the casual installer" | |
5a2586cf TT |
39 | ac_help="$ac_help |
40 | --enable-parallel-mark parallelize marking and free list construction" | |
1530be84 | 41 | ac_help="$ac_help |
61e922d2 | 42 | --with-ecos enable runtime eCos target support" |
4c7726b1 | 43 | ac_help="$ac_help |
30c3de1f JS |
44 | --enable-shared[=PKGS] build shared libraries [default=yes]" |
45 | ac_help="$ac_help | |
46 | --with-target-subdir=SUBDIR | |
47 | configuring with a cross compiler" | |
48 | ac_help="$ac_help | |
49 | --with-cross-host=HOST configuring with a cross compiler" | |
5a2586cf TT |
50 | ac_help="$ac_help |
51 | --enable-full-debug include full support for pointer backtracing etc." | |
1530be84 TT |
52 | |
53 | # Initialize some variables set by options. | |
54 | # The variables have the same names as the options, with | |
55 | # dashes changed to underlines. | |
56 | build=NONE | |
57 | cache_file=./config.cache | |
58 | exec_prefix=NONE | |
59 | host=NONE | |
60 | no_create= | |
61 | nonopt=NONE | |
62 | no_recursion= | |
63 | prefix=NONE | |
64 | program_prefix=NONE | |
65 | program_suffix=NONE | |
66 | program_transform_name=s,x,x, | |
67 | silent= | |
68 | site= | |
69 | srcdir= | |
70 | target=NONE | |
71 | verbose= | |
72 | x_includes=NONE | |
73 | x_libraries=NONE | |
74 | bindir='${exec_prefix}/bin' | |
75 | sbindir='${exec_prefix}/sbin' | |
76 | libexecdir='${exec_prefix}/libexec' | |
77 | datadir='${prefix}/share' | |
78 | sysconfdir='${prefix}/etc' | |
79 | sharedstatedir='${prefix}/com' | |
80 | localstatedir='${prefix}/var' | |
81 | libdir='${exec_prefix}/lib' | |
82 | includedir='${prefix}/include' | |
83 | oldincludedir='/usr/include' | |
84 | infodir='${prefix}/info' | |
85 | mandir='${prefix}/man' | |
86 | ||
87 | # Initialize some other variables. | |
88 | subdirs= | |
89 | MFLAGS= MAKEFLAGS= | |
90 | SHELL=${CONFIG_SHELL-/bin/sh} | |
91 | # Maximum number of lines to put in a shell here document. | |
92 | ac_max_here_lines=12 | |
93 | ||
94 | ac_prev= | |
95 | for ac_option | |
96 | do | |
97 | ||
98 | # If the previous option needs an argument, assign it. | |
99 | if test -n "$ac_prev"; then | |
100 | eval "$ac_prev=\$ac_option" | |
101 | ac_prev= | |
102 | continue | |
103 | fi | |
104 | ||
105 | case "$ac_option" in | |
106 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
107 | *) ac_optarg= ;; | |
108 | esac | |
109 | ||
110 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
111 | ||
112 | case "$ac_option" in | |
113 | ||
114 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
115 | ac_prev=bindir ;; | |
116 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
117 | bindir="$ac_optarg" ;; | |
118 | ||
119 | -build | --build | --buil | --bui | --bu) | |
120 | ac_prev=build ;; | |
121 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
122 | build="$ac_optarg" ;; | |
123 | ||
124 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
125 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
126 | ac_prev=cache_file ;; | |
127 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
128 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
129 | cache_file="$ac_optarg" ;; | |
130 | ||
131 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
132 | ac_prev=datadir ;; | |
133 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
134 | | --da=*) | |
135 | datadir="$ac_optarg" ;; | |
136 | ||
137 | -disable-* | --disable-*) | |
138 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
139 | # Reject names that are not valid shell variable names. | |
140 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
142 | fi | |
143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
144 | eval "enable_${ac_feature}=no" ;; | |
145 | ||
146 | -enable-* | --enable-*) | |
147 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
148 | # Reject names that are not valid shell variable names. | |
149 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
150 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
151 | fi | |
152 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
153 | case "$ac_option" in | |
154 | *=*) ;; | |
155 | *) ac_optarg=yes ;; | |
156 | esac | |
157 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
158 | ||
159 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
160 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
161 | | --exec | --exe | --ex) | |
162 | ac_prev=exec_prefix ;; | |
163 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
164 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
165 | | --exec=* | --exe=* | --ex=*) | |
166 | exec_prefix="$ac_optarg" ;; | |
167 | ||
168 | -gas | --gas | --ga | --g) | |
169 | # Obsolete; use --with-gas. | |
170 | with_gas=yes ;; | |
171 | ||
172 | -help | --help | --hel | --he) | |
173 | # Omit some internal or obsolete options to make the list less imposing. | |
174 | # This message is too long to be a string in the A/UX 3.1 sh. | |
175 | cat << EOF | |
176 | Usage: configure [options] [host] | |
177 | Options: [defaults in brackets after descriptions] | |
178 | Configuration: | |
179 | --cache-file=FILE cache test results in FILE | |
180 | --help print this message | |
181 | --no-create do not create output files | |
182 | --quiet, --silent do not print \`checking...' messages | |
183 | --version print the version of autoconf that created configure | |
184 | Directory and file names: | |
185 | --prefix=PREFIX install architecture-independent files in PREFIX | |
186 | [$ac_default_prefix] | |
187 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
188 | [same as prefix] | |
189 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
190 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
191 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
192 | --datadir=DIR read-only architecture-independent data in DIR | |
193 | [PREFIX/share] | |
194 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
195 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
196 | [PREFIX/com] | |
197 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
198 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
199 | --includedir=DIR C header files in DIR [PREFIX/include] | |
200 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
201 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
202 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
203 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
204 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
205 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
206 | --program-transform-name=PROGRAM | |
207 | run sed PROGRAM on installed program names | |
208 | EOF | |
209 | cat << EOF | |
210 | Host type: | |
211 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
212 | --host=HOST configure for HOST [guessed] | |
213 | --target=TARGET configure for TARGET [TARGET=HOST] | |
214 | Features and packages: | |
215 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
216 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
217 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
218 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
219 | --x-includes=DIR X include files are in DIR | |
220 | --x-libraries=DIR X library files are in DIR | |
221 | EOF | |
222 | if test -n "$ac_help"; then | |
223 | echo "--enable and --with options recognized:$ac_help" | |
224 | fi | |
225 | exit 0 ;; | |
226 | ||
227 | -host | --host | --hos | --ho) | |
228 | ac_prev=host ;; | |
229 | -host=* | --host=* | --hos=* | --ho=*) | |
230 | host="$ac_optarg" ;; | |
231 | ||
232 | -includedir | --includedir | --includedi | --included | --include \ | |
233 | | --includ | --inclu | --incl | --inc) | |
234 | ac_prev=includedir ;; | |
235 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
236 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
237 | includedir="$ac_optarg" ;; | |
238 | ||
239 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
240 | ac_prev=infodir ;; | |
241 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
242 | infodir="$ac_optarg" ;; | |
243 | ||
244 | -libdir | --libdir | --libdi | --libd) | |
245 | ac_prev=libdir ;; | |
246 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
247 | libdir="$ac_optarg" ;; | |
248 | ||
249 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
250 | | --libexe | --libex | --libe) | |
251 | ac_prev=libexecdir ;; | |
252 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
253 | | --libexe=* | --libex=* | --libe=*) | |
254 | libexecdir="$ac_optarg" ;; | |
255 | ||
256 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
257 | | --localstate | --localstat | --localsta | --localst \ | |
258 | | --locals | --local | --loca | --loc | --lo) | |
259 | ac_prev=localstatedir ;; | |
260 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
261 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
262 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
263 | localstatedir="$ac_optarg" ;; | |
264 | ||
265 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
266 | ac_prev=mandir ;; | |
267 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
268 | mandir="$ac_optarg" ;; | |
269 | ||
270 | -nfp | --nfp | --nf) | |
271 | # Obsolete; use --without-fp. | |
272 | with_fp=no ;; | |
273 | ||
274 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
275 | | --no-cr | --no-c) | |
276 | no_create=yes ;; | |
277 | ||
278 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
279 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
280 | no_recursion=yes ;; | |
281 | ||
282 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
283 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
284 | | --oldin | --oldi | --old | --ol | --o) | |
285 | ac_prev=oldincludedir ;; | |
286 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
287 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
288 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
289 | oldincludedir="$ac_optarg" ;; | |
290 | ||
291 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
292 | ac_prev=prefix ;; | |
293 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
294 | prefix="$ac_optarg" ;; | |
295 | ||
296 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
297 | | --program-pre | --program-pr | --program-p) | |
298 | ac_prev=program_prefix ;; | |
299 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
300 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
301 | program_prefix="$ac_optarg" ;; | |
302 | ||
303 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
304 | | --program-suf | --program-su | --program-s) | |
305 | ac_prev=program_suffix ;; | |
306 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
307 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
308 | program_suffix="$ac_optarg" ;; | |
309 | ||
310 | -program-transform-name | --program-transform-name \ | |
311 | | --program-transform-nam | --program-transform-na \ | |
312 | | --program-transform-n | --program-transform- \ | |
313 | | --program-transform | --program-transfor \ | |
314 | | --program-transfo | --program-transf \ | |
315 | | --program-trans | --program-tran \ | |
316 | | --progr-tra | --program-tr | --program-t) | |
317 | ac_prev=program_transform_name ;; | |
318 | -program-transform-name=* | --program-transform-name=* \ | |
319 | | --program-transform-nam=* | --program-transform-na=* \ | |
320 | | --program-transform-n=* | --program-transform-=* \ | |
321 | | --program-transform=* | --program-transfor=* \ | |
322 | | --program-transfo=* | --program-transf=* \ | |
323 | | --program-trans=* | --program-tran=* \ | |
324 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
325 | program_transform_name="$ac_optarg" ;; | |
326 | ||
327 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
328 | | -silent | --silent | --silen | --sile | --sil) | |
329 | silent=yes ;; | |
330 | ||
331 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
332 | ac_prev=sbindir ;; | |
333 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
334 | | --sbi=* | --sb=*) | |
335 | sbindir="$ac_optarg" ;; | |
336 | ||
337 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
338 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
339 | | --sharedst | --shareds | --shared | --share | --shar \ | |
340 | | --sha | --sh) | |
341 | ac_prev=sharedstatedir ;; | |
342 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
343 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
344 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
345 | | --sha=* | --sh=*) | |
346 | sharedstatedir="$ac_optarg" ;; | |
347 | ||
348 | -site | --site | --sit) | |
349 | ac_prev=site ;; | |
350 | -site=* | --site=* | --sit=*) | |
351 | site="$ac_optarg" ;; | |
352 | ||
353 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
354 | ac_prev=srcdir ;; | |
355 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
356 | srcdir="$ac_optarg" ;; | |
357 | ||
358 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
359 | | --syscon | --sysco | --sysc | --sys | --sy) | |
360 | ac_prev=sysconfdir ;; | |
361 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
362 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
363 | sysconfdir="$ac_optarg" ;; | |
364 | ||
365 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
366 | ac_prev=target ;; | |
367 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
368 | target="$ac_optarg" ;; | |
369 | ||
370 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
371 | verbose=yes ;; | |
372 | ||
373 | -version | --version | --versio | --versi | --vers) | |
374 | echo "configure generated by autoconf version 2.13" | |
375 | exit 0 ;; | |
376 | ||
377 | -with-* | --with-*) | |
378 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
379 | # Reject names that are not valid shell variable names. | |
380 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
381 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
382 | fi | |
383 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
384 | case "$ac_option" in | |
385 | *=*) ;; | |
386 | *) ac_optarg=yes ;; | |
387 | esac | |
388 | eval "with_${ac_package}='$ac_optarg'" ;; | |
389 | ||
390 | -without-* | --without-*) | |
391 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
392 | # Reject names that are not valid shell variable names. | |
393 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
394 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
395 | fi | |
396 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
397 | eval "with_${ac_package}=no" ;; | |
398 | ||
399 | --x) | |
400 | # Obsolete; use --with-x. | |
401 | with_x=yes ;; | |
402 | ||
403 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
404 | | --x-incl | --x-inc | --x-in | --x-i) | |
405 | ac_prev=x_includes ;; | |
406 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
407 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
408 | x_includes="$ac_optarg" ;; | |
409 | ||
410 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
411 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
412 | ac_prev=x_libraries ;; | |
413 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
414 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
415 | x_libraries="$ac_optarg" ;; | |
416 | ||
417 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
418 | ;; | |
419 | ||
420 | *) | |
421 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
422 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
423 | fi | |
424 | if test "x$nonopt" != xNONE; then | |
425 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
426 | fi | |
427 | nonopt="$ac_option" | |
428 | ;; | |
429 | ||
430 | esac | |
431 | done | |
432 | ||
433 | if test -n "$ac_prev"; then | |
434 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
435 | fi | |
436 | ||
437 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
438 | ||
439 | # File descriptor usage: | |
440 | # 0 standard input | |
441 | # 1 file creation | |
442 | # 2 errors and warnings | |
443 | # 3 some systems may open it to /dev/tty | |
444 | # 4 used on the Kubota Titan | |
445 | # 6 checking for... messages and results | |
446 | # 5 compiler messages saved in config.log | |
447 | if test "$silent" = yes; then | |
448 | exec 6>/dev/null | |
449 | else | |
450 | exec 6>&1 | |
451 | fi | |
452 | exec 5>./config.log | |
453 | ||
454 | echo "\ | |
455 | This file contains any messages produced by compilers while | |
456 | running configure, to aid debugging if configure makes a mistake. | |
457 | " 1>&5 | |
458 | ||
459 | # Strip out --no-create and --no-recursion so they do not pile up. | |
460 | # Also quote any args containing shell metacharacters. | |
461 | ac_configure_args= | |
462 | for ac_arg | |
463 | do | |
464 | case "$ac_arg" in | |
465 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
466 | | --no-cr | --no-c) ;; | |
467 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
468 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
469 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
470 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
471 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
472 | esac | |
473 | done | |
474 | ||
475 | # NLS nuisances. | |
476 | # Only set these to C if already set. These must not be set unconditionally | |
477 | # because not all systems understand e.g. LANG=C (notably SCO). | |
478 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
479 | # Non-C LC_CTYPE values break the ctype check. | |
480 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
481 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
482 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
483 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
484 | ||
485 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
486 | rm -rf conftest* confdefs.h | |
487 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
488 | echo > confdefs.h | |
489 | ||
490 | # A filename unique to this package, relative to the directory that | |
491 | # configure is in, which we can look for to find out if srcdir is correct. | |
9110a741 | 492 | ac_unique_file=gcj_mlc.c |
1530be84 TT |
493 | |
494 | # Find the source files, if location was not specified. | |
495 | if test -z "$srcdir"; then | |
496 | ac_srcdir_defaulted=yes | |
497 | # Try the directory containing this script, then its parent. | |
498 | ac_prog=$0 | |
499 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
500 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
501 | srcdir=$ac_confdir | |
502 | if test ! -r $srcdir/$ac_unique_file; then | |
503 | srcdir=.. | |
504 | fi | |
505 | else | |
506 | ac_srcdir_defaulted=no | |
507 | fi | |
508 | if test ! -r $srcdir/$ac_unique_file; then | |
509 | if test "$ac_srcdir_defaulted" = yes; then | |
510 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
511 | else | |
512 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
513 | fi | |
514 | fi | |
515 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
516 | ||
517 | # Prefer explicitly selected file to automatically selected ones. | |
30c3de1f JS |
518 | if test -z "$CONFIG_SITE"; then |
519 | if test "x$prefix" != xNONE; then | |
520 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
521 | else | |
522 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1530be84 TT |
523 | fi |
524 | fi | |
525 | for ac_site_file in $CONFIG_SITE; do | |
526 | if test -r "$ac_site_file"; then | |
527 | echo "loading site script $ac_site_file" | |
528 | . "$ac_site_file" | |
529 | fi | |
530 | done | |
531 | ||
532 | if test -r "$cache_file"; then | |
533 | echo "loading cache $cache_file" | |
534 | . $cache_file | |
535 | else | |
536 | echo "creating cache $cache_file" | |
537 | > $cache_file | |
538 | fi | |
539 | ||
540 | ac_ext=c | |
541 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
542 | ac_cpp='$CPP $CPPFLAGS' | |
543 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
544 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
545 | cross_compiling=$ac_cv_prog_cc_cross | |
546 | ||
547 | ac_exeext= | |
548 | ac_objext=o | |
549 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
550 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
551 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
552 | ac_n= ac_c=' | |
553 | ' ac_t=' ' | |
554 | else | |
555 | ac_n=-n ac_c= ac_t= | |
556 | fi | |
557 | else | |
558 | ac_n= ac_c='\c' ac_t= | |
559 | fi | |
560 | ||
561 | ||
562 | ||
6706f116 AO |
563 | # This works around the fact that libtool configuration may change LD |
564 | # for this particular configuration, but some shells, instead of | |
565 | # keeping the changes in LD private, export them just because LD is | |
566 | # exported. | |
567 | ORIGINAL_LD_FOR_MULTILIBS=$LD | |
568 | ||
5a2586cf TT |
569 | ac_aux_dir= |
570 | for ac_dir in . $srcdir/.; do | |
571 | if test -f $ac_dir/install-sh; then | |
572 | ac_aux_dir=$ac_dir | |
573 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
574 | break | |
575 | elif test -f $ac_dir/install.sh; then | |
576 | ac_aux_dir=$ac_dir | |
577 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
578 | break | |
579 | fi | |
580 | done | |
581 | if test -z "$ac_aux_dir"; then | |
582 | { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; } | |
583 | fi | |
584 | ac_config_guess=$ac_aux_dir/config.guess | |
585 | ac_config_sub=$ac_aux_dir/config.sub | |
586 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
587 | ||
588 | ||
1530be84 TT |
589 | # Find a good install program. We prefer a C program (faster), |
590 | # so one script is as good as another. But avoid the broken or | |
591 | # incompatible versions: | |
592 | # SysV /etc/install, /usr/sbin/install | |
593 | # SunOS /usr/etc/install | |
594 | # IRIX /sbin/install | |
595 | # AIX /bin/install | |
596 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
597 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
598 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
599 | # ./install, which can be erroneously created by make from ./install.sh. | |
600 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
30c3de1f | 601 | echo "configure:602: checking for a BSD compatible install" >&5 |
1530be84 TT |
602 | if test -z "$INSTALL"; then |
603 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
605 | else | |
606 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
607 | for ac_dir in $PATH; do | |
608 | # Account for people who put trailing slashes in PATH elements. | |
609 | case "$ac_dir/" in | |
610 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
611 | *) | |
612 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
613 | # Don't use installbsd from OSF since it installs stuff as root | |
614 | # by default. | |
615 | for ac_prog in ginstall scoinst install; do | |
616 | if test -f $ac_dir/$ac_prog; then | |
617 | if test $ac_prog = install && | |
618 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
619 | # AIX install. It has an incompatible calling convention. | |
620 | : | |
621 | else | |
622 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
623 | break 2 | |
624 | fi | |
625 | fi | |
626 | done | |
627 | ;; | |
628 | esac | |
629 | done | |
630 | IFS="$ac_save_IFS" | |
631 | ||
632 | fi | |
633 | if test "${ac_cv_path_install+set}" = set; then | |
634 | INSTALL="$ac_cv_path_install" | |
635 | else | |
636 | # As a last resort, use the slow shell script. We don't cache a | |
637 | # path for INSTALL within a source directory, because that will | |
638 | # break other packages using the cache if that directory is | |
639 | # removed, or if the path is relative. | |
640 | INSTALL="$ac_install_sh" | |
641 | fi | |
642 | fi | |
643 | echo "$ac_t""$INSTALL" 1>&6 | |
644 | ||
645 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
646 | # It thinks the first close brace ends the variable substitution. | |
647 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
648 | ||
649 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
650 | ||
651 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
652 | ||
653 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
30c3de1f | 654 | echo "configure:655: checking whether build environment is sane" >&5 |
1530be84 TT |
655 | # Just in case |
656 | sleep 1 | |
657 | echo timestamp > conftestfile | |
658 | # Do `set' in a subshell so we don't clobber the current shell's | |
659 | # arguments. Must try -L first in case configure is actually a | |
660 | # symlink; some systems play weird games with the mod time of symlinks | |
661 | # (eg FreeBSD returns the mod time of the symlink's containing | |
662 | # directory). | |
663 | if ( | |
664 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
665 | if test "$*" = "X"; then | |
666 | # -L didn't work. | |
667 | set X `ls -t $srcdir/configure conftestfile` | |
668 | fi | |
669 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
670 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
671 | ||
672 | # If neither matched, then we have a broken ls. This can happen | |
673 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
674 | # broken ls alias from the environment. This has actually | |
675 | # happened. Such a system could not be considered "sane". | |
676 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
677 | alias in your environment" 1>&2; exit 1; } | |
678 | fi | |
679 | ||
680 | test "$2" = conftestfile | |
681 | ) | |
682 | then | |
683 | # Ok. | |
684 | : | |
685 | else | |
686 | { echo "configure: error: newly created file is older than distributed files! | |
687 | Check your system clock" 1>&2; exit 1; } | |
688 | fi | |
689 | rm -f conftest* | |
690 | echo "$ac_t""yes" 1>&6 | |
691 | if test "$program_transform_name" = s,x,x,; then | |
692 | program_transform_name= | |
693 | else | |
694 | # Double any \ or $. echo might interpret backslashes. | |
695 | cat <<\EOF_SED > conftestsed | |
696 | s,\\,\\\\,g; s,\$,$$,g | |
697 | EOF_SED | |
698 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
699 | rm -f conftestsed | |
700 | fi | |
701 | test "$program_prefix" != NONE && | |
702 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
703 | # Use a double $ so make ignores it. | |
704 | test "$program_suffix" != NONE && | |
705 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
706 | ||
707 | # sed with no file args requires a program. | |
708 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
709 | ||
710 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
30c3de1f | 711 | echo "configure:712: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
1530be84 TT |
712 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
713 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
714 | echo $ac_n "(cached) $ac_c" 1>&6 | |
715 | else | |
716 | cat > conftestmake <<\EOF | |
717 | all: | |
718 | @echo 'ac_maketemp="${MAKE}"' | |
719 | EOF | |
720 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
721 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
722 | if test -n "$ac_maketemp"; then | |
723 | eval ac_cv_prog_make_${ac_make}_set=yes | |
724 | else | |
725 | eval ac_cv_prog_make_${ac_make}_set=no | |
726 | fi | |
727 | rm -f conftestmake | |
728 | fi | |
729 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
730 | echo "$ac_t""yes" 1>&6 | |
731 | SET_MAKE= | |
732 | else | |
733 | echo "$ac_t""no" 1>&6 | |
734 | SET_MAKE="MAKE=${MAKE-make}" | |
735 | fi | |
736 | ||
737 | if test $host != $build; then | |
738 | ac_tool_prefix=${host_alias}- | |
739 | else | |
740 | ac_tool_prefix= | |
741 | fi | |
742 | ||
743 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
30c3de1f | 744 | echo "configure:745: checking for Cygwin environment" >&5 |
1530be84 TT |
745 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
747 | else | |
748 | cat > conftest.$ac_ext <<EOF | |
30c3de1f | 749 | #line 750 "configure" |
1530be84 TT |
750 | #include "confdefs.h" |
751 | ||
752 | int main() { | |
753 | ||
754 | #ifndef __CYGWIN__ | |
755 | #define __CYGWIN__ __CYGWIN32__ | |
756 | #endif | |
757 | return __CYGWIN__; | |
758 | ; return 0; } | |
759 | EOF | |
30c3de1f | 760 | if { (eval echo configure:761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1530be84 TT |
761 | rm -rf conftest* |
762 | ac_cv_cygwin=yes | |
763 | else | |
764 | echo "configure: failed program was:" >&5 | |
765 | cat conftest.$ac_ext >&5 | |
766 | rm -rf conftest* | |
767 | ac_cv_cygwin=no | |
768 | fi | |
769 | rm -f conftest* | |
770 | rm -f conftest* | |
771 | fi | |
772 | ||
773 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
774 | CYGWIN= | |
775 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
776 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
30c3de1f | 777 | echo "configure:778: checking for mingw32 environment" >&5 |
1530be84 TT |
778 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
780 | else | |
781 | cat > conftest.$ac_ext <<EOF | |
30c3de1f | 782 | #line 783 "configure" |
1530be84 TT |
783 | #include "confdefs.h" |
784 | ||
785 | int main() { | |
786 | return __MINGW32__; | |
787 | ; return 0; } | |
788 | EOF | |
30c3de1f | 789 | if { (eval echo configure:790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1530be84 TT |
790 | rm -rf conftest* |
791 | ac_cv_mingw32=yes | |
792 | else | |
793 | echo "configure: failed program was:" >&5 | |
794 | cat conftest.$ac_ext >&5 | |
795 | rm -rf conftest* | |
796 | ac_cv_mingw32=no | |
797 | fi | |
798 | rm -f conftest* | |
799 | rm -f conftest* | |
800 | fi | |
801 | ||
802 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
803 | MINGW32= | |
804 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
805 | ||
806 | # Check whether --enable-multilib or --disable-multilib was given. | |
807 | if test "${enable_multilib+set}" = set; then | |
808 | enableval="$enable_multilib" | |
809 | case "${enableval}" in | |
810 | yes) multilib=yes ;; | |
811 | no) multilib=no ;; | |
812 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; | |
813 | esac | |
814 | else | |
815 | multilib=yes | |
816 | fi | |
817 | ||
818 | ||
819 | if test "${srcdir}" = "."; then | |
5a2586cf TT |
820 | if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then |
821 | gc_basedir="${srcdir}/${with_multisrctop}../." | |
1530be84 | 822 | else |
5a2586cf | 823 | gc_basedir="${srcdir}/${with_multisrctop}." |
1530be84 TT |
824 | fi |
825 | else | |
5a2586cf | 826 | gc_basedir="${srcdir}/." |
1530be84 TT |
827 | fi |
828 | ||
a5440f9e | 829 | ac_aux_dir= |
5a2586cf | 830 | for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do |
a5440f9e TT |
831 | if test -f $ac_dir/install-sh; then |
832 | ac_aux_dir=$ac_dir | |
833 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
834 | break | |
835 | elif test -f $ac_dir/install.sh; then | |
836 | ac_aux_dir=$ac_dir | |
837 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
838 | break | |
839 | fi | |
840 | done | |
841 | if test -z "$ac_aux_dir"; then | |
5a2586cf | 842 | { echo "configure: error: can not find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." 1>&2; exit 1; } |
a5440f9e TT |
843 | fi |
844 | ac_config_guess=$ac_aux_dir/config.guess | |
845 | ac_config_sub=$ac_aux_dir/config.sub | |
846 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
847 | ||
848 | if :; then :; else | |
849 | # This overrides the previous occurrence for automake, but not for | |
850 | # autoconf, which is exactly what we want. | |
851 | ac_aux_dir= | |
852 | for ac_dir in .. $srcdir/..; do | |
853 | if test -f $ac_dir/install-sh; then | |
854 | ac_aux_dir=$ac_dir | |
855 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
856 | break | |
857 | elif test -f $ac_dir/install.sh; then | |
858 | ac_aux_dir=$ac_dir | |
859 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
860 | break | |
861 | fi | |
862 | done | |
863 | if test -z "$ac_aux_dir"; then | |
864 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; } | |
865 | fi | |
866 | ac_config_guess=$ac_aux_dir/config.guess | |
867 | ac_config_sub=$ac_aux_dir/config.sub | |
868 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
869 | ||
870 | fi | |
871 | ||
872 | ||
873 | # Do some error checking and defaulting for the host and target type. | |
874 | # The inputs are: | |
875 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
876 | # | |
877 | # The rules are: | |
878 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
879 | # same time. | |
880 | # 2. Host defaults to nonopt. | |
881 | # 3. If nonopt is not specified, then host defaults to the current host, | |
882 | # as determined by config.guess. | |
883 | # 4. Target and build default to nonopt. | |
884 | # 5. If nonopt is not specified, then target and build default to host. | |
885 | ||
886 | # The aliases save the names the user supplied, while $host etc. | |
887 | # will get canonicalized. | |
888 | case $host---$target---$nonopt in | |
889 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
890 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
891 | esac | |
1530be84 TT |
892 | |
893 | ||
894 | # Make sure we can run config.sub. | |
895 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
896 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
897 | fi | |
898 | ||
899 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
30c3de1f | 900 | echo "configure:901: checking host system type" >&5 |
1530be84 TT |
901 | |
902 | host_alias=$host | |
903 | case "$host_alias" in | |
904 | NONE) | |
905 | case $nonopt in | |
906 | NONE) | |
907 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
908 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
909 | fi ;; | |
910 | *) host_alias=$nonopt ;; | |
911 | esac ;; | |
912 | esac | |
913 | ||
914 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
915 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
916 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
917 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
918 | echo "$ac_t""$host" 1>&6 | |
919 | ||
a5440f9e | 920 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
30c3de1f | 921 | echo "configure:922: checking target system type" >&5 |
a5440f9e TT |
922 | |
923 | target_alias=$target | |
924 | case "$target_alias" in | |
925 | NONE) | |
926 | case $nonopt in | |
927 | NONE) target_alias=$host_alias ;; | |
928 | *) target_alias=$nonopt ;; | |
929 | esac ;; | |
930 | esac | |
931 | ||
932 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
933 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
934 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
935 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
936 | echo "$ac_t""$target" 1>&6 | |
937 | ||
938 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
30c3de1f | 939 | echo "configure:940: checking build system type" >&5 |
a5440f9e TT |
940 | |
941 | build_alias=$build | |
942 | case "$build_alias" in | |
943 | NONE) | |
944 | case $nonopt in | |
945 | NONE) build_alias=$host_alias ;; | |
946 | *) build_alias=$nonopt ;; | |
947 | esac ;; | |
948 | esac | |
949 | ||
950 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
951 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
952 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
953 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
954 | echo "$ac_t""$build" 1>&6 | |
955 | ||
956 | test "$host_alias" != "$target_alias" && | |
957 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
958 | NONENONEs,x,x, && | |
959 | program_prefix=${target_alias}- | |
960 | ||
1530be84 | 961 | |
57b74bf9 | 962 | # This works around an automake problem. |
1e6347d8 | 963 | mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs" |
57b74bf9 TT |
964 | |
965 | ||
1530be84 | 966 | |
5a2586cf | 967 | PACKAGE=gc |
1530be84 | 968 | |
5a2586cf | 969 | VERSION=6.0 |
1530be84 TT |
970 | |
971 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
972 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
973 | fi | |
974 | ||
975 | ||
976 | ||
977 | missing_dir=`cd $ac_aux_dir && pwd` | |
978 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
30c3de1f | 979 | echo "configure:980: checking for working aclocal" >&5 |
1530be84 TT |
980 | # Run test in a subshell; some versions of sh will print an error if |
981 | # an executable is not found, even if stderr is redirected. | |
982 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
983 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
984 | ACLOCAL=aclocal | |
985 | echo "$ac_t""found" 1>&6 | |
986 | else | |
987 | ACLOCAL="$missing_dir/missing aclocal" | |
988 | echo "$ac_t""missing" 1>&6 | |
989 | fi | |
990 | ||
991 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
30c3de1f | 992 | echo "configure:993: checking for working autoconf" >&5 |
1530be84 TT |
993 | # Run test in a subshell; some versions of sh will print an error if |
994 | # an executable is not found, even if stderr is redirected. | |
995 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
996 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
997 | AUTOCONF=autoconf | |
998 | echo "$ac_t""found" 1>&6 | |
999 | else | |
1000 | AUTOCONF="$missing_dir/missing autoconf" | |
1001 | echo "$ac_t""missing" 1>&6 | |
1002 | fi | |
1003 | ||
1004 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
30c3de1f | 1005 | echo "configure:1006: checking for working automake" >&5 |
1530be84 TT |
1006 | # Run test in a subshell; some versions of sh will print an error if |
1007 | # an executable is not found, even if stderr is redirected. | |
1008 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1009 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1010 | AUTOMAKE=automake | |
1011 | echo "$ac_t""found" 1>&6 | |
1012 | else | |
1013 | AUTOMAKE="$missing_dir/missing automake" | |
1014 | echo "$ac_t""missing" 1>&6 | |
1015 | fi | |
1016 | ||
1017 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
30c3de1f | 1018 | echo "configure:1019: checking for working autoheader" >&5 |
1530be84 TT |
1019 | # Run test in a subshell; some versions of sh will print an error if |
1020 | # an executable is not found, even if stderr is redirected. | |
1021 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1022 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1023 | AUTOHEADER=autoheader | |
1024 | echo "$ac_t""found" 1>&6 | |
1025 | else | |
1026 | AUTOHEADER="$missing_dir/missing autoheader" | |
1027 | echo "$ac_t""missing" 1>&6 | |
1028 | fi | |
1029 | ||
1030 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
30c3de1f | 1031 | echo "configure:1032: checking for working makeinfo" >&5 |
1530be84 TT |
1032 | # Run test in a subshell; some versions of sh will print an error if |
1033 | # an executable is not found, even if stderr is redirected. | |
1034 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1035 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1036 | MAKEINFO=makeinfo | |
1037 | echo "$ac_t""found" 1>&6 | |
1038 | else | |
1039 | MAKEINFO="$missing_dir/missing makeinfo" | |
1040 | echo "$ac_t""missing" 1>&6 | |
1041 | fi | |
1042 | ||
1043 | ||
1044 | ||
1045 | # FIXME: We temporarily define our own version of AC_PROG_CC. This is | |
1046 | # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We | |
1047 | # are probably using a cross compiler, which will not be able to fully | |
1048 | # link an executable. This should really be fixed in autoconf | |
1049 | # itself. | |
1050 | ||
1051 | ||
1052 | ||
54ce7452 | 1053 | |
1530be84 TT |
1054 | # Extract the first word of "gcc", so it can be a program name with args. |
1055 | set dummy gcc; ac_word=$2 | |
1056 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 1057 | echo "configure:1058: checking for $ac_word" >&5 |
1530be84 TT |
1058 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1060 | else | |
1061 | if test -n "$CC"; then | |
1062 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1063 | else | |
1064 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1065 | ac_dummy="$PATH" | |
1066 | for ac_dir in $ac_dummy; do | |
1067 | test -z "$ac_dir" && ac_dir=. | |
1068 | if test -f $ac_dir/$ac_word; then | |
1069 | ac_cv_prog_CC="gcc" | |
1070 | break | |
1071 | fi | |
1072 | done | |
1073 | IFS="$ac_save_ifs" | |
1074 | fi | |
1075 | fi | |
1076 | CC="$ac_cv_prog_CC" | |
1077 | if test -n "$CC"; then | |
1078 | echo "$ac_t""$CC" 1>&6 | |
1079 | else | |
1080 | echo "$ac_t""no" 1>&6 | |
1081 | fi | |
1082 | ||
1083 | if test -z "$CC"; then | |
1084 | # Extract the first word of "cc", so it can be a program name with args. | |
1085 | set dummy cc; ac_word=$2 | |
1086 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 1087 | echo "configure:1088: checking for $ac_word" >&5 |
1530be84 TT |
1088 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1090 | else | |
1091 | if test -n "$CC"; then | |
1092 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1093 | else | |
1094 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1095 | ac_prog_rejected=no | |
1096 | ac_dummy="$PATH" | |
1097 | for ac_dir in $ac_dummy; do | |
1098 | test -z "$ac_dir" && ac_dir=. | |
1099 | if test -f $ac_dir/$ac_word; then | |
1100 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1101 | ac_prog_rejected=yes | |
1102 | continue | |
1103 | fi | |
1104 | ac_cv_prog_CC="cc" | |
1105 | break | |
1106 | fi | |
1107 | done | |
1108 | IFS="$ac_save_ifs" | |
1109 | if test $ac_prog_rejected = yes; then | |
1110 | # We found a bogon in the path, so make sure we never use it. | |
1111 | set dummy $ac_cv_prog_CC | |
1112 | shift | |
1113 | if test $# -gt 0; then | |
1114 | # We chose a different compiler from the bogus one. | |
1115 | # However, it has the same basename, so the bogon will be chosen | |
1116 | # first if we set CC to just the basename; use the full file name. | |
1117 | shift | |
1118 | set dummy "$ac_dir/$ac_word" "$@" | |
1119 | shift | |
1120 | ac_cv_prog_CC="$@" | |
1121 | fi | |
1122 | fi | |
1123 | fi | |
1124 | fi | |
1125 | CC="$ac_cv_prog_CC" | |
1126 | if test -n "$CC"; then | |
1127 | echo "$ac_t""$CC" 1>&6 | |
1128 | else | |
1129 | echo "$ac_t""no" 1>&6 | |
1130 | fi | |
1131 | ||
1132 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1133 | fi | |
1134 | ||
1135 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
30c3de1f | 1136 | echo "configure:1137: checking whether we are using GNU C" >&5 |
1530be84 TT |
1137 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1139 | else | |
1140 | cat > conftest.c <<EOF | |
1141 | #ifdef __GNUC__ | |
1142 | yes; | |
1143 | #endif | |
1144 | EOF | |
30c3de1f | 1145 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1530be84 TT |
1146 | ac_cv_prog_gcc=yes |
1147 | else | |
1148 | ac_cv_prog_gcc=no | |
1149 | fi | |
1150 | fi | |
1151 | ||
1152 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1153 | ||
1154 | if test $ac_cv_prog_gcc = yes; then | |
1155 | GCC=yes | |
1156 | ac_test_CFLAGS="${CFLAGS+set}" | |
1157 | ac_save_CFLAGS="$CFLAGS" | |
1158 | CFLAGS= | |
1159 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
30c3de1f | 1160 | echo "configure:1161: checking whether ${CC-cc} accepts -g" >&5 |
1530be84 TT |
1161 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1163 | else | |
1164 | echo 'void f(){}' > conftest.c | |
1165 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1166 | ac_cv_prog_cc_g=yes | |
1167 | else | |
1168 | ac_cv_prog_cc_g=no | |
1169 | fi | |
1170 | rm -f conftest* | |
1171 | ||
1172 | fi | |
1173 | ||
1174 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1175 | if test "$ac_test_CFLAGS" = set; then | |
1176 | CFLAGS="$ac_save_CFLAGS" | |
1177 | elif test $ac_cv_prog_cc_g = yes; then | |
1178 | CFLAGS="-g -O2" | |
1179 | else | |
1180 | CFLAGS="-O2" | |
1181 | fi | |
1182 | else | |
1183 | GCC= | |
1184 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1185 | fi | |
1186 | ||
1187 | ||
1188 | # Likewise for AC_PROG_CXX. | |
1189 | ||
1190 | ||
54ce7452 | 1191 | |
1530be84 TT |
1192 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ |
1193 | do | |
1194 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1195 | set dummy $ac_prog; ac_word=$2 | |
1196 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 1197 | echo "configure:1198: checking for $ac_word" >&5 |
1530be84 TT |
1198 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1200 | else | |
1201 | if test -n "$CXX"; then | |
1202 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1203 | else | |
1204 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1205 | ac_dummy="$PATH" | |
1206 | for ac_dir in $ac_dummy; do | |
1207 | test -z "$ac_dir" && ac_dir=. | |
1208 | if test -f $ac_dir/$ac_word; then | |
1209 | ac_cv_prog_CXX="$ac_prog" | |
1210 | break | |
1211 | fi | |
1212 | done | |
1213 | IFS="$ac_save_ifs" | |
1214 | fi | |
1215 | fi | |
1216 | CXX="$ac_cv_prog_CXX" | |
1217 | if test -n "$CXX"; then | |
1218 | echo "$ac_t""$CXX" 1>&6 | |
1219 | else | |
1220 | echo "$ac_t""no" 1>&6 | |
1221 | fi | |
1222 | ||
1223 | test -n "$CXX" && break | |
1224 | done | |
1225 | test -n "$CXX" || CXX="gcc" | |
1226 | ||
1227 | test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } | |
1228 | ||
1229 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
30c3de1f | 1230 | echo "configure:1231: checking whether we are using GNU C++" >&5 |
1530be84 TT |
1231 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
1232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1233 | else | |
1234 | cat > conftest.C <<EOF | |
1235 | #ifdef __GNUC__ | |
1236 | yes; | |
1237 | #endif | |
1238 | EOF | |
30c3de1f | 1239 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1530be84 TT |
1240 | ac_cv_prog_gxx=yes |
1241 | else | |
1242 | ac_cv_prog_gxx=no | |
1243 | fi | |
1244 | fi | |
1245 | ||
1246 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
1247 | ||
1248 | if test $ac_cv_prog_gxx = yes; then | |
1249 | GXX=yes | |
1250 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
1251 | ac_save_CXXFLAGS="$CXXFLAGS" | |
1252 | CXXFLAGS= | |
1253 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
30c3de1f | 1254 | echo "configure:1255: checking whether ${CXX-g++} accepts -g" >&5 |
1530be84 TT |
1255 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
1256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1257 | else | |
1258 | echo 'void f(){}' > conftest.cc | |
1259 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
1260 | ac_cv_prog_cxx_g=yes | |
1261 | else | |
1262 | ac_cv_prog_cxx_g=no | |
1263 | fi | |
1264 | rm -f conftest* | |
1265 | ||
1266 | fi | |
1267 | ||
1268 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
1269 | if test "$ac_test_CXXFLAGS" = set; then | |
1270 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1271 | elif test $ac_cv_prog_cxx_g = yes; then | |
1272 | CXXFLAGS="-g -O2" | |
1273 | else | |
1274 | CXXFLAGS="-O2" | |
1275 | fi | |
1276 | else | |
1277 | GXX= | |
1278 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | |
1279 | fi | |
1280 | ||
1281 | ||
1282 | # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't | |
1283 | # run it explicitly here, it will be run implicitly before | |
1284 | # NEWLIB_CONFIGURE, which doesn't work because that means that it will | |
1285 | # be run before AC_CANONICAL_HOST. | |
1286 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
30c3de1f | 1287 | echo "configure:1288: checking build system type" >&5 |
1530be84 TT |
1288 | |
1289 | build_alias=$build | |
1290 | case "$build_alias" in | |
1291 | NONE) | |
1292 | case $nonopt in | |
1293 | NONE) build_alias=$host_alias ;; | |
1294 | *) build_alias=$nonopt ;; | |
1295 | esac ;; | |
1296 | esac | |
1297 | ||
1298 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1299 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1300 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1301 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1302 | echo "$ac_t""$build" 1>&6 | |
1303 | ||
1304 | ||
1305 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
1306 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
1307 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 1308 | echo "configure:1309: checking for $ac_word" >&5 |
1530be84 TT |
1309 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
1310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1311 | else | |
1312 | if test -n "$AS"; then | |
1313 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1314 | else | |
1315 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1316 | ac_dummy="$PATH" | |
1317 | for ac_dir in $ac_dummy; do | |
1318 | test -z "$ac_dir" && ac_dir=. | |
1319 | if test -f $ac_dir/$ac_word; then | |
1320 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
1321 | break | |
1322 | fi | |
1323 | done | |
1324 | IFS="$ac_save_ifs" | |
1325 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" | |
1326 | fi | |
1327 | fi | |
1328 | AS="$ac_cv_prog_AS" | |
1329 | if test -n "$AS"; then | |
1330 | echo "$ac_t""$AS" 1>&6 | |
1331 | else | |
1332 | echo "$ac_t""no" 1>&6 | |
1333 | fi | |
1334 | ||
1335 | ||
1336 | ||
1337 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1338 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
1339 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 1340 | echo "configure:1341: checking for $ac_word" >&5 |
1530be84 TT |
1341 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1342 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1343 | else | |
1344 | if test -n "$AR"; then | |
1345 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1346 | else | |
1347 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1348 | ac_dummy="$PATH" | |
1349 | for ac_dir in $ac_dummy; do | |
1350 | test -z "$ac_dir" && ac_dir=. | |
1351 | if test -f $ac_dir/$ac_word; then | |
1352 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1353 | break | |
1354 | fi | |
1355 | done | |
1356 | IFS="$ac_save_ifs" | |
1357 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1358 | fi | |
1359 | fi | |
1360 | AR="$ac_cv_prog_AR" | |
1361 | if test -n "$AR"; then | |
1362 | echo "$ac_t""$AR" 1>&6 | |
1363 | else | |
1364 | echo "$ac_t""no" 1>&6 | |
1365 | fi | |
1366 | ||
1367 | ||
1368 | ||
1369 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1370 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1371 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 1372 | echo "configure:1373: checking for $ac_word" >&5 |
1530be84 TT |
1373 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1375 | else | |
1376 | if test -n "$RANLIB"; then | |
1377 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1378 | else | |
1379 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1380 | ac_dummy="$PATH" | |
1381 | for ac_dir in $ac_dummy; do | |
1382 | test -z "$ac_dir" && ac_dir=. | |
1383 | if test -f $ac_dir/$ac_word; then | |
1384 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1385 | break | |
1386 | fi | |
1387 | done | |
1388 | IFS="$ac_save_ifs" | |
1389 | fi | |
1390 | fi | |
1391 | RANLIB="$ac_cv_prog_RANLIB" | |
1392 | if test -n "$RANLIB"; then | |
1393 | echo "$ac_t""$RANLIB" 1>&6 | |
1394 | else | |
1395 | echo "$ac_t""no" 1>&6 | |
1396 | fi | |
1397 | ||
1398 | ||
1399 | if test -z "$ac_cv_prog_RANLIB"; then | |
1400 | if test -n "$ac_tool_prefix"; then | |
1401 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1402 | set dummy ranlib; ac_word=$2 | |
1403 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 1404 | echo "configure:1405: checking for $ac_word" >&5 |
1530be84 TT |
1405 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1407 | else | |
1408 | if test -n "$RANLIB"; then | |
1409 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1410 | else | |
1411 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1412 | ac_dummy="$PATH" | |
1413 | for ac_dir in $ac_dummy; do | |
1414 | test -z "$ac_dir" && ac_dir=. | |
1415 | if test -f $ac_dir/$ac_word; then | |
1416 | ac_cv_prog_RANLIB="ranlib" | |
1417 | break | |
1418 | fi | |
1419 | done | |
1420 | IFS="$ac_save_ifs" | |
1421 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1422 | fi | |
1423 | fi | |
1424 | RANLIB="$ac_cv_prog_RANLIB" | |
1425 | if test -n "$RANLIB"; then | |
1426 | echo "$ac_t""$RANLIB" 1>&6 | |
1427 | else | |
1428 | echo "$ac_t""no" 1>&6 | |
1429 | fi | |
1430 | ||
1431 | else | |
1432 | RANLIB=":" | |
1433 | fi | |
1434 | fi | |
1435 | ||
1436 | ||
1437 | # Find a good install program. We prefer a C program (faster), | |
1438 | # so one script is as good as another. But avoid the broken or | |
1439 | # incompatible versions: | |
1440 | # SysV /etc/install, /usr/sbin/install | |
1441 | # SunOS /usr/etc/install | |
1442 | # IRIX /sbin/install | |
1443 | # AIX /bin/install | |
1444 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1445 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1446 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1447 | # ./install, which can be erroneously created by make from ./install.sh. | |
1448 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
30c3de1f | 1449 | echo "configure:1450: checking for a BSD compatible install" >&5 |
1530be84 TT |
1450 | if test -z "$INSTALL"; then |
1451 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1453 | else | |
1454 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
1455 | for ac_dir in $PATH; do | |
1456 | # Account for people who put trailing slashes in PATH elements. | |
1457 | case "$ac_dir/" in | |
1458 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1459 | *) | |
1460 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1461 | # Don't use installbsd from OSF since it installs stuff as root | |
1462 | # by default. | |
1463 | for ac_prog in ginstall scoinst install; do | |
1464 | if test -f $ac_dir/$ac_prog; then | |
1465 | if test $ac_prog = install && | |
1466 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1467 | # AIX install. It has an incompatible calling convention. | |
1468 | : | |
1469 | else | |
1470 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1471 | break 2 | |
1472 | fi | |
1473 | fi | |
1474 | done | |
1475 | ;; | |
1476 | esac | |
1477 | done | |
1478 | IFS="$ac_save_IFS" | |
1479 | ||
1480 | fi | |
1481 | if test "${ac_cv_path_install+set}" = set; then | |
1482 | INSTALL="$ac_cv_path_install" | |
1483 | else | |
1484 | # As a last resort, use the slow shell script. We don't cache a | |
1485 | # path for INSTALL within a source directory, because that will | |
1486 | # break other packages using the cache if that directory is | |
1487 | # removed, or if the path is relative. | |
1488 | INSTALL="$ac_install_sh" | |
1489 | fi | |
1490 | fi | |
1491 | echo "$ac_t""$INSTALL" 1>&6 | |
1492 | ||
1493 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1494 | # It thinks the first close brace ends the variable substitution. | |
1495 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1496 | ||
1497 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
1498 | ||
1499 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1500 | ||
1501 | ||
1502 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
30c3de1f | 1503 | echo "configure:1504: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1530be84 TT |
1504 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1505 | if test "${enable_maintainer_mode+set}" = set; then | |
1506 | enableval="$enable_maintainer_mode" | |
1507 | USE_MAINTAINER_MODE=$enableval | |
1508 | else | |
1509 | USE_MAINTAINER_MODE=no | |
1510 | fi | |
1511 | ||
1512 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
1513 | ||
1514 | ||
1515 | if test $USE_MAINTAINER_MODE = yes; then | |
1516 | MAINTAINER_MODE_TRUE= | |
1517 | MAINTAINER_MODE_FALSE='#' | |
1518 | else | |
1519 | MAINTAINER_MODE_TRUE='#' | |
1520 | MAINTAINER_MODE_FALSE= | |
1521 | fi | |
1522 | MAINT=$MAINTAINER_MODE_TRUE | |
1523 | ||
1524 | ||
1525 | ||
1526 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However, | |
1527 | # at least currently, we never actually build a program, so we never | |
1528 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally | |
1529 | # fails, because we are probably configuring with a cross compiler | |
1530 | # which can't create executables. So we include AC_EXEEXT to keep | |
1531 | # automake happy, but we don't execute it, since we don't care about | |
1532 | # the result. | |
1533 | if false; then | |
4a849291 AO |
1534 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands |
1535 | # to nothing, so nothing would remain between `then' and `fi' if it | |
1536 | # were not for the `:' below. | |
1537 | : | |
1530be84 TT |
1538 | |
1539 | ||
1540 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
30c3de1f | 1541 | echo "configure:1542: checking for executable suffix" >&5 |
1530be84 TT |
1542 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1544 | else | |
1545 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1546 | ac_cv_exeext=.exe | |
1547 | else | |
1548 | rm -f conftest* | |
1549 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1550 | ac_cv_exeext= | |
30c3de1f | 1551 | if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
1530be84 TT |
1552 | for file in conftest.*; do |
1553 | case $file in | |
30c3de1f | 1554 | *.c | *.o | *.obj) ;; |
1530be84 TT |
1555 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1556 | esac | |
1557 | done | |
1558 | else | |
1559 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1560 | fi | |
1561 | rm -f conftest* | |
1562 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1563 | fi | |
1564 | fi | |
1565 | ||
1566 | EXEEXT="" | |
1567 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1568 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1569 | ac_exeext=$EXEEXT | |
1570 | ||
1571 | fi | |
1572 | ||
c3b48847 | 1573 | . ${srcdir}/configure.host |
1530be84 | 1574 | |
5a2586cf TT |
1575 | case ${gc_basedir} in |
1576 | /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;; | |
1577 | *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;; | |
1530be84 TT |
1578 | esac |
1579 | ||
5a2586cf | 1580 | gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include" |
1530be84 TT |
1581 | case "${host}" in |
1582 | *-*-cygwin32*) | |
5a2586cf | 1583 | gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include" |
1530be84 TT |
1584 | ;; |
1585 | esac | |
1586 | ||
1530be84 | 1587 | |
5a2586cf | 1588 | GC_CFLAGS=${gc_cflags} |
1530be84 TT |
1589 | |
1590 | ||
1591 | ||
66deb2be TT |
1592 | # Check whether --enable-shared or --disable-shared was given. |
1593 | if test "${enable_shared+set}" = set; then | |
1594 | enableval="$enable_shared" | |
1595 | p=${PACKAGE-default} | |
2d65a52e | 1596 | case $enableval in |
66deb2be TT |
1597 | yes) enable_shared=yes ;; |
1598 | no) enable_shared=no ;; | |
1599 | *) | |
1600 | enable_shared=no | |
1601 | # Look at the argument we got. We use all the common list separators. | |
1602 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1603 | for pkg in $enableval; do | |
1604 | if test "X$pkg" = "X$p"; then | |
1605 | enable_shared=yes | |
1606 | fi | |
1607 | done | |
1608 | IFS="$ac_save_ifs" | |
1609 | ;; | |
1610 | esac | |
1611 | else | |
1612 | enable_shared=yes | |
1613 | fi | |
1614 | ||
1615 | # Check whether --enable-static or --disable-static was given. | |
1616 | if test "${enable_static+set}" = set; then | |
1617 | enableval="$enable_static" | |
1618 | p=${PACKAGE-default} | |
2d65a52e | 1619 | case $enableval in |
66deb2be TT |
1620 | yes) enable_static=yes ;; |
1621 | no) enable_static=no ;; | |
1622 | *) | |
1623 | enable_static=no | |
1624 | # Look at the argument we got. We use all the common list separators. | |
1625 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1626 | for pkg in $enableval; do | |
1627 | if test "X$pkg" = "X$p"; then | |
1628 | enable_static=yes | |
1629 | fi | |
1630 | done | |
1631 | IFS="$ac_save_ifs" | |
1632 | ;; | |
1633 | esac | |
1634 | else | |
1635 | enable_static=yes | |
1636 | fi | |
1637 | ||
115dabb8 TT |
1638 | # Check whether --enable-fast-install or --disable-fast-install was given. |
1639 | if test "${enable_fast_install+set}" = set; then | |
1640 | enableval="$enable_fast_install" | |
1641 | p=${PACKAGE-default} | |
2d65a52e | 1642 | case $enableval in |
115dabb8 TT |
1643 | yes) enable_fast_install=yes ;; |
1644 | no) enable_fast_install=no ;; | |
1645 | *) | |
1646 | enable_fast_install=no | |
1647 | # Look at the argument we got. We use all the common list separators. | |
1648 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1649 | for pkg in $enableval; do | |
1650 | if test "X$pkg" = "X$p"; then | |
1651 | enable_fast_install=yes | |
1652 | fi | |
1653 | done | |
1654 | IFS="$ac_save_ifs" | |
1655 | ;; | |
1656 | esac | |
1657 | else | |
1658 | enable_fast_install=yes | |
1659 | fi | |
1660 | ||
66deb2be TT |
1661 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1662 | if test "${with_gnu_ld+set}" = set; then | |
1663 | withval="$with_gnu_ld" | |
1664 | test "$withval" = no || with_gnu_ld=yes | |
1665 | else | |
1666 | with_gnu_ld=no | |
1667 | fi | |
1668 | ||
66deb2be | 1669 | ac_prog=ld |
2d65a52e | 1670 | if test "$GCC" = yes; then |
66deb2be TT |
1671 | # Check if gcc -print-prog-name=ld gives a path. |
1672 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
30c3de1f | 1673 | echo "configure:1674: checking for ld used by GCC" >&5 |
2f7bf5b7 AO |
1674 | case $host in |
1675 | *-*-mingw*) | |
1676 | # gcc leaves a trailing carriage return which upsets mingw | |
1677 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1678 | *) | |
1679 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1680 | esac | |
2d65a52e | 1681 | case $ac_prog in |
115dabb8 | 1682 | # Accept absolute paths. |
20bbd3cd | 1683 | [\\/]* | [A-Za-z]:[\\/]*) |
115dabb8 TT |
1684 | re_direlt='/[^/][^/]*/\.\./' |
1685 | # Canonicalize the path of ld | |
1686 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1687 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1688 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1689 | done | |
1690 | test -z "$LD" && LD="$ac_prog" | |
1691 | ;; | |
66deb2be TT |
1692 | "") |
1693 | # If it fails, then pretend we aren't using GCC. | |
1694 | ac_prog=ld | |
1695 | ;; | |
1696 | *) | |
1697 | # If it is relative, then search for the first ld in PATH. | |
1698 | with_gnu_ld=unknown | |
1699 | ;; | |
1700 | esac | |
1701 | elif test "$with_gnu_ld" = yes; then | |
1702 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
30c3de1f | 1703 | echo "configure:1704: checking for GNU ld" >&5 |
66deb2be TT |
1704 | else |
1705 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
30c3de1f | 1706 | echo "configure:1707: checking for non-GNU ld" >&5 |
66deb2be | 1707 | fi |
2d65a52e | 1708 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
66deb2be TT |
1709 | echo $ac_n "(cached) $ac_c" 1>&6 |
1710 | else | |
1711 | if test -z "$LD"; then | |
20bbd3cd | 1712 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
66deb2be TT |
1713 | for ac_dir in $PATH; do |
1714 | test -z "$ac_dir" && ac_dir=. | |
20bbd3cd | 1715 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
2d65a52e | 1716 | lt_cv_path_LD="$ac_dir/$ac_prog" |
66deb2be TT |
1717 | # Check to see if the program is GNU ld. I'd rather use --version, |
1718 | # but apparently some GNU ld's only accept -v. | |
1719 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
2d65a52e | 1720 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
66deb2be TT |
1721 | test "$with_gnu_ld" != no && break |
1722 | else | |
115dabb8 | 1723 | test "$with_gnu_ld" != yes && break |
66deb2be TT |
1724 | fi |
1725 | fi | |
1726 | done | |
1727 | IFS="$ac_save_ifs" | |
1728 | else | |
2d65a52e | 1729 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
66deb2be TT |
1730 | fi |
1731 | fi | |
1732 | ||
2d65a52e | 1733 | LD="$lt_cv_path_LD" |
66deb2be TT |
1734 | if test -n "$LD"; then |
1735 | echo "$ac_t""$LD" 1>&6 | |
1736 | else | |
1737 | echo "$ac_t""no" 1>&6 | |
1738 | fi | |
1739 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
66deb2be | 1740 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
30c3de1f | 1741 | echo "configure:1742: checking if the linker ($LD) is GNU ld" >&5 |
2d65a52e | 1742 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
66deb2be TT |
1743 | echo $ac_n "(cached) $ac_c" 1>&6 |
1744 | else | |
1745 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1746 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
2d65a52e | 1747 | lt_cv_prog_gnu_ld=yes |
66deb2be | 1748 | else |
2d65a52e | 1749 | lt_cv_prog_gnu_ld=no |
66deb2be TT |
1750 | fi |
1751 | fi | |
1752 | ||
2d65a52e AO |
1753 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
1754 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
2f7bf5b7 AO |
1755 | |
1756 | ||
1757 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | |
30c3de1f | 1758 | echo "configure:1759: checking for $LD option to reload object files" >&5 |
2f7bf5b7 AO |
1759 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1761 | else | |
1762 | lt_cv_ld_reload_flag='-r' | |
1763 | fi | |
66deb2be | 1764 | |
2f7bf5b7 AO |
1765 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 |
1766 | reload_flag=$lt_cv_ld_reload_flag | |
1767 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
66deb2be TT |
1768 | |
1769 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
30c3de1f | 1770 | echo "configure:1771: checking for BSD-compatible nm" >&5 |
2d65a52e | 1771 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
66deb2be TT |
1772 | echo $ac_n "(cached) $ac_c" 1>&6 |
1773 | else | |
1774 | if test -n "$NM"; then | |
1775 | # Let the user override the test. | |
2d65a52e | 1776 | lt_cv_path_NM="$NM" |
66deb2be | 1777 | else |
20bbd3cd | 1778 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
115dabb8 | 1779 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
66deb2be | 1780 | test -z "$ac_dir" && ac_dir=. |
2f7bf5b7 AO |
1781 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
1782 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
66deb2be TT |
1783 | # Check to see if the nm accepts a BSD-compat flag. |
1784 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1785 | # nm: unknown option "B" ignored | |
2f7bf5b7 AO |
1786 | # Tru64's nm complains that /dev/null is an invalid object file |
1787 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
2d65a52e | 1788 | lt_cv_path_NM="$tmp_nm -B" |
115dabb8 | 1789 | break |
2f7bf5b7 | 1790 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
2d65a52e | 1791 | lt_cv_path_NM="$tmp_nm -p" |
115dabb8 | 1792 | break |
66deb2be | 1793 | else |
2d65a52e | 1794 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
115dabb8 | 1795 | continue # so that we can try to find one that supports BSD flags |
66deb2be | 1796 | fi |
66deb2be TT |
1797 | fi |
1798 | done | |
1799 | IFS="$ac_save_ifs" | |
2d65a52e | 1800 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
66deb2be TT |
1801 | fi |
1802 | fi | |
1803 | ||
2d65a52e | 1804 | NM="$lt_cv_path_NM" |
66deb2be TT |
1805 | echo "$ac_t""$NM" 1>&6 |
1806 | ||
66deb2be | 1807 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
30c3de1f | 1808 | echo "configure:1809: checking whether ln -s works" >&5 |
66deb2be TT |
1809 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1811 | else | |
1812 | rm -f conftestdata | |
1813 | if ln -s X conftestdata 2>/dev/null | |
1814 | then | |
1815 | rm -f conftestdata | |
1816 | ac_cv_prog_LN_S="ln -s" | |
1817 | else | |
1818 | ac_cv_prog_LN_S=ln | |
1819 | fi | |
1820 | fi | |
1821 | LN_S="$ac_cv_prog_LN_S" | |
1822 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1823 | echo "$ac_t""yes" 1>&6 | |
1824 | else | |
1825 | echo "$ac_t""no" 1>&6 | |
1826 | fi | |
1827 | ||
2f7bf5b7 | 1828 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
30c3de1f | 1829 | echo "configure:1830: checking how to recognise dependant libraries" >&5 |
2f7bf5b7 AO |
1830 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
1831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1832 | else | |
5f527203 | 1833 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
2f7bf5b7 AO |
1834 | lt_cv_file_magic_test_file= |
1835 | lt_cv_deplibs_check_method='unknown' | |
1836 | # Need to set the preceding variable on all platforms that support | |
1837 | # interlibrary dependencies. | |
1838 | # 'none' -- dependencies not supported. | |
1839 | # `unknown' -- same as none, but documents that we really don't know. | |
1840 | # 'pass_all' -- all dependencies passed with no checks. | |
1841 | # 'test_compile' -- check by making test program. | |
1842 | # 'file_magic [regex]' -- check by looking for files in library path | |
1843 | # which responds to the $file_magic_cmd with a given egrep regex. | |
1844 | # If you have `file' or equivalent on your system and you're not sure | |
1845 | # whether `pass_all' will *always* work, you probably want this one. | |
1846 | ||
2d65a52e AO |
1847 | case $host_os in |
1848 | aix*) | |
2f7bf5b7 AO |
1849 | lt_cv_deplibs_check_method=pass_all |
1850 | ;; | |
1851 | ||
1852 | beos*) | |
1853 | lt_cv_deplibs_check_method=pass_all | |
1854 | ;; | |
1855 | ||
1856 | bsdi4*) | |
2d65a52e AO |
1857 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
1858 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
2f7bf5b7 AO |
1859 | lt_cv_file_magic_test_file=/shlib/libc.so |
1860 | ;; | |
1861 | ||
5f527203 | 1862 | cygwin* | mingw* |pw32*) |
2f7bf5b7 | 1863 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
5f527203 | 1864 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
2f7bf5b7 AO |
1865 | ;; |
1866 | ||
2d65a52e AO |
1867 | darwin* | rhapsody*) |
1868 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
1869 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1870 | case "$host_os" in | |
1871 | rhapsody* | darwin1.012) | |
1872 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
1873 | ;; | |
1874 | *) # Darwin 1.3 on | |
1875 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
1876 | ;; | |
1877 | esac | |
1878 | ;; | |
1879 | ||
2f7bf5b7 AO |
1880 | freebsd* ) |
1881 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
2d65a52e | 1882 | case $host_cpu in |
2f7bf5b7 AO |
1883 | i*86 ) |
1884 | # Not sure whether the presence of OpenBSD here was a mistake. | |
1885 | # Let's accept both of them until this is cleared up. | |
2d65a52e AO |
1886 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
1887 | lt_cv_file_magic_cmd=/usr/bin/file | |
2f7bf5b7 AO |
1888 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
1889 | ;; | |
1890 | esac | |
1891 | else | |
1892 | lt_cv_deplibs_check_method=pass_all | |
1893 | fi | |
1894 | ;; | |
1895 | ||
1896 | gnu*) | |
1897 | lt_cv_deplibs_check_method=pass_all | |
1898 | ;; | |
1899 | ||
2d65a52e | 1900 | hpux10.20*|hpux11*) |
f5cc59a7 AO |
1901 | case $host_cpu in |
1902 | hppa*) | |
1903 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
1904 | lt_cv_file_magic_cmd=/usr/bin/file | |
1905 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
1906 | ;; | |
1907 | ia64*) | |
1908 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
1909 | lt_cv_file_magic_cmd=/usr/bin/file | |
1910 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
1911 | ;; | |
1912 | esac | |
2f7bf5b7 AO |
1913 | ;; |
1914 | ||
1915 | irix5* | irix6*) | |
2d65a52e | 1916 | case $host_os in |
2f7bf5b7 AO |
1917 | irix5*) |
1918 | # this will be overridden with pass_all, but let us keep it just in case | |
1919 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
1920 | ;; | |
1921 | *) | |
2d65a52e | 1922 | case $LD in |
2f7bf5b7 AO |
1923 | *-32|*"-32 ") libmagic=32-bit;; |
1924 | *-n32|*"-n32 ") libmagic=N32;; | |
1925 | *-64|*"-64 ") libmagic=64-bit;; | |
1926 | *) libmagic=never-match;; | |
1927 | esac | |
1928 | # this will be overridden with pass_all, but let us keep it just in case | |
2d65a52e AO |
1929 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
1930 | ;; | |
2f7bf5b7 AO |
1931 | esac |
1932 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
1933 | lt_cv_deplibs_check_method=pass_all | |
1934 | ;; | |
1935 | ||
1936 | # This must be Linux ELF. | |
1937 | linux-gnu*) | |
2d65a52e | 1938 | case $host_cpu in |
b1e0a93e | 1939 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
2f7bf5b7 AO |
1940 | lt_cv_deplibs_check_method=pass_all ;; |
1941 | *) | |
1942 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
2d65a52e AO |
1943 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
1944 | esac | |
2f7bf5b7 AO |
1945 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
1946 | ;; | |
1947 | ||
1948 | netbsd*) | |
2d65a52e AO |
1949 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
1950 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
2f7bf5b7 | 1951 | else |
2d65a52e | 1952 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
2f7bf5b7 AO |
1953 | fi |
1954 | ;; | |
1955 | ||
2d65a52e AO |
1956 | newsos6) |
1957 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
1958 | lt_cv_file_magic_cmd=/usr/bin/file | |
1959 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
1960 | ;; | |
1961 | ||
2f7bf5b7 AO |
1962 | osf3* | osf4* | osf5*) |
1963 | # this will be overridden with pass_all, but let us keep it just in case | |
1964 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
1965 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1966 | lt_cv_deplibs_check_method=pass_all | |
1967 | ;; | |
66deb2be | 1968 | |
2f7bf5b7 AO |
1969 | sco3.2v5*) |
1970 | lt_cv_deplibs_check_method=pass_all | |
1971 | ;; | |
1972 | ||
1973 | solaris*) | |
1974 | lt_cv_deplibs_check_method=pass_all | |
1975 | lt_cv_file_magic_test_file=/lib/libc.so | |
1976 | ;; | |
1977 | ||
33456445 AO |
1978 | sysv5uw[78]* | sysv4*uw2*) |
1979 | lt_cv_deplibs_check_method=pass_all | |
1980 | ;; | |
1981 | ||
2f7bf5b7 | 1982 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
2d65a52e | 1983 | case $host_vendor in |
2f7bf5b7 AO |
1984 | ncr) |
1985 | lt_cv_deplibs_check_method=pass_all | |
1986 | ;; | |
1987 | motorola) | |
2d65a52e AO |
1988 | 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]' |
1989 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
2f7bf5b7 AO |
1990 | ;; |
1991 | esac | |
1992 | ;; | |
1993 | esac | |
1994 | ||
1995 | fi | |
1996 | ||
1997 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
1998 | file_magic_cmd=$lt_cv_file_magic_cmd | |
1999 | deplibs_check_method=$lt_cv_deplibs_check_method | |
2000 | ||
2001 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
30c3de1f | 2002 | echo "configure:2003: checking for object suffix" >&5 |
2f7bf5b7 AO |
2003 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
2004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2005 | else | |
2006 | rm -f conftest* | |
2007 | echo 'int i = 1;' > conftest.$ac_ext | |
30c3de1f | 2008 | if { (eval echo configure:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2f7bf5b7 AO |
2009 | for ac_file in conftest.*; do |
2010 | case $ac_file in | |
2011 | *.c) ;; | |
2012 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
2013 | esac | |
2014 | done | |
2015 | else | |
2016 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
2017 | fi | |
2018 | rm -f conftest* | |
2019 | fi | |
2020 | ||
2021 | echo "$ac_t""$ac_cv_objext" 1>&6 | |
2022 | OBJEXT=$ac_cv_objext | |
2023 | ac_objext=$ac_cv_objext | |
2024 | ||
2025 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
2026 | ||
2027 | # Only perform the check for file, if the check method requires it | |
2d65a52e | 2028 | case $deplibs_check_method in |
2f7bf5b7 | 2029 | file_magic*) |
5f527203 | 2030 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
2f7bf5b7 | 2031 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
30c3de1f | 2032 | echo "configure:2033: checking for ${ac_tool_prefix}file" >&5 |
5f527203 | 2033 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
2f7bf5b7 AO |
2034 | echo $ac_n "(cached) $ac_c" 1>&6 |
2035 | else | |
2d65a52e | 2036 | case $MAGIC_CMD in |
2f7bf5b7 | 2037 | /*) |
5f527203 | 2038 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
2f7bf5b7 AO |
2039 | ;; |
2040 | ?:/*) | |
5f527203 | 2041 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
2f7bf5b7 AO |
2042 | ;; |
2043 | *) | |
5f527203 | 2044 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
2f7bf5b7 AO |
2045 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2046 | ac_dummy="/usr/bin:$PATH" | |
2047 | for ac_dir in $ac_dummy; do | |
2048 | test -z "$ac_dir" && ac_dir=. | |
2049 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
5f527203 | 2050 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
2f7bf5b7 | 2051 | if test -n "$file_magic_test_file"; then |
2d65a52e | 2052 | case $deplibs_check_method in |
2f7bf5b7 AO |
2053 | "file_magic "*) |
2054 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5f527203 | 2055 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2f7bf5b7 AO |
2056 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2057 | egrep "$file_magic_regex" > /dev/null; then | |
2058 | : | |
2059 | else | |
2060 | cat <<EOF 1>&2 | |
2061 | ||
2062 | *** Warning: the command libtool uses to detect shared libraries, | |
2063 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2064 | *** The result is that libtool may fail to recognize shared libraries | |
2065 | *** as such. This will affect the creation of libtool libraries that | |
2066 | *** depend on shared libraries, but programs linked with such libtool | |
2067 | *** libraries will work regardless of this problem. Nevertheless, you | |
2068 | *** may want to report the problem to your system manager and/or to | |
2069 | *** bug-libtool@gnu.org | |
2070 | ||
2071 | EOF | |
2072 | fi ;; | |
2073 | esac | |
2074 | fi | |
2075 | break | |
2076 | fi | |
2077 | done | |
2078 | IFS="$ac_save_ifs" | |
5f527203 | 2079 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
2f7bf5b7 | 2080 | ;; |
70635f1e | 2081 | esac |
2f7bf5b7 AO |
2082 | fi |
2083 | ||
5f527203 AO |
2084 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2085 | if test -n "$MAGIC_CMD"; then | |
2086 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
2f7bf5b7 AO |
2087 | else |
2088 | echo "$ac_t""no" 1>&6 | |
2089 | fi | |
2090 | ||
5f527203 | 2091 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
2f7bf5b7 AO |
2092 | if test -n "$ac_tool_prefix"; then |
2093 | echo $ac_n "checking for file""... $ac_c" 1>&6 | |
30c3de1f | 2094 | echo "configure:2095: checking for file" >&5 |
5f527203 | 2095 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
2f7bf5b7 AO |
2096 | echo $ac_n "(cached) $ac_c" 1>&6 |
2097 | else | |
2d65a52e | 2098 | case $MAGIC_CMD in |
2f7bf5b7 | 2099 | /*) |
5f527203 | 2100 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
2f7bf5b7 AO |
2101 | ;; |
2102 | ?:/*) | |
5f527203 | 2103 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
2f7bf5b7 AO |
2104 | ;; |
2105 | *) | |
5f527203 | 2106 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
2f7bf5b7 AO |
2107 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2108 | ac_dummy="/usr/bin:$PATH" | |
2109 | for ac_dir in $ac_dummy; do | |
2110 | test -z "$ac_dir" && ac_dir=. | |
2111 | if test -f $ac_dir/file; then | |
5f527203 | 2112 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
2f7bf5b7 | 2113 | if test -n "$file_magic_test_file"; then |
2d65a52e | 2114 | case $deplibs_check_method in |
2f7bf5b7 AO |
2115 | "file_magic "*) |
2116 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5f527203 | 2117 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2f7bf5b7 AO |
2118 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2119 | egrep "$file_magic_regex" > /dev/null; then | |
2120 | : | |
2121 | else | |
2122 | cat <<EOF 1>&2 | |
2123 | ||
2124 | *** Warning: the command libtool uses to detect shared libraries, | |
2125 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2126 | *** The result is that libtool may fail to recognize shared libraries | |
2127 | *** as such. This will affect the creation of libtool libraries that | |
2128 | *** depend on shared libraries, but programs linked with such libtool | |
2129 | *** libraries will work regardless of this problem. Nevertheless, you | |
2130 | *** may want to report the problem to your system manager and/or to | |
2131 | *** bug-libtool@gnu.org | |
2132 | ||
2133 | EOF | |
2134 | fi ;; | |
2135 | esac | |
2136 | fi | |
2137 | break | |
2138 | fi | |
2139 | done | |
2140 | IFS="$ac_save_ifs" | |
5f527203 | 2141 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
2f7bf5b7 AO |
2142 | ;; |
2143 | esac | |
2144 | fi | |
2145 | ||
5f527203 AO |
2146 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2147 | if test -n "$MAGIC_CMD"; then | |
2148 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
2f7bf5b7 AO |
2149 | else |
2150 | echo "$ac_t""no" 1>&6 | |
2151 | fi | |
2152 | ||
2153 | else | |
5f527203 | 2154 | MAGIC_CMD=: |
2f7bf5b7 AO |
2155 | fi |
2156 | fi | |
2157 | ||
2158 | fi | |
2159 | ;; | |
2160 | esac | |
2161 | ||
2162 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2163 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2164 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 2165 | echo "configure:2166: checking for $ac_word" >&5 |
2f7bf5b7 AO |
2166 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2168 | else | |
2169 | if test -n "$RANLIB"; then | |
2170 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2171 | else | |
2172 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2173 | ac_dummy="$PATH" | |
2174 | for ac_dir in $ac_dummy; do | |
2175 | test -z "$ac_dir" && ac_dir=. | |
2176 | if test -f $ac_dir/$ac_word; then | |
2177 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2178 | break | |
2179 | fi | |
2180 | done | |
2181 | IFS="$ac_save_ifs" | |
2182 | fi | |
2183 | fi | |
2184 | RANLIB="$ac_cv_prog_RANLIB" | |
2185 | if test -n "$RANLIB"; then | |
2186 | echo "$ac_t""$RANLIB" 1>&6 | |
2187 | else | |
2188 | echo "$ac_t""no" 1>&6 | |
2189 | fi | |
2190 | ||
2191 | ||
2192 | if test -z "$ac_cv_prog_RANLIB"; then | |
2193 | if test -n "$ac_tool_prefix"; then | |
2194 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2195 | set dummy ranlib; ac_word=$2 | |
2196 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 2197 | echo "configure:2198: checking for $ac_word" >&5 |
2f7bf5b7 AO |
2198 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2200 | else | |
2201 | if test -n "$RANLIB"; then | |
2202 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2203 | else | |
2204 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2205 | ac_dummy="$PATH" | |
2206 | for ac_dir in $ac_dummy; do | |
2207 | test -z "$ac_dir" && ac_dir=. | |
2208 | if test -f $ac_dir/$ac_word; then | |
2209 | ac_cv_prog_RANLIB="ranlib" | |
2210 | break | |
2211 | fi | |
2212 | done | |
2213 | IFS="$ac_save_ifs" | |
2214 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2215 | fi | |
2216 | fi | |
2217 | RANLIB="$ac_cv_prog_RANLIB" | |
2218 | if test -n "$RANLIB"; then | |
2219 | echo "$ac_t""$RANLIB" 1>&6 | |
2220 | else | |
2221 | echo "$ac_t""no" 1>&6 | |
2222 | fi | |
2223 | ||
2224 | else | |
2225 | RANLIB=":" | |
2226 | fi | |
2227 | fi | |
2228 | ||
2229 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2230 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2231 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 2232 | echo "configure:2233: checking for $ac_word" >&5 |
2f7bf5b7 AO |
2233 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2235 | else | |
2236 | if test -n "$STRIP"; then | |
2237 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2238 | else | |
2239 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2240 | ac_dummy="$PATH" | |
2241 | for ac_dir in $ac_dummy; do | |
2242 | test -z "$ac_dir" && ac_dir=. | |
2243 | if test -f $ac_dir/$ac_word; then | |
2244 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2245 | break | |
2246 | fi | |
2247 | done | |
2248 | IFS="$ac_save_ifs" | |
2249 | fi | |
2250 | fi | |
2251 | STRIP="$ac_cv_prog_STRIP" | |
2252 | if test -n "$STRIP"; then | |
2253 | echo "$ac_t""$STRIP" 1>&6 | |
2254 | else | |
2255 | echo "$ac_t""no" 1>&6 | |
2256 | fi | |
2257 | ||
2258 | ||
2259 | if test -z "$ac_cv_prog_STRIP"; then | |
2260 | if test -n "$ac_tool_prefix"; then | |
2261 | # Extract the first word of "strip", so it can be a program name with args. | |
2262 | set dummy strip; ac_word=$2 | |
2263 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30c3de1f | 2264 | echo "configure:2265: checking for $ac_word" >&5 |
2f7bf5b7 AO |
2265 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2267 | else | |
2268 | if test -n "$STRIP"; then | |
2269 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2270 | else | |
2271 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2272 | ac_dummy="$PATH" | |
2273 | for ac_dir in $ac_dummy; do | |
2274 | test -z "$ac_dir" && ac_dir=. | |
2275 | if test -f $ac_dir/$ac_word; then | |
2276 | ac_cv_prog_STRIP="strip" | |
2277 | break | |
2278 | fi | |
2279 | done | |
2280 | IFS="$ac_save_ifs" | |
2281 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
2282 | fi | |
2283 | fi | |
2284 | STRIP="$ac_cv_prog_STRIP" | |
2285 | if test -n "$STRIP"; then | |
2286 | echo "$ac_t""$STRIP" 1>&6 | |
2287 | else | |
2288 | echo "$ac_t""no" 1>&6 | |
2289 | fi | |
2290 | ||
2291 | else | |
2292 | STRIP=":" | |
2293 | fi | |
2294 | fi | |
2295 | ||
70635f1e | 2296 | |
66deb2be | 2297 | # Check for any special flags to pass to ltconfig. |
115dabb8 | 2298 | libtool_flags="--cache-file=$cache_file" |
66deb2be TT |
2299 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
2300 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
115dabb8 | 2301 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
2d65a52e AO |
2302 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
2303 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
66deb2be | 2304 | |
20bbd3cd TT |
2305 | |
2306 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2307 | if test "${enable_libtool_lock+set}" = set; then | |
2308 | enableval="$enable_libtool_lock" | |
2309 | : | |
2310 | fi | |
2311 | ||
2312 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2313 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
2314 | ||
2f7bf5b7 AO |
2315 | # Check whether --with-pic or --without-pic was given. |
2316 | if test "${with_pic+set}" = set; then | |
2317 | withval="$with_pic" | |
2318 | pic_mode="$withval" | |
2319 | else | |
2320 | pic_mode=default | |
2321 | fi | |
2322 | ||
2323 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
2324 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2325 | ||
66deb2be TT |
2326 | # Some flags need to be propagated to the compiler or linker for good |
2327 | # libtool support. | |
2d65a52e | 2328 | case $host in |
66deb2be TT |
2329 | *-*-irix6*) |
2330 | # Find out which ABI we are using. | |
30c3de1f JS |
2331 | echo '#line 2332 "configure"' > conftest.$ac_ext |
2332 | if { (eval echo configure:2333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3343fdd2 AO |
2333 | if test "$lt_cv_prog_gnu_ld" = yes; then |
2334 | case `/usr/bin/file conftest.$ac_objext` in | |
2335 | *32-bit*) | |
2336 | LD="${LD-ld} -melf32bsmip" | |
2337 | ;; | |
2338 | *N32*) | |
2339 | LD="${LD-ld} -melf32bmipn32" | |
2340 | ;; | |
2341 | *64-bit*) | |
2342 | LD="${LD-ld} -melf64bmip" | |
2343 | ;; | |
2344 | esac | |
2345 | else | |
2d65a52e | 2346 | case `/usr/bin/file conftest.$ac_objext` in |
66deb2be TT |
2347 | *32-bit*) |
2348 | LD="${LD-ld} -32" | |
2349 | ;; | |
2350 | *N32*) | |
2351 | LD="${LD-ld} -n32" | |
2352 | ;; | |
2353 | *64-bit*) | |
2354 | LD="${LD-ld} -64" | |
2355 | ;; | |
2356 | esac | |
3343fdd2 | 2357 | fi |
66deb2be TT |
2358 | fi |
2359 | rm -rf conftest* | |
2360 | ;; | |
2361 | ||
f5cc59a7 AO |
2362 | ia64-*-hpux*) |
2363 | # Find out which ABI we are using. | |
2364 | echo 'int i;' > conftest.$ac_ext | |
30c3de1f | 2365 | if { (eval echo configure:2366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f5cc59a7 AO |
2366 | case "`/usr/bin/file conftest.o`" in |
2367 | *ELF-32*) | |
2368 | HPUX_IA64_MODE="32" | |
2369 | ;; | |
2370 | *ELF-64*) | |
2371 | HPUX_IA64_MODE="64" | |
2372 | ;; | |
2373 | esac | |
2374 | fi | |
2375 | rm -rf conftest* | |
2376 | ;; | |
2377 | ||
13b6e5b4 AO |
2378 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
2379 | # Find out which ABI we are using. | |
2380 | echo 'int i;' > conftest.$ac_ext | |
30c3de1f | 2381 | if { (eval echo configure:2382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
13b6e5b4 AO |
2382 | case "`/usr/bin/file conftest.o`" in |
2383 | *32-bit*) | |
2384 | case $host in | |
2385 | x86_64-*linux*) | |
2386 | LD="${LD-ld} -m elf_i386" | |
2387 | ;; | |
e517f636 | 2388 | ppc64-*linux*|powerpc64-*linux*) |
13b6e5b4 AO |
2389 | LD="${LD-ld} -m elf32ppclinux" |
2390 | ;; | |
2391 | s390x-*linux*) | |
2392 | LD="${LD-ld} -m elf_s390" | |
2393 | ;; | |
2394 | sparc64-*linux*) | |
2395 | LD="${LD-ld} -m elf32_sparc" | |
2396 | ;; | |
2397 | esac | |
2398 | ;; | |
2399 | *64-bit*) | |
2400 | case $host in | |
2401 | x86_64-*linux*) | |
2402 | LD="${LD-ld} -m elf_x86_64" | |
2403 | ;; | |
2404 | ppc*-*linux*|powerpc*-*linux*) | |
2405 | LD="${LD-ld} -m elf64ppc" | |
2406 | ;; | |
2407 | s390*-*linux*) | |
2408 | LD="${LD-ld} -m elf64_s390" | |
2409 | ;; | |
2410 | sparc*-*linux*) | |
2411 | LD="${LD-ld} -m elf64_sparc" | |
2412 | ;; | |
2413 | esac | |
2414 | ;; | |
2415 | esac | |
2416 | fi | |
2417 | rm -rf conftest* | |
2418 | ;; | |
2419 | ||
66deb2be TT |
2420 | *-*-sco3.2v5*) |
2421 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
115dabb8 | 2422 | SAVE_CFLAGS="$CFLAGS" |
66deb2be | 2423 | CFLAGS="$CFLAGS -belf" |
115dabb8 | 2424 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
30c3de1f | 2425 | echo "configure:2426: checking whether the C compiler needs -belf" >&5 |
115dabb8 TT |
2426 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
2427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2428 | else | |
2f7bf5b7 AO |
2429 | |
2430 | ac_ext=c | |
2431 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2432 | ac_cpp='$CPP $CPPFLAGS' | |
2433 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2434 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2435 | cross_compiling=$ac_cv_prog_cc_cross | |
2436 | ||
2437 | cat > conftest.$ac_ext <<EOF | |
30c3de1f | 2438 | #line 2439 "configure" |
115dabb8 TT |
2439 | #include "confdefs.h" |
2440 | ||
2441 | int main() { | |
2442 | ||
2443 | ; return 0; } | |
2444 | EOF | |
30c3de1f | 2445 | if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
115dabb8 TT |
2446 | rm -rf conftest* |
2447 | lt_cv_cc_needs_belf=yes | |
2448 | else | |
2449 | echo "configure: failed program was:" >&5 | |
2450 | cat conftest.$ac_ext >&5 | |
2451 | rm -rf conftest* | |
2452 | lt_cv_cc_needs_belf=no | |
2453 | fi | |
2454 | rm -f conftest* | |
2f7bf5b7 AO |
2455 | ac_ext=c |
2456 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2457 | ac_cpp='$CPP $CPPFLAGS' | |
2458 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2459 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2460 | cross_compiling=$ac_cv_prog_cc_cross | |
2461 | ||
115dabb8 TT |
2462 | fi |
2463 | ||
2464 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2465 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2466 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2467 | CFLAGS="$SAVE_CFLAGS" | |
2468 | fi | |
66deb2be TT |
2469 | ;; |
2470 | ||
66deb2be TT |
2471 | |
2472 | esac | |
2473 | ||
2f7bf5b7 | 2474 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
30c3de1f | 2475 | echo "configure:2476: checking how to run the C++ preprocessor" >&5 |
2f7bf5b7 AO |
2476 | if test -z "$CXXCPP"; then |
2477 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
2478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2479 | else | |
f5cc59a7 | 2480 | ac_ext=C |
2f7bf5b7 AO |
2481 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2482 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2483 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2484 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2485 | cross_compiling=$ac_cv_prog_cxx_cross | |
2486 | CXXCPP="${CXX-g++} -E" | |
2487 | cat > conftest.$ac_ext <<EOF | |
30c3de1f | 2488 | #line 2489 "configure" |
2f7bf5b7 AO |
2489 | #include "confdefs.h" |
2490 | #include <stdlib.h> | |
2491 | EOF | |
2492 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30c3de1f | 2493 | { (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2f7bf5b7 AO |
2494 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2495 | if test -z "$ac_err"; then | |
2496 | : | |
2497 | else | |
2498 | echo "$ac_err" >&5 | |
2499 | echo "configure: failed program was:" >&5 | |
2500 | cat conftest.$ac_ext >&5 | |
2501 | rm -rf conftest* | |
2502 | CXXCPP=/lib/cpp | |
2503 | fi | |
2504 | rm -f conftest* | |
2505 | ac_cv_prog_CXXCPP="$CXXCPP" | |
f5cc59a7 | 2506 | ac_ext=c |
2f7bf5b7 AO |
2507 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2508 | ac_cpp='$CPP $CPPFLAGS' | |
2509 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2510 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2511 | cross_compiling=$ac_cv_prog_cc_cross | |
2512 | fi | |
2513 | fi | |
f5cc59a7 | 2514 | CXXCPP="$ac_cv_prog_CXXCPP" |
2f7bf5b7 AO |
2515 | echo "$ac_t""$CXXCPP" 1>&6 |
2516 | ||
115dabb8 TT |
2517 | |
2518 | # Save cache, so that ltconfig can load it | |
2519 | cat > confcache <<\EOF | |
2520 | # This file is a shell script that caches the results of configure | |
2521 | # tests run on this system so they can be shared between configure | |
2522 | # scripts and configure runs. It is not useful on other systems. | |
2523 | # If it contains results you don't want to keep, you may remove or edit it. | |
2524 | # | |
2525 | # By default, configure uses ./config.cache as the cache file, | |
2526 | # creating it if it does not exist already. You can give configure | |
2527 | # the --cache-file=FILE option to use a different cache file; that is | |
2528 | # what configure does when it calls configure scripts in | |
2529 | # subdirectories, so they share the cache. | |
2530 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2531 | # config.status only pays attention to the cache file if you give it the | |
2532 | # --recheck option to rerun configure. | |
2533 | # | |
2534 | EOF | |
2535 | # The following way of writing the cache mishandles newlines in values, | |
2536 | # but we know of no workaround that is simple, portable, and efficient. | |
2537 | # So, don't put newlines in cache variables' values. | |
2538 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2539 | # and sets the high bit in the cache file unless we assign to the vars. | |
2540 | (set) 2>&1 | | |
2541 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2542 | *ac_space=\ *) | |
2543 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2544 | # turns \\\\ into \\, and sed turns \\ into \). | |
2545 | sed -n \ | |
2546 | -e "s/'/'\\\\''/g" \ | |
2547 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2548 | ;; | |
2549 | *) | |
2550 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2551 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2552 | ;; | |
2553 | esac >> confcache | |
2554 | if cmp -s $cache_file confcache; then | |
2555 | : | |
2556 | else | |
2557 | if test -w $cache_file; then | |
2558 | echo "updating cache $cache_file" | |
2559 | cat confcache > $cache_file | |
2560 | else | |
2561 | echo "not updating unwritable cache $cache_file" | |
2562 | fi | |
2563 | fi | |
2564 | rm -f confcache | |
2565 | ||
2566 | ||
66deb2be | 2567 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
2f7bf5b7 | 2568 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
5f527203 | 2569 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
2f7bf5b7 AO |
2570 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2571 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2572 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2573 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
66deb2be | 2574 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
2f7bf5b7 | 2575 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
66deb2be TT |
2576 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
2577 | ||
115dabb8 TT |
2578 | # Reload cache, that may have been modified by ltconfig |
2579 | if test -r "$cache_file"; then | |
2580 | echo "loading cache $cache_file" | |
2581 | . $cache_file | |
2582 | else | |
2583 | echo "creating cache $cache_file" | |
2584 | > $cache_file | |
2585 | fi | |
2586 | ||
2587 | ||
2588 | # This can be used to rebuild libtool when needed | |
2f7bf5b7 | 2589 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
115dabb8 TT |
2590 | |
2591 | # Always use our own libtool. | |
2592 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2593 | ||
66deb2be TT |
2594 | # Redirect the config.log output again, so that the ltconfig log is not |
2595 | # clobbered by the next message. | |
2596 | exec 5>>./config.log | |
2597 | ||
2598 | ||
2f7bf5b7 | 2599 | |
2f7bf5b7 AO |
2600 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" |
2601 | lt_save_CC="$CC" | |
2602 | lt_save_CFLAGS="$CFLAGS" | |
2603 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
2d65a52e | 2604 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
2f7bf5b7 AO |
2605 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2606 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2607 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2608 | deplibs_check_method="$deplibs_check_method" \ | |
2609 | file_magic_cmd="$file_magic_cmd" \ | |
2610 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | |
2611 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \ | |
2612 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; } | |
2613 | CC="$lt_save_CC" | |
2614 | CFLAGS="$lt_save_CFLAGS" | |
2615 | ||
2616 | # Redirect the config.log output again, so that the ltconfig log is not | |
2617 | # clobbered by the next message. | |
2618 | exec 5>>./config.log | |
2619 | ||
2f7bf5b7 AO |
2620 | |
2621 | ||
2622 | ||
2623 | ||
5f527203 | 2624 | |
2f7bf5b7 | 2625 | |
1530be84 TT |
2626 | # Check whether --with-target-subdir or --without-target-subdir was given. |
2627 | if test "${with_target_subdir+set}" = set; then | |
2628 | withval="$with_target_subdir" | |
2629 | : | |
2630 | fi | |
2631 | ||
2632 | # Check whether --with-cross-host or --without-cross-host was given. | |
2633 | if test "${with_cross_host+set}" = set; then | |
2634 | withval="$with_cross_host" | |
2635 | : | |
2636 | fi | |
2637 | ||
2638 | ||
2639 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
30c3de1f | 2640 | echo "configure:2641: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1530be84 TT |
2641 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
2642 | if test "${enable_maintainer_mode+set}" = set; then | |
2643 | enableval="$enable_maintainer_mode" | |
2644 | USE_MAINTAINER_MODE=$enableval | |
2645 | else | |
2646 | USE_MAINTAINER_MODE=no | |
2647 | fi | |
2648 | ||
2649 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
2650 | ||
2651 | ||
2652 | if test $USE_MAINTAINER_MODE = yes; then | |
2653 | MAINTAINER_MODE_TRUE= | |
2654 | MAINTAINER_MODE_FALSE='#' | |
2655 | else | |
2656 | MAINTAINER_MODE_TRUE='#' | |
2657 | MAINTAINER_MODE_FALSE= | |
2658 | fi | |
2659 | MAINT=$MAINTAINER_MODE_TRUE | |
2660 | ||
2661 | ||
2662 | # automake wants to see AC_EXEEXT. But we don't need it. And having | |
2663 | # it is actually a problem, because the compiler we're passed can't | |
2664 | # necessarily do a full link. So we fool automake here. | |
01ef8751 AO |
2665 | if false; then |
2666 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands | |
2667 | # to nothing, so nothing would remain between `then' and `fi' if it | |
2668 | # were not for the `:' below. | |
2669 | : | |
2670 | ||
1530be84 TT |
2671 | |
2672 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
30c3de1f | 2673 | echo "configure:2674: checking for executable suffix" >&5 |
1530be84 TT |
2674 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
2675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2676 | else | |
2677 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
2678 | ac_cv_exeext=.exe | |
2679 | else | |
2680 | rm -f conftest* | |
2681 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
2682 | ac_cv_exeext= | |
30c3de1f | 2683 | if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
1530be84 TT |
2684 | for file in conftest.*; do |
2685 | case $file in | |
30c3de1f | 2686 | *.c | *.o | *.obj) ;; |
1530be84 TT |
2687 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
2688 | esac | |
2689 | done | |
2690 | else | |
2691 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
2692 | fi | |
2693 | rm -f conftest* | |
2694 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
2695 | fi | |
2696 | fi | |
2697 | ||
2698 | EXEEXT="" | |
2699 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
2700 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
2701 | ac_exeext=$EXEEXT | |
2702 | ||
2703 | fi | |
2704 | ||
0ff95153 | 2705 | echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6 |
30c3de1f | 2706 | echo "configure:2707: checking for thread model used by GCC" >&5 |
0ff95153 TT |
2707 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` |
2708 | if test -z "$THREADS"; then | |
2709 | THREADS=no | |
5a2586cf | 2710 | fi |
0ff95153 | 2711 | echo "$ac_t""$THREADS" 1>&6 |
5a2586cf TT |
2712 | |
2713 | # Check whether --enable-parallel-mark or --disable-parallel-mark was given. | |
2714 | if test "${enable_parallel_mark+set}" = set; then | |
2715 | enableval="$enable_parallel_mark" | |
2716 | case "$THREADS" in | |
2717 | no | none | single) | |
2718 | { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; } | |
2719 | ;; | |
2720 | esac | |
2721 | ||
2722 | fi | |
2723 | ||
1530be84 | 2724 | |
7160c99d | 2725 | INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include" |
e301621d | 2726 | THREADLIBS= |
1530be84 TT |
2727 | case "$THREADS" in |
2728 | no | none | single) | |
2729 | THREADS=none | |
2730 | ;; | |
2731 | posix | pthreads) | |
2732 | THREADS=posix | |
62aa6b06 | 2733 | THREADLIBS=-lpthread |
1530be84 | 2734 | case "$host" in |
30c3de1f | 2735 | x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*) |
5a2586cf TT |
2736 | cat >> confdefs.h <<\EOF |
2737 | #define GC_LINUX_THREADS 1 | |
2738 | EOF | |
2739 | ||
2740 | cat >> confdefs.h <<\EOF | |
2741 | #define _REENTRANT 1 | |
2742 | EOF | |
2743 | ||
30c3de1f | 2744 | if test "${enable_parallel_mark}" = yes; then |
5a2586cf TT |
2745 | cat >> confdefs.h <<\EOF |
2746 | #define PARALLEL_MARK 1 | |
2747 | EOF | |
2748 | ||
2749 | fi | |
2750 | cat >> confdefs.h <<\EOF | |
2751 | #define THREAD_LOCAL_ALLOC 1 | |
2752 | EOF | |
2753 | ||
2754 | ;; | |
1530be84 TT |
2755 | *-*-linux*) |
2756 | cat >> confdefs.h <<\EOF | |
5a2586cf | 2757 | #define GC_LINUX_THREADS 1 |
1530be84 TT |
2758 | EOF |
2759 | ||
2760 | cat >> confdefs.h <<\EOF | |
2761 | #define _REENTRANT 1 | |
30c3de1f JS |
2762 | EOF |
2763 | ||
2764 | ;; | |
2765 | *-*-aix*) | |
2766 | cat >> confdefs.h <<\EOF | |
2767 | #define GC_AIX_THREADS 1 | |
2768 | EOF | |
2769 | ||
2770 | cat >> confdefs.h <<\EOF | |
2771 | #define _REENTRANT 1 | |
1530be84 TT |
2772 | EOF |
2773 | ||
5a2586cf TT |
2774 | ;; |
2775 | *-*-hpux*) | |
2776 | echo "configure: warning: "Only HP/UX 11 threads are supported."" 1>&2 | |
2777 | cat >> confdefs.h <<\EOF | |
2778 | #define GC_HPUX_THREADS 1 | |
2779 | EOF | |
2780 | ||
2781 | cat >> confdefs.h <<\EOF | |
2782 | #define _POSIX_C_SOURCE 199506L | |
2783 | EOF | |
2784 | ||
2785 | if test "${enable_parallel_mark}" = yes; then | |
2786 | cat >> confdefs.h <<\EOF | |
2787 | #define PARALLEL_MARK 1 | |
2788 | EOF | |
2789 | ||
2790 | fi | |
2791 | cat >> confdefs.h <<\EOF | |
2792 | #define THREAD_LOCAL_ALLOC 1 | |
2793 | EOF | |
2794 | ||
2795 | THREADLIBS="-lpthread -lrt" | |
1530be84 | 2796 | ;; |
62aa6b06 | 2797 | *-*-freebsd*) |
79f777fd | 2798 | echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC."" 1>&2 |
62aa6b06 | 2799 | cat >> confdefs.h <<\EOF |
4c7726b1 | 2800 | #define GC_FREEBSD_THREADS 1 |
62aa6b06 LR |
2801 | EOF |
2802 | ||
9110a741 | 2803 | INCLUDES="$INCLUDES -pthread" |
62aa6b06 LR |
2804 | THREADLIBS=-pthread |
2805 | ;; | |
1530be84 TT |
2806 | *-*-solaris*) |
2807 | cat >> confdefs.h <<\EOF | |
5a2586cf | 2808 | #define GC_SOLARIS_THREADS 1 |
1530be84 TT |
2809 | EOF |
2810 | ||
2811 | cat >> confdefs.h <<\EOF | |
5a2586cf | 2812 | #define GC_SOLARIS_PTHREADS 1 |
14caa62f GZ |
2813 | EOF |
2814 | ||
2815 | ;; | |
2816 | *-*-irix*) | |
2817 | cat >> confdefs.h <<\EOF | |
5a2586cf | 2818 | #define GC_IRIX_THREADS 1 |
1530be84 TT |
2819 | EOF |
2820 | ||
a2d6e915 DB |
2821 | ;; |
2822 | *-*-cygwin*) | |
30c3de1f JS |
2823 | cat >> confdefs.h <<\EOF |
2824 | #define GC_WIN32_THREADS 1 | |
2825 | EOF | |
2826 | ||
2827 | ;; | |
2828 | *-*-darwin*) | |
2829 | cat >> confdefs.h <<\EOF | |
2830 | #define GC_DARWIN_THREADS 1 | |
2831 | EOF | |
2832 | ||
2833 | cat >> confdefs.h <<\EOF | |
2834 | #define THREAD_LOCAL_ALLOC 1 | |
2835 | EOF | |
2836 | ||
2837 | if test "${enable_parallel_mark}" = yes; then | |
2838 | cat >> confdefs.h <<\EOF | |
2839 | #define PARALLEL_MARK 1 | |
2840 | EOF | |
2841 | ||
2842 | fi | |
2843 | ;; | |
2844 | *-*-osf*) | |
2845 | cat >> confdefs.h <<\EOF | |
2846 | #define GC_OSF1_THREADS 1 | |
2847 | EOF | |
2848 | ||
2849 | if test "${enable_parallel_mark}" = yes; then | |
2850 | cat >> confdefs.h <<\EOF | |
2851 | #define PARALLEL_MARK 1 | |
2852 | EOF | |
2853 | ||
2854 | cat >> confdefs.h <<\EOF | |
2855 | #define THREAD_LOCAL_ALLOC 1 | |
2856 | EOF | |
2857 | ||
2858 | # May want to enable it in other cases, too. | |
2859 | # Measurements havent yet been done. | |
2860 | fi | |
2861 | INCLUDES="$INCLUDES -pthread" | |
2862 | THREADLIBS="-lpthread -lrt" | |
1530be84 TT |
2863 | ;; |
2864 | esac | |
2865 | ;; | |
df61a3d2 AM |
2866 | win32) |
2867 | cat >> confdefs.h <<\EOF | |
2868 | #define GC_WIN32_THREADS 1 | |
512e32d2 AG |
2869 | EOF |
2870 | ||
30c3de1f | 2871 | cat >> confdefs.h <<\EOF |
512e32d2 | 2872 | #define NO_GETENV 1 |
df61a3d2 AM |
2873 | EOF |
2874 | ||
30c3de1f JS |
2875 | ;; |
2876 | dgux386) | |
2877 | THREADS=dgux386 | |
2878 | echo "$ac_t""$THREADLIBS" 1>&6 | |
2879 | # Use pthread GCC switch | |
2880 | THREADLIBS=-pthread | |
2881 | if test "${enable_parallel_mark}" = yes; then | |
2882 | cat >> confdefs.h <<\EOF | |
2883 | #define PARALLEL_MARK 1 | |
e83a44d2 ME |
2884 | EOF |
2885 | ||
2886 | fi | |
30c3de1f JS |
2887 | cat >> confdefs.h <<\EOF |
2888 | #define THREAD_LOCAL_ALLOC 1 | |
2889 | EOF | |
2890 | ||
2891 | cat >> confdefs.h <<\EOF | |
2892 | #define GC_DGUX386_THREADS 1 | |
2893 | EOF | |
2894 | ||
2895 | cat >> confdefs.h <<\EOF | |
2896 | #define DGUX_THREADS 1 | |
2897 | EOF | |
2898 | ||
2899 | # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread | |
2900 | INCLUDES="-pthread $INCLUDES" | |
2901 | ;; | |
2902 | aix) | |
2903 | THREADS=posix | |
2904 | THREADLIBS=-lpthread | |
2905 | cat >> confdefs.h <<\EOF | |
2906 | #define GC_AIX_THREADS 1 | |
2907 | EOF | |
2908 | ||
2909 | cat >> confdefs.h <<\EOF | |
2910 | #define _REENTRANT 1 | |
2911 | EOF | |
2912 | ||
df61a3d2 AM |
2913 | ;; |
2914 | decosf1 | irix | mach | os2 | solaris | dce | vxworks) | |
1530be84 TT |
2915 | { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; } |
2916 | ;; | |
2917 | *) | |
2918 | { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; } | |
2919 | ;; | |
2920 | esac | |
1530be84 | 2921 | |
20bbd3cd | 2922 | |
30c3de1f JS |
2923 | case "$host" in |
2924 | powerpc-*-darwin*) | |
2925 | powerpc_darwin=true | |
2926 | ;; | |
2927 | esac | |
2928 | ||
2929 | ||
2930 | if test x$powerpc_darwin = xtrue; then | |
2931 | POWERPC_DARWIN_TRUE= | |
2932 | POWERPC_DARWIN_FALSE='#' | |
2933 | else | |
2934 | POWERPC_DARWIN_TRUE='#' | |
2935 | POWERPC_DARWIN_FALSE= | |
2936 | fi | |
2937 | ||
2938 | # We never want libdl on darwin. It is a fake libdl that just ends up making | |
2939 | # dyld calls anyway | |
2940 | case "$host" in | |
2941 | *-*-darwin*) ;; | |
2942 | *) | |
2943 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
2944 | echo "configure:2945: checking for dlopen in -ldl" >&5 | |
f2beb7ef APB |
2945 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
2946 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2947 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2948 | else | |
2949 | ac_save_LIBS="$LIBS" | |
2950 | LIBS="-ldl $LIBS" | |
2951 | cat > conftest.$ac_ext <<EOF | |
30c3de1f | 2952 | #line 2953 "configure" |
f2beb7ef APB |
2953 | #include "confdefs.h" |
2954 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2955 | /* We use char because int might match the return type of a gcc2 | |
2956 | builtin and then its argument prototype would still apply. */ | |
2957 | char dlopen(); | |
2958 | ||
2959 | int main() { | |
2960 | dlopen() | |
2961 | ; return 0; } | |
2962 | EOF | |
30c3de1f | 2963 | if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f2beb7ef APB |
2964 | rm -rf conftest* |
2965 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2966 | else | |
2967 | echo "configure: failed program was:" >&5 | |
2968 | cat conftest.$ac_ext >&5 | |
2969 | rm -rf conftest* | |
2970 | eval "ac_cv_lib_$ac_lib_var=no" | |
2971 | fi | |
2972 | rm -f conftest* | |
2973 | LIBS="$ac_save_LIBS" | |
2974 | ||
2975 | fi | |
2976 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2977 | echo "$ac_t""yes" 1>&6 | |
2978 | EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl" | |
2979 | else | |
2980 | echo "$ac_t""no" 1>&6 | |
2981 | fi | |
2982 | ||
30c3de1f JS |
2983 | ;; |
2984 | esac | |
2985 | ||
f2beb7ef APB |
2986 | |
2987 | ||
5a2586cf | 2988 | target_all=libgcjgc.la |
1530be84 TT |
2989 | |
2990 | ||
f28c857f | 2991 | |
1530be84 TT |
2992 | TARGET_ECOS="no" |
2993 | # Check whether --with-ecos or --without-ecos was given. | |
2994 | if test "${with_ecos+set}" = set; then | |
2995 | withval="$with_ecos" | |
2996 | TARGET_ECOS="$with_ecos" | |
2997 | ||
2998 | fi | |
2999 | ||
3000 | ||
3001 | addobjs= | |
30c3de1f JS |
3002 | addlibs= |
3003 | addincludes= | |
3004 | addtests= | |
1530be84 TT |
3005 | CXXINCLUDES= |
3006 | case "$TARGET_ECOS" in | |
3007 | no) | |
3008 | ;; | |
3009 | *) | |
3010 | cat >> confdefs.h <<\EOF | |
3011 | #define ECOS 1 | |
3012 | EOF | |
3013 | ||
3014 | CXXINCLUDES="-I${TARGET_ECOS}/include" | |
66deb2be | 3015 | addobjs="$addobjs ecos.lo" |
1530be84 TT |
3016 | ;; |
3017 | esac | |
3018 | ||
30c3de1f JS |
3019 | if test "${enable_cplusplus}" = yes; then |
3020 | addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h" | |
3021 | addtests="$addtests test_cpp" | |
3022 | fi | |
1530be84 TT |
3023 | |
3024 | ||
3025 | ||
30c3de1f JS |
3026 | if test "${enable_cplusplus}" = yes; then |
3027 | CPLUSPLUS_TRUE= | |
3028 | CPLUSPLUS_FALSE='#' | |
3029 | else | |
3030 | CPLUSPLUS_TRUE='#' | |
3031 | CPLUSPLUS_FALSE= | |
3032 | fi | |
1530be84 | 3033 | |
30c3de1f JS |
3034 | |
3035 | ||
3036 | ||
3037 | ||
3038 | ||
3039 | # Configuration of shared libraries | |
3040 | # | |
3041 | echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6 | |
3042 | echo "configure:3043: checking whether to build shared libraries" >&5 | |
3043 | # Check whether --enable-shared or --disable-shared was given. | |
4c7726b1 BM |
3044 | if test "${enable_shared+set}" = set; then |
3045 | enableval="$enable_shared" | |
3046 | p=${PACKAGE-default} | |
3047 | case $enableval in | |
3048 | yes) enable_shared=yes ;; | |
3049 | no) enable_shared=no ;; | |
3050 | *) | |
3051 | enable_shared=no | |
3052 | # Look at the argument we got. We use all the common list separators. | |
3053 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3054 | for pkg in $enableval; do | |
3055 | if test "X$pkg" = "X$p"; then | |
3056 | enable_shared=yes | |
3057 | fi | |
3058 | done | |
3059 | IFS="$ac_save_ifs" | |
3060 | ;; | |
3061 | esac | |
3062 | else | |
30c3de1f | 3063 | enable_shared=yes |
4c7726b1 BM |
3064 | fi |
3065 | ||
30c3de1f JS |
3066 | |
3067 | case "$host" in | |
3068 | alpha-*-openbsd*) | |
3069 | enable_shared=no | |
3070 | echo "$ac_t""no" 1>&6 | |
3071 | ;; | |
3072 | *) | |
3073 | echo "$ac_t""yes" 1>&6 | |
3074 | ;; | |
3075 | esac | |
3076 | ||
3077 | # Configuration of machine-dependent code | |
3078 | # | |
3079 | echo $ac_n "checking which machine-dependent code should be used""... $ac_c" 1>&6 | |
3080 | echo "configure:3081: checking which machine-dependent code should be used" >&5 | |
3081 | machdep= | |
3082 | case "$host" in | |
3083 | alpha*-*-openbsd*) | |
3084 | machdep="alpha_mach_dep.lo" | |
3085 | if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then | |
3086 | echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2 | |
4c7726b1 | 3087 | fi |
adb60117 | 3088 | ;; |
30c3de1f | 3089 | alpha*-*-linux*) |
adb60117 RH |
3090 | machdep="alpha_mach_dep.lo" |
3091 | ;; | |
3092 | i?86-*-solaris2.[89]*) | |
3093 | cat >> confdefs.h <<\EOF | |
3094 | #define SOLARIS25_PROC_VDB_BUG_FIXED 1 | |
3095 | EOF | |
3096 | ||
f6823cb5 | 3097 | ;; |
1530be84 | 3098 | mipstx39-*-elf*) |
66deb2be | 3099 | machdep="mips_ultrix_mach_dep.lo" |
1530be84 TT |
3100 | cat >> confdefs.h <<\EOF |
3101 | #define STACKBASE __stackbase | |
3102 | EOF | |
3103 | ||
3104 | cat >> confdefs.h <<\EOF | |
3105 | #define DATASTART_IS_ETEXT 1 | |
3106 | EOF | |
3107 | ||
3108 | ;; | |
276836f0 RO |
3109 | mips-dec-ultrix*) |
3110 | machdep="mips_ultrix_mach-dep.lo" | |
3111 | ;; | |
30c3de1f | 3112 | mips-nec-sysv*|mips-unknown-sysv*) |
5316699d | 3113 | ;; |
30c3de1f JS |
3114 | mips*-*-linux*) |
3115 | ;; | |
276836f0 RO |
3116 | mips-*-*) |
3117 | machdep="mips_sgi_mach_dep.lo" | |
3118 | cat >> confdefs.h <<\EOF | |
3119 | #define NO_EXECUTE_PERMISSION 1 | |
3120 | EOF | |
3121 | ||
30c3de1f JS |
3122 | ;; |
3123 | sparc-*-netbsd*) | |
3124 | machdep="sparc_netbsd_mach_dep.lo" | |
d42058b1 | 3125 | ;; |
1530be84 | 3126 | sparc-sun-solaris2.3*) |
79f777fd | 3127 | machdep="sparc_mach_dep.lo" |
1530be84 TT |
3128 | cat >> confdefs.h <<\EOF |
3129 | #define SUNOS53_SHARED_LIB 1 | |
3130 | EOF | |
3131 | ||
4c7726b1 | 3132 | ;; |
79f777fd BM |
3133 | sparc-sun-solaris2.*) |
3134 | machdep="sparc_mach_dep.lo" | |
3135 | ;; | |
3136 | ia64-*-*) | |
4c7726b1 | 3137 | machdep="mach_dep.lo ia64_save_regs_in_stack.lo" |
1530be84 TT |
3138 | ;; |
3139 | esac | |
3140 | if test x"$machdep" = x; then | |
30c3de1f | 3141 | echo "$ac_t""$machdep" 1>&6 |
66deb2be | 3142 | machdep="mach_dep.lo" |
1530be84 TT |
3143 | fi |
3144 | addobjs="$addobjs $machdep" | |
3145 | ||
3146 | ||
30c3de1f JS |
3147 | |
3148 | ||
3149 | ||
3150 | ||
3151 | ||
3152 | ||
3153 | ||
3154 | ||
3155 | ||
3156 | # | |
3157 | # Check for AViiON Machines running DGUX | |
3158 | # | |
3159 | echo $ac_n "checking if host is AViiON running DGUX""... $ac_c" 1>&6 | |
3160 | echo "configure:3161: checking if host is AViiON running DGUX" >&5 | |
3161 | ac_is_dgux=no | |
3162 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
3163 | echo "configure:3164: checking how to run the C preprocessor" >&5 | |
3164 | # On Suns, sometimes $CPP names a directory. | |
3165 | if test -n "$CPP" && test -d "$CPP"; then | |
3166 | CPP= | |
3167 | fi | |
3168 | if test -z "$CPP"; then | |
3169 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
3170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3171 | else | |
3172 | # This must be in double quotes, not single quotes, because CPP may get | |
3173 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
3174 | CPP="${CC-cc} -E" | |
3175 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3176 | # not just through cpp. | |
3177 | cat > conftest.$ac_ext <<EOF | |
3178 | #line 3179 "configure" | |
3179 | #include "confdefs.h" | |
3180 | #include <assert.h> | |
3181 | Syntax Error | |
3182 | EOF | |
3183 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3184 | { (eval echo configure:3185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3185 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3186 | if test -z "$ac_err"; then | |
3187 | : | |
3188 | else | |
3189 | echo "$ac_err" >&5 | |
3190 | echo "configure: failed program was:" >&5 | |
3191 | cat conftest.$ac_ext >&5 | |
3192 | rm -rf conftest* | |
3193 | CPP="${CC-cc} -E -traditional-cpp" | |
3194 | cat > conftest.$ac_ext <<EOF | |
3195 | #line 3196 "configure" | |
3196 | #include "confdefs.h" | |
3197 | #include <assert.h> | |
3198 | Syntax Error | |
3199 | EOF | |
3200 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3201 | { (eval echo configure:3202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3202 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3203 | if test -z "$ac_err"; then | |
3204 | : | |
3205 | else | |
3206 | echo "$ac_err" >&5 | |
3207 | echo "configure: failed program was:" >&5 | |
3208 | cat conftest.$ac_ext >&5 | |
3209 | rm -rf conftest* | |
3210 | CPP="${CC-cc} -nologo -E" | |
3211 | cat > conftest.$ac_ext <<EOF | |
3212 | #line 3213 "configure" | |
3213 | #include "confdefs.h" | |
3214 | #include <assert.h> | |
3215 | Syntax Error | |
3216 | EOF | |
3217 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3218 | { (eval echo configure:3219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3219 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3220 | if test -z "$ac_err"; then | |
3221 | : | |
3222 | else | |
3223 | echo "$ac_err" >&5 | |
3224 | echo "configure: failed program was:" >&5 | |
3225 | cat conftest.$ac_ext >&5 | |
3226 | rm -rf conftest* | |
3227 | CPP=/lib/cpp | |
3228 | fi | |
3229 | rm -f conftest* | |
3230 | fi | |
3231 | rm -f conftest* | |
3232 | fi | |
3233 | rm -f conftest* | |
3234 | ac_cv_prog_CPP="$CPP" | |
3235 | fi | |
3236 | CPP="$ac_cv_prog_CPP" | |
3237 | else | |
3238 | ac_cv_prog_CPP="$CPP" | |
3239 | fi | |
3240 | echo "$ac_t""$CPP" 1>&6 | |
3241 | ||
3242 | ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | |
3243 | echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | |
3244 | echo "configure:3245: checking for sys/dg_sys_info.h" >&5 | |
3245 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
3246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3247 | else | |
3248 | cat > conftest.$ac_ext <<EOF | |
3249 | #line 3250 "configure" | |
3250 | #include "confdefs.h" | |
3251 | #include <sys/dg_sys_info.h> | |
3252 | EOF | |
3253 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3254 | { (eval echo configure:3255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3255 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3256 | if test -z "$ac_err"; then | |
3257 | rm -rf conftest* | |
3258 | eval "ac_cv_header_$ac_safe=yes" | |
3259 | else | |
3260 | echo "$ac_err" >&5 | |
3261 | echo "configure: failed program was:" >&5 | |
3262 | cat conftest.$ac_ext >&5 | |
3263 | rm -rf conftest* | |
3264 | eval "ac_cv_header_$ac_safe=no" | |
3265 | fi | |
3266 | rm -f conftest* | |
3267 | fi | |
3268 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3269 | echo "$ac_t""yes" 1>&6 | |
3270 | ac_is_dgux=yes; | |
3271 | else | |
3272 | echo "$ac_t""no" 1>&6 | |
3273 | fi | |
3274 | ||
3275 | ||
3276 | echo "$ac_t""$ac_is_dgux" 1>&6 | |
3277 | ## :GOTCHA: we do not check anything but sys/dg_sys_info.h | |
3278 | if test $ac_is_dgux = yes; then | |
3279 | if test "$enable_full_debug" = "yes"; then | |
3280 | CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
3281 | CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
3282 | else | |
3283 | CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
3284 | CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
3285 | fi | |
3286 | ||
3287 | ||
3288 | fi | |
3289 | ||
3290 | # Check whether --with-target-subdir or --without-target-subdir was given. | |
3291 | if test "${with_target_subdir+set}" = set; then | |
3292 | withval="$with_target_subdir" | |
3293 | : | |
3294 | fi | |
3295 | ||
3296 | # Check whether --with-cross-host or --without-cross-host was given. | |
3297 | if test "${with_cross_host+set}" = set; then | |
3298 | withval="$with_cross_host" | |
3299 | : | |
3300 | fi | |
3301 | ||
3302 | ||
3303 | # automake wants to see AC_EXEEXT. But we don't need it. And having | |
3304 | # it is actually a problem, because the compiler we're passed can't | |
3305 | # necessarily do a full link. So we fool automake here. | |
3306 | if false; then | |
3307 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands | |
3308 | # to nothing, so nothing would remain between `then' and `fi' if it | |
3309 | # were not for the `:' below. | |
3310 | : | |
3311 | ||
3312 | ||
3313 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
3314 | echo "configure:3315: checking for executable suffix" >&5 | |
3315 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | |
3316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3317 | else | |
3318 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
3319 | ac_cv_exeext=.exe | |
3320 | else | |
3321 | rm -f conftest* | |
3322 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
3323 | ac_cv_exeext= | |
3324 | if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | |
3325 | for file in conftest.*; do | |
3326 | case $file in | |
3327 | *.c | *.o | *.obj) ;; | |
3328 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | |
3329 | esac | |
3330 | done | |
3331 | else | |
3332 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
3333 | fi | |
3334 | rm -f conftest* | |
3335 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
3336 | fi | |
3337 | fi | |
3338 | ||
3339 | EXEEXT="" | |
3340 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
3341 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
3342 | ac_exeext=$EXEEXT | |
3343 | ||
3344 | fi | |
3345 | ||
3346 | echo $ac_n "checking whether Solaris gcc optimization fix is necessary""... $ac_c" 1>&6 | |
3347 | echo "configure:3348: checking whether Solaris gcc optimization fix is necessary" >&5 | |
1530be84 | 3348 | case "$host" in |
30c3de1f | 3349 | sparc-sun-solaris2*|*aix*) |
1530be84 | 3350 | if test "$GCC" = yes; then |
30c3de1f | 3351 | echo "$ac_t""yes" 1>&6 |
1530be84 TT |
3352 | new_CFLAGS= |
3353 | for i in $CFLAGS; do | |
3354 | case "$i" in | |
3355 | -O*) | |
3356 | ;; | |
3357 | *) | |
3358 | new_CFLAGS="$new_CFLAGS $i" | |
3359 | ;; | |
3360 | esac | |
3361 | done | |
3362 | CFLAGS="$new_CFLAGS" | |
30c3de1f JS |
3363 | else |
3364 | echo "$ac_t""no" 1>&6 | |
1530be84 TT |
3365 | fi |
3366 | ;; | |
30c3de1f | 3367 | *) echo "$ac_t""no" 1>&6 ;; |
1530be84 TT |
3368 | esac |
3369 | ||
3370 | MY_CFLAGS="$CFLAGS" | |
3371 | ||
3372 | ||
3373 | cat >> confdefs.h <<\EOF | |
3374 | #define SILENT 1 | |
3375 | EOF | |
3376 | ||
3377 | cat >> confdefs.h <<\EOF | |
3378 | #define NO_SIGNALS 1 | |
3379 | EOF | |
3380 | ||
5a2586cf TT |
3381 | cat >> confdefs.h <<\EOF |
3382 | #define NO_EXECUTE_PERMISSION 1 | |
3383 | EOF | |
3384 | ||
3385 | cat >> confdefs.h <<\EOF | |
3386 | #define ALL_INTERIOR_POINTERS 1 | |
3387 | EOF | |
3388 | ||
3389 | ||
1530be84 | 3390 | cat >> confdefs.h <<\EOF |
0476f098 | 3391 | #define JAVA_FINALIZATION 1 |
1530be84 TT |
3392 | EOF |
3393 | ||
3394 | cat >> confdefs.h <<\EOF | |
0476f098 | 3395 | #define GC_GCJ_SUPPORT 1 |
1530be84 TT |
3396 | EOF |
3397 | ||
5a2586cf TT |
3398 | cat >> confdefs.h <<\EOF |
3399 | #define ATOMIC_UNCOLLECTABLE 1 | |
3400 | EOF | |
3401 | ||
1530be84 | 3402 | |
1530be84 TT |
3403 | if test -n "${with_cross_host}"; then |
3404 | cat >> confdefs.h <<\EOF | |
3405 | #define NO_SIGSET 1 | |
0476f098 BM |
3406 | EOF |
3407 | ||
3408 | cat >> confdefs.h <<\EOF | |
3409 | #define NO_DEBUGGING 1 | |
1530be84 TT |
3410 | EOF |
3411 | ||
3412 | fi | |
3413 | ||
5a2586cf TT |
3414 | # Check whether --enable-full-debug or --disable-full-debug was given. |
3415 | if test "${enable_full_debug+set}" = set; then | |
3416 | enableval="$enable_full_debug" | |
3417 | if test "$enable_full_debug" = "yes"; then | |
3418 | echo "configure: warning: "Must define GC_DEBUG and use debug alloc. in clients."" 1>&2 | |
3419 | cat >> confdefs.h <<\EOF | |
3420 | #define KEEP_BACK_PTRS 1 | |
3421 | EOF | |
3422 | ||
3423 | cat >> confdefs.h <<\EOF | |
3424 | #define DBG_HDRS_ALL 1 | |
3425 | EOF | |
3426 | ||
3427 | case $host in | |
79f777fd BM |
3428 | ia64-*-linux* ) |
3429 | cat >> confdefs.h <<\EOF | |
3430 | #define MAKE_BACK_GRAPH 1 | |
3431 | EOF | |
3432 | ||
3433 | ;; | |
48528b67 | 3434 | x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* ) |
79f777fd BM |
3435 | cat >> confdefs.h <<\EOF |
3436 | #define MAKE_BACK_GRAPH 1 | |
3437 | EOF | |
3438 | ||
5a2586cf TT |
3439 | echo "configure: warning: "Client must not use -fomit-frame-pointer."" 1>&2 |
3440 | cat >> confdefs.h <<\EOF | |
3441 | #define SAVE_CALL_COUNT 8 | |
30c3de1f JS |
3442 | EOF |
3443 | ||
3444 | ;; | |
3445 | i345686-*-dgux*) | |
3446 | cat >> confdefs.h <<\EOF | |
3447 | #define MAKE_BACK_GRAPH 1 | |
5a2586cf TT |
3448 | EOF |
3449 | ||
3450 | ;; | |
3451 | esac | |
3452 | fi | |
3453 | fi | |
3454 | ||
3455 | ||
13b6e5b4 AO |
3456 | if test -n "$with_cross_host" && |
3457 | test x"$with_cross_host" != x"no"; then | |
3458 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
3459 | toolexeclibdir='$(toolexecdir)/lib' | |
b48ed568 | 3460 | else |
13b6e5b4 AO |
3461 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' |
3462 | toolexeclibdir='$(libdir)' | |
b48ed568 | 3463 | fi |
ff8b9ca8 AS |
3464 | multi_os_directory=`$CC -print-multi-os-directory` |
3465 | case $multi_os_directory in | |
3466 | .) ;; # Avoid trailing /. | |
3467 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
3468 | esac | |
13b6e5b4 AO |
3469 | |
3470 | ||
b48ed568 | 3471 | |
1530be84 TT |
3472 | if test "${multilib}" = "yes"; then |
3473 | multilib_arg="--enable-multilib" | |
3474 | else | |
3475 | multilib_arg= | |
3476 | fi | |
3477 | ||
3478 | trap '' 1 2 15 | |
3479 | cat > confcache <<\EOF | |
3480 | # This file is a shell script that caches the results of configure | |
3481 | # tests run on this system so they can be shared between configure | |
3482 | # scripts and configure runs. It is not useful on other systems. | |
3483 | # If it contains results you don't want to keep, you may remove or edit it. | |
3484 | # | |
3485 | # By default, configure uses ./config.cache as the cache file, | |
3486 | # creating it if it does not exist already. You can give configure | |
3487 | # the --cache-file=FILE option to use a different cache file; that is | |
3488 | # what configure does when it calls configure scripts in | |
3489 | # subdirectories, so they share the cache. | |
3490 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
3491 | # config.status only pays attention to the cache file if you give it the | |
3492 | # --recheck option to rerun configure. | |
3493 | # | |
3494 | EOF | |
3495 | # The following way of writing the cache mishandles newlines in values, | |
3496 | # but we know of no workaround that is simple, portable, and efficient. | |
3497 | # So, don't put newlines in cache variables' values. | |
3498 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3499 | # and sets the high bit in the cache file unless we assign to the vars. | |
3500 | (set) 2>&1 | | |
3501 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3502 | *ac_space=\ *) | |
3503 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
3504 | # turns \\\\ into \\, and sed turns \\ into \). | |
3505 | sed -n \ | |
3506 | -e "s/'/'\\\\''/g" \ | |
3507 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
3508 | ;; | |
3509 | *) | |
3510 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3511 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
3512 | ;; | |
3513 | esac >> confcache | |
3514 | if cmp -s $cache_file confcache; then | |
3515 | : | |
3516 | else | |
3517 | if test -w $cache_file; then | |
3518 | echo "updating cache $cache_file" | |
3519 | cat confcache > $cache_file | |
3520 | else | |
3521 | echo "not updating unwritable cache $cache_file" | |
3522 | fi | |
3523 | fi | |
3524 | rm -f confcache | |
3525 | ||
3526 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
3527 | ||
3528 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3529 | # Let make expand exec_prefix. | |
3530 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3531 | ||
3532 | # Any assignment to VPATH causes Sun make to only execute | |
3533 | # the first set of double-colon rules, so remove it if not needed. | |
3534 | # If there is a colon in the path, we need to keep it. | |
3535 | if test "x$srcdir" = x.; then | |
3536 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
3537 | fi | |
3538 | ||
3539 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
3540 | ||
3541 | # Transform confdefs.h into DEFS. | |
3542 | # Protect against shell expansion while executing Makefile rules. | |
3543 | # Protect against Makefile macro expansion. | |
e83a44d2 ME |
3544 | cat > conftest.defs <<\EOF |
3545 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
3546 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
3547 | s%\[%\\&%g | |
3548 | s%\]%\\&%g | |
3549 | s%\$%$$%g | |
3550 | EOF | |
3551 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
3552 | rm -f conftest.defs | |
1530be84 TT |
3553 | |
3554 | ||
3555 | # Without the "./", some shells look in PATH for config.status. | |
3556 | : ${CONFIG_STATUS=./config.status} | |
3557 | ||
3558 | echo creating $CONFIG_STATUS | |
3559 | rm -f $CONFIG_STATUS | |
3560 | cat > $CONFIG_STATUS <<EOF | |
3561 | #! /bin/sh | |
3562 | # Generated automatically by configure. | |
3563 | # Run this file to recreate the current configuration. | |
3564 | # This directory was configured as follows, | |
3565 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
3566 | # | |
3567 | # $0 $ac_configure_args | |
3568 | # | |
3569 | # Compiler output produced by configure, useful for debugging | |
3570 | # configure, is in ./config.log if it exists. | |
3571 | ||
3572 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
3573 | for ac_option | |
3574 | do | |
3575 | case "\$ac_option" in | |
3576 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3577 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
3578 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
3579 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
3580 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
3581 | exit 0 ;; | |
3582 | -help | --help | --hel | --he | --h) | |
3583 | echo "\$ac_cs_usage"; exit 0 ;; | |
3584 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
3585 | esac | |
3586 | done | |
3587 | ||
3588 | ac_given_srcdir=$srcdir | |
3589 | ac_given_INSTALL="$INSTALL" | |
3590 | ||
1a8a749c | 3591 | trap 'rm -fr `echo "Makefile include/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
1530be84 TT |
3592 | EOF |
3593 | cat >> $CONFIG_STATUS <<EOF | |
3594 | ||
3595 | # Protect against being on the right side of a sed subst in config.status. | |
3596 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
3597 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
3598 | $ac_vpsub | |
3599 | $extrasub | |
3600 | s%@SHELL@%$SHELL%g | |
3601 | s%@CFLAGS@%$CFLAGS%g | |
3602 | s%@CPPFLAGS@%$CPPFLAGS%g | |
3603 | s%@CXXFLAGS@%$CXXFLAGS%g | |
3604 | s%@FFLAGS@%$FFLAGS%g | |
3605 | s%@DEFS@%$DEFS%g | |
3606 | s%@LDFLAGS@%$LDFLAGS%g | |
3607 | s%@LIBS@%$LIBS%g | |
3608 | s%@exec_prefix@%$exec_prefix%g | |
3609 | s%@prefix@%$prefix%g | |
3610 | s%@program_transform_name@%$program_transform_name%g | |
3611 | s%@bindir@%$bindir%g | |
3612 | s%@sbindir@%$sbindir%g | |
3613 | s%@libexecdir@%$libexecdir%g | |
3614 | s%@datadir@%$datadir%g | |
3615 | s%@sysconfdir@%$sysconfdir%g | |
3616 | s%@sharedstatedir@%$sharedstatedir%g | |
3617 | s%@localstatedir@%$localstatedir%g | |
3618 | s%@libdir@%$libdir%g | |
3619 | s%@includedir@%$includedir%g | |
3620 | s%@oldincludedir@%$oldincludedir%g | |
3621 | s%@infodir@%$infodir%g | |
3622 | s%@mandir@%$mandir%g | |
5a2586cf | 3623 | s%@gc_basedir@%$gc_basedir%g |
1530be84 TT |
3624 | s%@host@%$host%g |
3625 | s%@host_alias@%$host_alias%g | |
3626 | s%@host_cpu@%$host_cpu%g | |
3627 | s%@host_vendor@%$host_vendor%g | |
3628 | s%@host_os@%$host_os%g | |
3629 | s%@target@%$target%g | |
3630 | s%@target_alias@%$target_alias%g | |
3631 | s%@target_cpu@%$target_cpu%g | |
3632 | s%@target_vendor@%$target_vendor%g | |
3633 | s%@target_os@%$target_os%g | |
3634 | s%@build@%$build%g | |
3635 | s%@build_alias@%$build_alias%g | |
3636 | s%@build_cpu@%$build_cpu%g | |
3637 | s%@build_vendor@%$build_vendor%g | |
3638 | s%@build_os@%$build_os%g | |
57b74bf9 | 3639 | s%@mkinstalldirs@%$mkinstalldirs%g |
1530be84 TT |
3640 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
3641 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
3642 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
3643 | s%@PACKAGE@%$PACKAGE%g | |
3644 | s%@VERSION@%$VERSION%g | |
3645 | s%@ACLOCAL@%$ACLOCAL%g | |
3646 | s%@AUTOCONF@%$AUTOCONF%g | |
3647 | s%@AUTOMAKE@%$AUTOMAKE%g | |
3648 | s%@AUTOHEADER@%$AUTOHEADER%g | |
3649 | s%@MAKEINFO@%$MAKEINFO%g | |
3650 | s%@SET_MAKE@%$SET_MAKE%g | |
3651 | s%@CC@%$CC%g | |
3652 | s%@CXX@%$CXX%g | |
3653 | s%@AS@%$AS%g | |
3654 | s%@AR@%$AR%g | |
3655 | s%@RANLIB@%$RANLIB%g | |
3656 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | |
3657 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
3658 | s%@MAINT@%$MAINT%g | |
3659 | s%@EXEEXT@%$EXEEXT%g | |
5a2586cf | 3660 | s%@GC_CFLAGS@%$GC_CFLAGS%g |
66deb2be | 3661 | s%@LN_S@%$LN_S%g |
2f7bf5b7 AO |
3662 | s%@OBJEXT@%$OBJEXT%g |
3663 | s%@STRIP@%$STRIP%g | |
115dabb8 | 3664 | s%@LIBTOOL@%$LIBTOOL%g |
2f7bf5b7 | 3665 | s%@CXXCPP@%$CXXCPP%g |
e301621d | 3666 | s%@THREADLIBS@%$THREADLIBS%g |
30c3de1f JS |
3667 | s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g |
3668 | s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g | |
f2beb7ef | 3669 | s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g |
1530be84 | 3670 | s%@target_all@%$target_all%g |
30c3de1f JS |
3671 | s%@CPLUSPLUS_TRUE@%$CPLUSPLUS_TRUE%g |
3672 | s%@CPLUSPLUS_FALSE@%$CPLUSPLUS_FALSE%g | |
1530be84 TT |
3673 | s%@INCLUDES@%$INCLUDES%g |
3674 | s%@CXXINCLUDES@%$CXXINCLUDES%g | |
3675 | s%@addobjs@%$addobjs%g | |
30c3de1f JS |
3676 | s%@addincludes@%$addincludes%g |
3677 | s%@addlibs@%$addlibs%g | |
3678 | s%@addtests@%$addtests%g | |
3679 | s%@CPP@%$CPP%g | |
1530be84 | 3680 | s%@MY_CFLAGS@%$MY_CFLAGS%g |
13b6e5b4 AO |
3681 | s%@toolexecdir@%$toolexecdir%g |
3682 | s%@toolexeclibdir@%$toolexeclibdir%g | |
1530be84 TT |
3683 | |
3684 | CEOF | |
3685 | EOF | |
3686 | ||
3687 | cat >> $CONFIG_STATUS <<\EOF | |
3688 | ||
3689 | # Split the substitutions into bite-sized pieces for seds with | |
3690 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
30c3de1f | 3691 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
1530be84 TT |
3692 | ac_file=1 # Number of current file. |
3693 | ac_beg=1 # First line for current file. | |
3694 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
3695 | ac_more_lines=: | |
3696 | ac_sed_cmds="" | |
3697 | while $ac_more_lines; do | |
3698 | if test $ac_beg -gt 1; then | |
3699 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
3700 | else | |
3701 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
3702 | fi | |
3703 | if test ! -s conftest.s$ac_file; then | |
3704 | ac_more_lines=false | |
3705 | rm -f conftest.s$ac_file | |
3706 | else | |
3707 | if test -z "$ac_sed_cmds"; then | |
3708 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
3709 | else | |
3710 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
3711 | fi | |
3712 | ac_file=`expr $ac_file + 1` | |
3713 | ac_beg=$ac_end | |
3714 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
3715 | fi | |
3716 | done | |
3717 | if test -z "$ac_sed_cmds"; then | |
3718 | ac_sed_cmds=cat | |
3719 | fi | |
3720 | EOF | |
3721 | ||
3722 | cat >> $CONFIG_STATUS <<EOF | |
3723 | ||
1a8a749c | 3724 | CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"} |
1530be84 TT |
3725 | EOF |
3726 | cat >> $CONFIG_STATUS <<\EOF | |
3727 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
3728 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3729 | case "$ac_file" in | |
3730 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
3731 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3732 | *) ac_file_in="${ac_file}.in" ;; | |
3733 | esac | |
3734 | ||
3735 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
3736 | ||
3737 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3738 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3739 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3740 | # The file is in a subdirectory. | |
3741 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3742 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
3743 | # A "../" for each directory in $ac_dir_suffix. | |
3744 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
3745 | else | |
3746 | ac_dir_suffix= ac_dots= | |
3747 | fi | |
3748 | ||
3749 | case "$ac_given_srcdir" in | |
3750 | .) srcdir=. | |
3751 | if test -z "$ac_dots"; then top_srcdir=. | |
3752 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
3753 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
3754 | *) # Relative path. | |
3755 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
3756 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
3757 | esac | |
3758 | ||
3759 | case "$ac_given_INSTALL" in | |
3760 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3761 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3762 | esac | |
3763 | ||
3764 | echo creating "$ac_file" | |
3765 | rm -f "$ac_file" | |
3766 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
3767 | case "$ac_file" in | |
3768 | *Makefile*) ac_comsub="1i\\ | |
3769 | # $configure_input" ;; | |
3770 | *) ac_comsub= ;; | |
3771 | esac | |
3772 | ||
3773 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
3774 | sed -e "$ac_comsub | |
3775 | s%@configure_input@%$configure_input%g | |
3776 | s%@srcdir@%$srcdir%g | |
3777 | s%@top_srcdir@%$top_srcdir%g | |
3778 | s%@INSTALL@%$INSTALL%g | |
3779 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
3780 | fi; done | |
3781 | rm -f conftest.s* | |
3782 | ||
1530be84 TT |
3783 | EOF |
3784 | cat >> $CONFIG_STATUS <<EOF | |
3785 | srcdir=${srcdir} | |
3786 | host=${host} | |
3787 | target=${target} | |
3788 | with_multisubdir=${with_multisubdir} | |
3789 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
3790 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
5a2586cf | 3791 | gc_basedir=${gc_basedir} |
1530be84 | 3792 | CC="${CC}" |
3343fdd2 | 3793 | ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" |
1530be84 | 3794 | DEFS="$DEFS" |
7160c99d | 3795 | INCLUDES="$INCLUDES" |
1530be84 TT |
3796 | |
3797 | EOF | |
3798 | cat >> $CONFIG_STATUS <<\EOF | |
3799 | ||
7160c99d | 3800 | echo "$INCLUDES $DEFS" > boehm-cflags |
1530be84 TT |
3801 | |
3802 | if test -n "$CONFIG_FILES"; then | |
6706f116 | 3803 | LD="${ORIGINAL_LD_FOR_MULTILIBS}" |
5a2586cf | 3804 | ac_file=Makefile . ${gc_basedir}/../config-ml.in |
1530be84 TT |
3805 | fi |
3806 | exit 0 | |
3807 | EOF | |
3808 | chmod +x $CONFIG_STATUS | |
3809 | rm -fr confdefs* $ac_clean_files | |
3810 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
3811 |