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