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