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