Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
a2d91340 | 4 | # Generated automatically using autoconf version 2.13 |
252b5132 RH |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --enable-shared[=PKGS] build shared libraries [default=no]" | |
16 | ac_help="$ac_help | |
17 | --enable-static[=PKGS] build static libraries [default=yes]" | |
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 | |
a74801ba | 23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
ac48eca1 AO |
24 | ac_help="$ac_help |
25 | --with-pic try to use only PIC/non-PIC objects [default=use both]" | |
252b5132 RH |
26 | ac_help="$ac_help |
27 | --enable-targets alternative target configurations" | |
28 | ac_help="$ac_help | |
29 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library" | |
a2d91340 AC |
30 | ac_help="$ac_help |
31 | --enable-build-warnings Enable build-time compiler warnings if gcc is used" | |
252b5132 RH |
32 | ac_help="$ac_help |
33 | --enable-maintainer-mode enable make rules and dependencies not useful | |
34 | (and sometimes confusing) to the casual installer" | |
81172ff2 | 35 | ac_help="$ac_help |
71bee782 | 36 | --enable-install-libbfd controls installation of libbfd and related headers" |
252b5132 RH |
37 | ac_help="$ac_help |
38 | --disable-nls do not use Native Language Support" | |
39 | ac_help="$ac_help | |
40 | --with-included-gettext use the GNU gettext library included here" | |
6e31aea3 BE |
41 | ac_help="$ac_help |
42 | --enable-cgen-maint[=dir] build cgen generated files" | |
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. | |
47 | build=NONE | |
48 | cache_file=./config.cache | |
49 | exec_prefix=NONE | |
50 | host=NONE | |
51 | no_create= | |
52 | nonopt=NONE | |
53 | no_recursion= | |
54 | prefix=NONE | |
55 | program_prefix=NONE | |
56 | program_suffix=NONE | |
57 | program_transform_name=s,x,x, | |
58 | silent= | |
59 | site= | |
1fe1f39c | 60 | sitefile= |
252b5132 RH |
61 | srcdir= |
62 | target=NONE | |
63 | verbose= | |
64 | x_includes=NONE | |
65 | x_libraries=NONE | |
66 | bindir='${exec_prefix}/bin' | |
67 | sbindir='${exec_prefix}/sbin' | |
68 | libexecdir='${exec_prefix}/libexec' | |
69 | datadir='${prefix}/share' | |
70 | sysconfdir='${prefix}/etc' | |
71 | sharedstatedir='${prefix}/com' | |
72 | localstatedir='${prefix}/var' | |
73 | libdir='${exec_prefix}/lib' | |
74 | includedir='${prefix}/include' | |
75 | oldincludedir='/usr/include' | |
76 | infodir='${prefix}/info' | |
77 | mandir='${prefix}/man' | |
78 | ||
79 | # Initialize some other variables. | |
80 | subdirs= | |
81 | MFLAGS= MAKEFLAGS= | |
82 | SHELL=${CONFIG_SHELL-/bin/sh} | |
83 | # Maximum number of lines to put in a shell here document. | |
84 | ac_max_here_lines=12 | |
85 | ||
86 | ac_prev= | |
87 | for ac_option | |
88 | do | |
89 | ||
90 | # If the previous option needs an argument, assign it. | |
91 | if test -n "$ac_prev"; then | |
92 | eval "$ac_prev=\$ac_option" | |
93 | ac_prev= | |
94 | continue | |
95 | fi | |
96 | ||
97 | case "$ac_option" in | |
98 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
99 | *) ac_optarg= ;; | |
100 | esac | |
101 | ||
102 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
103 | ||
104 | case "$ac_option" in | |
105 | ||
106 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
107 | ac_prev=bindir ;; | |
108 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
109 | bindir="$ac_optarg" ;; | |
110 | ||
111 | -build | --build | --buil | --bui | --bu) | |
112 | ac_prev=build ;; | |
113 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
114 | build="$ac_optarg" ;; | |
115 | ||
116 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
117 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
118 | ac_prev=cache_file ;; | |
119 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
120 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
121 | cache_file="$ac_optarg" ;; | |
122 | ||
123 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
124 | ac_prev=datadir ;; | |
125 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
126 | | --da=*) | |
127 | datadir="$ac_optarg" ;; | |
128 | ||
129 | -disable-* | --disable-*) | |
130 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
131 | # Reject names that are not valid shell variable names. | |
132 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
134 | fi | |
135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
136 | eval "enable_${ac_feature}=no" ;; | |
137 | ||
138 | -enable-* | --enable-*) | |
139 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
140 | # Reject names that are not valid shell variable names. | |
141 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
142 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
143 | fi | |
144 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
145 | case "$ac_option" in | |
146 | *=*) ;; | |
147 | *) ac_optarg=yes ;; | |
148 | esac | |
149 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
150 | ||
151 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
152 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
153 | | --exec | --exe | --ex) | |
154 | ac_prev=exec_prefix ;; | |
155 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
156 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
157 | | --exec=* | --exe=* | --ex=*) | |
158 | exec_prefix="$ac_optarg" ;; | |
159 | ||
160 | -gas | --gas | --ga | --g) | |
161 | # Obsolete; use --with-gas. | |
162 | with_gas=yes ;; | |
163 | ||
164 | -help | --help | --hel | --he) | |
165 | # Omit some internal or obsolete options to make the list less imposing. | |
166 | # This message is too long to be a string in the A/UX 3.1 sh. | |
167 | cat << EOF | |
168 | Usage: configure [options] [host] | |
169 | Options: [defaults in brackets after descriptions] | |
170 | Configuration: | |
171 | --cache-file=FILE cache test results in FILE | |
172 | --help print this message | |
173 | --no-create do not create output files | |
174 | --quiet, --silent do not print \`checking...' messages | |
1fe1f39c | 175 | --site-file=FILE use FILE as the site file |
252b5132 RH |
176 | --version print the version of autoconf that created configure |
177 | Directory and file names: | |
178 | --prefix=PREFIX install architecture-independent files in PREFIX | |
179 | [$ac_default_prefix] | |
180 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
181 | [same as prefix] | |
182 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
183 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
184 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
185 | --datadir=DIR read-only architecture-independent data in DIR | |
186 | [PREFIX/share] | |
187 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
188 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
189 | [PREFIX/com] | |
190 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
191 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
192 | --includedir=DIR C header files in DIR [PREFIX/include] | |
193 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
194 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
195 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
196 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
197 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
198 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
199 | --program-transform-name=PROGRAM | |
200 | run sed PROGRAM on installed program names | |
201 | EOF | |
202 | cat << EOF | |
203 | Host type: | |
204 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
205 | --host=HOST configure for HOST [guessed] | |
206 | --target=TARGET configure for TARGET [TARGET=HOST] | |
207 | Features and packages: | |
208 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
209 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
210 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
211 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
212 | --x-includes=DIR X include files are in DIR | |
213 | --x-libraries=DIR X library files are in DIR | |
214 | EOF | |
215 | if test -n "$ac_help"; then | |
216 | echo "--enable and --with options recognized:$ac_help" | |
217 | fi | |
218 | exit 0 ;; | |
219 | ||
220 | -host | --host | --hos | --ho) | |
221 | ac_prev=host ;; | |
222 | -host=* | --host=* | --hos=* | --ho=*) | |
223 | host="$ac_optarg" ;; | |
224 | ||
225 | -includedir | --includedir | --includedi | --included | --include \ | |
226 | | --includ | --inclu | --incl | --inc) | |
227 | ac_prev=includedir ;; | |
228 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
229 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
230 | includedir="$ac_optarg" ;; | |
231 | ||
232 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
233 | ac_prev=infodir ;; | |
234 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
235 | infodir="$ac_optarg" ;; | |
236 | ||
237 | -libdir | --libdir | --libdi | --libd) | |
238 | ac_prev=libdir ;; | |
239 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
240 | libdir="$ac_optarg" ;; | |
241 | ||
242 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
243 | | --libexe | --libex | --libe) | |
244 | ac_prev=libexecdir ;; | |
245 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
246 | | --libexe=* | --libex=* | --libe=*) | |
247 | libexecdir="$ac_optarg" ;; | |
248 | ||
249 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
250 | | --localstate | --localstat | --localsta | --localst \ | |
251 | | --locals | --local | --loca | --loc | --lo) | |
252 | ac_prev=localstatedir ;; | |
253 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
254 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
255 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
256 | localstatedir="$ac_optarg" ;; | |
257 | ||
258 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
259 | ac_prev=mandir ;; | |
260 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
261 | mandir="$ac_optarg" ;; | |
262 | ||
263 | -nfp | --nfp | --nf) | |
264 | # Obsolete; use --without-fp. | |
265 | with_fp=no ;; | |
266 | ||
267 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
268 | | --no-cr | --no-c) | |
269 | no_create=yes ;; | |
270 | ||
271 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
272 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
273 | no_recursion=yes ;; | |
274 | ||
275 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
276 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
277 | | --oldin | --oldi | --old | --ol | --o) | |
278 | ac_prev=oldincludedir ;; | |
279 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
280 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
281 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
282 | oldincludedir="$ac_optarg" ;; | |
283 | ||
284 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
285 | ac_prev=prefix ;; | |
286 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
287 | prefix="$ac_optarg" ;; | |
288 | ||
289 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
290 | | --program-pre | --program-pr | --program-p) | |
291 | ac_prev=program_prefix ;; | |
292 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
293 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
294 | program_prefix="$ac_optarg" ;; | |
295 | ||
296 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
297 | | --program-suf | --program-su | --program-s) | |
298 | ac_prev=program_suffix ;; | |
299 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
300 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
301 | program_suffix="$ac_optarg" ;; | |
302 | ||
303 | -program-transform-name | --program-transform-name \ | |
304 | | --program-transform-nam | --program-transform-na \ | |
305 | | --program-transform-n | --program-transform- \ | |
306 | | --program-transform | --program-transfor \ | |
307 | | --program-transfo | --program-transf \ | |
308 | | --program-trans | --program-tran \ | |
309 | | --progr-tra | --program-tr | --program-t) | |
310 | ac_prev=program_transform_name ;; | |
311 | -program-transform-name=* | --program-transform-name=* \ | |
312 | | --program-transform-nam=* | --program-transform-na=* \ | |
313 | | --program-transform-n=* | --program-transform-=* \ | |
314 | | --program-transform=* | --program-transfor=* \ | |
315 | | --program-transfo=* | --program-transf=* \ | |
316 | | --program-trans=* | --program-tran=* \ | |
317 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
318 | program_transform_name="$ac_optarg" ;; | |
319 | ||
320 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
321 | | -silent | --silent | --silen | --sile | --sil) | |
322 | silent=yes ;; | |
323 | ||
324 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
325 | ac_prev=sbindir ;; | |
326 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
327 | | --sbi=* | --sb=*) | |
328 | sbindir="$ac_optarg" ;; | |
329 | ||
330 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
331 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
332 | | --sharedst | --shareds | --shared | --share | --shar \ | |
333 | | --sha | --sh) | |
334 | ac_prev=sharedstatedir ;; | |
335 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
336 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
337 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
338 | | --sha=* | --sh=*) | |
339 | sharedstatedir="$ac_optarg" ;; | |
340 | ||
341 | -site | --site | --sit) | |
342 | ac_prev=site ;; | |
343 | -site=* | --site=* | --sit=*) | |
344 | site="$ac_optarg" ;; | |
345 | ||
1fe1f39c NC |
346 | -site-file | --site-file | --site-fil | --site-fi | --site-f) |
347 | ac_prev=sitefile ;; | |
348 | -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) | |
349 | sitefile="$ac_optarg" ;; | |
350 | ||
252b5132 RH |
351 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
352 | ac_prev=srcdir ;; | |
353 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
354 | srcdir="$ac_optarg" ;; | |
355 | ||
356 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
357 | | --syscon | --sysco | --sysc | --sys | --sy) | |
358 | ac_prev=sysconfdir ;; | |
359 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
360 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
361 | sysconfdir="$ac_optarg" ;; | |
362 | ||
363 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
364 | ac_prev=target ;; | |
365 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
366 | target="$ac_optarg" ;; | |
367 | ||
368 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
369 | verbose=yes ;; | |
370 | ||
371 | -version | --version | --versio | --versi | --vers) | |
a2d91340 | 372 | echo "configure generated by autoconf version 2.13" |
252b5132 RH |
373 | exit 0 ;; |
374 | ||
375 | -with-* | --with-*) | |
376 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
377 | # Reject names that are not valid shell variable names. | |
378 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
379 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
380 | fi | |
381 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
382 | case "$ac_option" in | |
383 | *=*) ;; | |
384 | *) ac_optarg=yes ;; | |
385 | esac | |
386 | eval "with_${ac_package}='$ac_optarg'" ;; | |
387 | ||
388 | -without-* | --without-*) | |
389 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
390 | # Reject names that are not valid shell variable names. | |
391 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
392 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
393 | fi | |
394 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
395 | eval "with_${ac_package}=no" ;; | |
396 | ||
397 | --x) | |
398 | # Obsolete; use --with-x. | |
399 | with_x=yes ;; | |
400 | ||
401 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
402 | | --x-incl | --x-inc | --x-in | --x-i) | |
403 | ac_prev=x_includes ;; | |
404 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
405 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
406 | x_includes="$ac_optarg" ;; | |
407 | ||
408 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
409 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
410 | ac_prev=x_libraries ;; | |
411 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
412 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
413 | x_libraries="$ac_optarg" ;; | |
414 | ||
415 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
416 | ;; | |
417 | ||
418 | *) | |
419 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
420 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
421 | fi | |
422 | if test "x$nonopt" != xNONE; then | |
423 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
424 | fi | |
425 | nonopt="$ac_option" | |
426 | ;; | |
427 | ||
428 | esac | |
429 | done | |
430 | ||
431 | if test -n "$ac_prev"; then | |
432 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
433 | fi | |
434 | ||
435 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
436 | ||
437 | # File descriptor usage: | |
438 | # 0 standard input | |
439 | # 1 file creation | |
440 | # 2 errors and warnings | |
441 | # 3 some systems may open it to /dev/tty | |
442 | # 4 used on the Kubota Titan | |
443 | # 6 checking for... messages and results | |
444 | # 5 compiler messages saved in config.log | |
445 | if test "$silent" = yes; then | |
446 | exec 6>/dev/null | |
447 | else | |
448 | exec 6>&1 | |
449 | fi | |
450 | exec 5>./config.log | |
451 | ||
452 | echo "\ | |
453 | This file contains any messages produced by compilers while | |
454 | running configure, to aid debugging if configure makes a mistake. | |
455 | " 1>&5 | |
456 | ||
457 | # Strip out --no-create and --no-recursion so they do not pile up. | |
458 | # Also quote any args containing shell metacharacters. | |
459 | ac_configure_args= | |
460 | for ac_arg | |
461 | do | |
462 | case "$ac_arg" in | |
463 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
464 | | --no-cr | --no-c) ;; | |
465 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
466 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
467 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
468 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
469 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
470 | esac | |
471 | done | |
472 | ||
473 | # NLS nuisances. | |
474 | # Only set these to C if already set. These must not be set unconditionally | |
475 | # because not all systems understand e.g. LANG=C (notably SCO). | |
476 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
477 | # Non-C LC_CTYPE values break the ctype check. | |
478 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
479 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
480 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
481 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
482 | ||
483 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
484 | rm -rf conftest* confdefs.h | |
485 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
486 | echo > confdefs.h | |
487 | ||
488 | # A filename unique to this package, relative to the directory that | |
489 | # configure is in, which we can look for to find out if srcdir is correct. | |
490 | ac_unique_file=z8k-dis.c | |
491 | ||
492 | # Find the source files, if location was not specified. | |
493 | if test -z "$srcdir"; then | |
494 | ac_srcdir_defaulted=yes | |
495 | # Try the directory containing this script, then its parent. | |
496 | ac_prog=$0 | |
497 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
498 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
499 | srcdir=$ac_confdir | |
500 | if test ! -r $srcdir/$ac_unique_file; then | |
501 | srcdir=.. | |
502 | fi | |
503 | else | |
504 | ac_srcdir_defaulted=no | |
505 | fi | |
506 | if test ! -r $srcdir/$ac_unique_file; then | |
507 | if test "$ac_srcdir_defaulted" = yes; then | |
508 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
509 | else | |
510 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
511 | fi | |
512 | fi | |
513 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
514 | ||
515 | # Prefer explicitly selected file to automatically selected ones. | |
1fe1f39c NC |
516 | if test -z "$sitefile"; then |
517 | if test -z "$CONFIG_SITE"; then | |
518 | if test "x$prefix" != xNONE; then | |
519 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
520 | else | |
521 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
522 | fi | |
252b5132 | 523 | fi |
1fe1f39c NC |
524 | else |
525 | CONFIG_SITE="$sitefile" | |
252b5132 RH |
526 | fi |
527 | for ac_site_file in $CONFIG_SITE; do | |
528 | if test -r "$ac_site_file"; then | |
529 | echo "loading site script $ac_site_file" | |
530 | . "$ac_site_file" | |
531 | fi | |
532 | done | |
533 | ||
534 | if test -r "$cache_file"; then | |
535 | echo "loading cache $cache_file" | |
a2d91340 | 536 | . $cache_file |
252b5132 RH |
537 | else |
538 | echo "creating cache $cache_file" | |
539 | > $cache_file | |
540 | fi | |
541 | ||
542 | ac_ext=c | |
543 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
544 | ac_cpp='$CPP $CPPFLAGS' | |
545 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
546 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
547 | cross_compiling=$ac_cv_prog_cc_cross | |
548 | ||
549 | ac_exeext= | |
550 | ac_objext=o | |
551 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
552 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
553 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
554 | ac_n= ac_c=' | |
555 | ' ac_t=' ' | |
556 | else | |
557 | ac_n=-n ac_c= ac_t= | |
558 | fi | |
559 | else | |
560 | ac_n= ac_c='\c' ac_t= | |
561 | fi | |
562 | ||
ac48eca1 | 563 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
1fe1f39c | 564 | echo "configure:565: checking for Cygwin environment" >&5 |
ac48eca1 AO |
565 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
567 | else | |
568 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 569 | #line 570 "configure" |
ac48eca1 AO |
570 | #include "confdefs.h" |
571 | ||
572 | int main() { | |
573 | ||
574 | #ifndef __CYGWIN__ | |
575 | #define __CYGWIN__ __CYGWIN32__ | |
576 | #endif | |
577 | return __CYGWIN__; | |
578 | ; return 0; } | |
579 | EOF | |
1fe1f39c | 580 | if { (eval echo configure:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac48eca1 AO |
581 | rm -rf conftest* |
582 | ac_cv_cygwin=yes | |
583 | else | |
584 | echo "configure: failed program was:" >&5 | |
585 | cat conftest.$ac_ext >&5 | |
586 | rm -rf conftest* | |
587 | ac_cv_cygwin=no | |
588 | fi | |
589 | rm -f conftest* | |
590 | rm -f conftest* | |
591 | fi | |
592 | ||
593 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
594 | CYGWIN= | |
595 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
596 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
1fe1f39c | 597 | echo "configure:598: checking for mingw32 environment" >&5 |
ac48eca1 AO |
598 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
599 | echo $ac_n "(cached) $ac_c" 1>&6 | |
600 | else | |
601 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 602 | #line 603 "configure" |
ac48eca1 AO |
603 | #include "confdefs.h" |
604 | ||
605 | int main() { | |
606 | return __MINGW32__; | |
607 | ; return 0; } | |
608 | EOF | |
1fe1f39c | 609 | if { (eval echo configure:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac48eca1 AO |
610 | rm -rf conftest* |
611 | ac_cv_mingw32=yes | |
612 | else | |
613 | echo "configure: failed program was:" >&5 | |
614 | cat conftest.$ac_ext >&5 | |
615 | rm -rf conftest* | |
616 | ac_cv_mingw32=no | |
617 | fi | |
618 | rm -f conftest* | |
619 | rm -f conftest* | |
620 | fi | |
621 | ||
622 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
623 | MINGW32= | |
624 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
252b5132 RH |
625 | |
626 | ||
627 | ac_aux_dir= | |
628 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
629 | if test -f $ac_dir/install-sh; then | |
630 | ac_aux_dir=$ac_dir | |
631 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
632 | break | |
633 | elif test -f $ac_dir/install.sh; then | |
634 | ac_aux_dir=$ac_dir | |
635 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
636 | break | |
637 | fi | |
638 | done | |
639 | if test -z "$ac_aux_dir"; then | |
640 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
641 | fi | |
a2d91340 AC |
642 | ac_config_guess=$ac_aux_dir/config.guess |
643 | ac_config_sub=$ac_aux_dir/config.sub | |
644 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
252b5132 RH |
645 | |
646 | ||
647 | # Do some error checking and defaulting for the host and target type. | |
648 | # The inputs are: | |
649 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
650 | # | |
651 | # The rules are: | |
652 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
653 | # same time. | |
654 | # 2. Host defaults to nonopt. | |
655 | # 3. If nonopt is not specified, then host defaults to the current host, | |
656 | # as determined by config.guess. | |
657 | # 4. Target and build default to nonopt. | |
658 | # 5. If nonopt is not specified, then target and build default to host. | |
659 | ||
660 | # The aliases save the names the user supplied, while $host etc. | |
661 | # will get canonicalized. | |
662 | case $host---$target---$nonopt in | |
663 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
664 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
665 | esac | |
666 | ||
a2d91340 AC |
667 | |
668 | # Make sure we can run config.sub. | |
669 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
670 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
671 | fi | |
672 | ||
673 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
1fe1f39c | 674 | echo "configure:675: checking host system type" >&5 |
a2d91340 AC |
675 | |
676 | host_alias=$host | |
677 | case "$host_alias" in | |
678 | NONE) | |
679 | case $nonopt in | |
680 | NONE) | |
681 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
682 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
683 | fi ;; | |
684 | *) host_alias=$nonopt ;; | |
685 | esac ;; | |
686 | esac | |
687 | ||
688 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
689 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
690 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
691 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
692 | echo "$ac_t""$host" 1>&6 | |
693 | ||
694 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
1fe1f39c | 695 | echo "configure:696: checking target system type" >&5 |
a2d91340 AC |
696 | |
697 | target_alias=$target | |
698 | case "$target_alias" in | |
699 | NONE) | |
700 | case $nonopt in | |
701 | NONE) target_alias=$host_alias ;; | |
702 | *) target_alias=$nonopt ;; | |
703 | esac ;; | |
704 | esac | |
705 | ||
706 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
707 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
708 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
709 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
710 | echo "$ac_t""$target" 1>&6 | |
711 | ||
712 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
1fe1f39c | 713 | echo "configure:714: checking build system type" >&5 |
a2d91340 AC |
714 | |
715 | build_alias=$build | |
716 | case "$build_alias" in | |
717 | NONE) | |
718 | case $nonopt in | |
719 | NONE) build_alias=$host_alias ;; | |
720 | *) build_alias=$nonopt ;; | |
721 | esac ;; | |
722 | esac | |
723 | ||
724 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
725 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
726 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
727 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
728 | echo "$ac_t""$build" 1>&6 | |
729 | ||
252b5132 RH |
730 | test "$host_alias" != "$target_alias" && |
731 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
732 | NONENONEs,x,x, && | |
733 | program_prefix=${target_alias}- | |
734 | ||
2c73f9d8 | 735 | |
75798298 | 736 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
1fe1f39c | 737 | echo "configure:738: checking for strerror in -lcposix" >&5 |
75798298 NC |
738 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
739 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2c73f9d8 AM |
740 | echo $ac_n "(cached) $ac_c" 1>&6 |
741 | else | |
75798298 NC |
742 | ac_save_LIBS="$LIBS" |
743 | LIBS="-lcposix $LIBS" | |
744 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 745 | #line 746 "configure" |
252b5132 | 746 | #include "confdefs.h" |
75798298 NC |
747 | /* Override any gcc2 internal prototype to avoid an error. */ |
748 | /* We use char because int might match the return type of a gcc2 | |
749 | builtin and then its argument prototype would still apply. */ | |
750 | char strerror(); | |
252b5132 | 751 | |
75798298 NC |
752 | int main() { |
753 | strerror() | |
754 | ; return 0; } | |
252b5132 | 755 | EOF |
1fe1f39c | 756 | if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
75798298 NC |
757 | rm -rf conftest* |
758 | eval "ac_cv_lib_$ac_lib_var=yes" | |
252b5132 RH |
759 | else |
760 | echo "configure: failed program was:" >&5 | |
761 | cat conftest.$ac_ext >&5 | |
75798298 NC |
762 | rm -rf conftest* |
763 | eval "ac_cv_lib_$ac_lib_var=no" | |
252b5132 RH |
764 | fi |
765 | rm -f conftest* | |
75798298 | 766 | LIBS="$ac_save_LIBS" |
252b5132 RH |
767 | |
768 | fi | |
75798298 | 769 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
252b5132 | 770 | echo "$ac_t""yes" 1>&6 |
75798298 | 771 | LIBS="$LIBS -lcposix" |
252b5132 RH |
772 | else |
773 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
774 | fi |
775 | ||
75798298 NC |
776 | |
777 | ||
252b5132 RH |
778 | |
779 | # We currently only use the version number for the name of any shared | |
780 | # library. For user convenience, we always use the same version | |
781 | # number that BFD is using. | |
27b7e12d | 782 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` |
252b5132 | 783 | |
e20c0b3d | 784 | am__api_version="1.4" |
252b5132 RH |
785 | # Find a good install program. We prefer a C program (faster), |
786 | # so one script is as good as another. But avoid the broken or | |
787 | # incompatible versions: | |
788 | # SysV /etc/install, /usr/sbin/install | |
789 | # SunOS /usr/etc/install | |
790 | # IRIX /sbin/install | |
791 | # AIX /bin/install | |
792 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
793 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
794 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
795 | # ./install, which can be erroneously created by make from ./install.sh. | |
796 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
1fe1f39c | 797 | echo "configure:798: checking for a BSD compatible install" >&5 |
252b5132 | 798 | if test -z "$INSTALL"; then |
a2d91340 | 799 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
252b5132 RH |
800 | echo $ac_n "(cached) $ac_c" 1>&6 |
801 | else | |
802 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
803 | for ac_dir in $PATH; do | |
804 | # Account for people who put trailing slashes in PATH elements. | |
805 | case "$ac_dir/" in | |
806 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
807 | *) | |
808 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
809 | # Don't use installbsd from OSF since it installs stuff as root | |
810 | # by default. | |
811 | for ac_prog in ginstall scoinst install; do | |
812 | if test -f $ac_dir/$ac_prog; then | |
813 | if test $ac_prog = install && | |
814 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
815 | # AIX install. It has an incompatible calling convention. | |
816 | : | |
817 | else | |
818 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
819 | break 2 | |
820 | fi | |
821 | fi | |
822 | done | |
823 | ;; | |
824 | esac | |
825 | done | |
826 | IFS="$ac_save_IFS" | |
827 | ||
828 | fi | |
829 | if test "${ac_cv_path_install+set}" = set; then | |
830 | INSTALL="$ac_cv_path_install" | |
831 | else | |
832 | # As a last resort, use the slow shell script. We don't cache a | |
833 | # path for INSTALL within a source directory, because that will | |
834 | # break other packages using the cache if that directory is | |
835 | # removed, or if the path is relative. | |
836 | INSTALL="$ac_install_sh" | |
837 | fi | |
838 | fi | |
839 | echo "$ac_t""$INSTALL" 1>&6 | |
840 | ||
841 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
842 | # It thinks the first close brace ends the variable substitution. | |
843 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
844 | ||
a2d91340 | 845 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
252b5132 RH |
846 | |
847 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
848 | ||
849 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
1fe1f39c | 850 | echo "configure:851: checking whether build environment is sane" >&5 |
252b5132 RH |
851 | # Just in case |
852 | sleep 1 | |
853 | echo timestamp > conftestfile | |
854 | # Do `set' in a subshell so we don't clobber the current shell's | |
855 | # arguments. Must try -L first in case configure is actually a | |
856 | # symlink; some systems play weird games with the mod time of symlinks | |
857 | # (eg FreeBSD returns the mod time of the symlink's containing | |
858 | # directory). | |
859 | if ( | |
860 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
861 | if test "$*" = "X"; then | |
862 | # -L didn't work. | |
863 | set X `ls -t $srcdir/configure conftestfile` | |
864 | fi | |
865 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
866 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
867 | ||
868 | # If neither matched, then we have a broken ls. This can happen | |
869 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
870 | # broken ls alias from the environment. This has actually | |
871 | # happened. Such a system could not be considered "sane". | |
872 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
873 | alias in your environment" 1>&2; exit 1; } | |
874 | fi | |
875 | ||
876 | test "$2" = conftestfile | |
877 | ) | |
878 | then | |
879 | # Ok. | |
880 | : | |
881 | else | |
882 | { echo "configure: error: newly created file is older than distributed files! | |
883 | Check your system clock" 1>&2; exit 1; } | |
884 | fi | |
885 | rm -f conftest* | |
886 | echo "$ac_t""yes" 1>&6 | |
887 | if test "$program_transform_name" = s,x,x,; then | |
888 | program_transform_name= | |
889 | else | |
890 | # Double any \ or $. echo might interpret backslashes. | |
891 | cat <<\EOF_SED > conftestsed | |
892 | s,\\,\\\\,g; s,\$,$$,g | |
893 | EOF_SED | |
894 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
895 | rm -f conftestsed | |
896 | fi | |
897 | test "$program_prefix" != NONE && | |
a2d91340 | 898 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
252b5132 RH |
899 | # Use a double $ so make ignores it. |
900 | test "$program_suffix" != NONE && | |
a2d91340 | 901 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
252b5132 RH |
902 | |
903 | # sed with no file args requires a program. | |
904 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
905 | ||
906 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
1fe1f39c | 907 | echo "configure:908: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
252b5132 | 908 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
a2d91340 | 909 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
252b5132 RH |
910 | echo $ac_n "(cached) $ac_c" 1>&6 |
911 | else | |
912 | cat > conftestmake <<\EOF | |
913 | all: | |
914 | @echo 'ac_maketemp="${MAKE}"' | |
915 | EOF | |
916 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
917 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
918 | if test -n "$ac_maketemp"; then | |
919 | eval ac_cv_prog_make_${ac_make}_set=yes | |
920 | else | |
921 | eval ac_cv_prog_make_${ac_make}_set=no | |
922 | fi | |
923 | rm -f conftestmake | |
924 | fi | |
925 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
926 | echo "$ac_t""yes" 1>&6 | |
927 | SET_MAKE= | |
928 | else | |
929 | echo "$ac_t""no" 1>&6 | |
930 | SET_MAKE="MAKE=${MAKE-make}" | |
931 | fi | |
932 | ||
933 | ||
934 | PACKAGE=opcodes | |
935 | ||
936 | VERSION=${BFD_VERSION} | |
937 | ||
938 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
939 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
940 | fi | |
941 | cat >> confdefs.h <<EOF | |
942 | #define PACKAGE "$PACKAGE" | |
943 | EOF | |
944 | ||
945 | cat >> confdefs.h <<EOF | |
946 | #define VERSION "$VERSION" | |
947 | EOF | |
948 | ||
949 | ||
950 | ||
951 | missing_dir=`cd $ac_aux_dir && pwd` | |
e20c0b3d | 952 | echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6 |
1fe1f39c | 953 | echo "configure:954: checking for working aclocal-${am__api_version}" >&5 |
252b5132 RH |
954 | # Run test in a subshell; some versions of sh will print an error if |
955 | # an executable is not found, even if stderr is redirected. | |
956 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
e20c0b3d AM |
957 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
958 | ACLOCAL=aclocal-${am__api_version} | |
252b5132 RH |
959 | echo "$ac_t""found" 1>&6 |
960 | else | |
e20c0b3d | 961 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
252b5132 RH |
962 | echo "$ac_t""missing" 1>&6 |
963 | fi | |
964 | ||
965 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
1fe1f39c | 966 | echo "configure:967: checking for working autoconf" >&5 |
252b5132 RH |
967 | # Run test in a subshell; some versions of sh will print an error if |
968 | # an executable is not found, even if stderr is redirected. | |
969 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
970 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
971 | AUTOCONF=autoconf | |
972 | echo "$ac_t""found" 1>&6 | |
973 | else | |
974 | AUTOCONF="$missing_dir/missing autoconf" | |
975 | echo "$ac_t""missing" 1>&6 | |
976 | fi | |
977 | ||
e20c0b3d | 978 | echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 |
1fe1f39c | 979 | echo "configure:980: checking for working automake-${am__api_version}" >&5 |
252b5132 RH |
980 | # Run test in a subshell; some versions of sh will print an error if |
981 | # an executable is not found, even if stderr is redirected. | |
982 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
e20c0b3d AM |
983 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
984 | AUTOMAKE=automake-${am__api_version} | |
252b5132 RH |
985 | echo "$ac_t""found" 1>&6 |
986 | else | |
e20c0b3d | 987 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
252b5132 RH |
988 | echo "$ac_t""missing" 1>&6 |
989 | fi | |
990 | ||
991 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
1fe1f39c | 992 | echo "configure:993: checking for working autoheader" >&5 |
252b5132 RH |
993 | # Run test in a subshell; some versions of sh will print an error if |
994 | # an executable is not found, even if stderr is redirected. | |
995 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
996 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
997 | AUTOHEADER=autoheader | |
998 | echo "$ac_t""found" 1>&6 | |
999 | else | |
1000 | AUTOHEADER="$missing_dir/missing autoheader" | |
1001 | echo "$ac_t""missing" 1>&6 | |
1002 | fi | |
1003 | ||
1004 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
1fe1f39c | 1005 | echo "configure:1006: checking for working makeinfo" >&5 |
252b5132 RH |
1006 | # Run test in a subshell; some versions of sh will print an error if |
1007 | # an executable is not found, even if stderr is redirected. | |
1008 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1009 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1010 | MAKEINFO=makeinfo | |
1011 | echo "$ac_t""found" 1>&6 | |
1012 | else | |
1013 | MAKEINFO="$missing_dir/missing makeinfo" | |
1014 | echo "$ac_t""missing" 1>&6 | |
1015 | fi | |
1016 | ||
1017 | ||
1018 | ||
1019 | if test $host != $build; then | |
1020 | ac_tool_prefix=${host_alias}- | |
1021 | else | |
1022 | ac_tool_prefix= | |
1023 | fi | |
1024 | ||
1025 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1026 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
1027 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 1028 | echo "configure:1029: checking for $ac_word" >&5 |
a2d91340 | 1029 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
252b5132 RH |
1030 | echo $ac_n "(cached) $ac_c" 1>&6 |
1031 | else | |
1032 | if test -n "$AR"; then | |
1033 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1034 | else | |
1035 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1036 | ac_dummy="$PATH" | |
1037 | for ac_dir in $ac_dummy; do | |
1038 | test -z "$ac_dir" && ac_dir=. | |
1039 | if test -f $ac_dir/$ac_word; then | |
1040 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1041 | break | |
1042 | fi | |
1043 | done | |
1044 | IFS="$ac_save_ifs" | |
1045 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1046 | fi | |
1047 | fi | |
1048 | AR="$ac_cv_prog_AR" | |
1049 | if test -n "$AR"; then | |
1050 | echo "$ac_t""$AR" 1>&6 | |
1051 | else | |
1052 | echo "$ac_t""no" 1>&6 | |
1053 | fi | |
1054 | ||
1055 | ||
1056 | ||
1057 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1058 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1059 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 1060 | echo "configure:1061: checking for $ac_word" >&5 |
a2d91340 | 1061 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
252b5132 RH |
1062 | echo $ac_n "(cached) $ac_c" 1>&6 |
1063 | else | |
1064 | if test -n "$RANLIB"; then | |
1065 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1066 | else | |
1067 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1068 | ac_dummy="$PATH" | |
1069 | for ac_dir in $ac_dummy; do | |
1070 | test -z "$ac_dir" && ac_dir=. | |
1071 | if test -f $ac_dir/$ac_word; then | |
1072 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1073 | break | |
1074 | fi | |
1075 | done | |
1076 | IFS="$ac_save_ifs" | |
1077 | fi | |
1078 | fi | |
1079 | RANLIB="$ac_cv_prog_RANLIB" | |
1080 | if test -n "$RANLIB"; then | |
1081 | echo "$ac_t""$RANLIB" 1>&6 | |
1082 | else | |
1083 | echo "$ac_t""no" 1>&6 | |
1084 | fi | |
1085 | ||
1086 | ||
1087 | if test -z "$ac_cv_prog_RANLIB"; then | |
1088 | if test -n "$ac_tool_prefix"; then | |
1089 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1090 | set dummy ranlib; ac_word=$2 | |
1091 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 1092 | echo "configure:1093: checking for $ac_word" >&5 |
a2d91340 | 1093 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
252b5132 RH |
1094 | echo $ac_n "(cached) $ac_c" 1>&6 |
1095 | else | |
1096 | if test -n "$RANLIB"; then | |
1097 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1098 | else | |
1099 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1100 | ac_dummy="$PATH" | |
1101 | for ac_dir in $ac_dummy; do | |
1102 | test -z "$ac_dir" && ac_dir=. | |
1103 | if test -f $ac_dir/$ac_word; then | |
1104 | ac_cv_prog_RANLIB="ranlib" | |
1105 | break | |
1106 | fi | |
1107 | done | |
1108 | IFS="$ac_save_ifs" | |
1109 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1110 | fi | |
1111 | fi | |
1112 | RANLIB="$ac_cv_prog_RANLIB" | |
1113 | if test -n "$RANLIB"; then | |
1114 | echo "$ac_t""$RANLIB" 1>&6 | |
1115 | else | |
1116 | echo "$ac_t""no" 1>&6 | |
1117 | fi | |
1118 | ||
1119 | else | |
1120 | RANLIB=":" | |
1121 | fi | |
1122 | fi | |
1123 | ||
1124 | ||
1125 | # Check whether --enable-shared or --disable-shared was given. | |
1126 | if test "${enable_shared+set}" = set; then | |
1127 | enableval="$enable_shared" | |
1128 | p=${PACKAGE-default} | |
87e6d782 | 1129 | case $enableval in |
252b5132 RH |
1130 | yes) enable_shared=yes ;; |
1131 | no) enable_shared=no ;; | |
1132 | *) | |
1133 | enable_shared=no | |
1134 | # Look at the argument we got. We use all the common list separators. | |
1135 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1136 | for pkg in $enableval; do | |
1137 | if test "X$pkg" = "X$p"; then | |
1138 | enable_shared=yes | |
1139 | fi | |
1140 | done | |
1141 | IFS="$ac_save_ifs" | |
1142 | ;; | |
1143 | esac | |
1144 | else | |
1145 | enable_shared=no | |
1146 | fi | |
1147 | ||
1148 | ||
1149 | # Check whether --enable-static or --disable-static was given. | |
1150 | if test "${enable_static+set}" = set; then | |
1151 | enableval="$enable_static" | |
1152 | p=${PACKAGE-default} | |
87e6d782 | 1153 | case $enableval in |
252b5132 RH |
1154 | yes) enable_static=yes ;; |
1155 | no) enable_static=no ;; | |
1156 | *) | |
1157 | enable_static=no | |
1158 | # Look at the argument we got. We use all the common list separators. | |
1159 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1160 | for pkg in $enableval; do | |
1161 | if test "X$pkg" = "X$p"; then | |
1162 | enable_static=yes | |
1163 | fi | |
1164 | done | |
1165 | IFS="$ac_save_ifs" | |
1166 | ;; | |
1167 | esac | |
1168 | else | |
1169 | enable_static=yes | |
1170 | fi | |
1171 | ||
1172 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
1173 | if test "${enable_fast_install+set}" = set; then | |
1174 | enableval="$enable_fast_install" | |
1175 | p=${PACKAGE-default} | |
87e6d782 | 1176 | case $enableval in |
252b5132 RH |
1177 | yes) enable_fast_install=yes ;; |
1178 | no) enable_fast_install=no ;; | |
1179 | *) | |
1180 | enable_fast_install=no | |
1181 | # Look at the argument we got. We use all the common list separators. | |
1182 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1183 | for pkg in $enableval; do | |
1184 | if test "X$pkg" = "X$p"; then | |
1185 | enable_fast_install=yes | |
1186 | fi | |
1187 | done | |
1188 | IFS="$ac_save_ifs" | |
1189 | ;; | |
1190 | esac | |
1191 | else | |
1192 | enable_fast_install=yes | |
1193 | fi | |
1194 | ||
75798298 NC |
1195 | # Extract the first word of "gcc", so it can be a program name with args. |
1196 | set dummy gcc; ac_word=$2 | |
1197 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 1198 | echo "configure:1199: checking for $ac_word" >&5 |
75798298 NC |
1199 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1201 | else | |
1202 | if test -n "$CC"; then | |
1203 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1204 | else | |
1205 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1206 | ac_dummy="$PATH" | |
1207 | for ac_dir in $ac_dummy; do | |
1208 | test -z "$ac_dir" && ac_dir=. | |
1209 | if test -f $ac_dir/$ac_word; then | |
1210 | ac_cv_prog_CC="gcc" | |
1211 | break | |
1212 | fi | |
1213 | done | |
1214 | IFS="$ac_save_ifs" | |
1215 | fi | |
1216 | fi | |
1217 | CC="$ac_cv_prog_CC" | |
1218 | if test -n "$CC"; then | |
1219 | echo "$ac_t""$CC" 1>&6 | |
1220 | else | |
1221 | echo "$ac_t""no" 1>&6 | |
1222 | fi | |
1223 | ||
1224 | if test -z "$CC"; then | |
1225 | # Extract the first word of "cc", so it can be a program name with args. | |
1226 | set dummy cc; ac_word=$2 | |
1227 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 1228 | echo "configure:1229: checking for $ac_word" >&5 |
75798298 NC |
1229 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1230 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1231 | else | |
1232 | if test -n "$CC"; then | |
1233 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1234 | else | |
1235 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1236 | ac_prog_rejected=no | |
1237 | ac_dummy="$PATH" | |
1238 | for ac_dir in $ac_dummy; do | |
1239 | test -z "$ac_dir" && ac_dir=. | |
1240 | if test -f $ac_dir/$ac_word; then | |
1241 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1242 | ac_prog_rejected=yes | |
1243 | continue | |
1244 | fi | |
1245 | ac_cv_prog_CC="cc" | |
1246 | break | |
1247 | fi | |
1248 | done | |
1249 | IFS="$ac_save_ifs" | |
1250 | if test $ac_prog_rejected = yes; then | |
1251 | # We found a bogon in the path, so make sure we never use it. | |
1252 | set dummy $ac_cv_prog_CC | |
1253 | shift | |
1254 | if test $# -gt 0; then | |
1255 | # We chose a different compiler from the bogus one. | |
1256 | # However, it has the same basename, so the bogon will be chosen | |
1257 | # first if we set CC to just the basename; use the full file name. | |
1258 | shift | |
1259 | set dummy "$ac_dir/$ac_word" "$@" | |
1260 | shift | |
1261 | ac_cv_prog_CC="$@" | |
1262 | fi | |
1263 | fi | |
1264 | fi | |
1265 | fi | |
1266 | CC="$ac_cv_prog_CC" | |
1267 | if test -n "$CC"; then | |
1268 | echo "$ac_t""$CC" 1>&6 | |
1269 | else | |
1270 | echo "$ac_t""no" 1>&6 | |
1271 | fi | |
1272 | ||
1273 | if test -z "$CC"; then | |
1274 | case "`uname -s`" in | |
1275 | *win32* | *WIN32*) | |
1276 | # Extract the first word of "cl", so it can be a program name with args. | |
1277 | set dummy cl; ac_word=$2 | |
1278 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 1279 | echo "configure:1280: checking for $ac_word" >&5 |
75798298 NC |
1280 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1282 | else | |
1283 | if test -n "$CC"; then | |
1284 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1285 | else | |
1286 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1287 | ac_dummy="$PATH" | |
1288 | for ac_dir in $ac_dummy; do | |
1289 | test -z "$ac_dir" && ac_dir=. | |
1290 | if test -f $ac_dir/$ac_word; then | |
1291 | ac_cv_prog_CC="cl" | |
1292 | break | |
1293 | fi | |
1294 | done | |
1295 | IFS="$ac_save_ifs" | |
1296 | fi | |
1297 | fi | |
1298 | CC="$ac_cv_prog_CC" | |
1299 | if test -n "$CC"; then | |
1300 | echo "$ac_t""$CC" 1>&6 | |
1301 | else | |
1302 | echo "$ac_t""no" 1>&6 | |
1303 | fi | |
1304 | ;; | |
1305 | esac | |
1306 | fi | |
1307 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1308 | fi | |
1309 | ||
1310 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
1fe1f39c | 1311 | echo "configure:1312: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
75798298 NC |
1312 | |
1313 | ac_ext=c | |
1314 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1315 | ac_cpp='$CPP $CPPFLAGS' | |
1316 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1317 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1318 | cross_compiling=$ac_cv_prog_cc_cross | |
1319 | ||
1320 | cat > conftest.$ac_ext << EOF | |
1321 | ||
1fe1f39c | 1322 | #line 1323 "configure" |
75798298 NC |
1323 | #include "confdefs.h" |
1324 | ||
1325 | main(){return(0);} | |
1326 | EOF | |
1fe1f39c | 1327 | if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
75798298 NC |
1328 | ac_cv_prog_cc_works=yes |
1329 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1330 | if (./conftest; exit) 2>/dev/null; then | |
1331 | ac_cv_prog_cc_cross=no | |
1332 | else | |
1333 | ac_cv_prog_cc_cross=yes | |
1334 | fi | |
1335 | else | |
1336 | echo "configure: failed program was:" >&5 | |
1337 | cat conftest.$ac_ext >&5 | |
1338 | ac_cv_prog_cc_works=no | |
1339 | fi | |
1340 | rm -fr conftest* | |
1341 | ac_ext=c | |
1342 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1343 | ac_cpp='$CPP $CPPFLAGS' | |
1344 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1345 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1346 | cross_compiling=$ac_cv_prog_cc_cross | |
1347 | ||
1348 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1349 | if test $ac_cv_prog_cc_works = no; then | |
1350 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1351 | fi | |
1352 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
1fe1f39c | 1353 | echo "configure:1354: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
75798298 NC |
1354 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1355 | cross_compiling=$ac_cv_prog_cc_cross | |
1356 | ||
1357 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
1fe1f39c | 1358 | echo "configure:1359: checking whether we are using GNU C" >&5 |
75798298 NC |
1359 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1361 | else | |
1362 | cat > conftest.c <<EOF | |
1363 | #ifdef __GNUC__ | |
1364 | yes; | |
1365 | #endif | |
1366 | EOF | |
1fe1f39c | 1367 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
75798298 NC |
1368 | ac_cv_prog_gcc=yes |
1369 | else | |
1370 | ac_cv_prog_gcc=no | |
1371 | fi | |
1372 | fi | |
1373 | ||
1374 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1375 | ||
1376 | if test $ac_cv_prog_gcc = yes; then | |
1377 | GCC=yes | |
1378 | else | |
1379 | GCC= | |
1380 | fi | |
1381 | ||
1382 | ac_test_CFLAGS="${CFLAGS+set}" | |
1383 | ac_save_CFLAGS="$CFLAGS" | |
1384 | CFLAGS= | |
1385 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1fe1f39c | 1386 | echo "configure:1387: checking whether ${CC-cc} accepts -g" >&5 |
75798298 NC |
1387 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1389 | else | |
1390 | echo 'void f(){}' > conftest.c | |
1391 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1392 | ac_cv_prog_cc_g=yes | |
1393 | else | |
1394 | ac_cv_prog_cc_g=no | |
1395 | fi | |
1396 | rm -f conftest* | |
1397 | ||
1398 | fi | |
1399 | ||
1400 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1401 | if test "$ac_test_CFLAGS" = set; then | |
1402 | CFLAGS="$ac_save_CFLAGS" | |
1403 | elif test $ac_cv_prog_cc_g = yes; then | |
1404 | if test "$GCC" = yes; then | |
1405 | CFLAGS="-g -O2" | |
1406 | else | |
1407 | CFLAGS="-g" | |
1408 | fi | |
1409 | else | |
1410 | if test "$GCC" = yes; then | |
1411 | CFLAGS="-O2" | |
1412 | else | |
1413 | CFLAGS= | |
1414 | fi | |
1415 | fi | |
1416 | ||
252b5132 RH |
1417 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1418 | if test "${with_gnu_ld+set}" = set; then | |
1419 | withval="$with_gnu_ld" | |
1420 | test "$withval" = no || with_gnu_ld=yes | |
1421 | else | |
1422 | with_gnu_ld=no | |
1423 | fi | |
1424 | ||
1425 | ac_prog=ld | |
87e6d782 | 1426 | if test "$GCC" = yes; then |
252b5132 RH |
1427 | # Check if gcc -print-prog-name=ld gives a path. |
1428 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
1fe1f39c | 1429 | echo "configure:1430: checking for ld used by GCC" >&5 |
ac48eca1 AO |
1430 | case $host in |
1431 | *-*-mingw*) | |
1432 | # gcc leaves a trailing carriage return which upsets mingw | |
1433 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1434 | *) | |
1435 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1436 | esac | |
87e6d782 | 1437 | case $ac_prog in |
252b5132 | 1438 | # Accept absolute paths. |
a74801ba | 1439 | [\\/]* | [A-Za-z]:[\\/]*) |
252b5132 RH |
1440 | re_direlt='/[^/][^/]*/\.\./' |
1441 | # Canonicalize the path of ld | |
1442 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1443 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1444 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1445 | done | |
1446 | test -z "$LD" && LD="$ac_prog" | |
1447 | ;; | |
1448 | "") | |
1449 | # If it fails, then pretend we aren't using GCC. | |
1450 | ac_prog=ld | |
1451 | ;; | |
1452 | *) | |
1453 | # If it is relative, then search for the first ld in PATH. | |
1454 | with_gnu_ld=unknown | |
1455 | ;; | |
1456 | esac | |
1457 | elif test "$with_gnu_ld" = yes; then | |
1458 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
1fe1f39c | 1459 | echo "configure:1460: checking for GNU ld" >&5 |
252b5132 RH |
1460 | else |
1461 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
1fe1f39c | 1462 | echo "configure:1463: checking for non-GNU ld" >&5 |
252b5132 | 1463 | fi |
87e6d782 | 1464 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
252b5132 RH |
1465 | echo $ac_n "(cached) $ac_c" 1>&6 |
1466 | else | |
1467 | if test -z "$LD"; then | |
a74801ba | 1468 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
1469 | for ac_dir in $PATH; do |
1470 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 1471 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
87e6d782 | 1472 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
1473 | # Check to see if the program is GNU ld. I'd rather use --version, |
1474 | # but apparently some GNU ld's only accept -v. | |
1475 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
87e6d782 | 1476 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
1477 | test "$with_gnu_ld" != no && break |
1478 | else | |
1479 | test "$with_gnu_ld" != yes && break | |
1480 | fi | |
1481 | fi | |
1482 | done | |
1483 | IFS="$ac_save_ifs" | |
1484 | else | |
87e6d782 | 1485 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
1486 | fi |
1487 | fi | |
1488 | ||
87e6d782 | 1489 | LD="$lt_cv_path_LD" |
252b5132 RH |
1490 | if test -n "$LD"; then |
1491 | echo "$ac_t""$LD" 1>&6 | |
1492 | else | |
1493 | echo "$ac_t""no" 1>&6 | |
1494 | fi | |
1495 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
252b5132 | 1496 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
1fe1f39c | 1497 | echo "configure:1498: checking if the linker ($LD) is GNU ld" >&5 |
87e6d782 | 1498 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
252b5132 RH |
1499 | echo $ac_n "(cached) $ac_c" 1>&6 |
1500 | else | |
1501 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1502 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
87e6d782 | 1503 | lt_cv_prog_gnu_ld=yes |
252b5132 | 1504 | else |
87e6d782 | 1505 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
1506 | fi |
1507 | fi | |
1508 | ||
87e6d782 NC |
1509 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
1510 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
ac48eca1 AO |
1511 | |
1512 | ||
1513 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | |
1fe1f39c | 1514 | echo "configure:1515: checking for $LD option to reload object files" >&5 |
ac48eca1 AO |
1515 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1516 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1517 | else | |
1518 | lt_cv_ld_reload_flag='-r' | |
1519 | fi | |
252b5132 | 1520 | |
ac48eca1 AO |
1521 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 |
1522 | reload_flag=$lt_cv_ld_reload_flag | |
1523 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
252b5132 RH |
1524 | |
1525 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
1fe1f39c | 1526 | echo "configure:1527: checking for BSD-compatible nm" >&5 |
87e6d782 | 1527 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
252b5132 RH |
1528 | echo $ac_n "(cached) $ac_c" 1>&6 |
1529 | else | |
1530 | if test -n "$NM"; then | |
1531 | # Let the user override the test. | |
87e6d782 | 1532 | lt_cv_path_NM="$NM" |
252b5132 | 1533 | else |
a74801ba | 1534 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
1535 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
1536 | test -z "$ac_dir" && ac_dir=. | |
ac48eca1 AO |
1537 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
1538 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
1539 | # Check to see if the nm accepts a BSD-compat flag. |
1540 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1541 | # nm: unknown option "B" ignored | |
90f2472a AO |
1542 | # Tru64's nm complains that /dev/null is an invalid object file |
1543 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
87e6d782 | 1544 | lt_cv_path_NM="$tmp_nm -B" |
252b5132 | 1545 | break |
ac48eca1 | 1546 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
87e6d782 | 1547 | lt_cv_path_NM="$tmp_nm -p" |
252b5132 RH |
1548 | break |
1549 | else | |
87e6d782 | 1550 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
252b5132 RH |
1551 | continue # so that we can try to find one that supports BSD flags |
1552 | fi | |
1553 | fi | |
1554 | done | |
1555 | IFS="$ac_save_ifs" | |
87e6d782 | 1556 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
1557 | fi |
1558 | fi | |
1559 | ||
87e6d782 | 1560 | NM="$lt_cv_path_NM" |
252b5132 RH |
1561 | echo "$ac_t""$NM" 1>&6 |
1562 | ||
252b5132 | 1563 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1fe1f39c | 1564 | echo "configure:1565: checking whether ln -s works" >&5 |
a2d91340 | 1565 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
252b5132 RH |
1566 | echo $ac_n "(cached) $ac_c" 1>&6 |
1567 | else | |
1568 | rm -f conftestdata | |
1569 | if ln -s X conftestdata 2>/dev/null | |
1570 | then | |
1571 | rm -f conftestdata | |
1572 | ac_cv_prog_LN_S="ln -s" | |
1573 | else | |
1574 | ac_cv_prog_LN_S=ln | |
1575 | fi | |
1576 | fi | |
1577 | LN_S="$ac_cv_prog_LN_S" | |
1578 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1579 | echo "$ac_t""yes" 1>&6 | |
1580 | else | |
1581 | echo "$ac_t""no" 1>&6 | |
1582 | fi | |
1583 | ||
ac48eca1 | 1584 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
1fe1f39c | 1585 | echo "configure:1586: checking how to recognise dependant libraries" >&5 |
ac48eca1 AO |
1586 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
1587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1588 | else | |
d64552c5 | 1589 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
1590 | lt_cv_file_magic_test_file= |
1591 | lt_cv_deplibs_check_method='unknown' | |
1592 | # Need to set the preceding variable on all platforms that support | |
1593 | # interlibrary dependencies. | |
1594 | # 'none' -- dependencies not supported. | |
1595 | # `unknown' -- same as none, but documents that we really don't know. | |
1596 | # 'pass_all' -- all dependencies passed with no checks. | |
1597 | # 'test_compile' -- check by making test program. | |
1598 | # 'file_magic [regex]' -- check by looking for files in library path | |
1599 | # which responds to the $file_magic_cmd with a given egrep regex. | |
1600 | # If you have `file' or equivalent on your system and you're not sure | |
1601 | # whether `pass_all' will *always* work, you probably want this one. | |
1602 | ||
87e6d782 NC |
1603 | case $host_os in |
1604 | aix*) | |
ac48eca1 AO |
1605 | lt_cv_deplibs_check_method=pass_all |
1606 | ;; | |
1607 | ||
1608 | beos*) | |
1609 | lt_cv_deplibs_check_method=pass_all | |
1610 | ;; | |
1611 | ||
1612 | bsdi4*) | |
87e6d782 NC |
1613 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
1614 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
1615 | lt_cv_file_magic_test_file=/shlib/libc.so |
1616 | ;; | |
1617 | ||
d64552c5 | 1618 | cygwin* | mingw* |pw32*) |
ac48eca1 | 1619 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 1620 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
1621 | ;; |
1622 | ||
87e6d782 NC |
1623 | darwin* | rhapsody*) |
1624 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
1625 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1626 | case "$host_os" in | |
1627 | rhapsody* | darwin1.012) | |
1628 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
1629 | ;; | |
1630 | *) # Darwin 1.3 on | |
1631 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
1632 | ;; | |
1633 | esac | |
1634 | ;; | |
1635 | ||
ac48eca1 AO |
1636 | freebsd* ) |
1637 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
87e6d782 | 1638 | case $host_cpu in |
ac48eca1 | 1639 | i*86 ) |
90f2472a AO |
1640 | # Not sure whether the presence of OpenBSD here was a mistake. |
1641 | # Let's accept both of them until this is cleared up. | |
87e6d782 NC |
1642 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
1643 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
1644 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
1645 | ;; | |
1646 | esac | |
1647 | else | |
1648 | lt_cv_deplibs_check_method=pass_all | |
1649 | fi | |
1650 | ;; | |
1651 | ||
1652 | gnu*) | |
1653 | lt_cv_deplibs_check_method=pass_all | |
1654 | ;; | |
1655 | ||
87e6d782 | 1656 | hpux10.20*|hpux11*) |
4867be41 DJ |
1657 | case $host_cpu in |
1658 | hppa*) | |
1659 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
1660 | lt_cv_file_magic_cmd=/usr/bin/file | |
1661 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
1662 | ;; | |
1663 | ia64*) | |
1664 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
1665 | lt_cv_file_magic_cmd=/usr/bin/file | |
1666 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
1667 | ;; | |
1668 | esac | |
ac48eca1 AO |
1669 | ;; |
1670 | ||
1671 | irix5* | irix6*) | |
87e6d782 | 1672 | case $host_os in |
ac48eca1 AO |
1673 | irix5*) |
1674 | # this will be overridden with pass_all, but let us keep it just in case | |
1675 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
1676 | ;; | |
1677 | *) | |
87e6d782 | 1678 | case $LD in |
ac48eca1 AO |
1679 | *-32|*"-32 ") libmagic=32-bit;; |
1680 | *-n32|*"-n32 ") libmagic=N32;; | |
1681 | *-64|*"-64 ") libmagic=64-bit;; | |
1682 | *) libmagic=never-match;; | |
1683 | esac | |
1684 | # this will be overridden with pass_all, but let us keep it just in case | |
87e6d782 NC |
1685 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
1686 | ;; | |
ac48eca1 AO |
1687 | esac |
1688 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
1689 | lt_cv_deplibs_check_method=pass_all | |
1690 | ;; | |
1691 | ||
1692 | # This must be Linux ELF. | |
90f2472a | 1693 | linux-gnu*) |
87e6d782 | 1694 | case $host_cpu in |
71bee782 | 1695 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
1696 | lt_cv_deplibs_check_method=pass_all ;; |
1697 | *) | |
1698 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
87e6d782 NC |
1699 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
1700 | esac | |
ac48eca1 AO |
1701 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
1702 | ;; | |
1703 | ||
1704 | netbsd*) | |
87e6d782 NC |
1705 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
1706 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
ac48eca1 | 1707 | else |
87e6d782 | 1708 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 AO |
1709 | fi |
1710 | ;; | |
1711 | ||
87e6d782 NC |
1712 | newsos6) |
1713 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
1714 | lt_cv_file_magic_cmd=/usr/bin/file | |
1715 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
1716 | ;; | |
1717 | ||
ac48eca1 AO |
1718 | osf3* | osf4* | osf5*) |
1719 | # this will be overridden with pass_all, but let us keep it just in case | |
1720 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
1721 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1722 | lt_cv_deplibs_check_method=pass_all | |
1723 | ;; | |
1724 | ||
1725 | sco3.2v5*) | |
1726 | lt_cv_deplibs_check_method=pass_all | |
1727 | ;; | |
1728 | ||
1729 | solaris*) | |
1730 | lt_cv_deplibs_check_method=pass_all | |
1731 | lt_cv_file_magic_test_file=/lib/libc.so | |
1732 | ;; | |
1733 | ||
6be7c12c AO |
1734 | sysv5uw[78]* | sysv4*uw2*) |
1735 | lt_cv_deplibs_check_method=pass_all | |
1736 | ;; | |
1737 | ||
ac48eca1 | 1738 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
87e6d782 | 1739 | case $host_vendor in |
ac48eca1 AO |
1740 | ncr) |
1741 | lt_cv_deplibs_check_method=pass_all | |
1742 | ;; | |
1743 | motorola) | |
87e6d782 NC |
1744 | 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]' |
1745 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
1746 | ;; |
1747 | esac | |
1748 | ;; | |
1749 | esac | |
1750 | ||
1751 | fi | |
1752 | ||
1753 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
1754 | file_magic_cmd=$lt_cv_file_magic_cmd | |
1755 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1756 | ||
1757 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
1fe1f39c | 1758 | echo "configure:1759: checking for object suffix" >&5 |
ac48eca1 AO |
1759 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
1760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1761 | else | |
1762 | rm -f conftest* | |
1763 | echo 'int i = 1;' > conftest.$ac_ext | |
1fe1f39c | 1764 | if { (eval echo configure:1765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac48eca1 AO |
1765 | for ac_file in conftest.*; do |
1766 | case $ac_file in | |
1767 | *.c) ;; | |
1768 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
1769 | esac | |
1770 | done | |
1771 | else | |
1772 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
1773 | fi | |
1774 | rm -f conftest* | |
1775 | fi | |
1776 | ||
1777 | echo "$ac_t""$ac_cv_objext" 1>&6 | |
1778 | OBJEXT=$ac_cv_objext | |
1779 | ac_objext=$ac_cv_objext | |
1780 | ||
1781 | ||
1782 | ||
1783 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
1fe1f39c | 1784 | echo "configure:1785: checking for executable suffix" >&5 |
ac48eca1 AO |
1785 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1786 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1787 | else | |
1788 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1789 | ac_cv_exeext=.exe | |
1790 | else | |
1791 | rm -f conftest* | |
1792 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1793 | ac_cv_exeext= | |
1fe1f39c | 1794 | if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
ac48eca1 AO |
1795 | for file in conftest.*; do |
1796 | case $file in | |
1fe1f39c | 1797 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
ac48eca1 AO |
1798 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1799 | esac | |
1800 | done | |
1801 | else | |
1802 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1803 | fi | |
1804 | rm -f conftest* | |
1805 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1806 | fi | |
1807 | fi | |
1808 | ||
1809 | EXEEXT="" | |
1810 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1811 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1812 | ac_exeext=$EXEEXT | |
1813 | ||
1814 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
1815 | ||
1816 | # Only perform the check for file, if the check method requires it | |
87e6d782 | 1817 | case $deplibs_check_method in |
ac48eca1 | 1818 | file_magic*) |
d64552c5 | 1819 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
ac48eca1 | 1820 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
1fe1f39c | 1821 | echo "configure:1822: checking for ${ac_tool_prefix}file" >&5 |
d64552c5 | 1822 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
ac48eca1 AO |
1823 | echo $ac_n "(cached) $ac_c" 1>&6 |
1824 | else | |
87e6d782 | 1825 | case $MAGIC_CMD in |
ac48eca1 | 1826 | /*) |
d64552c5 | 1827 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
1828 | ;; |
1829 | ?:/*) | |
d64552c5 | 1830 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
1831 | ;; |
1832 | *) | |
d64552c5 | 1833 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
1834 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1835 | ac_dummy="/usr/bin:$PATH" | |
1836 | for ac_dir in $ac_dummy; do | |
1837 | test -z "$ac_dir" && ac_dir=. | |
1838 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 1839 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 1840 | if test -n "$file_magic_test_file"; then |
87e6d782 | 1841 | case $deplibs_check_method in |
ac48eca1 AO |
1842 | "file_magic "*) |
1843 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 1844 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
1845 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1846 | egrep "$file_magic_regex" > /dev/null; then | |
1847 | : | |
1848 | else | |
1849 | cat <<EOF 1>&2 | |
1850 | ||
1851 | *** Warning: the command libtool uses to detect shared libraries, | |
1852 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1853 | *** The result is that libtool may fail to recognize shared libraries | |
1854 | *** as such. This will affect the creation of libtool libraries that | |
1855 | *** depend on shared libraries, but programs linked with such libtool | |
1856 | *** libraries will work regardless of this problem. Nevertheless, you | |
1857 | *** may want to report the problem to your system manager and/or to | |
1858 | *** bug-libtool@gnu.org | |
1859 | ||
1860 | EOF | |
1861 | fi ;; | |
1862 | esac | |
1863 | fi | |
1864 | break | |
1865 | fi | |
1866 | done | |
1867 | IFS="$ac_save_ifs" | |
d64552c5 | 1868 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
1869 | ;; |
1870 | esac | |
1871 | fi | |
1872 | ||
d64552c5 AO |
1873 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1874 | if test -n "$MAGIC_CMD"; then | |
1875 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
ac48eca1 AO |
1876 | else |
1877 | echo "$ac_t""no" 1>&6 | |
1878 | fi | |
1879 | ||
d64552c5 | 1880 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 AO |
1881 | if test -n "$ac_tool_prefix"; then |
1882 | echo $ac_n "checking for file""... $ac_c" 1>&6 | |
1fe1f39c | 1883 | echo "configure:1884: checking for file" >&5 |
d64552c5 | 1884 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
ac48eca1 AO |
1885 | echo $ac_n "(cached) $ac_c" 1>&6 |
1886 | else | |
87e6d782 | 1887 | case $MAGIC_CMD in |
ac48eca1 | 1888 | /*) |
d64552c5 | 1889 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
1890 | ;; |
1891 | ?:/*) | |
d64552c5 | 1892 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
1893 | ;; |
1894 | *) | |
d64552c5 | 1895 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
1896 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1897 | ac_dummy="/usr/bin:$PATH" | |
1898 | for ac_dir in $ac_dummy; do | |
1899 | test -z "$ac_dir" && ac_dir=. | |
1900 | if test -f $ac_dir/file; then | |
d64552c5 | 1901 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 1902 | if test -n "$file_magic_test_file"; then |
87e6d782 | 1903 | case $deplibs_check_method in |
ac48eca1 AO |
1904 | "file_magic "*) |
1905 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 1906 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
1907 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1908 | egrep "$file_magic_regex" > /dev/null; then | |
1909 | : | |
1910 | else | |
1911 | cat <<EOF 1>&2 | |
1912 | ||
1913 | *** Warning: the command libtool uses to detect shared libraries, | |
1914 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1915 | *** The result is that libtool may fail to recognize shared libraries | |
1916 | *** as such. This will affect the creation of libtool libraries that | |
1917 | *** depend on shared libraries, but programs linked with such libtool | |
1918 | *** libraries will work regardless of this problem. Nevertheless, you | |
1919 | *** may want to report the problem to your system manager and/or to | |
1920 | *** bug-libtool@gnu.org | |
1921 | ||
1922 | EOF | |
1923 | fi ;; | |
1924 | esac | |
1925 | fi | |
1926 | break | |
1927 | fi | |
1928 | done | |
1929 | IFS="$ac_save_ifs" | |
d64552c5 | 1930 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
1931 | ;; |
1932 | esac | |
1933 | fi | |
1934 | ||
d64552c5 AO |
1935 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1936 | if test -n "$MAGIC_CMD"; then | |
1937 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
ac48eca1 AO |
1938 | else |
1939 | echo "$ac_t""no" 1>&6 | |
1940 | fi | |
1941 | ||
1942 | else | |
d64552c5 | 1943 | MAGIC_CMD=: |
ac48eca1 AO |
1944 | fi |
1945 | fi | |
1946 | ||
1947 | fi | |
1948 | ;; | |
1949 | esac | |
1950 | ||
1951 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1952 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1953 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 1954 | echo "configure:1955: checking for $ac_word" >&5 |
ac48eca1 AO |
1955 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1956 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1957 | else | |
1958 | if test -n "$RANLIB"; then | |
1959 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1960 | else | |
1961 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1962 | ac_dummy="$PATH" | |
1963 | for ac_dir in $ac_dummy; do | |
1964 | test -z "$ac_dir" && ac_dir=. | |
1965 | if test -f $ac_dir/$ac_word; then | |
1966 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1967 | break | |
1968 | fi | |
1969 | done | |
1970 | IFS="$ac_save_ifs" | |
1971 | fi | |
1972 | fi | |
1973 | RANLIB="$ac_cv_prog_RANLIB" | |
1974 | if test -n "$RANLIB"; then | |
1975 | echo "$ac_t""$RANLIB" 1>&6 | |
1976 | else | |
1977 | echo "$ac_t""no" 1>&6 | |
1978 | fi | |
1979 | ||
1980 | ||
1981 | if test -z "$ac_cv_prog_RANLIB"; then | |
1982 | if test -n "$ac_tool_prefix"; then | |
1983 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1984 | set dummy ranlib; ac_word=$2 | |
1985 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 1986 | echo "configure:1987: checking for $ac_word" >&5 |
ac48eca1 AO |
1987 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1989 | else | |
1990 | if test -n "$RANLIB"; then | |
1991 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1992 | else | |
1993 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1994 | ac_dummy="$PATH" | |
1995 | for ac_dir in $ac_dummy; do | |
1996 | test -z "$ac_dir" && ac_dir=. | |
1997 | if test -f $ac_dir/$ac_word; then | |
1998 | ac_cv_prog_RANLIB="ranlib" | |
1999 | break | |
2000 | fi | |
2001 | done | |
2002 | IFS="$ac_save_ifs" | |
2003 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2004 | fi | |
2005 | fi | |
2006 | RANLIB="$ac_cv_prog_RANLIB" | |
2007 | if test -n "$RANLIB"; then | |
2008 | echo "$ac_t""$RANLIB" 1>&6 | |
2009 | else | |
2010 | echo "$ac_t""no" 1>&6 | |
2011 | fi | |
2012 | ||
2013 | else | |
2014 | RANLIB=":" | |
2015 | fi | |
2016 | fi | |
2017 | ||
2018 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2019 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2020 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 2021 | echo "configure:2022: checking for $ac_word" >&5 |
ac48eca1 AO |
2022 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2024 | else | |
2025 | if test -n "$STRIP"; then | |
2026 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2027 | else | |
2028 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2029 | ac_dummy="$PATH" | |
2030 | for ac_dir in $ac_dummy; do | |
2031 | test -z "$ac_dir" && ac_dir=. | |
2032 | if test -f $ac_dir/$ac_word; then | |
2033 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2034 | break | |
2035 | fi | |
2036 | done | |
2037 | IFS="$ac_save_ifs" | |
2038 | fi | |
2039 | fi | |
2040 | STRIP="$ac_cv_prog_STRIP" | |
2041 | if test -n "$STRIP"; then | |
2042 | echo "$ac_t""$STRIP" 1>&6 | |
2043 | else | |
2044 | echo "$ac_t""no" 1>&6 | |
2045 | fi | |
2046 | ||
2047 | ||
2048 | if test -z "$ac_cv_prog_STRIP"; then | |
2049 | if test -n "$ac_tool_prefix"; then | |
2050 | # Extract the first word of "strip", so it can be a program name with args. | |
2051 | set dummy strip; ac_word=$2 | |
2052 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 2053 | echo "configure:2054: checking for $ac_word" >&5 |
ac48eca1 AO |
2054 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2056 | else | |
2057 | if test -n "$STRIP"; then | |
2058 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2059 | else | |
2060 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2061 | ac_dummy="$PATH" | |
2062 | for ac_dir in $ac_dummy; do | |
2063 | test -z "$ac_dir" && ac_dir=. | |
2064 | if test -f $ac_dir/$ac_word; then | |
2065 | ac_cv_prog_STRIP="strip" | |
2066 | break | |
2067 | fi | |
2068 | done | |
2069 | IFS="$ac_save_ifs" | |
2070 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
2071 | fi | |
2072 | fi | |
2073 | STRIP="$ac_cv_prog_STRIP" | |
2074 | if test -n "$STRIP"; then | |
2075 | echo "$ac_t""$STRIP" 1>&6 | |
2076 | else | |
2077 | echo "$ac_t""no" 1>&6 | |
2078 | fi | |
2079 | ||
2080 | else | |
2081 | STRIP=":" | |
2082 | fi | |
2083 | fi | |
2084 | ||
252b5132 RH |
2085 | |
2086 | # Check for any special flags to pass to ltconfig. | |
2087 | libtool_flags="--cache-file=$cache_file" | |
2088 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
2089 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
2090 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
87e6d782 NC |
2091 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
2092 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 2093 | |
a74801ba ILT |
2094 | |
2095 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2096 | if test "${enable_libtool_lock+set}" = set; then | |
2097 | enableval="$enable_libtool_lock" | |
2098 | : | |
2099 | fi | |
2100 | ||
2101 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2102 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
2103 | ||
ac48eca1 AO |
2104 | # Check whether --with-pic or --without-pic was given. |
2105 | if test "${with_pic+set}" = set; then | |
2106 | withval="$with_pic" | |
2107 | pic_mode="$withval" | |
2108 | else | |
2109 | pic_mode=default | |
2110 | fi | |
2111 | ||
2112 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
2113 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2114 | ||
252b5132 RH |
2115 | # Some flags need to be propagated to the compiler or linker for good |
2116 | # libtool support. | |
87e6d782 | 2117 | case $host in |
252b5132 RH |
2118 | *-*-irix6*) |
2119 | # Find out which ABI we are using. | |
1fe1f39c NC |
2120 | echo '#line 2121 "configure"' > conftest.$ac_ext |
2121 | if { (eval echo configure:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
e0001a05 NC |
2122 | if test "$lt_cv_prog_gnu_ld" = yes; then |
2123 | case `/usr/bin/file conftest.$ac_objext` in | |
2124 | *32-bit*) | |
2125 | LD="${LD-ld} -melf32bsmip" | |
2126 | ;; | |
2127 | *N32*) | |
2128 | LD="${LD-ld} -melf32bmipn32" | |
2129 | ;; | |
2130 | *64-bit*) | |
2131 | LD="${LD-ld} -melf64bmip" | |
2132 | ;; | |
2133 | esac | |
2134 | else | |
87e6d782 | 2135 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
2136 | *32-bit*) |
2137 | LD="${LD-ld} -32" | |
2138 | ;; | |
2139 | *N32*) | |
2140 | LD="${LD-ld} -n32" | |
2141 | ;; | |
2142 | *64-bit*) | |
2143 | LD="${LD-ld} -64" | |
2144 | ;; | |
2145 | esac | |
e0001a05 | 2146 | fi |
252b5132 RH |
2147 | fi |
2148 | rm -rf conftest* | |
2149 | ;; | |
2150 | ||
4867be41 DJ |
2151 | ia64-*-hpux*) |
2152 | # Find out which ABI we are using. | |
2153 | echo 'int i;' > conftest.$ac_ext | |
1fe1f39c | 2154 | if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4867be41 DJ |
2155 | case "`/usr/bin/file conftest.o`" in |
2156 | *ELF-32*) | |
2157 | HPUX_IA64_MODE="32" | |
2158 | ;; | |
2159 | *ELF-64*) | |
2160 | HPUX_IA64_MODE="64" | |
2161 | ;; | |
2162 | esac | |
2163 | fi | |
2164 | rm -rf conftest* | |
2165 | ;; | |
2166 | ||
252b5132 RH |
2167 | *-*-sco3.2v5*) |
2168 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
2169 | SAVE_CFLAGS="$CFLAGS" | |
2170 | CFLAGS="$CFLAGS -belf" | |
2171 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
1fe1f39c | 2172 | echo "configure:2173: checking whether the C compiler needs -belf" >&5 |
a2d91340 | 2173 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
252b5132 RH |
2174 | echo $ac_n "(cached) $ac_c" 1>&6 |
2175 | else | |
ac48eca1 AO |
2176 | |
2177 | ac_ext=c | |
2178 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2179 | ac_cpp='$CPP $CPPFLAGS' | |
2180 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2181 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2182 | cross_compiling=$ac_cv_prog_cc_cross | |
2183 | ||
2184 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 2185 | #line 2186 "configure" |
252b5132 RH |
2186 | #include "confdefs.h" |
2187 | ||
2188 | int main() { | |
2189 | ||
2190 | ; return 0; } | |
2191 | EOF | |
1fe1f39c | 2192 | if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
2193 | rm -rf conftest* |
2194 | lt_cv_cc_needs_belf=yes | |
2195 | else | |
2196 | echo "configure: failed program was:" >&5 | |
2197 | cat conftest.$ac_ext >&5 | |
2198 | rm -rf conftest* | |
2199 | lt_cv_cc_needs_belf=no | |
2200 | fi | |
2201 | rm -f conftest* | |
ac48eca1 AO |
2202 | ac_ext=c |
2203 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2204 | ac_cpp='$CPP $CPPFLAGS' | |
2205 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2206 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2207 | cross_compiling=$ac_cv_prog_cc_cross | |
2208 | ||
252b5132 RH |
2209 | fi |
2210 | ||
2211 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2212 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2213 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2214 | CFLAGS="$SAVE_CFLAGS" | |
2215 | fi | |
2216 | ;; | |
2217 | ||
252b5132 RH |
2218 | |
2219 | esac | |
2220 | ||
252b5132 RH |
2221 | |
2222 | # Save cache, so that ltconfig can load it | |
2223 | cat > confcache <<\EOF | |
2224 | # This file is a shell script that caches the results of configure | |
2225 | # tests run on this system so they can be shared between configure | |
2226 | # scripts and configure runs. It is not useful on other systems. | |
2227 | # If it contains results you don't want to keep, you may remove or edit it. | |
2228 | # | |
2229 | # By default, configure uses ./config.cache as the cache file, | |
2230 | # creating it if it does not exist already. You can give configure | |
2231 | # the --cache-file=FILE option to use a different cache file; that is | |
2232 | # what configure does when it calls configure scripts in | |
2233 | # subdirectories, so they share the cache. | |
2234 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2235 | # config.status only pays attention to the cache file if you give it the | |
2236 | # --recheck option to rerun configure. | |
2237 | # | |
2238 | EOF | |
2239 | # The following way of writing the cache mishandles newlines in values, | |
2240 | # but we know of no workaround that is simple, portable, and efficient. | |
2241 | # So, don't put newlines in cache variables' values. | |
2242 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2243 | # and sets the high bit in the cache file unless we assign to the vars. | |
2244 | (set) 2>&1 | | |
2245 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2246 | *ac_space=\ *) | |
2247 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2248 | # turns \\\\ into \\, and sed turns \\ into \). | |
2249 | sed -n \ | |
2250 | -e "s/'/'\\\\''/g" \ | |
2251 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2252 | ;; | |
2253 | *) | |
2254 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2255 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2256 | ;; | |
2257 | esac >> confcache | |
2258 | if cmp -s $cache_file confcache; then | |
2259 | : | |
2260 | else | |
2261 | if test -w $cache_file; then | |
2262 | echo "updating cache $cache_file" | |
2263 | cat confcache > $cache_file | |
2264 | else | |
2265 | echo "not updating unwritable cache $cache_file" | |
2266 | fi | |
2267 | fi | |
2268 | rm -f confcache | |
2269 | ||
2270 | ||
2271 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
ac48eca1 | 2272 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 2273 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
2274 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2275 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2276 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2277 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 2278 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 2279 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
252b5132 RH |
2280 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
2281 | ||
2282 | # Reload cache, that may have been modified by ltconfig | |
2283 | if test -r "$cache_file"; then | |
2284 | echo "loading cache $cache_file" | |
a2d91340 | 2285 | . $cache_file |
252b5132 RH |
2286 | else |
2287 | echo "creating cache $cache_file" | |
2288 | > $cache_file | |
2289 | fi | |
2290 | ||
2291 | ||
2292 | # This can be used to rebuild libtool when needed | |
ac48eca1 | 2293 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
252b5132 RH |
2294 | |
2295 | # Always use our own libtool. | |
2296 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2297 | ||
2298 | # Redirect the config.log output again, so that the ltconfig log is not | |
2299 | # clobbered by the next message. | |
2300 | exec 5>>./config.log | |
2301 | ||
ac48eca1 AO |
2302 | |
2303 | ||
2304 | ||
2305 | ||
d64552c5 | 2306 | |
ac48eca1 | 2307 | |
252b5132 RH |
2308 | # Check whether --enable-targets or --disable-targets was given. |
2309 | if test "${enable_targets+set}" = set; then | |
2310 | enableval="$enable_targets" | |
2311 | case "${enableval}" in | |
2312 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } | |
2313 | ;; | |
2314 | no) enable_targets= ;; | |
2315 | *) enable_targets=$enableval ;; | |
2316 | esac | |
2317 | fi | |
2318 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | |
2319 | if test "${enable_commonbfdlib+set}" = set; then | |
2320 | enableval="$enable_commonbfdlib" | |
2321 | case "${enableval}" in | |
2322 | yes) commonbfdlib=true ;; | |
2323 | no) commonbfdlib=false ;; | |
2324 | *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;; | |
2325 | esac | |
2326 | fi | |
2327 | ||
0218d1e4 | 2328 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
a2d91340 AC |
2329 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
2330 | if test "${enable_build_warnings+set}" = set; then | |
2331 | enableval="$enable_build_warnings" | |
2332 | case "${enableval}" in | |
2333 | yes) ;; | |
2334 | no) build_warnings="-w";; | |
2335 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
2336 | build_warnings="${build_warnings} ${t}";; | |
2337 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
2338 | build_warnings="${t} ${build_warnings}";; | |
2339 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
2340 | esac | |
2341 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
2342 | echo "Setting warning flags = $build_warnings" 6>&1 | |
2343 | fi | |
2344 | fi | |
2345 | WARN_CFLAGS="" | |
2346 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then | |
2347 | WARN_CFLAGS="${build_warnings}" | |
2348 | fi | |
2349 | ||
2350 | ||
252b5132 RH |
2351 | |
2352 | ||
2353 | ||
2354 | ||
2355 | if test -z "$target" ; then | |
2356 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } | |
2357 | fi | |
252b5132 RH |
2358 | |
2359 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
1fe1f39c | 2360 | echo "configure:2361: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
252b5132 RH |
2361 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
2362 | if test "${enable_maintainer_mode+set}" = set; then | |
2363 | enableval="$enable_maintainer_mode" | |
2364 | USE_MAINTAINER_MODE=$enableval | |
2365 | else | |
2366 | USE_MAINTAINER_MODE=no | |
2367 | fi | |
2368 | ||
2369 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
2370 | ||
2371 | ||
2372 | if test $USE_MAINTAINER_MODE = yes; then | |
2373 | MAINTAINER_MODE_TRUE= | |
2374 | MAINTAINER_MODE_FALSE='#' | |
2375 | else | |
2376 | MAINTAINER_MODE_TRUE='#' | |
2377 | MAINTAINER_MODE_FALSE= | |
2378 | fi | |
2379 | MAINT=$MAINTAINER_MODE_TRUE | |
2380 | ||
2381 | ||
81172ff2 | 2382 | echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6 |
1fe1f39c | 2383 | echo "configure:2384: checking whether to install libbfd" >&5 |
81172ff2 AM |
2384 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given. |
2385 | if test "${enable_install_libbfd+set}" = set; then | |
2386 | enableval="$enable_install_libbfd" | |
2387 | install_libbfd_p=$enableval | |
2388 | else | |
2469cfa2 | 2389 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
81172ff2 AM |
2390 | install_libbfd_p=yes |
2391 | else | |
2392 | install_libbfd_p=no | |
2393 | fi | |
2394 | fi | |
2395 | ||
2396 | echo "$ac_t""$install_libbfd_p" 1>&6 | |
2397 | ||
2398 | ||
2399 | if test $install_libbfd_p = yes; then | |
2400 | INSTALL_LIBBFD_TRUE= | |
2401 | INSTALL_LIBBFD_FALSE='#' | |
2402 | else | |
2403 | INSTALL_LIBBFD_TRUE='#' | |
2404 | INSTALL_LIBBFD_FALSE= | |
2405 | fi | |
2406 | # libbfd.a is a host library containing target dependent code | |
2407 | bfdlibdir='$(libdir)' | |
2408 | bfdincludedir='$(includedir)' | |
2409 | if test "${host}" != "${target}"; then | |
2410 | bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib' | |
2411 | bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include' | |
2412 | fi | |
2413 | ||
2414 | ||
2415 | ||
2416 | ||
252b5132 RH |
2417 | |
2418 | ||
2419 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
1fe1f39c | 2420 | echo "configure:2421: checking for executable suffix" >&5 |
a2d91340 | 2421 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
252b5132 RH |
2422 | echo $ac_n "(cached) $ac_c" 1>&6 |
2423 | else | |
a2d91340 | 2424 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
252b5132 RH |
2425 | ac_cv_exeext=.exe |
2426 | else | |
2427 | rm -f conftest* | |
2428 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
2429 | ac_cv_exeext= | |
1fe1f39c | 2430 | if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
252b5132 RH |
2431 | for file in conftest.*; do |
2432 | case $file in | |
1fe1f39c | 2433 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
252b5132 RH |
2434 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
2435 | esac | |
2436 | done | |
2437 | else | |
2438 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
2439 | fi | |
2440 | rm -f conftest* | |
2441 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
2442 | fi | |
2443 | fi | |
2444 | ||
2445 | EXEEXT="" | |
2446 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
2447 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
2448 | ac_exeext=$EXEEXT | |
2449 | ||
2450 | ||
2451 | # host-specific stuff: | |
2452 | ||
2453 | # Extract the first word of "gcc", so it can be a program name with args. | |
2454 | set dummy gcc; ac_word=$2 | |
2455 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 2456 | echo "configure:2457: checking for $ac_word" >&5 |
a2d91340 | 2457 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
252b5132 RH |
2458 | echo $ac_n "(cached) $ac_c" 1>&6 |
2459 | else | |
2460 | if test -n "$CC"; then | |
2461 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2462 | else | |
2463 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2464 | ac_dummy="$PATH" | |
2465 | for ac_dir in $ac_dummy; do | |
2466 | test -z "$ac_dir" && ac_dir=. | |
2467 | if test -f $ac_dir/$ac_word; then | |
2468 | ac_cv_prog_CC="gcc" | |
2469 | break | |
2470 | fi | |
2471 | done | |
2472 | IFS="$ac_save_ifs" | |
2473 | fi | |
2474 | fi | |
2475 | CC="$ac_cv_prog_CC" | |
2476 | if test -n "$CC"; then | |
2477 | echo "$ac_t""$CC" 1>&6 | |
2478 | else | |
2479 | echo "$ac_t""no" 1>&6 | |
2480 | fi | |
2481 | ||
2482 | if test -z "$CC"; then | |
2483 | # Extract the first word of "cc", so it can be a program name with args. | |
2484 | set dummy cc; ac_word=$2 | |
2485 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 2486 | echo "configure:2487: checking for $ac_word" >&5 |
a2d91340 | 2487 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
252b5132 RH |
2488 | echo $ac_n "(cached) $ac_c" 1>&6 |
2489 | else | |
2490 | if test -n "$CC"; then | |
2491 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2492 | else | |
2493 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2494 | ac_prog_rejected=no | |
2495 | ac_dummy="$PATH" | |
2496 | for ac_dir in $ac_dummy; do | |
2497 | test -z "$ac_dir" && ac_dir=. | |
2498 | if test -f $ac_dir/$ac_word; then | |
2499 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2500 | ac_prog_rejected=yes | |
2501 | continue | |
2502 | fi | |
2503 | ac_cv_prog_CC="cc" | |
2504 | break | |
2505 | fi | |
2506 | done | |
2507 | IFS="$ac_save_ifs" | |
2508 | if test $ac_prog_rejected = yes; then | |
2509 | # We found a bogon in the path, so make sure we never use it. | |
2510 | set dummy $ac_cv_prog_CC | |
2511 | shift | |
2512 | if test $# -gt 0; then | |
2513 | # We chose a different compiler from the bogus one. | |
2514 | # However, it has the same basename, so the bogon will be chosen | |
2515 | # first if we set CC to just the basename; use the full file name. | |
2516 | shift | |
2517 | set dummy "$ac_dir/$ac_word" "$@" | |
2518 | shift | |
2519 | ac_cv_prog_CC="$@" | |
2520 | fi | |
2521 | fi | |
2522 | fi | |
2523 | fi | |
2524 | CC="$ac_cv_prog_CC" | |
2525 | if test -n "$CC"; then | |
2526 | echo "$ac_t""$CC" 1>&6 | |
2527 | else | |
2528 | echo "$ac_t""no" 1>&6 | |
2529 | fi | |
2530 | ||
2531 | if test -z "$CC"; then | |
2532 | case "`uname -s`" in | |
a2d91340 | 2533 | *win32* | *WIN32*) |
252b5132 RH |
2534 | # Extract the first word of "cl", so it can be a program name with args. |
2535 | set dummy cl; ac_word=$2 | |
2536 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 2537 | echo "configure:2538: checking for $ac_word" >&5 |
a2d91340 | 2538 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
252b5132 RH |
2539 | echo $ac_n "(cached) $ac_c" 1>&6 |
2540 | else | |
2541 | if test -n "$CC"; then | |
2542 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2543 | else | |
2544 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2545 | ac_dummy="$PATH" | |
2546 | for ac_dir in $ac_dummy; do | |
2547 | test -z "$ac_dir" && ac_dir=. | |
2548 | if test -f $ac_dir/$ac_word; then | |
2549 | ac_cv_prog_CC="cl" | |
2550 | break | |
2551 | fi | |
2552 | done | |
2553 | IFS="$ac_save_ifs" | |
2554 | fi | |
2555 | fi | |
2556 | CC="$ac_cv_prog_CC" | |
2557 | if test -n "$CC"; then | |
2558 | echo "$ac_t""$CC" 1>&6 | |
2559 | else | |
2560 | echo "$ac_t""no" 1>&6 | |
2561 | fi | |
2562 | ;; | |
2563 | esac | |
2564 | fi | |
2565 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
2566 | fi | |
2567 | ||
a2d91340 | 2568 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1fe1f39c | 2569 | echo "configure:2570: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
252b5132 RH |
2570 | |
2571 | ac_ext=c | |
2572 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2573 | ac_cpp='$CPP $CPPFLAGS' | |
2574 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2575 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2576 | cross_compiling=$ac_cv_prog_cc_cross | |
2577 | ||
2578 | cat > conftest.$ac_ext << EOF | |
2579 | ||
1fe1f39c | 2580 | #line 2581 "configure" |
252b5132 RH |
2581 | #include "confdefs.h" |
2582 | ||
2583 | main(){return(0);} | |
2584 | EOF | |
1fe1f39c | 2585 | if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
2586 | ac_cv_prog_cc_works=yes |
2587 | # If we can't run a trivial program, we are probably using a cross compiler. | |
2588 | if (./conftest; exit) 2>/dev/null; then | |
2589 | ac_cv_prog_cc_cross=no | |
2590 | else | |
2591 | ac_cv_prog_cc_cross=yes | |
2592 | fi | |
2593 | else | |
2594 | echo "configure: failed program was:" >&5 | |
2595 | cat conftest.$ac_ext >&5 | |
2596 | ac_cv_prog_cc_works=no | |
2597 | fi | |
2598 | rm -fr conftest* | |
2599 | ac_ext=c | |
2600 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2601 | ac_cpp='$CPP $CPPFLAGS' | |
2602 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2603 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2604 | cross_compiling=$ac_cv_prog_cc_cross | |
2605 | ||
2606 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
2607 | if test $ac_cv_prog_cc_works = no; then | |
2608 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
2609 | fi | |
a2d91340 | 2610 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1fe1f39c | 2611 | echo "configure:2612: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
252b5132 RH |
2612 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
2613 | cross_compiling=$ac_cv_prog_cc_cross | |
2614 | ||
2615 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
1fe1f39c | 2616 | echo "configure:2617: checking whether we are using GNU C" >&5 |
a2d91340 | 2617 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
252b5132 RH |
2618 | echo $ac_n "(cached) $ac_c" 1>&6 |
2619 | else | |
2620 | cat > conftest.c <<EOF | |
2621 | #ifdef __GNUC__ | |
2622 | yes; | |
2623 | #endif | |
2624 | EOF | |
1fe1f39c | 2625 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
252b5132 RH |
2626 | ac_cv_prog_gcc=yes |
2627 | else | |
2628 | ac_cv_prog_gcc=no | |
2629 | fi | |
2630 | fi | |
2631 | ||
2632 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
2633 | ||
2634 | if test $ac_cv_prog_gcc = yes; then | |
2635 | GCC=yes | |
2636 | else | |
2637 | GCC= | |
2638 | fi | |
2639 | ||
2640 | ac_test_CFLAGS="${CFLAGS+set}" | |
2641 | ac_save_CFLAGS="$CFLAGS" | |
2642 | CFLAGS= | |
2643 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1fe1f39c | 2644 | echo "configure:2645: checking whether ${CC-cc} accepts -g" >&5 |
a2d91340 | 2645 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
252b5132 RH |
2646 | echo $ac_n "(cached) $ac_c" 1>&6 |
2647 | else | |
2648 | echo 'void f(){}' > conftest.c | |
2649 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
2650 | ac_cv_prog_cc_g=yes | |
2651 | else | |
2652 | ac_cv_prog_cc_g=no | |
2653 | fi | |
2654 | rm -f conftest* | |
2655 | ||
2656 | fi | |
2657 | ||
2658 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
2659 | if test "$ac_test_CFLAGS" = set; then | |
2660 | CFLAGS="$ac_save_CFLAGS" | |
2661 | elif test $ac_cv_prog_cc_g = yes; then | |
2662 | if test "$GCC" = yes; then | |
2663 | CFLAGS="-g -O2" | |
2664 | else | |
2665 | CFLAGS="-g" | |
2666 | fi | |
2667 | else | |
2668 | if test "$GCC" = yes; then | |
2669 | CFLAGS="-O2" | |
2670 | else | |
2671 | CFLAGS= | |
2672 | fi | |
2673 | fi | |
2674 | ||
2675 | ||
3d3d3d63 | 2676 | ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl" |
252b5132 | 2677 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1fe1f39c | 2678 | echo "configure:2679: checking how to run the C preprocessor" >&5 |
252b5132 RH |
2679 | # On Suns, sometimes $CPP names a directory. |
2680 | if test -n "$CPP" && test -d "$CPP"; then | |
2681 | CPP= | |
2682 | fi | |
2683 | if test -z "$CPP"; then | |
a2d91340 | 2684 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
252b5132 RH |
2685 | echo $ac_n "(cached) $ac_c" 1>&6 |
2686 | else | |
2687 | # This must be in double quotes, not single quotes, because CPP may get | |
2688 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2689 | CPP="${CC-cc} -E" | |
2690 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2691 | # not just through cpp. | |
2692 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 2693 | #line 2694 "configure" |
252b5132 RH |
2694 | #include "confdefs.h" |
2695 | #include <assert.h> | |
2696 | Syntax Error | |
2697 | EOF | |
2698 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1fe1f39c | 2699 | { (eval echo configure:2700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2700 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2701 | if test -z "$ac_err"; then | |
2702 | : | |
2703 | else | |
2704 | echo "$ac_err" >&5 | |
2705 | echo "configure: failed program was:" >&5 | |
2706 | cat conftest.$ac_ext >&5 | |
2707 | rm -rf conftest* | |
2708 | CPP="${CC-cc} -E -traditional-cpp" | |
2709 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 2710 | #line 2711 "configure" |
252b5132 RH |
2711 | #include "confdefs.h" |
2712 | #include <assert.h> | |
2713 | Syntax Error | |
2714 | EOF | |
2715 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1fe1f39c | 2716 | { (eval echo configure:2717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2717 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2718 | if test -z "$ac_err"; then | |
2719 | : | |
2720 | else | |
2721 | echo "$ac_err" >&5 | |
2722 | echo "configure: failed program was:" >&5 | |
2723 | cat conftest.$ac_ext >&5 | |
2724 | rm -rf conftest* | |
2725 | CPP="${CC-cc} -nologo -E" | |
2726 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 2727 | #line 2728 "configure" |
252b5132 RH |
2728 | #include "confdefs.h" |
2729 | #include <assert.h> | |
2730 | Syntax Error | |
2731 | EOF | |
2732 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1fe1f39c | 2733 | { (eval echo configure:2734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2734 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2735 | if test -z "$ac_err"; then | |
2736 | : | |
2737 | else | |
2738 | echo "$ac_err" >&5 | |
2739 | echo "configure: failed program was:" >&5 | |
2740 | cat conftest.$ac_ext >&5 | |
2741 | rm -rf conftest* | |
2742 | CPP=/lib/cpp | |
2743 | fi | |
2744 | rm -f conftest* | |
2745 | fi | |
2746 | rm -f conftest* | |
2747 | fi | |
2748 | rm -f conftest* | |
2749 | ac_cv_prog_CPP="$CPP" | |
2750 | fi | |
2751 | CPP="$ac_cv_prog_CPP" | |
2752 | else | |
2753 | ac_cv_prog_CPP="$CPP" | |
2754 | fi | |
2755 | echo "$ac_t""$CPP" 1>&6 | |
2756 | ||
ac48eca1 AO |
2757 | # Extract the first word of "ranlib", so it can be a program name with args. |
2758 | set dummy ranlib; ac_word=$2 | |
2759 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 2760 | echo "configure:2761: checking for $ac_word" >&5 |
ac48eca1 AO |
2761 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2763 | else | |
2764 | if test -n "$RANLIB"; then | |
2765 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2766 | else | |
2767 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2768 | ac_dummy="$PATH" | |
2769 | for ac_dir in $ac_dummy; do | |
2770 | test -z "$ac_dir" && ac_dir=. | |
2771 | if test -f $ac_dir/$ac_word; then | |
2772 | ac_cv_prog_RANLIB="ranlib" | |
2773 | break | |
2774 | fi | |
2775 | done | |
2776 | IFS="$ac_save_ifs" | |
2777 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2778 | fi | |
2779 | fi | |
2780 | RANLIB="$ac_cv_prog_RANLIB" | |
2781 | if test -n "$RANLIB"; then | |
2782 | echo "$ac_t""$RANLIB" 1>&6 | |
2783 | else | |
2784 | echo "$ac_t""no" 1>&6 | |
2785 | fi | |
2786 | ||
252b5132 | 2787 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1fe1f39c | 2788 | echo "configure:2789: checking for ANSI C header files" >&5 |
a2d91340 | 2789 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
252b5132 RH |
2790 | echo $ac_n "(cached) $ac_c" 1>&6 |
2791 | else | |
2792 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 2793 | #line 2794 "configure" |
252b5132 RH |
2794 | #include "confdefs.h" |
2795 | #include <stdlib.h> | |
2796 | #include <stdarg.h> | |
2797 | #include <string.h> | |
2798 | #include <float.h> | |
2799 | EOF | |
2800 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1fe1f39c | 2801 | { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2802 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2803 | if test -z "$ac_err"; then | |
2804 | rm -rf conftest* | |
2805 | ac_cv_header_stdc=yes | |
2806 | else | |
2807 | echo "$ac_err" >&5 | |
2808 | echo "configure: failed program was:" >&5 | |
2809 | cat conftest.$ac_ext >&5 | |
2810 | rm -rf conftest* | |
2811 | ac_cv_header_stdc=no | |
2812 | fi | |
2813 | rm -f conftest* | |
2814 | ||
2815 | if test $ac_cv_header_stdc = yes; then | |
2816 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2817 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 2818 | #line 2819 "configure" |
252b5132 RH |
2819 | #include "confdefs.h" |
2820 | #include <string.h> | |
2821 | EOF | |
2822 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2823 | egrep "memchr" >/dev/null 2>&1; then | |
2824 | : | |
2825 | else | |
2826 | rm -rf conftest* | |
2827 | ac_cv_header_stdc=no | |
2828 | fi | |
2829 | rm -f conftest* | |
2830 | ||
2831 | fi | |
2832 | ||
2833 | if test $ac_cv_header_stdc = yes; then | |
2834 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2835 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 2836 | #line 2837 "configure" |
252b5132 RH |
2837 | #include "confdefs.h" |
2838 | #include <stdlib.h> | |
2839 | EOF | |
2840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2841 | egrep "free" >/dev/null 2>&1; then | |
2842 | : | |
2843 | else | |
2844 | rm -rf conftest* | |
2845 | ac_cv_header_stdc=no | |
2846 | fi | |
2847 | rm -f conftest* | |
2848 | ||
2849 | fi | |
2850 | ||
2851 | if test $ac_cv_header_stdc = yes; then | |
2852 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2853 | if test "$cross_compiling" = yes; then | |
2854 | : | |
2855 | else | |
2856 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 2857 | #line 2858 "configure" |
252b5132 RH |
2858 | #include "confdefs.h" |
2859 | #include <ctype.h> | |
2860 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2861 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2862 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2863 | int main () { int i; for (i = 0; i < 256; i++) | |
2864 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2865 | exit (0); } | |
2866 | ||
2867 | EOF | |
1fe1f39c | 2868 | if { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
2869 | then |
2870 | : | |
2871 | else | |
2872 | echo "configure: failed program was:" >&5 | |
2873 | cat conftest.$ac_ext >&5 | |
2874 | rm -fr conftest* | |
2875 | ac_cv_header_stdc=no | |
2876 | fi | |
2877 | rm -fr conftest* | |
2878 | fi | |
2879 | ||
2880 | fi | |
2881 | fi | |
2882 | ||
2883 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2884 | if test $ac_cv_header_stdc = yes; then | |
2885 | cat >> confdefs.h <<\EOF | |
2886 | #define STDC_HEADERS 1 | |
2887 | EOF | |
2888 | ||
2889 | fi | |
2890 | ||
2891 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
1fe1f39c | 2892 | echo "configure:2893: checking for working const" >&5 |
a2d91340 | 2893 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
252b5132 RH |
2894 | echo $ac_n "(cached) $ac_c" 1>&6 |
2895 | else | |
2896 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 2897 | #line 2898 "configure" |
252b5132 RH |
2898 | #include "confdefs.h" |
2899 | ||
2900 | int main() { | |
2901 | ||
2902 | /* Ultrix mips cc rejects this. */ | |
2903 | typedef int charset[2]; const charset x; | |
2904 | /* SunOS 4.1.1 cc rejects this. */ | |
2905 | char const *const *ccp; | |
2906 | char **p; | |
2907 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
2908 | struct point {int x, y;}; | |
2909 | static struct point const zero = {0,0}; | |
2910 | /* AIX XL C 1.02.0.0 rejects this. | |
2911 | It does not let you subtract one const X* pointer from another in an arm | |
2912 | of an if-expression whose if-part is not a constant expression */ | |
2913 | const char *g = "string"; | |
2914 | ccp = &g + (g ? g-g : 0); | |
2915 | /* HPUX 7.0 cc rejects these. */ | |
2916 | ++ccp; | |
2917 | p = (char**) ccp; | |
2918 | ccp = (char const *const *) p; | |
2919 | { /* SCO 3.2v4 cc rejects this. */ | |
2920 | char *t; | |
2921 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2922 | ||
2923 | *t++ = 0; | |
2924 | } | |
2925 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2926 | int x[] = {25, 17}; | |
2927 | const int *foo = &x[0]; | |
2928 | ++foo; | |
2929 | } | |
2930 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2931 | typedef const int *iptr; | |
2932 | iptr p = 0; | |
2933 | ++p; | |
2934 | } | |
2935 | { /* AIX XL C 1.02.0.0 rejects this saying | |
2936 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2937 | struct s { int j; const int *ap[3]; }; | |
2938 | struct s *b; b->j = 5; | |
2939 | } | |
2940 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2941 | const int foo = 10; | |
2942 | } | |
2943 | ||
2944 | ; return 0; } | |
2945 | EOF | |
1fe1f39c | 2946 | if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
2947 | rm -rf conftest* |
2948 | ac_cv_c_const=yes | |
2949 | else | |
2950 | echo "configure: failed program was:" >&5 | |
2951 | cat conftest.$ac_ext >&5 | |
2952 | rm -rf conftest* | |
2953 | ac_cv_c_const=no | |
2954 | fi | |
2955 | rm -f conftest* | |
2956 | fi | |
2957 | ||
2958 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
2959 | if test $ac_cv_c_const = no; then | |
2960 | cat >> confdefs.h <<\EOF | |
2961 | #define const | |
2962 | EOF | |
2963 | ||
2964 | fi | |
2965 | ||
2966 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
1fe1f39c | 2967 | echo "configure:2968: checking for inline" >&5 |
a2d91340 | 2968 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
252b5132 RH |
2969 | echo $ac_n "(cached) $ac_c" 1>&6 |
2970 | else | |
2971 | ac_cv_c_inline=no | |
2972 | for ac_kw in inline __inline__ __inline; do | |
2973 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 2974 | #line 2975 "configure" |
252b5132 RH |
2975 | #include "confdefs.h" |
2976 | ||
2977 | int main() { | |
a2d91340 | 2978 | } $ac_kw foo() { |
252b5132 RH |
2979 | ; return 0; } |
2980 | EOF | |
1fe1f39c | 2981 | if { (eval echo configure:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
2982 | rm -rf conftest* |
2983 | ac_cv_c_inline=$ac_kw; break | |
2984 | else | |
2985 | echo "configure: failed program was:" >&5 | |
2986 | cat conftest.$ac_ext >&5 | |
2987 | fi | |
2988 | rm -f conftest* | |
2989 | done | |
2990 | ||
2991 | fi | |
2992 | ||
2993 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
2994 | case "$ac_cv_c_inline" in | |
2995 | inline | yes) ;; | |
2996 | no) cat >> confdefs.h <<\EOF | |
2997 | #define inline | |
2998 | EOF | |
2999 | ;; | |
3000 | *) cat >> confdefs.h <<EOF | |
3001 | #define inline $ac_cv_c_inline | |
3002 | EOF | |
3003 | ;; | |
3004 | esac | |
3005 | ||
3006 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
1fe1f39c | 3007 | echo "configure:3008: checking for off_t" >&5 |
a2d91340 | 3008 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
252b5132 RH |
3009 | echo $ac_n "(cached) $ac_c" 1>&6 |
3010 | else | |
3011 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3012 | #line 3013 "configure" |
252b5132 RH |
3013 | #include "confdefs.h" |
3014 | #include <sys/types.h> | |
3015 | #if STDC_HEADERS | |
3016 | #include <stdlib.h> | |
3017 | #include <stddef.h> | |
3018 | #endif | |
3019 | EOF | |
3020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3021 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
3022 | rm -rf conftest* | |
a2d91340 | 3023 | ac_cv_type_off_t=yes |
252b5132 RH |
3024 | else |
3025 | rm -rf conftest* | |
a2d91340 | 3026 | ac_cv_type_off_t=no |
252b5132 RH |
3027 | fi |
3028 | rm -f conftest* | |
3029 | ||
3030 | fi | |
a2d91340 AC |
3031 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
3032 | if test $ac_cv_type_off_t = no; then | |
3033 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
3034 | #define off_t long |
3035 | EOF | |
3036 | ||
3037 | fi | |
3038 | ||
3039 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
1fe1f39c | 3040 | echo "configure:3041: checking for size_t" >&5 |
a2d91340 | 3041 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
252b5132 RH |
3042 | echo $ac_n "(cached) $ac_c" 1>&6 |
3043 | else | |
3044 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3045 | #line 3046 "configure" |
252b5132 RH |
3046 | #include "confdefs.h" |
3047 | #include <sys/types.h> | |
3048 | #if STDC_HEADERS | |
3049 | #include <stdlib.h> | |
3050 | #include <stddef.h> | |
3051 | #endif | |
3052 | EOF | |
3053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3054 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
3055 | rm -rf conftest* | |
a2d91340 | 3056 | ac_cv_type_size_t=yes |
252b5132 RH |
3057 | else |
3058 | rm -rf conftest* | |
a2d91340 | 3059 | ac_cv_type_size_t=no |
252b5132 RH |
3060 | fi |
3061 | rm -f conftest* | |
3062 | ||
3063 | fi | |
a2d91340 AC |
3064 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
3065 | if test $ac_cv_type_size_t = no; then | |
3066 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
3067 | #define size_t unsigned |
3068 | EOF | |
3069 | ||
3070 | fi | |
3071 | ||
3072 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3073 | # for constant arguments. Useless! | |
3074 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
1fe1f39c | 3075 | echo "configure:3076: checking for working alloca.h" >&5 |
a2d91340 | 3076 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
252b5132 RH |
3077 | echo $ac_n "(cached) $ac_c" 1>&6 |
3078 | else | |
3079 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3080 | #line 3081 "configure" |
252b5132 RH |
3081 | #include "confdefs.h" |
3082 | #include <alloca.h> | |
3083 | int main() { | |
3084 | char *p = alloca(2 * sizeof(int)); | |
3085 | ; return 0; } | |
3086 | EOF | |
1fe1f39c | 3087 | if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3088 | rm -rf conftest* |
3089 | ac_cv_header_alloca_h=yes | |
3090 | else | |
3091 | echo "configure: failed program was:" >&5 | |
3092 | cat conftest.$ac_ext >&5 | |
3093 | rm -rf conftest* | |
3094 | ac_cv_header_alloca_h=no | |
3095 | fi | |
3096 | rm -f conftest* | |
3097 | fi | |
3098 | ||
3099 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
3100 | if test $ac_cv_header_alloca_h = yes; then | |
3101 | cat >> confdefs.h <<\EOF | |
3102 | #define HAVE_ALLOCA_H 1 | |
3103 | EOF | |
3104 | ||
3105 | fi | |
3106 | ||
3107 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
1fe1f39c | 3108 | echo "configure:3109: checking for alloca" >&5 |
a2d91340 | 3109 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
252b5132 RH |
3110 | echo $ac_n "(cached) $ac_c" 1>&6 |
3111 | else | |
3112 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3113 | #line 3114 "configure" |
252b5132 RH |
3114 | #include "confdefs.h" |
3115 | ||
3116 | #ifdef __GNUC__ | |
3117 | # define alloca __builtin_alloca | |
3118 | #else | |
3119 | # ifdef _MSC_VER | |
3120 | # include <malloc.h> | |
3121 | # define alloca _alloca | |
3122 | # else | |
3123 | # if HAVE_ALLOCA_H | |
3124 | # include <alloca.h> | |
3125 | # else | |
3126 | # ifdef _AIX | |
3127 | #pragma alloca | |
3128 | # else | |
3129 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3130 | char *alloca (); | |
3131 | # endif | |
3132 | # endif | |
3133 | # endif | |
3134 | # endif | |
3135 | #endif | |
3136 | ||
3137 | int main() { | |
3138 | char *p = (char *) alloca(1); | |
3139 | ; return 0; } | |
3140 | EOF | |
1fe1f39c | 3141 | if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3142 | rm -rf conftest* |
3143 | ac_cv_func_alloca_works=yes | |
3144 | else | |
3145 | echo "configure: failed program was:" >&5 | |
3146 | cat conftest.$ac_ext >&5 | |
3147 | rm -rf conftest* | |
3148 | ac_cv_func_alloca_works=no | |
3149 | fi | |
3150 | rm -f conftest* | |
3151 | fi | |
3152 | ||
3153 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
3154 | if test $ac_cv_func_alloca_works = yes; then | |
3155 | cat >> confdefs.h <<\EOF | |
3156 | #define HAVE_ALLOCA 1 | |
3157 | EOF | |
3158 | ||
3159 | fi | |
3160 | ||
3161 | if test $ac_cv_func_alloca_works = no; then | |
3162 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3163 | # that cause trouble. Some versions do not even contain alloca or | |
3164 | # contain a buggy version. If you still want to use their alloca, | |
3165 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3166 | ALLOCA=alloca.${ac_objext} | |
3167 | cat >> confdefs.h <<\EOF | |
3168 | #define C_ALLOCA 1 | |
3169 | EOF | |
3170 | ||
3171 | ||
3172 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
1fe1f39c | 3173 | echo "configure:3174: checking whether alloca needs Cray hooks" >&5 |
a2d91340 | 3174 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
252b5132 RH |
3175 | echo $ac_n "(cached) $ac_c" 1>&6 |
3176 | else | |
3177 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3178 | #line 3179 "configure" |
252b5132 RH |
3179 | #include "confdefs.h" |
3180 | #if defined(CRAY) && ! defined(CRAY2) | |
3181 | webecray | |
3182 | #else | |
3183 | wenotbecray | |
3184 | #endif | |
3185 | ||
3186 | EOF | |
3187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3188 | egrep "webecray" >/dev/null 2>&1; then | |
3189 | rm -rf conftest* | |
3190 | ac_cv_os_cray=yes | |
3191 | else | |
3192 | rm -rf conftest* | |
3193 | ac_cv_os_cray=no | |
3194 | fi | |
3195 | rm -f conftest* | |
3196 | ||
3197 | fi | |
3198 | ||
3199 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
3200 | if test $ac_cv_os_cray = yes; then | |
3201 | for ac_func in _getb67 GETB67 getb67; do | |
3202 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1fe1f39c | 3203 | echo "configure:3204: checking for $ac_func" >&5 |
a2d91340 | 3204 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3205 | echo $ac_n "(cached) $ac_c" 1>&6 |
3206 | else | |
3207 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3208 | #line 3209 "configure" |
252b5132 RH |
3209 | #include "confdefs.h" |
3210 | /* System header to define __stub macros and hopefully few prototypes, | |
3211 | which can conflict with char $ac_func(); below. */ | |
3212 | #include <assert.h> | |
3213 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3214 | /* We use char because int might match the return type of a gcc2 | |
3215 | builtin and then its argument prototype would still apply. */ | |
3216 | char $ac_func(); | |
3217 | ||
3218 | int main() { | |
3219 | ||
3220 | /* The GNU C library defines this for functions which it implements | |
3221 | to always fail with ENOSYS. Some functions are actually named | |
3222 | something starting with __ and the normal name is an alias. */ | |
3223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3224 | choke me | |
3225 | #else | |
a2d91340 | 3226 | $ac_func(); |
252b5132 RH |
3227 | #endif |
3228 | ||
3229 | ; return 0; } | |
3230 | EOF | |
1fe1f39c | 3231 | if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3232 | rm -rf conftest* |
3233 | eval "ac_cv_func_$ac_func=yes" | |
3234 | else | |
3235 | echo "configure: failed program was:" >&5 | |
3236 | cat conftest.$ac_ext >&5 | |
3237 | rm -rf conftest* | |
3238 | eval "ac_cv_func_$ac_func=no" | |
3239 | fi | |
3240 | rm -f conftest* | |
3241 | fi | |
3242 | ||
3243 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3244 | echo "$ac_t""yes" 1>&6 | |
3245 | cat >> confdefs.h <<EOF | |
3246 | #define CRAY_STACKSEG_END $ac_func | |
3247 | EOF | |
3248 | ||
3249 | break | |
3250 | else | |
3251 | echo "$ac_t""no" 1>&6 | |
3252 | fi | |
3253 | ||
3254 | done | |
3255 | fi | |
3256 | ||
3257 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
1fe1f39c | 3258 | echo "configure:3259: checking stack direction for C alloca" >&5 |
a2d91340 | 3259 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
252b5132 RH |
3260 | echo $ac_n "(cached) $ac_c" 1>&6 |
3261 | else | |
3262 | if test "$cross_compiling" = yes; then | |
3263 | ac_cv_c_stack_direction=0 | |
3264 | else | |
3265 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3266 | #line 3267 "configure" |
252b5132 RH |
3267 | #include "confdefs.h" |
3268 | find_stack_direction () | |
3269 | { | |
3270 | static char *addr = 0; | |
3271 | auto char dummy; | |
3272 | if (addr == 0) | |
3273 | { | |
3274 | addr = &dummy; | |
3275 | return find_stack_direction (); | |
3276 | } | |
3277 | else | |
3278 | return (&dummy > addr) ? 1 : -1; | |
3279 | } | |
3280 | main () | |
3281 | { | |
3282 | exit (find_stack_direction() < 0); | |
3283 | } | |
3284 | EOF | |
1fe1f39c | 3285 | if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
3286 | then |
3287 | ac_cv_c_stack_direction=1 | |
3288 | else | |
3289 | echo "configure: failed program was:" >&5 | |
3290 | cat conftest.$ac_ext >&5 | |
3291 | rm -fr conftest* | |
3292 | ac_cv_c_stack_direction=-1 | |
3293 | fi | |
3294 | rm -fr conftest* | |
3295 | fi | |
3296 | ||
3297 | fi | |
3298 | ||
3299 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
3300 | cat >> confdefs.h <<EOF | |
3301 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3302 | EOF | |
3303 | ||
3304 | fi | |
3305 | ||
1fe1f39c | 3306 | for ac_hdr in unistd.h |
252b5132 RH |
3307 | do |
3308 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3309 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1fe1f39c | 3310 | echo "configure:3311: checking for $ac_hdr" >&5 |
a2d91340 | 3311 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
3312 | echo $ac_n "(cached) $ac_c" 1>&6 |
3313 | else | |
3314 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3315 | #line 3316 "configure" |
252b5132 RH |
3316 | #include "confdefs.h" |
3317 | #include <$ac_hdr> | |
3318 | EOF | |
3319 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1fe1f39c | 3320 | { (eval echo configure:3321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3321 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3322 | if test -z "$ac_err"; then | |
3323 | rm -rf conftest* | |
3324 | eval "ac_cv_header_$ac_safe=yes" | |
3325 | else | |
3326 | echo "$ac_err" >&5 | |
3327 | echo "configure: failed program was:" >&5 | |
3328 | cat conftest.$ac_ext >&5 | |
3329 | rm -rf conftest* | |
3330 | eval "ac_cv_header_$ac_safe=no" | |
3331 | fi | |
3332 | rm -f conftest* | |
3333 | fi | |
3334 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3335 | echo "$ac_t""yes" 1>&6 | |
3336 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3337 | cat >> confdefs.h <<EOF | |
3338 | #define $ac_tr_hdr 1 | |
3339 | EOF | |
3340 | ||
3341 | else | |
3342 | echo "$ac_t""no" 1>&6 | |
3343 | fi | |
3344 | done | |
3345 | ||
3346 | for ac_func in getpagesize | |
3347 | do | |
3348 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1fe1f39c | 3349 | echo "configure:3350: checking for $ac_func" >&5 |
a2d91340 | 3350 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3351 | echo $ac_n "(cached) $ac_c" 1>&6 |
3352 | else | |
3353 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3354 | #line 3355 "configure" |
252b5132 RH |
3355 | #include "confdefs.h" |
3356 | /* System header to define __stub macros and hopefully few prototypes, | |
3357 | which can conflict with char $ac_func(); below. */ | |
3358 | #include <assert.h> | |
3359 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3360 | /* We use char because int might match the return type of a gcc2 | |
3361 | builtin and then its argument prototype would still apply. */ | |
3362 | char $ac_func(); | |
3363 | ||
3364 | int main() { | |
3365 | ||
3366 | /* The GNU C library defines this for functions which it implements | |
3367 | to always fail with ENOSYS. Some functions are actually named | |
3368 | something starting with __ and the normal name is an alias. */ | |
3369 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3370 | choke me | |
3371 | #else | |
a2d91340 | 3372 | $ac_func(); |
252b5132 RH |
3373 | #endif |
3374 | ||
3375 | ; return 0; } | |
3376 | EOF | |
1fe1f39c | 3377 | if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3378 | rm -rf conftest* |
3379 | eval "ac_cv_func_$ac_func=yes" | |
3380 | else | |
3381 | echo "configure: failed program was:" >&5 | |
3382 | cat conftest.$ac_ext >&5 | |
3383 | rm -rf conftest* | |
3384 | eval "ac_cv_func_$ac_func=no" | |
3385 | fi | |
3386 | rm -f conftest* | |
3387 | fi | |
3388 | ||
3389 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3390 | echo "$ac_t""yes" 1>&6 | |
3391 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3392 | cat >> confdefs.h <<EOF | |
3393 | #define $ac_tr_func 1 | |
3394 | EOF | |
3395 | ||
3396 | else | |
3397 | echo "$ac_t""no" 1>&6 | |
3398 | fi | |
3399 | done | |
3400 | ||
3401 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
1fe1f39c | 3402 | echo "configure:3403: checking for working mmap" >&5 |
a2d91340 | 3403 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
252b5132 RH |
3404 | echo $ac_n "(cached) $ac_c" 1>&6 |
3405 | else | |
3406 | if test "$cross_compiling" = yes; then | |
3407 | ac_cv_func_mmap_fixed_mapped=no | |
3408 | else | |
3409 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3410 | #line 3411 "configure" |
252b5132 RH |
3411 | #include "confdefs.h" |
3412 | ||
3413 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
3414 | Here is a matrix of mmap possibilities: | |
3415 | mmap private not fixed | |
3416 | mmap private fixed at somewhere currently unmapped | |
3417 | mmap private fixed at somewhere already mapped | |
3418 | mmap shared not fixed | |
3419 | mmap shared fixed at somewhere currently unmapped | |
3420 | mmap shared fixed at somewhere already mapped | |
3421 | For private mappings, we should verify that changes cannot be read() | |
3422 | back from the file, nor mmap's back from the file at a different | |
3423 | address. (There have been systems where private was not correctly | |
3424 | implemented like the infamous i386 svr4.0, and systems where the | |
3425 | VM page cache was not coherent with the filesystem buffer cache | |
3426 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
3427 | For shared mappings, we should conversely verify that changes get | |
3428 | propogated back to all the places they're supposed to be. | |
3429 | ||
3430 | Grep wants private fixed already mapped. | |
3431 | The main things grep needs to know about mmap are: | |
3432 | * does it exist and is it safe to write into the mmap'd area | |
3433 | * how to use it (BSD variants) */ | |
3434 | #include <sys/types.h> | |
3435 | #include <fcntl.h> | |
3436 | #include <sys/mman.h> | |
3437 | ||
3438 | /* This mess was copied from the GNU getpagesize.h. */ | |
3439 | #ifndef HAVE_GETPAGESIZE | |
1fe1f39c NC |
3440 | # ifdef HAVE_UNISTD_H |
3441 | # include <unistd.h> | |
3442 | # endif | |
252b5132 RH |
3443 | |
3444 | /* Assume that all systems that can run configure have sys/param.h. */ | |
3445 | # ifndef HAVE_SYS_PARAM_H | |
3446 | # define HAVE_SYS_PARAM_H 1 | |
3447 | # endif | |
3448 | ||
3449 | # ifdef _SC_PAGESIZE | |
3450 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
3451 | # else /* no _SC_PAGESIZE */ | |
3452 | # ifdef HAVE_SYS_PARAM_H | |
3453 | # include <sys/param.h> | |
3454 | # ifdef EXEC_PAGESIZE | |
3455 | # define getpagesize() EXEC_PAGESIZE | |
3456 | # else /* no EXEC_PAGESIZE */ | |
3457 | # ifdef NBPG | |
3458 | # define getpagesize() NBPG * CLSIZE | |
3459 | # ifndef CLSIZE | |
3460 | # define CLSIZE 1 | |
3461 | # endif /* no CLSIZE */ | |
3462 | # else /* no NBPG */ | |
3463 | # ifdef NBPC | |
3464 | # define getpagesize() NBPC | |
3465 | # else /* no NBPC */ | |
3466 | # ifdef PAGESIZE | |
3467 | # define getpagesize() PAGESIZE | |
3468 | # endif /* PAGESIZE */ | |
3469 | # endif /* no NBPC */ | |
3470 | # endif /* no NBPG */ | |
3471 | # endif /* no EXEC_PAGESIZE */ | |
3472 | # else /* no HAVE_SYS_PARAM_H */ | |
3473 | # define getpagesize() 8192 /* punt totally */ | |
3474 | # endif /* no HAVE_SYS_PARAM_H */ | |
3475 | # endif /* no _SC_PAGESIZE */ | |
3476 | ||
3477 | #endif /* no HAVE_GETPAGESIZE */ | |
3478 | ||
3479 | #ifdef __cplusplus | |
3480 | extern "C" { void *malloc(unsigned); } | |
3481 | #else | |
3482 | char *malloc(); | |
3483 | #endif | |
3484 | ||
3485 | int | |
3486 | main() | |
3487 | { | |
3488 | char *data, *data2, *data3; | |
3489 | int i, pagesize; | |
3490 | int fd; | |
3491 | ||
3492 | pagesize = getpagesize(); | |
3493 | ||
3494 | /* | |
3495 | * First, make a file with some known garbage in it. | |
3496 | */ | |
3497 | data = malloc(pagesize); | |
3498 | if (!data) | |
3499 | exit(1); | |
3500 | for (i = 0; i < pagesize; ++i) | |
3501 | *(data + i) = rand(); | |
3502 | umask(0); | |
3503 | fd = creat("conftestmmap", 0600); | |
3504 | if (fd < 0) | |
3505 | exit(1); | |
3506 | if (write(fd, data, pagesize) != pagesize) | |
3507 | exit(1); | |
3508 | close(fd); | |
3509 | ||
3510 | /* | |
3511 | * Next, try to mmap the file at a fixed address which | |
3512 | * already has something else allocated at it. If we can, | |
3513 | * also make sure that we see the same garbage. | |
3514 | */ | |
3515 | fd = open("conftestmmap", O_RDWR); | |
3516 | if (fd < 0) | |
3517 | exit(1); | |
3518 | data2 = malloc(2 * pagesize); | |
3519 | if (!data2) | |
3520 | exit(1); | |
3521 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
3522 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
3523 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3524 | exit(1); | |
3525 | for (i = 0; i < pagesize; ++i) | |
3526 | if (*(data + i) != *(data2 + i)) | |
3527 | exit(1); | |
3528 | ||
3529 | /* | |
3530 | * Finally, make sure that changes to the mapped area | |
3531 | * do not percolate back to the file as seen by read(). | |
3532 | * (This is a bug on some variants of i386 svr4.0.) | |
3533 | */ | |
3534 | for (i = 0; i < pagesize; ++i) | |
3535 | *(data2 + i) = *(data2 + i) + 1; | |
3536 | data3 = malloc(pagesize); | |
3537 | if (!data3) | |
3538 | exit(1); | |
3539 | if (read(fd, data3, pagesize) != pagesize) | |
3540 | exit(1); | |
3541 | for (i = 0; i < pagesize; ++i) | |
3542 | if (*(data + i) != *(data3 + i)) | |
3543 | exit(1); | |
3544 | close(fd); | |
3545 | unlink("conftestmmap"); | |
3546 | exit(0); | |
3547 | } | |
3548 | ||
3549 | EOF | |
1fe1f39c | 3550 | if { (eval echo configure:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
3551 | then |
3552 | ac_cv_func_mmap_fixed_mapped=yes | |
3553 | else | |
3554 | echo "configure: failed program was:" >&5 | |
3555 | cat conftest.$ac_ext >&5 | |
3556 | rm -fr conftest* | |
3557 | ac_cv_func_mmap_fixed_mapped=no | |
3558 | fi | |
3559 | rm -fr conftest* | |
3560 | fi | |
3561 | ||
3562 | fi | |
3563 | ||
3564 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
3565 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
3566 | cat >> confdefs.h <<\EOF | |
3567 | #define HAVE_MMAP 1 | |
3568 | EOF | |
3569 | ||
3570 | fi | |
3571 | ||
3572 | ||
3573 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
3574 | unistd.h values.h sys/param.h | |
3575 | do | |
3576 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3577 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1fe1f39c | 3578 | echo "configure:3579: checking for $ac_hdr" >&5 |
a2d91340 | 3579 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
3580 | echo $ac_n "(cached) $ac_c" 1>&6 |
3581 | else | |
3582 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3583 | #line 3584 "configure" |
252b5132 RH |
3584 | #include "confdefs.h" |
3585 | #include <$ac_hdr> | |
3586 | EOF | |
3587 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1fe1f39c | 3588 | { (eval echo configure:3589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3589 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3590 | if test -z "$ac_err"; then | |
3591 | rm -rf conftest* | |
3592 | eval "ac_cv_header_$ac_safe=yes" | |
3593 | else | |
3594 | echo "$ac_err" >&5 | |
3595 | echo "configure: failed program was:" >&5 | |
3596 | cat conftest.$ac_ext >&5 | |
3597 | rm -rf conftest* | |
3598 | eval "ac_cv_header_$ac_safe=no" | |
3599 | fi | |
3600 | rm -f conftest* | |
3601 | fi | |
3602 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3603 | echo "$ac_t""yes" 1>&6 | |
3604 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3605 | cat >> confdefs.h <<EOF | |
3606 | #define $ac_tr_hdr 1 | |
3607 | EOF | |
3608 | ||
3609 | else | |
3610 | echo "$ac_t""no" 1>&6 | |
3611 | fi | |
3612 | done | |
3613 | ||
3614 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
3615 | __argz_count __argz_stringify __argz_next | |
3616 | do | |
3617 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1fe1f39c | 3618 | echo "configure:3619: checking for $ac_func" >&5 |
a2d91340 | 3619 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3620 | echo $ac_n "(cached) $ac_c" 1>&6 |
3621 | else | |
3622 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3623 | #line 3624 "configure" |
252b5132 RH |
3624 | #include "confdefs.h" |
3625 | /* System header to define __stub macros and hopefully few prototypes, | |
3626 | which can conflict with char $ac_func(); below. */ | |
3627 | #include <assert.h> | |
3628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3629 | /* We use char because int might match the return type of a gcc2 | |
3630 | builtin and then its argument prototype would still apply. */ | |
3631 | char $ac_func(); | |
3632 | ||
3633 | int main() { | |
3634 | ||
3635 | /* The GNU C library defines this for functions which it implements | |
3636 | to always fail with ENOSYS. Some functions are actually named | |
3637 | something starting with __ and the normal name is an alias. */ | |
3638 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3639 | choke me | |
3640 | #else | |
a2d91340 | 3641 | $ac_func(); |
252b5132 RH |
3642 | #endif |
3643 | ||
3644 | ; return 0; } | |
3645 | EOF | |
1fe1f39c | 3646 | if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3647 | rm -rf conftest* |
3648 | eval "ac_cv_func_$ac_func=yes" | |
3649 | else | |
3650 | echo "configure: failed program was:" >&5 | |
3651 | cat conftest.$ac_ext >&5 | |
3652 | rm -rf conftest* | |
3653 | eval "ac_cv_func_$ac_func=no" | |
3654 | fi | |
3655 | rm -f conftest* | |
3656 | fi | |
3657 | ||
3658 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3659 | echo "$ac_t""yes" 1>&6 | |
3660 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3661 | cat >> confdefs.h <<EOF | |
3662 | #define $ac_tr_func 1 | |
3663 | EOF | |
3664 | ||
3665 | else | |
3666 | echo "$ac_t""no" 1>&6 | |
3667 | fi | |
3668 | done | |
3669 | ||
3670 | ||
3671 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
3672 | for ac_func in stpcpy | |
3673 | do | |
3674 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1fe1f39c | 3675 | echo "configure:3676: checking for $ac_func" >&5 |
a2d91340 | 3676 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3677 | echo $ac_n "(cached) $ac_c" 1>&6 |
3678 | else | |
3679 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3680 | #line 3681 "configure" |
252b5132 RH |
3681 | #include "confdefs.h" |
3682 | /* System header to define __stub macros and hopefully few prototypes, | |
3683 | which can conflict with char $ac_func(); below. */ | |
3684 | #include <assert.h> | |
3685 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3686 | /* We use char because int might match the return type of a gcc2 | |
3687 | builtin and then its argument prototype would still apply. */ | |
3688 | char $ac_func(); | |
3689 | ||
3690 | int main() { | |
3691 | ||
3692 | /* The GNU C library defines this for functions which it implements | |
3693 | to always fail with ENOSYS. Some functions are actually named | |
3694 | something starting with __ and the normal name is an alias. */ | |
3695 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3696 | choke me | |
3697 | #else | |
a2d91340 | 3698 | $ac_func(); |
252b5132 RH |
3699 | #endif |
3700 | ||
3701 | ; return 0; } | |
3702 | EOF | |
1fe1f39c | 3703 | if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3704 | rm -rf conftest* |
3705 | eval "ac_cv_func_$ac_func=yes" | |
3706 | else | |
3707 | echo "configure: failed program was:" >&5 | |
3708 | cat conftest.$ac_ext >&5 | |
3709 | rm -rf conftest* | |
3710 | eval "ac_cv_func_$ac_func=no" | |
3711 | fi | |
3712 | rm -f conftest* | |
3713 | fi | |
3714 | ||
3715 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3716 | echo "$ac_t""yes" 1>&6 | |
3717 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3718 | cat >> confdefs.h <<EOF | |
3719 | #define $ac_tr_func 1 | |
3720 | EOF | |
3721 | ||
3722 | else | |
3723 | echo "$ac_t""no" 1>&6 | |
3724 | fi | |
3725 | done | |
3726 | ||
3727 | fi | |
3728 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
3729 | cat >> confdefs.h <<\EOF | |
3730 | #define HAVE_STPCPY 1 | |
3731 | EOF | |
3732 | ||
3733 | fi | |
3734 | ||
3735 | if test $ac_cv_header_locale_h = yes; then | |
3736 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
1fe1f39c | 3737 | echo "configure:3738: checking for LC_MESSAGES" >&5 |
a2d91340 | 3738 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
252b5132 RH |
3739 | echo $ac_n "(cached) $ac_c" 1>&6 |
3740 | else | |
3741 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3742 | #line 3743 "configure" |
252b5132 RH |
3743 | #include "confdefs.h" |
3744 | #include <locale.h> | |
3745 | int main() { | |
3746 | return LC_MESSAGES | |
3747 | ; return 0; } | |
3748 | EOF | |
1fe1f39c | 3749 | if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3750 | rm -rf conftest* |
3751 | am_cv_val_LC_MESSAGES=yes | |
3752 | else | |
3753 | echo "configure: failed program was:" >&5 | |
3754 | cat conftest.$ac_ext >&5 | |
3755 | rm -rf conftest* | |
3756 | am_cv_val_LC_MESSAGES=no | |
3757 | fi | |
3758 | rm -f conftest* | |
3759 | fi | |
3760 | ||
3761 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
3762 | if test $am_cv_val_LC_MESSAGES = yes; then | |
3763 | cat >> confdefs.h <<\EOF | |
3764 | #define HAVE_LC_MESSAGES 1 | |
3765 | EOF | |
3766 | ||
3767 | fi | |
3768 | fi | |
3769 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
1fe1f39c | 3770 | echo "configure:3771: checking whether NLS is requested" >&5 |
252b5132 RH |
3771 | # Check whether --enable-nls or --disable-nls was given. |
3772 | if test "${enable_nls+set}" = set; then | |
3773 | enableval="$enable_nls" | |
3774 | USE_NLS=$enableval | |
3775 | else | |
3776 | USE_NLS=yes | |
3777 | fi | |
3778 | ||
3779 | echo "$ac_t""$USE_NLS" 1>&6 | |
3780 | ||
3781 | ||
3782 | USE_INCLUDED_LIBINTL=no | |
3783 | ||
3784 | if test "$USE_NLS" = "yes"; then | |
3785 | cat >> confdefs.h <<\EOF | |
3786 | #define ENABLE_NLS 1 | |
3787 | EOF | |
3788 | ||
3789 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
1fe1f39c | 3790 | echo "configure:3791: checking whether included gettext is requested" >&5 |
252b5132 RH |
3791 | # Check whether --with-included-gettext or --without-included-gettext was given. |
3792 | if test "${with_included_gettext+set}" = set; then | |
3793 | withval="$with_included_gettext" | |
3794 | nls_cv_force_use_gnu_gettext=$withval | |
3795 | else | |
3796 | nls_cv_force_use_gnu_gettext=no | |
3797 | fi | |
3798 | ||
3799 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
3800 | ||
3801 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
3802 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
3803 | nls_cv_header_intl= | |
3804 | nls_cv_header_libgt= | |
3805 | CATOBJEXT=NONE | |
3806 | ||
3807 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
3808 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
1fe1f39c | 3809 | echo "configure:3810: checking for libintl.h" >&5 |
a2d91340 | 3810 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
3811 | echo $ac_n "(cached) $ac_c" 1>&6 |
3812 | else | |
3813 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3814 | #line 3815 "configure" |
252b5132 RH |
3815 | #include "confdefs.h" |
3816 | #include <libintl.h> | |
3817 | EOF | |
3818 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1fe1f39c | 3819 | { (eval echo configure:3820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3820 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3821 | if test -z "$ac_err"; then | |
3822 | rm -rf conftest* | |
3823 | eval "ac_cv_header_$ac_safe=yes" | |
3824 | else | |
3825 | echo "$ac_err" >&5 | |
3826 | echo "configure: failed program was:" >&5 | |
3827 | cat conftest.$ac_ext >&5 | |
3828 | rm -rf conftest* | |
3829 | eval "ac_cv_header_$ac_safe=no" | |
3830 | fi | |
3831 | rm -f conftest* | |
3832 | fi | |
3833 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3834 | echo "$ac_t""yes" 1>&6 | |
3835 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
1fe1f39c | 3836 | echo "configure:3837: checking for gettext in libc" >&5 |
a2d91340 | 3837 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
252b5132 RH |
3838 | echo $ac_n "(cached) $ac_c" 1>&6 |
3839 | else | |
3840 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3841 | #line 3842 "configure" |
252b5132 RH |
3842 | #include "confdefs.h" |
3843 | #include <libintl.h> | |
3844 | int main() { | |
3845 | return (int) gettext ("") | |
3846 | ; return 0; } | |
3847 | EOF | |
1fe1f39c | 3848 | if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3849 | rm -rf conftest* |
3850 | gt_cv_func_gettext_libc=yes | |
3851 | else | |
3852 | echo "configure: failed program was:" >&5 | |
3853 | cat conftest.$ac_ext >&5 | |
3854 | rm -rf conftest* | |
3855 | gt_cv_func_gettext_libc=no | |
3856 | fi | |
3857 | rm -f conftest* | |
3858 | fi | |
3859 | ||
3860 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
3861 | ||
3862 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
3863 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
1fe1f39c | 3864 | echo "configure:3865: checking for bindtextdomain in -lintl" >&5 |
a2d91340 AC |
3865 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
3866 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
252b5132 RH |
3867 | echo $ac_n "(cached) $ac_c" 1>&6 |
3868 | else | |
3869 | ac_save_LIBS="$LIBS" | |
3870 | LIBS="-lintl $LIBS" | |
3871 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3872 | #line 3873 "configure" |
252b5132 RH |
3873 | #include "confdefs.h" |
3874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3875 | /* We use char because int might match the return type of a gcc2 | |
3876 | builtin and then its argument prototype would still apply. */ | |
3877 | char bindtextdomain(); | |
3878 | ||
3879 | int main() { | |
3880 | bindtextdomain() | |
3881 | ; return 0; } | |
3882 | EOF | |
1fe1f39c | 3883 | if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3884 | rm -rf conftest* |
3885 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3886 | else | |
3887 | echo "configure: failed program was:" >&5 | |
3888 | cat conftest.$ac_ext >&5 | |
3889 | rm -rf conftest* | |
3890 | eval "ac_cv_lib_$ac_lib_var=no" | |
3891 | fi | |
3892 | rm -f conftest* | |
3893 | LIBS="$ac_save_LIBS" | |
3894 | ||
3895 | fi | |
3896 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3897 | echo "$ac_t""yes" 1>&6 | |
3898 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
1fe1f39c | 3899 | echo "configure:3900: checking for gettext in libintl" >&5 |
a2d91340 | 3900 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
252b5132 RH |
3901 | echo $ac_n "(cached) $ac_c" 1>&6 |
3902 | else | |
3903 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3904 | #line 3905 "configure" |
252b5132 RH |
3905 | #include "confdefs.h" |
3906 | ||
3907 | int main() { | |
3908 | return (int) gettext ("") | |
3909 | ; return 0; } | |
3910 | EOF | |
1fe1f39c | 3911 | if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3912 | rm -rf conftest* |
3913 | gt_cv_func_gettext_libintl=yes | |
3914 | else | |
3915 | echo "configure: failed program was:" >&5 | |
3916 | cat conftest.$ac_ext >&5 | |
3917 | rm -rf conftest* | |
3918 | gt_cv_func_gettext_libintl=no | |
3919 | fi | |
3920 | rm -f conftest* | |
3921 | fi | |
3922 | ||
3923 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
3924 | else | |
3925 | echo "$ac_t""no" 1>&6 | |
3926 | fi | |
3927 | ||
3928 | fi | |
3929 | ||
3930 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
3931 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
3932 | cat >> confdefs.h <<\EOF | |
3933 | #define HAVE_GETTEXT 1 | |
3934 | EOF | |
3935 | ||
3936 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3937 | set dummy msgfmt; ac_word=$2 | |
3938 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 3939 | echo "configure:3940: checking for $ac_word" >&5 |
a2d91340 | 3940 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
252b5132 RH |
3941 | echo $ac_n "(cached) $ac_c" 1>&6 |
3942 | else | |
3943 | case "$MSGFMT" in | |
3944 | /*) | |
3945 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3946 | ;; | |
3947 | *) | |
3948 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3949 | for ac_dir in $PATH; do | |
3950 | test -z "$ac_dir" && ac_dir=. | |
3951 | if test -f $ac_dir/$ac_word; then | |
3952 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
3953 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
3954 | break | |
3955 | fi | |
3956 | fi | |
3957 | done | |
3958 | IFS="$ac_save_ifs" | |
3959 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
3960 | ;; | |
3961 | esac | |
3962 | fi | |
3963 | MSGFMT="$ac_cv_path_MSGFMT" | |
3964 | if test -n "$MSGFMT"; then | |
3965 | echo "$ac_t""$MSGFMT" 1>&6 | |
3966 | else | |
3967 | echo "$ac_t""no" 1>&6 | |
3968 | fi | |
3969 | if test "$MSGFMT" != "no"; then | |
3970 | for ac_func in dcgettext | |
3971 | do | |
3972 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1fe1f39c | 3973 | echo "configure:3974: checking for $ac_func" >&5 |
a2d91340 | 3974 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3975 | echo $ac_n "(cached) $ac_c" 1>&6 |
3976 | else | |
3977 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 3978 | #line 3979 "configure" |
252b5132 RH |
3979 | #include "confdefs.h" |
3980 | /* System header to define __stub macros and hopefully few prototypes, | |
3981 | which can conflict with char $ac_func(); below. */ | |
3982 | #include <assert.h> | |
3983 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3984 | /* We use char because int might match the return type of a gcc2 | |
3985 | builtin and then its argument prototype would still apply. */ | |
3986 | char $ac_func(); | |
3987 | ||
3988 | int main() { | |
3989 | ||
3990 | /* The GNU C library defines this for functions which it implements | |
3991 | to always fail with ENOSYS. Some functions are actually named | |
3992 | something starting with __ and the normal name is an alias. */ | |
3993 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3994 | choke me | |
3995 | #else | |
a2d91340 | 3996 | $ac_func(); |
252b5132 RH |
3997 | #endif |
3998 | ||
3999 | ; return 0; } | |
4000 | EOF | |
1fe1f39c | 4001 | if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
4002 | rm -rf conftest* |
4003 | eval "ac_cv_func_$ac_func=yes" | |
4004 | else | |
4005 | echo "configure: failed program was:" >&5 | |
4006 | cat conftest.$ac_ext >&5 | |
4007 | rm -rf conftest* | |
4008 | eval "ac_cv_func_$ac_func=no" | |
4009 | fi | |
4010 | rm -f conftest* | |
4011 | fi | |
4012 | ||
4013 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4014 | echo "$ac_t""yes" 1>&6 | |
4015 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4016 | cat >> confdefs.h <<EOF | |
4017 | #define $ac_tr_func 1 | |
4018 | EOF | |
4019 | ||
4020 | else | |
4021 | echo "$ac_t""no" 1>&6 | |
4022 | fi | |
4023 | done | |
4024 | ||
4025 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
4026 | set dummy gmsgfmt; ac_word=$2 | |
4027 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 4028 | echo "configure:4029: checking for $ac_word" >&5 |
a2d91340 | 4029 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
252b5132 RH |
4030 | echo $ac_n "(cached) $ac_c" 1>&6 |
4031 | else | |
4032 | case "$GMSGFMT" in | |
4033 | /*) | |
4034 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
4035 | ;; | |
4036 | ?:/*) | |
4037 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
4038 | ;; | |
4039 | *) | |
4040 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4041 | ac_dummy="$PATH" | |
4042 | for ac_dir in $ac_dummy; do | |
4043 | test -z "$ac_dir" && ac_dir=. | |
4044 | if test -f $ac_dir/$ac_word; then | |
4045 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
4046 | break | |
4047 | fi | |
4048 | done | |
4049 | IFS="$ac_save_ifs" | |
4050 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
4051 | ;; | |
4052 | esac | |
4053 | fi | |
4054 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
4055 | if test -n "$GMSGFMT"; then | |
4056 | echo "$ac_t""$GMSGFMT" 1>&6 | |
4057 | else | |
4058 | echo "$ac_t""no" 1>&6 | |
4059 | fi | |
4060 | ||
4061 | # Extract the first word of "xgettext", so it can be a program name with args. | |
4062 | set dummy xgettext; ac_word=$2 | |
4063 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 4064 | echo "configure:4065: checking for $ac_word" >&5 |
a2d91340 | 4065 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
252b5132 RH |
4066 | echo $ac_n "(cached) $ac_c" 1>&6 |
4067 | else | |
4068 | case "$XGETTEXT" in | |
4069 | /*) | |
4070 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
4071 | ;; | |
4072 | *) | |
4073 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4074 | for ac_dir in $PATH; do | |
4075 | test -z "$ac_dir" && ac_dir=. | |
4076 | if test -f $ac_dir/$ac_word; then | |
4077 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
4078 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
4079 | break | |
4080 | fi | |
4081 | fi | |
4082 | done | |
4083 | IFS="$ac_save_ifs" | |
4084 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4085 | ;; | |
4086 | esac | |
4087 | fi | |
4088 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
4089 | if test -n "$XGETTEXT"; then | |
4090 | echo "$ac_t""$XGETTEXT" 1>&6 | |
4091 | else | |
4092 | echo "$ac_t""no" 1>&6 | |
4093 | fi | |
4094 | ||
4095 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 4096 | #line 4097 "configure" |
252b5132 RH |
4097 | #include "confdefs.h" |
4098 | ||
4099 | int main() { | |
4100 | extern int _nl_msg_cat_cntr; | |
4101 | return _nl_msg_cat_cntr | |
4102 | ; return 0; } | |
4103 | EOF | |
1fe1f39c | 4104 | if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
4105 | rm -rf conftest* |
4106 | CATOBJEXT=.gmo | |
4107 | DATADIRNAME=share | |
4108 | else | |
4109 | echo "configure: failed program was:" >&5 | |
4110 | cat conftest.$ac_ext >&5 | |
4111 | rm -rf conftest* | |
4112 | CATOBJEXT=.mo | |
4113 | DATADIRNAME=lib | |
4114 | fi | |
4115 | rm -f conftest* | |
4116 | INSTOBJEXT=.mo | |
4117 | fi | |
4118 | fi | |
4119 | ||
4120 | else | |
4121 | echo "$ac_t""no" 1>&6 | |
4122 | fi | |
4123 | ||
4124 | ||
4125 | ||
4126 | if test "$CATOBJEXT" = "NONE"; then | |
4127 | nls_cv_use_gnu_gettext=yes | |
4128 | fi | |
4129 | fi | |
4130 | ||
4131 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
4132 | INTLOBJS="\$(GETTOBJS)" | |
4133 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
4134 | set dummy msgfmt; ac_word=$2 | |
4135 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 4136 | echo "configure:4137: checking for $ac_word" >&5 |
a2d91340 | 4137 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
252b5132 RH |
4138 | echo $ac_n "(cached) $ac_c" 1>&6 |
4139 | else | |
4140 | case "$MSGFMT" in | |
4141 | /*) | |
4142 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
4143 | ;; | |
4144 | *) | |
4145 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4146 | for ac_dir in $PATH; do | |
4147 | test -z "$ac_dir" && ac_dir=. | |
4148 | if test -f $ac_dir/$ac_word; then | |
4149 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
4150 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
4151 | break | |
4152 | fi | |
4153 | fi | |
4154 | done | |
4155 | IFS="$ac_save_ifs" | |
4156 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
4157 | ;; | |
4158 | esac | |
4159 | fi | |
4160 | MSGFMT="$ac_cv_path_MSGFMT" | |
4161 | if test -n "$MSGFMT"; then | |
4162 | echo "$ac_t""$MSGFMT" 1>&6 | |
4163 | else | |
4164 | echo "$ac_t""no" 1>&6 | |
4165 | fi | |
4166 | ||
4167 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
4168 | set dummy gmsgfmt; ac_word=$2 | |
4169 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 4170 | echo "configure:4171: checking for $ac_word" >&5 |
a2d91340 | 4171 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
252b5132 RH |
4172 | echo $ac_n "(cached) $ac_c" 1>&6 |
4173 | else | |
4174 | case "$GMSGFMT" in | |
4175 | /*) | |
4176 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
4177 | ;; | |
4178 | ?:/*) | |
4179 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
4180 | ;; | |
4181 | *) | |
4182 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4183 | ac_dummy="$PATH" | |
4184 | for ac_dir in $ac_dummy; do | |
4185 | test -z "$ac_dir" && ac_dir=. | |
4186 | if test -f $ac_dir/$ac_word; then | |
4187 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
4188 | break | |
4189 | fi | |
4190 | done | |
4191 | IFS="$ac_save_ifs" | |
4192 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
4193 | ;; | |
4194 | esac | |
4195 | fi | |
4196 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
4197 | if test -n "$GMSGFMT"; then | |
4198 | echo "$ac_t""$GMSGFMT" 1>&6 | |
4199 | else | |
4200 | echo "$ac_t""no" 1>&6 | |
4201 | fi | |
4202 | ||
4203 | # Extract the first word of "xgettext", so it can be a program name with args. | |
4204 | set dummy xgettext; ac_word=$2 | |
4205 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1fe1f39c | 4206 | echo "configure:4207: checking for $ac_word" >&5 |
a2d91340 | 4207 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
252b5132 RH |
4208 | echo $ac_n "(cached) $ac_c" 1>&6 |
4209 | else | |
4210 | case "$XGETTEXT" in | |
4211 | /*) | |
4212 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
4213 | ;; | |
4214 | *) | |
4215 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4216 | for ac_dir in $PATH; do | |
4217 | test -z "$ac_dir" && ac_dir=. | |
4218 | if test -f $ac_dir/$ac_word; then | |
4219 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
4220 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
4221 | break | |
4222 | fi | |
4223 | fi | |
4224 | done | |
4225 | IFS="$ac_save_ifs" | |
4226 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4227 | ;; | |
4228 | esac | |
4229 | fi | |
4230 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
4231 | if test -n "$XGETTEXT"; then | |
4232 | echo "$ac_t""$XGETTEXT" 1>&6 | |
4233 | else | |
4234 | echo "$ac_t""no" 1>&6 | |
4235 | fi | |
4236 | ||
4237 | ||
4238 | USE_INCLUDED_LIBINTL=yes | |
4239 | CATOBJEXT=.gmo | |
4240 | INSTOBJEXT=.mo | |
4241 | DATADIRNAME=share | |
4242 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
4243 | INTLLIBS=$INTLDEPS | |
4244 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
4245 | nls_cv_header_intl=libintl.h | |
4246 | nls_cv_header_libgt=libgettext.h | |
4247 | fi | |
4248 | ||
4249 | if test "$XGETTEXT" != ":"; then | |
4250 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
4251 | : ; | |
4252 | else | |
4253 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 | |
4254 | XGETTEXT=":" | |
4255 | fi | |
4256 | fi | |
4257 | ||
4258 | # We need to process the po/ directory. | |
4259 | POSUB=po | |
4260 | else | |
4261 | DATADIRNAME=share | |
4262 | nls_cv_header_intl=libintl.h | |
4263 | nls_cv_header_libgt=libgettext.h | |
4264 | fi | |
4265 | ||
4266 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
4267 | # because some of the sources are only built for this goal. | |
4268 | if test "$PACKAGE" = gettext; then | |
4269 | USE_NLS=yes | |
4270 | USE_INCLUDED_LIBINTL=yes | |
4271 | fi | |
4272 | ||
4273 | for lang in $ALL_LINGUAS; do | |
4274 | GMOFILES="$GMOFILES $lang.gmo" | |
4275 | POFILES="$POFILES $lang.po" | |
4276 | done | |
4277 | ||
4278 | ||
4279 | ||
4280 | ||
4281 | ||
4282 | ||
4283 | ||
4284 | ||
4285 | ||
4286 | ||
4287 | ||
4288 | ||
4289 | ||
4290 | ||
4291 | if test "x$CATOBJEXT" != "x"; then | |
4292 | if test "x$ALL_LINGUAS" = "x"; then | |
4293 | LINGUAS= | |
4294 | else | |
4295 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
1fe1f39c | 4296 | echo "configure:4297: checking for catalogs to be installed" >&5 |
252b5132 RH |
4297 | NEW_LINGUAS= |
4298 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
4299 | case "$ALL_LINGUAS" in | |
4300 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
4301 | esac | |
4302 | done | |
4303 | LINGUAS=$NEW_LINGUAS | |
4304 | echo "$ac_t""$LINGUAS" 1>&6 | |
4305 | fi | |
4306 | ||
4307 | if test -n "$LINGUAS"; then | |
4308 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
4309 | fi | |
4310 | fi | |
4311 | ||
4312 | if test $ac_cv_header_locale_h = yes; then | |
4313 | INCLUDE_LOCALE_H="#include <locale.h>" | |
4314 | else | |
4315 | INCLUDE_LOCALE_H="\ | |
4316 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
4317 | fi | |
4318 | ||
4319 | ||
4320 | if test -f $srcdir/po2tbl.sed.in; then | |
4321 | if test "$CATOBJEXT" = ".cat"; then | |
4322 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
4323 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
1fe1f39c | 4324 | echo "configure:4325: checking for linux/version.h" >&5 |
a2d91340 | 4325 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
4326 | echo $ac_n "(cached) $ac_c" 1>&6 |
4327 | else | |
4328 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 4329 | #line 4330 "configure" |
252b5132 RH |
4330 | #include "confdefs.h" |
4331 | #include <linux/version.h> | |
4332 | EOF | |
4333 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1fe1f39c | 4334 | { (eval echo configure:4335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
4335 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4336 | if test -z "$ac_err"; then | |
4337 | rm -rf conftest* | |
4338 | eval "ac_cv_header_$ac_safe=yes" | |
4339 | else | |
4340 | echo "$ac_err" >&5 | |
4341 | echo "configure: failed program was:" >&5 | |
4342 | cat conftest.$ac_ext >&5 | |
4343 | rm -rf conftest* | |
4344 | eval "ac_cv_header_$ac_safe=no" | |
4345 | fi | |
4346 | rm -f conftest* | |
4347 | fi | |
4348 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4349 | echo "$ac_t""yes" 1>&6 | |
4350 | msgformat=linux | |
4351 | else | |
4352 | echo "$ac_t""no" 1>&6 | |
4353 | msgformat=xopen | |
4354 | fi | |
4355 | ||
4356 | ||
4357 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
4358 | fi | |
4359 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
4360 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
4361 | fi | |
4362 | ||
4363 | if test "$PACKAGE" = "gettext"; then | |
4364 | GT_NO="#NO#" | |
4365 | GT_YES= | |
4366 | else | |
4367 | GT_NO= | |
4368 | GT_YES="#YES#" | |
4369 | fi | |
4370 | ||
4371 | ||
4372 | ||
4373 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
4374 | ||
4375 | ||
4376 | l= | |
4377 | ||
4378 | ||
fcd8210c | 4379 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
4380 | test -d po || mkdir po |
4381 | if test "x$srcdir" != "x."; then | |
4382 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
4383 | posrcprefix="$srcdir/" | |
4384 | else | |
4385 | posrcprefix="../$srcdir/" | |
4386 | fi | |
4387 | else | |
4388 | posrcprefix="../" | |
4389 | fi | |
4390 | rm -f po/POTFILES | |
4391 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
4392 | < $srcdir/po/POTFILES.in > po/POTFILES | |
4393 | fi | |
4394 | ||
4395 | ||
4396 | . ${srcdir}/../bfd/configure.host | |
4397 | ||
b6849f55 NC |
4398 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
4399 | if test -z "$CC_FOR_BUILD"; then | |
4400 | if test "x$cross_compiling" = "xno"; then | |
4401 | CC_FOR_BUILD='$(CC)' | |
4402 | else | |
4403 | CC_FOR_BUILD=gcc | |
4404 | fi | |
4405 | fi | |
4406 | ||
4407 | # Also set EXEEXT_FOR_BUILD. | |
4408 | if test "x$cross_compiling" = "xno"; then | |
4409 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
4410 | else | |
4411 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 | |
1fe1f39c | 4412 | echo "configure:4413: checking for build system executable suffix" >&5 |
b6849f55 NC |
4413 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then |
4414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4415 | else | |
4416 | rm -f conftest* | |
4417 | echo 'int main () { return 0; }' > conftest.c | |
4418 | bfd_cv_build_exeext= | |
4419 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
4420 | for file in conftest.*; do | |
4421 | case $file in | |
4422 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
4423 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
4424 | esac | |
4425 | done | |
4426 | rm -f conftest* | |
4427 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
4428 | fi | |
4429 | ||
4430 | echo "$ac_t""$bfd_cv_build_exeext" 1>&6 | |
4431 | EXEEXT_FOR_BUILD="" | |
4432 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
4433 | fi | |
4434 | ||
4435 | ||
252b5132 RH |
4436 | |
4437 | # Find a good install program. We prefer a C program (faster), | |
4438 | # so one script is as good as another. But avoid the broken or | |
4439 | # incompatible versions: | |
4440 | # SysV /etc/install, /usr/sbin/install | |
4441 | # SunOS /usr/etc/install | |
4442 | # IRIX /sbin/install | |
4443 | # AIX /bin/install | |
4444 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4445 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4446 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4447 | # ./install, which can be erroneously created by make from ./install.sh. | |
4448 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
1fe1f39c | 4449 | echo "configure:4450: checking for a BSD compatible install" >&5 |
252b5132 | 4450 | if test -z "$INSTALL"; then |
a2d91340 | 4451 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
252b5132 RH |
4452 | echo $ac_n "(cached) $ac_c" 1>&6 |
4453 | else | |
4454 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
4455 | for ac_dir in $PATH; do | |
4456 | # Account for people who put trailing slashes in PATH elements. | |
4457 | case "$ac_dir/" in | |
4458 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
4459 | *) | |
4460 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4461 | # Don't use installbsd from OSF since it installs stuff as root | |
4462 | # by default. | |
4463 | for ac_prog in ginstall scoinst install; do | |
4464 | if test -f $ac_dir/$ac_prog; then | |
4465 | if test $ac_prog = install && | |
4466 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
4467 | # AIX install. It has an incompatible calling convention. | |
4468 | : | |
4469 | else | |
4470 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
4471 | break 2 | |
4472 | fi | |
4473 | fi | |
4474 | done | |
4475 | ;; | |
4476 | esac | |
4477 | done | |
4478 | IFS="$ac_save_IFS" | |
4479 | ||
4480 | fi | |
4481 | if test "${ac_cv_path_install+set}" = set; then | |
4482 | INSTALL="$ac_cv_path_install" | |
4483 | else | |
4484 | # As a last resort, use the slow shell script. We don't cache a | |
4485 | # path for INSTALL within a source directory, because that will | |
4486 | # break other packages using the cache if that directory is | |
4487 | # removed, or if the path is relative. | |
4488 | INSTALL="$ac_install_sh" | |
4489 | fi | |
4490 | fi | |
4491 | echo "$ac_t""$INSTALL" 1>&6 | |
4492 | ||
4493 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4494 | # It thinks the first close brace ends the variable substitution. | |
4495 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4496 | ||
a2d91340 | 4497 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
252b5132 RH |
4498 | |
4499 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4500 | ||
4501 | ||
4502 | for ac_hdr in string.h strings.h stdlib.h | |
4503 | do | |
4504 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
4505 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1fe1f39c | 4506 | echo "configure:4507: checking for $ac_hdr" >&5 |
a2d91340 | 4507 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
4508 | echo $ac_n "(cached) $ac_c" 1>&6 |
4509 | else | |
4510 | cat > conftest.$ac_ext <<EOF | |
1fe1f39c | 4511 | #line 4512 "configure" |
252b5132 RH |
4512 | #include "confdefs.h" |
4513 | #include <$ac_hdr> | |
4514 | EOF | |
4515 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1fe1f39c | 4516 | { (eval echo configure:4517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
4517 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4518 | if test -z "$ac_err"; then | |
4519 | rm -rf conftest* | |
4520 | eval "ac_cv_header_$ac_safe=yes" | |
4521 | else | |
4522 | echo "$ac_err" >&5 | |
4523 | echo "configure: failed program was:" >&5 | |
4524 | cat conftest.$ac_ext >&5 | |
4525 | rm -rf conftest* | |
4526 | eval "ac_cv_header_$ac_safe=no" | |
4527 | fi | |
4528 | rm -f conftest* | |
4529 | fi | |
4530 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4531 | echo "$ac_t""yes" 1>&6 | |
4532 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4533 | cat >> confdefs.h <<EOF | |
4534 | #define $ac_tr_hdr 1 | |
4535 | EOF | |
4536 | ||
4537 | else | |
4538 | echo "$ac_t""no" 1>&6 | |
4539 | fi | |
4540 | done | |
4541 | ||
4542 | ||
6e31aea3 BE |
4543 | cgen_maint=no |
4544 | cgendir='$(srcdir)/../cgen' | |
4545 | ||
4546 | # Check whether --enable-cgen-maint or --disable-cgen-maint was given. | |
4547 | if test "${enable_cgen_maint+set}" = set; then | |
4548 | enableval="$enable_cgen_maint" | |
4549 | case "${enableval}" in | |
4550 | yes) cgen_maint=yes ;; | |
4551 | no) cgen_maint=no ;; | |
4552 | *) | |
4553 | # argument is cgen install directory (not implemented yet). | |
4554 | # Having a `share' directory might be more appropriate for the .scm, | |
4555 | # .cpu, etc. files. | |
4556 | cgen_maint=yes | |
4557 | cgendir=${cgen_maint}/lib/cgen | |
4558 | ;; | |
4559 | esac | |
4560 | fi | |
4561 | ||
4562 | ||
4563 | if test x${cgen_maint} = xyes; then | |
4564 | CGEN_MAINT_TRUE= | |
4565 | CGEN_MAINT_FALSE='#' | |
4566 | else | |
4567 | CGEN_MAINT_TRUE='#' | |
4568 | CGEN_MAINT_FALSE= | |
4569 | fi | |
4570 | ||
252b5132 RH |
4571 | |
4572 | using_cgen=no | |
4573 | ||
4574 | # Horrible hacks to build DLLs on Windows. | |
4575 | WIN32LDFLAGS= | |
4576 | WIN32LIBADD= | |
4577 | case "${host}" in | |
4578 | *-*-cygwin*) | |
4579 | if test "$enable_shared" = "yes"; then | |
4580 | WIN32LDFLAGS="-no-undefined" | |
4581 | WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" | |
4582 | fi | |
4583 | ;; | |
4584 | esac | |
4585 | ||
4586 | ||
4587 | ||
4588 | # target-specific stuff: | |
4589 | ||
4590 | # Canonicalize the secondary target names. | |
4591 | if test -n "$enable_targets" ; then | |
4592 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
4593 | do | |
6d83c84b | 4594 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
4595 | if test -n "$result" ; then |
4596 | canon_targets="$canon_targets $result" | |
4597 | else | |
4598 | # Allow targets that config.sub doesn't recognize, like "all". | |
4599 | canon_targets="$canon_targets $targ" | |
4600 | fi | |
4601 | done | |
4602 | fi | |
4603 | ||
4604 | all_targets=false | |
4605 | selarchs= | |
4606 | for targ in $target $canon_targets | |
4607 | do | |
4608 | if test "x$targ" = "xall" ; then | |
4609 | all_targets=true | |
4610 | else | |
4611 | . $srcdir/../bfd/config.bfd | |
4612 | selarchs="$selarchs $targ_archs" | |
4613 | fi | |
4614 | done | |
4615 | ||
4616 | # Utility var, documents generic cgen support files. | |
4617 | ||
4618 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo" | |
4619 | ||
4620 | # We don't do any links based on the target system, just makefile config. | |
4621 | ||
4622 | if test x${all_targets} = xfalse ; then | |
4623 | ||
4624 | # Target architecture .o files. | |
4625 | ta= | |
4626 | ||
4627 | for arch in $selarchs | |
4628 | do | |
4629 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` | |
4630 | archdefs="$archdefs -DARCH_$ad" | |
4631 | case "$arch" in | |
4632 | bfd_a29k_arch) ta="$ta a29k-dis.lo" ;; | |
4633 | bfd_alliant_arch) ;; | |
4634 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; | |
0d2bcfaf | 4635 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; |
252b5132 | 4636 | bfd_arm_arch) ta="$ta arm-dis.lo" ;; |
adde6300 | 4637 | bfd_avr_arch) ta="$ta avr-dis.lo" ;; |
252b5132 | 4638 | bfd_convex_arch) ;; |
6c95a37f | 4639 | bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;; |
1fe1f39c | 4640 | bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; |
252b5132 RH |
4641 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; |
4642 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; | |
d172d4ba | 4643 | bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; |
252b5132 RH |
4644 | bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; |
4645 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; | |
4646 | bfd_h8500_arch) ta="$ta h8500-dis.lo" ;; | |
4647 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; | |
5b93d8bb | 4648 | bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;; |
252b5132 | 4649 | bfd_i386_arch) ta="$ta i386-dis.lo" ;; |
9d751335 | 4650 | bfd_i860_arch) ta="$ta i860-dis.lo" ;; |
252b5132 | 4651 | bfd_i960_arch) ta="$ta i960-dis.lo" ;; |
800eeca4 | 4652 | bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; |
a40cbfa3 | 4653 | bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; |
47b1a55a | 4654 | bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; |
252b5132 | 4655 | bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; |
60bcf0fa NC |
4656 | bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
4657 | bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; | |
252b5132 RH |
4658 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; |
4659 | bfd_m88k_arch) ta="$ta m88k-dis.lo" ;; | |
4660 | bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; | |
4661 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;; | |
3c3bdf30 | 4662 | bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; |
252b5132 RH |
4663 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; |
4664 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; | |
2469cfa2 | 4665 | bfd_msp430_arch) ta="$ta msp430-dis.lo" ;; |
252b5132 | 4666 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; |
87e6d782 | 4667 | bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;; |
3b16e843 | 4668 | bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;; |
e135f41b | 4669 | bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; |
1e608f98 | 4670 | bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; |
252b5132 | 4671 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
a85d7ed0 | 4672 | bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
5dd0794d | 4673 | bfd_pyramid_arch) ;; |
252b5132 RH |
4674 | bfd_romp_arch) ;; |
4675 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; | |
a85d7ed0 | 4676 | bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; |
09919455 | 4677 | bfd_sh_arch) |
d28847ce | 4678 | # We can't decide what we want just from the CPU family. |
e8b872bb AO |
4679 | # We want SH5 support unless a specific version of sh is |
4680 | # specified, as in sh3-elf, sh3b-linux-gnu, etc. | |
ca0f2ed6 HPN |
4681 | # Include it just for ELF targets, since the SH5 bfd:s are ELF only. |
4682 | for t in $target $canon_targets; do | |
4683 | case $t in | |
5b0e55b6 | 4684 | all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \ |
942e7dd9 | 4685 | sh-*-linux* | shl-*-linux*) |
d28847ce | 4686 | ta="$ta sh64-dis.lo sh64-opc.lo" |
ca0f2ed6 HPN |
4687 | archdefs="$archdefs -DINCLUDE_SHMEDIA" |
4688 | break;; | |
4689 | esac; | |
4690 | done | |
09919455 | 4691 | ta="$ta sh-dis.lo" ;; |
252b5132 RH |
4692 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; |
4693 | bfd_tahoe_arch) ;; | |
4694 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; | |
026df7c5 | 4695 | bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; |
5c84d377 | 4696 | bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; |
252b5132 RH |
4697 | bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;; |
4698 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
4699 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
4700 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
4701 | bfd_vax_arch) ta="$ta vax-dis.lo" ;; | |
4702 | bfd_w65_arch) ta="$ta w65-dis.lo" ;; | |
4703 | bfd_we32k_arch) ;; | |
93fbbb04 | 4704 | bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; |
e0001a05 | 4705 | bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; |
252b5132 | 4706 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; |
fd3c93d5 | 4707 | bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; |
252b5132 RH |
4708 | |
4709 | "") ;; | |
4710 | *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;; | |
4711 | esac | |
4712 | done | |
4713 | ||
4714 | if test $using_cgen = yes ; then | |
4715 | ta="$ta $cgen_files" | |
4716 | fi | |
4717 | ||
4718 | # Weed out duplicate .o files. | |
4719 | f="" | |
4720 | for i in $ta ; do | |
4721 | case " $f " in | |
4722 | *" $i "*) ;; | |
4723 | *) f="$f $i" ;; | |
4724 | esac | |
4725 | done | |
4726 | ta="$f" | |
4727 | ||
4728 | # And duplicate -D flags. | |
4729 | f="" | |
4730 | for i in $archdefs ; do | |
4731 | case " $f " in | |
4732 | *" $i "*) ;; | |
4733 | *) f="$f $i" ;; | |
4734 | esac | |
4735 | done | |
4736 | archdefs="$f" | |
4737 | ||
4738 | BFD_MACHINES="$ta" | |
4739 | ||
4740 | else # all_targets is true | |
4741 | archdefs=-DARCH_all | |
4742 | BFD_MACHINES='$(ALL_MACHINES)' | |
4743 | fi | |
4744 | ||
4745 | ||
4746 | ||
4747 | ||
4748 | trap '' 1 2 15 | |
4749 | cat > confcache <<\EOF | |
4750 | # This file is a shell script that caches the results of configure | |
4751 | # tests run on this system so they can be shared between configure | |
4752 | # scripts and configure runs. It is not useful on other systems. | |
4753 | # If it contains results you don't want to keep, you may remove or edit it. | |
4754 | # | |
4755 | # By default, configure uses ./config.cache as the cache file, | |
4756 | # creating it if it does not exist already. You can give configure | |
4757 | # the --cache-file=FILE option to use a different cache file; that is | |
4758 | # what configure does when it calls configure scripts in | |
4759 | # subdirectories, so they share the cache. | |
4760 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
4761 | # config.status only pays attention to the cache file if you give it the | |
4762 | # --recheck option to rerun configure. | |
4763 | # | |
4764 | EOF | |
4765 | # The following way of writing the cache mishandles newlines in values, | |
4766 | # but we know of no workaround that is simple, portable, and efficient. | |
4767 | # So, don't put newlines in cache variables' values. | |
4768 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4769 | # and sets the high bit in the cache file unless we assign to the vars. | |
4770 | (set) 2>&1 | | |
4771 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4772 | *ac_space=\ *) | |
4773 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
4774 | # turns \\\\ into \\, and sed turns \\ into \). | |
4775 | sed -n \ | |
4776 | -e "s/'/'\\\\''/g" \ | |
4777 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
4778 | ;; | |
4779 | *) | |
4780 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4781 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
4782 | ;; | |
4783 | esac >> confcache | |
4784 | if cmp -s $cache_file confcache; then | |
4785 | : | |
4786 | else | |
4787 | if test -w $cache_file; then | |
4788 | echo "updating cache $cache_file" | |
4789 | cat confcache > $cache_file | |
4790 | else | |
4791 | echo "not updating unwritable cache $cache_file" | |
4792 | fi | |
4793 | fi | |
4794 | rm -f confcache | |
4795 | ||
4796 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
4797 | ||
4798 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4799 | # Let make expand exec_prefix. | |
4800 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4801 | ||
4802 | # Any assignment to VPATH causes Sun make to only execute | |
4803 | # the first set of double-colon rules, so remove it if not needed. | |
4804 | # If there is a colon in the path, we need to keep it. | |
4805 | if test "x$srcdir" = x.; then | |
4806 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
4807 | fi | |
4808 | ||
4809 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
4810 | ||
4811 | DEFS=-DHAVE_CONFIG_H | |
4812 | ||
4813 | # Without the "./", some shells look in PATH for config.status. | |
4814 | : ${CONFIG_STATUS=./config.status} | |
4815 | ||
4816 | echo creating $CONFIG_STATUS | |
4817 | rm -f $CONFIG_STATUS | |
4818 | cat > $CONFIG_STATUS <<EOF | |
4819 | #! /bin/sh | |
4820 | # Generated automatically by configure. | |
4821 | # Run this file to recreate the current configuration. | |
4822 | # This directory was configured as follows, | |
4823 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
4824 | # | |
4825 | # $0 $ac_configure_args | |
4826 | # | |
4827 | # Compiler output produced by configure, useful for debugging | |
4828 | # configure, is in ./config.log if it exists. | |
4829 | ||
4830 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
4831 | for ac_option | |
4832 | do | |
4833 | case "\$ac_option" in | |
4834 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4835 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
4836 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
4837 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
a2d91340 | 4838 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
252b5132 RH |
4839 | exit 0 ;; |
4840 | -help | --help | --hel | --he | --h) | |
4841 | echo "\$ac_cs_usage"; exit 0 ;; | |
4842 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
4843 | esac | |
4844 | done | |
4845 | ||
4846 | ac_given_srcdir=$srcdir | |
4847 | ac_given_INSTALL="$INSTALL" | |
4848 | ||
4849 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
4850 | EOF | |
4851 | cat >> $CONFIG_STATUS <<EOF | |
4852 | ||
4853 | # Protect against being on the right side of a sed subst in config.status. | |
4854 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
4855 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
4856 | $ac_vpsub | |
4857 | $extrasub | |
4858 | s%@SHELL@%$SHELL%g | |
4859 | s%@CFLAGS@%$CFLAGS%g | |
4860 | s%@CPPFLAGS@%$CPPFLAGS%g | |
4861 | s%@CXXFLAGS@%$CXXFLAGS%g | |
4862 | s%@FFLAGS@%$FFLAGS%g | |
4863 | s%@DEFS@%$DEFS%g | |
4864 | s%@LDFLAGS@%$LDFLAGS%g | |
4865 | s%@LIBS@%$LIBS%g | |
4866 | s%@exec_prefix@%$exec_prefix%g | |
4867 | s%@prefix@%$prefix%g | |
4868 | s%@program_transform_name@%$program_transform_name%g | |
4869 | s%@bindir@%$bindir%g | |
4870 | s%@sbindir@%$sbindir%g | |
4871 | s%@libexecdir@%$libexecdir%g | |
4872 | s%@datadir@%$datadir%g | |
4873 | s%@sysconfdir@%$sysconfdir%g | |
4874 | s%@sharedstatedir@%$sharedstatedir%g | |
4875 | s%@localstatedir@%$localstatedir%g | |
4876 | s%@libdir@%$libdir%g | |
4877 | s%@includedir@%$includedir%g | |
4878 | s%@oldincludedir@%$oldincludedir%g | |
4879 | s%@infodir@%$infodir%g | |
4880 | s%@mandir@%$mandir%g | |
4881 | s%@host@%$host%g | |
4882 | s%@host_alias@%$host_alias%g | |
4883 | s%@host_cpu@%$host_cpu%g | |
4884 | s%@host_vendor@%$host_vendor%g | |
4885 | s%@host_os@%$host_os%g | |
4886 | s%@target@%$target%g | |
4887 | s%@target_alias@%$target_alias%g | |
4888 | s%@target_cpu@%$target_cpu%g | |
4889 | s%@target_vendor@%$target_vendor%g | |
4890 | s%@target_os@%$target_os%g | |
4891 | s%@build@%$build%g | |
4892 | s%@build_alias@%$build_alias%g | |
4893 | s%@build_cpu@%$build_cpu%g | |
4894 | s%@build_vendor@%$build_vendor%g | |
4895 | s%@build_os@%$build_os%g | |
252b5132 RH |
4896 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
4897 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
4898 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
4899 | s%@PACKAGE@%$PACKAGE%g | |
4900 | s%@VERSION@%$VERSION%g | |
4901 | s%@ACLOCAL@%$ACLOCAL%g | |
4902 | s%@AUTOCONF@%$AUTOCONF%g | |
4903 | s%@AUTOMAKE@%$AUTOMAKE%g | |
4904 | s%@AUTOHEADER@%$AUTOHEADER%g | |
4905 | s%@MAKEINFO@%$MAKEINFO%g | |
4906 | s%@SET_MAKE@%$SET_MAKE%g | |
4907 | s%@AR@%$AR%g | |
4908 | s%@RANLIB@%$RANLIB%g | |
75798298 | 4909 | s%@CC@%$CC%g |
252b5132 | 4910 | s%@LN_S@%$LN_S%g |
ac48eca1 AO |
4911 | s%@OBJEXT@%$OBJEXT%g |
4912 | s%@EXEEXT@%$EXEEXT%g | |
4913 | s%@STRIP@%$STRIP%g | |
252b5132 | 4914 | s%@LIBTOOL@%$LIBTOOL%g |
a2d91340 | 4915 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g |
252b5132 RH |
4916 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
4917 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
4918 | s%@MAINT@%$MAINT%g | |
81172ff2 AM |
4919 | s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g |
4920 | s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g | |
4921 | s%@bfdlibdir@%$bfdlibdir%g | |
4922 | s%@bfdincludedir@%$bfdincludedir%g | |
252b5132 RH |
4923 | s%@CPP@%$CPP%g |
4924 | s%@ALLOCA@%$ALLOCA%g | |
4925 | s%@USE_NLS@%$USE_NLS%g | |
4926 | s%@MSGFMT@%$MSGFMT%g | |
4927 | s%@GMSGFMT@%$GMSGFMT%g | |
4928 | s%@XGETTEXT@%$XGETTEXT%g | |
4929 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
4930 | s%@CATALOGS@%$CATALOGS%g | |
4931 | s%@CATOBJEXT@%$CATOBJEXT%g | |
4932 | s%@DATADIRNAME@%$DATADIRNAME%g | |
4933 | s%@GMOFILES@%$GMOFILES%g | |
4934 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
4935 | s%@INTLDEPS@%$INTLDEPS%g | |
4936 | s%@INTLLIBS@%$INTLLIBS%g | |
4937 | s%@INTLOBJS@%$INTLOBJS%g | |
4938 | s%@POFILES@%$POFILES%g | |
4939 | s%@POSUB@%$POSUB%g | |
4940 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
4941 | s%@GT_NO@%$GT_NO%g | |
4942 | s%@GT_YES@%$GT_YES%g | |
4943 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
4944 | s%@l@%$l%g | |
b6849f55 NC |
4945 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g |
4946 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g | |
252b5132 | 4947 | s%@HDEFINES@%$HDEFINES%g |
6e31aea3 BE |
4948 | s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g |
4949 | s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g | |
4950 | s%@cgendir@%$cgendir%g | |
252b5132 RH |
4951 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g |
4952 | s%@WIN32LIBADD@%$WIN32LIBADD%g | |
4953 | s%@archdefs@%$archdefs%g | |
4954 | s%@BFD_MACHINES@%$BFD_MACHINES%g | |
4955 | ||
4956 | CEOF | |
4957 | EOF | |
4958 | ||
4959 | cat >> $CONFIG_STATUS <<\EOF | |
4960 | ||
4961 | # Split the substitutions into bite-sized pieces for seds with | |
4962 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
4963 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
4964 | ac_file=1 # Number of current file. | |
4965 | ac_beg=1 # First line for current file. | |
4966 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
4967 | ac_more_lines=: | |
4968 | ac_sed_cmds="" | |
4969 | while $ac_more_lines; do | |
4970 | if test $ac_beg -gt 1; then | |
4971 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
4972 | else | |
4973 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
4974 | fi | |
4975 | if test ! -s conftest.s$ac_file; then | |
4976 | ac_more_lines=false | |
4977 | rm -f conftest.s$ac_file | |
4978 | else | |
4979 | if test -z "$ac_sed_cmds"; then | |
4980 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
4981 | else | |
4982 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
4983 | fi | |
4984 | ac_file=`expr $ac_file + 1` | |
4985 | ac_beg=$ac_end | |
4986 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
4987 | fi | |
4988 | done | |
4989 | if test -z "$ac_sed_cmds"; then | |
4990 | ac_sed_cmds=cat | |
4991 | fi | |
4992 | EOF | |
4993 | ||
4994 | cat >> $CONFIG_STATUS <<EOF | |
4995 | ||
4996 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"} | |
4997 | EOF | |
4998 | cat >> $CONFIG_STATUS <<\EOF | |
4999 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
5000 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5001 | case "$ac_file" in | |
5002 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5003 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5004 | *) ac_file_in="${ac_file}.in" ;; | |
5005 | esac | |
5006 | ||
5007 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
5008 | ||
5009 | # Remove last slash and all that follows it. Not all systems have dirname. | |
5010 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5011 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5012 | # The file is in a subdirectory. | |
5013 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5014 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
5015 | # A "../" for each directory in $ac_dir_suffix. | |
5016 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
5017 | else | |
5018 | ac_dir_suffix= ac_dots= | |
5019 | fi | |
5020 | ||
5021 | case "$ac_given_srcdir" in | |
5022 | .) srcdir=. | |
5023 | if test -z "$ac_dots"; then top_srcdir=. | |
5024 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
5025 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
5026 | *) # Relative path. | |
5027 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
5028 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
5029 | esac | |
5030 | ||
5031 | case "$ac_given_INSTALL" in | |
5032 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
5033 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
5034 | esac | |
5035 | ||
5036 | echo creating "$ac_file" | |
5037 | rm -f "$ac_file" | |
5038 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
5039 | case "$ac_file" in | |
5040 | *Makefile*) ac_comsub="1i\\ | |
5041 | # $configure_input" ;; | |
5042 | *) ac_comsub= ;; | |
5043 | esac | |
5044 | ||
5045 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
5046 | sed -e "$ac_comsub | |
5047 | s%@configure_input@%$configure_input%g | |
5048 | s%@srcdir@%$srcdir%g | |
5049 | s%@top_srcdir@%$top_srcdir%g | |
5050 | s%@INSTALL@%$INSTALL%g | |
5051 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
5052 | fi; done | |
5053 | rm -f conftest.s* | |
5054 | ||
5055 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
5056 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
5057 | # | |
5058 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5059 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
5060 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
5061 | ac_dC='\3' | |
5062 | ac_dD='%g' | |
5063 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
5064 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5065 | ac_uB='\([ ]\)%\1#\2define\3' | |
5066 | ac_uC=' ' | |
5067 | ac_uD='\4%g' | |
5068 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
5069 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5070 | ac_eB='$%\1#\2define\3' | |
5071 | ac_eC=' ' | |
5072 | ac_eD='%g' | |
5073 | ||
5074 | if test "${CONFIG_HEADERS+set}" != set; then | |
5075 | EOF | |
5076 | cat >> $CONFIG_STATUS <<EOF | |
5077 | CONFIG_HEADERS="config.h:config.in" | |
5078 | EOF | |
5079 | cat >> $CONFIG_STATUS <<\EOF | |
5080 | fi | |
5081 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
5082 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5083 | case "$ac_file" in | |
5084 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5085 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5086 | *) ac_file_in="${ac_file}.in" ;; | |
5087 | esac | |
5088 | ||
5089 | echo creating $ac_file | |
5090 | ||
5091 | rm -f conftest.frag conftest.in conftest.out | |
5092 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
5093 | cat $ac_file_inputs > conftest.in | |
5094 | ||
5095 | EOF | |
5096 | ||
5097 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
5098 | # the proper values into config.h.in to produce config.h. And first: | |
5099 | # Protect against being on the right side of a sed subst in config.status. | |
5100 | # Protect against being in an unquoted here document in config.status. | |
5101 | rm -f conftest.vals | |
5102 | cat > conftest.hdr <<\EOF | |
5103 | s/[\\&%]/\\&/g | |
5104 | s%[\\$`]%\\&%g | |
5105 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
5106 | s%ac_d%ac_u%gp | |
5107 | s%ac_u%ac_e%gp | |
5108 | EOF | |
5109 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
5110 | rm -f conftest.hdr | |
5111 | ||
5112 | # This sed command replaces #undef with comments. This is necessary, for | |
5113 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
5114 | # on some systems where configure will not decide to define it. | |
5115 | cat >> conftest.vals <<\EOF | |
5116 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
5117 | EOF | |
5118 | ||
5119 | # Break up conftest.vals because some shells have a limit on | |
5120 | # the size of here documents, and old seds have small limits too. | |
5121 | ||
5122 | rm -f conftest.tail | |
5123 | while : | |
5124 | do | |
5125 | ac_lines=`grep -c . conftest.vals` | |
5126 | # grep -c gives empty output for an empty file on some AIX systems. | |
5127 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
5128 | # Write a limited-size here document to conftest.frag. | |
5129 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
5130 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
5131 | echo 'CEOF | |
5132 | sed -f conftest.frag conftest.in > conftest.out | |
5133 | rm -f conftest.in | |
5134 | mv conftest.out conftest.in | |
5135 | ' >> $CONFIG_STATUS | |
5136 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
5137 | rm -f conftest.vals | |
5138 | mv conftest.tail conftest.vals | |
5139 | done | |
5140 | rm -f conftest.vals | |
5141 | ||
5142 | cat >> $CONFIG_STATUS <<\EOF | |
5143 | rm -f conftest.frag conftest.h | |
5144 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
5145 | cat conftest.in >> conftest.h | |
5146 | rm -f conftest.in | |
5147 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
5148 | echo "$ac_file is unchanged" | |
5149 | rm -f conftest.h | |
5150 | else | |
5151 | # Remove last slash and all that follows it. Not all systems have dirname. | |
5152 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5153 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5154 | # The file is in a subdirectory. | |
5155 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5156 | fi | |
5157 | rm -f $ac_file | |
5158 | mv conftest.h $ac_file | |
5159 | fi | |
5160 | fi; done | |
5161 | ||
5162 | EOF | |
5163 | cat >> $CONFIG_STATUS <<EOF | |
5164 | ||
5165 | ||
5166 | EOF | |
5167 | cat >> $CONFIG_STATUS <<\EOF | |
5168 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | |
5169 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile | |
5170 | exit 0 | |
5171 | EOF | |
5172 | chmod +x $CONFIG_STATUS | |
5173 | rm -fr confdefs* $ac_clean_files | |
a2d91340 | 5174 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
252b5132 | 5175 |