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