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