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