Commit | Line | Data |
---|---|---|
c906108c SS |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.13 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --enable-sim " | |
c906108c SS |
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 | |
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' | |
50 | ||
51 | # Initialize some other variables. | |
52 | subdirs= | |
53 | MFLAGS= MAKEFLAGS= | |
54 | SHELL=${CONFIG_SHELL-/bin/sh} | |
55 | # Maximum number of lines to put in a shell here document. | |
56 | ac_max_here_lines=12 | |
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 | ||
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) | |
84 | ac_prev=build ;; | |
85 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
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 | ||
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 | ||
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] | |
151 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
152 | [same as prefix] | |
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] | |
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 | |
170 | --program-transform-name=PROGRAM | |
171 | run sed PROGRAM on installed program names | |
172 | EOF | |
173 | cat << EOF | |
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 | |
185 | EOF | |
186 | if test -n "$ac_help"; then | |
187 | echo "--enable and --with options recognized:$ac_help" | |
188 | fi | |
189 | exit 0 ;; | |
190 | ||
191 | -host | --host | --hos | --ho) | |
192 | ac_prev=host ;; | |
193 | -host=* | --host=* | --hos=* | --ho=*) | |
194 | host="$ac_optarg" ;; | |
195 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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) | |
338 | echo "configure generated by autoconf version 2.13" | |
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 | ||
384 | *) | |
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. | |
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. | |
444 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
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 | |
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. | |
c2d11a7d JM |
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" | |
c906108c SS |
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. | |
506 | ac_cpp='$CPP $CPPFLAGS' | |
507 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
508 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
509 | cross_compiling=$ac_cv_prog_cc_cross | |
510 | ||
511 | ac_exeext= | |
512 | ac_objext=o | |
513 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
514 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
515 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
516 | ac_n= ac_c=' | |
517 | ' ac_t=' ' | |
518 | else | |
519 | ac_n=-n ac_c= ac_t= | |
520 | fi | |
521 | else | |
522 | ac_n= ac_c='\c' ac_t= | |
523 | fi | |
524 | ||
525 | ||
526 | ||
527 | # Extract the first word of "gcc", so it can be a program name with args. | |
528 | set dummy gcc; ac_word=$2 | |
529 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c2d11a7d | 530 | echo "configure:531: checking for $ac_word" >&5 |
c906108c SS |
531 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
533 | else | |
534 | if test -n "$CC"; then | |
535 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
536 | else | |
537 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
538 | ac_dummy="$PATH" | |
539 | for ac_dir in $ac_dummy; do | |
540 | test -z "$ac_dir" && ac_dir=. | |
541 | if test -f $ac_dir/$ac_word; then | |
542 | ac_cv_prog_CC="gcc" | |
543 | break | |
544 | fi | |
545 | done | |
546 | IFS="$ac_save_ifs" | |
547 | fi | |
548 | fi | |
549 | CC="$ac_cv_prog_CC" | |
550 | if test -n "$CC"; then | |
551 | echo "$ac_t""$CC" 1>&6 | |
552 | else | |
553 | echo "$ac_t""no" 1>&6 | |
554 | fi | |
555 | ||
556 | if test -z "$CC"; then | |
557 | # Extract the first word of "cc", so it can be a program name with args. | |
558 | set dummy cc; ac_word=$2 | |
559 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c2d11a7d | 560 | echo "configure:561: checking for $ac_word" >&5 |
c906108c SS |
561 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
563 | else | |
564 | if test -n "$CC"; then | |
565 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
566 | else | |
567 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
568 | ac_prog_rejected=no | |
569 | ac_dummy="$PATH" | |
570 | for ac_dir in $ac_dummy; do | |
571 | test -z "$ac_dir" && ac_dir=. | |
572 | if test -f $ac_dir/$ac_word; then | |
573 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
574 | ac_prog_rejected=yes | |
575 | continue | |
576 | fi | |
577 | ac_cv_prog_CC="cc" | |
578 | break | |
579 | fi | |
580 | done | |
581 | IFS="$ac_save_ifs" | |
582 | if test $ac_prog_rejected = yes; then | |
583 | # We found a bogon in the path, so make sure we never use it. | |
584 | set dummy $ac_cv_prog_CC | |
585 | shift | |
586 | if test $# -gt 0; then | |
587 | # We chose a different compiler from the bogus one. | |
588 | # However, it has the same basename, so the bogon will be chosen | |
589 | # first if we set CC to just the basename; use the full file name. | |
590 | shift | |
591 | set dummy "$ac_dir/$ac_word" "$@" | |
592 | shift | |
593 | ac_cv_prog_CC="$@" | |
594 | fi | |
595 | fi | |
596 | fi | |
597 | fi | |
598 | CC="$ac_cv_prog_CC" | |
599 | if test -n "$CC"; then | |
600 | echo "$ac_t""$CC" 1>&6 | |
601 | else | |
602 | echo "$ac_t""no" 1>&6 | |
603 | fi | |
604 | ||
605 | if test -z "$CC"; then | |
606 | case "`uname -s`" in | |
607 | *win32* | *WIN32*) | |
608 | # Extract the first word of "cl", so it can be a program name with args. | |
609 | set dummy cl; ac_word=$2 | |
610 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c2d11a7d | 611 | echo "configure:612: checking for $ac_word" >&5 |
c906108c SS |
612 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
614 | else | |
615 | if test -n "$CC"; then | |
616 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
617 | else | |
618 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
619 | ac_dummy="$PATH" | |
620 | for ac_dir in $ac_dummy; do | |
621 | test -z "$ac_dir" && ac_dir=. | |
622 | if test -f $ac_dir/$ac_word; then | |
623 | ac_cv_prog_CC="cl" | |
624 | break | |
625 | fi | |
626 | done | |
627 | IFS="$ac_save_ifs" | |
628 | fi | |
629 | fi | |
630 | CC="$ac_cv_prog_CC" | |
631 | if test -n "$CC"; then | |
632 | echo "$ac_t""$CC" 1>&6 | |
633 | else | |
634 | echo "$ac_t""no" 1>&6 | |
635 | fi | |
636 | ;; | |
637 | esac | |
638 | fi | |
639 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
640 | fi | |
641 | ||
642 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
c2d11a7d | 643 | echo "configure:644: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
c906108c SS |
644 | |
645 | ac_ext=c | |
646 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
647 | ac_cpp='$CPP $CPPFLAGS' | |
648 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
649 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
650 | cross_compiling=$ac_cv_prog_cc_cross | |
651 | ||
652 | cat > conftest.$ac_ext << EOF | |
653 | ||
c2d11a7d | 654 | #line 655 "configure" |
c906108c SS |
655 | #include "confdefs.h" |
656 | ||
657 | main(){return(0);} | |
658 | EOF | |
c2d11a7d | 659 | if { (eval echo configure:660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c906108c SS |
660 | ac_cv_prog_cc_works=yes |
661 | # If we can't run a trivial program, we are probably using a cross compiler. | |
662 | if (./conftest; exit) 2>/dev/null; then | |
663 | ac_cv_prog_cc_cross=no | |
664 | else | |
665 | ac_cv_prog_cc_cross=yes | |
666 | fi | |
667 | else | |
668 | echo "configure: failed program was:" >&5 | |
669 | cat conftest.$ac_ext >&5 | |
670 | ac_cv_prog_cc_works=no | |
671 | fi | |
672 | rm -fr conftest* | |
673 | ac_ext=c | |
674 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
675 | ac_cpp='$CPP $CPPFLAGS' | |
676 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
677 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
678 | cross_compiling=$ac_cv_prog_cc_cross | |
679 | ||
680 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
681 | if test $ac_cv_prog_cc_works = no; then | |
682 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
683 | fi | |
684 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
c2d11a7d | 685 | echo "configure:686: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
c906108c SS |
686 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
687 | cross_compiling=$ac_cv_prog_cc_cross | |
688 | ||
689 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
c2d11a7d | 690 | echo "configure:691: checking whether we are using GNU C" >&5 |
c906108c SS |
691 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
693 | else | |
694 | cat > conftest.c <<EOF | |
695 | #ifdef __GNUC__ | |
696 | yes; | |
697 | #endif | |
698 | EOF | |
c2d11a7d | 699 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
c906108c SS |
700 | ac_cv_prog_gcc=yes |
701 | else | |
702 | ac_cv_prog_gcc=no | |
703 | fi | |
704 | fi | |
705 | ||
706 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
707 | ||
708 | if test $ac_cv_prog_gcc = yes; then | |
709 | GCC=yes | |
710 | else | |
711 | GCC= | |
712 | fi | |
713 | ||
714 | ac_test_CFLAGS="${CFLAGS+set}" | |
715 | ac_save_CFLAGS="$CFLAGS" | |
716 | CFLAGS= | |
717 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
c2d11a7d | 718 | echo "configure:719: checking whether ${CC-cc} accepts -g" >&5 |
c906108c SS |
719 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
721 | else | |
722 | echo 'void f(){}' > conftest.c | |
723 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
724 | ac_cv_prog_cc_g=yes | |
725 | else | |
726 | ac_cv_prog_cc_g=no | |
727 | fi | |
728 | rm -f conftest* | |
729 | ||
730 | fi | |
731 | ||
732 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
733 | if test "$ac_test_CFLAGS" = set; then | |
734 | CFLAGS="$ac_save_CFLAGS" | |
735 | elif test $ac_cv_prog_cc_g = yes; then | |
736 | if test "$GCC" = yes; then | |
737 | CFLAGS="-g -O2" | |
738 | else | |
739 | CFLAGS="-g" | |
740 | fi | |
741 | else | |
742 | if test "$GCC" = yes; then | |
743 | CFLAGS="-O2" | |
744 | else | |
745 | CFLAGS= | |
746 | fi | |
747 | fi | |
748 | ||
749 | ac_aux_dir= | |
750 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
751 | if test -f $ac_dir/install-sh; then | |
752 | ac_aux_dir=$ac_dir | |
753 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
754 | break | |
755 | elif test -f $ac_dir/install.sh; then | |
756 | ac_aux_dir=$ac_dir | |
757 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
758 | break | |
759 | fi | |
760 | done | |
761 | if test -z "$ac_aux_dir"; then | |
762 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
763 | fi | |
764 | ac_config_guess=$ac_aux_dir/config.guess | |
765 | ac_config_sub=$ac_aux_dir/config.sub | |
766 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
767 | ||
768 | # Find a good install program. We prefer a C program (faster), | |
769 | # so one script is as good as another. But avoid the broken or | |
770 | # incompatible versions: | |
771 | # SysV /etc/install, /usr/sbin/install | |
772 | # SunOS /usr/etc/install | |
773 | # IRIX /sbin/install | |
774 | # AIX /bin/install | |
775 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
776 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
777 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
778 | # ./install, which can be erroneously created by make from ./install.sh. | |
779 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
c2d11a7d | 780 | echo "configure:781: checking for a BSD compatible install" >&5 |
c906108c SS |
781 | if test -z "$INSTALL"; then |
782 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
783 | echo $ac_n "(cached) $ac_c" 1>&6 | |
784 | else | |
785 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
786 | for ac_dir in $PATH; do | |
787 | # Account for people who put trailing slashes in PATH elements. | |
788 | case "$ac_dir/" in | |
789 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
790 | *) | |
791 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
792 | # Don't use installbsd from OSF since it installs stuff as root | |
793 | # by default. | |
794 | for ac_prog in ginstall scoinst install; do | |
795 | if test -f $ac_dir/$ac_prog; then | |
796 | if test $ac_prog = install && | |
797 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
798 | # AIX install. It has an incompatible calling convention. | |
799 | : | |
800 | else | |
801 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
802 | break 2 | |
803 | fi | |
804 | fi | |
805 | done | |
806 | ;; | |
807 | esac | |
808 | done | |
809 | IFS="$ac_save_IFS" | |
810 | ||
811 | fi | |
812 | if test "${ac_cv_path_install+set}" = set; then | |
813 | INSTALL="$ac_cv_path_install" | |
814 | else | |
815 | # As a last resort, use the slow shell script. We don't cache a | |
816 | # path for INSTALL within a source directory, because that will | |
817 | # break other packages using the cache if that directory is | |
818 | # removed, or if the path is relative. | |
819 | INSTALL="$ac_install_sh" | |
820 | fi | |
821 | fi | |
822 | echo "$ac_t""$INSTALL" 1>&6 | |
823 | ||
824 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
825 | # It thinks the first close brace ends the variable substitution. | |
826 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
827 | ||
828 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
829 | ||
830 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
831 | ||
832 | ||
833 | # Make sure we can run config.sub. | |
834 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
835 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
836 | fi | |
837 | ||
838 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
c2d11a7d | 839 | echo "configure:840: checking host system type" >&5 |
c906108c SS |
840 | |
841 | host_alias=$host | |
842 | case "$host_alias" in | |
843 | NONE) | |
844 | case $nonopt in | |
845 | NONE) | |
846 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
847 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
848 | fi ;; | |
849 | *) host_alias=$nonopt ;; | |
850 | esac ;; | |
851 | esac | |
852 | ||
853 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
854 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
855 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
856 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
857 | echo "$ac_t""$host" 1>&6 | |
858 | ||
859 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
c2d11a7d | 860 | echo "configure:861: checking build system type" >&5 |
c906108c SS |
861 | |
862 | build_alias=$build | |
863 | case "$build_alias" in | |
864 | NONE) | |
865 | case $nonopt in | |
866 | NONE) build_alias=$host_alias ;; | |
867 | *) build_alias=$nonopt ;; | |
868 | esac ;; | |
869 | esac | |
870 | ||
871 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
872 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
873 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
874 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
875 | echo "$ac_t""$build" 1>&6 | |
876 | ||
877 | if test $host != $build; then | |
878 | ac_tool_prefix=${host_alias}- | |
879 | else | |
880 | ac_tool_prefix= | |
881 | fi | |
882 | ||
883 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
884 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
885 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c2d11a7d | 886 | echo "configure:887: checking for $ac_word" >&5 |
c906108c SS |
887 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
889 | else | |
890 | if test -n "$AR"; then | |
891 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
892 | else | |
893 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
894 | ac_dummy="$PATH" | |
895 | for ac_dir in $ac_dummy; do | |
896 | test -z "$ac_dir" && ac_dir=. | |
897 | if test -f $ac_dir/$ac_word; then | |
898 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
899 | break | |
900 | fi | |
901 | done | |
902 | IFS="$ac_save_ifs" | |
903 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
904 | fi | |
905 | fi | |
906 | AR="$ac_cv_prog_AR" | |
907 | if test -n "$AR"; then | |
908 | echo "$ac_t""$AR" 1>&6 | |
909 | else | |
910 | echo "$ac_t""no" 1>&6 | |
911 | fi | |
912 | ||
913 | ||
914 | ||
915 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
916 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
917 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c2d11a7d | 918 | echo "configure:919: checking for $ac_word" >&5 |
c906108c SS |
919 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
921 | else | |
922 | if test -n "$RANLIB"; then | |
923 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
924 | else | |
925 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
926 | ac_dummy="$PATH" | |
927 | for ac_dir in $ac_dummy; do | |
928 | test -z "$ac_dir" && ac_dir=. | |
929 | if test -f $ac_dir/$ac_word; then | |
930 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
931 | break | |
932 | fi | |
933 | done | |
934 | IFS="$ac_save_ifs" | |
935 | fi | |
936 | fi | |
937 | RANLIB="$ac_cv_prog_RANLIB" | |
938 | if test -n "$RANLIB"; then | |
939 | echo "$ac_t""$RANLIB" 1>&6 | |
940 | else | |
941 | echo "$ac_t""no" 1>&6 | |
942 | fi | |
943 | ||
944 | ||
945 | if test -z "$ac_cv_prog_RANLIB"; then | |
946 | if test -n "$ac_tool_prefix"; then | |
947 | # Extract the first word of "ranlib", so it can be a program name with args. | |
948 | set dummy ranlib; ac_word=$2 | |
949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c2d11a7d | 950 | echo "configure:951: checking for $ac_word" >&5 |
c906108c SS |
951 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
953 | else | |
954 | if test -n "$RANLIB"; then | |
955 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
956 | else | |
957 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
958 | ac_dummy="$PATH" | |
959 | for ac_dir in $ac_dummy; do | |
960 | test -z "$ac_dir" && ac_dir=. | |
961 | if test -f $ac_dir/$ac_word; then | |
962 | ac_cv_prog_RANLIB="ranlib" | |
963 | break | |
964 | fi | |
965 | done | |
966 | IFS="$ac_save_ifs" | |
967 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
968 | fi | |
969 | fi | |
970 | RANLIB="$ac_cv_prog_RANLIB" | |
971 | if test -n "$RANLIB"; then | |
972 | echo "$ac_t""$RANLIB" 1>&6 | |
973 | else | |
974 | echo "$ac_t""no" 1>&6 | |
975 | fi | |
976 | ||
977 | else | |
978 | RANLIB=":" | |
979 | fi | |
980 | fi | |
981 | ||
982 | ||
983 | ac_aux_dir= | |
984 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
985 | if test -f $ac_dir/install-sh; then | |
986 | ac_aux_dir=$ac_dir | |
987 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
988 | break | |
989 | elif test -f $ac_dir/install.sh; then | |
990 | ac_aux_dir=$ac_dir | |
991 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
992 | break | |
993 | fi | |
994 | done | |
995 | if test -z "$ac_aux_dir"; then | |
996 | { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; } | |
997 | fi | |
998 | ac_config_guess=$ac_aux_dir/config.guess | |
999 | ac_config_sub=$ac_aux_dir/config.sub | |
1000 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
1001 | ||
1002 | ||
1003 | # Do some error checking and defaulting for the host and target type. | |
1004 | # The inputs are: | |
1005 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
1006 | # | |
1007 | # The rules are: | |
1008 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
1009 | # same time. | |
1010 | # 2. Host defaults to nonopt. | |
1011 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1012 | # as determined by config.guess. | |
1013 | # 4. Target and build default to nonopt. | |
1014 | # 5. If nonopt is not specified, then target and build default to host. | |
1015 | ||
1016 | # The aliases save the names the user supplied, while $host etc. | |
1017 | # will get canonicalized. | |
1018 | case $host---$target---$nonopt in | |
1019 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1020 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1021 | esac | |
1022 | ||
1023 | ||
1024 | # Make sure we can run config.sub. | |
1025 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1026 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1027 | fi | |
1028 | ||
1029 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
c2d11a7d | 1030 | echo "configure:1031: checking host system type" >&5 |
c906108c SS |
1031 | |
1032 | host_alias=$host | |
1033 | case "$host_alias" in | |
1034 | NONE) | |
1035 | case $nonopt in | |
1036 | NONE) | |
1037 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1038 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1039 | fi ;; | |
1040 | *) host_alias=$nonopt ;; | |
1041 | esac ;; | |
1042 | esac | |
1043 | ||
1044 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1045 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1046 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1047 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1048 | echo "$ac_t""$host" 1>&6 | |
1049 | ||
1050 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
c2d11a7d | 1051 | echo "configure:1052: checking target system type" >&5 |
c906108c SS |
1052 | |
1053 | target_alias=$target | |
1054 | case "$target_alias" in | |
1055 | NONE) | |
1056 | case $nonopt in | |
1057 | NONE) target_alias=$host_alias ;; | |
1058 | *) target_alias=$nonopt ;; | |
1059 | esac ;; | |
1060 | esac | |
1061 | ||
1062 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1063 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1064 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1065 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1066 | echo "$ac_t""$target" 1>&6 | |
1067 | ||
1068 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
c2d11a7d | 1069 | echo "configure:1070: checking build system type" >&5 |
c906108c SS |
1070 | |
1071 | build_alias=$build | |
1072 | case "$build_alias" in | |
1073 | NONE) | |
1074 | case $nonopt in | |
1075 | NONE) build_alias=$host_alias ;; | |
1076 | *) build_alias=$nonopt ;; | |
1077 | esac ;; | |
1078 | esac | |
1079 | ||
1080 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1081 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1082 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1083 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1084 | echo "$ac_t""$build" 1>&6 | |
1085 | ||
1086 | test "$host_alias" != "$target_alias" && | |
1087 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1088 | NONENONEs,x,x, && | |
1089 | program_prefix=${target_alias}- | |
1090 | ||
1091 | if test "$program_transform_name" = s,x,x,; then | |
1092 | program_transform_name= | |
1093 | else | |
1094 | # Double any \ or $. echo might interpret backslashes. | |
1095 | cat <<\EOF_SED > conftestsed | |
1096 | s,\\,\\\\,g; s,\$,$$,g | |
1097 | EOF_SED | |
1098 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
1099 | rm -f conftestsed | |
1100 | fi | |
1101 | test "$program_prefix" != NONE && | |
1102 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
1103 | # Use a double $ so make ignores it. | |
1104 | test "$program_suffix" != NONE && | |
1105 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
1106 | ||
1107 | # sed with no file args requires a program. | |
1108 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
1109 | ||
1110 | # Extract the first word of "gcc", so it can be a program name with args. | |
1111 | set dummy gcc; ac_word=$2 | |
1112 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c2d11a7d | 1113 | echo "configure:1114: checking for $ac_word" >&5 |
c906108c SS |
1114 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1116 | else | |
1117 | if test -n "$CC"; then | |
1118 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1119 | else | |
1120 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1121 | ac_dummy="$PATH" | |
1122 | for ac_dir in $ac_dummy; do | |
1123 | test -z "$ac_dir" && ac_dir=. | |
1124 | if test -f $ac_dir/$ac_word; then | |
1125 | ac_cv_prog_CC="gcc" | |
1126 | break | |
1127 | fi | |
1128 | done | |
1129 | IFS="$ac_save_ifs" | |
1130 | fi | |
1131 | fi | |
1132 | CC="$ac_cv_prog_CC" | |
1133 | if test -n "$CC"; then | |
1134 | echo "$ac_t""$CC" 1>&6 | |
1135 | else | |
1136 | echo "$ac_t""no" 1>&6 | |
1137 | fi | |
1138 | ||
1139 | if test -z "$CC"; then | |
1140 | # Extract the first word of "cc", so it can be a program name with args. | |
1141 | set dummy cc; ac_word=$2 | |
1142 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c2d11a7d | 1143 | echo "configure:1144: checking for $ac_word" >&5 |
c906108c SS |
1144 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1146 | else | |
1147 | if test -n "$CC"; then | |
1148 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1149 | else | |
1150 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1151 | ac_prog_rejected=no | |
1152 | ac_dummy="$PATH" | |
1153 | for ac_dir in $ac_dummy; do | |
1154 | test -z "$ac_dir" && ac_dir=. | |
1155 | if test -f $ac_dir/$ac_word; then | |
1156 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1157 | ac_prog_rejected=yes | |
1158 | continue | |
1159 | fi | |
1160 | ac_cv_prog_CC="cc" | |
1161 | break | |
1162 | fi | |
1163 | done | |
1164 | IFS="$ac_save_ifs" | |
1165 | if test $ac_prog_rejected = yes; then | |
1166 | # We found a bogon in the path, so make sure we never use it. | |
1167 | set dummy $ac_cv_prog_CC | |
1168 | shift | |
1169 | if test $# -gt 0; then | |
1170 | # We chose a different compiler from the bogus one. | |
1171 | # However, it has the same basename, so the bogon will be chosen | |
1172 | # first if we set CC to just the basename; use the full file name. | |
1173 | shift | |
1174 | set dummy "$ac_dir/$ac_word" "$@" | |
1175 | shift | |
1176 | ac_cv_prog_CC="$@" | |
1177 | fi | |
1178 | fi | |
1179 | fi | |
1180 | fi | |
1181 | CC="$ac_cv_prog_CC" | |
1182 | if test -n "$CC"; then | |
1183 | echo "$ac_t""$CC" 1>&6 | |
1184 | else | |
1185 | echo "$ac_t""no" 1>&6 | |
1186 | fi | |
1187 | ||
1188 | if test -z "$CC"; then | |
1189 | case "`uname -s`" in | |
1190 | *win32* | *WIN32*) | |
1191 | # Extract the first word of "cl", so it can be a program name with args. | |
1192 | set dummy cl; ac_word=$2 | |
1193 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c2d11a7d | 1194 | echo "configure:1195: checking for $ac_word" >&5 |
c906108c SS |
1195 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1197 | else | |
1198 | if test -n "$CC"; then | |
1199 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1200 | else | |
1201 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1202 | ac_dummy="$PATH" | |
1203 | for ac_dir in $ac_dummy; do | |
1204 | test -z "$ac_dir" && ac_dir=. | |
1205 | if test -f $ac_dir/$ac_word; then | |
1206 | ac_cv_prog_CC="cl" | |
1207 | break | |
1208 | fi | |
1209 | done | |
1210 | IFS="$ac_save_ifs" | |
1211 | fi | |
1212 | fi | |
1213 | CC="$ac_cv_prog_CC" | |
1214 | if test -n "$CC"; then | |
1215 | echo "$ac_t""$CC" 1>&6 | |
1216 | else | |
1217 | echo "$ac_t""no" 1>&6 | |
1218 | fi | |
1219 | ;; | |
1220 | esac | |
1221 | fi | |
1222 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1223 | fi | |
1224 | ||
1225 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
c2d11a7d | 1226 | echo "configure:1227: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
c906108c SS |
1227 | |
1228 | ac_ext=c | |
1229 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1230 | ac_cpp='$CPP $CPPFLAGS' | |
1231 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1232 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1233 | cross_compiling=$ac_cv_prog_cc_cross | |
1234 | ||
1235 | cat > conftest.$ac_ext << EOF | |
1236 | ||
c2d11a7d | 1237 | #line 1238 "configure" |
c906108c SS |
1238 | #include "confdefs.h" |
1239 | ||
1240 | main(){return(0);} | |
1241 | EOF | |
c2d11a7d | 1242 | if { (eval echo configure:1243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c906108c SS |
1243 | ac_cv_prog_cc_works=yes |
1244 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1245 | if (./conftest; exit) 2>/dev/null; then | |
1246 | ac_cv_prog_cc_cross=no | |
1247 | else | |
1248 | ac_cv_prog_cc_cross=yes | |
1249 | fi | |
1250 | else | |
1251 | echo "configure: failed program was:" >&5 | |
1252 | cat conftest.$ac_ext >&5 | |
1253 | ac_cv_prog_cc_works=no | |
1254 | fi | |
1255 | rm -fr conftest* | |
1256 | ac_ext=c | |
1257 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1258 | ac_cpp='$CPP $CPPFLAGS' | |
1259 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1260 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1261 | cross_compiling=$ac_cv_prog_cc_cross | |
1262 | ||
1263 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1264 | if test $ac_cv_prog_cc_works = no; then | |
1265 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1266 | fi | |
1267 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
c2d11a7d | 1268 | echo "configure:1269: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
c906108c SS |
1269 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1270 | cross_compiling=$ac_cv_prog_cc_cross | |
1271 | ||
1272 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
c2d11a7d | 1273 | echo "configure:1274: checking whether we are using GNU C" >&5 |
c906108c SS |
1274 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1276 | else | |
1277 | cat > conftest.c <<EOF | |
1278 | #ifdef __GNUC__ | |
1279 | yes; | |
1280 | #endif | |
1281 | EOF | |
c2d11a7d | 1282 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
c906108c SS |
1283 | ac_cv_prog_gcc=yes |
1284 | else | |
1285 | ac_cv_prog_gcc=no | |
1286 | fi | |
1287 | fi | |
1288 | ||
1289 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1290 | ||
1291 | if test $ac_cv_prog_gcc = yes; then | |
1292 | GCC=yes | |
1293 | else | |
1294 | GCC= | |
1295 | fi | |
1296 | ||
1297 | ac_test_CFLAGS="${CFLAGS+set}" | |
1298 | ac_save_CFLAGS="$CFLAGS" | |
1299 | CFLAGS= | |
1300 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
c2d11a7d | 1301 | echo "configure:1302: checking whether ${CC-cc} accepts -g" >&5 |
c906108c SS |
1302 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1303 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1304 | else | |
1305 | echo 'void f(){}' > conftest.c | |
1306 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1307 | ac_cv_prog_cc_g=yes | |
1308 | else | |
1309 | ac_cv_prog_cc_g=no | |
1310 | fi | |
1311 | rm -f conftest* | |
1312 | ||
1313 | fi | |
1314 | ||
1315 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1316 | if test "$ac_test_CFLAGS" = set; then | |
1317 | CFLAGS="$ac_save_CFLAGS" | |
1318 | elif test $ac_cv_prog_cc_g = yes; then | |
1319 | if test "$GCC" = yes; then | |
1320 | CFLAGS="-g -O2" | |
1321 | else | |
1322 | CFLAGS="-g" | |
1323 | fi | |
1324 | else | |
1325 | if test "$GCC" = yes; then | |
1326 | CFLAGS="-O2" | |
1327 | else | |
1328 | CFLAGS= | |
1329 | fi | |
1330 | fi | |
1331 | ||
1332 | ||
1333 | ||
1334 | AR=${AR-ar} | |
1335 | ||
1336 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1337 | set dummy ranlib; ac_word=$2 | |
1338 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c2d11a7d | 1339 | echo "configure:1340: checking for $ac_word" >&5 |
c906108c SS |
1340 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1342 | else | |
1343 | if test -n "$RANLIB"; then | |
1344 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1345 | else | |
1346 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1347 | ac_dummy="$PATH" | |
1348 | for ac_dir in $ac_dummy; do | |
1349 | test -z "$ac_dir" && ac_dir=. | |
1350 | if test -f $ac_dir/$ac_word; then | |
1351 | ac_cv_prog_RANLIB="ranlib" | |
1352 | break | |
1353 | fi | |
1354 | done | |
1355 | IFS="$ac_save_ifs" | |
1356 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1357 | fi | |
1358 | fi | |
1359 | RANLIB="$ac_cv_prog_RANLIB" | |
1360 | if test -n "$RANLIB"; then | |
1361 | echo "$ac_t""$RANLIB" 1>&6 | |
1362 | else | |
1363 | echo "$ac_t""no" 1>&6 | |
1364 | fi | |
1365 | ||
1366 | ||
1367 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
c906108c SS |
1368 | if test "x$cross_compiling" = "xno"; then |
1369 | CC_FOR_BUILD='$(CC)' | |
1370 | else | |
1371 | CC_FOR_BUILD=gcc | |
1372 | fi | |
1373 | ||
1374 | ||
1375 | # If a cpu ever has more than one simulator to choose from, use | |
1376 | # --enable-sim=... to choose. | |
1377 | # Check whether --enable-sim or --disable-sim was given. | |
1378 | if test "${enable_sim+set}" = set; then | |
1379 | enableval="$enable_sim" | |
1380 | case "${enableval}" in | |
1381 | yes | no) ;; | |
1382 | *) { echo "configure: error: bad value ${enableval} given for --enable-sim option" 1>&2; exit 1; } ;; | |
1383 | esac | |
1384 | fi | |
1385 | ||
1386 | ||
1387 | # Assume simulator can be built with cc. | |
1388 | # If the user passes --enable-sim built it regardless of $(CC). | |
1389 | only_if_gcc=no | |
1390 | only_if_enabled=no | |
1391 | extra_subdirs=common | |
1392 | ||
1393 | # WHEN ADDING ENTRIES TO THIS MATRIX: | |
1394 | # Make sure that the left side always has two dashes. Otherwise you | |
1395 | # can get spurious matches. Even for unambiguous cases, do this as a | |
1396 | # convention, else the table becomes a real mess to understand and maintain. | |
1397 | ||
1398 | case "${target}" in | |
2acceee2 | 1399 | arm*-*-* | thumb*-*-*) |
6426a772 JM |
1400 | sim_target=arm |
1401 | extra_subdirs="${extra_subdirs} testsuite" | |
1402 | ;; | |
c906108c | 1403 | strongarm*-*-*) sim_target=arm ;; |
c906108c SS |
1404 | d10v-*-*) sim_target=d10v ;; |
1405 | d30v-*-*) | |
1406 | sim_target=d30v | |
1407 | only_if_gcc=yes | |
1408 | extra_subdirs="${extra_subdirs} igen" | |
1409 | ;; | |
1410 | fr30-*-*) sim_target=fr30 ;; | |
1411 | h8300*-*-*) sim_target=h8300 ;; | |
1412 | h8500-*-*) sim_target=h8500 ;; | |
1413 | i960-*-*) sim_target=i960 ;; | |
1414 | m32r-*-*) sim_target=m32r ;; | |
7a292a7a | 1415 | mcore-*-*) sim_target=mcore ;; |
c906108c SS |
1416 | mips*-*-*) |
1417 | # The MIPS simulator can only be compiled by gcc. | |
1418 | sim_target=mips | |
1419 | only_if_gcc=yes | |
1420 | extra_subdirs="${extra_subdirs} igen" | |
1421 | ;; | |
1422 | mn10300*-*-*) | |
1423 | # The mn10300 simulator can only be compiled by gcc. | |
1424 | sim_target=mn10300 | |
1425 | only_if_gcc=yes | |
1426 | extra_subdirs="${extra_subdirs} igen" | |
1427 | ;; | |
1428 | mn10200*-*-*) | |
1429 | sim_target=mn10200 | |
1430 | ;; | |
1431 | sh*-*-*) sim_target=sh ;; | |
1432 | powerpc*-*-eabi* | powerpc*-*-solaris* | powerpc*-*-sysv4* | powerpc*-*-elf* | powerpc*-*-linux* ) | |
1433 | # The PowerPC simulator uses the GCC extension long long as well as | |
1434 | # ANSI prototypes, so don't enable it for random host compilers | |
1435 | # unless asked to. | |
1436 | sim_target=ppc | |
1437 | only_if_gcc=yes | |
1438 | #extra_subdirs="${extra_subdirs}" | |
1439 | ;; | |
1440 | v850-*-*) | |
1441 | # The V850 simulator can only be compiled by gcc. | |
1442 | sim_target=v850 | |
1443 | extra_subdirs="${extra_subdirs} igen" | |
1444 | only_if_gcc=yes | |
1445 | ;; | |
1446 | v850e-*-*) | |
1447 | # The V850 simulator can only be compiled by gcc. | |
1448 | sim_target=v850 | |
1449 | extra_subdirs="${extra_subdirs} igen" | |
1450 | only_if_gcc=yes | |
1451 | ;; | |
1452 | v850ea-*-*) | |
1453 | # The V850 simulator can only be compiled by gcc. | |
1454 | sim_target=v850 | |
1455 | extra_subdirs="${extra_subdirs} igen" | |
1456 | only_if_gcc=yes | |
1457 | ;; | |
1458 | w65-*-*) | |
1459 | sim_target=w65 | |
1460 | # The w65 is suffering from gradual decay. | |
1461 | only_if_enabled=yes | |
1462 | ;; | |
1463 | z8k*-*-*) sim_target=z8k ;; | |
1464 | sparc64-*-*) | |
1465 | only_if_gcc=yes | |
7a292a7a | 1466 | sim_target=none # Don't build erc32 if sparc64. |
c906108c SS |
1467 | ;; |
1468 | sparclite*-*-* | sparc86x*-*-*) | |
1469 | # The SPARC simulator can only be compiled by gcc. | |
1470 | only_if_gcc=yes | |
7a292a7a | 1471 | sim_target=erc32 |
c906108c SS |
1472 | ;; |
1473 | sparc*-*-*) | |
1474 | # The SPARC simulator can only be compiled by gcc. | |
1475 | only_if_gcc=yes | |
7a292a7a SS |
1476 | # Unfortunately erc32 won't build on many hosts, so only enable |
1477 | # it if the user really really wants it. | |
1478 | only_if_enabled=yes | |
1479 | sim_target=erc32 | |
c906108c SS |
1480 | ;; |
1481 | *) sim_target=none ;; | |
1482 | esac | |
1483 | ||
1484 | ||
c906108c SS |
1485 | # Is there a testsuite directory for the target? |
1486 | testdir=`echo ${target} | sed -e 's/-.*-/-/'` | |
1487 | if test -r ${srcdir}/testsuite/${testdir}/configure ; then | |
1488 | extra_subdirs="${extra_subdirs} testsuite" | |
1489 | fi | |
1490 | ||
1491 | ||
1492 | case "${enable_sim}" in | |
1493 | no) sim_target=none ;; | |
1494 | yes) | |
1495 | if test ${only_if_gcc} = yes ; then | |
1496 | if test "${GCC}" != yes ; then | |
1497 | echo "Can't enable simulator since not compiling with GCC." | |
1498 | sim_target=none | |
1499 | fi | |
1500 | fi | |
1501 | ;; | |
1502 | *) | |
1503 | if test ${only_if_enabled} = yes ; then | |
1504 | sim_target=none | |
1505 | else | |
1506 | if test ${only_if_gcc} = yes ; then | |
1507 | if test "${GCC}" != yes ; then | |
1508 | sim_target=none | |
1509 | fi | |
1510 | fi | |
1511 | fi | |
1512 | ;; | |
1513 | esac | |
1514 | ||
1515 | if test x"${sim_target}" != xnone ; then | |
1516 | configdirs="${extra_subdirs} ${sim_target}" | |
1517 | subdirs="$configdirs" | |
1518 | ||
1519 | fi | |
1520 | ||
1521 | trap '' 1 2 15 | |
1522 | cat > confcache <<\EOF | |
1523 | # This file is a shell script that caches the results of configure | |
1524 | # tests run on this system so they can be shared between configure | |
1525 | # scripts and configure runs. It is not useful on other systems. | |
1526 | # If it contains results you don't want to keep, you may remove or edit it. | |
1527 | # | |
1528 | # By default, configure uses ./config.cache as the cache file, | |
1529 | # creating it if it does not exist already. You can give configure | |
1530 | # the --cache-file=FILE option to use a different cache file; that is | |
1531 | # what configure does when it calls configure scripts in | |
1532 | # subdirectories, so they share the cache. | |
1533 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
1534 | # config.status only pays attention to the cache file if you give it the | |
1535 | # --recheck option to rerun configure. | |
1536 | # | |
1537 | EOF | |
1538 | # The following way of writing the cache mishandles newlines in values, | |
1539 | # but we know of no workaround that is simple, portable, and efficient. | |
1540 | # So, don't put newlines in cache variables' values. | |
1541 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
1542 | # and sets the high bit in the cache file unless we assign to the vars. | |
1543 | (set) 2>&1 | | |
1544 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
1545 | *ac_space=\ *) | |
1546 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
1547 | # turns \\\\ into \\, and sed turns \\ into \). | |
1548 | sed -n \ | |
1549 | -e "s/'/'\\\\''/g" \ | |
1550 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
1551 | ;; | |
1552 | *) | |
1553 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
1554 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
1555 | ;; | |
1556 | esac >> confcache | |
1557 | if cmp -s $cache_file confcache; then | |
1558 | : | |
1559 | else | |
1560 | if test -w $cache_file; then | |
1561 | echo "updating cache $cache_file" | |
1562 | cat confcache > $cache_file | |
1563 | else | |
1564 | echo "not updating unwritable cache $cache_file" | |
1565 | fi | |
1566 | fi | |
1567 | rm -f confcache | |
1568 | ||
1569 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
1570 | ||
1571 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
1572 | # Let make expand exec_prefix. | |
1573 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
1574 | ||
1575 | # Any assignment to VPATH causes Sun make to only execute | |
1576 | # the first set of double-colon rules, so remove it if not needed. | |
1577 | # If there is a colon in the path, we need to keep it. | |
1578 | if test "x$srcdir" = x.; then | |
1579 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
1580 | fi | |
1581 | ||
1582 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
1583 | ||
1584 | # Transform confdefs.h into DEFS. | |
1585 | # Protect against shell expansion while executing Makefile rules. | |
1586 | # Protect against Makefile macro expansion. | |
1587 | cat > conftest.defs <<\EOF | |
1588 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
1589 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
1590 | s%\[%\\&%g | |
1591 | s%\]%\\&%g | |
1592 | s%\$%$$%g | |
1593 | EOF | |
1594 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
1595 | rm -f conftest.defs | |
1596 | ||
1597 | ||
1598 | # Without the "./", some shells look in PATH for config.status. | |
1599 | : ${CONFIG_STATUS=./config.status} | |
1600 | ||
1601 | echo creating $CONFIG_STATUS | |
1602 | rm -f $CONFIG_STATUS | |
1603 | cat > $CONFIG_STATUS <<EOF | |
1604 | #! /bin/sh | |
1605 | # Generated automatically by configure. | |
1606 | # Run this file to recreate the current configuration. | |
1607 | # This directory was configured as follows, | |
1608 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
1609 | # | |
1610 | # $0 $ac_configure_args | |
1611 | # | |
1612 | # Compiler output produced by configure, useful for debugging | |
1613 | # configure, is in ./config.log if it exists. | |
1614 | ||
1615 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
1616 | for ac_option | |
1617 | do | |
1618 | case "\$ac_option" in | |
1619 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
1620 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
1621 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
1622 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
1623 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
1624 | exit 0 ;; | |
1625 | -help | --help | --hel | --he | --h) | |
1626 | echo "\$ac_cs_usage"; exit 0 ;; | |
1627 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
1628 | esac | |
1629 | done | |
1630 | ||
1631 | ac_given_srcdir=$srcdir | |
1632 | ac_given_INSTALL="$INSTALL" | |
1633 | ||
1634 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1635 | EOF | |
1636 | cat >> $CONFIG_STATUS <<EOF | |
1637 | ||
1638 | # Protect against being on the right side of a sed subst in config.status. | |
1639 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
1640 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
1641 | $ac_vpsub | |
1642 | $extrasub | |
1643 | s%@SHELL@%$SHELL%g | |
1644 | s%@CFLAGS@%$CFLAGS%g | |
1645 | s%@CPPFLAGS@%$CPPFLAGS%g | |
1646 | s%@CXXFLAGS@%$CXXFLAGS%g | |
1647 | s%@FFLAGS@%$FFLAGS%g | |
1648 | s%@DEFS@%$DEFS%g | |
1649 | s%@LDFLAGS@%$LDFLAGS%g | |
1650 | s%@LIBS@%$LIBS%g | |
1651 | s%@exec_prefix@%$exec_prefix%g | |
1652 | s%@prefix@%$prefix%g | |
1653 | s%@program_transform_name@%$program_transform_name%g | |
1654 | s%@bindir@%$bindir%g | |
1655 | s%@sbindir@%$sbindir%g | |
1656 | s%@libexecdir@%$libexecdir%g | |
1657 | s%@datadir@%$datadir%g | |
1658 | s%@sysconfdir@%$sysconfdir%g | |
1659 | s%@sharedstatedir@%$sharedstatedir%g | |
1660 | s%@localstatedir@%$localstatedir%g | |
1661 | s%@libdir@%$libdir%g | |
1662 | s%@includedir@%$includedir%g | |
1663 | s%@oldincludedir@%$oldincludedir%g | |
1664 | s%@infodir@%$infodir%g | |
1665 | s%@mandir@%$mandir%g | |
1666 | s%@CC@%$CC%g | |
1667 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
1668 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
1669 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
1670 | s%@host@%$host%g | |
1671 | s%@host_alias@%$host_alias%g | |
1672 | s%@host_cpu@%$host_cpu%g | |
1673 | s%@host_vendor@%$host_vendor%g | |
1674 | s%@host_os@%$host_os%g | |
1675 | s%@build@%$build%g | |
1676 | s%@build_alias@%$build_alias%g | |
1677 | s%@build_cpu@%$build_cpu%g | |
1678 | s%@build_vendor@%$build_vendor%g | |
1679 | s%@build_os@%$build_os%g | |
1680 | s%@AR@%$AR%g | |
1681 | s%@RANLIB@%$RANLIB%g | |
1682 | s%@target@%$target%g | |
1683 | s%@target_alias@%$target_alias%g | |
1684 | s%@target_cpu@%$target_cpu%g | |
1685 | s%@target_vendor@%$target_vendor%g | |
1686 | s%@target_os@%$target_os%g | |
1687 | s%@HDEFINES@%$HDEFINES%g | |
1688 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g | |
1689 | s%@subdirs@%$subdirs%g | |
1690 | ||
1691 | CEOF | |
1692 | EOF | |
1693 | ||
1694 | cat >> $CONFIG_STATUS <<\EOF | |
1695 | ||
1696 | # Split the substitutions into bite-sized pieces for seds with | |
1697 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
1698 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
1699 | ac_file=1 # Number of current file. | |
1700 | ac_beg=1 # First line for current file. | |
1701 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
1702 | ac_more_lines=: | |
1703 | ac_sed_cmds="" | |
1704 | while $ac_more_lines; do | |
1705 | if test $ac_beg -gt 1; then | |
1706 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
1707 | else | |
1708 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
1709 | fi | |
1710 | if test ! -s conftest.s$ac_file; then | |
1711 | ac_more_lines=false | |
1712 | rm -f conftest.s$ac_file | |
1713 | else | |
1714 | if test -z "$ac_sed_cmds"; then | |
1715 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
1716 | else | |
1717 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
1718 | fi | |
1719 | ac_file=`expr $ac_file + 1` | |
1720 | ac_beg=$ac_end | |
1721 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
1722 | fi | |
1723 | done | |
1724 | if test -z "$ac_sed_cmds"; then | |
1725 | ac_sed_cmds=cat | |
1726 | fi | |
1727 | EOF | |
1728 | ||
1729 | cat >> $CONFIG_STATUS <<EOF | |
1730 | ||
1731 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
1732 | EOF | |
1733 | cat >> $CONFIG_STATUS <<\EOF | |
1734 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
1735 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
1736 | case "$ac_file" in | |
1737 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
1738 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
1739 | *) ac_file_in="${ac_file}.in" ;; | |
1740 | esac | |
1741 | ||
1742 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
1743 | ||
1744 | # Remove last slash and all that follows it. Not all systems have dirname. | |
1745 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
1746 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
1747 | # The file is in a subdirectory. | |
1748 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
1749 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
1750 | # A "../" for each directory in $ac_dir_suffix. | |
1751 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
1752 | else | |
1753 | ac_dir_suffix= ac_dots= | |
1754 | fi | |
1755 | ||
1756 | case "$ac_given_srcdir" in | |
1757 | .) srcdir=. | |
1758 | if test -z "$ac_dots"; then top_srcdir=. | |
1759 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
1760 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
1761 | *) # Relative path. | |
1762 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
1763 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
1764 | esac | |
1765 | ||
1766 | case "$ac_given_INSTALL" in | |
1767 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
1768 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
1769 | esac | |
1770 | ||
1771 | echo creating "$ac_file" | |
1772 | rm -f "$ac_file" | |
1773 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
1774 | case "$ac_file" in | |
1775 | *Makefile*) ac_comsub="1i\\ | |
1776 | # $configure_input" ;; | |
1777 | *) ac_comsub= ;; | |
1778 | esac | |
1779 | ||
1780 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
1781 | sed -e "$ac_comsub | |
1782 | s%@configure_input@%$configure_input%g | |
1783 | s%@srcdir@%$srcdir%g | |
1784 | s%@top_srcdir@%$top_srcdir%g | |
1785 | s%@INSTALL@%$INSTALL%g | |
1786 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
1787 | fi; done | |
1788 | rm -f conftest.s* | |
1789 | ||
1790 | EOF | |
1791 | cat >> $CONFIG_STATUS <<EOF | |
1792 | ||
1793 | EOF | |
1794 | cat >> $CONFIG_STATUS <<\EOF | |
1795 | ||
1796 | exit 0 | |
1797 | EOF | |
1798 | chmod +x $CONFIG_STATUS | |
1799 | rm -fr confdefs* $ac_clean_files | |
1800 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
1801 | ||
1802 | if test "$no_recursion" != yes; then | |
1803 | ||
1804 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
1805 | ac_sub_configure_args= | |
1806 | ac_prev= | |
1807 | for ac_arg in $ac_configure_args; do | |
1808 | if test -n "$ac_prev"; then | |
1809 | ac_prev= | |
1810 | continue | |
1811 | fi | |
1812 | case "$ac_arg" in | |
1813 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1814 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1815 | ac_prev=cache_file ;; | |
1816 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1817 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1818 | ;; | |
1819 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1820 | ac_prev=srcdir ;; | |
1821 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1822 | ;; | |
1823 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
1824 | esac | |
1825 | done | |
1826 | ||
1827 | for ac_config_dir in $configdirs; do | |
1828 | ||
1829 | # Do not complain, so a configure script can configure whichever | |
1830 | # parts of a large source tree are present. | |
1831 | if test ! -d $srcdir/$ac_config_dir; then | |
1832 | continue | |
1833 | fi | |
1834 | ||
1835 | echo configuring in $ac_config_dir | |
1836 | ||
1837 | case "$srcdir" in | |
1838 | .) ;; | |
1839 | *) | |
1840 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
1841 | else | |
1842 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
1843 | fi | |
1844 | ;; | |
1845 | esac | |
1846 | ||
1847 | ac_popdir=`pwd` | |
1848 | cd $ac_config_dir | |
1849 | ||
1850 | # A "../" for each directory in /$ac_config_dir. | |
1851 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
1852 | ||
1853 | case "$srcdir" in | |
1854 | .) # No --srcdir option. We are building in place. | |
1855 | ac_sub_srcdir=$srcdir ;; | |
1856 | /*) # Absolute path. | |
1857 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
1858 | *) # Relative path. | |
1859 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
1860 | esac | |
1861 | ||
1862 | # Check for guested configure; otherwise get Cygnus style configure. | |
1863 | if test -f $ac_sub_srcdir/configure; then | |
1864 | ac_sub_configure=$ac_sub_srcdir/configure | |
1865 | elif test -f $ac_sub_srcdir/configure.in; then | |
1866 | ac_sub_configure=$ac_configure | |
1867 | else | |
1868 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
1869 | ac_sub_configure= | |
1870 | fi | |
1871 | ||
1872 | # The recursion is here. | |
1873 | if test -n "$ac_sub_configure"; then | |
1874 | ||
1875 | # Make the cache file name correct relative to the subdirectory. | |
1876 | case "$cache_file" in | |
1877 | /*) ac_sub_cache_file=$cache_file ;; | |
1878 | *) # Relative path. | |
1879 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
1880 | esac | |
1881 | case "$ac_given_INSTALL" in | |
1882 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
1883 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
1884 | esac | |
1885 | ||
1886 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
1887 | # The eval makes quoting arguments work. | |
1888 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
1889 | then : | |
1890 | else | |
1891 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
1892 | fi | |
1893 | fi | |
1894 | ||
1895 | cd $ac_popdir | |
1896 | done | |
1897 | fi | |
1898 | ||
1899 | ||
1900 | exit 0 |