]>
Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
653f71ca | 4 | # Generated automatically using autoconf version 2.13 |
f4fbb4a3 | 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
252b5132 RH |
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 | |
15 | --enable-shared[=PKGS] build shared libraries [default=no]" | |
16 | ac_help="$ac_help | |
17 | --enable-static[=PKGS] build static libraries [default=yes]" | |
b2ef150d ILT |
18 | ac_help="$ac_help |
19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
252b5132 RH |
20 | ac_help="$ac_help |
21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
b2ef150d | 22 | ac_help="$ac_help |
a74801ba | 23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
ac48eca1 AO |
24 | ac_help="$ac_help |
25 | --with-pic try to use only PIC/non-PIC objects [default=use both]" | |
252b5132 RH |
26 | ac_help="$ac_help |
27 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)" | |
28 | ac_help="$ac_help | |
29 | --enable-targets alternative target configurations" | |
30 | ac_help="$ac_help | |
31 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library" | |
32 | ac_help="$ac_help | |
33 | --with-mmap try using mmap for BFD input files if available" | |
a2d91340 AC |
34 | ac_help="$ac_help |
35 | --enable-build-warnings Enable build-time compiler warnings if gcc is used" | |
252b5132 RH |
36 | ac_help="$ac_help |
37 | --enable-maintainer-mode enable make rules and dependencies not useful | |
38 | (and sometimes confusing) to the casual installer" | |
39 | ac_help="$ac_help | |
40 | --disable-nls do not use Native Language Support" | |
41 | ac_help="$ac_help | |
42 | --with-included-gettext use the GNU gettext library included here" | |
43 | ||
44 | # Initialize some variables set by options. | |
45 | # The variables have the same names as the options, with | |
46 | # dashes changed to underlines. | |
47 | build=NONE | |
48 | cache_file=./config.cache | |
49 | exec_prefix=NONE | |
50 | host=NONE | |
51 | no_create= | |
52 | nonopt=NONE | |
53 | no_recursion= | |
54 | prefix=NONE | |
55 | program_prefix=NONE | |
56 | program_suffix=NONE | |
57 | program_transform_name=s,x,x, | |
58 | silent= | |
59 | site= | |
60 | srcdir= | |
61 | target=NONE | |
62 | verbose= | |
63 | x_includes=NONE | |
64 | x_libraries=NONE | |
65 | bindir='${exec_prefix}/bin' | |
66 | sbindir='${exec_prefix}/sbin' | |
67 | libexecdir='${exec_prefix}/libexec' | |
68 | datadir='${prefix}/share' | |
69 | sysconfdir='${prefix}/etc' | |
70 | sharedstatedir='${prefix}/com' | |
71 | localstatedir='${prefix}/var' | |
72 | libdir='${exec_prefix}/lib' | |
73 | includedir='${prefix}/include' | |
74 | oldincludedir='/usr/include' | |
75 | infodir='${prefix}/info' | |
76 | mandir='${prefix}/man' | |
77 | ||
78 | # Initialize some other variables. | |
79 | subdirs= | |
80 | MFLAGS= MAKEFLAGS= | |
81 | SHELL=${CONFIG_SHELL-/bin/sh} | |
82 | # Maximum number of lines to put in a shell here document. | |
83 | ac_max_here_lines=12 | |
84 | ||
85 | ac_prev= | |
86 | for ac_option | |
87 | do | |
88 | ||
89 | # If the previous option needs an argument, assign it. | |
90 | if test -n "$ac_prev"; then | |
91 | eval "$ac_prev=\$ac_option" | |
92 | ac_prev= | |
93 | continue | |
94 | fi | |
95 | ||
96 | case "$ac_option" in | |
97 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
98 | *) ac_optarg= ;; | |
99 | esac | |
100 | ||
101 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
102 | ||
103 | case "$ac_option" in | |
104 | ||
105 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
106 | ac_prev=bindir ;; | |
107 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
108 | bindir="$ac_optarg" ;; | |
109 | ||
110 | -build | --build | --buil | --bui | --bu) | |
111 | ac_prev=build ;; | |
112 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
113 | build="$ac_optarg" ;; | |
114 | ||
115 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
116 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
117 | ac_prev=cache_file ;; | |
118 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
119 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
120 | cache_file="$ac_optarg" ;; | |
121 | ||
122 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
123 | ac_prev=datadir ;; | |
124 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
125 | | --da=*) | |
126 | datadir="$ac_optarg" ;; | |
127 | ||
128 | -disable-* | --disable-*) | |
129 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
130 | # Reject names that are not valid shell variable names. | |
131 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
133 | fi | |
134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
135 | eval "enable_${ac_feature}=no" ;; | |
136 | ||
137 | -enable-* | --enable-*) | |
138 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
139 | # Reject names that are not valid shell variable names. | |
140 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
142 | fi | |
143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
144 | case "$ac_option" in | |
145 | *=*) ;; | |
146 | *) ac_optarg=yes ;; | |
147 | esac | |
148 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
149 | ||
150 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
151 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
152 | | --exec | --exe | --ex) | |
153 | ac_prev=exec_prefix ;; | |
154 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
155 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
156 | | --exec=* | --exe=* | --ex=*) | |
157 | exec_prefix="$ac_optarg" ;; | |
158 | ||
159 | -gas | --gas | --ga | --g) | |
160 | # Obsolete; use --with-gas. | |
161 | with_gas=yes ;; | |
162 | ||
163 | -help | --help | --hel | --he) | |
164 | # Omit some internal or obsolete options to make the list less imposing. | |
165 | # This message is too long to be a string in the A/UX 3.1 sh. | |
166 | cat << EOF | |
167 | Usage: configure [options] [host] | |
168 | Options: [defaults in brackets after descriptions] | |
169 | Configuration: | |
170 | --cache-file=FILE cache test results in FILE | |
171 | --help print this message | |
172 | --no-create do not create output files | |
173 | --quiet, --silent do not print \`checking...' messages | |
174 | --version print the version of autoconf that created configure | |
175 | Directory and file names: | |
176 | --prefix=PREFIX install architecture-independent files in PREFIX | |
177 | [$ac_default_prefix] | |
178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
179 | [same as prefix] | |
180 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
181 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
182 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
183 | --datadir=DIR read-only architecture-independent data in DIR | |
184 | [PREFIX/share] | |
185 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
186 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
187 | [PREFIX/com] | |
188 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
189 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
190 | --includedir=DIR C header files in DIR [PREFIX/include] | |
191 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
192 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
193 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
194 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
195 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
196 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
197 | --program-transform-name=PROGRAM | |
198 | run sed PROGRAM on installed program names | |
199 | EOF | |
200 | cat << EOF | |
201 | Host type: | |
202 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
203 | --host=HOST configure for HOST [guessed] | |
204 | --target=TARGET configure for TARGET [TARGET=HOST] | |
205 | Features and packages: | |
206 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
207 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
208 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
209 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
210 | --x-includes=DIR X include files are in DIR | |
211 | --x-libraries=DIR X library files are in DIR | |
212 | EOF | |
213 | if test -n "$ac_help"; then | |
214 | echo "--enable and --with options recognized:$ac_help" | |
215 | fi | |
216 | exit 0 ;; | |
217 | ||
218 | -host | --host | --hos | --ho) | |
219 | ac_prev=host ;; | |
220 | -host=* | --host=* | --hos=* | --ho=*) | |
221 | host="$ac_optarg" ;; | |
222 | ||
223 | -includedir | --includedir | --includedi | --included | --include \ | |
224 | | --includ | --inclu | --incl | --inc) | |
225 | ac_prev=includedir ;; | |
226 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
227 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
228 | includedir="$ac_optarg" ;; | |
229 | ||
230 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
231 | ac_prev=infodir ;; | |
232 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
233 | infodir="$ac_optarg" ;; | |
234 | ||
235 | -libdir | --libdir | --libdi | --libd) | |
236 | ac_prev=libdir ;; | |
237 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
238 | libdir="$ac_optarg" ;; | |
239 | ||
240 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
241 | | --libexe | --libex | --libe) | |
242 | ac_prev=libexecdir ;; | |
243 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
244 | | --libexe=* | --libex=* | --libe=*) | |
245 | libexecdir="$ac_optarg" ;; | |
246 | ||
247 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
248 | | --localstate | --localstat | --localsta | --localst \ | |
249 | | --locals | --local | --loca | --loc | --lo) | |
250 | ac_prev=localstatedir ;; | |
251 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
252 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
253 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
254 | localstatedir="$ac_optarg" ;; | |
255 | ||
256 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
257 | ac_prev=mandir ;; | |
258 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
259 | mandir="$ac_optarg" ;; | |
260 | ||
261 | -nfp | --nfp | --nf) | |
262 | # Obsolete; use --without-fp. | |
263 | with_fp=no ;; | |
264 | ||
265 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
266 | | --no-cr | --no-c) | |
267 | no_create=yes ;; | |
268 | ||
269 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
270 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
271 | no_recursion=yes ;; | |
272 | ||
273 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
274 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
275 | | --oldin | --oldi | --old | --ol | --o) | |
276 | ac_prev=oldincludedir ;; | |
277 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
278 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
279 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
280 | oldincludedir="$ac_optarg" ;; | |
281 | ||
282 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
283 | ac_prev=prefix ;; | |
284 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
285 | prefix="$ac_optarg" ;; | |
286 | ||
287 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
288 | | --program-pre | --program-pr | --program-p) | |
289 | ac_prev=program_prefix ;; | |
290 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
291 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
292 | program_prefix="$ac_optarg" ;; | |
293 | ||
294 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
295 | | --program-suf | --program-su | --program-s) | |
296 | ac_prev=program_suffix ;; | |
297 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
298 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
299 | program_suffix="$ac_optarg" ;; | |
300 | ||
301 | -program-transform-name | --program-transform-name \ | |
302 | | --program-transform-nam | --program-transform-na \ | |
303 | | --program-transform-n | --program-transform- \ | |
304 | | --program-transform | --program-transfor \ | |
305 | | --program-transfo | --program-transf \ | |
306 | | --program-trans | --program-tran \ | |
307 | | --progr-tra | --program-tr | --program-t) | |
308 | ac_prev=program_transform_name ;; | |
309 | -program-transform-name=* | --program-transform-name=* \ | |
310 | | --program-transform-nam=* | --program-transform-na=* \ | |
311 | | --program-transform-n=* | --program-transform-=* \ | |
312 | | --program-transform=* | --program-transfor=* \ | |
313 | | --program-transfo=* | --program-transf=* \ | |
314 | | --program-trans=* | --program-tran=* \ | |
315 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
316 | program_transform_name="$ac_optarg" ;; | |
317 | ||
318 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
319 | | -silent | --silent | --silen | --sile | --sil) | |
320 | silent=yes ;; | |
321 | ||
322 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
323 | ac_prev=sbindir ;; | |
324 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
325 | | --sbi=* | --sb=*) | |
326 | sbindir="$ac_optarg" ;; | |
327 | ||
328 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
329 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
330 | | --sharedst | --shareds | --shared | --share | --shar \ | |
331 | | --sha | --sh) | |
332 | ac_prev=sharedstatedir ;; | |
333 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
334 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
335 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
336 | | --sha=* | --sh=*) | |
337 | sharedstatedir="$ac_optarg" ;; | |
338 | ||
339 | -site | --site | --sit) | |
340 | ac_prev=site ;; | |
341 | -site=* | --site=* | --sit=*) | |
342 | site="$ac_optarg" ;; | |
343 | ||
344 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
345 | ac_prev=srcdir ;; | |
346 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
347 | srcdir="$ac_optarg" ;; | |
348 | ||
349 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
350 | | --syscon | --sysco | --sysc | --sys | --sy) | |
351 | ac_prev=sysconfdir ;; | |
352 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
353 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
354 | sysconfdir="$ac_optarg" ;; | |
355 | ||
356 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
357 | ac_prev=target ;; | |
358 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
359 | target="$ac_optarg" ;; | |
360 | ||
361 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
362 | verbose=yes ;; | |
363 | ||
364 | -version | --version | --versio | --versi | --vers) | |
653f71ca | 365 | echo "configure generated by autoconf version 2.13" |
252b5132 RH |
366 | exit 0 ;; |
367 | ||
368 | -with-* | --with-*) | |
369 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
370 | # Reject names that are not valid shell variable names. | |
371 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
373 | fi | |
374 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
375 | case "$ac_option" in | |
376 | *=*) ;; | |
377 | *) ac_optarg=yes ;; | |
378 | esac | |
379 | eval "with_${ac_package}='$ac_optarg'" ;; | |
380 | ||
381 | -without-* | --without-*) | |
382 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
383 | # Reject names that are not valid shell variable names. | |
384 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
385 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
386 | fi | |
387 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
388 | eval "with_${ac_package}=no" ;; | |
389 | ||
390 | --x) | |
391 | # Obsolete; use --with-x. | |
392 | with_x=yes ;; | |
393 | ||
394 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
395 | | --x-incl | --x-inc | --x-in | --x-i) | |
396 | ac_prev=x_includes ;; | |
397 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
398 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
399 | x_includes="$ac_optarg" ;; | |
400 | ||
401 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
402 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
403 | ac_prev=x_libraries ;; | |
404 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
405 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
406 | x_libraries="$ac_optarg" ;; | |
407 | ||
408 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
409 | ;; | |
410 | ||
411 | *) | |
412 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
413 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
414 | fi | |
415 | if test "x$nonopt" != xNONE; then | |
416 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
417 | fi | |
418 | nonopt="$ac_option" | |
419 | ;; | |
420 | ||
421 | esac | |
422 | done | |
423 | ||
424 | if test -n "$ac_prev"; then | |
425 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
426 | fi | |
427 | ||
428 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
429 | ||
430 | # File descriptor usage: | |
431 | # 0 standard input | |
432 | # 1 file creation | |
433 | # 2 errors and warnings | |
434 | # 3 some systems may open it to /dev/tty | |
435 | # 4 used on the Kubota Titan | |
436 | # 6 checking for... messages and results | |
437 | # 5 compiler messages saved in config.log | |
438 | if test "$silent" = yes; then | |
439 | exec 6>/dev/null | |
440 | else | |
441 | exec 6>&1 | |
442 | fi | |
443 | exec 5>./config.log | |
444 | ||
445 | echo "\ | |
446 | This file contains any messages produced by compilers while | |
447 | running configure, to aid debugging if configure makes a mistake. | |
448 | " 1>&5 | |
449 | ||
450 | # Strip out --no-create and --no-recursion so they do not pile up. | |
451 | # Also quote any args containing shell metacharacters. | |
452 | ac_configure_args= | |
453 | for ac_arg | |
454 | do | |
455 | case "$ac_arg" in | |
456 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
457 | | --no-cr | --no-c) ;; | |
458 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
459 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
460 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
461 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
462 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
463 | esac | |
464 | done | |
465 | ||
466 | # NLS nuisances. | |
467 | # Only set these to C if already set. These must not be set unconditionally | |
468 | # because not all systems understand e.g. LANG=C (notably SCO). | |
469 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
470 | # Non-C LC_CTYPE values break the ctype check. | |
471 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
472 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
473 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
474 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
475 | ||
476 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
477 | rm -rf conftest* confdefs.h | |
478 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
479 | echo > confdefs.h | |
480 | ||
481 | # A filename unique to this package, relative to the directory that | |
482 | # configure is in, which we can look for to find out if srcdir is correct. | |
483 | ac_unique_file=libbfd.c | |
484 | ||
485 | # Find the source files, if location was not specified. | |
486 | if test -z "$srcdir"; then | |
487 | ac_srcdir_defaulted=yes | |
488 | # Try the directory containing this script, then its parent. | |
489 | ac_prog=$0 | |
490 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
491 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
492 | srcdir=$ac_confdir | |
493 | if test ! -r $srcdir/$ac_unique_file; then | |
494 | srcdir=.. | |
495 | fi | |
496 | else | |
497 | ac_srcdir_defaulted=no | |
498 | fi | |
499 | if test ! -r $srcdir/$ac_unique_file; then | |
500 | if test "$ac_srcdir_defaulted" = yes; then | |
501 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
502 | else | |
503 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
504 | fi | |
505 | fi | |
506 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
507 | ||
508 | # Prefer explicitly selected file to automatically selected ones. | |
fdbafa10 L |
509 | if test -z "$CONFIG_SITE"; then |
510 | if test "x$prefix" != xNONE; then | |
511 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
512 | else | |
513 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
252b5132 RH |
514 | fi |
515 | fi | |
516 | for ac_site_file in $CONFIG_SITE; do | |
517 | if test -r "$ac_site_file"; then | |
518 | echo "loading site script $ac_site_file" | |
519 | . "$ac_site_file" | |
520 | fi | |
521 | done | |
522 | ||
523 | if test -r "$cache_file"; then | |
524 | echo "loading cache $cache_file" | |
653f71ca | 525 | . $cache_file |
252b5132 RH |
526 | else |
527 | echo "creating cache $cache_file" | |
528 | > $cache_file | |
529 | fi | |
530 | ||
531 | ac_ext=c | |
532 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
533 | ac_cpp='$CPP $CPPFLAGS' | |
534 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
535 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
536 | cross_compiling=$ac_cv_prog_cc_cross | |
537 | ||
538 | ac_exeext= | |
539 | ac_objext=o | |
540 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
541 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
542 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
543 | ac_n= ac_c=' | |
544 | ' ac_t=' ' | |
545 | else | |
546 | ac_n=-n ac_c= ac_t= | |
547 | fi | |
548 | else | |
549 | ac_n= ac_c='\c' ac_t= | |
550 | fi | |
551 | ||
ac48eca1 | 552 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
fdbafa10 | 553 | echo "configure:554: checking for Cygwin environment" >&5 |
ac48eca1 AO |
554 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
556 | else | |
557 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 558 | #line 559 "configure" |
ac48eca1 AO |
559 | #include "confdefs.h" |
560 | ||
561 | int main() { | |
562 | ||
563 | #ifndef __CYGWIN__ | |
564 | #define __CYGWIN__ __CYGWIN32__ | |
565 | #endif | |
566 | return __CYGWIN__; | |
567 | ; return 0; } | |
568 | EOF | |
fdbafa10 | 569 | if { (eval echo configure:570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac48eca1 AO |
570 | rm -rf conftest* |
571 | ac_cv_cygwin=yes | |
572 | else | |
573 | echo "configure: failed program was:" >&5 | |
574 | cat conftest.$ac_ext >&5 | |
575 | rm -rf conftest* | |
576 | ac_cv_cygwin=no | |
577 | fi | |
578 | rm -f conftest* | |
579 | rm -f conftest* | |
580 | fi | |
581 | ||
582 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
583 | CYGWIN= | |
584 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
585 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
fdbafa10 | 586 | echo "configure:587: checking for mingw32 environment" >&5 |
ac48eca1 AO |
587 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
589 | else | |
590 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 591 | #line 592 "configure" |
ac48eca1 AO |
592 | #include "confdefs.h" |
593 | ||
594 | int main() { | |
595 | return __MINGW32__; | |
596 | ; return 0; } | |
597 | EOF | |
fdbafa10 | 598 | if { (eval echo configure:599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac48eca1 AO |
599 | rm -rf conftest* |
600 | ac_cv_mingw32=yes | |
601 | else | |
602 | echo "configure: failed program was:" >&5 | |
603 | cat conftest.$ac_ext >&5 | |
604 | rm -rf conftest* | |
605 | ac_cv_mingw32=no | |
606 | fi | |
607 | rm -f conftest* | |
608 | rm -f conftest* | |
609 | fi | |
610 | ||
611 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
612 | MINGW32= | |
613 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
252b5132 RH |
614 | |
615 | ||
616 | ac_aux_dir= | |
617 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
618 | if test -f $ac_dir/install-sh; then | |
619 | ac_aux_dir=$ac_dir | |
620 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
621 | break | |
622 | elif test -f $ac_dir/install.sh; then | |
623 | ac_aux_dir=$ac_dir | |
624 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
625 | break | |
626 | fi | |
627 | done | |
628 | if test -z "$ac_aux_dir"; then | |
629 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
630 | fi | |
653f71ca KB |
631 | ac_config_guess=$ac_aux_dir/config.guess |
632 | ac_config_sub=$ac_aux_dir/config.sub | |
633 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
252b5132 RH |
634 | |
635 | ||
636 | # Do some error checking and defaulting for the host and target type. | |
637 | # The inputs are: | |
638 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
639 | # | |
640 | # The rules are: | |
641 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
642 | # same time. | |
643 | # 2. Host defaults to nonopt. | |
644 | # 3. If nonopt is not specified, then host defaults to the current host, | |
645 | # as determined by config.guess. | |
646 | # 4. Target and build default to nonopt. | |
647 | # 5. If nonopt is not specified, then target and build default to host. | |
648 | ||
649 | # The aliases save the names the user supplied, while $host etc. | |
650 | # will get canonicalized. | |
651 | case $host---$target---$nonopt in | |
652 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
653 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
654 | esac | |
655 | ||
653f71ca KB |
656 | |
657 | # Make sure we can run config.sub. | |
658 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
659 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
660 | fi | |
661 | ||
662 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
fdbafa10 | 663 | echo "configure:664: checking host system type" >&5 |
653f71ca KB |
664 | |
665 | host_alias=$host | |
666 | case "$host_alias" in | |
667 | NONE) | |
668 | case $nonopt in | |
669 | NONE) | |
670 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
671 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
672 | fi ;; | |
673 | *) host_alias=$nonopt ;; | |
674 | esac ;; | |
675 | esac | |
676 | ||
677 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
678 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
679 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
680 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
681 | echo "$ac_t""$host" 1>&6 | |
682 | ||
683 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
fdbafa10 | 684 | echo "configure:685: checking target system type" >&5 |
653f71ca KB |
685 | |
686 | target_alias=$target | |
687 | case "$target_alias" in | |
688 | NONE) | |
689 | case $nonopt in | |
690 | NONE) target_alias=$host_alias ;; | |
691 | *) target_alias=$nonopt ;; | |
692 | esac ;; | |
693 | esac | |
694 | ||
695 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
696 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
697 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
698 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
699 | echo "$ac_t""$target" 1>&6 | |
700 | ||
701 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
fdbafa10 | 702 | echo "configure:703: checking build system type" >&5 |
653f71ca KB |
703 | |
704 | build_alias=$build | |
705 | case "$build_alias" in | |
706 | NONE) | |
707 | case $nonopt in | |
708 | NONE) build_alias=$host_alias ;; | |
709 | *) build_alias=$nonopt ;; | |
710 | esac ;; | |
711 | esac | |
712 | ||
713 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
714 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
715 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
716 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
717 | echo "$ac_t""$build" 1>&6 | |
718 | ||
252b5132 RH |
719 | test "$host_alias" != "$target_alias" && |
720 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
721 | NONENONEs,x,x, && | |
722 | program_prefix=${target_alias}- | |
723 | ||
252b5132 | 724 | |
8d88c4ca | 725 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
fdbafa10 | 726 | echo "configure:727: checking for strerror in -lcposix" >&5 |
8d88c4ca NC |
727 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
728 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
252b5132 RH |
729 | echo $ac_n "(cached) $ac_c" 1>&6 |
730 | else | |
8d88c4ca NC |
731 | ac_save_LIBS="$LIBS" |
732 | LIBS="-lcposix $LIBS" | |
733 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 734 | #line 735 "configure" |
252b5132 | 735 | #include "confdefs.h" |
8d88c4ca NC |
736 | /* Override any gcc2 internal prototype to avoid an error. */ |
737 | /* We use char because int might match the return type of a gcc2 | |
738 | builtin and then its argument prototype would still apply. */ | |
739 | char strerror(); | |
252b5132 | 740 | |
8d88c4ca NC |
741 | int main() { |
742 | strerror() | |
743 | ; return 0; } | |
252b5132 | 744 | EOF |
fdbafa10 | 745 | if { (eval echo configure:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8d88c4ca NC |
746 | rm -rf conftest* |
747 | eval "ac_cv_lib_$ac_lib_var=yes" | |
252b5132 RH |
748 | else |
749 | echo "configure: failed program was:" >&5 | |
750 | cat conftest.$ac_ext >&5 | |
8d88c4ca NC |
751 | rm -rf conftest* |
752 | eval "ac_cv_lib_$ac_lib_var=no" | |
252b5132 RH |
753 | fi |
754 | rm -f conftest* | |
8d88c4ca | 755 | LIBS="$ac_save_LIBS" |
252b5132 RH |
756 | |
757 | fi | |
8d88c4ca | 758 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
252b5132 | 759 | echo "$ac_t""yes" 1>&6 |
8d88c4ca | 760 | LIBS="$LIBS -lcposix" |
252b5132 RH |
761 | else |
762 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
763 | fi |
764 | ||
8d88c4ca NC |
765 | |
766 | ||
252b5132 RH |
767 | |
768 | # Find a good install program. We prefer a C program (faster), | |
769 | # so one script is as good as another. But avoid the broken or | |
770 | # incompatible versions: | |
771 | # SysV /etc/install, /usr/sbin/install | |
772 | # SunOS /usr/etc/install | |
773 | # IRIX /sbin/install | |
774 | # AIX /bin/install | |
775 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
776 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
777 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
778 | # ./install, which can be erroneously created by make from ./install.sh. | |
779 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
fdbafa10 | 780 | echo "configure:781: checking for a BSD compatible install" >&5 |
252b5132 | 781 | if test -z "$INSTALL"; then |
653f71ca | 782 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
252b5132 RH |
783 | echo $ac_n "(cached) $ac_c" 1>&6 |
784 | else | |
785 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
786 | for ac_dir in $PATH; do | |
787 | # Account for people who put trailing slashes in PATH elements. | |
788 | case "$ac_dir/" in | |
789 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
790 | *) | |
791 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
792 | # Don't use installbsd from OSF since it installs stuff as root | |
793 | # by default. | |
794 | for ac_prog in ginstall scoinst install; do | |
795 | if test -f $ac_dir/$ac_prog; then | |
796 | if test $ac_prog = install && | |
797 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
798 | # AIX install. It has an incompatible calling convention. | |
799 | : | |
800 | else | |
801 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
802 | break 2 | |
803 | fi | |
804 | fi | |
805 | done | |
806 | ;; | |
807 | esac | |
808 | done | |
809 | IFS="$ac_save_IFS" | |
810 | ||
811 | fi | |
812 | if test "${ac_cv_path_install+set}" = set; then | |
813 | INSTALL="$ac_cv_path_install" | |
814 | else | |
815 | # As a last resort, use the slow shell script. We don't cache a | |
816 | # path for INSTALL within a source directory, because that will | |
817 | # break other packages using the cache if that directory is | |
818 | # removed, or if the path is relative. | |
819 | INSTALL="$ac_install_sh" | |
820 | fi | |
821 | fi | |
822 | echo "$ac_t""$INSTALL" 1>&6 | |
823 | ||
824 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
825 | # It thinks the first close brace ends the variable substitution. | |
826 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
827 | ||
653f71ca | 828 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
252b5132 RH |
829 | |
830 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
831 | ||
832 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
fdbafa10 | 833 | echo "configure:834: checking whether build environment is sane" >&5 |
252b5132 RH |
834 | # Just in case |
835 | sleep 1 | |
836 | echo timestamp > conftestfile | |
837 | # Do `set' in a subshell so we don't clobber the current shell's | |
838 | # arguments. Must try -L first in case configure is actually a | |
839 | # symlink; some systems play weird games with the mod time of symlinks | |
840 | # (eg FreeBSD returns the mod time of the symlink's containing | |
841 | # directory). | |
842 | if ( | |
843 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
844 | if test "$*" = "X"; then | |
845 | # -L didn't work. | |
846 | set X `ls -t $srcdir/configure conftestfile` | |
847 | fi | |
848 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
849 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
850 | ||
851 | # If neither matched, then we have a broken ls. This can happen | |
852 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
853 | # broken ls alias from the environment. This has actually | |
854 | # happened. Such a system could not be considered "sane". | |
855 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
856 | alias in your environment" 1>&2; exit 1; } | |
857 | fi | |
858 | ||
859 | test "$2" = conftestfile | |
860 | ) | |
861 | then | |
862 | # Ok. | |
863 | : | |
864 | else | |
865 | { echo "configure: error: newly created file is older than distributed files! | |
866 | Check your system clock" 1>&2; exit 1; } | |
867 | fi | |
868 | rm -f conftest* | |
869 | echo "$ac_t""yes" 1>&6 | |
870 | if test "$program_transform_name" = s,x,x,; then | |
871 | program_transform_name= | |
872 | else | |
873 | # Double any \ or $. echo might interpret backslashes. | |
874 | cat <<\EOF_SED > conftestsed | |
875 | s,\\,\\\\,g; s,\$,$$,g | |
876 | EOF_SED | |
877 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
878 | rm -f conftestsed | |
879 | fi | |
880 | test "$program_prefix" != NONE && | |
653f71ca | 881 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
252b5132 RH |
882 | # Use a double $ so make ignores it. |
883 | test "$program_suffix" != NONE && | |
653f71ca | 884 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
252b5132 RH |
885 | |
886 | # sed with no file args requires a program. | |
887 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
888 | ||
889 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
fdbafa10 | 890 | echo "configure:891: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
252b5132 | 891 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
653f71ca | 892 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
252b5132 RH |
893 | echo $ac_n "(cached) $ac_c" 1>&6 |
894 | else | |
895 | cat > conftestmake <<\EOF | |
896 | all: | |
897 | @echo 'ac_maketemp="${MAKE}"' | |
898 | EOF | |
899 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
900 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
901 | if test -n "$ac_maketemp"; then | |
902 | eval ac_cv_prog_make_${ac_make}_set=yes | |
903 | else | |
904 | eval ac_cv_prog_make_${ac_make}_set=no | |
905 | fi | |
906 | rm -f conftestmake | |
907 | fi | |
908 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
909 | echo "$ac_t""yes" 1>&6 | |
910 | SET_MAKE= | |
911 | else | |
912 | echo "$ac_t""no" 1>&6 | |
913 | SET_MAKE="MAKE=${MAKE-make}" | |
914 | fi | |
915 | ||
916 | ||
917 | PACKAGE=bfd | |
918 | ||
27b7e12d | 919 | VERSION=2.11.90 |
252b5132 RH |
920 | |
921 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
922 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
923 | fi | |
924 | cat >> confdefs.h <<EOF | |
925 | #define PACKAGE "$PACKAGE" | |
926 | EOF | |
927 | ||
928 | cat >> confdefs.h <<EOF | |
929 | #define VERSION "$VERSION" | |
930 | EOF | |
931 | ||
932 | ||
933 | ||
934 | missing_dir=`cd $ac_aux_dir && pwd` | |
935 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
fdbafa10 | 936 | echo "configure:937: checking for working aclocal" >&5 |
252b5132 RH |
937 | # Run test in a subshell; some versions of sh will print an error if |
938 | # an executable is not found, even if stderr is redirected. | |
939 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
940 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
941 | ACLOCAL=aclocal | |
942 | echo "$ac_t""found" 1>&6 | |
943 | else | |
944 | ACLOCAL="$missing_dir/missing aclocal" | |
945 | echo "$ac_t""missing" 1>&6 | |
946 | fi | |
947 | ||
948 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
fdbafa10 | 949 | echo "configure:950: checking for working autoconf" >&5 |
252b5132 RH |
950 | # Run test in a subshell; some versions of sh will print an error if |
951 | # an executable is not found, even if stderr is redirected. | |
952 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
953 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
954 | AUTOCONF=autoconf | |
955 | echo "$ac_t""found" 1>&6 | |
956 | else | |
957 | AUTOCONF="$missing_dir/missing autoconf" | |
958 | echo "$ac_t""missing" 1>&6 | |
959 | fi | |
960 | ||
961 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
fdbafa10 | 962 | echo "configure:963: checking for working automake" >&5 |
252b5132 RH |
963 | # Run test in a subshell; some versions of sh will print an error if |
964 | # an executable is not found, even if stderr is redirected. | |
965 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
966 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
967 | AUTOMAKE=automake | |
968 | echo "$ac_t""found" 1>&6 | |
969 | else | |
970 | AUTOMAKE="$missing_dir/missing automake" | |
971 | echo "$ac_t""missing" 1>&6 | |
972 | fi | |
973 | ||
974 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
fdbafa10 | 975 | echo "configure:976: checking for working autoheader" >&5 |
252b5132 RH |
976 | # Run test in a subshell; some versions of sh will print an error if |
977 | # an executable is not found, even if stderr is redirected. | |
978 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
979 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
980 | AUTOHEADER=autoheader | |
981 | echo "$ac_t""found" 1>&6 | |
982 | else | |
983 | AUTOHEADER="$missing_dir/missing autoheader" | |
984 | echo "$ac_t""missing" 1>&6 | |
985 | fi | |
986 | ||
987 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
fdbafa10 | 988 | echo "configure:989: checking for working makeinfo" >&5 |
252b5132 RH |
989 | # Run test in a subshell; some versions of sh will print an error if |
990 | # an executable is not found, even if stderr is redirected. | |
991 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
992 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
993 | MAKEINFO=makeinfo | |
994 | echo "$ac_t""found" 1>&6 | |
995 | else | |
996 | MAKEINFO="$missing_dir/missing makeinfo" | |
997 | echo "$ac_t""missing" 1>&6 | |
998 | fi | |
999 | ||
1000 | ||
1001 | ||
1002 | if test $host != $build; then | |
1003 | ac_tool_prefix=${host_alias}- | |
1004 | else | |
1005 | ac_tool_prefix= | |
1006 | fi | |
1007 | ||
1008 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1009 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
1010 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 1011 | echo "configure:1012: checking for $ac_word" >&5 |
653f71ca | 1012 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
252b5132 RH |
1013 | echo $ac_n "(cached) $ac_c" 1>&6 |
1014 | else | |
1015 | if test -n "$AR"; then | |
1016 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1017 | else | |
1018 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1019 | ac_dummy="$PATH" | |
1020 | for ac_dir in $ac_dummy; do | |
1021 | test -z "$ac_dir" && ac_dir=. | |
1022 | if test -f $ac_dir/$ac_word; then | |
1023 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1024 | break | |
1025 | fi | |
1026 | done | |
1027 | IFS="$ac_save_ifs" | |
1028 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1029 | fi | |
1030 | fi | |
1031 | AR="$ac_cv_prog_AR" | |
1032 | if test -n "$AR"; then | |
1033 | echo "$ac_t""$AR" 1>&6 | |
1034 | else | |
1035 | echo "$ac_t""no" 1>&6 | |
1036 | fi | |
1037 | ||
1038 | ||
1039 | ||
1040 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1041 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1042 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 1043 | echo "configure:1044: checking for $ac_word" >&5 |
653f71ca | 1044 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
252b5132 RH |
1045 | echo $ac_n "(cached) $ac_c" 1>&6 |
1046 | else | |
1047 | if test -n "$RANLIB"; then | |
1048 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1049 | else | |
1050 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1051 | ac_dummy="$PATH" | |
1052 | for ac_dir in $ac_dummy; do | |
1053 | test -z "$ac_dir" && ac_dir=. | |
1054 | if test -f $ac_dir/$ac_word; then | |
1055 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1056 | break | |
1057 | fi | |
1058 | done | |
1059 | IFS="$ac_save_ifs" | |
1060 | fi | |
1061 | fi | |
1062 | RANLIB="$ac_cv_prog_RANLIB" | |
1063 | if test -n "$RANLIB"; then | |
1064 | echo "$ac_t""$RANLIB" 1>&6 | |
1065 | else | |
1066 | echo "$ac_t""no" 1>&6 | |
1067 | fi | |
1068 | ||
1069 | ||
1070 | if test -z "$ac_cv_prog_RANLIB"; then | |
1071 | if test -n "$ac_tool_prefix"; then | |
1072 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1073 | set dummy ranlib; ac_word=$2 | |
1074 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 1075 | echo "configure:1076: checking for $ac_word" >&5 |
653f71ca | 1076 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
252b5132 RH |
1077 | echo $ac_n "(cached) $ac_c" 1>&6 |
1078 | else | |
1079 | if test -n "$RANLIB"; then | |
1080 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1081 | else | |
1082 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1083 | ac_dummy="$PATH" | |
1084 | for ac_dir in $ac_dummy; do | |
1085 | test -z "$ac_dir" && ac_dir=. | |
1086 | if test -f $ac_dir/$ac_word; then | |
1087 | ac_cv_prog_RANLIB="ranlib" | |
1088 | break | |
1089 | fi | |
1090 | done | |
1091 | IFS="$ac_save_ifs" | |
1092 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1093 | fi | |
1094 | fi | |
1095 | RANLIB="$ac_cv_prog_RANLIB" | |
1096 | if test -n "$RANLIB"; then | |
1097 | echo "$ac_t""$RANLIB" 1>&6 | |
1098 | else | |
1099 | echo "$ac_t""no" 1>&6 | |
1100 | fi | |
1101 | ||
1102 | else | |
1103 | RANLIB=":" | |
1104 | fi | |
1105 | fi | |
1106 | ||
1107 | ||
1108 | # Check whether --enable-shared or --disable-shared was given. | |
1109 | if test "${enable_shared+set}" = set; then | |
1110 | enableval="$enable_shared" | |
1111 | p=${PACKAGE-default} | |
55c80943 | 1112 | case $enableval in |
252b5132 RH |
1113 | yes) enable_shared=yes ;; |
1114 | no) enable_shared=no ;; | |
1115 | *) | |
1116 | enable_shared=no | |
1117 | # Look at the argument we got. We use all the common list separators. | |
1118 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1119 | for pkg in $enableval; do | |
1120 | if test "X$pkg" = "X$p"; then | |
1121 | enable_shared=yes | |
1122 | fi | |
1123 | done | |
1124 | IFS="$ac_save_ifs" | |
1125 | ;; | |
1126 | esac | |
1127 | else | |
1128 | enable_shared=no | |
1129 | fi | |
1130 | ||
1131 | ||
1132 | # Check whether --enable-static or --disable-static was given. | |
1133 | if test "${enable_static+set}" = set; then | |
1134 | enableval="$enable_static" | |
1135 | p=${PACKAGE-default} | |
55c80943 | 1136 | case $enableval in |
252b5132 RH |
1137 | yes) enable_static=yes ;; |
1138 | no) enable_static=no ;; | |
1139 | *) | |
1140 | enable_static=no | |
1141 | # Look at the argument we got. We use all the common list separators. | |
1142 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1143 | for pkg in $enableval; do | |
1144 | if test "X$pkg" = "X$p"; then | |
1145 | enable_static=yes | |
1146 | fi | |
1147 | done | |
1148 | IFS="$ac_save_ifs" | |
1149 | ;; | |
1150 | esac | |
1151 | else | |
1152 | enable_static=yes | |
1153 | fi | |
1154 | ||
b2ef150d ILT |
1155 | # Check whether --enable-fast-install or --disable-fast-install was given. |
1156 | if test "${enable_fast_install+set}" = set; then | |
1157 | enableval="$enable_fast_install" | |
1158 | p=${PACKAGE-default} | |
55c80943 | 1159 | case $enableval in |
b2ef150d ILT |
1160 | yes) enable_fast_install=yes ;; |
1161 | no) enable_fast_install=no ;; | |
1162 | *) | |
1163 | enable_fast_install=no | |
1164 | # Look at the argument we got. We use all the common list separators. | |
1165 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1166 | for pkg in $enableval; do | |
1167 | if test "X$pkg" = "X$p"; then | |
1168 | enable_fast_install=yes | |
1169 | fi | |
1170 | done | |
1171 | IFS="$ac_save_ifs" | |
1172 | ;; | |
1173 | esac | |
1174 | else | |
1175 | enable_fast_install=yes | |
1176 | fi | |
1177 | ||
8d88c4ca NC |
1178 | # Extract the first word of "gcc", so it can be a program name with args. |
1179 | set dummy gcc; ac_word=$2 | |
1180 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 1181 | echo "configure:1182: checking for $ac_word" >&5 |
8d88c4ca NC |
1182 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1184 | else | |
1185 | if test -n "$CC"; then | |
1186 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1187 | else | |
1188 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1189 | ac_dummy="$PATH" | |
1190 | for ac_dir in $ac_dummy; do | |
1191 | test -z "$ac_dir" && ac_dir=. | |
1192 | if test -f $ac_dir/$ac_word; then | |
1193 | ac_cv_prog_CC="gcc" | |
1194 | break | |
1195 | fi | |
1196 | done | |
1197 | IFS="$ac_save_ifs" | |
1198 | fi | |
1199 | fi | |
1200 | CC="$ac_cv_prog_CC" | |
1201 | if test -n "$CC"; then | |
1202 | echo "$ac_t""$CC" 1>&6 | |
1203 | else | |
1204 | echo "$ac_t""no" 1>&6 | |
1205 | fi | |
1206 | ||
1207 | if test -z "$CC"; then | |
1208 | # Extract the first word of "cc", so it can be a program name with args. | |
1209 | set dummy cc; ac_word=$2 | |
1210 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 1211 | echo "configure:1212: checking for $ac_word" >&5 |
8d88c4ca NC |
1212 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1214 | else | |
1215 | if test -n "$CC"; then | |
1216 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1217 | else | |
1218 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1219 | ac_prog_rejected=no | |
1220 | ac_dummy="$PATH" | |
1221 | for ac_dir in $ac_dummy; do | |
1222 | test -z "$ac_dir" && ac_dir=. | |
1223 | if test -f $ac_dir/$ac_word; then | |
1224 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1225 | ac_prog_rejected=yes | |
1226 | continue | |
1227 | fi | |
1228 | ac_cv_prog_CC="cc" | |
1229 | break | |
1230 | fi | |
1231 | done | |
1232 | IFS="$ac_save_ifs" | |
1233 | if test $ac_prog_rejected = yes; then | |
1234 | # We found a bogon in the path, so make sure we never use it. | |
1235 | set dummy $ac_cv_prog_CC | |
1236 | shift | |
1237 | if test $# -gt 0; then | |
1238 | # We chose a different compiler from the bogus one. | |
1239 | # However, it has the same basename, so the bogon will be chosen | |
1240 | # first if we set CC to just the basename; use the full file name. | |
1241 | shift | |
1242 | set dummy "$ac_dir/$ac_word" "$@" | |
1243 | shift | |
1244 | ac_cv_prog_CC="$@" | |
1245 | fi | |
1246 | fi | |
1247 | fi | |
1248 | fi | |
1249 | CC="$ac_cv_prog_CC" | |
1250 | if test -n "$CC"; then | |
1251 | echo "$ac_t""$CC" 1>&6 | |
1252 | else | |
1253 | echo "$ac_t""no" 1>&6 | |
1254 | fi | |
1255 | ||
1256 | if test -z "$CC"; then | |
1257 | case "`uname -s`" in | |
1258 | *win32* | *WIN32*) | |
1259 | # Extract the first word of "cl", so it can be a program name with args. | |
1260 | set dummy cl; ac_word=$2 | |
1261 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 1262 | echo "configure:1263: checking for $ac_word" >&5 |
8d88c4ca NC |
1263 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1265 | else | |
1266 | if test -n "$CC"; then | |
1267 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1268 | else | |
1269 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1270 | ac_dummy="$PATH" | |
1271 | for ac_dir in $ac_dummy; do | |
1272 | test -z "$ac_dir" && ac_dir=. | |
1273 | if test -f $ac_dir/$ac_word; then | |
1274 | ac_cv_prog_CC="cl" | |
1275 | break | |
1276 | fi | |
1277 | done | |
1278 | IFS="$ac_save_ifs" | |
1279 | fi | |
1280 | fi | |
1281 | CC="$ac_cv_prog_CC" | |
1282 | if test -n "$CC"; then | |
1283 | echo "$ac_t""$CC" 1>&6 | |
1284 | else | |
1285 | echo "$ac_t""no" 1>&6 | |
1286 | fi | |
1287 | ;; | |
1288 | esac | |
1289 | fi | |
1290 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1291 | fi | |
1292 | ||
1293 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
fdbafa10 | 1294 | echo "configure:1295: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
8d88c4ca NC |
1295 | |
1296 | ac_ext=c | |
1297 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1298 | ac_cpp='$CPP $CPPFLAGS' | |
1299 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1300 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1301 | cross_compiling=$ac_cv_prog_cc_cross | |
1302 | ||
1303 | cat > conftest.$ac_ext << EOF | |
1304 | ||
fdbafa10 | 1305 | #line 1306 "configure" |
8d88c4ca NC |
1306 | #include "confdefs.h" |
1307 | ||
1308 | main(){return(0);} | |
1309 | EOF | |
fdbafa10 | 1310 | if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8d88c4ca NC |
1311 | ac_cv_prog_cc_works=yes |
1312 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1313 | if (./conftest; exit) 2>/dev/null; then | |
1314 | ac_cv_prog_cc_cross=no | |
1315 | else | |
1316 | ac_cv_prog_cc_cross=yes | |
1317 | fi | |
1318 | else | |
1319 | echo "configure: failed program was:" >&5 | |
1320 | cat conftest.$ac_ext >&5 | |
1321 | ac_cv_prog_cc_works=no | |
1322 | fi | |
1323 | rm -fr conftest* | |
1324 | ac_ext=c | |
1325 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1326 | ac_cpp='$CPP $CPPFLAGS' | |
1327 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1328 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1329 | cross_compiling=$ac_cv_prog_cc_cross | |
1330 | ||
1331 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1332 | if test $ac_cv_prog_cc_works = no; then | |
1333 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1334 | fi | |
1335 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
fdbafa10 | 1336 | echo "configure:1337: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
8d88c4ca NC |
1337 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1338 | cross_compiling=$ac_cv_prog_cc_cross | |
1339 | ||
1340 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
fdbafa10 | 1341 | echo "configure:1342: checking whether we are using GNU C" >&5 |
8d88c4ca NC |
1342 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1344 | else | |
1345 | cat > conftest.c <<EOF | |
1346 | #ifdef __GNUC__ | |
1347 | yes; | |
1348 | #endif | |
1349 | EOF | |
fdbafa10 | 1350 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
8d88c4ca NC |
1351 | ac_cv_prog_gcc=yes |
1352 | else | |
1353 | ac_cv_prog_gcc=no | |
1354 | fi | |
1355 | fi | |
1356 | ||
1357 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1358 | ||
1359 | if test $ac_cv_prog_gcc = yes; then | |
1360 | GCC=yes | |
1361 | else | |
1362 | GCC= | |
1363 | fi | |
1364 | ||
1365 | ac_test_CFLAGS="${CFLAGS+set}" | |
1366 | ac_save_CFLAGS="$CFLAGS" | |
1367 | CFLAGS= | |
1368 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
fdbafa10 | 1369 | echo "configure:1370: checking whether ${CC-cc} accepts -g" >&5 |
8d88c4ca NC |
1370 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1372 | else | |
1373 | echo 'void f(){}' > conftest.c | |
1374 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1375 | ac_cv_prog_cc_g=yes | |
1376 | else | |
1377 | ac_cv_prog_cc_g=no | |
1378 | fi | |
1379 | rm -f conftest* | |
1380 | ||
1381 | fi | |
1382 | ||
1383 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1384 | if test "$ac_test_CFLAGS" = set; then | |
1385 | CFLAGS="$ac_save_CFLAGS" | |
1386 | elif test $ac_cv_prog_cc_g = yes; then | |
1387 | if test "$GCC" = yes; then | |
1388 | CFLAGS="-g -O2" | |
1389 | else | |
1390 | CFLAGS="-g" | |
1391 | fi | |
1392 | else | |
1393 | if test "$GCC" = yes; then | |
1394 | CFLAGS="-O2" | |
1395 | else | |
1396 | CFLAGS= | |
1397 | fi | |
1398 | fi | |
1399 | ||
252b5132 RH |
1400 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1401 | if test "${with_gnu_ld+set}" = set; then | |
1402 | withval="$with_gnu_ld" | |
1403 | test "$withval" = no || with_gnu_ld=yes | |
1404 | else | |
1405 | with_gnu_ld=no | |
1406 | fi | |
1407 | ||
252b5132 | 1408 | ac_prog=ld |
55c80943 | 1409 | if test "$GCC" = yes; then |
252b5132 RH |
1410 | # Check if gcc -print-prog-name=ld gives a path. |
1411 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
fdbafa10 | 1412 | echo "configure:1413: checking for ld used by GCC" >&5 |
ac48eca1 AO |
1413 | case $host in |
1414 | *-*-mingw*) | |
1415 | # gcc leaves a trailing carriage return which upsets mingw | |
1416 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1417 | *) | |
1418 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1419 | esac | |
55c80943 | 1420 | case $ac_prog in |
b2ef150d | 1421 | # Accept absolute paths. |
a74801ba | 1422 | [\\/]* | [A-Za-z]:[\\/]*) |
b2ef150d ILT |
1423 | re_direlt='/[^/][^/]*/\.\./' |
1424 | # Canonicalize the path of ld | |
1425 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1426 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1427 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1428 | done | |
1429 | test -z "$LD" && LD="$ac_prog" | |
1430 | ;; | |
252b5132 RH |
1431 | "") |
1432 | # If it fails, then pretend we aren't using GCC. | |
1433 | ac_prog=ld | |
1434 | ;; | |
1435 | *) | |
1436 | # If it is relative, then search for the first ld in PATH. | |
1437 | with_gnu_ld=unknown | |
1438 | ;; | |
1439 | esac | |
1440 | elif test "$with_gnu_ld" = yes; then | |
1441 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
fdbafa10 | 1442 | echo "configure:1443: checking for GNU ld" >&5 |
252b5132 RH |
1443 | else |
1444 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
fdbafa10 | 1445 | echo "configure:1446: checking for non-GNU ld" >&5 |
252b5132 | 1446 | fi |
55c80943 | 1447 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
252b5132 RH |
1448 | echo $ac_n "(cached) $ac_c" 1>&6 |
1449 | else | |
1450 | if test -z "$LD"; then | |
a74801ba | 1451 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
1452 | for ac_dir in $PATH; do |
1453 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 1454 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
55c80943 | 1455 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
1456 | # Check to see if the program is GNU ld. I'd rather use --version, |
1457 | # but apparently some GNU ld's only accept -v. | |
1458 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
55c80943 | 1459 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
1460 | test "$with_gnu_ld" != no && break |
1461 | else | |
b2ef150d | 1462 | test "$with_gnu_ld" != yes && break |
252b5132 RH |
1463 | fi |
1464 | fi | |
1465 | done | |
1466 | IFS="$ac_save_ifs" | |
1467 | else | |
55c80943 | 1468 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
1469 | fi |
1470 | fi | |
1471 | ||
55c80943 | 1472 | LD="$lt_cv_path_LD" |
252b5132 RH |
1473 | if test -n "$LD"; then |
1474 | echo "$ac_t""$LD" 1>&6 | |
1475 | else | |
1476 | echo "$ac_t""no" 1>&6 | |
1477 | fi | |
1478 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
252b5132 | 1479 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
fdbafa10 | 1480 | echo "configure:1481: checking if the linker ($LD) is GNU ld" >&5 |
55c80943 | 1481 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
252b5132 RH |
1482 | echo $ac_n "(cached) $ac_c" 1>&6 |
1483 | else | |
1484 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1485 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
55c80943 | 1486 | lt_cv_prog_gnu_ld=yes |
252b5132 | 1487 | else |
55c80943 | 1488 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
1489 | fi |
1490 | fi | |
1491 | ||
55c80943 NC |
1492 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
1493 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
252b5132 RH |
1494 | |
1495 | ||
ac48eca1 | 1496 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 |
fdbafa10 | 1497 | echo "configure:1498: checking for $LD option to reload object files" >&5 |
ac48eca1 AO |
1498 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1500 | else | |
1501 | lt_cv_ld_reload_flag='-r' | |
1502 | fi | |
1503 | ||
1504 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | |
1505 | reload_flag=$lt_cv_ld_reload_flag | |
1506 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
1507 | ||
252b5132 | 1508 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
fdbafa10 | 1509 | echo "configure:1510: checking for BSD-compatible nm" >&5 |
55c80943 | 1510 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
252b5132 RH |
1511 | echo $ac_n "(cached) $ac_c" 1>&6 |
1512 | else | |
1513 | if test -n "$NM"; then | |
1514 | # Let the user override the test. | |
55c80943 | 1515 | lt_cv_path_NM="$NM" |
252b5132 | 1516 | else |
a74801ba | 1517 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2ef150d | 1518 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
252b5132 | 1519 | test -z "$ac_dir" && ac_dir=. |
ac48eca1 AO |
1520 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
1521 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
1522 | # Check to see if the nm accepts a BSD-compat flag. |
1523 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1524 | # nm: unknown option "B" ignored | |
90f2472a AO |
1525 | # Tru64's nm complains that /dev/null is an invalid object file |
1526 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
55c80943 | 1527 | lt_cv_path_NM="$tmp_nm -B" |
b2ef150d | 1528 | break |
ac48eca1 | 1529 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
55c80943 | 1530 | lt_cv_path_NM="$tmp_nm -p" |
b2ef150d | 1531 | break |
252b5132 | 1532 | else |
55c80943 | 1533 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2ef150d | 1534 | continue # so that we can try to find one that supports BSD flags |
252b5132 | 1535 | fi |
252b5132 RH |
1536 | fi |
1537 | done | |
1538 | IFS="$ac_save_ifs" | |
55c80943 | 1539 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
1540 | fi |
1541 | fi | |
1542 | ||
55c80943 | 1543 | NM="$lt_cv_path_NM" |
252b5132 RH |
1544 | echo "$ac_t""$NM" 1>&6 |
1545 | ||
252b5132 | 1546 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
fdbafa10 | 1547 | echo "configure:1548: checking whether ln -s works" >&5 |
653f71ca | 1548 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
252b5132 RH |
1549 | echo $ac_n "(cached) $ac_c" 1>&6 |
1550 | else | |
1551 | rm -f conftestdata | |
1552 | if ln -s X conftestdata 2>/dev/null | |
1553 | then | |
1554 | rm -f conftestdata | |
1555 | ac_cv_prog_LN_S="ln -s" | |
1556 | else | |
1557 | ac_cv_prog_LN_S=ln | |
1558 | fi | |
1559 | fi | |
1560 | LN_S="$ac_cv_prog_LN_S" | |
1561 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1562 | echo "$ac_t""yes" 1>&6 | |
1563 | else | |
1564 | echo "$ac_t""no" 1>&6 | |
1565 | fi | |
1566 | ||
ac48eca1 | 1567 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
fdbafa10 | 1568 | echo "configure:1569: checking how to recognise dependant libraries" >&5 |
ac48eca1 AO |
1569 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
1570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1571 | else | |
d64552c5 | 1572 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
1573 | lt_cv_file_magic_test_file= |
1574 | lt_cv_deplibs_check_method='unknown' | |
1575 | # Need to set the preceding variable on all platforms that support | |
1576 | # interlibrary dependencies. | |
1577 | # 'none' -- dependencies not supported. | |
1578 | # `unknown' -- same as none, but documents that we really don't know. | |
1579 | # 'pass_all' -- all dependencies passed with no checks. | |
1580 | # 'test_compile' -- check by making test program. | |
1581 | # 'file_magic [regex]' -- check by looking for files in library path | |
1582 | # which responds to the $file_magic_cmd with a given egrep regex. | |
1583 | # If you have `file' or equivalent on your system and you're not sure | |
1584 | # whether `pass_all' will *always* work, you probably want this one. | |
1585 | ||
55c80943 NC |
1586 | case $host_os in |
1587 | aix*) | |
ac48eca1 AO |
1588 | lt_cv_deplibs_check_method=pass_all |
1589 | ;; | |
1590 | ||
1591 | beos*) | |
1592 | lt_cv_deplibs_check_method=pass_all | |
1593 | ;; | |
1594 | ||
1595 | bsdi4*) | |
55c80943 NC |
1596 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
1597 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
1598 | lt_cv_file_magic_test_file=/shlib/libc.so |
1599 | ;; | |
1600 | ||
d64552c5 | 1601 | cygwin* | mingw* |pw32*) |
ac48eca1 | 1602 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 1603 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
1604 | ;; |
1605 | ||
55c80943 NC |
1606 | darwin* | rhapsody*) |
1607 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
1608 | lt_cv_file_magic_cmd=/usr/bin/file | |
1609 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` | |
1610 | ;; | |
1611 | ||
ac48eca1 AO |
1612 | freebsd* ) |
1613 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
55c80943 | 1614 | case $host_cpu in |
ac48eca1 | 1615 | i*86 ) |
90f2472a AO |
1616 | # Not sure whether the presence of OpenBSD here was a mistake. |
1617 | # Let's accept both of them until this is cleared up. | |
55c80943 NC |
1618 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
1619 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
1620 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
1621 | ;; | |
1622 | esac | |
1623 | else | |
1624 | lt_cv_deplibs_check_method=pass_all | |
1625 | fi | |
1626 | ;; | |
1627 | ||
1628 | gnu*) | |
1629 | lt_cv_deplibs_check_method=pass_all | |
1630 | ;; | |
1631 | ||
55c80943 NC |
1632 | hpux10.20*|hpux11*) |
1633 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
ac48eca1 AO |
1634 | lt_cv_file_magic_cmd=/usr/bin/file |
1635 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
1636 | ;; | |
1637 | ||
1638 | irix5* | irix6*) | |
55c80943 | 1639 | case $host_os in |
ac48eca1 AO |
1640 | irix5*) |
1641 | # this will be overridden with pass_all, but let us keep it just in case | |
1642 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
1643 | ;; | |
1644 | *) | |
55c80943 | 1645 | case $LD in |
ac48eca1 AO |
1646 | *-32|*"-32 ") libmagic=32-bit;; |
1647 | *-n32|*"-n32 ") libmagic=N32;; | |
1648 | *-64|*"-64 ") libmagic=64-bit;; | |
1649 | *) libmagic=never-match;; | |
1650 | esac | |
1651 | # this will be overridden with pass_all, but let us keep it just in case | |
55c80943 NC |
1652 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
1653 | ;; | |
ac48eca1 AO |
1654 | esac |
1655 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
1656 | lt_cv_deplibs_check_method=pass_all | |
1657 | ;; | |
1658 | ||
1659 | # This must be Linux ELF. | |
90f2472a | 1660 | linux-gnu*) |
55c80943 | 1661 | case $host_cpu in |
ac48eca1 AO |
1662 | alpha* | i*86 | powerpc* | sparc* | ia64* ) |
1663 | lt_cv_deplibs_check_method=pass_all ;; | |
1664 | *) | |
1665 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
55c80943 NC |
1666 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
1667 | esac | |
ac48eca1 AO |
1668 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
1669 | ;; | |
1670 | ||
1671 | netbsd*) | |
55c80943 NC |
1672 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
1673 | lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library' | |
ac48eca1 | 1674 | else |
55c80943 | 1675 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
ac48eca1 | 1676 | fi |
55c80943 NC |
1677 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
1678 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
1679 | ;; | |
1680 | ||
1681 | newsos6) | |
1682 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
1683 | lt_cv_file_magic_cmd=/usr/bin/file | |
1684 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
ac48eca1 AO |
1685 | ;; |
1686 | ||
1687 | osf3* | osf4* | osf5*) | |
1688 | # this will be overridden with pass_all, but let us keep it just in case | |
1689 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
1690 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1691 | lt_cv_deplibs_check_method=pass_all | |
1692 | ;; | |
1693 | ||
1694 | sco3.2v5*) | |
1695 | lt_cv_deplibs_check_method=pass_all | |
1696 | ;; | |
1697 | ||
1698 | solaris*) | |
1699 | lt_cv_deplibs_check_method=pass_all | |
1700 | lt_cv_file_magic_test_file=/lib/libc.so | |
1701 | ;; | |
1702 | ||
1703 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
55c80943 | 1704 | case $host_vendor in |
ac48eca1 AO |
1705 | ncr) |
1706 | lt_cv_deplibs_check_method=pass_all | |
1707 | ;; | |
1708 | motorola) | |
55c80943 NC |
1709 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
1710 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
1711 | ;; |
1712 | esac | |
1713 | ;; | |
1714 | esac | |
1715 | ||
1716 | fi | |
1717 | ||
1718 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
1719 | file_magic_cmd=$lt_cv_file_magic_cmd | |
1720 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1721 | ||
1722 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
fdbafa10 | 1723 | echo "configure:1724: checking for object suffix" >&5 |
ac48eca1 AO |
1724 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
1725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1726 | else | |
1727 | rm -f conftest* | |
1728 | echo 'int i = 1;' > conftest.$ac_ext | |
fdbafa10 | 1729 | if { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac48eca1 AO |
1730 | for ac_file in conftest.*; do |
1731 | case $ac_file in | |
1732 | *.c) ;; | |
1733 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
1734 | esac | |
1735 | done | |
1736 | else | |
1737 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
1738 | fi | |
1739 | rm -f conftest* | |
1740 | fi | |
1741 | ||
1742 | echo "$ac_t""$ac_cv_objext" 1>&6 | |
1743 | OBJEXT=$ac_cv_objext | |
1744 | ac_objext=$ac_cv_objext | |
1745 | ||
1746 | ||
1747 | ||
1748 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
fdbafa10 | 1749 | echo "configure:1750: checking for executable suffix" >&5 |
ac48eca1 AO |
1750 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1752 | else | |
1753 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1754 | ac_cv_exeext=.exe | |
1755 | else | |
1756 | rm -f conftest* | |
1757 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1758 | ac_cv_exeext= | |
fdbafa10 | 1759 | if { (eval echo configure:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
ac48eca1 AO |
1760 | for file in conftest.*; do |
1761 | case $file in | |
fdbafa10 | 1762 | *.c | *.o | *.obj) ;; |
ac48eca1 AO |
1763 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1764 | esac | |
1765 | done | |
1766 | else | |
1767 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1768 | fi | |
1769 | rm -f conftest* | |
1770 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1771 | fi | |
1772 | fi | |
1773 | ||
1774 | EXEEXT="" | |
1775 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1776 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1777 | ac_exeext=$EXEEXT | |
1778 | ||
1779 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
1780 | ||
1781 | # Only perform the check for file, if the check method requires it | |
55c80943 | 1782 | case $deplibs_check_method in |
ac48eca1 | 1783 | file_magic*) |
d64552c5 | 1784 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
ac48eca1 | 1785 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
fdbafa10 | 1786 | echo "configure:1787: checking for ${ac_tool_prefix}file" >&5 |
d64552c5 | 1787 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
ac48eca1 AO |
1788 | echo $ac_n "(cached) $ac_c" 1>&6 |
1789 | else | |
55c80943 | 1790 | case $MAGIC_CMD in |
ac48eca1 | 1791 | /*) |
d64552c5 | 1792 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
1793 | ;; |
1794 | ?:/*) | |
d64552c5 | 1795 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
1796 | ;; |
1797 | *) | |
d64552c5 | 1798 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
1799 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1800 | ac_dummy="/usr/bin:$PATH" | |
1801 | for ac_dir in $ac_dummy; do | |
1802 | test -z "$ac_dir" && ac_dir=. | |
1803 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 1804 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 1805 | if test -n "$file_magic_test_file"; then |
55c80943 | 1806 | case $deplibs_check_method in |
ac48eca1 AO |
1807 | "file_magic "*) |
1808 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 1809 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
1810 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1811 | egrep "$file_magic_regex" > /dev/null; then | |
1812 | : | |
1813 | else | |
1814 | cat <<EOF 1>&2 | |
1815 | ||
1816 | *** Warning: the command libtool uses to detect shared libraries, | |
1817 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1818 | *** The result is that libtool may fail to recognize shared libraries | |
1819 | *** as such. This will affect the creation of libtool libraries that | |
1820 | *** depend on shared libraries, but programs linked with such libtool | |
1821 | *** libraries will work regardless of this problem. Nevertheless, you | |
1822 | *** may want to report the problem to your system manager and/or to | |
1823 | *** bug-libtool@gnu.org | |
1824 | ||
1825 | EOF | |
1826 | fi ;; | |
1827 | esac | |
1828 | fi | |
1829 | break | |
1830 | fi | |
1831 | done | |
1832 | IFS="$ac_save_ifs" | |
d64552c5 | 1833 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
1834 | ;; |
1835 | esac | |
1836 | fi | |
1837 | ||
d64552c5 AO |
1838 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1839 | if test -n "$MAGIC_CMD"; then | |
1840 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
ac48eca1 AO |
1841 | else |
1842 | echo "$ac_t""no" 1>&6 | |
1843 | fi | |
1844 | ||
d64552c5 | 1845 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 AO |
1846 | if test -n "$ac_tool_prefix"; then |
1847 | echo $ac_n "checking for file""... $ac_c" 1>&6 | |
fdbafa10 | 1848 | echo "configure:1849: checking for file" >&5 |
d64552c5 | 1849 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
ac48eca1 AO |
1850 | echo $ac_n "(cached) $ac_c" 1>&6 |
1851 | else | |
55c80943 | 1852 | case $MAGIC_CMD in |
ac48eca1 | 1853 | /*) |
d64552c5 | 1854 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
1855 | ;; |
1856 | ?:/*) | |
d64552c5 | 1857 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
1858 | ;; |
1859 | *) | |
d64552c5 | 1860 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
1861 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1862 | ac_dummy="/usr/bin:$PATH" | |
1863 | for ac_dir in $ac_dummy; do | |
1864 | test -z "$ac_dir" && ac_dir=. | |
1865 | if test -f $ac_dir/file; then | |
d64552c5 | 1866 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 1867 | if test -n "$file_magic_test_file"; then |
55c80943 | 1868 | case $deplibs_check_method in |
ac48eca1 AO |
1869 | "file_magic "*) |
1870 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 1871 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
1872 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1873 | egrep "$file_magic_regex" > /dev/null; then | |
1874 | : | |
1875 | else | |
1876 | cat <<EOF 1>&2 | |
1877 | ||
1878 | *** Warning: the command libtool uses to detect shared libraries, | |
1879 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1880 | *** The result is that libtool may fail to recognize shared libraries | |
1881 | *** as such. This will affect the creation of libtool libraries that | |
1882 | *** depend on shared libraries, but programs linked with such libtool | |
1883 | *** libraries will work regardless of this problem. Nevertheless, you | |
1884 | *** may want to report the problem to your system manager and/or to | |
1885 | *** bug-libtool@gnu.org | |
1886 | ||
1887 | EOF | |
1888 | fi ;; | |
1889 | esac | |
1890 | fi | |
1891 | break | |
1892 | fi | |
1893 | done | |
1894 | IFS="$ac_save_ifs" | |
d64552c5 | 1895 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
1896 | ;; |
1897 | esac | |
1898 | fi | |
1899 | ||
d64552c5 AO |
1900 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1901 | if test -n "$MAGIC_CMD"; then | |
1902 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
ac48eca1 AO |
1903 | else |
1904 | echo "$ac_t""no" 1>&6 | |
1905 | fi | |
1906 | ||
1907 | else | |
d64552c5 | 1908 | MAGIC_CMD=: |
ac48eca1 AO |
1909 | fi |
1910 | fi | |
1911 | ||
1912 | fi | |
1913 | ;; | |
1914 | esac | |
1915 | ||
1916 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1917 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1918 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 1919 | echo "configure:1920: checking for $ac_word" >&5 |
ac48eca1 AO |
1920 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1922 | else | |
1923 | if test -n "$RANLIB"; then | |
1924 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1925 | else | |
1926 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1927 | ac_dummy="$PATH" | |
1928 | for ac_dir in $ac_dummy; do | |
1929 | test -z "$ac_dir" && ac_dir=. | |
1930 | if test -f $ac_dir/$ac_word; then | |
1931 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1932 | break | |
1933 | fi | |
1934 | done | |
1935 | IFS="$ac_save_ifs" | |
1936 | fi | |
1937 | fi | |
1938 | RANLIB="$ac_cv_prog_RANLIB" | |
1939 | if test -n "$RANLIB"; then | |
1940 | echo "$ac_t""$RANLIB" 1>&6 | |
1941 | else | |
1942 | echo "$ac_t""no" 1>&6 | |
1943 | fi | |
1944 | ||
1945 | ||
1946 | if test -z "$ac_cv_prog_RANLIB"; then | |
1947 | if test -n "$ac_tool_prefix"; then | |
1948 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1949 | set dummy ranlib; ac_word=$2 | |
1950 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 1951 | echo "configure:1952: checking for $ac_word" >&5 |
ac48eca1 AO |
1952 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1954 | else | |
1955 | if test -n "$RANLIB"; then | |
1956 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1957 | else | |
1958 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1959 | ac_dummy="$PATH" | |
1960 | for ac_dir in $ac_dummy; do | |
1961 | test -z "$ac_dir" && ac_dir=. | |
1962 | if test -f $ac_dir/$ac_word; then | |
1963 | ac_cv_prog_RANLIB="ranlib" | |
1964 | break | |
1965 | fi | |
1966 | done | |
1967 | IFS="$ac_save_ifs" | |
1968 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1969 | fi | |
1970 | fi | |
1971 | RANLIB="$ac_cv_prog_RANLIB" | |
1972 | if test -n "$RANLIB"; then | |
1973 | echo "$ac_t""$RANLIB" 1>&6 | |
1974 | else | |
1975 | echo "$ac_t""no" 1>&6 | |
1976 | fi | |
1977 | ||
1978 | else | |
1979 | RANLIB=":" | |
1980 | fi | |
1981 | fi | |
1982 | ||
1983 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1984 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1985 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 1986 | echo "configure:1987: checking for $ac_word" >&5 |
ac48eca1 AO |
1987 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
1988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1989 | else | |
1990 | if test -n "$STRIP"; then | |
1991 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1992 | else | |
1993 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1994 | ac_dummy="$PATH" | |
1995 | for ac_dir in $ac_dummy; do | |
1996 | test -z "$ac_dir" && ac_dir=. | |
1997 | if test -f $ac_dir/$ac_word; then | |
1998 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1999 | break | |
2000 | fi | |
2001 | done | |
2002 | IFS="$ac_save_ifs" | |
2003 | fi | |
2004 | fi | |
2005 | STRIP="$ac_cv_prog_STRIP" | |
2006 | if test -n "$STRIP"; then | |
2007 | echo "$ac_t""$STRIP" 1>&6 | |
2008 | else | |
2009 | echo "$ac_t""no" 1>&6 | |
2010 | fi | |
2011 | ||
2012 | ||
2013 | if test -z "$ac_cv_prog_STRIP"; then | |
2014 | if test -n "$ac_tool_prefix"; then | |
2015 | # Extract the first word of "strip", so it can be a program name with args. | |
2016 | set dummy strip; ac_word=$2 | |
2017 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 2018 | echo "configure:2019: checking for $ac_word" >&5 |
ac48eca1 AO |
2019 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2021 | else | |
2022 | if test -n "$STRIP"; then | |
2023 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2024 | else | |
2025 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2026 | ac_dummy="$PATH" | |
2027 | for ac_dir in $ac_dummy; do | |
2028 | test -z "$ac_dir" && ac_dir=. | |
2029 | if test -f $ac_dir/$ac_word; then | |
2030 | ac_cv_prog_STRIP="strip" | |
2031 | break | |
2032 | fi | |
2033 | done | |
2034 | IFS="$ac_save_ifs" | |
2035 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
2036 | fi | |
2037 | fi | |
2038 | STRIP="$ac_cv_prog_STRIP" | |
2039 | if test -n "$STRIP"; then | |
2040 | echo "$ac_t""$STRIP" 1>&6 | |
2041 | else | |
2042 | echo "$ac_t""no" 1>&6 | |
2043 | fi | |
2044 | ||
2045 | else | |
2046 | STRIP=":" | |
2047 | fi | |
2048 | fi | |
2049 | ||
252b5132 RH |
2050 | |
2051 | # Check for any special flags to pass to ltconfig. | |
b2ef150d | 2052 | libtool_flags="--cache-file=$cache_file" |
252b5132 RH |
2053 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
2054 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
b2ef150d | 2055 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
55c80943 NC |
2056 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
2057 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 2058 | |
a74801ba ILT |
2059 | |
2060 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2061 | if test "${enable_libtool_lock+set}" = set; then | |
2062 | enableval="$enable_libtool_lock" | |
2063 | : | |
2064 | fi | |
2065 | ||
2066 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2067 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
2068 | ||
ac48eca1 AO |
2069 | # Check whether --with-pic or --without-pic was given. |
2070 | if test "${with_pic+set}" = set; then | |
2071 | withval="$with_pic" | |
2072 | pic_mode="$withval" | |
2073 | else | |
2074 | pic_mode=default | |
2075 | fi | |
2076 | ||
2077 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
2078 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2079 | ||
252b5132 RH |
2080 | # Some flags need to be propagated to the compiler or linker for good |
2081 | # libtool support. | |
55c80943 | 2082 | case $host in |
252b5132 RH |
2083 | *-*-irix6*) |
2084 | # Find out which ABI we are using. | |
fdbafa10 L |
2085 | echo '#line 2086 "configure"' > conftest.$ac_ext |
2086 | if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
55c80943 | 2087 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
2088 | *32-bit*) |
2089 | LD="${LD-ld} -32" | |
2090 | ;; | |
2091 | *N32*) | |
2092 | LD="${LD-ld} -n32" | |
2093 | ;; | |
2094 | *64-bit*) | |
2095 | LD="${LD-ld} -64" | |
2096 | ;; | |
2097 | esac | |
2098 | fi | |
2099 | rm -rf conftest* | |
2100 | ;; | |
2101 | ||
2102 | *-*-sco3.2v5*) | |
2103 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
b2ef150d | 2104 | SAVE_CFLAGS="$CFLAGS" |
252b5132 | 2105 | CFLAGS="$CFLAGS -belf" |
b2ef150d | 2106 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
fdbafa10 | 2107 | echo "configure:2108: checking whether the C compiler needs -belf" >&5 |
653f71ca | 2108 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
b2ef150d ILT |
2109 | echo $ac_n "(cached) $ac_c" 1>&6 |
2110 | else | |
ac48eca1 AO |
2111 | |
2112 | ac_ext=c | |
2113 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2114 | ac_cpp='$CPP $CPPFLAGS' | |
2115 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2116 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2117 | cross_compiling=$ac_cv_prog_cc_cross | |
2118 | ||
2119 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2120 | #line 2121 "configure" |
b2ef150d ILT |
2121 | #include "confdefs.h" |
2122 | ||
2123 | int main() { | |
2124 | ||
2125 | ; return 0; } | |
2126 | EOF | |
fdbafa10 | 2127 | if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2ef150d ILT |
2128 | rm -rf conftest* |
2129 | lt_cv_cc_needs_belf=yes | |
2130 | else | |
2131 | echo "configure: failed program was:" >&5 | |
2132 | cat conftest.$ac_ext >&5 | |
2133 | rm -rf conftest* | |
2134 | lt_cv_cc_needs_belf=no | |
2135 | fi | |
2136 | rm -f conftest* | |
ac48eca1 AO |
2137 | ac_ext=c |
2138 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2139 | ac_cpp='$CPP $CPPFLAGS' | |
2140 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2141 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2142 | cross_compiling=$ac_cv_prog_cc_cross | |
2143 | ||
b2ef150d ILT |
2144 | fi |
2145 | ||
2146 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2147 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2148 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2149 | CFLAGS="$SAVE_CFLAGS" | |
2150 | fi | |
252b5132 RH |
2151 | ;; |
2152 | ||
252b5132 RH |
2153 | |
2154 | esac | |
2155 | ||
b2ef150d ILT |
2156 | |
2157 | # Save cache, so that ltconfig can load it | |
2158 | cat > confcache <<\EOF | |
2159 | # This file is a shell script that caches the results of configure | |
2160 | # tests run on this system so they can be shared between configure | |
2161 | # scripts and configure runs. It is not useful on other systems. | |
2162 | # If it contains results you don't want to keep, you may remove or edit it. | |
2163 | # | |
2164 | # By default, configure uses ./config.cache as the cache file, | |
2165 | # creating it if it does not exist already. You can give configure | |
2166 | # the --cache-file=FILE option to use a different cache file; that is | |
2167 | # what configure does when it calls configure scripts in | |
2168 | # subdirectories, so they share the cache. | |
2169 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2170 | # config.status only pays attention to the cache file if you give it the | |
2171 | # --recheck option to rerun configure. | |
2172 | # | |
2173 | EOF | |
2174 | # The following way of writing the cache mishandles newlines in values, | |
2175 | # but we know of no workaround that is simple, portable, and efficient. | |
2176 | # So, don't put newlines in cache variables' values. | |
2177 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2178 | # and sets the high bit in the cache file unless we assign to the vars. | |
2179 | (set) 2>&1 | | |
2180 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2181 | *ac_space=\ *) | |
2182 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2183 | # turns \\\\ into \\, and sed turns \\ into \). | |
2184 | sed -n \ | |
2185 | -e "s/'/'\\\\''/g" \ | |
2186 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2187 | ;; | |
2188 | *) | |
2189 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2190 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2191 | ;; | |
2192 | esac >> confcache | |
2193 | if cmp -s $cache_file confcache; then | |
2194 | : | |
2195 | else | |
2196 | if test -w $cache_file; then | |
2197 | echo "updating cache $cache_file" | |
2198 | cat confcache > $cache_file | |
2199 | else | |
2200 | echo "not updating unwritable cache $cache_file" | |
2201 | fi | |
2202 | fi | |
2203 | rm -f confcache | |
2204 | ||
2205 | ||
252b5132 | 2206 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 2207 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 2208 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
2209 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2210 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2211 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2212 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 2213 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 2214 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
252b5132 RH |
2215 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
2216 | ||
b2ef150d ILT |
2217 | # Reload cache, that may have been modified by ltconfig |
2218 | if test -r "$cache_file"; then | |
2219 | echo "loading cache $cache_file" | |
653f71ca | 2220 | . $cache_file |
b2ef150d ILT |
2221 | else |
2222 | echo "creating cache $cache_file" | |
2223 | > $cache_file | |
2224 | fi | |
2225 | ||
2226 | ||
2227 | # This can be used to rebuild libtool when needed | |
ac48eca1 | 2228 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2ef150d ILT |
2229 | |
2230 | # Always use our own libtool. | |
2231 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2232 | ||
252b5132 RH |
2233 | # Redirect the config.log output again, so that the ltconfig log is not |
2234 | # clobbered by the next message. | |
2235 | exec 5>>./config.log | |
2236 | ||
ac48eca1 AO |
2237 | |
2238 | ||
2239 | ||
2240 | ||
d64552c5 | 2241 | |
ac48eca1 | 2242 | |
252b5132 RH |
2243 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
2244 | if test "${enable_64_bit_bfd+set}" = set; then | |
2245 | enableval="$enable_64_bit_bfd" | |
2246 | case "${enableval}" in | |
2247 | yes) want64=true ;; | |
2248 | no) want64=false ;; | |
2249 | *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; | |
2250 | esac | |
2251 | else | |
2252 | want64=false | |
2253 | fi | |
2254 | # Check whether --enable-targets or --disable-targets was given. | |
2255 | if test "${enable_targets+set}" = set; then | |
2256 | enableval="$enable_targets" | |
2257 | case "${enableval}" in | |
2258 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } | |
2259 | ;; | |
2260 | no) enable_targets= ;; | |
2261 | *) enable_targets=$enableval ;; | |
2262 | esac | |
2263 | fi | |
2264 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | |
2265 | if test "${enable_commonbfdlib+set}" = set; then | |
2266 | enableval="$enable_commonbfdlib" | |
2267 | case "${enableval}" in | |
2268 | yes) commonbfdlib=true ;; | |
2269 | no) commonbfdlib=false ;; | |
2270 | *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; | |
2271 | esac | |
2272 | fi | |
2273 | # Check whether --with-mmap or --without-mmap was given. | |
2274 | if test "${with_mmap+set}" = set; then | |
2275 | withval="$with_mmap" | |
2276 | case "${withval}" in | |
2277 | yes) want_mmap=true ;; | |
2278 | no) want_mmap=false ;; | |
2279 | *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;; | |
2280 | esac | |
2281 | else | |
2282 | want_mmap=false | |
2283 | fi | |
2284 | ||
a2d91340 AC |
2285 | build_warnings="-W -Wall" |
2286 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
2287 | if test "${enable_build_warnings+set}" = set; then | |
2288 | enableval="$enable_build_warnings" | |
2289 | case "${enableval}" in | |
2290 | yes) ;; | |
2291 | no) build_warnings="-w";; | |
2292 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
2293 | build_warnings="${build_warnings} ${t}";; | |
2294 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
2295 | build_warnings="${t} ${build_warnings}";; | |
2296 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
2297 | esac | |
2298 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
2299 | echo "Setting warning flags = $build_warnings" 6>&1 | |
2300 | fi | |
2301 | fi | |
2302 | WARN_CFLAGS="" | |
2303 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then | |
2304 | WARN_CFLAGS="${build_warnings}" | |
2305 | fi | |
2306 | ||
2307 | ||
252b5132 RH |
2308 | |
2309 | ||
2310 | ||
2311 | ||
2312 | if test -z "$target" ; then | |
2313 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } | |
2314 | fi | |
252b5132 RH |
2315 | |
2316 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
fdbafa10 | 2317 | echo "configure:2318: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
252b5132 RH |
2318 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
2319 | if test "${enable_maintainer_mode+set}" = set; then | |
2320 | enableval="$enable_maintainer_mode" | |
2321 | USE_MAINTAINER_MODE=$enableval | |
2322 | else | |
2323 | USE_MAINTAINER_MODE=no | |
2324 | fi | |
2325 | ||
2326 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
2327 | ||
2328 | ||
2329 | if test $USE_MAINTAINER_MODE = yes; then | |
2330 | MAINTAINER_MODE_TRUE= | |
2331 | MAINTAINER_MODE_FALSE='#' | |
2332 | else | |
2333 | MAINTAINER_MODE_TRUE='#' | |
2334 | MAINTAINER_MODE_FALSE= | |
2335 | fi | |
2336 | MAINT=$MAINTAINER_MODE_TRUE | |
2337 | ||
2338 | ||
252b5132 RH |
2339 | |
2340 | ||
2341 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
fdbafa10 | 2342 | echo "configure:2343: checking for executable suffix" >&5 |
653f71ca | 2343 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
252b5132 RH |
2344 | echo $ac_n "(cached) $ac_c" 1>&6 |
2345 | else | |
653f71ca | 2346 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
252b5132 RH |
2347 | ac_cv_exeext=.exe |
2348 | else | |
2349 | rm -f conftest* | |
2350 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
2351 | ac_cv_exeext= | |
fdbafa10 | 2352 | if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
252b5132 RH |
2353 | for file in conftest.*; do |
2354 | case $file in | |
fdbafa10 | 2355 | *.c | *.o | *.obj) ;; |
252b5132 RH |
2356 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
2357 | esac | |
2358 | done | |
2359 | else | |
2360 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
2361 | fi | |
2362 | rm -f conftest* | |
2363 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
2364 | fi | |
2365 | fi | |
2366 | ||
2367 | EXEEXT="" | |
2368 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
2369 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
2370 | ac_exeext=$EXEEXT | |
2371 | ||
2372 | ||
2373 | host64=false | |
2374 | target64=false | |
2375 | ||
2376 | # host stuff: | |
2377 | ||
2378 | # Extract the first word of "gcc", so it can be a program name with args. | |
2379 | set dummy gcc; ac_word=$2 | |
2380 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 2381 | echo "configure:2382: checking for $ac_word" >&5 |
653f71ca | 2382 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
252b5132 RH |
2383 | echo $ac_n "(cached) $ac_c" 1>&6 |
2384 | else | |
2385 | if test -n "$CC"; then | |
2386 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2387 | else | |
2388 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2389 | ac_dummy="$PATH" | |
2390 | for ac_dir in $ac_dummy; do | |
2391 | test -z "$ac_dir" && ac_dir=. | |
2392 | if test -f $ac_dir/$ac_word; then | |
2393 | ac_cv_prog_CC="gcc" | |
2394 | break | |
2395 | fi | |
2396 | done | |
2397 | IFS="$ac_save_ifs" | |
2398 | fi | |
2399 | fi | |
2400 | CC="$ac_cv_prog_CC" | |
2401 | if test -n "$CC"; then | |
2402 | echo "$ac_t""$CC" 1>&6 | |
2403 | else | |
2404 | echo "$ac_t""no" 1>&6 | |
2405 | fi | |
2406 | ||
2407 | if test -z "$CC"; then | |
2408 | # Extract the first word of "cc", so it can be a program name with args. | |
2409 | set dummy cc; ac_word=$2 | |
2410 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 2411 | echo "configure:2412: checking for $ac_word" >&5 |
653f71ca | 2412 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
252b5132 RH |
2413 | echo $ac_n "(cached) $ac_c" 1>&6 |
2414 | else | |
2415 | if test -n "$CC"; then | |
2416 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2417 | else | |
2418 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2419 | ac_prog_rejected=no | |
2420 | ac_dummy="$PATH" | |
2421 | for ac_dir in $ac_dummy; do | |
2422 | test -z "$ac_dir" && ac_dir=. | |
2423 | if test -f $ac_dir/$ac_word; then | |
2424 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2425 | ac_prog_rejected=yes | |
2426 | continue | |
2427 | fi | |
2428 | ac_cv_prog_CC="cc" | |
2429 | break | |
2430 | fi | |
2431 | done | |
2432 | IFS="$ac_save_ifs" | |
2433 | if test $ac_prog_rejected = yes; then | |
2434 | # We found a bogon in the path, so make sure we never use it. | |
2435 | set dummy $ac_cv_prog_CC | |
2436 | shift | |
2437 | if test $# -gt 0; then | |
2438 | # We chose a different compiler from the bogus one. | |
2439 | # However, it has the same basename, so the bogon will be chosen | |
2440 | # first if we set CC to just the basename; use the full file name. | |
2441 | shift | |
2442 | set dummy "$ac_dir/$ac_word" "$@" | |
2443 | shift | |
2444 | ac_cv_prog_CC="$@" | |
2445 | fi | |
2446 | fi | |
2447 | fi | |
2448 | fi | |
2449 | CC="$ac_cv_prog_CC" | |
2450 | if test -n "$CC"; then | |
2451 | echo "$ac_t""$CC" 1>&6 | |
2452 | else | |
2453 | echo "$ac_t""no" 1>&6 | |
2454 | fi | |
2455 | ||
2456 | if test -z "$CC"; then | |
2457 | case "`uname -s`" in | |
653f71ca | 2458 | *win32* | *WIN32*) |
252b5132 RH |
2459 | # Extract the first word of "cl", so it can be a program name with args. |
2460 | set dummy cl; ac_word=$2 | |
2461 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 2462 | echo "configure:2463: checking for $ac_word" >&5 |
653f71ca | 2463 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
252b5132 RH |
2464 | echo $ac_n "(cached) $ac_c" 1>&6 |
2465 | else | |
2466 | if test -n "$CC"; then | |
2467 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2468 | else | |
2469 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2470 | ac_dummy="$PATH" | |
2471 | for ac_dir in $ac_dummy; do | |
2472 | test -z "$ac_dir" && ac_dir=. | |
2473 | if test -f $ac_dir/$ac_word; then | |
2474 | ac_cv_prog_CC="cl" | |
2475 | break | |
2476 | fi | |
2477 | done | |
2478 | IFS="$ac_save_ifs" | |
2479 | fi | |
2480 | fi | |
2481 | CC="$ac_cv_prog_CC" | |
2482 | if test -n "$CC"; then | |
2483 | echo "$ac_t""$CC" 1>&6 | |
2484 | else | |
2485 | echo "$ac_t""no" 1>&6 | |
2486 | fi | |
2487 | ;; | |
2488 | esac | |
2489 | fi | |
2490 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
2491 | fi | |
2492 | ||
653f71ca | 2493 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
fdbafa10 | 2494 | echo "configure:2495: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
252b5132 RH |
2495 | |
2496 | ac_ext=c | |
2497 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2498 | ac_cpp='$CPP $CPPFLAGS' | |
2499 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2500 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2501 | cross_compiling=$ac_cv_prog_cc_cross | |
2502 | ||
2503 | cat > conftest.$ac_ext << EOF | |
2504 | ||
fdbafa10 | 2505 | #line 2506 "configure" |
252b5132 RH |
2506 | #include "confdefs.h" |
2507 | ||
2508 | main(){return(0);} | |
2509 | EOF | |
fdbafa10 | 2510 | if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
2511 | ac_cv_prog_cc_works=yes |
2512 | # If we can't run a trivial program, we are probably using a cross compiler. | |
2513 | if (./conftest; exit) 2>/dev/null; then | |
2514 | ac_cv_prog_cc_cross=no | |
2515 | else | |
2516 | ac_cv_prog_cc_cross=yes | |
2517 | fi | |
2518 | else | |
2519 | echo "configure: failed program was:" >&5 | |
2520 | cat conftest.$ac_ext >&5 | |
2521 | ac_cv_prog_cc_works=no | |
2522 | fi | |
2523 | rm -fr conftest* | |
2524 | ac_ext=c | |
2525 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2526 | ac_cpp='$CPP $CPPFLAGS' | |
2527 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2528 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2529 | cross_compiling=$ac_cv_prog_cc_cross | |
2530 | ||
2531 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
2532 | if test $ac_cv_prog_cc_works = no; then | |
2533 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
2534 | fi | |
653f71ca | 2535 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
fdbafa10 | 2536 | echo "configure:2537: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
252b5132 RH |
2537 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
2538 | cross_compiling=$ac_cv_prog_cc_cross | |
2539 | ||
2540 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
fdbafa10 | 2541 | echo "configure:2542: checking whether we are using GNU C" >&5 |
653f71ca | 2542 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
252b5132 RH |
2543 | echo $ac_n "(cached) $ac_c" 1>&6 |
2544 | else | |
2545 | cat > conftest.c <<EOF | |
2546 | #ifdef __GNUC__ | |
2547 | yes; | |
2548 | #endif | |
2549 | EOF | |
fdbafa10 | 2550 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
252b5132 RH |
2551 | ac_cv_prog_gcc=yes |
2552 | else | |
2553 | ac_cv_prog_gcc=no | |
2554 | fi | |
2555 | fi | |
2556 | ||
2557 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
2558 | ||
2559 | if test $ac_cv_prog_gcc = yes; then | |
2560 | GCC=yes | |
2561 | else | |
2562 | GCC= | |
2563 | fi | |
2564 | ||
2565 | ac_test_CFLAGS="${CFLAGS+set}" | |
2566 | ac_save_CFLAGS="$CFLAGS" | |
2567 | CFLAGS= | |
2568 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
fdbafa10 | 2569 | echo "configure:2570: checking whether ${CC-cc} accepts -g" >&5 |
653f71ca | 2570 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
252b5132 RH |
2571 | echo $ac_n "(cached) $ac_c" 1>&6 |
2572 | else | |
2573 | echo 'void f(){}' > conftest.c | |
2574 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
2575 | ac_cv_prog_cc_g=yes | |
2576 | else | |
2577 | ac_cv_prog_cc_g=no | |
2578 | fi | |
2579 | rm -f conftest* | |
2580 | ||
2581 | fi | |
2582 | ||
2583 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
2584 | if test "$ac_test_CFLAGS" = set; then | |
2585 | CFLAGS="$ac_save_CFLAGS" | |
2586 | elif test $ac_cv_prog_cc_g = yes; then | |
2587 | if test "$GCC" = yes; then | |
2588 | CFLAGS="-g -O2" | |
2589 | else | |
2590 | CFLAGS="-g" | |
2591 | fi | |
2592 | else | |
2593 | if test "$GCC" = yes; then | |
2594 | CFLAGS="-O2" | |
2595 | else | |
2596 | CFLAGS= | |
2597 | fi | |
2598 | fi | |
2599 | ||
2600 | ||
2601 | ALL_LINGUAS= | |
2602 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
fdbafa10 | 2603 | echo "configure:2604: checking how to run the C preprocessor" >&5 |
252b5132 RH |
2604 | # On Suns, sometimes $CPP names a directory. |
2605 | if test -n "$CPP" && test -d "$CPP"; then | |
2606 | CPP= | |
2607 | fi | |
2608 | if test -z "$CPP"; then | |
653f71ca | 2609 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
252b5132 RH |
2610 | echo $ac_n "(cached) $ac_c" 1>&6 |
2611 | else | |
2612 | # This must be in double quotes, not single quotes, because CPP may get | |
2613 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2614 | CPP="${CC-cc} -E" | |
2615 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2616 | # not just through cpp. | |
2617 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2618 | #line 2619 "configure" |
252b5132 RH |
2619 | #include "confdefs.h" |
2620 | #include <assert.h> | |
2621 | Syntax Error | |
2622 | EOF | |
2623 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 2624 | { (eval echo configure:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2625 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2626 | if test -z "$ac_err"; then | |
2627 | : | |
2628 | else | |
2629 | echo "$ac_err" >&5 | |
2630 | echo "configure: failed program was:" >&5 | |
2631 | cat conftest.$ac_ext >&5 | |
2632 | rm -rf conftest* | |
2633 | CPP="${CC-cc} -E -traditional-cpp" | |
2634 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2635 | #line 2636 "configure" |
252b5132 RH |
2636 | #include "confdefs.h" |
2637 | #include <assert.h> | |
2638 | Syntax Error | |
2639 | EOF | |
2640 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 2641 | { (eval echo configure:2642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2642 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2643 | if test -z "$ac_err"; then | |
2644 | : | |
2645 | else | |
2646 | echo "$ac_err" >&5 | |
2647 | echo "configure: failed program was:" >&5 | |
2648 | cat conftest.$ac_ext >&5 | |
2649 | rm -rf conftest* | |
2650 | CPP="${CC-cc} -nologo -E" | |
2651 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2652 | #line 2653 "configure" |
252b5132 RH |
2653 | #include "confdefs.h" |
2654 | #include <assert.h> | |
2655 | Syntax Error | |
2656 | EOF | |
2657 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 2658 | { (eval echo configure:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2659 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2660 | if test -z "$ac_err"; then | |
2661 | : | |
2662 | else | |
2663 | echo "$ac_err" >&5 | |
2664 | echo "configure: failed program was:" >&5 | |
2665 | cat conftest.$ac_ext >&5 | |
2666 | rm -rf conftest* | |
2667 | CPP=/lib/cpp | |
2668 | fi | |
2669 | rm -f conftest* | |
2670 | fi | |
2671 | rm -f conftest* | |
2672 | fi | |
2673 | rm -f conftest* | |
2674 | ac_cv_prog_CPP="$CPP" | |
2675 | fi | |
2676 | CPP="$ac_cv_prog_CPP" | |
2677 | else | |
2678 | ac_cv_prog_CPP="$CPP" | |
2679 | fi | |
2680 | echo "$ac_t""$CPP" 1>&6 | |
2681 | ||
ac48eca1 AO |
2682 | # Extract the first word of "ranlib", so it can be a program name with args. |
2683 | set dummy ranlib; ac_word=$2 | |
2684 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 2685 | echo "configure:2686: checking for $ac_word" >&5 |
ac48eca1 AO |
2686 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2687 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2688 | else | |
2689 | if test -n "$RANLIB"; then | |
2690 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2691 | else | |
2692 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2693 | ac_dummy="$PATH" | |
2694 | for ac_dir in $ac_dummy; do | |
2695 | test -z "$ac_dir" && ac_dir=. | |
2696 | if test -f $ac_dir/$ac_word; then | |
2697 | ac_cv_prog_RANLIB="ranlib" | |
2698 | break | |
2699 | fi | |
2700 | done | |
2701 | IFS="$ac_save_ifs" | |
2702 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2703 | fi | |
2704 | fi | |
2705 | RANLIB="$ac_cv_prog_RANLIB" | |
2706 | if test -n "$RANLIB"; then | |
2707 | echo "$ac_t""$RANLIB" 1>&6 | |
2708 | else | |
2709 | echo "$ac_t""no" 1>&6 | |
2710 | fi | |
2711 | ||
252b5132 | 2712 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
fdbafa10 | 2713 | echo "configure:2714: checking for ANSI C header files" >&5 |
653f71ca | 2714 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
252b5132 RH |
2715 | echo $ac_n "(cached) $ac_c" 1>&6 |
2716 | else | |
2717 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2718 | #line 2719 "configure" |
252b5132 RH |
2719 | #include "confdefs.h" |
2720 | #include <stdlib.h> | |
2721 | #include <stdarg.h> | |
2722 | #include <string.h> | |
2723 | #include <float.h> | |
2724 | EOF | |
2725 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 2726 | { (eval echo configure:2727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2727 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2728 | if test -z "$ac_err"; then | |
2729 | rm -rf conftest* | |
2730 | ac_cv_header_stdc=yes | |
2731 | else | |
2732 | echo "$ac_err" >&5 | |
2733 | echo "configure: failed program was:" >&5 | |
2734 | cat conftest.$ac_ext >&5 | |
2735 | rm -rf conftest* | |
2736 | ac_cv_header_stdc=no | |
2737 | fi | |
2738 | rm -f conftest* | |
2739 | ||
2740 | if test $ac_cv_header_stdc = yes; then | |
2741 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2742 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2743 | #line 2744 "configure" |
252b5132 RH |
2744 | #include "confdefs.h" |
2745 | #include <string.h> | |
2746 | EOF | |
2747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2748 | egrep "memchr" >/dev/null 2>&1; then | |
2749 | : | |
2750 | else | |
2751 | rm -rf conftest* | |
2752 | ac_cv_header_stdc=no | |
2753 | fi | |
2754 | rm -f conftest* | |
2755 | ||
2756 | fi | |
2757 | ||
2758 | if test $ac_cv_header_stdc = yes; then | |
2759 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2760 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2761 | #line 2762 "configure" |
252b5132 RH |
2762 | #include "confdefs.h" |
2763 | #include <stdlib.h> | |
2764 | EOF | |
2765 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2766 | egrep "free" >/dev/null 2>&1; then | |
2767 | : | |
2768 | else | |
2769 | rm -rf conftest* | |
2770 | ac_cv_header_stdc=no | |
2771 | fi | |
2772 | rm -f conftest* | |
2773 | ||
2774 | fi | |
2775 | ||
2776 | if test $ac_cv_header_stdc = yes; then | |
2777 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2778 | if test "$cross_compiling" = yes; then | |
2779 | : | |
2780 | else | |
2781 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2782 | #line 2783 "configure" |
252b5132 RH |
2783 | #include "confdefs.h" |
2784 | #include <ctype.h> | |
2785 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2786 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2787 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2788 | int main () { int i; for (i = 0; i < 256; i++) | |
2789 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2790 | exit (0); } | |
2791 | ||
2792 | EOF | |
fdbafa10 | 2793 | if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
2794 | then |
2795 | : | |
2796 | else | |
2797 | echo "configure: failed program was:" >&5 | |
2798 | cat conftest.$ac_ext >&5 | |
2799 | rm -fr conftest* | |
2800 | ac_cv_header_stdc=no | |
2801 | fi | |
2802 | rm -fr conftest* | |
2803 | fi | |
2804 | ||
2805 | fi | |
2806 | fi | |
2807 | ||
2808 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2809 | if test $ac_cv_header_stdc = yes; then | |
2810 | cat >> confdefs.h <<\EOF | |
2811 | #define STDC_HEADERS 1 | |
2812 | EOF | |
2813 | ||
2814 | fi | |
2815 | ||
2816 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
fdbafa10 | 2817 | echo "configure:2818: checking for working const" >&5 |
653f71ca | 2818 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
252b5132 RH |
2819 | echo $ac_n "(cached) $ac_c" 1>&6 |
2820 | else | |
2821 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2822 | #line 2823 "configure" |
252b5132 RH |
2823 | #include "confdefs.h" |
2824 | ||
2825 | int main() { | |
2826 | ||
2827 | /* Ultrix mips cc rejects this. */ | |
2828 | typedef int charset[2]; const charset x; | |
2829 | /* SunOS 4.1.1 cc rejects this. */ | |
2830 | char const *const *ccp; | |
2831 | char **p; | |
2832 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
2833 | struct point {int x, y;}; | |
2834 | static struct point const zero = {0,0}; | |
2835 | /* AIX XL C 1.02.0.0 rejects this. | |
2836 | It does not let you subtract one const X* pointer from another in an arm | |
2837 | of an if-expression whose if-part is not a constant expression */ | |
2838 | const char *g = "string"; | |
2839 | ccp = &g + (g ? g-g : 0); | |
2840 | /* HPUX 7.0 cc rejects these. */ | |
2841 | ++ccp; | |
2842 | p = (char**) ccp; | |
2843 | ccp = (char const *const *) p; | |
2844 | { /* SCO 3.2v4 cc rejects this. */ | |
2845 | char *t; | |
2846 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2847 | ||
2848 | *t++ = 0; | |
2849 | } | |
2850 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2851 | int x[] = {25, 17}; | |
2852 | const int *foo = &x[0]; | |
2853 | ++foo; | |
2854 | } | |
2855 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2856 | typedef const int *iptr; | |
2857 | iptr p = 0; | |
2858 | ++p; | |
2859 | } | |
2860 | { /* AIX XL C 1.02.0.0 rejects this saying | |
2861 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2862 | struct s { int j; const int *ap[3]; }; | |
2863 | struct s *b; b->j = 5; | |
2864 | } | |
2865 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2866 | const int foo = 10; | |
2867 | } | |
2868 | ||
2869 | ; return 0; } | |
2870 | EOF | |
fdbafa10 | 2871 | if { (eval echo configure:2872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
2872 | rm -rf conftest* |
2873 | ac_cv_c_const=yes | |
2874 | else | |
2875 | echo "configure: failed program was:" >&5 | |
2876 | cat conftest.$ac_ext >&5 | |
2877 | rm -rf conftest* | |
2878 | ac_cv_c_const=no | |
2879 | fi | |
2880 | rm -f conftest* | |
2881 | fi | |
2882 | ||
2883 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
2884 | if test $ac_cv_c_const = no; then | |
2885 | cat >> confdefs.h <<\EOF | |
2886 | #define const | |
2887 | EOF | |
2888 | ||
2889 | fi | |
2890 | ||
2891 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
fdbafa10 | 2892 | echo "configure:2893: checking for inline" >&5 |
653f71ca | 2893 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
252b5132 RH |
2894 | echo $ac_n "(cached) $ac_c" 1>&6 |
2895 | else | |
2896 | ac_cv_c_inline=no | |
2897 | for ac_kw in inline __inline__ __inline; do | |
2898 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2899 | #line 2900 "configure" |
252b5132 RH |
2900 | #include "confdefs.h" |
2901 | ||
2902 | int main() { | |
653f71ca | 2903 | } $ac_kw foo() { |
252b5132 RH |
2904 | ; return 0; } |
2905 | EOF | |
fdbafa10 | 2906 | if { (eval echo configure:2907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
2907 | rm -rf conftest* |
2908 | ac_cv_c_inline=$ac_kw; break | |
2909 | else | |
2910 | echo "configure: failed program was:" >&5 | |
2911 | cat conftest.$ac_ext >&5 | |
2912 | fi | |
2913 | rm -f conftest* | |
2914 | done | |
2915 | ||
2916 | fi | |
2917 | ||
2918 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
2919 | case "$ac_cv_c_inline" in | |
2920 | inline | yes) ;; | |
2921 | no) cat >> confdefs.h <<\EOF | |
2922 | #define inline | |
2923 | EOF | |
2924 | ;; | |
2925 | *) cat >> confdefs.h <<EOF | |
2926 | #define inline $ac_cv_c_inline | |
2927 | EOF | |
2928 | ;; | |
2929 | esac | |
2930 | ||
2931 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
fdbafa10 | 2932 | echo "configure:2933: checking for off_t" >&5 |
653f71ca | 2933 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
252b5132 RH |
2934 | echo $ac_n "(cached) $ac_c" 1>&6 |
2935 | else | |
2936 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2937 | #line 2938 "configure" |
252b5132 RH |
2938 | #include "confdefs.h" |
2939 | #include <sys/types.h> | |
2940 | #if STDC_HEADERS | |
2941 | #include <stdlib.h> | |
2942 | #include <stddef.h> | |
2943 | #endif | |
2944 | EOF | |
2945 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2946 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2947 | rm -rf conftest* | |
653f71ca | 2948 | ac_cv_type_off_t=yes |
252b5132 RH |
2949 | else |
2950 | rm -rf conftest* | |
653f71ca | 2951 | ac_cv_type_off_t=no |
252b5132 RH |
2952 | fi |
2953 | rm -f conftest* | |
2954 | ||
2955 | fi | |
653f71ca KB |
2956 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
2957 | if test $ac_cv_type_off_t = no; then | |
2958 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
2959 | #define off_t long |
2960 | EOF | |
2961 | ||
2962 | fi | |
2963 | ||
2964 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
fdbafa10 | 2965 | echo "configure:2966: checking for size_t" >&5 |
653f71ca | 2966 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
252b5132 RH |
2967 | echo $ac_n "(cached) $ac_c" 1>&6 |
2968 | else | |
2969 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 2970 | #line 2971 "configure" |
252b5132 RH |
2971 | #include "confdefs.h" |
2972 | #include <sys/types.h> | |
2973 | #if STDC_HEADERS | |
2974 | #include <stdlib.h> | |
2975 | #include <stddef.h> | |
2976 | #endif | |
2977 | EOF | |
2978 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2979 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2980 | rm -rf conftest* | |
653f71ca | 2981 | ac_cv_type_size_t=yes |
252b5132 RH |
2982 | else |
2983 | rm -rf conftest* | |
653f71ca | 2984 | ac_cv_type_size_t=no |
252b5132 RH |
2985 | fi |
2986 | rm -f conftest* | |
2987 | ||
2988 | fi | |
653f71ca KB |
2989 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
2990 | if test $ac_cv_type_size_t = no; then | |
2991 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
2992 | #define size_t unsigned |
2993 | EOF | |
2994 | ||
2995 | fi | |
2996 | ||
2997 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2998 | # for constant arguments. Useless! | |
2999 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
fdbafa10 | 3000 | echo "configure:3001: checking for working alloca.h" >&5 |
653f71ca | 3001 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
252b5132 RH |
3002 | echo $ac_n "(cached) $ac_c" 1>&6 |
3003 | else | |
3004 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3005 | #line 3006 "configure" |
252b5132 RH |
3006 | #include "confdefs.h" |
3007 | #include <alloca.h> | |
3008 | int main() { | |
3009 | char *p = alloca(2 * sizeof(int)); | |
3010 | ; return 0; } | |
3011 | EOF | |
fdbafa10 | 3012 | if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3013 | rm -rf conftest* |
3014 | ac_cv_header_alloca_h=yes | |
3015 | else | |
3016 | echo "configure: failed program was:" >&5 | |
3017 | cat conftest.$ac_ext >&5 | |
3018 | rm -rf conftest* | |
3019 | ac_cv_header_alloca_h=no | |
3020 | fi | |
3021 | rm -f conftest* | |
3022 | fi | |
3023 | ||
3024 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
3025 | if test $ac_cv_header_alloca_h = yes; then | |
3026 | cat >> confdefs.h <<\EOF | |
3027 | #define HAVE_ALLOCA_H 1 | |
3028 | EOF | |
3029 | ||
3030 | fi | |
3031 | ||
3032 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
fdbafa10 | 3033 | echo "configure:3034: checking for alloca" >&5 |
653f71ca | 3034 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
252b5132 RH |
3035 | echo $ac_n "(cached) $ac_c" 1>&6 |
3036 | else | |
3037 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3038 | #line 3039 "configure" |
252b5132 RH |
3039 | #include "confdefs.h" |
3040 | ||
3041 | #ifdef __GNUC__ | |
3042 | # define alloca __builtin_alloca | |
3043 | #else | |
3044 | # ifdef _MSC_VER | |
3045 | # include <malloc.h> | |
3046 | # define alloca _alloca | |
3047 | # else | |
3048 | # if HAVE_ALLOCA_H | |
3049 | # include <alloca.h> | |
3050 | # else | |
3051 | # ifdef _AIX | |
3052 | #pragma alloca | |
3053 | # else | |
3054 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3055 | char *alloca (); | |
3056 | # endif | |
3057 | # endif | |
3058 | # endif | |
3059 | # endif | |
3060 | #endif | |
3061 | ||
3062 | int main() { | |
3063 | char *p = (char *) alloca(1); | |
3064 | ; return 0; } | |
3065 | EOF | |
fdbafa10 | 3066 | if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3067 | rm -rf conftest* |
3068 | ac_cv_func_alloca_works=yes | |
3069 | else | |
3070 | echo "configure: failed program was:" >&5 | |
3071 | cat conftest.$ac_ext >&5 | |
3072 | rm -rf conftest* | |
3073 | ac_cv_func_alloca_works=no | |
3074 | fi | |
3075 | rm -f conftest* | |
3076 | fi | |
3077 | ||
3078 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
3079 | if test $ac_cv_func_alloca_works = yes; then | |
3080 | cat >> confdefs.h <<\EOF | |
3081 | #define HAVE_ALLOCA 1 | |
3082 | EOF | |
3083 | ||
3084 | fi | |
3085 | ||
3086 | if test $ac_cv_func_alloca_works = no; then | |
3087 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3088 | # that cause trouble. Some versions do not even contain alloca or | |
3089 | # contain a buggy version. If you still want to use their alloca, | |
3090 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3091 | ALLOCA=alloca.${ac_objext} | |
3092 | cat >> confdefs.h <<\EOF | |
3093 | #define C_ALLOCA 1 | |
3094 | EOF | |
3095 | ||
3096 | ||
3097 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
fdbafa10 | 3098 | echo "configure:3099: checking whether alloca needs Cray hooks" >&5 |
653f71ca | 3099 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
252b5132 RH |
3100 | echo $ac_n "(cached) $ac_c" 1>&6 |
3101 | else | |
3102 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3103 | #line 3104 "configure" |
252b5132 RH |
3104 | #include "confdefs.h" |
3105 | #if defined(CRAY) && ! defined(CRAY2) | |
3106 | webecray | |
3107 | #else | |
3108 | wenotbecray | |
3109 | #endif | |
3110 | ||
3111 | EOF | |
3112 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3113 | egrep "webecray" >/dev/null 2>&1; then | |
3114 | rm -rf conftest* | |
3115 | ac_cv_os_cray=yes | |
3116 | else | |
3117 | rm -rf conftest* | |
3118 | ac_cv_os_cray=no | |
3119 | fi | |
3120 | rm -f conftest* | |
3121 | ||
3122 | fi | |
3123 | ||
3124 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
3125 | if test $ac_cv_os_cray = yes; then | |
3126 | for ac_func in _getb67 GETB67 getb67; do | |
3127 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fdbafa10 | 3128 | echo "configure:3129: checking for $ac_func" >&5 |
653f71ca | 3129 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3130 | echo $ac_n "(cached) $ac_c" 1>&6 |
3131 | else | |
3132 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3133 | #line 3134 "configure" |
252b5132 RH |
3134 | #include "confdefs.h" |
3135 | /* System header to define __stub macros and hopefully few prototypes, | |
3136 | which can conflict with char $ac_func(); below. */ | |
3137 | #include <assert.h> | |
3138 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3139 | /* We use char because int might match the return type of a gcc2 | |
3140 | builtin and then its argument prototype would still apply. */ | |
3141 | char $ac_func(); | |
3142 | ||
3143 | int main() { | |
3144 | ||
3145 | /* The GNU C library defines this for functions which it implements | |
3146 | to always fail with ENOSYS. Some functions are actually named | |
3147 | something starting with __ and the normal name is an alias. */ | |
3148 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3149 | choke me | |
3150 | #else | |
653f71ca | 3151 | $ac_func(); |
252b5132 RH |
3152 | #endif |
3153 | ||
3154 | ; return 0; } | |
3155 | EOF | |
fdbafa10 | 3156 | if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3157 | rm -rf conftest* |
3158 | eval "ac_cv_func_$ac_func=yes" | |
3159 | else | |
3160 | echo "configure: failed program was:" >&5 | |
3161 | cat conftest.$ac_ext >&5 | |
3162 | rm -rf conftest* | |
3163 | eval "ac_cv_func_$ac_func=no" | |
3164 | fi | |
3165 | rm -f conftest* | |
3166 | fi | |
3167 | ||
3168 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3169 | echo "$ac_t""yes" 1>&6 | |
3170 | cat >> confdefs.h <<EOF | |
3171 | #define CRAY_STACKSEG_END $ac_func | |
3172 | EOF | |
3173 | ||
3174 | break | |
3175 | else | |
3176 | echo "$ac_t""no" 1>&6 | |
3177 | fi | |
3178 | ||
3179 | done | |
3180 | fi | |
3181 | ||
3182 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
fdbafa10 | 3183 | echo "configure:3184: checking stack direction for C alloca" >&5 |
653f71ca | 3184 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
252b5132 RH |
3185 | echo $ac_n "(cached) $ac_c" 1>&6 |
3186 | else | |
3187 | if test "$cross_compiling" = yes; then | |
3188 | ac_cv_c_stack_direction=0 | |
3189 | else | |
3190 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3191 | #line 3192 "configure" |
252b5132 RH |
3192 | #include "confdefs.h" |
3193 | find_stack_direction () | |
3194 | { | |
3195 | static char *addr = 0; | |
3196 | auto char dummy; | |
3197 | if (addr == 0) | |
3198 | { | |
3199 | addr = &dummy; | |
3200 | return find_stack_direction (); | |
3201 | } | |
3202 | else | |
3203 | return (&dummy > addr) ? 1 : -1; | |
3204 | } | |
3205 | main () | |
3206 | { | |
3207 | exit (find_stack_direction() < 0); | |
3208 | } | |
3209 | EOF | |
fdbafa10 | 3210 | if { (eval echo configure:3211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
3211 | then |
3212 | ac_cv_c_stack_direction=1 | |
3213 | else | |
3214 | echo "configure: failed program was:" >&5 | |
3215 | cat conftest.$ac_ext >&5 | |
3216 | rm -fr conftest* | |
3217 | ac_cv_c_stack_direction=-1 | |
3218 | fi | |
3219 | rm -fr conftest* | |
3220 | fi | |
3221 | ||
3222 | fi | |
3223 | ||
3224 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
3225 | cat >> confdefs.h <<EOF | |
3226 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3227 | EOF | |
3228 | ||
3229 | fi | |
3230 | ||
3231 | for ac_hdr in unistd.h | |
3232 | do | |
3233 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3234 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
fdbafa10 | 3235 | echo "configure:3236: checking for $ac_hdr" >&5 |
653f71ca | 3236 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
3237 | echo $ac_n "(cached) $ac_c" 1>&6 |
3238 | else | |
3239 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3240 | #line 3241 "configure" |
252b5132 RH |
3241 | #include "confdefs.h" |
3242 | #include <$ac_hdr> | |
3243 | EOF | |
3244 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 3245 | { (eval echo configure:3246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3246 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3247 | if test -z "$ac_err"; then | |
3248 | rm -rf conftest* | |
3249 | eval "ac_cv_header_$ac_safe=yes" | |
3250 | else | |
3251 | echo "$ac_err" >&5 | |
3252 | echo "configure: failed program was:" >&5 | |
3253 | cat conftest.$ac_ext >&5 | |
3254 | rm -rf conftest* | |
3255 | eval "ac_cv_header_$ac_safe=no" | |
3256 | fi | |
3257 | rm -f conftest* | |
3258 | fi | |
3259 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3260 | echo "$ac_t""yes" 1>&6 | |
3261 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3262 | cat >> confdefs.h <<EOF | |
3263 | #define $ac_tr_hdr 1 | |
3264 | EOF | |
3265 | ||
3266 | else | |
3267 | echo "$ac_t""no" 1>&6 | |
3268 | fi | |
3269 | done | |
3270 | ||
3271 | for ac_func in getpagesize | |
3272 | do | |
3273 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fdbafa10 | 3274 | echo "configure:3275: checking for $ac_func" >&5 |
653f71ca | 3275 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3276 | echo $ac_n "(cached) $ac_c" 1>&6 |
3277 | else | |
3278 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3279 | #line 3280 "configure" |
252b5132 RH |
3280 | #include "confdefs.h" |
3281 | /* System header to define __stub macros and hopefully few prototypes, | |
3282 | which can conflict with char $ac_func(); below. */ | |
3283 | #include <assert.h> | |
3284 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3285 | /* We use char because int might match the return type of a gcc2 | |
3286 | builtin and then its argument prototype would still apply. */ | |
3287 | char $ac_func(); | |
3288 | ||
3289 | int main() { | |
3290 | ||
3291 | /* The GNU C library defines this for functions which it implements | |
3292 | to always fail with ENOSYS. Some functions are actually named | |
3293 | something starting with __ and the normal name is an alias. */ | |
3294 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3295 | choke me | |
3296 | #else | |
653f71ca | 3297 | $ac_func(); |
252b5132 RH |
3298 | #endif |
3299 | ||
3300 | ; return 0; } | |
3301 | EOF | |
fdbafa10 | 3302 | if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3303 | rm -rf conftest* |
3304 | eval "ac_cv_func_$ac_func=yes" | |
3305 | else | |
3306 | echo "configure: failed program was:" >&5 | |
3307 | cat conftest.$ac_ext >&5 | |
3308 | rm -rf conftest* | |
3309 | eval "ac_cv_func_$ac_func=no" | |
3310 | fi | |
3311 | rm -f conftest* | |
3312 | fi | |
3313 | ||
3314 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3315 | echo "$ac_t""yes" 1>&6 | |
3316 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3317 | cat >> confdefs.h <<EOF | |
3318 | #define $ac_tr_func 1 | |
3319 | EOF | |
3320 | ||
3321 | else | |
3322 | echo "$ac_t""no" 1>&6 | |
3323 | fi | |
3324 | done | |
3325 | ||
3326 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
fdbafa10 | 3327 | echo "configure:3328: checking for working mmap" >&5 |
653f71ca | 3328 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
252b5132 RH |
3329 | echo $ac_n "(cached) $ac_c" 1>&6 |
3330 | else | |
3331 | if test "$cross_compiling" = yes; then | |
3332 | ac_cv_func_mmap_fixed_mapped=no | |
3333 | else | |
3334 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3335 | #line 3336 "configure" |
252b5132 RH |
3336 | #include "confdefs.h" |
3337 | ||
3338 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
3339 | Here is a matrix of mmap possibilities: | |
3340 | mmap private not fixed | |
3341 | mmap private fixed at somewhere currently unmapped | |
3342 | mmap private fixed at somewhere already mapped | |
3343 | mmap shared not fixed | |
3344 | mmap shared fixed at somewhere currently unmapped | |
3345 | mmap shared fixed at somewhere already mapped | |
3346 | For private mappings, we should verify that changes cannot be read() | |
3347 | back from the file, nor mmap's back from the file at a different | |
3348 | address. (There have been systems where private was not correctly | |
3349 | implemented like the infamous i386 svr4.0, and systems where the | |
3350 | VM page cache was not coherent with the filesystem buffer cache | |
3351 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
3352 | For shared mappings, we should conversely verify that changes get | |
3353 | propogated back to all the places they're supposed to be. | |
3354 | ||
3355 | Grep wants private fixed already mapped. | |
3356 | The main things grep needs to know about mmap are: | |
3357 | * does it exist and is it safe to write into the mmap'd area | |
3358 | * how to use it (BSD variants) */ | |
3359 | #include <sys/types.h> | |
3360 | #include <fcntl.h> | |
3361 | #include <sys/mman.h> | |
3362 | ||
3363 | /* This mess was copied from the GNU getpagesize.h. */ | |
3364 | #ifndef HAVE_GETPAGESIZE | |
3365 | # ifdef HAVE_UNISTD_H | |
3366 | # include <unistd.h> | |
3367 | # endif | |
3368 | ||
3369 | /* Assume that all systems that can run configure have sys/param.h. */ | |
3370 | # ifndef HAVE_SYS_PARAM_H | |
3371 | # define HAVE_SYS_PARAM_H 1 | |
3372 | # endif | |
3373 | ||
3374 | # ifdef _SC_PAGESIZE | |
3375 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
3376 | # else /* no _SC_PAGESIZE */ | |
3377 | # ifdef HAVE_SYS_PARAM_H | |
3378 | # include <sys/param.h> | |
3379 | # ifdef EXEC_PAGESIZE | |
3380 | # define getpagesize() EXEC_PAGESIZE | |
3381 | # else /* no EXEC_PAGESIZE */ | |
3382 | # ifdef NBPG | |
3383 | # define getpagesize() NBPG * CLSIZE | |
3384 | # ifndef CLSIZE | |
3385 | # define CLSIZE 1 | |
3386 | # endif /* no CLSIZE */ | |
3387 | # else /* no NBPG */ | |
3388 | # ifdef NBPC | |
3389 | # define getpagesize() NBPC | |
3390 | # else /* no NBPC */ | |
3391 | # ifdef PAGESIZE | |
3392 | # define getpagesize() PAGESIZE | |
3393 | # endif /* PAGESIZE */ | |
3394 | # endif /* no NBPC */ | |
3395 | # endif /* no NBPG */ | |
3396 | # endif /* no EXEC_PAGESIZE */ | |
3397 | # else /* no HAVE_SYS_PARAM_H */ | |
3398 | # define getpagesize() 8192 /* punt totally */ | |
3399 | # endif /* no HAVE_SYS_PARAM_H */ | |
3400 | # endif /* no _SC_PAGESIZE */ | |
3401 | ||
3402 | #endif /* no HAVE_GETPAGESIZE */ | |
3403 | ||
3404 | #ifdef __cplusplus | |
3405 | extern "C" { void *malloc(unsigned); } | |
3406 | #else | |
3407 | char *malloc(); | |
3408 | #endif | |
3409 | ||
3410 | int | |
3411 | main() | |
3412 | { | |
3413 | char *data, *data2, *data3; | |
3414 | int i, pagesize; | |
3415 | int fd; | |
3416 | ||
3417 | pagesize = getpagesize(); | |
3418 | ||
3419 | /* | |
3420 | * First, make a file with some known garbage in it. | |
3421 | */ | |
3422 | data = malloc(pagesize); | |
3423 | if (!data) | |
3424 | exit(1); | |
3425 | for (i = 0; i < pagesize; ++i) | |
3426 | *(data + i) = rand(); | |
3427 | umask(0); | |
3428 | fd = creat("conftestmmap", 0600); | |
3429 | if (fd < 0) | |
3430 | exit(1); | |
3431 | if (write(fd, data, pagesize) != pagesize) | |
3432 | exit(1); | |
3433 | close(fd); | |
3434 | ||
3435 | /* | |
3436 | * Next, try to mmap the file at a fixed address which | |
3437 | * already has something else allocated at it. If we can, | |
3438 | * also make sure that we see the same garbage. | |
3439 | */ | |
3440 | fd = open("conftestmmap", O_RDWR); | |
3441 | if (fd < 0) | |
3442 | exit(1); | |
3443 | data2 = malloc(2 * pagesize); | |
3444 | if (!data2) | |
3445 | exit(1); | |
3446 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
3447 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
3448 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3449 | exit(1); | |
3450 | for (i = 0; i < pagesize; ++i) | |
3451 | if (*(data + i) != *(data2 + i)) | |
3452 | exit(1); | |
3453 | ||
3454 | /* | |
3455 | * Finally, make sure that changes to the mapped area | |
3456 | * do not percolate back to the file as seen by read(). | |
3457 | * (This is a bug on some variants of i386 svr4.0.) | |
3458 | */ | |
3459 | for (i = 0; i < pagesize; ++i) | |
3460 | *(data2 + i) = *(data2 + i) + 1; | |
3461 | data3 = malloc(pagesize); | |
3462 | if (!data3) | |
3463 | exit(1); | |
3464 | if (read(fd, data3, pagesize) != pagesize) | |
3465 | exit(1); | |
3466 | for (i = 0; i < pagesize; ++i) | |
3467 | if (*(data + i) != *(data3 + i)) | |
3468 | exit(1); | |
3469 | close(fd); | |
3470 | unlink("conftestmmap"); | |
3471 | exit(0); | |
3472 | } | |
3473 | ||
3474 | EOF | |
fdbafa10 | 3475 | if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
3476 | then |
3477 | ac_cv_func_mmap_fixed_mapped=yes | |
3478 | else | |
3479 | echo "configure: failed program was:" >&5 | |
3480 | cat conftest.$ac_ext >&5 | |
3481 | rm -fr conftest* | |
3482 | ac_cv_func_mmap_fixed_mapped=no | |
3483 | fi | |
3484 | rm -fr conftest* | |
3485 | fi | |
3486 | ||
3487 | fi | |
3488 | ||
3489 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
3490 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
3491 | cat >> confdefs.h <<\EOF | |
3492 | #define HAVE_MMAP 1 | |
3493 | EOF | |
3494 | ||
3495 | fi | |
3496 | ||
3497 | ||
3498 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
3499 | unistd.h values.h sys/param.h | |
3500 | do | |
3501 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3502 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
fdbafa10 | 3503 | echo "configure:3504: checking for $ac_hdr" >&5 |
653f71ca | 3504 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
3505 | echo $ac_n "(cached) $ac_c" 1>&6 |
3506 | else | |
3507 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3508 | #line 3509 "configure" |
252b5132 RH |
3509 | #include "confdefs.h" |
3510 | #include <$ac_hdr> | |
3511 | EOF | |
3512 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 3513 | { (eval echo configure:3514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3514 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3515 | if test -z "$ac_err"; then | |
3516 | rm -rf conftest* | |
3517 | eval "ac_cv_header_$ac_safe=yes" | |
3518 | else | |
3519 | echo "$ac_err" >&5 | |
3520 | echo "configure: failed program was:" >&5 | |
3521 | cat conftest.$ac_ext >&5 | |
3522 | rm -rf conftest* | |
3523 | eval "ac_cv_header_$ac_safe=no" | |
3524 | fi | |
3525 | rm -f conftest* | |
3526 | fi | |
3527 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3528 | echo "$ac_t""yes" 1>&6 | |
3529 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3530 | cat >> confdefs.h <<EOF | |
3531 | #define $ac_tr_hdr 1 | |
3532 | EOF | |
3533 | ||
3534 | else | |
3535 | echo "$ac_t""no" 1>&6 | |
3536 | fi | |
3537 | done | |
3538 | ||
3539 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
3540 | __argz_count __argz_stringify __argz_next | |
3541 | do | |
3542 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fdbafa10 | 3543 | echo "configure:3544: checking for $ac_func" >&5 |
653f71ca | 3544 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3545 | echo $ac_n "(cached) $ac_c" 1>&6 |
3546 | else | |
3547 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3548 | #line 3549 "configure" |
252b5132 RH |
3549 | #include "confdefs.h" |
3550 | /* System header to define __stub macros and hopefully few prototypes, | |
3551 | which can conflict with char $ac_func(); below. */ | |
3552 | #include <assert.h> | |
3553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3554 | /* We use char because int might match the return type of a gcc2 | |
3555 | builtin and then its argument prototype would still apply. */ | |
3556 | char $ac_func(); | |
3557 | ||
3558 | int main() { | |
3559 | ||
3560 | /* The GNU C library defines this for functions which it implements | |
3561 | to always fail with ENOSYS. Some functions are actually named | |
3562 | something starting with __ and the normal name is an alias. */ | |
3563 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3564 | choke me | |
3565 | #else | |
653f71ca | 3566 | $ac_func(); |
252b5132 RH |
3567 | #endif |
3568 | ||
3569 | ; return 0; } | |
3570 | EOF | |
fdbafa10 | 3571 | if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3572 | rm -rf conftest* |
3573 | eval "ac_cv_func_$ac_func=yes" | |
3574 | else | |
3575 | echo "configure: failed program was:" >&5 | |
3576 | cat conftest.$ac_ext >&5 | |
3577 | rm -rf conftest* | |
3578 | eval "ac_cv_func_$ac_func=no" | |
3579 | fi | |
3580 | rm -f conftest* | |
3581 | fi | |
3582 | ||
3583 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3584 | echo "$ac_t""yes" 1>&6 | |
3585 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3586 | cat >> confdefs.h <<EOF | |
3587 | #define $ac_tr_func 1 | |
3588 | EOF | |
3589 | ||
3590 | else | |
3591 | echo "$ac_t""no" 1>&6 | |
3592 | fi | |
3593 | done | |
3594 | ||
3595 | ||
3596 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
3597 | for ac_func in stpcpy | |
3598 | do | |
3599 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fdbafa10 | 3600 | echo "configure:3601: checking for $ac_func" >&5 |
653f71ca | 3601 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3602 | echo $ac_n "(cached) $ac_c" 1>&6 |
3603 | else | |
3604 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3605 | #line 3606 "configure" |
252b5132 RH |
3606 | #include "confdefs.h" |
3607 | /* System header to define __stub macros and hopefully few prototypes, | |
3608 | which can conflict with char $ac_func(); below. */ | |
3609 | #include <assert.h> | |
3610 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3611 | /* We use char because int might match the return type of a gcc2 | |
3612 | builtin and then its argument prototype would still apply. */ | |
3613 | char $ac_func(); | |
3614 | ||
3615 | int main() { | |
3616 | ||
3617 | /* The GNU C library defines this for functions which it implements | |
3618 | to always fail with ENOSYS. Some functions are actually named | |
3619 | something starting with __ and the normal name is an alias. */ | |
3620 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3621 | choke me | |
3622 | #else | |
653f71ca | 3623 | $ac_func(); |
252b5132 RH |
3624 | #endif |
3625 | ||
3626 | ; return 0; } | |
3627 | EOF | |
fdbafa10 | 3628 | if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3629 | rm -rf conftest* |
3630 | eval "ac_cv_func_$ac_func=yes" | |
3631 | else | |
3632 | echo "configure: failed program was:" >&5 | |
3633 | cat conftest.$ac_ext >&5 | |
3634 | rm -rf conftest* | |
3635 | eval "ac_cv_func_$ac_func=no" | |
3636 | fi | |
3637 | rm -f conftest* | |
3638 | fi | |
3639 | ||
3640 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3641 | echo "$ac_t""yes" 1>&6 | |
3642 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3643 | cat >> confdefs.h <<EOF | |
3644 | #define $ac_tr_func 1 | |
3645 | EOF | |
3646 | ||
3647 | else | |
3648 | echo "$ac_t""no" 1>&6 | |
3649 | fi | |
3650 | done | |
3651 | ||
3652 | fi | |
3653 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
3654 | cat >> confdefs.h <<\EOF | |
3655 | #define HAVE_STPCPY 1 | |
3656 | EOF | |
3657 | ||
3658 | fi | |
3659 | ||
3660 | if test $ac_cv_header_locale_h = yes; then | |
3661 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
fdbafa10 | 3662 | echo "configure:3663: checking for LC_MESSAGES" >&5 |
653f71ca | 3663 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
252b5132 RH |
3664 | echo $ac_n "(cached) $ac_c" 1>&6 |
3665 | else | |
3666 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3667 | #line 3668 "configure" |
252b5132 RH |
3668 | #include "confdefs.h" |
3669 | #include <locale.h> | |
3670 | int main() { | |
3671 | return LC_MESSAGES | |
3672 | ; return 0; } | |
3673 | EOF | |
fdbafa10 | 3674 | if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3675 | rm -rf conftest* |
3676 | am_cv_val_LC_MESSAGES=yes | |
3677 | else | |
3678 | echo "configure: failed program was:" >&5 | |
3679 | cat conftest.$ac_ext >&5 | |
3680 | rm -rf conftest* | |
3681 | am_cv_val_LC_MESSAGES=no | |
3682 | fi | |
3683 | rm -f conftest* | |
3684 | fi | |
3685 | ||
3686 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
3687 | if test $am_cv_val_LC_MESSAGES = yes; then | |
3688 | cat >> confdefs.h <<\EOF | |
3689 | #define HAVE_LC_MESSAGES 1 | |
3690 | EOF | |
3691 | ||
3692 | fi | |
3693 | fi | |
3694 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
fdbafa10 | 3695 | echo "configure:3696: checking whether NLS is requested" >&5 |
252b5132 RH |
3696 | # Check whether --enable-nls or --disable-nls was given. |
3697 | if test "${enable_nls+set}" = set; then | |
3698 | enableval="$enable_nls" | |
3699 | USE_NLS=$enableval | |
3700 | else | |
3701 | USE_NLS=yes | |
3702 | fi | |
3703 | ||
3704 | echo "$ac_t""$USE_NLS" 1>&6 | |
3705 | ||
3706 | ||
3707 | USE_INCLUDED_LIBINTL=no | |
3708 | ||
3709 | if test "$USE_NLS" = "yes"; then | |
3710 | cat >> confdefs.h <<\EOF | |
3711 | #define ENABLE_NLS 1 | |
3712 | EOF | |
3713 | ||
3714 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
fdbafa10 | 3715 | echo "configure:3716: checking whether included gettext is requested" >&5 |
252b5132 RH |
3716 | # Check whether --with-included-gettext or --without-included-gettext was given. |
3717 | if test "${with_included_gettext+set}" = set; then | |
3718 | withval="$with_included_gettext" | |
3719 | nls_cv_force_use_gnu_gettext=$withval | |
3720 | else | |
3721 | nls_cv_force_use_gnu_gettext=no | |
3722 | fi | |
3723 | ||
3724 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
3725 | ||
3726 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
3727 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
3728 | nls_cv_header_intl= | |
3729 | nls_cv_header_libgt= | |
3730 | CATOBJEXT=NONE | |
3731 | ||
3732 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
3733 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
fdbafa10 | 3734 | echo "configure:3735: checking for libintl.h" >&5 |
653f71ca | 3735 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
3736 | echo $ac_n "(cached) $ac_c" 1>&6 |
3737 | else | |
3738 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3739 | #line 3740 "configure" |
252b5132 RH |
3740 | #include "confdefs.h" |
3741 | #include <libintl.h> | |
3742 | EOF | |
3743 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 3744 | { (eval echo configure:3745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3745 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3746 | if test -z "$ac_err"; then | |
3747 | rm -rf conftest* | |
3748 | eval "ac_cv_header_$ac_safe=yes" | |
3749 | else | |
3750 | echo "$ac_err" >&5 | |
3751 | echo "configure: failed program was:" >&5 | |
3752 | cat conftest.$ac_ext >&5 | |
3753 | rm -rf conftest* | |
3754 | eval "ac_cv_header_$ac_safe=no" | |
3755 | fi | |
3756 | rm -f conftest* | |
3757 | fi | |
3758 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3759 | echo "$ac_t""yes" 1>&6 | |
3760 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
fdbafa10 | 3761 | echo "configure:3762: checking for gettext in libc" >&5 |
653f71ca | 3762 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
252b5132 RH |
3763 | echo $ac_n "(cached) $ac_c" 1>&6 |
3764 | else | |
3765 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3766 | #line 3767 "configure" |
252b5132 RH |
3767 | #include "confdefs.h" |
3768 | #include <libintl.h> | |
3769 | int main() { | |
3770 | return (int) gettext ("") | |
3771 | ; return 0; } | |
3772 | EOF | |
fdbafa10 | 3773 | if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3774 | rm -rf conftest* |
3775 | gt_cv_func_gettext_libc=yes | |
3776 | else | |
3777 | echo "configure: failed program was:" >&5 | |
3778 | cat conftest.$ac_ext >&5 | |
3779 | rm -rf conftest* | |
3780 | gt_cv_func_gettext_libc=no | |
3781 | fi | |
3782 | rm -f conftest* | |
3783 | fi | |
3784 | ||
3785 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
3786 | ||
3787 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
3788 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
fdbafa10 | 3789 | echo "configure:3790: checking for bindtextdomain in -lintl" >&5 |
653f71ca KB |
3790 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
3791 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
252b5132 RH |
3792 | echo $ac_n "(cached) $ac_c" 1>&6 |
3793 | else | |
3794 | ac_save_LIBS="$LIBS" | |
3795 | LIBS="-lintl $LIBS" | |
3796 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3797 | #line 3798 "configure" |
252b5132 RH |
3798 | #include "confdefs.h" |
3799 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3800 | /* We use char because int might match the return type of a gcc2 | |
3801 | builtin and then its argument prototype would still apply. */ | |
3802 | char bindtextdomain(); | |
3803 | ||
3804 | int main() { | |
3805 | bindtextdomain() | |
3806 | ; return 0; } | |
3807 | EOF | |
fdbafa10 | 3808 | if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3809 | rm -rf conftest* |
3810 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3811 | else | |
3812 | echo "configure: failed program was:" >&5 | |
3813 | cat conftest.$ac_ext >&5 | |
3814 | rm -rf conftest* | |
3815 | eval "ac_cv_lib_$ac_lib_var=no" | |
3816 | fi | |
3817 | rm -f conftest* | |
3818 | LIBS="$ac_save_LIBS" | |
3819 | ||
3820 | fi | |
3821 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3822 | echo "$ac_t""yes" 1>&6 | |
3823 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
fdbafa10 | 3824 | echo "configure:3825: checking for gettext in libintl" >&5 |
653f71ca | 3825 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
252b5132 RH |
3826 | echo $ac_n "(cached) $ac_c" 1>&6 |
3827 | else | |
3828 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3829 | #line 3830 "configure" |
252b5132 RH |
3830 | #include "confdefs.h" |
3831 | ||
3832 | int main() { | |
3833 | return (int) gettext ("") | |
3834 | ; return 0; } | |
3835 | EOF | |
fdbafa10 | 3836 | if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3837 | rm -rf conftest* |
3838 | gt_cv_func_gettext_libintl=yes | |
3839 | else | |
3840 | echo "configure: failed program was:" >&5 | |
3841 | cat conftest.$ac_ext >&5 | |
3842 | rm -rf conftest* | |
3843 | gt_cv_func_gettext_libintl=no | |
3844 | fi | |
3845 | rm -f conftest* | |
3846 | fi | |
3847 | ||
3848 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
3849 | else | |
3850 | echo "$ac_t""no" 1>&6 | |
3851 | fi | |
3852 | ||
3853 | fi | |
3854 | ||
3855 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
3856 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
3857 | cat >> confdefs.h <<\EOF | |
3858 | #define HAVE_GETTEXT 1 | |
3859 | EOF | |
3860 | ||
3861 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3862 | set dummy msgfmt; ac_word=$2 | |
3863 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 3864 | echo "configure:3865: checking for $ac_word" >&5 |
653f71ca | 3865 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
252b5132 RH |
3866 | echo $ac_n "(cached) $ac_c" 1>&6 |
3867 | else | |
3868 | case "$MSGFMT" in | |
3869 | /*) | |
3870 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3871 | ;; | |
3872 | *) | |
3873 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3874 | for ac_dir in $PATH; do | |
3875 | test -z "$ac_dir" && ac_dir=. | |
3876 | if test -f $ac_dir/$ac_word; then | |
3877 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
3878 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
3879 | break | |
3880 | fi | |
3881 | fi | |
3882 | done | |
3883 | IFS="$ac_save_ifs" | |
3884 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
3885 | ;; | |
3886 | esac | |
3887 | fi | |
3888 | MSGFMT="$ac_cv_path_MSGFMT" | |
3889 | if test -n "$MSGFMT"; then | |
3890 | echo "$ac_t""$MSGFMT" 1>&6 | |
3891 | else | |
3892 | echo "$ac_t""no" 1>&6 | |
3893 | fi | |
3894 | if test "$MSGFMT" != "no"; then | |
3895 | for ac_func in dcgettext | |
3896 | do | |
3897 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fdbafa10 | 3898 | echo "configure:3899: checking for $ac_func" >&5 |
653f71ca | 3899 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3900 | echo $ac_n "(cached) $ac_c" 1>&6 |
3901 | else | |
3902 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 3903 | #line 3904 "configure" |
252b5132 RH |
3904 | #include "confdefs.h" |
3905 | /* System header to define __stub macros and hopefully few prototypes, | |
3906 | which can conflict with char $ac_func(); below. */ | |
3907 | #include <assert.h> | |
3908 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3909 | /* We use char because int might match the return type of a gcc2 | |
3910 | builtin and then its argument prototype would still apply. */ | |
3911 | char $ac_func(); | |
3912 | ||
3913 | int main() { | |
3914 | ||
3915 | /* The GNU C library defines this for functions which it implements | |
3916 | to always fail with ENOSYS. Some functions are actually named | |
3917 | something starting with __ and the normal name is an alias. */ | |
3918 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3919 | choke me | |
3920 | #else | |
653f71ca | 3921 | $ac_func(); |
252b5132 RH |
3922 | #endif |
3923 | ||
3924 | ; return 0; } | |
3925 | EOF | |
fdbafa10 | 3926 | if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3927 | rm -rf conftest* |
3928 | eval "ac_cv_func_$ac_func=yes" | |
3929 | else | |
3930 | echo "configure: failed program was:" >&5 | |
3931 | cat conftest.$ac_ext >&5 | |
3932 | rm -rf conftest* | |
3933 | eval "ac_cv_func_$ac_func=no" | |
3934 | fi | |
3935 | rm -f conftest* | |
3936 | fi | |
3937 | ||
3938 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3939 | echo "$ac_t""yes" 1>&6 | |
3940 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3941 | cat >> confdefs.h <<EOF | |
3942 | #define $ac_tr_func 1 | |
3943 | EOF | |
3944 | ||
3945 | else | |
3946 | echo "$ac_t""no" 1>&6 | |
3947 | fi | |
3948 | done | |
3949 | ||
3950 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3951 | set dummy gmsgfmt; ac_word=$2 | |
3952 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 3953 | echo "configure:3954: checking for $ac_word" >&5 |
653f71ca | 3954 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
252b5132 RH |
3955 | echo $ac_n "(cached) $ac_c" 1>&6 |
3956 | else | |
3957 | case "$GMSGFMT" in | |
3958 | /*) | |
3959 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3960 | ;; | |
3961 | ?:/*) | |
3962 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
3963 | ;; | |
3964 | *) | |
3965 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3966 | ac_dummy="$PATH" | |
3967 | for ac_dir in $ac_dummy; do | |
3968 | test -z "$ac_dir" && ac_dir=. | |
3969 | if test -f $ac_dir/$ac_word; then | |
3970 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3971 | break | |
3972 | fi | |
3973 | done | |
3974 | IFS="$ac_save_ifs" | |
3975 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3976 | ;; | |
3977 | esac | |
3978 | fi | |
3979 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
3980 | if test -n "$GMSGFMT"; then | |
3981 | echo "$ac_t""$GMSGFMT" 1>&6 | |
3982 | else | |
3983 | echo "$ac_t""no" 1>&6 | |
3984 | fi | |
3985 | ||
3986 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3987 | set dummy xgettext; ac_word=$2 | |
3988 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 3989 | echo "configure:3990: checking for $ac_word" >&5 |
653f71ca | 3990 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
252b5132 RH |
3991 | echo $ac_n "(cached) $ac_c" 1>&6 |
3992 | else | |
3993 | case "$XGETTEXT" in | |
3994 | /*) | |
3995 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3996 | ;; | |
3997 | *) | |
3998 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3999 | for ac_dir in $PATH; do | |
4000 | test -z "$ac_dir" && ac_dir=. | |
4001 | if test -f $ac_dir/$ac_word; then | |
4002 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
4003 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
4004 | break | |
4005 | fi | |
4006 | fi | |
4007 | done | |
4008 | IFS="$ac_save_ifs" | |
4009 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4010 | ;; | |
4011 | esac | |
4012 | fi | |
4013 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
4014 | if test -n "$XGETTEXT"; then | |
4015 | echo "$ac_t""$XGETTEXT" 1>&6 | |
4016 | else | |
4017 | echo "$ac_t""no" 1>&6 | |
4018 | fi | |
4019 | ||
4020 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4021 | #line 4022 "configure" |
252b5132 RH |
4022 | #include "confdefs.h" |
4023 | ||
4024 | int main() { | |
4025 | extern int _nl_msg_cat_cntr; | |
4026 | return _nl_msg_cat_cntr | |
4027 | ; return 0; } | |
4028 | EOF | |
fdbafa10 | 4029 | if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
4030 | rm -rf conftest* |
4031 | CATOBJEXT=.gmo | |
4032 | DATADIRNAME=share | |
4033 | else | |
4034 | echo "configure: failed program was:" >&5 | |
4035 | cat conftest.$ac_ext >&5 | |
4036 | rm -rf conftest* | |
4037 | CATOBJEXT=.mo | |
4038 | DATADIRNAME=lib | |
4039 | fi | |
4040 | rm -f conftest* | |
4041 | INSTOBJEXT=.mo | |
4042 | fi | |
4043 | fi | |
4044 | ||
4045 | else | |
4046 | echo "$ac_t""no" 1>&6 | |
4047 | fi | |
4048 | ||
4049 | ||
4050 | ||
4051 | if test "$CATOBJEXT" = "NONE"; then | |
4052 | nls_cv_use_gnu_gettext=yes | |
4053 | fi | |
4054 | fi | |
4055 | ||
4056 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
4057 | INTLOBJS="\$(GETTOBJS)" | |
4058 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
4059 | set dummy msgfmt; ac_word=$2 | |
4060 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 4061 | echo "configure:4062: checking for $ac_word" >&5 |
653f71ca | 4062 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
252b5132 RH |
4063 | echo $ac_n "(cached) $ac_c" 1>&6 |
4064 | else | |
4065 | case "$MSGFMT" in | |
4066 | /*) | |
4067 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
4068 | ;; | |
4069 | *) | |
4070 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4071 | for ac_dir in $PATH; do | |
4072 | test -z "$ac_dir" && ac_dir=. | |
4073 | if test -f $ac_dir/$ac_word; then | |
4074 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
4075 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
4076 | break | |
4077 | fi | |
4078 | fi | |
4079 | done | |
4080 | IFS="$ac_save_ifs" | |
4081 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
4082 | ;; | |
4083 | esac | |
4084 | fi | |
4085 | MSGFMT="$ac_cv_path_MSGFMT" | |
4086 | if test -n "$MSGFMT"; then | |
4087 | echo "$ac_t""$MSGFMT" 1>&6 | |
4088 | else | |
4089 | echo "$ac_t""no" 1>&6 | |
4090 | fi | |
4091 | ||
4092 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
4093 | set dummy gmsgfmt; ac_word=$2 | |
4094 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 4095 | echo "configure:4096: checking for $ac_word" >&5 |
653f71ca | 4096 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
252b5132 RH |
4097 | echo $ac_n "(cached) $ac_c" 1>&6 |
4098 | else | |
4099 | case "$GMSGFMT" in | |
4100 | /*) | |
4101 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
4102 | ;; | |
4103 | ?:/*) | |
4104 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
4105 | ;; | |
4106 | *) | |
4107 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4108 | ac_dummy="$PATH" | |
4109 | for ac_dir in $ac_dummy; do | |
4110 | test -z "$ac_dir" && ac_dir=. | |
4111 | if test -f $ac_dir/$ac_word; then | |
4112 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
4113 | break | |
4114 | fi | |
4115 | done | |
4116 | IFS="$ac_save_ifs" | |
4117 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
4118 | ;; | |
4119 | esac | |
4120 | fi | |
4121 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
4122 | if test -n "$GMSGFMT"; then | |
4123 | echo "$ac_t""$GMSGFMT" 1>&6 | |
4124 | else | |
4125 | echo "$ac_t""no" 1>&6 | |
4126 | fi | |
4127 | ||
4128 | # Extract the first word of "xgettext", so it can be a program name with args. | |
4129 | set dummy xgettext; ac_word=$2 | |
4130 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fdbafa10 | 4131 | echo "configure:4132: checking for $ac_word" >&5 |
653f71ca | 4132 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
252b5132 RH |
4133 | echo $ac_n "(cached) $ac_c" 1>&6 |
4134 | else | |
4135 | case "$XGETTEXT" in | |
4136 | /*) | |
4137 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
4138 | ;; | |
4139 | *) | |
4140 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4141 | for ac_dir in $PATH; do | |
4142 | test -z "$ac_dir" && ac_dir=. | |
4143 | if test -f $ac_dir/$ac_word; then | |
4144 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
4145 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
4146 | break | |
4147 | fi | |
4148 | fi | |
4149 | done | |
4150 | IFS="$ac_save_ifs" | |
4151 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4152 | ;; | |
4153 | esac | |
4154 | fi | |
4155 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
4156 | if test -n "$XGETTEXT"; then | |
4157 | echo "$ac_t""$XGETTEXT" 1>&6 | |
4158 | else | |
4159 | echo "$ac_t""no" 1>&6 | |
4160 | fi | |
4161 | ||
4162 | ||
4163 | USE_INCLUDED_LIBINTL=yes | |
4164 | CATOBJEXT=.gmo | |
4165 | INSTOBJEXT=.mo | |
4166 | DATADIRNAME=share | |
4167 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
4168 | INTLLIBS=$INTLDEPS | |
4169 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
4170 | nls_cv_header_intl=libintl.h | |
4171 | nls_cv_header_libgt=libgettext.h | |
4172 | fi | |
4173 | ||
4174 | if test "$XGETTEXT" != ":"; then | |
4175 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
4176 | : ; | |
4177 | else | |
4178 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 | |
4179 | XGETTEXT=":" | |
4180 | fi | |
4181 | fi | |
4182 | ||
4183 | # We need to process the po/ directory. | |
4184 | POSUB=po | |
4185 | else | |
4186 | DATADIRNAME=share | |
4187 | nls_cv_header_intl=libintl.h | |
4188 | nls_cv_header_libgt=libgettext.h | |
4189 | fi | |
4190 | ||
4191 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
4192 | # because some of the sources are only built for this goal. | |
4193 | if test "$PACKAGE" = gettext; then | |
4194 | USE_NLS=yes | |
4195 | USE_INCLUDED_LIBINTL=yes | |
4196 | fi | |
4197 | ||
4198 | for lang in $ALL_LINGUAS; do | |
4199 | GMOFILES="$GMOFILES $lang.gmo" | |
4200 | POFILES="$POFILES $lang.po" | |
4201 | done | |
4202 | ||
4203 | ||
4204 | ||
4205 | ||
4206 | ||
4207 | ||
4208 | ||
4209 | ||
4210 | ||
4211 | ||
4212 | ||
4213 | ||
4214 | ||
4215 | ||
4216 | if test "x$CATOBJEXT" != "x"; then | |
4217 | if test "x$ALL_LINGUAS" = "x"; then | |
4218 | LINGUAS= | |
4219 | else | |
4220 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
fdbafa10 | 4221 | echo "configure:4222: checking for catalogs to be installed" >&5 |
252b5132 RH |
4222 | NEW_LINGUAS= |
4223 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
4224 | case "$ALL_LINGUAS" in | |
4225 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
4226 | esac | |
4227 | done | |
4228 | LINGUAS=$NEW_LINGUAS | |
4229 | echo "$ac_t""$LINGUAS" 1>&6 | |
4230 | fi | |
4231 | ||
4232 | if test -n "$LINGUAS"; then | |
4233 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
4234 | fi | |
4235 | fi | |
4236 | ||
4237 | if test $ac_cv_header_locale_h = yes; then | |
4238 | INCLUDE_LOCALE_H="#include <locale.h>" | |
4239 | else | |
4240 | INCLUDE_LOCALE_H="\ | |
4241 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
4242 | fi | |
4243 | ||
4244 | ||
4245 | if test -f $srcdir/po2tbl.sed.in; then | |
4246 | if test "$CATOBJEXT" = ".cat"; then | |
4247 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
4248 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
fdbafa10 | 4249 | echo "configure:4250: checking for linux/version.h" >&5 |
653f71ca | 4250 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
4251 | echo $ac_n "(cached) $ac_c" 1>&6 |
4252 | else | |
4253 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4254 | #line 4255 "configure" |
252b5132 RH |
4255 | #include "confdefs.h" |
4256 | #include <linux/version.h> | |
4257 | EOF | |
4258 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 4259 | { (eval echo configure:4260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
4260 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4261 | if test -z "$ac_err"; then | |
4262 | rm -rf conftest* | |
4263 | eval "ac_cv_header_$ac_safe=yes" | |
4264 | else | |
4265 | echo "$ac_err" >&5 | |
4266 | echo "configure: failed program was:" >&5 | |
4267 | cat conftest.$ac_ext >&5 | |
4268 | rm -rf conftest* | |
4269 | eval "ac_cv_header_$ac_safe=no" | |
4270 | fi | |
4271 | rm -f conftest* | |
4272 | fi | |
4273 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4274 | echo "$ac_t""yes" 1>&6 | |
4275 | msgformat=linux | |
4276 | else | |
4277 | echo "$ac_t""no" 1>&6 | |
4278 | msgformat=xopen | |
4279 | fi | |
4280 | ||
4281 | ||
4282 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
4283 | fi | |
4284 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
4285 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
4286 | fi | |
4287 | ||
4288 | if test "$PACKAGE" = "gettext"; then | |
4289 | GT_NO="#NO#" | |
4290 | GT_YES= | |
4291 | else | |
4292 | GT_NO= | |
4293 | GT_YES="#YES#" | |
4294 | fi | |
4295 | ||
4296 | ||
4297 | ||
4298 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
4299 | ||
4300 | ||
4301 | l= | |
4302 | ||
4303 | ||
4304 | if test -d $srcdir/po; then | |
4305 | test -d po || mkdir po | |
4306 | if test "x$srcdir" != "x."; then | |
4307 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
4308 | posrcprefix="$srcdir/" | |
4309 | else | |
4310 | posrcprefix="../$srcdir/" | |
4311 | fi | |
4312 | else | |
4313 | posrcprefix="../" | |
4314 | fi | |
4315 | rm -f po/POTFILES | |
4316 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
4317 | < $srcdir/po/POTFILES.in > po/POTFILES | |
4318 | fi | |
4319 | ||
4320 | ||
4321 | # Permit host specific settings. | |
4322 | . ${srcdir}/configure.host | |
4323 | ||
4324 | ||
4325 | # Find a good install program. We prefer a C program (faster), | |
4326 | # so one script is as good as another. But avoid the broken or | |
4327 | # incompatible versions: | |
4328 | # SysV /etc/install, /usr/sbin/install | |
4329 | # SunOS /usr/etc/install | |
4330 | # IRIX /sbin/install | |
4331 | # AIX /bin/install | |
4332 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4333 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4334 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4335 | # ./install, which can be erroneously created by make from ./install.sh. | |
4336 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
fdbafa10 | 4337 | echo "configure:4338: checking for a BSD compatible install" >&5 |
252b5132 | 4338 | if test -z "$INSTALL"; then |
653f71ca | 4339 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
252b5132 RH |
4340 | echo $ac_n "(cached) $ac_c" 1>&6 |
4341 | else | |
4342 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
4343 | for ac_dir in $PATH; do | |
4344 | # Account for people who put trailing slashes in PATH elements. | |
4345 | case "$ac_dir/" in | |
4346 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
4347 | *) | |
4348 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4349 | # Don't use installbsd from OSF since it installs stuff as root | |
4350 | # by default. | |
4351 | for ac_prog in ginstall scoinst install; do | |
4352 | if test -f $ac_dir/$ac_prog; then | |
4353 | if test $ac_prog = install && | |
4354 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
4355 | # AIX install. It has an incompatible calling convention. | |
4356 | : | |
4357 | else | |
4358 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
4359 | break 2 | |
4360 | fi | |
4361 | fi | |
4362 | done | |
4363 | ;; | |
4364 | esac | |
4365 | done | |
4366 | IFS="$ac_save_IFS" | |
4367 | ||
4368 | fi | |
4369 | if test "${ac_cv_path_install+set}" = set; then | |
4370 | INSTALL="$ac_cv_path_install" | |
4371 | else | |
4372 | # As a last resort, use the slow shell script. We don't cache a | |
4373 | # path for INSTALL within a source directory, because that will | |
4374 | # break other packages using the cache if that directory is | |
4375 | # removed, or if the path is relative. | |
4376 | INSTALL="$ac_install_sh" | |
4377 | fi | |
4378 | fi | |
4379 | echo "$ac_t""$INSTALL" 1>&6 | |
4380 | ||
4381 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4382 | # It thinks the first close brace ends the variable substitution. | |
4383 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4384 | ||
653f71ca | 4385 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
252b5132 RH |
4386 | |
4387 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4388 | ||
4389 | ||
4390 | BFD_HOST_64BIT_LONG=0 | |
4391 | BFD_HOST_64_BIT_DEFINED=0 | |
4392 | BFD_HOST_64_BIT= | |
4393 | BFD_HOST_U_64_BIT= | |
4394 | if test "x${HOST_64BIT_TYPE}" = "xlong"; then | |
4395 | BFD_HOST_64BIT_LONG=1 | |
4396 | elif test "x${HOST_64BIT_TYPE}" != "x"; then | |
4397 | BFD_HOST_64_BIT_DEFINED=1 | |
4398 | BFD_HOST_64_BIT=${HOST_64BIT_TYPE} | |
4399 | BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE} | |
4400 | fi | |
4401 | ||
4402 | ||
4403 | ||
4404 | ||
4405 | ||
4406 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
4407 | if test -z "$CC_FOR_BUILD"; then | |
4408 | if test "x$cross_compiling" = "xno"; then | |
4409 | CC_FOR_BUILD='$(CC)' | |
4410 | else | |
4411 | CC_FOR_BUILD=gcc | |
4412 | fi | |
4413 | fi | |
4414 | ||
4415 | # Also set EXEEXT_FOR_BUILD. | |
4416 | if test "x$cross_compiling" = "xno"; then | |
4417 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
4418 | else | |
4419 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 | |
fdbafa10 | 4420 | echo "configure:4421: checking for build system executable suffix" >&5 |
653f71ca | 4421 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then |
252b5132 RH |
4422 | echo $ac_n "(cached) $ac_c" 1>&6 |
4423 | else | |
aab08431 ILT |
4424 | rm -f conftest* |
4425 | echo 'int main () { return 0; }' > conftest.c | |
4426 | bfd_cv_build_exeext= | |
4427 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
4428 | for file in conftest.*; do | |
4429 | case $file in | |
4430 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
4431 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
4432 | esac | |
4433 | done | |
4434 | rm -f conftest* | |
4435 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 RH |
4436 | fi |
4437 | ||
4438 | echo "$ac_t""$bfd_cv_build_exeext" 1>&6 | |
4439 | EXEEXT_FOR_BUILD="" | |
4440 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
4441 | fi | |
4442 | ||
4443 | ||
4444 | for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h | |
4445 | do | |
4446 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
4447 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
fdbafa10 | 4448 | echo "configure:4449: checking for $ac_hdr" >&5 |
653f71ca | 4449 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
4450 | echo $ac_n "(cached) $ac_c" 1>&6 |
4451 | else | |
4452 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4453 | #line 4454 "configure" |
252b5132 RH |
4454 | #include "confdefs.h" |
4455 | #include <$ac_hdr> | |
4456 | EOF | |
4457 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 4458 | { (eval echo configure:4459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
4459 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4460 | if test -z "$ac_err"; then | |
4461 | rm -rf conftest* | |
4462 | eval "ac_cv_header_$ac_safe=yes" | |
4463 | else | |
4464 | echo "$ac_err" >&5 | |
4465 | echo "configure: failed program was:" >&5 | |
4466 | cat conftest.$ac_ext >&5 | |
4467 | rm -rf conftest* | |
4468 | eval "ac_cv_header_$ac_safe=no" | |
4469 | fi | |
4470 | rm -f conftest* | |
4471 | fi | |
4472 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4473 | echo "$ac_t""yes" 1>&6 | |
4474 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4475 | cat >> confdefs.h <<EOF | |
4476 | #define $ac_tr_hdr 1 | |
4477 | EOF | |
4478 | ||
4479 | else | |
4480 | echo "$ac_t""no" 1>&6 | |
4481 | fi | |
4482 | done | |
4483 | ||
4484 | for ac_hdr in fcntl.h sys/file.h sys/time.h | |
4485 | do | |
4486 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
4487 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
fdbafa10 | 4488 | echo "configure:4489: checking for $ac_hdr" >&5 |
653f71ca | 4489 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
4490 | echo $ac_n "(cached) $ac_c" 1>&6 |
4491 | else | |
4492 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4493 | #line 4494 "configure" |
252b5132 RH |
4494 | #include "confdefs.h" |
4495 | #include <$ac_hdr> | |
4496 | EOF | |
4497 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 4498 | { (eval echo configure:4499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
4499 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4500 | if test -z "$ac_err"; then | |
4501 | rm -rf conftest* | |
4502 | eval "ac_cv_header_$ac_safe=yes" | |
4503 | else | |
4504 | echo "$ac_err" >&5 | |
4505 | echo "configure: failed program was:" >&5 | |
4506 | cat conftest.$ac_ext >&5 | |
4507 | rm -rf conftest* | |
4508 | eval "ac_cv_header_$ac_safe=no" | |
4509 | fi | |
4510 | rm -f conftest* | |
4511 | fi | |
4512 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4513 | echo "$ac_t""yes" 1>&6 | |
4514 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4515 | cat >> confdefs.h <<EOF | |
4516 | #define $ac_tr_hdr 1 | |
4517 | EOF | |
4518 | ||
4519 | else | |
4520 | echo "$ac_t""no" 1>&6 | |
4521 | fi | |
4522 | done | |
4523 | ||
4524 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
fdbafa10 | 4525 | echo "configure:4526: checking whether time.h and sys/time.h may both be included" >&5 |
653f71ca | 4526 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
252b5132 RH |
4527 | echo $ac_n "(cached) $ac_c" 1>&6 |
4528 | else | |
4529 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4530 | #line 4531 "configure" |
252b5132 RH |
4531 | #include "confdefs.h" |
4532 | #include <sys/types.h> | |
4533 | #include <sys/time.h> | |
4534 | #include <time.h> | |
4535 | int main() { | |
4536 | struct tm *tp; | |
4537 | ; return 0; } | |
4538 | EOF | |
fdbafa10 | 4539 | if { (eval echo configure:4540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
4540 | rm -rf conftest* |
4541 | ac_cv_header_time=yes | |
4542 | else | |
4543 | echo "configure: failed program was:" >&5 | |
4544 | cat conftest.$ac_ext >&5 | |
4545 | rm -rf conftest* | |
4546 | ac_cv_header_time=no | |
4547 | fi | |
4548 | rm -f conftest* | |
4549 | fi | |
4550 | ||
4551 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
4552 | if test $ac_cv_header_time = yes; then | |
4553 | cat >> confdefs.h <<\EOF | |
4554 | #define TIME_WITH_SYS_TIME 1 | |
4555 | EOF | |
4556 | ||
4557 | fi | |
4558 | ||
4559 | ac_header_dirent=no | |
4560 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | |
4561 | do | |
4562 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
4563 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | |
fdbafa10 | 4564 | echo "configure:4565: checking for $ac_hdr that defines DIR" >&5 |
653f71ca | 4565 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
4566 | echo $ac_n "(cached) $ac_c" 1>&6 |
4567 | else | |
4568 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4569 | #line 4570 "configure" |
252b5132 RH |
4570 | #include "confdefs.h" |
4571 | #include <sys/types.h> | |
4572 | #include <$ac_hdr> | |
4573 | int main() { | |
4574 | DIR *dirp = 0; | |
4575 | ; return 0; } | |
4576 | EOF | |
fdbafa10 | 4577 | if { (eval echo configure:4578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
4578 | rm -rf conftest* |
4579 | eval "ac_cv_header_dirent_$ac_safe=yes" | |
4580 | else | |
4581 | echo "configure: failed program was:" >&5 | |
4582 | cat conftest.$ac_ext >&5 | |
4583 | rm -rf conftest* | |
4584 | eval "ac_cv_header_dirent_$ac_safe=no" | |
4585 | fi | |
4586 | rm -f conftest* | |
4587 | fi | |
4588 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then | |
4589 | echo "$ac_t""yes" 1>&6 | |
4590 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4591 | cat >> confdefs.h <<EOF | |
4592 | #define $ac_tr_hdr 1 | |
4593 | EOF | |
4594 | ac_header_dirent=$ac_hdr; break | |
4595 | else | |
4596 | echo "$ac_t""no" 1>&6 | |
4597 | fi | |
4598 | done | |
4599 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4600 | if test $ac_header_dirent = dirent.h; then | |
4601 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | |
fdbafa10 | 4602 | echo "configure:4603: checking for opendir in -ldir" >&5 |
653f71ca KB |
4603 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
4604 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
252b5132 RH |
4605 | echo $ac_n "(cached) $ac_c" 1>&6 |
4606 | else | |
4607 | ac_save_LIBS="$LIBS" | |
4608 | LIBS="-ldir $LIBS" | |
4609 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4610 | #line 4611 "configure" |
252b5132 RH |
4611 | #include "confdefs.h" |
4612 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4613 | /* We use char because int might match the return type of a gcc2 | |
4614 | builtin and then its argument prototype would still apply. */ | |
4615 | char opendir(); | |
4616 | ||
4617 | int main() { | |
4618 | opendir() | |
4619 | ; return 0; } | |
4620 | EOF | |
fdbafa10 | 4621 | if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
4622 | rm -rf conftest* |
4623 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4624 | else | |
4625 | echo "configure: failed program was:" >&5 | |
4626 | cat conftest.$ac_ext >&5 | |
4627 | rm -rf conftest* | |
4628 | eval "ac_cv_lib_$ac_lib_var=no" | |
4629 | fi | |
4630 | rm -f conftest* | |
4631 | LIBS="$ac_save_LIBS" | |
4632 | ||
4633 | fi | |
4634 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4635 | echo "$ac_t""yes" 1>&6 | |
4636 | LIBS="$LIBS -ldir" | |
4637 | else | |
4638 | echo "$ac_t""no" 1>&6 | |
4639 | fi | |
4640 | ||
4641 | else | |
4642 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | |
fdbafa10 | 4643 | echo "configure:4644: checking for opendir in -lx" >&5 |
653f71ca KB |
4644 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
4645 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
252b5132 RH |
4646 | echo $ac_n "(cached) $ac_c" 1>&6 |
4647 | else | |
4648 | ac_save_LIBS="$LIBS" | |
4649 | LIBS="-lx $LIBS" | |
4650 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4651 | #line 4652 "configure" |
252b5132 RH |
4652 | #include "confdefs.h" |
4653 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4654 | /* We use char because int might match the return type of a gcc2 | |
4655 | builtin and then its argument prototype would still apply. */ | |
4656 | char opendir(); | |
4657 | ||
4658 | int main() { | |
4659 | opendir() | |
4660 | ; return 0; } | |
4661 | EOF | |
fdbafa10 | 4662 | if { (eval echo configure:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
4663 | rm -rf conftest* |
4664 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4665 | else | |
4666 | echo "configure: failed program was:" >&5 | |
4667 | cat conftest.$ac_ext >&5 | |
4668 | rm -rf conftest* | |
4669 | eval "ac_cv_lib_$ac_lib_var=no" | |
4670 | fi | |
4671 | rm -f conftest* | |
4672 | LIBS="$ac_save_LIBS" | |
4673 | ||
4674 | fi | |
4675 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4676 | echo "$ac_t""yes" 1>&6 | |
4677 | LIBS="$LIBS -lx" | |
4678 | else | |
4679 | echo "$ac_t""no" 1>&6 | |
4680 | fi | |
4681 | ||
4682 | fi | |
4683 | ||
633fd09f | 4684 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
252b5132 RH |
4685 | do |
4686 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fdbafa10 | 4687 | echo "configure:4688: checking for $ac_func" >&5 |
653f71ca | 4688 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
4689 | echo $ac_n "(cached) $ac_c" 1>&6 |
4690 | else | |
4691 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4692 | #line 4693 "configure" |
252b5132 RH |
4693 | #include "confdefs.h" |
4694 | /* System header to define __stub macros and hopefully few prototypes, | |
4695 | which can conflict with char $ac_func(); below. */ | |
4696 | #include <assert.h> | |
4697 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4698 | /* We use char because int might match the return type of a gcc2 | |
4699 | builtin and then its argument prototype would still apply. */ | |
4700 | char $ac_func(); | |
4701 | ||
4702 | int main() { | |
4703 | ||
4704 | /* The GNU C library defines this for functions which it implements | |
4705 | to always fail with ENOSYS. Some functions are actually named | |
4706 | something starting with __ and the normal name is an alias. */ | |
4707 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4708 | choke me | |
4709 | #else | |
653f71ca | 4710 | $ac_func(); |
252b5132 RH |
4711 | #endif |
4712 | ||
4713 | ; return 0; } | |
4714 | EOF | |
fdbafa10 | 4715 | if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
4716 | rm -rf conftest* |
4717 | eval "ac_cv_func_$ac_func=yes" | |
4718 | else | |
4719 | echo "configure: failed program was:" >&5 | |
4720 | cat conftest.$ac_ext >&5 | |
4721 | rm -rf conftest* | |
4722 | eval "ac_cv_func_$ac_func=no" | |
4723 | fi | |
4724 | rm -f conftest* | |
4725 | fi | |
4726 | ||
4727 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4728 | echo "$ac_t""yes" 1>&6 | |
4729 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4730 | cat >> confdefs.h <<EOF | |
4731 | #define $ac_tr_func 1 | |
4732 | EOF | |
4733 | ||
4734 | else | |
4735 | echo "$ac_t""no" 1>&6 | |
4736 | fi | |
4737 | done | |
4738 | ||
4739 | ||
4740 | ||
4741 | case "${host}" in | |
855b0be7 | 4742 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
252b5132 RH |
4743 | cat >> confdefs.h <<\EOF |
4744 | #define USE_BINARY_FOPEN 1 | |
4745 | EOF | |
4746 | ;; | |
4747 | esac | |
4748 | ||
4749 | echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 | |
fdbafa10 | 4750 | echo "configure:4751: checking whether strstr must be declared" >&5 |
653f71ca | 4751 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then |
252b5132 RH |
4752 | echo $ac_n "(cached) $ac_c" 1>&6 |
4753 | else | |
4754 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4755 | #line 4756 "configure" |
252b5132 RH |
4756 | #include "confdefs.h" |
4757 | ||
4758 | #include <stdio.h> | |
4759 | #ifdef HAVE_STRING_H | |
4760 | #include <string.h> | |
4761 | #else | |
4762 | #ifdef HAVE_STRINGS_H | |
4763 | #include <strings.h> | |
4764 | #endif | |
4765 | #endif | |
4766 | #ifdef HAVE_STDLIB_H | |
4767 | #include <stdlib.h> | |
4768 | #endif | |
4769 | #ifdef HAVE_UNISTD_H | |
4770 | #include <unistd.h> | |
4771 | #endif | |
4772 | int main() { | |
4773 | char *(*pfn) = (char *(*)) strstr | |
4774 | ; return 0; } | |
4775 | EOF | |
fdbafa10 | 4776 | if { (eval echo configure:4777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
4777 | rm -rf conftest* |
4778 | bfd_cv_decl_needed_strstr=no | |
4779 | else | |
4780 | echo "configure: failed program was:" >&5 | |
4781 | cat conftest.$ac_ext >&5 | |
4782 | rm -rf conftest* | |
4783 | bfd_cv_decl_needed_strstr=yes | |
4784 | fi | |
4785 | rm -f conftest* | |
4786 | fi | |
4787 | ||
4788 | echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6 | |
4789 | if test $bfd_cv_decl_needed_strstr = yes; then | |
4790 | cat >> confdefs.h <<\EOF | |
4791 | #define NEED_DECLARATION_STRSTR 1 | |
4792 | EOF | |
4793 | ||
4794 | fi | |
4795 | ||
4796 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 | |
fdbafa10 | 4797 | echo "configure:4798: checking whether malloc must be declared" >&5 |
653f71ca | 4798 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then |
252b5132 RH |
4799 | echo $ac_n "(cached) $ac_c" 1>&6 |
4800 | else | |
4801 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4802 | #line 4803 "configure" |
252b5132 RH |
4803 | #include "confdefs.h" |
4804 | ||
4805 | #include <stdio.h> | |
4806 | #ifdef HAVE_STRING_H | |
4807 | #include <string.h> | |
4808 | #else | |
4809 | #ifdef HAVE_STRINGS_H | |
4810 | #include <strings.h> | |
4811 | #endif | |
4812 | #endif | |
4813 | #ifdef HAVE_STDLIB_H | |
4814 | #include <stdlib.h> | |
4815 | #endif | |
4816 | #ifdef HAVE_UNISTD_H | |
4817 | #include <unistd.h> | |
4818 | #endif | |
4819 | int main() { | |
4820 | char *(*pfn) = (char *(*)) malloc | |
4821 | ; return 0; } | |
4822 | EOF | |
fdbafa10 | 4823 | if { (eval echo configure:4824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
4824 | rm -rf conftest* |
4825 | bfd_cv_decl_needed_malloc=no | |
4826 | else | |
4827 | echo "configure: failed program was:" >&5 | |
4828 | cat conftest.$ac_ext >&5 | |
4829 | rm -rf conftest* | |
4830 | bfd_cv_decl_needed_malloc=yes | |
4831 | fi | |
4832 | rm -f conftest* | |
4833 | fi | |
4834 | ||
4835 | echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6 | |
4836 | if test $bfd_cv_decl_needed_malloc = yes; then | |
4837 | cat >> confdefs.h <<\EOF | |
4838 | #define NEED_DECLARATION_MALLOC 1 | |
4839 | EOF | |
4840 | ||
4841 | fi | |
4842 | ||
4843 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 | |
fdbafa10 | 4844 | echo "configure:4845: checking whether realloc must be declared" >&5 |
653f71ca | 4845 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then |
252b5132 RH |
4846 | echo $ac_n "(cached) $ac_c" 1>&6 |
4847 | else | |
4848 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4849 | #line 4850 "configure" |
252b5132 RH |
4850 | #include "confdefs.h" |
4851 | ||
4852 | #include <stdio.h> | |
4853 | #ifdef HAVE_STRING_H | |
4854 | #include <string.h> | |
4855 | #else | |
4856 | #ifdef HAVE_STRINGS_H | |
4857 | #include <strings.h> | |
4858 | #endif | |
4859 | #endif | |
4860 | #ifdef HAVE_STDLIB_H | |
4861 | #include <stdlib.h> | |
4862 | #endif | |
4863 | #ifdef HAVE_UNISTD_H | |
4864 | #include <unistd.h> | |
4865 | #endif | |
4866 | int main() { | |
4867 | char *(*pfn) = (char *(*)) realloc | |
4868 | ; return 0; } | |
4869 | EOF | |
fdbafa10 | 4870 | if { (eval echo configure:4871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
4871 | rm -rf conftest* |
4872 | bfd_cv_decl_needed_realloc=no | |
4873 | else | |
4874 | echo "configure: failed program was:" >&5 | |
4875 | cat conftest.$ac_ext >&5 | |
4876 | rm -rf conftest* | |
4877 | bfd_cv_decl_needed_realloc=yes | |
4878 | fi | |
4879 | rm -f conftest* | |
4880 | fi | |
4881 | ||
4882 | echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6 | |
4883 | if test $bfd_cv_decl_needed_realloc = yes; then | |
4884 | cat >> confdefs.h <<\EOF | |
4885 | #define NEED_DECLARATION_REALLOC 1 | |
4886 | EOF | |
4887 | ||
4888 | fi | |
4889 | ||
4890 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 | |
fdbafa10 | 4891 | echo "configure:4892: checking whether free must be declared" >&5 |
653f71ca | 4892 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then |
252b5132 RH |
4893 | echo $ac_n "(cached) $ac_c" 1>&6 |
4894 | else | |
4895 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4896 | #line 4897 "configure" |
252b5132 RH |
4897 | #include "confdefs.h" |
4898 | ||
4899 | #include <stdio.h> | |
4900 | #ifdef HAVE_STRING_H | |
4901 | #include <string.h> | |
4902 | #else | |
4903 | #ifdef HAVE_STRINGS_H | |
4904 | #include <strings.h> | |
4905 | #endif | |
4906 | #endif | |
4907 | #ifdef HAVE_STDLIB_H | |
4908 | #include <stdlib.h> | |
4909 | #endif | |
4910 | #ifdef HAVE_UNISTD_H | |
4911 | #include <unistd.h> | |
4912 | #endif | |
4913 | int main() { | |
4914 | char *(*pfn) = (char *(*)) free | |
4915 | ; return 0; } | |
4916 | EOF | |
fdbafa10 | 4917 | if { (eval echo configure:4918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
4918 | rm -rf conftest* |
4919 | bfd_cv_decl_needed_free=no | |
4920 | else | |
4921 | echo "configure: failed program was:" >&5 | |
4922 | cat conftest.$ac_ext >&5 | |
4923 | rm -rf conftest* | |
4924 | bfd_cv_decl_needed_free=yes | |
4925 | fi | |
4926 | rm -f conftest* | |
4927 | fi | |
4928 | ||
4929 | echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6 | |
4930 | if test $bfd_cv_decl_needed_free = yes; then | |
4931 | cat >> confdefs.h <<\EOF | |
4932 | #define NEED_DECLARATION_FREE 1 | |
4933 | EOF | |
4934 | ||
4935 | fi | |
4936 | ||
4937 | echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 | |
fdbafa10 | 4938 | echo "configure:4939: checking whether getenv must be declared" >&5 |
653f71ca | 4939 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then |
252b5132 RH |
4940 | echo $ac_n "(cached) $ac_c" 1>&6 |
4941 | else | |
4942 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 4943 | #line 4944 "configure" |
252b5132 RH |
4944 | #include "confdefs.h" |
4945 | ||
4946 | #include <stdio.h> | |
4947 | #ifdef HAVE_STRING_H | |
4948 | #include <string.h> | |
4949 | #else | |
4950 | #ifdef HAVE_STRINGS_H | |
4951 | #include <strings.h> | |
4952 | #endif | |
4953 | #endif | |
4954 | #ifdef HAVE_STDLIB_H | |
4955 | #include <stdlib.h> | |
4956 | #endif | |
4957 | #ifdef HAVE_UNISTD_H | |
4958 | #include <unistd.h> | |
4959 | #endif | |
4960 | int main() { | |
4961 | char *(*pfn) = (char *(*)) getenv | |
4962 | ; return 0; } | |
4963 | EOF | |
fdbafa10 | 4964 | if { (eval echo configure:4965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
4965 | rm -rf conftest* |
4966 | bfd_cv_decl_needed_getenv=no | |
4967 | else | |
4968 | echo "configure: failed program was:" >&5 | |
4969 | cat conftest.$ac_ext >&5 | |
4970 | rm -rf conftest* | |
4971 | bfd_cv_decl_needed_getenv=yes | |
4972 | fi | |
4973 | rm -f conftest* | |
4974 | fi | |
4975 | ||
4976 | echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6 | |
4977 | if test $bfd_cv_decl_needed_getenv = yes; then | |
4978 | cat >> confdefs.h <<\EOF | |
4979 | #define NEED_DECLARATION_GETENV 1 | |
4980 | EOF | |
4981 | ||
4982 | fi | |
4983 | ||
4984 | ||
4985 | # If we are configured native, pick a core file support file. | |
4986 | COREFILE= | |
4987 | COREFLAG= | |
4988 | TRAD_HEADER= | |
4989 | if test "${target}" = "${host}"; then | |
4990 | case "${host}" in | |
46d59bfa DB |
4991 | alpha*-*-freebsd*) |
4992 | COREFILE='' | |
4993 | ;; | |
252b5132 RH |
4994 | alpha*-*-linux-gnu*) |
4995 | COREFILE=trad-core.lo | |
4996 | TRAD_HEADER='"hosts/alphalinux.h"' | |
4997 | ;; | |
4998 | alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;; | |
4999 | alpha*-*-*) COREFILE=osf-core.lo ;; | |
d4af9775 | 5000 | arm-*-freebsd*) COREFILE='' ;; |
252b5132 RH |
5001 | arm-*-riscix) COREFILE=trad-core.lo ;; |
5002 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
5003 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
5004 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
5005 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
5006 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
5b93d8bb AM |
5007 | i370-*-*) |
5008 | COREFILE=trad-core.lo | |
5009 | TRAD_HEADER='"hosts/i370linux.h"' | |
5010 | ;; | |
5011 | ||
252b5132 | 5012 | i[3456]86-sequent-bsd*) |
5b93d8bb | 5013 | COREFILE=trad-core.lo |
252b5132 RH |
5014 | TRAD_HEADER='"hosts/symmetry.h"' |
5015 | ;; | |
5016 | i[3456]86-sequent-sysv4*) ;; | |
5017 | i[3456]86-sequent-sysv*) | |
5018 | COREFILE=trad-core.lo | |
5019 | TRAD_HEADER='"hosts/symmetry.h"' | |
5020 | ;; | |
d4af9775 | 5021 | i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*) |
252b5132 RH |
5022 | COREFILE=trad-core.lo |
5023 | TRAD_HEADER='"hosts/i386bsd.h"' | |
5024 | ;; | |
d4af9775 DB |
5025 | i[3456]86-*-freebsd*) |
5026 | COREFILE='' | |
5027 | TRAD_HEADER='"hosts/i386bsd.h"' | |
5028 | ;; | |
252b5132 RH |
5029 | i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) |
5030 | COREFILE=netbsd-core.lo | |
5031 | ;; | |
5032 | i[3456]86-esix-sysv3*) | |
5033 | COREFILE=trad-core.lo | |
5034 | TRAD_HEADER='"hosts/esix.h"' | |
5035 | ;; | |
5036 | i[3456]86-*-sco3.2v5*) | |
5037 | COREFILE=sco5-core.lo | |
5038 | ;; | |
5039 | i[3456]86-*-sco* | i[3456]86-*-isc*) | |
5040 | COREFILE=trad-core.lo | |
5041 | TRAD_HEADER='"hosts/i386sco.h"' | |
5042 | ;; | |
5043 | i[3456]86-*-mach3*) | |
5044 | COREFILE=trad-core.lo | |
5045 | TRAD_HEADER='"hosts/i386mach3.h"' | |
5046 | ;; | |
5047 | i[3456]86-*-linux-gnu*) | |
5048 | COREFILE=trad-core.lo | |
5049 | TRAD_HEADER='"hosts/i386linux.h"' | |
5050 | ;; | |
5051 | i[3456]86-*-isc*) COREFILE=trad-core.lo ;; | |
5052 | i[3456]86-*-aix*) COREFILE=aix386-core.lo ;; | |
5053 | i860-*-mach3* | i860-*-osf1*) | |
5054 | COREFILE=trad-core.lo | |
5055 | TRAD_HEADER='"hosts/i860mach3.h"' | |
5056 | ;; | |
5057 | mips-dec-bsd*) | |
5058 | COREFILE=trad-core.lo | |
5059 | TRAD_HEADER='"hosts/mipsbsd.h"' | |
5060 | ;; | |
5061 | mips-dec-mach3*) | |
5062 | COREFILE=trad-core.lo | |
5063 | TRAD_HEADER='"hosts/mipsmach3.h"' | |
5064 | ;; | |
5065 | mips-*-netbsd* | mips*-*-openbsd*) | |
5066 | COREFILE=netbsd-core.lo | |
5067 | ;; | |
5068 | mips-dec-*) | |
5069 | COREFILE=trad-core.lo | |
5070 | TRAD_HEADER='"hosts/decstation.h"' | |
5071 | ;; | |
5072 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
5073 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
5074 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
5075 | mips-*-mach3*) | |
5076 | COREFILE=trad-core.lo | |
5077 | TRAD_HEADER='"hosts/mipsmach3.h"' | |
5078 | ;; | |
5079 | mips-*-sysv4*) ;; | |
5080 | mips-*-sysv* | mips-*-riscos*) | |
5081 | COREFILE=trad-core.lo | |
5082 | TRAD_HEADER='"hosts/riscos.h"' | |
5083 | ;; | |
5084 | mips-sony-bsd*) | |
5085 | COREFILE=trad-core.lo | |
5086 | TRAD_HEADER='"hosts/news-mips.h"' | |
5087 | ;; | |
5088 | m68*-bull*-sysv*) | |
5089 | COREFILE=trad-core.lo | |
5090 | TRAD_HEADER='"hosts/dpx2.h"' | |
5091 | ;; | |
5092 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
5093 | m68*-hp-bsd*) | |
5094 | COREFILE=trad-core.lo | |
5095 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
5096 | ;; | |
5097 | m68*-*-linux-gnu*) | |
5098 | COREFILE=trad-core.lo | |
5099 | TRAD_HEADER='"hosts/m68klinux.h"' | |
5100 | ;; | |
5101 | m68*-motorola-sysv*) | |
5102 | COREFILE=trad-core.lo | |
5103 | TRAD_HEADER='"hosts/delta68.h"' | |
5104 | ;; | |
5105 | m68*-sony-*) | |
5106 | COREFILE=trad-core.lo | |
5107 | TRAD_HEADER='"hosts/news.h"' | |
5108 | ;; | |
5109 | m68*-*-netbsd* | m68*-*-openbsd*) | |
5110 | COREFILE=netbsd-core.lo | |
5111 | ;; | |
5112 | m68*-apple-aux*) | |
5113 | COREFILE=trad-core.lo | |
5114 | TRAD_HEADER='"hosts/m68kaux.h"' | |
5115 | ;; | |
5116 | m88*-*-sysv4*) ;; | |
5117 | m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;; | |
5118 | m88*-*-mach3*) | |
5119 | COREFILE=trad-core.lo | |
5120 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
5121 | ;; | |
5122 | ns32k-pc532-mach) | |
5123 | COREFILE=trad-core.lo | |
5124 | TRAD_HEADER='"hosts/pc532mach.h"' | |
5125 | ;; | |
5126 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
5127 | COREFILE=netbsd-core.lo | |
5128 | ;; | |
5129 | rs6000-*-lynx*) COREFILE=lynx-core.lo ;; | |
653f71ca KB |
5130 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
5131 | COREFILE=rs6000-core.lo | |
5132 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
5133 | ;; | |
252b5132 RH |
5134 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
5135 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
5136 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
5137 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
5138 | powerpc-*-beos*) ;; | |
d4af9775 | 5139 | powerpc-*-freebsd*) COREFILE='' ;; |
252b5132 | 5140 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 5141 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
d1b17ab0 | 5142 | s390*-*-*) COREFILE=trad-core.lo ;; |
252b5132 RH |
5143 | sparc-*-netbsd* | sparc-*-openbsd*) |
5144 | COREFILE=netbsd-core.lo | |
5145 | ;; | |
5146 | tahoe-*-*) | |
5147 | COREFILE=trad-core.lo | |
5148 | TRAD_HEADER='"hosts/tahoe.h"' | |
5149 | ;; | |
5150 | vax-*-ultrix2*) | |
5151 | COREFILE=trad-core.lo | |
5152 | TRAD_HEADER='"hosts/vaxult2.h"' | |
5153 | ;; | |
5154 | vax-*-ultrix*) | |
5155 | COREFILE=trad-core.lo | |
5156 | TRAD_HEADER='"hosts/vaxult2.h"' | |
5157 | ;; | |
5158 | vax-*-*) | |
5159 | COREFILE=trad-core.lo | |
5160 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
5161 | ;; | |
5162 | esac | |
5163 | ||
5164 | case "$COREFILE" in | |
5165 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
5166 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
5167 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
5168 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
5169 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
5170 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
5171 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
5172 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
5173 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
5174 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
5175 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
5176 | esac | |
5177 | ||
5178 | # ELF corefile support has several flavors, but all of | |
5179 | # them use something called <sys/procfs.h> | |
5180 | for ac_hdr in sys/procfs.h | |
5181 | do | |
5182 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5183 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
fdbafa10 | 5184 | echo "configure:5185: checking for $ac_hdr" >&5 |
653f71ca | 5185 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
5186 | echo $ac_n "(cached) $ac_c" 1>&6 |
5187 | else | |
5188 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5189 | #line 5190 "configure" |
252b5132 RH |
5190 | #include "confdefs.h" |
5191 | #include <$ac_hdr> | |
5192 | EOF | |
5193 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 5194 | { (eval echo configure:5195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
5195 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5196 | if test -z "$ac_err"; then | |
5197 | rm -rf conftest* | |
5198 | eval "ac_cv_header_$ac_safe=yes" | |
5199 | else | |
5200 | echo "$ac_err" >&5 | |
5201 | echo "configure: failed program was:" >&5 | |
5202 | cat conftest.$ac_ext >&5 | |
5203 | rm -rf conftest* | |
5204 | eval "ac_cv_header_$ac_safe=no" | |
5205 | fi | |
5206 | rm -f conftest* | |
5207 | fi | |
5208 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5209 | echo "$ac_t""yes" 1>&6 | |
5210 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5211 | cat >> confdefs.h <<EOF | |
5212 | #define $ac_tr_hdr 1 | |
5213 | EOF | |
5214 | ||
5215 | else | |
5216 | echo "$ac_t""no" 1>&6 | |
5217 | fi | |
5218 | done | |
5219 | ||
5220 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
5221 | echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6 | |
fdbafa10 | 5222 | echo "configure:5223: checking for prstatus_t in sys/procfs.h" >&5 |
653f71ca | 5223 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then |
252b5132 RH |
5224 | echo $ac_n "(cached) $ac_c" 1>&6 |
5225 | else | |
5226 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5227 | #line 5228 "configure" |
252b5132 | 5228 | #include "confdefs.h" |
7ee38065 MS |
5229 | |
5230 | #define _SYSCALL32 | |
252b5132 RH |
5231 | #include <sys/procfs.h> |
5232 | int main() { | |
5233 | prstatus_t avar | |
5234 | ; return 0; } | |
5235 | EOF | |
fdbafa10 | 5236 | if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
5237 | rm -rf conftest* |
5238 | bfd_cv_have_sys_procfs_type_prstatus_t=yes | |
5239 | else | |
5240 | echo "configure: failed program was:" >&5 | |
5241 | cat conftest.$ac_ext >&5 | |
5242 | rm -rf conftest* | |
5243 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
5244 | ||
5245 | fi | |
5246 | rm -f conftest* | |
5247 | fi | |
5248 | ||
5249 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
5250 | cat >> confdefs.h <<\EOF | |
5251 | #define HAVE_PRSTATUS_T 1 | |
5252 | EOF | |
5253 | ||
5254 | fi | |
5255 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6 | |
5256 | ||
7ee38065 | 5257 | echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5258 | echo "configure:5259: checking for prstatus32_t in sys/procfs.h" >&5 |
7ee38065 MS |
5259 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then |
5260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5261 | else | |
5262 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5263 | #line 5264 "configure" |
7ee38065 MS |
5264 | #include "confdefs.h" |
5265 | ||
5266 | #define _SYSCALL32 | |
5267 | #include <sys/procfs.h> | |
5268 | int main() { | |
5269 | prstatus32_t avar | |
5270 | ; return 0; } | |
5271 | EOF | |
fdbafa10 | 5272 | if { (eval echo configure:5273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7ee38065 MS |
5273 | rm -rf conftest* |
5274 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes | |
5275 | else | |
5276 | echo "configure: failed program was:" >&5 | |
5277 | cat conftest.$ac_ext >&5 | |
5278 | rm -rf conftest* | |
5279 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
5280 | ||
5281 | fi | |
5282 | rm -f conftest* | |
5283 | fi | |
5284 | ||
5285 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
5286 | cat >> confdefs.h <<\EOF | |
5287 | #define HAVE_PRSTATUS32_T 1 | |
5288 | EOF | |
5289 | ||
5290 | fi | |
5291 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6 | |
5292 | ||
252b5132 | 5293 | echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5294 | echo "configure:5295: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
653f71ca | 5295 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then |
252b5132 RH |
5296 | echo $ac_n "(cached) $ac_c" 1>&6 |
5297 | else | |
5298 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5299 | #line 5300 "configure" |
252b5132 | 5300 | #include "confdefs.h" |
7ee38065 MS |
5301 | |
5302 | #define _SYSCALL32 | |
252b5132 RH |
5303 | #include <sys/procfs.h> |
5304 | int main() { | |
5305 | prstatus_t avar; void* aref = (void*) &avar.pr_who | |
5306 | ; return 0; } | |
5307 | EOF | |
fdbafa10 | 5308 | if { (eval echo configure:5309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
5309 | rm -rf conftest* |
5310 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes | |
5311 | else | |
5312 | echo "configure: failed program was:" >&5 | |
5313 | cat conftest.$ac_ext >&5 | |
5314 | rm -rf conftest* | |
5315 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
5316 | ||
5317 | fi | |
5318 | rm -f conftest* | |
5319 | fi | |
5320 | ||
5321 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
5322 | cat >> confdefs.h <<\EOF | |
5323 | #define HAVE_PRSTATUS_T_PR_WHO 1 | |
5324 | EOF | |
5325 | ||
5326 | fi | |
5327 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6 | |
5328 | ||
7ee38065 | 5329 | echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5330 | echo "configure:5331: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
7ee38065 MS |
5331 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then |
5332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5333 | else | |
5334 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5335 | #line 5336 "configure" |
7ee38065 MS |
5336 | #include "confdefs.h" |
5337 | ||
5338 | #define _SYSCALL32 | |
5339 | #include <sys/procfs.h> | |
5340 | int main() { | |
5341 | prstatus32_t avar; void* aref = (void*) &avar.pr_who | |
5342 | ; return 0; } | |
5343 | EOF | |
fdbafa10 | 5344 | if { (eval echo configure:5345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7ee38065 MS |
5345 | rm -rf conftest* |
5346 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes | |
5347 | else | |
5348 | echo "configure: failed program was:" >&5 | |
5349 | cat conftest.$ac_ext >&5 | |
5350 | rm -rf conftest* | |
5351 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
5352 | ||
5353 | fi | |
5354 | rm -f conftest* | |
5355 | fi | |
5356 | ||
5357 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
5358 | cat >> confdefs.h <<\EOF | |
5359 | #define HAVE_PRSTATUS32_T_PR_WHO 1 | |
5360 | EOF | |
5361 | ||
5362 | fi | |
5363 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6 | |
5364 | ||
252b5132 | 5365 | echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5366 | echo "configure:5367: checking for pstatus_t in sys/procfs.h" >&5 |
653f71ca | 5367 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then |
252b5132 RH |
5368 | echo $ac_n "(cached) $ac_c" 1>&6 |
5369 | else | |
5370 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5371 | #line 5372 "configure" |
252b5132 | 5372 | #include "confdefs.h" |
7ee38065 MS |
5373 | |
5374 | #define _SYSCALL32 | |
252b5132 RH |
5375 | #include <sys/procfs.h> |
5376 | int main() { | |
5377 | pstatus_t avar | |
5378 | ; return 0; } | |
5379 | EOF | |
fdbafa10 | 5380 | if { (eval echo configure:5381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
5381 | rm -rf conftest* |
5382 | bfd_cv_have_sys_procfs_type_pstatus_t=yes | |
5383 | else | |
5384 | echo "configure: failed program was:" >&5 | |
5385 | cat conftest.$ac_ext >&5 | |
5386 | rm -rf conftest* | |
5387 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
5388 | ||
5389 | fi | |
5390 | rm -f conftest* | |
5391 | fi | |
5392 | ||
5393 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
5394 | cat >> confdefs.h <<\EOF | |
5395 | #define HAVE_PSTATUS_T 1 | |
5396 | EOF | |
5397 | ||
5398 | fi | |
5399 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6 | |
5400 | ||
f572a39d | 5401 | echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5402 | echo "configure:5403: checking for pxstatus_t in sys/procfs.h" >&5 |
f572a39d AM |
5403 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then |
5404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5405 | else | |
5406 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5407 | #line 5408 "configure" |
f572a39d AM |
5408 | #include "confdefs.h" |
5409 | ||
5410 | #define _SYSCALL32 | |
5411 | #include <sys/procfs.h> | |
5412 | int main() { | |
5413 | pxstatus_t avar | |
5414 | ; return 0; } | |
5415 | EOF | |
fdbafa10 | 5416 | if { (eval echo configure:5417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f572a39d AM |
5417 | rm -rf conftest* |
5418 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes | |
5419 | else | |
5420 | echo "configure: failed program was:" >&5 | |
5421 | cat conftest.$ac_ext >&5 | |
5422 | rm -rf conftest* | |
5423 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
5424 | ||
5425 | fi | |
5426 | rm -f conftest* | |
5427 | fi | |
5428 | ||
5429 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
5430 | cat >> confdefs.h <<\EOF | |
5431 | #define HAVE_PXSTATUS_T 1 | |
5432 | EOF | |
5433 | ||
5434 | fi | |
5435 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6 | |
5436 | ||
7ee38065 | 5437 | echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5438 | echo "configure:5439: checking for pstatus32_t in sys/procfs.h" >&5 |
7ee38065 MS |
5439 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then |
5440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5441 | else | |
5442 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5443 | #line 5444 "configure" |
7ee38065 MS |
5444 | #include "confdefs.h" |
5445 | ||
5446 | #define _SYSCALL32 | |
5447 | #include <sys/procfs.h> | |
5448 | int main() { | |
5449 | pstatus32_t avar | |
5450 | ; return 0; } | |
5451 | EOF | |
fdbafa10 | 5452 | if { (eval echo configure:5453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7ee38065 MS |
5453 | rm -rf conftest* |
5454 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes | |
5455 | else | |
5456 | echo "configure: failed program was:" >&5 | |
5457 | cat conftest.$ac_ext >&5 | |
5458 | rm -rf conftest* | |
5459 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
5460 | ||
5461 | fi | |
5462 | rm -f conftest* | |
5463 | fi | |
5464 | ||
5465 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
5466 | cat >> confdefs.h <<\EOF | |
5467 | #define HAVE_PSTATUS32_T 1 | |
5468 | EOF | |
5469 | ||
5470 | fi | |
5471 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6 | |
5472 | ||
252b5132 | 5473 | echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5474 | echo "configure:5475: checking for prpsinfo_t in sys/procfs.h" >&5 |
653f71ca | 5475 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then |
252b5132 RH |
5476 | echo $ac_n "(cached) $ac_c" 1>&6 |
5477 | else | |
5478 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5479 | #line 5480 "configure" |
252b5132 | 5480 | #include "confdefs.h" |
7ee38065 MS |
5481 | |
5482 | #define _SYSCALL32 | |
252b5132 RH |
5483 | #include <sys/procfs.h> |
5484 | int main() { | |
5485 | prpsinfo_t avar | |
5486 | ; return 0; } | |
5487 | EOF | |
fdbafa10 | 5488 | if { (eval echo configure:5489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
5489 | rm -rf conftest* |
5490 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes | |
5491 | else | |
5492 | echo "configure: failed program was:" >&5 | |
5493 | cat conftest.$ac_ext >&5 | |
5494 | rm -rf conftest* | |
5495 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
5496 | ||
5497 | fi | |
5498 | rm -f conftest* | |
5499 | fi | |
5500 | ||
5501 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
5502 | cat >> confdefs.h <<\EOF | |
5503 | #define HAVE_PRPSINFO_T 1 | |
5504 | EOF | |
5505 | ||
5506 | fi | |
5507 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6 | |
5508 | ||
7ee38065 | 5509 | echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5510 | echo "configure:5511: checking for prpsinfo32_t in sys/procfs.h" >&5 |
7ee38065 MS |
5511 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then |
5512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5513 | else | |
5514 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5515 | #line 5516 "configure" |
7ee38065 MS |
5516 | #include "confdefs.h" |
5517 | ||
5518 | #define _SYSCALL32 | |
5519 | #include <sys/procfs.h> | |
5520 | int main() { | |
5521 | prpsinfo32_t avar | |
5522 | ; return 0; } | |
5523 | EOF | |
fdbafa10 | 5524 | if { (eval echo configure:5525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7ee38065 MS |
5525 | rm -rf conftest* |
5526 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes | |
5527 | else | |
5528 | echo "configure: failed program was:" >&5 | |
5529 | cat conftest.$ac_ext >&5 | |
5530 | rm -rf conftest* | |
5531 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
5532 | ||
5533 | fi | |
5534 | rm -f conftest* | |
5535 | fi | |
5536 | ||
5537 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
5538 | cat >> confdefs.h <<\EOF | |
5539 | #define HAVE_PRPSINFO32_T 1 | |
5540 | EOF | |
5541 | ||
5542 | fi | |
5543 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6 | |
5544 | ||
252b5132 | 5545 | echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5546 | echo "configure:5547: checking for psinfo_t in sys/procfs.h" >&5 |
653f71ca | 5547 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then |
252b5132 RH |
5548 | echo $ac_n "(cached) $ac_c" 1>&6 |
5549 | else | |
5550 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5551 | #line 5552 "configure" |
252b5132 | 5552 | #include "confdefs.h" |
7ee38065 MS |
5553 | |
5554 | #define _SYSCALL32 | |
252b5132 RH |
5555 | #include <sys/procfs.h> |
5556 | int main() { | |
5557 | psinfo_t avar | |
5558 | ; return 0; } | |
5559 | EOF | |
fdbafa10 | 5560 | if { (eval echo configure:5561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
5561 | rm -rf conftest* |
5562 | bfd_cv_have_sys_procfs_type_psinfo_t=yes | |
5563 | else | |
5564 | echo "configure: failed program was:" >&5 | |
5565 | cat conftest.$ac_ext >&5 | |
5566 | rm -rf conftest* | |
5567 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
5568 | ||
5569 | fi | |
5570 | rm -f conftest* | |
5571 | fi | |
5572 | ||
5573 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
5574 | cat >> confdefs.h <<\EOF | |
5575 | #define HAVE_PSINFO_T 1 | |
5576 | EOF | |
5577 | ||
5578 | fi | |
5579 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6 | |
5580 | ||
7ee38065 | 5581 | echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5582 | echo "configure:5583: checking for psinfo32_t in sys/procfs.h" >&5 |
7ee38065 MS |
5583 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then |
5584 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5585 | else | |
5586 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5587 | #line 5588 "configure" |
7ee38065 MS |
5588 | #include "confdefs.h" |
5589 | ||
5590 | #define _SYSCALL32 | |
5591 | #include <sys/procfs.h> | |
5592 | int main() { | |
5593 | psinfo32_t avar | |
5594 | ; return 0; } | |
5595 | EOF | |
fdbafa10 | 5596 | if { (eval echo configure:5597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7ee38065 MS |
5597 | rm -rf conftest* |
5598 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes | |
5599 | else | |
5600 | echo "configure: failed program was:" >&5 | |
5601 | cat conftest.$ac_ext >&5 | |
5602 | rm -rf conftest* | |
5603 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
5604 | ||
5605 | fi | |
5606 | rm -f conftest* | |
5607 | fi | |
5608 | ||
5609 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
5610 | cat >> confdefs.h <<\EOF | |
5611 | #define HAVE_PSINFO32_T 1 | |
5612 | EOF | |
5613 | ||
5614 | fi | |
5615 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6 | |
5616 | ||
252b5132 | 5617 | echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5618 | echo "configure:5619: checking for lwpstatus_t in sys/procfs.h" >&5 |
653f71ca | 5619 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then |
252b5132 RH |
5620 | echo $ac_n "(cached) $ac_c" 1>&6 |
5621 | else | |
5622 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5623 | #line 5624 "configure" |
252b5132 | 5624 | #include "confdefs.h" |
7ee38065 MS |
5625 | |
5626 | #define _SYSCALL32 | |
252b5132 RH |
5627 | #include <sys/procfs.h> |
5628 | int main() { | |
5629 | lwpstatus_t avar | |
5630 | ; return 0; } | |
5631 | EOF | |
fdbafa10 | 5632 | if { (eval echo configure:5633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
5633 | rm -rf conftest* |
5634 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes | |
5635 | else | |
5636 | echo "configure: failed program was:" >&5 | |
5637 | cat conftest.$ac_ext >&5 | |
5638 | rm -rf conftest* | |
5639 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
5640 | ||
5641 | fi | |
5642 | rm -f conftest* | |
5643 | fi | |
5644 | ||
5645 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
5646 | cat >> confdefs.h <<\EOF | |
5647 | #define HAVE_LWPSTATUS_T 1 | |
5648 | EOF | |
5649 | ||
5650 | fi | |
5651 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6 | |
5652 | ||
f572a39d | 5653 | echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5654 | echo "configure:5655: checking for lwpxstatus_t in sys/procfs.h" >&5 |
f572a39d AM |
5655 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then |
5656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5657 | else | |
5658 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5659 | #line 5660 "configure" |
f572a39d AM |
5660 | #include "confdefs.h" |
5661 | ||
5662 | #define _SYSCALL32 | |
5663 | #include <sys/procfs.h> | |
5664 | int main() { | |
5665 | lwpxstatus_t avar | |
5666 | ; return 0; } | |
5667 | EOF | |
fdbafa10 | 5668 | if { (eval echo configure:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f572a39d AM |
5669 | rm -rf conftest* |
5670 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes | |
5671 | else | |
5672 | echo "configure: failed program was:" >&5 | |
5673 | cat conftest.$ac_ext >&5 | |
5674 | rm -rf conftest* | |
5675 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
5676 | ||
5677 | fi | |
5678 | rm -f conftest* | |
5679 | fi | |
5680 | ||
5681 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
5682 | cat >> confdefs.h <<\EOF | |
5683 | #define HAVE_LWPXSTATUS_T 1 | |
5684 | EOF | |
5685 | ||
5686 | fi | |
5687 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6 | |
5688 | ||
252b5132 | 5689 | echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5690 | echo "configure:5691: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
653f71ca | 5691 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then |
252b5132 RH |
5692 | echo $ac_n "(cached) $ac_c" 1>&6 |
5693 | else | |
5694 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5695 | #line 5696 "configure" |
252b5132 | 5696 | #include "confdefs.h" |
7ee38065 MS |
5697 | |
5698 | #define _SYSCALL32 | |
252b5132 RH |
5699 | #include <sys/procfs.h> |
5700 | int main() { | |
5701 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context | |
5702 | ; return 0; } | |
5703 | EOF | |
fdbafa10 | 5704 | if { (eval echo configure:5705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
5705 | rm -rf conftest* |
5706 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes | |
5707 | else | |
5708 | echo "configure: failed program was:" >&5 | |
5709 | cat conftest.$ac_ext >&5 | |
5710 | rm -rf conftest* | |
5711 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
5712 | ||
5713 | fi | |
5714 | rm -f conftest* | |
5715 | fi | |
5716 | ||
5717 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
5718 | cat >> confdefs.h <<\EOF | |
5719 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 | |
5720 | EOF | |
5721 | ||
5722 | fi | |
5723 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6 | |
5724 | ||
5725 | echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6 | |
fdbafa10 | 5726 | echo "configure:5727: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
653f71ca | 5727 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then |
252b5132 RH |
5728 | echo $ac_n "(cached) $ac_c" 1>&6 |
5729 | else | |
5730 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5731 | #line 5732 "configure" |
252b5132 | 5732 | #include "confdefs.h" |
7ee38065 MS |
5733 | |
5734 | #define _SYSCALL32 | |
252b5132 RH |
5735 | #include <sys/procfs.h> |
5736 | int main() { | |
5737 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg | |
5738 | ; return 0; } | |
5739 | EOF | |
fdbafa10 | 5740 | if { (eval echo configure:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
5741 | rm -rf conftest* |
5742 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes | |
5743 | else | |
5744 | echo "configure: failed program was:" >&5 | |
5745 | cat conftest.$ac_ext >&5 | |
5746 | rm -rf conftest* | |
5747 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
5748 | ||
5749 | fi | |
5750 | rm -f conftest* | |
5751 | fi | |
5752 | ||
5753 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
5754 | cat >> confdefs.h <<\EOF | |
5755 | #define HAVE_LWPSTATUS_T_PR_REG 1 | |
5756 | EOF | |
5757 | ||
5758 | fi | |
5759 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6 | |
5760 | ||
e3c976c4 | 5761 | echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
fdbafa10 | 5762 | echo "configure:5763: checking for win32_pstatus_t in sys/procfs.h" >&5 |
653f71ca | 5763 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then |
e3c976c4 ILT |
5764 | echo $ac_n "(cached) $ac_c" 1>&6 |
5765 | else | |
5766 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 5767 | #line 5768 "configure" |
e3c976c4 | 5768 | #include "confdefs.h" |
7ee38065 MS |
5769 | |
5770 | #define _SYSCALL32 | |
e3c976c4 ILT |
5771 | #include <sys/procfs.h> |
5772 | int main() { | |
5773 | win32_pstatus_t avar | |
5774 | ; return 0; } | |
5775 | EOF | |
fdbafa10 | 5776 | if { (eval echo configure:5777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e3c976c4 ILT |
5777 | rm -rf conftest* |
5778 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes | |
5779 | else | |
5780 | echo "configure: failed program was:" >&5 | |
5781 | cat conftest.$ac_ext >&5 | |
5782 | rm -rf conftest* | |
5783 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
5784 | ||
5785 | fi | |
5786 | rm -f conftest* | |
252b5132 RH |
5787 | fi |
5788 | ||
e3c976c4 | 5789 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
16e9c715 | 5790 | cat >> confdefs.h <<\EOF |
e3c976c4 | 5791 | #define HAVE_WIN32_PSTATUS_T 1 |
16e9c715 NC |
5792 | EOF |
5793 | ||
5794 | fi | |
e3c976c4 ILT |
5795 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6 |
5796 | ||
5797 | fi | |
5798 | fi | |
16e9c715 | 5799 | |
252b5132 | 5800 | |
3f9b03b5 AM |
5801 | if test -n "$TRAD_HEADER"; then |
5802 | cat >> confdefs.h <<EOF | |
252b5132 RH |
5803 | #define TRAD_HEADER $TRAD_HEADER |
5804 | EOF | |
5805 | ||
3f9b03b5 | 5806 | fi |
252b5132 RH |
5807 | |
5808 | # Horrible hacks to build DLLs on Windows. | |
5809 | WIN32LDFLAGS= | |
5810 | WIN32LIBADD= | |
5811 | case "${host}" in | |
5812 | *-*-cygwin*) | |
5813 | if test "$enable_shared" = "yes"; then | |
5814 | WIN32LDFLAGS="-no-undefined" | |
5815 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
5816 | fi | |
5817 | ;; | |
5818 | esac | |
5819 | ||
5820 | ||
5821 | ||
5822 | # target stuff: | |
5823 | ||
5824 | # Canonicalize the secondary target names. | |
5825 | if test -n "$enable_targets" ; then | |
5826 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
5827 | do | |
6d83c84b | 5828 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
5829 | if test -n "$result" ; then |
5830 | canon_targets="$canon_targets $result" | |
5831 | else | |
5832 | # Allow targets that config.sub doesn't recognize, like "all". | |
5833 | canon_targets="$canon_targets $targ" | |
5834 | fi | |
5835 | done | |
5836 | fi | |
5837 | ||
5838 | all_targets=false | |
5839 | defvec= | |
5840 | selvecs= | |
5841 | selarchs= | |
5842 | TDEFINES= | |
5843 | for targ in $target $canon_targets | |
5844 | do | |
5845 | if test "x$targ" = "xall"; then | |
5846 | all_targets=true | |
5847 | else | |
5848 | . $srcdir/config.bfd | |
5849 | if test "x$targ" = "x$target"; then | |
5850 | defvec=$targ_defvec | |
5851 | fi | |
5852 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
5853 | selarchs="$selarchs $targ_archs" | |
5854 | TDEFINES="$TDEFINES $targ_cflags" | |
5855 | fi | |
5856 | done | |
5857 | ||
5858 | ||
5859 | # This processing still needs to be done if we're to decide properly whether | |
5860 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
5861 | # the default or any other explicitly requested target requires it; it | |
5862 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 5863 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
5864 | # used. |
5865 | ||
5866 | # uniq the default and selected vectors in all the configured targets. | |
5867 | f="" | |
5868 | for i in $selvecs ; do | |
5869 | case " $f " in | |
5870 | *" $i "*) ;; | |
5871 | *) f="$f $i" ;; | |
5872 | esac | |
5873 | done | |
5874 | selvecs="$f" | |
5875 | ||
5876 | ||
5877 | # uniq the architectures in all the configured targets. | |
5878 | f="" | |
5879 | for i in $selarchs ; do | |
5880 | case " $f " in | |
5881 | *" $i "*) ;; | |
5882 | *) f="$f $i" ;; | |
5883 | esac | |
5884 | done | |
5885 | selarchs="$f" | |
5886 | ||
5887 | # Target backend .o files. | |
5888 | tb= | |
5889 | ||
51db3708 | 5890 | elf="elf.lo elflink.lo dwarf1.lo" |
252b5132 RH |
5891 | |
5892 | for vec in $selvecs | |
5893 | do | |
5894 | case "$vec" in | |
5895 | # This list is alphabetized to make it easy to compare | |
5896 | # with the two vector lists in targets.c. | |
5897 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; | |
5898 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; | |
5899 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
5900 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
021e3cc0 | 5901 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; |
277d1b5e ILT |
5902 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; |
5903 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
5904 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
5905 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
5906 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
5907 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
5908 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
5909 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
5910 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
5911 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
5912 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
5913 | aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;; | |
5914 | aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;; | |
5915 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; | |
5916 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; | |
5917 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
fac41780 | 5918 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; |
6433dece | 5919 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo" |
fac41780 | 5920 | target64=true ;; |
252b5132 RH |
5921 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf" |
5922 | target64=true ;; | |
d952f17a AM |
5923 | bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec) |
5924 | tb="$tb elf64-hppa.lo elf64.lo $elf" | |
e59db122 | 5925 | target64=true ;; |
800eeca4 JW |
5926 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf" |
5927 | target64=true ;; | |
5928 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf" | |
5929 | target64=true ;; | |
7b6dab7f TW |
5930 | bfd_elf64_ia64_aix_little_vec) |
5931 | tb="$tb elf64-ia64.lo elf64.lo $elf" | |
5932 | target64=true ;; | |
5933 | bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf" | |
5934 | target64=true ;; | |
bbe66d08 | 5935 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
adde6300 | 5936 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
252b5132 RH |
5937 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
5938 | bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; | |
5939 | bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; | |
5940 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; | |
5941 | bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; | |
5942 | bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; | |
5943 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; | |
5944 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
5945 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" | |
5946 | target64=true ;; | |
06c15ad7 | 5947 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
4da81684 | 5948 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 RH |
5949 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
5950 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
5951 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; | |
d952f17a AM |
5952 | bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec) |
5953 | tb="$tb elf32-hppa.lo elf32.lo $elf" ;; | |
5b93d8bb | 5954 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
252b5132 | 5955 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; |
6e0b89ee AM |
5956 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf" |
5957 | target64=true ;; | |
252b5132 | 5958 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
9d751335 | 5959 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 5960 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
252b5132 RH |
5961 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
5962 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
5963 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" | |
5964 | target64=true ;; | |
5965 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
60bcf0fa NC |
5966 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;; |
5967 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;; | |
252b5132 RH |
5968 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
5969 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
5970 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
5971 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
5972 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; | |
5973 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
0bcb993b ILT |
5974 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
5975 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
252b5132 RH |
5976 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; |
5977 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; | |
a85d7ed0 | 5978 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
252b5132 RH |
5979 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; |
5980 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; | |
b129bfef AO |
5981 | bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
5982 | bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
252b5132 | 5983 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; |
dd745cfa UC |
5984 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; |
5985 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
252b5132 RH |
5986 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
5987 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" | |
5988 | target64=true ;; | |
5989 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" | |
5990 | target64=true ;; | |
a85d7ed0 NC |
5991 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf" |
5992 | target64=true ;; | |
252b5132 RH |
5993 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf" |
5994 | target64=true ;; | |
fdbafa10 L |
5995 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo" |
5996 | target64=true ;; | |
5997 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo" | |
5998 | target64=true ;; | |
f4bda984 RH |
5999 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; |
6000 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
06c15ad7 | 6001 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
252b5132 RH |
6002 | demo_64_vec) tb="$tb demo64.lo aout64.lo" |
6003 | target64=true ;; | |
6004 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; | |
6005 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; | |
6006 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; | |
6007 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo" | |
6008 | target64=true ;; | |
6009 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; | |
6010 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
6011 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
6012 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
6013 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
6014 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
6015 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
6016 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
6017 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
6018 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
6019 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; | |
6020 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
6021 | i386msdos_vec) tb="$tb i386msdos.lo" ;; | |
277d1b5e ILT |
6022 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
6023 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
6024 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
6025 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
6026 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
6027 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
6028 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; | |
6029 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
6030 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; | |
6031 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
6032 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
6033 | ieee_vec) tb="$tb ieee.lo" ;; | |
6034 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; | |
6035 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
6036 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
6037 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; | |
6038 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; | |
6039 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; | |
6040 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; | |
6041 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
6042 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; | |
6043 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
fb67355a NC |
6044 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
6045 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
277d1b5e ILT |
6046 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
6047 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
6048 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
6049 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
6050 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
6051 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; | |
7f6d05e8 CP |
6052 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo" |
6053 | target64=true ;; | |
252b5132 RH |
6054 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
6055 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo" | |
6056 | target64=true ;; | |
6057 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; | |
6058 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; | |
6059 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; | |
6060 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; | |
e135f41b | 6061 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
252b5132 RH |
6062 | pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;; |
6063 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; | |
277d1b5e ILT |
6064 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
6065 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
6066 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
6067 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
6068 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
6069 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; | |
6070 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; | |
6071 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; | |
6072 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; | |
60bcf0fa NC |
6073 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
6074 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
6075 | som_vec) tb="$tb som.lo" ;; |
6076 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; | |
6077 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
6078 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
6079 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
6080 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
6081 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; | |
6082 | srec_vec) tb="$tb srec.lo" ;; | |
6083 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; | |
6084 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
6085 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
6086 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; | |
6087 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
81635ce4 TW |
6088 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
6089 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; | |
6090 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; | |
6091 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; | |
6092 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; | |
6093 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; | |
252b5132 RH |
6094 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
6095 | versados_vec) tb="$tb versados.lo" ;; | |
6096 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" | |
6097 | target64=true ;; | |
6098 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; | |
6099 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
6100 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
6101 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; | |
6102 | ||
6103 | "") ;; | |
6104 | *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;; | |
6105 | esac | |
6106 | done | |
6107 | ||
6108 | # Target architecture .o files. | |
6109 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
6110 | # filesystems. | |
6111 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` | |
6112 | ||
6113 | # Weed out duplicate .o files. | |
6114 | f="" | |
6115 | for i in $tb ; do | |
6116 | case " $f " in | |
6117 | *" $i "*) ;; | |
6118 | *) f="$f $i" ;; | |
6119 | esac | |
6120 | done | |
6121 | tb="$f" | |
6122 | ||
6123 | f="" | |
6124 | for i in $ta ; do | |
6125 | case " $f " in | |
6126 | *" $i "*) ;; | |
6127 | *) f="$f $i" ;; | |
6128 | esac | |
6129 | done | |
6130 | ta="$f" | |
6131 | ||
6132 | bfd_backends="$tb" | |
6133 | bfd_machines="$ta" | |
6134 | ||
6135 | if test x${all_targets} = xtrue ; then | |
6136 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
6137 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
6138 | selvecs= | |
6139 | havevecs= | |
6140 | selarchs= | |
6141 | else # all_targets is true | |
6142 | # Only set these if they will be nonempty, for the clever echo. | |
6143 | havevecs= | |
6144 | test -n "$selvecs" && | |
6145 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
6146 | test -n "$selvecs" && | |
6147 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
6148 | test -n "$selarchs" && | |
6149 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
6150 | fi # all_targets is true | |
6151 | ||
6152 | case ${host64}-${target64}-${want64} in | |
6153 | *true*) | |
6154 | wordsize=64 | |
6155 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' | |
6156 | if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then | |
6157 | echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2 | |
6158 | echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2 | |
6159 | fi | |
6160 | ;; | |
6161 | false-false-false) | |
6162 | wordsize=32 | |
6163 | all_backends='$(BFD32_BACKENDS)' | |
6164 | ;; | |
6165 | esac | |
6166 | ||
6167 | ||
6168 | ||
6169 | ||
6170 | ||
6171 | ||
6172 | tdefaults="" | |
6173 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
6174 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
6175 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" | |
6176 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
6177 | ||
6178 | ||
6179 | for ac_hdr in unistd.h | |
6180 | do | |
6181 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6182 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
fdbafa10 | 6183 | echo "configure:6184: checking for $ac_hdr" >&5 |
653f71ca | 6184 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
6185 | echo $ac_n "(cached) $ac_c" 1>&6 |
6186 | else | |
6187 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 6188 | #line 6189 "configure" |
252b5132 RH |
6189 | #include "confdefs.h" |
6190 | #include <$ac_hdr> | |
6191 | EOF | |
6192 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fdbafa10 | 6193 | { (eval echo configure:6194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
6194 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6195 | if test -z "$ac_err"; then | |
6196 | rm -rf conftest* | |
6197 | eval "ac_cv_header_$ac_safe=yes" | |
6198 | else | |
6199 | echo "$ac_err" >&5 | |
6200 | echo "configure: failed program was:" >&5 | |
6201 | cat conftest.$ac_ext >&5 | |
6202 | rm -rf conftest* | |
6203 | eval "ac_cv_header_$ac_safe=no" | |
6204 | fi | |
6205 | rm -f conftest* | |
6206 | fi | |
6207 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6208 | echo "$ac_t""yes" 1>&6 | |
6209 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6210 | cat >> confdefs.h <<EOF | |
6211 | #define $ac_tr_hdr 1 | |
6212 | EOF | |
6213 | ||
6214 | else | |
6215 | echo "$ac_t""no" 1>&6 | |
6216 | fi | |
6217 | done | |
6218 | ||
6219 | for ac_func in getpagesize | |
6220 | do | |
6221 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fdbafa10 | 6222 | echo "configure:6223: checking for $ac_func" >&5 |
653f71ca | 6223 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
6224 | echo $ac_n "(cached) $ac_c" 1>&6 |
6225 | else | |
6226 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 6227 | #line 6228 "configure" |
252b5132 RH |
6228 | #include "confdefs.h" |
6229 | /* System header to define __stub macros and hopefully few prototypes, | |
6230 | which can conflict with char $ac_func(); below. */ | |
6231 | #include <assert.h> | |
6232 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6233 | /* We use char because int might match the return type of a gcc2 | |
6234 | builtin and then its argument prototype would still apply. */ | |
6235 | char $ac_func(); | |
6236 | ||
6237 | int main() { | |
6238 | ||
6239 | /* The GNU C library defines this for functions which it implements | |
6240 | to always fail with ENOSYS. Some functions are actually named | |
6241 | something starting with __ and the normal name is an alias. */ | |
6242 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6243 | choke me | |
6244 | #else | |
653f71ca | 6245 | $ac_func(); |
252b5132 RH |
6246 | #endif |
6247 | ||
6248 | ; return 0; } | |
6249 | EOF | |
fdbafa10 | 6250 | if { (eval echo configure:6251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
6251 | rm -rf conftest* |
6252 | eval "ac_cv_func_$ac_func=yes" | |
6253 | else | |
6254 | echo "configure: failed program was:" >&5 | |
6255 | cat conftest.$ac_ext >&5 | |
6256 | rm -rf conftest* | |
6257 | eval "ac_cv_func_$ac_func=no" | |
6258 | fi | |
6259 | rm -f conftest* | |
6260 | fi | |
6261 | ||
6262 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6263 | echo "$ac_t""yes" 1>&6 | |
6264 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6265 | cat >> confdefs.h <<EOF | |
6266 | #define $ac_tr_func 1 | |
6267 | EOF | |
6268 | ||
6269 | else | |
6270 | echo "$ac_t""no" 1>&6 | |
6271 | fi | |
6272 | done | |
6273 | ||
6274 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
fdbafa10 | 6275 | echo "configure:6276: checking for working mmap" >&5 |
653f71ca | 6276 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
252b5132 RH |
6277 | echo $ac_n "(cached) $ac_c" 1>&6 |
6278 | else | |
6279 | if test "$cross_compiling" = yes; then | |
6280 | ac_cv_func_mmap_fixed_mapped=no | |
6281 | else | |
6282 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 6283 | #line 6284 "configure" |
252b5132 RH |
6284 | #include "confdefs.h" |
6285 | ||
6286 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6287 | Here is a matrix of mmap possibilities: | |
6288 | mmap private not fixed | |
6289 | mmap private fixed at somewhere currently unmapped | |
6290 | mmap private fixed at somewhere already mapped | |
6291 | mmap shared not fixed | |
6292 | mmap shared fixed at somewhere currently unmapped | |
6293 | mmap shared fixed at somewhere already mapped | |
6294 | For private mappings, we should verify that changes cannot be read() | |
6295 | back from the file, nor mmap's back from the file at a different | |
6296 | address. (There have been systems where private was not correctly | |
6297 | implemented like the infamous i386 svr4.0, and systems where the | |
6298 | VM page cache was not coherent with the filesystem buffer cache | |
6299 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6300 | For shared mappings, we should conversely verify that changes get | |
6301 | propogated back to all the places they're supposed to be. | |
6302 | ||
6303 | Grep wants private fixed already mapped. | |
6304 | The main things grep needs to know about mmap are: | |
6305 | * does it exist and is it safe to write into the mmap'd area | |
6306 | * how to use it (BSD variants) */ | |
6307 | #include <sys/types.h> | |
6308 | #include <fcntl.h> | |
6309 | #include <sys/mman.h> | |
6310 | ||
6311 | /* This mess was copied from the GNU getpagesize.h. */ | |
6312 | #ifndef HAVE_GETPAGESIZE | |
6313 | # ifdef HAVE_UNISTD_H | |
6314 | # include <unistd.h> | |
6315 | # endif | |
6316 | ||
6317 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6318 | # ifndef HAVE_SYS_PARAM_H | |
6319 | # define HAVE_SYS_PARAM_H 1 | |
6320 | # endif | |
6321 | ||
6322 | # ifdef _SC_PAGESIZE | |
6323 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6324 | # else /* no _SC_PAGESIZE */ | |
6325 | # ifdef HAVE_SYS_PARAM_H | |
6326 | # include <sys/param.h> | |
6327 | # ifdef EXEC_PAGESIZE | |
6328 | # define getpagesize() EXEC_PAGESIZE | |
6329 | # else /* no EXEC_PAGESIZE */ | |
6330 | # ifdef NBPG | |
6331 | # define getpagesize() NBPG * CLSIZE | |
6332 | # ifndef CLSIZE | |
6333 | # define CLSIZE 1 | |
6334 | # endif /* no CLSIZE */ | |
6335 | # else /* no NBPG */ | |
6336 | # ifdef NBPC | |
6337 | # define getpagesize() NBPC | |
6338 | # else /* no NBPC */ | |
6339 | # ifdef PAGESIZE | |
6340 | # define getpagesize() PAGESIZE | |
6341 | # endif /* PAGESIZE */ | |
6342 | # endif /* no NBPC */ | |
6343 | # endif /* no NBPG */ | |
6344 | # endif /* no EXEC_PAGESIZE */ | |
6345 | # else /* no HAVE_SYS_PARAM_H */ | |
6346 | # define getpagesize() 8192 /* punt totally */ | |
6347 | # endif /* no HAVE_SYS_PARAM_H */ | |
6348 | # endif /* no _SC_PAGESIZE */ | |
6349 | ||
6350 | #endif /* no HAVE_GETPAGESIZE */ | |
6351 | ||
6352 | #ifdef __cplusplus | |
6353 | extern "C" { void *malloc(unsigned); } | |
6354 | #else | |
6355 | char *malloc(); | |
6356 | #endif | |
6357 | ||
6358 | int | |
6359 | main() | |
6360 | { | |
6361 | char *data, *data2, *data3; | |
6362 | int i, pagesize; | |
6363 | int fd; | |
6364 | ||
6365 | pagesize = getpagesize(); | |
6366 | ||
6367 | /* | |
6368 | * First, make a file with some known garbage in it. | |
6369 | */ | |
6370 | data = malloc(pagesize); | |
6371 | if (!data) | |
6372 | exit(1); | |
6373 | for (i = 0; i < pagesize; ++i) | |
6374 | *(data + i) = rand(); | |
6375 | umask(0); | |
6376 | fd = creat("conftestmmap", 0600); | |
6377 | if (fd < 0) | |
6378 | exit(1); | |
6379 | if (write(fd, data, pagesize) != pagesize) | |
6380 | exit(1); | |
6381 | close(fd); | |
6382 | ||
6383 | /* | |
6384 | * Next, try to mmap the file at a fixed address which | |
6385 | * already has something else allocated at it. If we can, | |
6386 | * also make sure that we see the same garbage. | |
6387 | */ | |
6388 | fd = open("conftestmmap", O_RDWR); | |
6389 | if (fd < 0) | |
6390 | exit(1); | |
6391 | data2 = malloc(2 * pagesize); | |
6392 | if (!data2) | |
6393 | exit(1); | |
6394 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
6395 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
6396 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6397 | exit(1); | |
6398 | for (i = 0; i < pagesize; ++i) | |
6399 | if (*(data + i) != *(data2 + i)) | |
6400 | exit(1); | |
6401 | ||
6402 | /* | |
6403 | * Finally, make sure that changes to the mapped area | |
6404 | * do not percolate back to the file as seen by read(). | |
6405 | * (This is a bug on some variants of i386 svr4.0.) | |
6406 | */ | |
6407 | for (i = 0; i < pagesize; ++i) | |
6408 | *(data2 + i) = *(data2 + i) + 1; | |
6409 | data3 = malloc(pagesize); | |
6410 | if (!data3) | |
6411 | exit(1); | |
6412 | if (read(fd, data3, pagesize) != pagesize) | |
6413 | exit(1); | |
6414 | for (i = 0; i < pagesize; ++i) | |
6415 | if (*(data + i) != *(data3 + i)) | |
6416 | exit(1); | |
6417 | close(fd); | |
6418 | unlink("conftestmmap"); | |
6419 | exit(0); | |
6420 | } | |
6421 | ||
6422 | EOF | |
fdbafa10 | 6423 | if { (eval echo configure:6424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
6424 | then |
6425 | ac_cv_func_mmap_fixed_mapped=yes | |
6426 | else | |
6427 | echo "configure: failed program was:" >&5 | |
6428 | cat conftest.$ac_ext >&5 | |
6429 | rm -fr conftest* | |
6430 | ac_cv_func_mmap_fixed_mapped=no | |
6431 | fi | |
6432 | rm -fr conftest* | |
6433 | fi | |
6434 | ||
6435 | fi | |
6436 | ||
6437 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
6438 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6439 | cat >> confdefs.h <<\EOF | |
6440 | #define HAVE_MMAP 1 | |
6441 | EOF | |
6442 | ||
6443 | fi | |
6444 | ||
6445 | for ac_func in madvise mprotect | |
6446 | do | |
6447 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fdbafa10 | 6448 | echo "configure:6449: checking for $ac_func" >&5 |
653f71ca | 6449 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
6450 | echo $ac_n "(cached) $ac_c" 1>&6 |
6451 | else | |
6452 | cat > conftest.$ac_ext <<EOF | |
fdbafa10 | 6453 | #line 6454 "configure" |
252b5132 RH |
6454 | #include "confdefs.h" |
6455 | /* System header to define __stub macros and hopefully few prototypes, | |
6456 | which can conflict with char $ac_func(); below. */ | |
6457 | #include <assert.h> | |
6458 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6459 | /* We use char because int might match the return type of a gcc2 | |
6460 | builtin and then its argument prototype would still apply. */ | |
6461 | char $ac_func(); | |
6462 | ||
6463 | int main() { | |
6464 | ||
6465 | /* The GNU C library defines this for functions which it implements | |
6466 | to always fail with ENOSYS. Some functions are actually named | |
6467 | something starting with __ and the normal name is an alias. */ | |
6468 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6469 | choke me | |
6470 | #else | |
653f71ca | 6471 | $ac_func(); |
252b5132 RH |
6472 | #endif |
6473 | ||
6474 | ; return 0; } | |
6475 | EOF | |
fdbafa10 | 6476 | if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
6477 | rm -rf conftest* |
6478 | eval "ac_cv_func_$ac_func=yes" | |
6479 | else | |
6480 | echo "configure: failed program was:" >&5 | |
6481 | cat conftest.$ac_ext >&5 | |
6482 | rm -rf conftest* | |
6483 | eval "ac_cv_func_$ac_func=no" | |
6484 | fi | |
6485 | rm -f conftest* | |
6486 | fi | |
6487 | ||
6488 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6489 | echo "$ac_t""yes" 1>&6 | |
6490 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6491 | cat >> confdefs.h <<EOF | |
6492 | #define $ac_tr_func 1 | |
6493 | EOF | |
6494 | ||
6495 | else | |
6496 | echo "$ac_t""no" 1>&6 | |
6497 | fi | |
6498 | done | |
6499 | ||
6500 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
6501 | true+yes ) cat >> confdefs.h <<\EOF | |
6502 | #define USE_MMAP 1 | |
6503 | EOF | |
6504 | ;; | |
6505 | esac | |
6506 | ||
6507 | rm -f doc/config.status | |
6508 | trap '' 1 2 15 | |
6509 | cat > confcache <<\EOF | |
6510 | # This file is a shell script that caches the results of configure | |
6511 | # tests run on this system so they can be shared between configure | |
6512 | # scripts and configure runs. It is not useful on other systems. | |
6513 | # If it contains results you don't want to keep, you may remove or edit it. | |
6514 | # | |
6515 | # By default, configure uses ./config.cache as the cache file, | |
6516 | # creating it if it does not exist already. You can give configure | |
6517 | # the --cache-file=FILE option to use a different cache file; that is | |
6518 | # what configure does when it calls configure scripts in | |
6519 | # subdirectories, so they share the cache. | |
6520 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6521 | # config.status only pays attention to the cache file if you give it the | |
6522 | # --recheck option to rerun configure. | |
6523 | # | |
6524 | EOF | |
6525 | # The following way of writing the cache mishandles newlines in values, | |
6526 | # but we know of no workaround that is simple, portable, and efficient. | |
6527 | # So, don't put newlines in cache variables' values. | |
6528 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6529 | # and sets the high bit in the cache file unless we assign to the vars. | |
6530 | (set) 2>&1 | | |
6531 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6532 | *ac_space=\ *) | |
6533 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6534 | # turns \\\\ into \\, and sed turns \\ into \). | |
6535 | sed -n \ | |
6536 | -e "s/'/'\\\\''/g" \ | |
6537 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6538 | ;; | |
6539 | *) | |
6540 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6541 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6542 | ;; | |
6543 | esac >> confcache | |
6544 | if cmp -s $cache_file confcache; then | |
6545 | : | |
6546 | else | |
6547 | if test -w $cache_file; then | |
6548 | echo "updating cache $cache_file" | |
6549 | cat confcache > $cache_file | |
6550 | else | |
6551 | echo "not updating unwritable cache $cache_file" | |
6552 | fi | |
6553 | fi | |
6554 | rm -f confcache | |
6555 | ||
6556 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
6557 | ||
6558 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6559 | # Let make expand exec_prefix. | |
6560 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6561 | ||
6562 | # Any assignment to VPATH causes Sun make to only execute | |
6563 | # the first set of double-colon rules, so remove it if not needed. | |
6564 | # If there is a colon in the path, we need to keep it. | |
6565 | if test "x$srcdir" = x.; then | |
6566 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
6567 | fi | |
6568 | ||
6569 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
6570 | ||
6571 | DEFS=-DHAVE_CONFIG_H | |
6572 | ||
6573 | # Without the "./", some shells look in PATH for config.status. | |
6574 | : ${CONFIG_STATUS=./config.status} | |
6575 | ||
6576 | echo creating $CONFIG_STATUS | |
6577 | rm -f $CONFIG_STATUS | |
6578 | cat > $CONFIG_STATUS <<EOF | |
6579 | #! /bin/sh | |
6580 | # Generated automatically by configure. | |
6581 | # Run this file to recreate the current configuration. | |
6582 | # This directory was configured as follows, | |
6583 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
6584 | # | |
6585 | # $0 $ac_configure_args | |
6586 | # | |
6587 | # Compiler output produced by configure, useful for debugging | |
6588 | # configure, is in ./config.log if it exists. | |
6589 | ||
6590 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
6591 | for ac_option | |
6592 | do | |
6593 | case "\$ac_option" in | |
6594 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6595 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
6596 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
6597 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
653f71ca | 6598 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
252b5132 RH |
6599 | exit 0 ;; |
6600 | -help | --help | --hel | --he | --h) | |
6601 | echo "\$ac_cs_usage"; exit 0 ;; | |
6602 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
6603 | esac | |
6604 | done | |
6605 | ||
6606 | ac_given_srcdir=$srcdir | |
6607 | ac_given_INSTALL="$INSTALL" | |
6608 | ||
6609 | trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
6610 | EOF | |
6611 | cat >> $CONFIG_STATUS <<EOF | |
6612 | ||
6613 | # Protect against being on the right side of a sed subst in config.status. | |
6614 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
6615 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
6616 | $ac_vpsub | |
6617 | $extrasub | |
6618 | s%@SHELL@%$SHELL%g | |
6619 | s%@CFLAGS@%$CFLAGS%g | |
6620 | s%@CPPFLAGS@%$CPPFLAGS%g | |
6621 | s%@CXXFLAGS@%$CXXFLAGS%g | |
6622 | s%@FFLAGS@%$FFLAGS%g | |
6623 | s%@DEFS@%$DEFS%g | |
6624 | s%@LDFLAGS@%$LDFLAGS%g | |
6625 | s%@LIBS@%$LIBS%g | |
6626 | s%@exec_prefix@%$exec_prefix%g | |
6627 | s%@prefix@%$prefix%g | |
6628 | s%@program_transform_name@%$program_transform_name%g | |
6629 | s%@bindir@%$bindir%g | |
6630 | s%@sbindir@%$sbindir%g | |
6631 | s%@libexecdir@%$libexecdir%g | |
6632 | s%@datadir@%$datadir%g | |
6633 | s%@sysconfdir@%$sysconfdir%g | |
6634 | s%@sharedstatedir@%$sharedstatedir%g | |
6635 | s%@localstatedir@%$localstatedir%g | |
6636 | s%@libdir@%$libdir%g | |
6637 | s%@includedir@%$includedir%g | |
6638 | s%@oldincludedir@%$oldincludedir%g | |
6639 | s%@infodir@%$infodir%g | |
6640 | s%@mandir@%$mandir%g | |
6641 | s%@host@%$host%g | |
6642 | s%@host_alias@%$host_alias%g | |
6643 | s%@host_cpu@%$host_cpu%g | |
6644 | s%@host_vendor@%$host_vendor%g | |
6645 | s%@host_os@%$host_os%g | |
6646 | s%@target@%$target%g | |
6647 | s%@target_alias@%$target_alias%g | |
6648 | s%@target_cpu@%$target_cpu%g | |
6649 | s%@target_vendor@%$target_vendor%g | |
6650 | s%@target_os@%$target_os%g | |
6651 | s%@build@%$build%g | |
6652 | s%@build_alias@%$build_alias%g | |
6653 | s%@build_cpu@%$build_cpu%g | |
6654 | s%@build_vendor@%$build_vendor%g | |
6655 | s%@build_os@%$build_os%g | |
252b5132 RH |
6656 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
6657 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
6658 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
6659 | s%@PACKAGE@%$PACKAGE%g | |
6660 | s%@VERSION@%$VERSION%g | |
6661 | s%@ACLOCAL@%$ACLOCAL%g | |
6662 | s%@AUTOCONF@%$AUTOCONF%g | |
6663 | s%@AUTOMAKE@%$AUTOMAKE%g | |
6664 | s%@AUTOHEADER@%$AUTOHEADER%g | |
6665 | s%@MAKEINFO@%$MAKEINFO%g | |
6666 | s%@SET_MAKE@%$SET_MAKE%g | |
6667 | s%@AR@%$AR%g | |
6668 | s%@RANLIB@%$RANLIB%g | |
8d88c4ca | 6669 | s%@CC@%$CC%g |
252b5132 | 6670 | s%@LN_S@%$LN_S%g |
ac48eca1 AO |
6671 | s%@OBJEXT@%$OBJEXT%g |
6672 | s%@EXEEXT@%$EXEEXT%g | |
6673 | s%@STRIP@%$STRIP%g | |
b2ef150d | 6674 | s%@LIBTOOL@%$LIBTOOL%g |
a2d91340 | 6675 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g |
252b5132 RH |
6676 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
6677 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
6678 | s%@MAINT@%$MAINT%g | |
252b5132 RH |
6679 | s%@CPP@%$CPP%g |
6680 | s%@ALLOCA@%$ALLOCA%g | |
6681 | s%@USE_NLS@%$USE_NLS%g | |
6682 | s%@MSGFMT@%$MSGFMT%g | |
6683 | s%@GMSGFMT@%$GMSGFMT%g | |
6684 | s%@XGETTEXT@%$XGETTEXT%g | |
6685 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
6686 | s%@CATALOGS@%$CATALOGS%g | |
6687 | s%@CATOBJEXT@%$CATOBJEXT%g | |
6688 | s%@DATADIRNAME@%$DATADIRNAME%g | |
6689 | s%@GMOFILES@%$GMOFILES%g | |
6690 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
6691 | s%@INTLDEPS@%$INTLDEPS%g | |
6692 | s%@INTLLIBS@%$INTLLIBS%g | |
6693 | s%@INTLOBJS@%$INTLOBJS%g | |
6694 | s%@POFILES@%$POFILES%g | |
6695 | s%@POSUB@%$POSUB%g | |
6696 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
6697 | s%@GT_NO@%$GT_NO%g | |
6698 | s%@GT_YES@%$GT_YES%g | |
6699 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
6700 | s%@l@%$l%g | |
6701 | s%@HDEFINES@%$HDEFINES%g | |
6702 | s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g | |
6703 | s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g | |
6704 | s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g | |
6705 | s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g | |
6706 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g | |
6707 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g | |
6708 | s%@COREFILE@%$COREFILE%g | |
6709 | s%@COREFLAG@%$COREFLAG%g | |
6710 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g | |
6711 | s%@WIN32LIBADD@%$WIN32LIBADD%g | |
6712 | s%@TDEFINES@%$TDEFINES%g | |
6713 | s%@wordsize@%$wordsize%g | |
6714 | s%@all_backends@%$all_backends%g | |
6715 | s%@bfd_backends@%$bfd_backends%g | |
6716 | s%@bfd_machines@%$bfd_machines%g | |
6717 | s%@tdefaults@%$tdefaults%g | |
6718 | ||
6719 | CEOF | |
6720 | EOF | |
6721 | ||
6722 | cat >> $CONFIG_STATUS <<\EOF | |
6723 | ||
6724 | # Split the substitutions into bite-sized pieces for seds with | |
6725 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6726 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
6727 | ac_file=1 # Number of current file. | |
6728 | ac_beg=1 # First line for current file. | |
6729 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6730 | ac_more_lines=: | |
6731 | ac_sed_cmds="" | |
6732 | while $ac_more_lines; do | |
6733 | if test $ac_beg -gt 1; then | |
6734 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6735 | else | |
6736 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6737 | fi | |
6738 | if test ! -s conftest.s$ac_file; then | |
6739 | ac_more_lines=false | |
6740 | rm -f conftest.s$ac_file | |
6741 | else | |
6742 | if test -z "$ac_sed_cmds"; then | |
6743 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
6744 | else | |
6745 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
6746 | fi | |
6747 | ac_file=`expr $ac_file + 1` | |
6748 | ac_beg=$ac_end | |
6749 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
6750 | fi | |
6751 | done | |
6752 | if test -z "$ac_sed_cmds"; then | |
6753 | ac_sed_cmds=cat | |
6754 | fi | |
6755 | EOF | |
6756 | ||
6757 | cat >> $CONFIG_STATUS <<EOF | |
6758 | ||
6759 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"} | |
6760 | EOF | |
6761 | cat >> $CONFIG_STATUS <<\EOF | |
6762 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
6763 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6764 | case "$ac_file" in | |
6765 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6766 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6767 | *) ac_file_in="${ac_file}.in" ;; | |
6768 | esac | |
6769 | ||
6770 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
6771 | ||
6772 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6773 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6774 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6775 | # The file is in a subdirectory. | |
6776 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6777 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
6778 | # A "../" for each directory in $ac_dir_suffix. | |
6779 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
6780 | else | |
6781 | ac_dir_suffix= ac_dots= | |
6782 | fi | |
6783 | ||
6784 | case "$ac_given_srcdir" in | |
6785 | .) srcdir=. | |
6786 | if test -z "$ac_dots"; then top_srcdir=. | |
6787 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6788 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
6789 | *) # Relative path. | |
6790 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
6791 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6792 | esac | |
6793 | ||
6794 | case "$ac_given_INSTALL" in | |
6795 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6796 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
6797 | esac | |
6798 | ||
6799 | echo creating "$ac_file" | |
6800 | rm -f "$ac_file" | |
6801 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6802 | case "$ac_file" in | |
6803 | *Makefile*) ac_comsub="1i\\ | |
6804 | # $configure_input" ;; | |
6805 | *) ac_comsub= ;; | |
6806 | esac | |
6807 | ||
6808 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6809 | sed -e "$ac_comsub | |
6810 | s%@configure_input@%$configure_input%g | |
6811 | s%@srcdir@%$srcdir%g | |
6812 | s%@top_srcdir@%$top_srcdir%g | |
6813 | s%@INSTALL@%$INSTALL%g | |
6814 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
6815 | fi; done | |
6816 | rm -f conftest.s* | |
6817 | ||
6818 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
6819 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6820 | # | |
6821 | # ac_d sets the value in "#define NAME VALUE" lines. | |
6822 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
6823 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
6824 | ac_dC='\3' | |
6825 | ac_dD='%g' | |
6826 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
6827 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6828 | ac_uB='\([ ]\)%\1#\2define\3' | |
6829 | ac_uC=' ' | |
6830 | ac_uD='\4%g' | |
6831 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
6832 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6833 | ac_eB='$%\1#\2define\3' | |
6834 | ac_eC=' ' | |
6835 | ac_eD='%g' | |
6836 | ||
6837 | if test "${CONFIG_HEADERS+set}" != set; then | |
6838 | EOF | |
6839 | cat >> $CONFIG_STATUS <<EOF | |
6840 | CONFIG_HEADERS="config.h:config.in" | |
6841 | EOF | |
6842 | cat >> $CONFIG_STATUS <<\EOF | |
6843 | fi | |
6844 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
6845 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6846 | case "$ac_file" in | |
6847 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6848 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6849 | *) ac_file_in="${ac_file}.in" ;; | |
6850 | esac | |
6851 | ||
6852 | echo creating $ac_file | |
6853 | ||
6854 | rm -f conftest.frag conftest.in conftest.out | |
6855 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6856 | cat $ac_file_inputs > conftest.in | |
6857 | ||
6858 | EOF | |
6859 | ||
6860 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
6861 | # the proper values into config.h.in to produce config.h. And first: | |
6862 | # Protect against being on the right side of a sed subst in config.status. | |
6863 | # Protect against being in an unquoted here document in config.status. | |
6864 | rm -f conftest.vals | |
6865 | cat > conftest.hdr <<\EOF | |
6866 | s/[\\&%]/\\&/g | |
6867 | s%[\\$`]%\\&%g | |
6868 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
6869 | s%ac_d%ac_u%gp | |
6870 | s%ac_u%ac_e%gp | |
6871 | EOF | |
6872 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
6873 | rm -f conftest.hdr | |
6874 | ||
6875 | # This sed command replaces #undef with comments. This is necessary, for | |
6876 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6877 | # on some systems where configure will not decide to define it. | |
6878 | cat >> conftest.vals <<\EOF | |
6879 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
6880 | EOF | |
6881 | ||
6882 | # Break up conftest.vals because some shells have a limit on | |
6883 | # the size of here documents, and old seds have small limits too. | |
6884 | ||
6885 | rm -f conftest.tail | |
6886 | while : | |
6887 | do | |
6888 | ac_lines=`grep -c . conftest.vals` | |
6889 | # grep -c gives empty output for an empty file on some AIX systems. | |
6890 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
6891 | # Write a limited-size here document to conftest.frag. | |
6892 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
6893 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
6894 | echo 'CEOF | |
6895 | sed -f conftest.frag conftest.in > conftest.out | |
6896 | rm -f conftest.in | |
6897 | mv conftest.out conftest.in | |
6898 | ' >> $CONFIG_STATUS | |
6899 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
6900 | rm -f conftest.vals | |
6901 | mv conftest.tail conftest.vals | |
6902 | done | |
6903 | rm -f conftest.vals | |
6904 | ||
6905 | cat >> $CONFIG_STATUS <<\EOF | |
6906 | rm -f conftest.frag conftest.h | |
6907 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
6908 | cat conftest.in >> conftest.h | |
6909 | rm -f conftest.in | |
6910 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
6911 | echo "$ac_file is unchanged" | |
6912 | rm -f conftest.h | |
6913 | else | |
6914 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6915 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6916 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6917 | # The file is in a subdirectory. | |
6918 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6919 | fi | |
6920 | rm -f $ac_file | |
6921 | mv conftest.h $ac_file | |
6922 | fi | |
6923 | fi; done | |
6924 | ||
6925 | EOF | |
6926 | cat >> $CONFIG_STATUS <<EOF | |
6927 | ||
6928 | ||
6929 | EOF | |
6930 | cat >> $CONFIG_STATUS <<\EOF | |
6931 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | |
55c80943 | 6932 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile |
252b5132 RH |
6933 | exit 0 |
6934 | EOF | |
6935 | chmod +x $CONFIG_STATUS | |
6936 | rm -fr confdefs* $ac_clean_files | |
653f71ca | 6937 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
252b5132 | 6938 | |
55c80943 | 6939 |