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