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