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