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