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