Commit | Line | Data |
---|---|---|
d865fb6e MM |
1 | #! /bin/sh |
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | sim_inline="-DDEFAULT_INLINE=0" | |
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | ||
60 | ||
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
b1df34b9 TT |
78 | |
79 | ||
80 | ||
81 | # This file is derived from `gettext.m4'. The difference is that the | |
82 | # included macros assume Cygnus-style source and build trees. | |
83 | ||
84 | # Macro to add for using GNU gettext. | |
85 | # Ulrich Drepper <drepper@cygnus.com>, 1995. | |
86 | # | |
87 | # This file file be copied and used freely without restrictions. It can | |
88 | # be used in projects which are not available under the GNU Public License | |
89 | # but which still want to provide support for the GNU gettext functionality. | |
90 | # Please note that the actual code is *not* freely available. | |
91 | ||
92 | # serial 3 | |
93 | ||
94 | ||
95 | ||
96 | ||
97 | ||
98 | # Search path for a program which passes the given test. | |
99 | # Ulrich Drepper <drepper@cygnus.com>, 1996. | |
100 | # | |
101 | # This file file be copied and used freely without restrictions. It can | |
102 | # be used in projects which are not available under the GNU Public License | |
103 | # but which still want to provide support for the GNU gettext functionality. | |
104 | # Please note that the actual code is *not* freely available. | |
105 | ||
106 | # serial 1 | |
107 | ||
108 | ||
109 | ||
110 | # Check whether LC_MESSAGES is available in <locale.h>. | |
111 | # Ulrich Drepper <drepper@cygnus.com>, 1995. | |
112 | # | |
113 | # This file file be copied and used freely without restrictions. It can | |
114 | # be used in projects which are not available under the GNU Public License | |
115 | # but which still want to provide support for the GNU gettext functionality. | |
116 | # Please note that the actual code is *not* freely available. | |
117 | ||
118 | # serial 1 | |
d865fb6e MM |
119 | |
120 | ||
121 | ||
122 | # Guess values for system-dependent variables and create Makefiles. | |
123 | # Generated automatically using autoconf version 2.12.1 | |
124 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
125 | # | |
126 | # This configure script is free software; the Free Software Foundation | |
127 | # gives unlimited permission to copy, distribute and modify it. | |
128 | ||
129 | # Defaults: | |
130 | ac_help= | |
131 | ac_default_prefix=/usr/local | |
132 | # Any additions from configure.in: | |
133 | ac_help="$ac_help | |
134 | --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings" | |
135 | ||
136 | # Initialize some variables set by options. | |
137 | # The variables have the same names as the options, with | |
138 | # dashes changed to underlines. | |
139 | build=NONE | |
140 | cache_file=./config.cache | |
141 | exec_prefix=NONE | |
142 | host=NONE | |
143 | no_create= | |
144 | nonopt=NONE | |
145 | no_recursion= | |
146 | prefix=NONE | |
147 | program_prefix=NONE | |
148 | program_suffix=NONE | |
149 | program_transform_name=s,x,x, | |
150 | silent= | |
151 | site= | |
152 | srcdir= | |
153 | target=NONE | |
154 | verbose= | |
155 | x_includes=NONE | |
156 | x_libraries=NONE | |
157 | bindir='${exec_prefix}/bin' | |
158 | sbindir='${exec_prefix}/sbin' | |
159 | libexecdir='${exec_prefix}/libexec' | |
160 | datadir='${prefix}/share' | |
161 | sysconfdir='${prefix}/etc' | |
162 | sharedstatedir='${prefix}/com' | |
163 | localstatedir='${prefix}/var' | |
164 | libdir='${exec_prefix}/lib' | |
165 | includedir='${prefix}/include' | |
166 | oldincludedir='/usr/include' | |
167 | infodir='${prefix}/info' | |
168 | mandir='${prefix}/man' | |
169 | ||
170 | # Initialize some other variables. | |
171 | subdirs= | |
172 | MFLAGS= MAKEFLAGS= | |
173 | SHELL=${CONFIG_SHELL-/bin/sh} | |
174 | # Maximum number of lines to put in a shell here document. | |
175 | ac_max_here_lines=12 | |
176 | ||
177 | ac_prev= | |
178 | for ac_option | |
179 | do | |
180 | ||
181 | # If the previous option needs an argument, assign it. | |
182 | if test -n "$ac_prev"; then | |
183 | eval "$ac_prev=\$ac_option" | |
184 | ac_prev= | |
185 | continue | |
186 | fi | |
187 | ||
188 | case "$ac_option" in | |
189 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
190 | *) ac_optarg= ;; | |
191 | esac | |
192 | ||
193 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
194 | ||
195 | case "$ac_option" in | |
196 | ||
197 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
198 | ac_prev=bindir ;; | |
199 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
200 | bindir="$ac_optarg" ;; | |
201 | ||
202 | -build | --build | --buil | --bui | --bu) | |
203 | ac_prev=build ;; | |
204 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
205 | build="$ac_optarg" ;; | |
206 | ||
207 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
208 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
209 | ac_prev=cache_file ;; | |
210 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
211 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
212 | cache_file="$ac_optarg" ;; | |
213 | ||
214 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
215 | ac_prev=datadir ;; | |
216 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
217 | | --da=*) | |
218 | datadir="$ac_optarg" ;; | |
219 | ||
220 | -disable-* | --disable-*) | |
221 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
222 | # Reject names that are not valid shell variable names. | |
223 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
224 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
225 | fi | |
226 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
227 | eval "enable_${ac_feature}=no" ;; | |
228 | ||
229 | -enable-* | --enable-*) | |
230 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
231 | # Reject names that are not valid shell variable names. | |
232 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
233 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
234 | fi | |
235 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
236 | case "$ac_option" in | |
237 | *=*) ;; | |
238 | *) ac_optarg=yes ;; | |
239 | esac | |
240 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
241 | ||
242 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
243 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
244 | | --exec | --exe | --ex) | |
245 | ac_prev=exec_prefix ;; | |
246 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
247 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
248 | | --exec=* | --exe=* | --ex=*) | |
249 | exec_prefix="$ac_optarg" ;; | |
250 | ||
251 | -gas | --gas | --ga | --g) | |
252 | # Obsolete; use --with-gas. | |
253 | with_gas=yes ;; | |
254 | ||
255 | -help | --help | --hel | --he) | |
256 | # Omit some internal or obsolete options to make the list less imposing. | |
257 | # This message is too long to be a string in the A/UX 3.1 sh. | |
258 | cat << EOF | |
259 | Usage: configure [options] [host] | |
260 | Options: [defaults in brackets after descriptions] | |
261 | Configuration: | |
262 | --cache-file=FILE cache test results in FILE | |
263 | --help print this message | |
264 | --no-create do not create output files | |
265 | --quiet, --silent do not print \`checking...' messages | |
266 | --version print the version of autoconf that created configure | |
267 | Directory and file names: | |
268 | --prefix=PREFIX install architecture-independent files in PREFIX | |
269 | [$ac_default_prefix] | |
270 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
271 | [same as prefix] | |
272 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
273 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
274 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
275 | --datadir=DIR read-only architecture-independent data in DIR | |
276 | [PREFIX/share] | |
277 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
278 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
279 | [PREFIX/com] | |
280 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
281 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
282 | --includedir=DIR C header files in DIR [PREFIX/include] | |
283 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
284 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
285 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
286 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
287 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
288 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
289 | --program-transform-name=PROGRAM | |
290 | run sed PROGRAM on installed program names | |
291 | EOF | |
292 | cat << EOF | |
293 | Host type: | |
294 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
295 | --host=HOST configure for HOST [guessed] | |
296 | --target=TARGET configure for TARGET [TARGET=HOST] | |
297 | Features and packages: | |
298 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
299 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
300 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
301 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
302 | --x-includes=DIR X include files are in DIR | |
303 | --x-libraries=DIR X library files are in DIR | |
304 | EOF | |
305 | if test -n "$ac_help"; then | |
306 | echo "--enable and --with options recognized:$ac_help" | |
307 | fi | |
308 | exit 0 ;; | |
309 | ||
310 | -host | --host | --hos | --ho) | |
311 | ac_prev=host ;; | |
312 | -host=* | --host=* | --hos=* | --ho=*) | |
313 | host="$ac_optarg" ;; | |
314 | ||
315 | -includedir | --includedir | --includedi | --included | --include \ | |
316 | | --includ | --inclu | --incl | --inc) | |
317 | ac_prev=includedir ;; | |
318 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
319 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
320 | includedir="$ac_optarg" ;; | |
321 | ||
322 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
323 | ac_prev=infodir ;; | |
324 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
325 | infodir="$ac_optarg" ;; | |
326 | ||
327 | -libdir | --libdir | --libdi | --libd) | |
328 | ac_prev=libdir ;; | |
329 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
330 | libdir="$ac_optarg" ;; | |
331 | ||
332 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
333 | | --libexe | --libex | --libe) | |
334 | ac_prev=libexecdir ;; | |
335 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
336 | | --libexe=* | --libex=* | --libe=*) | |
337 | libexecdir="$ac_optarg" ;; | |
338 | ||
339 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
340 | | --localstate | --localstat | --localsta | --localst \ | |
341 | | --locals | --local | --loca | --loc | --lo) | |
342 | ac_prev=localstatedir ;; | |
343 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
344 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
345 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
346 | localstatedir="$ac_optarg" ;; | |
347 | ||
348 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
349 | ac_prev=mandir ;; | |
350 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
351 | mandir="$ac_optarg" ;; | |
352 | ||
353 | -nfp | --nfp | --nf) | |
354 | # Obsolete; use --without-fp. | |
355 | with_fp=no ;; | |
356 | ||
357 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
358 | | --no-cr | --no-c) | |
359 | no_create=yes ;; | |
360 | ||
361 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
362 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
363 | no_recursion=yes ;; | |
364 | ||
365 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
366 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
367 | | --oldin | --oldi | --old | --ol | --o) | |
368 | ac_prev=oldincludedir ;; | |
369 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
370 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
371 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
372 | oldincludedir="$ac_optarg" ;; | |
373 | ||
374 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
375 | ac_prev=prefix ;; | |
376 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
377 | prefix="$ac_optarg" ;; | |
378 | ||
379 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
380 | | --program-pre | --program-pr | --program-p) | |
381 | ac_prev=program_prefix ;; | |
382 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
383 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
384 | program_prefix="$ac_optarg" ;; | |
385 | ||
386 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
387 | | --program-suf | --program-su | --program-s) | |
388 | ac_prev=program_suffix ;; | |
389 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
390 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
391 | program_suffix="$ac_optarg" ;; | |
392 | ||
393 | -program-transform-name | --program-transform-name \ | |
394 | | --program-transform-nam | --program-transform-na \ | |
395 | | --program-transform-n | --program-transform- \ | |
396 | | --program-transform | --program-transfor \ | |
397 | | --program-transfo | --program-transf \ | |
398 | | --program-trans | --program-tran \ | |
399 | | --progr-tra | --program-tr | --program-t) | |
400 | ac_prev=program_transform_name ;; | |
401 | -program-transform-name=* | --program-transform-name=* \ | |
402 | | --program-transform-nam=* | --program-transform-na=* \ | |
403 | | --program-transform-n=* | --program-transform-=* \ | |
404 | | --program-transform=* | --program-transfor=* \ | |
405 | | --program-transfo=* | --program-transf=* \ | |
406 | | --program-trans=* | --program-tran=* \ | |
407 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
408 | program_transform_name="$ac_optarg" ;; | |
409 | ||
410 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
411 | | -silent | --silent | --silen | --sile | --sil) | |
412 | silent=yes ;; | |
413 | ||
414 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
415 | ac_prev=sbindir ;; | |
416 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
417 | | --sbi=* | --sb=*) | |
418 | sbindir="$ac_optarg" ;; | |
419 | ||
420 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
421 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
422 | | --sharedst | --shareds | --shared | --share | --shar \ | |
423 | | --sha | --sh) | |
424 | ac_prev=sharedstatedir ;; | |
425 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
426 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
427 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
428 | | --sha=* | --sh=*) | |
429 | sharedstatedir="$ac_optarg" ;; | |
430 | ||
431 | -site | --site | --sit) | |
432 | ac_prev=site ;; | |
433 | -site=* | --site=* | --sit=*) | |
434 | site="$ac_optarg" ;; | |
435 | ||
436 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
437 | ac_prev=srcdir ;; | |
438 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
439 | srcdir="$ac_optarg" ;; | |
440 | ||
441 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
442 | | --syscon | --sysco | --sysc | --sys | --sy) | |
443 | ac_prev=sysconfdir ;; | |
444 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
445 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
446 | sysconfdir="$ac_optarg" ;; | |
447 | ||
448 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
449 | ac_prev=target ;; | |
450 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
451 | target="$ac_optarg" ;; | |
452 | ||
453 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
454 | verbose=yes ;; | |
455 | ||
456 | -version | --version | --versio | --versi | --vers) | |
457 | echo "configure generated by autoconf version 2.12.1" | |
458 | exit 0 ;; | |
459 | ||
460 | -with-* | --with-*) | |
461 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
462 | # Reject names that are not valid shell variable names. | |
463 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
464 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
465 | fi | |
466 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
467 | case "$ac_option" in | |
468 | *=*) ;; | |
469 | *) ac_optarg=yes ;; | |
470 | esac | |
471 | eval "with_${ac_package}='$ac_optarg'" ;; | |
472 | ||
473 | -without-* | --without-*) | |
474 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
475 | # Reject names that are not valid shell variable names. | |
476 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
477 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
478 | fi | |
479 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
480 | eval "with_${ac_package}=no" ;; | |
481 | ||
482 | --x) | |
483 | # Obsolete; use --with-x. | |
484 | with_x=yes ;; | |
485 | ||
486 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
487 | | --x-incl | --x-inc | --x-in | --x-i) | |
488 | ac_prev=x_includes ;; | |
489 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
490 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
491 | x_includes="$ac_optarg" ;; | |
492 | ||
493 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
494 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
495 | ac_prev=x_libraries ;; | |
496 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
497 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
498 | x_libraries="$ac_optarg" ;; | |
499 | ||
500 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
501 | ;; | |
502 | ||
503 | *) | |
504 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
505 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
506 | fi | |
507 | if test "x$nonopt" != xNONE; then | |
508 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
509 | fi | |
510 | nonopt="$ac_option" | |
511 | ;; | |
512 | ||
513 | esac | |
514 | done | |
515 | ||
516 | if test -n "$ac_prev"; then | |
517 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
518 | fi | |
519 | ||
520 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
521 | ||
522 | # File descriptor usage: | |
523 | # 0 standard input | |
524 | # 1 file creation | |
525 | # 2 errors and warnings | |
526 | # 3 some systems may open it to /dev/tty | |
527 | # 4 used on the Kubota Titan | |
528 | # 6 checking for... messages and results | |
529 | # 5 compiler messages saved in config.log | |
530 | if test "$silent" = yes; then | |
531 | exec 6>/dev/null | |
532 | else | |
533 | exec 6>&1 | |
534 | fi | |
535 | exec 5>./config.log | |
536 | ||
537 | echo "\ | |
538 | This file contains any messages produced by compilers while | |
539 | running configure, to aid debugging if configure makes a mistake. | |
540 | " 1>&5 | |
541 | ||
542 | # Strip out --no-create and --no-recursion so they do not pile up. | |
543 | # Also quote any args containing shell metacharacters. | |
544 | ac_configure_args= | |
545 | for ac_arg | |
546 | do | |
547 | case "$ac_arg" in | |
548 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
549 | | --no-cr | --no-c) ;; | |
550 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
551 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
552 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
553 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
554 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
555 | esac | |
556 | done | |
557 | ||
558 | # NLS nuisances. | |
559 | # Only set these to C if already set. These must not be set unconditionally | |
560 | # because not all systems understand e.g. LANG=C (notably SCO). | |
561 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
562 | # Non-C LC_CTYPE values break the ctype check. | |
563 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
564 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
565 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
566 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
567 | ||
568 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
569 | rm -rf conftest* confdefs.h | |
570 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
571 | echo > confdefs.h | |
572 | ||
573 | # A filename unique to this package, relative to the directory that | |
574 | # configure is in, which we can look for to find out if srcdir is correct. | |
575 | ac_unique_file=table.h | |
576 | ||
577 | # Find the source files, if location was not specified. | |
578 | if test -z "$srcdir"; then | |
579 | ac_srcdir_defaulted=yes | |
580 | # Try the directory containing this script, then its parent. | |
581 | ac_prog=$0 | |
582 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
583 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
584 | srcdir=$ac_confdir | |
585 | if test ! -r $srcdir/$ac_unique_file; then | |
586 | srcdir=.. | |
587 | fi | |
588 | else | |
589 | ac_srcdir_defaulted=no | |
590 | fi | |
591 | if test ! -r $srcdir/$ac_unique_file; then | |
592 | if test "$ac_srcdir_defaulted" = yes; then | |
593 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
594 | else | |
595 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
596 | fi | |
597 | fi | |
598 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
599 | ||
600 | # Prefer explicitly selected file to automatically selected ones. | |
601 | if test -z "$CONFIG_SITE"; then | |
602 | if test "x$prefix" != xNONE; then | |
603 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
604 | else | |
605 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
606 | fi | |
607 | fi | |
608 | for ac_site_file in $CONFIG_SITE; do | |
609 | if test -r "$ac_site_file"; then | |
610 | echo "loading site script $ac_site_file" | |
611 | . "$ac_site_file" | |
612 | fi | |
613 | done | |
614 | ||
615 | if test -r "$cache_file"; then | |
616 | echo "loading cache $cache_file" | |
617 | . $cache_file | |
618 | else | |
619 | echo "creating cache $cache_file" | |
620 | > $cache_file | |
621 | fi | |
622 | ||
623 | ac_ext=c | |
624 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
625 | ac_cpp='$CPP $CPPFLAGS' | |
626 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
627 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
628 | cross_compiling=$ac_cv_prog_cc_cross | |
629 | ||
630 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
631 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
632 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
633 | ac_n= ac_c=' | |
634 | ' ac_t=' ' | |
635 | else | |
636 | ac_n=-n ac_c= ac_t= | |
637 | fi | |
638 | else | |
639 | ac_n= ac_c='\c' ac_t= | |
640 | fi | |
641 | ||
642 | ||
643 | ||
644 | ac_aux_dir= | |
645 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
646 | if test -f $ac_dir/install-sh; then | |
647 | ac_aux_dir=$ac_dir | |
648 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
649 | break | |
650 | elif test -f $ac_dir/install.sh; then | |
651 | ac_aux_dir=$ac_dir | |
652 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
653 | break | |
654 | fi | |
655 | done | |
656 | if test -z "$ac_aux_dir"; then | |
657 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
658 | fi | |
659 | ac_config_guess=$ac_aux_dir/config.guess | |
660 | ac_config_sub=$ac_aux_dir/config.sub | |
661 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
662 | ||
663 | # Find a good install program. We prefer a C program (faster), | |
664 | # so one script is as good as another. But avoid the broken or | |
665 | # incompatible versions: | |
666 | # SysV /etc/install, /usr/sbin/install | |
667 | # SunOS /usr/etc/install | |
668 | # IRIX /sbin/install | |
669 | # AIX /bin/install | |
670 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
671 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
672 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
673 | # ./install, which can be erroneously created by make from ./install.sh. | |
674 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
b1df34b9 | 675 | echo "configure:676: checking for a BSD compatible install" >&5 |
d865fb6e MM |
676 | if test -z "$INSTALL"; then |
677 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
679 | else | |
680 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
681 | for ac_dir in $PATH; do | |
682 | # Account for people who put trailing slashes in PATH elements. | |
683 | case "$ac_dir/" in | |
684 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
685 | *) | |
686 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
687 | # Don't use installbsd from OSF since it installs stuff as root | |
688 | # by default. | |
689 | for ac_prog in ginstall scoinst install; do | |
690 | if test -f $ac_dir/$ac_prog; then | |
691 | if test $ac_prog = install && | |
692 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
693 | # AIX install. It has an incompatible calling convention. | |
694 | : | |
695 | else | |
696 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
697 | break 2 | |
698 | fi | |
699 | fi | |
700 | done | |
701 | ;; | |
702 | esac | |
703 | done | |
704 | IFS="$ac_save_IFS" | |
705 | ||
706 | fi | |
707 | if test "${ac_cv_path_install+set}" = set; then | |
708 | INSTALL="$ac_cv_path_install" | |
709 | else | |
710 | # As a last resort, use the slow shell script. We don't cache a | |
711 | # path for INSTALL within a source directory, because that will | |
712 | # break other packages using the cache if that directory is | |
713 | # removed, or if the path is relative. | |
714 | INSTALL="$ac_install_sh" | |
715 | fi | |
716 | fi | |
717 | echo "$ac_t""$INSTALL" 1>&6 | |
718 | ||
719 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
720 | # It thinks the first close brace ends the variable substitution. | |
721 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
722 | ||
723 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
724 | ||
725 | # Extract the first word of "gcc", so it can be a program name with args. | |
726 | set dummy gcc; ac_word=$2 | |
727 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b1df34b9 | 728 | echo "configure:729: checking for $ac_word" >&5 |
d865fb6e MM |
729 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
731 | else | |
732 | if test -n "$CC"; then | |
733 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
734 | else | |
735 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
736 | for ac_dir in $PATH; do | |
737 | test -z "$ac_dir" && ac_dir=. | |
738 | if test -f $ac_dir/$ac_word; then | |
739 | ac_cv_prog_CC="gcc" | |
740 | break | |
741 | fi | |
742 | done | |
743 | IFS="$ac_save_ifs" | |
744 | fi | |
745 | fi | |
746 | CC="$ac_cv_prog_CC" | |
747 | if test -n "$CC"; then | |
748 | echo "$ac_t""$CC" 1>&6 | |
749 | else | |
750 | echo "$ac_t""no" 1>&6 | |
751 | fi | |
752 | ||
753 | if test -z "$CC"; then | |
754 | # Extract the first word of "cc", so it can be a program name with args. | |
755 | set dummy cc; ac_word=$2 | |
756 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b1df34b9 | 757 | echo "configure:758: checking for $ac_word" >&5 |
d865fb6e MM |
758 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
760 | else | |
761 | if test -n "$CC"; then | |
762 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
763 | else | |
764 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
765 | ac_prog_rejected=no | |
766 | for ac_dir in $PATH; do | |
767 | test -z "$ac_dir" && ac_dir=. | |
768 | if test -f $ac_dir/$ac_word; then | |
769 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
770 | ac_prog_rejected=yes | |
771 | continue | |
772 | fi | |
773 | ac_cv_prog_CC="cc" | |
774 | break | |
775 | fi | |
776 | done | |
777 | IFS="$ac_save_ifs" | |
778 | if test $ac_prog_rejected = yes; then | |
779 | # We found a bogon in the path, so make sure we never use it. | |
780 | set dummy $ac_cv_prog_CC | |
781 | shift | |
782 | if test $# -gt 0; then | |
783 | # We chose a different compiler from the bogus one. | |
784 | # However, it has the same basename, so the bogon will be chosen | |
785 | # first if we set CC to just the basename; use the full file name. | |
786 | shift | |
787 | set dummy "$ac_dir/$ac_word" "$@" | |
788 | shift | |
789 | ac_cv_prog_CC="$@" | |
790 | fi | |
791 | fi | |
792 | fi | |
793 | fi | |
794 | CC="$ac_cv_prog_CC" | |
795 | if test -n "$CC"; then | |
796 | echo "$ac_t""$CC" 1>&6 | |
797 | else | |
798 | echo "$ac_t""no" 1>&6 | |
799 | fi | |
800 | ||
801 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
802 | fi | |
803 | ||
804 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
b1df34b9 | 805 | echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
d865fb6e MM |
806 | |
807 | ac_ext=c | |
808 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
809 | ac_cpp='$CPP $CPPFLAGS' | |
810 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
811 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
812 | cross_compiling=$ac_cv_prog_cc_cross | |
813 | ||
814 | cat > conftest.$ac_ext <<EOF | |
b1df34b9 | 815 | #line 816 "configure" |
d865fb6e MM |
816 | #include "confdefs.h" |
817 | main(){return(0);} | |
818 | EOF | |
b1df34b9 | 819 | if { (eval echo configure:820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
d865fb6e MM |
820 | ac_cv_prog_cc_works=yes |
821 | # If we can't run a trivial program, we are probably using a cross compiler. | |
822 | if (./conftest; exit) 2>/dev/null; then | |
823 | ac_cv_prog_cc_cross=no | |
824 | else | |
825 | ac_cv_prog_cc_cross=yes | |
826 | fi | |
827 | else | |
828 | echo "configure: failed program was:" >&5 | |
829 | cat conftest.$ac_ext >&5 | |
830 | ac_cv_prog_cc_works=no | |
831 | fi | |
832 | rm -fr conftest* | |
833 | ||
834 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
835 | if test $ac_cv_prog_cc_works = no; then | |
836 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
837 | fi | |
838 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b1df34b9 | 839 | echo "configure:840: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
d865fb6e MM |
840 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
841 | cross_compiling=$ac_cv_prog_cc_cross | |
842 | ||
843 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
b1df34b9 | 844 | echo "configure:845: checking whether we are using GNU C" >&5 |
d865fb6e MM |
845 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
847 | else | |
848 | cat > conftest.c <<EOF | |
849 | #ifdef __GNUC__ | |
850 | yes; | |
851 | #endif | |
852 | EOF | |
b1df34b9 | 853 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
d865fb6e MM |
854 | ac_cv_prog_gcc=yes |
855 | else | |
856 | ac_cv_prog_gcc=no | |
857 | fi | |
858 | fi | |
859 | ||
860 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
861 | ||
862 | if test $ac_cv_prog_gcc = yes; then | |
863 | GCC=yes | |
864 | ac_test_CFLAGS="${CFLAGS+set}" | |
865 | ac_save_CFLAGS="$CFLAGS" | |
866 | CFLAGS= | |
867 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
b1df34b9 | 868 | echo "configure:869: checking whether ${CC-cc} accepts -g" >&5 |
d865fb6e MM |
869 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
871 | else | |
872 | echo 'void f(){}' > conftest.c | |
873 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
874 | ac_cv_prog_cc_g=yes | |
875 | else | |
876 | ac_cv_prog_cc_g=no | |
877 | fi | |
878 | rm -f conftest* | |
879 | ||
880 | fi | |
881 | ||
882 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
883 | if test "$ac_test_CFLAGS" = set; then | |
884 | CFLAGS="$ac_save_CFLAGS" | |
885 | elif test $ac_cv_prog_cc_g = yes; then | |
886 | CFLAGS="-g -O2" | |
887 | else | |
888 | CFLAGS="-O2" | |
889 | fi | |
890 | else | |
891 | GCC= | |
892 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
893 | fi | |
894 | ||
895 | ||
896 | ||
897 | # Check whether --enable-sim-warnings or --disable-sim-warnings was given. | |
898 | if test "${enable_sim_warnings+set}" = set; then | |
899 | enableval="$enable_sim_warnings" | |
900 | case "${enableval}" in | |
901 | yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";; | |
902 | no) sim_warnings="-w";; | |
903 | *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
904 | esac | |
905 | if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then | |
906 | echo "Setting warning flags = $sim_warnings" 6>&1 | |
907 | fi | |
908 | else | |
909 | sim_warnings="" | |
910 | fi | |
911 | ||
912 | ||
913 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
914 | if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then | |
915 | AR_FOR_BUILD='$(AR)' | |
916 | AR_FLAGS_FOR_BUILD='$(AR_FLAGS)' | |
917 | CC_FOR_BUILD='$(CC)' | |
918 | CFLAGS_FOR_BUILD='$(CFLAGS)' | |
919 | RANLIB_FOR_BUILD='$(RANLIB)' | |
920 | LIBIBERTY_LIB=../../libiberty/libiberty.a | |
921 | else | |
922 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} | |
923 | AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc} | |
924 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} | |
925 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"} | |
926 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
927 | LIBIBERTY_LIB= | |
928 | fi | |
929 | ||
930 | ||
931 | ac_aux_dir= | |
932 | for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do | |
933 | if test -f $ac_dir/install-sh; then | |
934 | ac_aux_dir=$ac_dir | |
935 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
936 | break | |
937 | elif test -f $ac_dir/install.sh; then | |
938 | ac_aux_dir=$ac_dir | |
939 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
940 | break | |
941 | fi | |
942 | done | |
943 | if test -z "$ac_aux_dir"; then | |
944 | { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; } | |
945 | fi | |
946 | ac_config_guess=$ac_aux_dir/config.guess | |
947 | ac_config_sub=$ac_aux_dir/config.sub | |
948 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
949 | ||
950 | ||
951 | # Do some error checking and defaulting for the host and target type. | |
952 | # The inputs are: | |
953 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
954 | # | |
955 | # The rules are: | |
956 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
957 | # same time. | |
958 | # 2. Host defaults to nonopt. | |
959 | # 3. If nonopt is not specified, then host defaults to the current host, | |
960 | # as determined by config.guess. | |
961 | # 4. Target and build default to nonopt. | |
962 | # 5. If nonopt is not specified, then target and build default to host. | |
963 | ||
964 | # The aliases save the names the user supplied, while $host etc. | |
965 | # will get canonicalized. | |
966 | case $host---$target---$nonopt in | |
967 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
968 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
969 | esac | |
970 | ||
971 | ||
972 | # Make sure we can run config.sub. | |
973 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
974 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
975 | fi | |
976 | ||
977 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
b1df34b9 | 978 | echo "configure:979: checking host system type" >&5 |
d865fb6e MM |
979 | |
980 | host_alias=$host | |
981 | case "$host_alias" in | |
982 | NONE) | |
983 | case $nonopt in | |
984 | NONE) | |
985 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
986 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
987 | fi ;; | |
988 | *) host_alias=$nonopt ;; | |
989 | esac ;; | |
990 | esac | |
991 | ||
992 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
993 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
994 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
995 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
996 | echo "$ac_t""$host" 1>&6 | |
997 | ||
998 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
b1df34b9 | 999 | echo "configure:1000: checking target system type" >&5 |
d865fb6e MM |
1000 | |
1001 | target_alias=$target | |
1002 | case "$target_alias" in | |
1003 | NONE) | |
1004 | case $nonopt in | |
1005 | NONE) target_alias=$host_alias ;; | |
1006 | *) target_alias=$nonopt ;; | |
1007 | esac ;; | |
1008 | esac | |
1009 | ||
1010 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1011 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1012 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1013 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1014 | echo "$ac_t""$target" 1>&6 | |
1015 | ||
1016 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
b1df34b9 | 1017 | echo "configure:1018: checking build system type" >&5 |
d865fb6e MM |
1018 | |
1019 | build_alias=$build | |
1020 | case "$build_alias" in | |
1021 | NONE) | |
1022 | case $nonopt in | |
1023 | NONE) build_alias=$host_alias ;; | |
1024 | *) build_alias=$nonopt ;; | |
1025 | esac ;; | |
1026 | esac | |
1027 | ||
1028 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1029 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1030 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1031 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1032 | echo "$ac_t""$build" 1>&6 | |
1033 | ||
1034 | test "$host_alias" != "$target_alias" && | |
1035 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1036 | NONENONEs,x,x, && | |
1037 | program_prefix=${target_alias}- | |
1038 | ||
1039 | if test "$program_transform_name" = s,x,x,; then | |
1040 | program_transform_name= | |
1041 | else | |
1042 | # Double any \ or $. echo might interpret backslashes. | |
1043 | cat <<\EOF_SED > conftestsed | |
1044 | s,\\,\\\\,g; s,\$,$$,g | |
1045 | EOF_SED | |
1046 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
1047 | rm -f conftestsed | |
1048 | fi | |
1049 | test "$program_prefix" != NONE && | |
1050 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
1051 | # Use a double $ so make ignores it. | |
1052 | test "$program_suffix" != NONE && | |
1053 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
1054 | ||
1055 | # sed with no file args requires a program. | |
1056 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
1057 | ||
1058 | ||
1059 | . ${srcdir}/../../bfd/configure.host | |
1060 | ||
1061 | ||
1062 | ||
1063 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
b1df34b9 | 1064 | echo "configure:1065: checking how to run the C preprocessor" >&5 |
d865fb6e MM |
1065 | # On Suns, sometimes $CPP names a directory. |
1066 | if test -n "$CPP" && test -d "$CPP"; then | |
1067 | CPP= | |
1068 | fi | |
1069 | if test -z "$CPP"; then | |
1070 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1072 | else | |
1073 | # This must be in double quotes, not single quotes, because CPP may get | |
1074 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1075 | CPP="${CC-cc} -E" | |
1076 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1077 | # not just through cpp. | |
1078 | cat > conftest.$ac_ext <<EOF | |
b1df34b9 | 1079 | #line 1080 "configure" |
d865fb6e MM |
1080 | #include "confdefs.h" |
1081 | #include <assert.h> | |
1082 | Syntax Error | |
1083 | EOF | |
1084 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1df34b9 | 1085 | { (eval echo configure:1086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d865fb6e MM |
1086 | ac_err=`grep -v '^ *+' conftest.out` |
1087 | if test -z "$ac_err"; then | |
1088 | : | |
1089 | else | |
1090 | echo "$ac_err" >&5 | |
1091 | echo "configure: failed program was:" >&5 | |
1092 | cat conftest.$ac_ext >&5 | |
1093 | rm -rf conftest* | |
1094 | CPP="${CC-cc} -E -traditional-cpp" | |
1095 | cat > conftest.$ac_ext <<EOF | |
b1df34b9 | 1096 | #line 1097 "configure" |
d865fb6e MM |
1097 | #include "confdefs.h" |
1098 | #include <assert.h> | |
1099 | Syntax Error | |
1100 | EOF | |
1101 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1df34b9 | 1102 | { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d865fb6e MM |
1103 | ac_err=`grep -v '^ *+' conftest.out` |
1104 | if test -z "$ac_err"; then | |
1105 | : | |
1106 | else | |
1107 | echo "$ac_err" >&5 | |
1108 | echo "configure: failed program was:" >&5 | |
1109 | cat conftest.$ac_ext >&5 | |
1110 | rm -rf conftest* | |
1111 | CPP=/lib/cpp | |
1112 | fi | |
1113 | rm -f conftest* | |
1114 | fi | |
1115 | rm -f conftest* | |
1116 | ac_cv_prog_CPP="$CPP" | |
1117 | fi | |
1118 | CPP="$ac_cv_prog_CPP" | |
1119 | else | |
1120 | ac_cv_prog_CPP="$CPP" | |
1121 | fi | |
1122 | echo "$ac_t""$CPP" 1>&6 | |
1123 | ||
1124 | for ac_hdr in stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h | |
1125 | do | |
1126 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1127 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1df34b9 | 1128 | echo "configure:1129: checking for $ac_hdr" >&5 |
d865fb6e MM |
1129 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1131 | else | |
1132 | cat > conftest.$ac_ext <<EOF | |
b1df34b9 | 1133 | #line 1134 "configure" |
d865fb6e MM |
1134 | #include "confdefs.h" |
1135 | #include <$ac_hdr> | |
1136 | EOF | |
1137 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1df34b9 | 1138 | { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d865fb6e MM |
1139 | ac_err=`grep -v '^ *+' conftest.out` |
1140 | if test -z "$ac_err"; then | |
1141 | rm -rf conftest* | |
1142 | eval "ac_cv_header_$ac_safe=yes" | |
1143 | else | |
1144 | echo "$ac_err" >&5 | |
1145 | echo "configure: failed program was:" >&5 | |
1146 | cat conftest.$ac_ext >&5 | |
1147 | rm -rf conftest* | |
1148 | eval "ac_cv_header_$ac_safe=no" | |
1149 | fi | |
1150 | rm -f conftest* | |
1151 | fi | |
1152 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1153 | echo "$ac_t""yes" 1>&6 | |
1154 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1155 | cat >> confdefs.h <<EOF | |
1156 | #define $ac_tr_hdr 1 | |
1157 | EOF | |
1158 | ||
1159 | else | |
1160 | echo "$ac_t""no" 1>&6 | |
1161 | fi | |
1162 | done | |
1163 | ||
1164 | ac_header_dirent=no | |
1165 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | |
1166 | do | |
1167 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1168 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | |
b1df34b9 | 1169 | echo "configure:1170: checking for $ac_hdr that defines DIR" >&5 |
d865fb6e MM |
1170 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
1171 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1172 | else | |
1173 | cat > conftest.$ac_ext <<EOF | |
b1df34b9 | 1174 | #line 1175 "configure" |
d865fb6e MM |
1175 | #include "confdefs.h" |
1176 | #include <sys/types.h> | |
1177 | #include <$ac_hdr> | |
1178 | int main() { | |
1179 | DIR *dirp = 0; | |
1180 | ; return 0; } | |
1181 | EOF | |
b1df34b9 | 1182 | if { (eval echo configure:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d865fb6e MM |
1183 | rm -rf conftest* |
1184 | eval "ac_cv_header_dirent_$ac_safe=yes" | |
1185 | else | |
1186 | echo "configure: failed program was:" >&5 | |
1187 | cat conftest.$ac_ext >&5 | |
1188 | rm -rf conftest* | |
1189 | eval "ac_cv_header_dirent_$ac_safe=no" | |
1190 | fi | |
1191 | rm -f conftest* | |
1192 | fi | |
1193 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then | |
1194 | echo "$ac_t""yes" 1>&6 | |
1195 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1196 | cat >> confdefs.h <<EOF | |
1197 | #define $ac_tr_hdr 1 | |
1198 | EOF | |
1199 | ac_header_dirent=$ac_hdr; break | |
1200 | else | |
1201 | echo "$ac_t""no" 1>&6 | |
1202 | fi | |
1203 | done | |
1204 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
1205 | if test $ac_header_dirent = dirent.h; then | |
1206 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | |
b1df34b9 | 1207 | echo "configure:1208: checking for opendir in -ldir" >&5 |
d865fb6e MM |
1208 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
1209 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1210 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1211 | else | |
1212 | ac_save_LIBS="$LIBS" | |
1213 | LIBS="-ldir $LIBS" | |
1214 | cat > conftest.$ac_ext <<EOF | |
b1df34b9 | 1215 | #line 1216 "configure" |
d865fb6e MM |
1216 | #include "confdefs.h" |
1217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1218 | /* We use char because int might match the return type of a gcc2 | |
1219 | builtin and then its argument prototype would still apply. */ | |
1220 | char opendir(); | |
1221 | ||
1222 | int main() { | |
1223 | opendir() | |
1224 | ; return 0; } | |
1225 | EOF | |
b1df34b9 | 1226 | if { (eval echo configure:1227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
d865fb6e MM |
1227 | rm -rf conftest* |
1228 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1229 | else | |
1230 | echo "configure: failed program was:" >&5 | |
1231 | cat conftest.$ac_ext >&5 | |
1232 | rm -rf conftest* | |
1233 | eval "ac_cv_lib_$ac_lib_var=no" | |
1234 | fi | |
1235 | rm -f conftest* | |
1236 | LIBS="$ac_save_LIBS" | |
1237 | ||
1238 | fi | |
1239 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1240 | echo "$ac_t""yes" 1>&6 | |
1241 | LIBS="$LIBS -ldir" | |
1242 | else | |
1243 | echo "$ac_t""no" 1>&6 | |
1244 | fi | |
1245 | ||
1246 | else | |
1247 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | |
b1df34b9 | 1248 | echo "configure:1249: checking for opendir in -lx" >&5 |
d865fb6e MM |
1249 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
1250 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1251 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1252 | else | |
1253 | ac_save_LIBS="$LIBS" | |
1254 | LIBS="-lx $LIBS" | |
1255 | cat > conftest.$ac_ext <<EOF | |
b1df34b9 | 1256 | #line 1257 "configure" |
d865fb6e MM |
1257 | #include "confdefs.h" |
1258 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1259 | /* We use char because int might match the return type of a gcc2 | |
1260 | builtin and then its argument prototype would still apply. */ | |
1261 | char opendir(); | |
1262 | ||
1263 | int main() { | |
1264 | opendir() | |
1265 | ; return 0; } | |
1266 | EOF | |
b1df34b9 | 1267 | if { (eval echo configure:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
d865fb6e MM |
1268 | rm -rf conftest* |
1269 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1270 | else | |
1271 | echo "configure: failed program was:" >&5 | |
1272 | cat conftest.$ac_ext >&5 | |
1273 | rm -rf conftest* | |
1274 | eval "ac_cv_lib_$ac_lib_var=no" | |
1275 | fi | |
1276 | rm -f conftest* | |
1277 | LIBS="$ac_save_LIBS" | |
1278 | ||
1279 | fi | |
1280 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1281 | echo "$ac_t""yes" 1>&6 | |
1282 | LIBS="$LIBS -lx" | |
1283 | else | |
1284 | echo "$ac_t""no" 1>&6 | |
1285 | fi | |
1286 | ||
1287 | fi | |
1288 | ||
1289 | ||
1290 | ||
1291 | ||
1292 | ||
1293 | ||
1294 | ||
1295 | ||
1296 | ||
1297 | ||
1298 | ||
1299 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1300 | set dummy ranlib; ac_word=$2 | |
1301 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b1df34b9 | 1302 | echo "configure:1303: checking for $ac_word" >&5 |
d865fb6e MM |
1303 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1305 | else | |
1306 | if test -n "$RANLIB"; then | |
1307 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1308 | else | |
1309 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1310 | for ac_dir in $PATH; do | |
1311 | test -z "$ac_dir" && ac_dir=. | |
1312 | if test -f $ac_dir/$ac_word; then | |
1313 | ac_cv_prog_RANLIB="ranlib" | |
1314 | break | |
1315 | fi | |
1316 | done | |
1317 | IFS="$ac_save_ifs" | |
1318 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1319 | fi | |
1320 | fi | |
1321 | RANLIB="$ac_cv_prog_RANLIB" | |
1322 | if test -n "$RANLIB"; then | |
1323 | echo "$ac_t""$RANLIB" 1>&6 | |
1324 | else | |
1325 | echo "$ac_t""no" 1>&6 | |
1326 | fi | |
1327 | ||
1328 | ||
1329 | trap '' 1 2 15 | |
1330 | cat > confcache <<\EOF | |
1331 | # This file is a shell script that caches the results of configure | |
1332 | # tests run on this system so they can be shared between configure | |
1333 | # scripts and configure runs. It is not useful on other systems. | |
1334 | # If it contains results you don't want to keep, you may remove or edit it. | |
1335 | # | |
1336 | # By default, configure uses ./config.cache as the cache file, | |
1337 | # creating it if it does not exist already. You can give configure | |
1338 | # the --cache-file=FILE option to use a different cache file; that is | |
1339 | # what configure does when it calls configure scripts in | |
1340 | # subdirectories, so they share the cache. | |
1341 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
1342 | # config.status only pays attention to the cache file if you give it the | |
1343 | # --recheck option to rerun configure. | |
1344 | # | |
1345 | EOF | |
1346 | # The following way of writing the cache mishandles newlines in values, | |
1347 | # but we know of no workaround that is simple, portable, and efficient. | |
1348 | # So, don't put newlines in cache variables' values. | |
1349 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
1350 | # and sets the high bit in the cache file unless we assign to the vars. | |
1351 | (set) 2>&1 | | |
1352 | case `(ac_space=' '; set) 2>&1 | grep ac_space` in | |
1353 | *ac_space=\ *) | |
1354 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
1355 | # turns \\\\ into \\, and sed turns \\ into \). | |
1356 | sed -n \ | |
1357 | -e "s/'/'\\\\''/g" \ | |
1358 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
1359 | ;; | |
1360 | *) | |
1361 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
1362 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
1363 | ;; | |
1364 | esac >> confcache | |
1365 | if cmp -s $cache_file confcache; then | |
1366 | : | |
1367 | else | |
1368 | if test -w $cache_file; then | |
1369 | echo "updating cache $cache_file" | |
1370 | cat confcache > $cache_file | |
1371 | else | |
1372 | echo "not updating unwritable cache $cache_file" | |
1373 | fi | |
1374 | fi | |
1375 | rm -f confcache | |
1376 | ||
1377 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
1378 | ||
1379 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
1380 | # Let make expand exec_prefix. | |
1381 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
1382 | ||
1383 | # Any assignment to VPATH causes Sun make to only execute | |
1384 | # the first set of double-colon rules, so remove it if not needed. | |
1385 | # If there is a colon in the path, we need to keep it. | |
1386 | if test "x$srcdir" = x.; then | |
1387 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
1388 | fi | |
1389 | ||
1390 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
1391 | ||
1392 | DEFS=-DHAVE_CONFIG_H | |
1393 | ||
1394 | # Without the "./", some shells look in PATH for config.status. | |
1395 | : ${CONFIG_STATUS=./config.status} | |
1396 | ||
1397 | echo creating $CONFIG_STATUS | |
1398 | rm -f $CONFIG_STATUS | |
1399 | cat > $CONFIG_STATUS <<EOF | |
1400 | #! /bin/sh | |
1401 | # Generated automatically by configure. | |
1402 | # Run this file to recreate the current configuration. | |
1403 | # This directory was configured as follows, | |
1404 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
1405 | # | |
1406 | # $0 $ac_configure_args | |
1407 | # | |
1408 | # Compiler output produced by configure, useful for debugging | |
1409 | # configure, is in ./config.log if it exists. | |
1410 | ||
1411 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
1412 | for ac_option | |
1413 | do | |
1414 | case "\$ac_option" in | |
1415 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
1416 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
1417 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
1418 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
1419 | echo "$CONFIG_STATUS generated by autoconf version 2.12.1" | |
1420 | exit 0 ;; | |
1421 | -help | --help | --hel | --he | --h) | |
1422 | echo "\$ac_cs_usage"; exit 0 ;; | |
1423 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
1424 | esac | |
1425 | done | |
1426 | ||
1427 | ac_given_srcdir=$srcdir | |
1428 | ac_given_INSTALL="$INSTALL" | |
1429 | ||
1430 | trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1431 | EOF | |
1432 | cat >> $CONFIG_STATUS <<EOF | |
1433 | ||
1434 | # Protect against being on the right side of a sed subst in config.status. | |
1435 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
1436 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
1437 | $ac_vpsub | |
1438 | $extrasub | |
1439 | s%@sim_environment@%$sim_environment%g | |
1440 | s%@sim_alignment@%$sim_alignment%g | |
1441 | s%@sim_assert@%$sim_assert%g | |
1442 | s%@sim_bitsize@%$sim_bitsize%g | |
1443 | s%@sim_endian@%$sim_endian%g | |
1444 | s%@sim_hostendian@%$sim_hostendian%g | |
1445 | s%@sim_float@%$sim_float%g | |
1446 | s%@sim_scache@%$sim_scache%g | |
1447 | s%@sim_default_model@%$sim_default_model%g | |
1448 | s%@sim_hardware@%$sim_hardware%g | |
1449 | s%@sim_hw_obj@%$sim_hw_obj%g | |
1450 | s%@sim_hw@%$sim_hw%g | |
1451 | s%@sim_inline@%$sim_inline%g | |
1452 | s%@sim_packages@%$sim_packages%g | |
1453 | s%@sim_regparm@%$sim_regparm%g | |
1454 | s%@sim_reserved_bits@%$sim_reserved_bits%g | |
1455 | s%@sim_smp@%$sim_smp%g | |
1456 | s%@sim_stdcall@%$sim_stdcall%g | |
1457 | s%@sim_xor_endian@%$sim_xor_endian%g | |
1458 | s%@sim_warnings@%$sim_warnings%g | |
1459 | s%@SHELL@%$SHELL%g | |
1460 | s%@CFLAGS@%$CFLAGS%g | |
1461 | s%@CPPFLAGS@%$CPPFLAGS%g | |
1462 | s%@CXXFLAGS@%$CXXFLAGS%g | |
1463 | s%@DEFS@%$DEFS%g | |
1464 | s%@LDFLAGS@%$LDFLAGS%g | |
1465 | s%@LIBS@%$LIBS%g | |
1466 | s%@exec_prefix@%$exec_prefix%g | |
1467 | s%@prefix@%$prefix%g | |
1468 | s%@program_transform_name@%$program_transform_name%g | |
1469 | s%@bindir@%$bindir%g | |
1470 | s%@sbindir@%$sbindir%g | |
1471 | s%@libexecdir@%$libexecdir%g | |
1472 | s%@datadir@%$datadir%g | |
1473 | s%@sysconfdir@%$sysconfdir%g | |
1474 | s%@sharedstatedir@%$sharedstatedir%g | |
1475 | s%@localstatedir@%$localstatedir%g | |
1476 | s%@libdir@%$libdir%g | |
1477 | s%@includedir@%$includedir%g | |
1478 | s%@oldincludedir@%$oldincludedir%g | |
1479 | s%@infodir@%$infodir%g | |
1480 | s%@mandir@%$mandir%g | |
1481 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
1482 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
1483 | s%@CC@%$CC%g | |
1484 | s%@host@%$host%g | |
1485 | s%@host_alias@%$host_alias%g | |
1486 | s%@host_cpu@%$host_cpu%g | |
1487 | s%@host_vendor@%$host_vendor%g | |
1488 | s%@host_os@%$host_os%g | |
1489 | s%@target@%$target%g | |
1490 | s%@target_alias@%$target_alias%g | |
1491 | s%@target_cpu@%$target_cpu%g | |
1492 | s%@target_vendor@%$target_vendor%g | |
1493 | s%@target_os@%$target_os%g | |
1494 | s%@build@%$build%g | |
1495 | s%@build_alias@%$build_alias%g | |
1496 | s%@build_cpu@%$build_cpu%g | |
1497 | s%@build_vendor@%$build_vendor%g | |
1498 | s%@build_os@%$build_os%g | |
1499 | s%@CPP@%$CPP%g | |
1500 | s%@AR_FOR_BUILD@%$AR_FOR_BUILD%g | |
1501 | s%@AR_FLAGS_FOR_BUILD@%$AR_FLAGS_FOR_BUILD%g | |
1502 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g | |
1503 | s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g | |
1504 | s%@RANLIB_FOR_BUILD@%$RANLIB_FOR_BUILD%g | |
1505 | s%@LIBIBERTY_LIB@%$LIBIBERTY_LIB%g | |
1506 | s%@AR@%$AR%g | |
1507 | s%@RANLIB@%$RANLIB%g | |
1508 | ||
1509 | CEOF | |
1510 | EOF | |
1511 | ||
1512 | cat >> $CONFIG_STATUS <<\EOF | |
1513 | ||
1514 | # Split the substitutions into bite-sized pieces for seds with | |
1515 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
1516 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
1517 | ac_file=1 # Number of current file. | |
1518 | ac_beg=1 # First line for current file. | |
1519 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
1520 | ac_more_lines=: | |
1521 | ac_sed_cmds="" | |
1522 | while $ac_more_lines; do | |
1523 | if test $ac_beg -gt 1; then | |
1524 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
1525 | else | |
1526 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
1527 | fi | |
1528 | if test ! -s conftest.s$ac_file; then | |
1529 | ac_more_lines=false | |
1530 | rm -f conftest.s$ac_file | |
1531 | else | |
1532 | if test -z "$ac_sed_cmds"; then | |
1533 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
1534 | else | |
1535 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
1536 | fi | |
1537 | ac_file=`expr $ac_file + 1` | |
1538 | ac_beg=$ac_end | |
1539 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
1540 | fi | |
1541 | done | |
1542 | if test -z "$ac_sed_cmds"; then | |
1543 | ac_sed_cmds=cat | |
1544 | fi | |
1545 | EOF | |
1546 | ||
1547 | cat >> $CONFIG_STATUS <<EOF | |
1548 | ||
1549 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
1550 | EOF | |
1551 | cat >> $CONFIG_STATUS <<\EOF | |
1552 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
1553 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
1554 | case "$ac_file" in | |
1555 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
1556 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
1557 | *) ac_file_in="${ac_file}.in" ;; | |
1558 | esac | |
1559 | ||
1560 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
1561 | ||
1562 | # Remove last slash and all that follows it. Not all systems have dirname. | |
1563 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
1564 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
1565 | # The file is in a subdirectory. | |
1566 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
1567 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
1568 | # A "../" for each directory in $ac_dir_suffix. | |
1569 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
1570 | else | |
1571 | ac_dir_suffix= ac_dots= | |
1572 | fi | |
1573 | ||
1574 | case "$ac_given_srcdir" in | |
1575 | .) srcdir=. | |
1576 | if test -z "$ac_dots"; then top_srcdir=. | |
1577 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
1578 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
1579 | *) # Relative path. | |
1580 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
1581 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
1582 | esac | |
1583 | ||
1584 | case "$ac_given_INSTALL" in | |
1585 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
1586 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
1587 | esac | |
1588 | ||
1589 | echo creating "$ac_file" | |
1590 | rm -f "$ac_file" | |
1591 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
1592 | case "$ac_file" in | |
1593 | *Makefile*) ac_comsub="1i\\ | |
1594 | # $configure_input" ;; | |
1595 | *) ac_comsub= ;; | |
1596 | esac | |
1597 | ||
1598 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
1599 | sed -e "$ac_comsub | |
1600 | s%@configure_input@%$configure_input%g | |
1601 | s%@srcdir@%$srcdir%g | |
1602 | s%@top_srcdir@%$top_srcdir%g | |
1603 | s%@INSTALL@%$INSTALL%g | |
1604 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
1605 | fi; done | |
1606 | rm -f conftest.s* | |
1607 | ||
1608 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
1609 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
1610 | # | |
1611 | # ac_d sets the value in "#define NAME VALUE" lines. | |
1612 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
1613 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
1614 | ac_dC='\3' | |
1615 | ac_dD='%g' | |
1616 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
1617 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
1618 | ac_uB='\([ ]\)%\1#\2define\3' | |
1619 | ac_uC=' ' | |
1620 | ac_uD='\4%g' | |
1621 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
1622 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
1623 | ac_eB='$%\1#\2define\3' | |
1624 | ac_eC=' ' | |
1625 | ac_eD='%g' | |
1626 | ||
1627 | if test "${CONFIG_HEADERS+set}" != set; then | |
1628 | EOF | |
1629 | cat >> $CONFIG_STATUS <<EOF | |
1630 | CONFIG_HEADERS="config.h:config.in" | |
1631 | EOF | |
1632 | cat >> $CONFIG_STATUS <<\EOF | |
1633 | fi | |
1634 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
1635 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
1636 | case "$ac_file" in | |
1637 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
1638 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
1639 | *) ac_file_in="${ac_file}.in" ;; | |
1640 | esac | |
1641 | ||
1642 | echo creating $ac_file | |
1643 | ||
1644 | rm -f conftest.frag conftest.in conftest.out | |
1645 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
1646 | cat $ac_file_inputs > conftest.in | |
1647 | ||
1648 | EOF | |
1649 | ||
1650 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
1651 | # the proper values into config.h.in to produce config.h. And first: | |
1652 | # Protect against being on the right side of a sed subst in config.status. | |
1653 | # Protect against being in an unquoted here document in config.status. | |
1654 | rm -f conftest.vals | |
1655 | cat > conftest.hdr <<\EOF | |
1656 | s/[\\&%]/\\&/g | |
1657 | s%[\\$`]%\\&%g | |
1658 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
1659 | s%ac_d%ac_u%gp | |
1660 | s%ac_u%ac_e%gp | |
1661 | EOF | |
1662 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
1663 | rm -f conftest.hdr | |
1664 | ||
1665 | # This sed command replaces #undef with comments. This is necessary, for | |
1666 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
1667 | # on some systems where configure will not decide to define it. | |
1668 | cat >> conftest.vals <<\EOF | |
1669 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
1670 | EOF | |
1671 | ||
1672 | # Break up conftest.vals because some shells have a limit on | |
1673 | # the size of here documents, and old seds have small limits too. | |
1674 | ||
1675 | rm -f conftest.tail | |
1676 | while : | |
1677 | do | |
1678 | ac_lines=`grep -c . conftest.vals` | |
1679 | # grep -c gives empty output for an empty file on some AIX systems. | |
1680 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
1681 | # Write a limited-size here document to conftest.frag. | |
1682 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
1683 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
1684 | echo 'CEOF | |
1685 | sed -f conftest.frag conftest.in > conftest.out | |
1686 | rm -f conftest.in | |
1687 | mv conftest.out conftest.in | |
1688 | ' >> $CONFIG_STATUS | |
1689 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
1690 | rm -f conftest.vals | |
1691 | mv conftest.tail conftest.vals | |
1692 | done | |
1693 | rm -f conftest.vals | |
1694 | ||
1695 | cat >> $CONFIG_STATUS <<\EOF | |
1696 | rm -f conftest.frag conftest.h | |
1697 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
1698 | cat conftest.in >> conftest.h | |
1699 | rm -f conftest.in | |
1700 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
1701 | echo "$ac_file is unchanged" | |
1702 | rm -f conftest.h | |
1703 | else | |
1704 | # Remove last slash and all that follows it. Not all systems have dirname. | |
1705 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
1706 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
1707 | # The file is in a subdirectory. | |
1708 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
1709 | fi | |
1710 | rm -f $ac_file | |
1711 | mv conftest.h $ac_file | |
1712 | fi | |
1713 | fi; done | |
1714 | ||
1715 | EOF | |
1716 | cat >> $CONFIG_STATUS <<EOF | |
1717 | ||
1718 | EOF | |
1719 | cat >> $CONFIG_STATUS <<\EOF | |
1720 | case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac | |
1721 | exit 0 | |
1722 | EOF | |
1723 | chmod +x $CONFIG_STATUS | |
1724 | rm -fr confdefs* $ac_clean_files | |
1725 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
1726 |