3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-sim-bswap Use Host specific BSWAP instruction."
17 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
19 --enable-sim-debug=opts Enable debugging flags"
21 --enable-sim-stdio Specify whether to use stdio for console input/output."
23 --enable-sim-trace=opts Enable tracing flags"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file
=.
/config.cache
38 program_transform_name
=s
,x
,x
,
46 bindir
='${exec_prefix}/bin'
47 sbindir
='${exec_prefix}/sbin'
48 libexecdir
='${exec_prefix}/libexec'
49 datadir
='${prefix}/share'
50 sysconfdir
='${prefix}/etc'
51 sharedstatedir
='${prefix}/com'
52 localstatedir
='${prefix}/var'
53 libdir
='${exec_prefix}/lib'
54 includedir
='${prefix}/include'
55 oldincludedir
='/usr/include'
56 infodir
='${prefix}/info'
57 mandir
='${prefix}/man'
59 # Initialize some other variables.
62 # Maximum number of lines to put in a shell here document.
69 # If the previous option needs an argument, assign it.
70 if test -n "$ac_prev"; then
71 eval "$ac_prev=\$ac_option"
77 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 # Accept the important Cygnus configure options, so we can diagnose typos.
85 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
87 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
88 bindir
="$ac_optarg" ;;
90 -build |
--build |
--buil |
--bui |
--bu)
92 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
95 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
96 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
98 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
99 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
100 cache_file
="$ac_optarg" ;;
102 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
104 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
106 datadir
="$ac_optarg" ;;
108 -disable-* |
--disable-*)
109 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
115 eval "enable_${ac_feature}=no" ;;
117 -enable-* |
--enable-*)
118 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}='$ac_optarg'" ;;
130 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
131 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
132 |
--exec |
--exe |
--ex)
133 ac_prev
=exec_prefix
;;
134 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
135 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
136 |
--exec=* |
--exe=* |
--ex=*)
137 exec_prefix
="$ac_optarg" ;;
139 -gas |
--gas |
--ga |
--g)
140 # Obsolete; use --with-gas.
143 -help |
--help |
--hel |
--he)
144 # Omit some internal or obsolete options to make the list less imposing.
145 # This message is too long to be a string in the A/UX 3.1 sh.
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
150 --cache-file=FILE cache test results in FILE
151 --help print this message
152 --no-create do not create output files
153 --quiet, --silent do not print \`checking...' messages
154 --version print the version of autoconf that created configure
155 Directory and file names:
156 --prefix=PREFIX install architecture-independent files in PREFIX
158 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 --bindir=DIR user executables in DIR [EPREFIX/bin]
161 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
162 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
163 --datadir=DIR read-only architecture-independent data in DIR
165 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
166 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
169 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
170 --includedir=DIR C header files in DIR [PREFIX/include]
171 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
172 --infodir=DIR info documentation in DIR [PREFIX/info]
173 --mandir=DIR man documentation in DIR [PREFIX/man]
174 --srcdir=DIR find the sources in DIR [configure dir or ..]
175 --program-prefix=PREFIX prepend PREFIX to installed program names
176 --program-suffix=SUFFIX append SUFFIX to installed program names
177 --program-transform-name=PROGRAM
178 run sed PROGRAM on installed program names
182 --build=BUILD configure for building on BUILD [BUILD=HOST]
183 --host=HOST configure for HOST [guessed]
184 --target=TARGET configure for TARGET [TARGET=HOST]
185 Features and packages:
186 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
187 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
190 --x-includes=DIR X include files are in DIR
191 --x-libraries=DIR X library files are in DIR
193 if test -n "$ac_help"; then
194 echo "--enable and --with options recognized:$ac_help"
198 -host |
--host |
--hos |
--ho)
200 -host=* |
--host=* |
--hos=* |
--ho=*)
203 -includedir |
--includedir |
--includedi |
--included |
--include \
204 |
--includ |
--inclu |
--incl |
--inc)
205 ac_prev
=includedir
;;
206 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
207 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
208 includedir
="$ac_optarg" ;;
210 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
212 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
213 infodir
="$ac_optarg" ;;
215 -libdir |
--libdir |
--libdi |
--libd)
217 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
218 libdir
="$ac_optarg" ;;
220 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
221 |
--libexe |
--libex |
--libe)
222 ac_prev
=libexecdir
;;
223 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
224 |
--libexe=* |
--libex=* |
--libe=*)
225 libexecdir
="$ac_optarg" ;;
227 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
228 |
--localstate |
--localstat |
--localsta |
--localst \
229 |
--locals |
--local |
--loca |
--loc |
--lo)
230 ac_prev
=localstatedir
;;
231 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
232 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
233 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
234 localstatedir
="$ac_optarg" ;;
236 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
238 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
239 mandir
="$ac_optarg" ;;
242 # Obsolete; use --without-fp.
245 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
249 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
250 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
253 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
254 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
255 |
--oldin |
--oldi |
--old |
--ol |
--o)
256 ac_prev
=oldincludedir
;;
257 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
258 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
259 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
260 oldincludedir
="$ac_optarg" ;;
262 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
264 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
265 prefix
="$ac_optarg" ;;
267 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
268 |
--program-pre |
--program-pr |
--program-p)
269 ac_prev
=program_prefix
;;
270 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
271 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
272 program_prefix
="$ac_optarg" ;;
274 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
275 |
--program-suf |
--program-su |
--program-s)
276 ac_prev
=program_suffix
;;
277 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
278 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
279 program_suffix
="$ac_optarg" ;;
281 -program-transform-name |
--program-transform-name \
282 |
--program-transform-nam |
--program-transform-na \
283 |
--program-transform-n |
--program-transform- \
284 |
--program-transform |
--program-transfor \
285 |
--program-transfo |
--program-transf \
286 |
--program-trans |
--program-tran \
287 |
--progr-tra |
--program-tr |
--program-t)
288 ac_prev
=program_transform_name
;;
289 -program-transform-name=* |
--program-transform-name=* \
290 |
--program-transform-nam=* |
--program-transform-na=* \
291 |
--program-transform-n=* |
--program-transform-=* \
292 |
--program-transform=* |
--program-transfor=* \
293 |
--program-transfo=* |
--program-transf=* \
294 |
--program-trans=* |
--program-tran=* \
295 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
296 program_transform_name
="$ac_optarg" ;;
298 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
299 |
-silent |
--silent |
--silen |
--sile |
--sil)
302 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
304 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
306 sbindir
="$ac_optarg" ;;
308 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
309 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
310 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
312 ac_prev
=sharedstatedir
;;
313 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
314 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
315 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
317 sharedstatedir
="$ac_optarg" ;;
319 -site |
--site |
--sit)
321 -site=* |
--site=* |
--sit=*)
324 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
326 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
327 srcdir
="$ac_optarg" ;;
329 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
330 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
331 ac_prev
=sysconfdir
;;
332 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
333 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
334 sysconfdir
="$ac_optarg" ;;
336 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
338 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
339 target
="$ac_optarg" ;;
341 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
344 -version |
--version |
--versio |
--versi |
--vers)
345 echo "configure generated by autoconf version 2.12"
349 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350 # Reject names that are not valid shell variable names.
351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 ac_package
=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}='$ac_optarg'" ;;
361 -without-* |
--without-*)
362 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package
=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}=no" ;;
371 # Obsolete; use --with-x.
374 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
375 |
--x-incl |
--x-inc |
--x-in |
--x-i)
376 ac_prev
=x_includes
;;
377 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
378 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
379 x_includes
="$ac_optarg" ;;
381 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
382 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
383 ac_prev
=x_libraries
;;
384 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
385 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
386 x_libraries
="$ac_optarg" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 if test "x$nonopt" != xNONE
; then
396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410 # File descriptor usage:
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
436 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
437 |
--no-cr |
--no-c) ;;
438 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
439 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
440 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
442 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
447 # Only set these to C if already set. These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
452 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
454 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest
* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file
=Makefile.
in
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted
=yes
468 # Try the directory containing this script, then its parent.
470 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
473 if test ! -r $srcdir/$ac_unique_file; then
477 ac_srcdir_defaulted
=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490 if test "x$prefix" != xNONE
; then
491 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
493 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496 for ac_site_file
in $CONFIG_SITE; do
497 if test -r "$ac_site_file"; then
498 echo "loading site script $ac_site_file"
503 if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
507 echo "creating cache $cache_file"
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp
='$CPP $CPPFLAGS'
514 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling
=$ac_cv_prog_cc_cross
518 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
527 ac_n
= ac_c
='\c' ac_t
=
532 # This is intended for use by the target specific directories, and by us.
533 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
534 echo "configure:535: checking how to run the C preprocessor" >&5
535 # On Suns, sometimes $CPP names a directory.
536 if test -n "$CPP" && test -d "$CPP"; then
539 if test -z "$CPP"; then
540 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
541 echo $ac_n "(cached) $ac_c" 1>&6
543 # This must be in double quotes, not single quotes, because CPP may get
544 # substituted into the Makefile and "${CC-cc}" will confuse make.
546 # On the NeXT, cc -E runs the code through the compiler's parser,
547 # not just through cpp.
548 cat > conftest.
$ac_ext <<EOF
549 #line 550 "configure"
550 #include "confdefs.h"
554 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
555 { (eval echo configure
:556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
556 ac_err
=`grep -v '^ *+' conftest.out`
557 if test -z "$ac_err"; then
561 echo "configure: failed program was:" >&5
562 cat conftest.
$ac_ext >&5
564 CPP
="${CC-cc} -E -traditional-cpp"
565 cat > conftest.
$ac_ext <<EOF
566 #line 567 "configure"
567 #include "confdefs.h"
571 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
572 { (eval echo configure
:573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
573 ac_err
=`grep -v '^ *+' conftest.out`
574 if test -z "$ac_err"; then
578 echo "configure: failed program was:" >&5
579 cat conftest.
$ac_ext >&5
586 ac_cv_prog_CPP
="$CPP"
588 CPP
="$ac_cv_prog_CPP"
590 ac_cv_prog_CPP
="$CPP"
592 echo "$ac_t""$CPP" 1>&6
595 # autoconf.info says this should be called right after AC_INIT.
599 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
600 if test -f $ac_dir/install-sh
; then
602 ac_install_sh
="$ac_aux_dir/install-sh -c"
604 elif test -f $ac_dir/install.sh
; then
606 ac_install_sh
="$ac_aux_dir/install.sh -c"
610 if test -z "$ac_aux_dir"; then
611 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
613 ac_config_guess
=$ac_aux_dir/config.guess
614 ac_config_sub
=$ac_aux_dir/config.sub
615 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
618 # Do some error checking and defaulting for the host and target type.
620 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
623 # 1. You are not allowed to specify --host, --target, and nonopt at the
625 # 2. Host defaults to nonopt.
626 # 3. If nonopt is not specified, then host defaults to the current host,
627 # as determined by config.guess.
628 # 4. Target and build default to nonopt.
629 # 5. If nonopt is not specified, then target and build default to host.
631 # The aliases save the names the user supplied, while $host etc.
632 # will get canonicalized.
633 case $host---$target---$nonopt in
634 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
635 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
639 # Make sure we can run config.sub.
640 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
641 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
644 echo $ac_n "checking host system type""... $ac_c" 1>&6
645 echo "configure:646: checking host system type" >&5
648 case "$host_alias" in
652 if host_alias
=`$ac_config_guess`; then :
653 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
655 *) host_alias
=$nonopt ;;
659 host=`$ac_config_sub $host_alias`
660 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
663 echo "$ac_t""$host" 1>&6
665 echo $ac_n "checking target system type""... $ac_c" 1>&6
666 echo "configure:667: checking target system type" >&5
669 case "$target_alias" in
672 NONE
) target_alias
=$host_alias ;;
673 *) target_alias
=$nonopt ;;
677 target
=`$ac_config_sub $target_alias`
678 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
679 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
680 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
681 echo "$ac_t""$target" 1>&6
683 echo $ac_n "checking build system type""... $ac_c" 1>&6
684 echo "configure:685: checking build system type" >&5
687 case "$build_alias" in
690 NONE
) build_alias
=$host_alias ;;
691 *) build_alias
=$nonopt ;;
695 build
=`$ac_config_sub $build_alias`
696 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo "$ac_t""$build" 1>&6
701 test "$host_alias" != "$target_alias" &&
702 test "$program_prefix$program_suffix$program_transform_name" = \
704 program_prefix
=${target_alias}-
706 if test "$program_transform_name" = s
,x
,x
,; then
707 program_transform_name
=
709 # Double any \ or $. echo might interpret backslashes.
710 cat <<\EOF_SED
> conftestsed
711 s
,\\,\\\\,g
; s
,\$
,$$
,g
713 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
716 test "$program_prefix" != NONE
&&
717 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
718 # Use a double $ so make ignores it.
719 test "$program_suffix" != NONE
&&
720 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
722 # sed with no file args requires a program.
723 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
725 # Extract the first word of "gcc", so it can be a program name with args.
726 set dummy gcc
; ac_word
=$2
727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
728 echo "configure:729: checking for $ac_word" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
732 if test -n "$CC"; then
733 ac_cv_prog_CC
="$CC" # Let the user override the test.
735 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
736 for ac_dir
in $PATH; do
737 test -z "$ac_dir" && ac_dir
=.
738 if test -f $ac_dir/$ac_word; then
747 if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
750 echo "$ac_t""no" 1>&6
753 if test -z "$CC"; then
754 # Extract the first word of "cc", so it can be a program name with args.
755 set dummy cc
; ac_word
=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC
="$CC" # Let the user override the test.
764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
766 for ac_dir
in $PATH; do
767 test -z "$ac_dir" && ac_dir
=.
768 if test -f $ac_dir/$ac_word; then
769 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
778 if test $ac_prog_rejected = yes; then
779 # We found a bogon in the path, so make sure we never use it.
780 set dummy
$ac_cv_prog_CC
782 if test $# -gt 0; then
783 # We chose a different compiler from the bogus one.
784 # However, it has the same basename, so the bogon will be chosen
785 # first if we set CC to just the basename; use the full file name.
787 set dummy
"$ac_dir/$ac_word" "$@"
795 if test -n "$CC"; then
796 echo "$ac_t""$CC" 1>&6
798 echo "$ac_t""no" 1>&6
801 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
804 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
805 echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
809 ac_cpp
='$CPP $CPPFLAGS'
810 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
811 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
812 cross_compiling
=$ac_cv_prog_cc_cross
814 cat > conftest.
$ac_ext <<EOF
815 #line 816 "configure"
816 #include "confdefs.h"
819 if { (eval echo configure
:820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
820 ac_cv_prog_cc_works
=yes
821 # If we can't run a trivial program, we are probably using a cross compiler.
822 if (.
/conftest
; exit) 2>/dev
/null
; then
823 ac_cv_prog_cc_cross
=no
825 ac_cv_prog_cc_cross
=yes
828 echo "configure: failed program was:" >&5
829 cat conftest.
$ac_ext >&5
830 ac_cv_prog_cc_works
=no
834 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
835 if test $ac_cv_prog_cc_works = no
; then
836 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
838 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
839 echo "configure:840: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
840 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
841 cross_compiling
=$ac_cv_prog_cc_cross
843 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
844 echo "configure:845: checking whether we are using GNU C" >&5
845 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 cat > conftest.c
<<EOF
853 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
860 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
862 if test $ac_cv_prog_gcc = yes; then
864 ac_test_CFLAGS
="${CFLAGS+set}"
865 ac_save_CFLAGS
="$CFLAGS"
867 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
868 echo "configure:869: checking whether ${CC-cc} accepts -g" >&5
869 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 echo 'void f(){}' > conftest.c
873 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
882 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
883 if test "$ac_test_CFLAGS" = set; then
884 CFLAGS
="$ac_save_CFLAGS"
885 elif test $ac_cv_prog_cc_g = yes; then
892 test "${CFLAGS+set}" = set || CFLAGS
="-g"
895 # Find a good install program. We prefer a C program (faster),
896 # so one script is as good as another. But avoid the broken or
897 # incompatible versions:
898 # SysV /etc/install, /usr/sbin/install
899 # SunOS /usr/etc/install
902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
904 # ./install, which can be erroneously created by make from ./install.sh.
905 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
906 echo "configure:907: checking for a BSD compatible install" >&5
907 if test -z "$INSTALL"; then
908 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
912 for ac_dir
in $PATH; do
913 # Account for people who put trailing slashes in PATH elements.
915 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
917 # OSF1 and SCO ODT 3.0 have their own names for install.
918 for ac_prog
in ginstall installbsd scoinst
install; do
919 if test -f $ac_dir/$ac_prog; then
920 if test $ac_prog = install &&
921 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
922 # AIX install. It has an incompatible calling convention.
923 # OSF/1 installbsd also uses dspmsg, but is usable.
926 ac_cv_path_install
="$ac_dir/$ac_prog -c"
937 if test "${ac_cv_path_install+set}" = set; then
938 INSTALL
="$ac_cv_path_install"
940 # As a last resort, use the slow shell script. We don't cache a
941 # path for INSTALL within a source directory, because that will
942 # break other packages using the cache if that directory is
943 # removed, or if the path is relative.
944 INSTALL
="$ac_install_sh"
947 echo "$ac_t""$INSTALL" 1>&6
949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
950 # It thinks the first close brace ends the variable substitution.
951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
953 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
956 # Put a plausible default for CC_FOR_BUILD in Makefile.
958 if test "x$cross_compiling" = "xno"; then
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
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 if test -n "$RANLIB"; then
977 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
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"
988 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
991 RANLIB
="$ac_cv_prog_RANLIB"
992 if test -n "$RANLIB"; then
993 echo "$ac_t""$RANLIB" 1>&6
995 echo "$ac_t""no" 1>&6
999 # Check for common headers.
1000 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
1002 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_hdr" >&5
1005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 cat > conftest.
$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1013 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1014 { (eval echo configure
:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1015 ac_err
=`grep -v '^ *+' conftest.out`
1016 if test -z "$ac_err"; then
1018 eval "ac_cv_header_$ac_safe=yes"
1021 echo "configure: failed program was:" >&5
1022 cat conftest.
$ac_ext >&5
1024 eval "ac_cv_header_$ac_safe=no"
1028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1029 echo "$ac_t""yes" 1>&6
1030 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1031 cat >> confdefs.h
<<EOF
1032 #define $ac_tr_hdr 1
1036 echo "$ac_t""no" 1>&6
1041 .
${srcdir}/..
/..
/bfd
/configure.
host
1045 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1046 if test "${enable_sim_bswap+set}" = set; then
1047 enableval
="$enable_sim_bswap"
1048 case "${enableval}" in
1049 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1050 no
) sim_bswap
="-DWITH_BSWAP=0";;
1051 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1053 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1054 echo "Setting bswap flags = $sim_bswap" 6>&1
1062 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1063 if test "${enable_sim_cflags+set}" = set; then
1064 enableval
="$enable_sim_cflags"
1065 case "${enableval}" in
1066 yes) sim_cflags
="-O2";;
1067 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
1069 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1071 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
1072 echo "Setting sim cflags = $sim_cflags" 6>&1
1080 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1081 if test "${enable_sim_debug+set}" = set; then
1082 enableval
="$enable_sim_debug"
1083 case "${enableval}" in
1084 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
1085 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
1086 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1088 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
1089 echo "Setting sim debug = $sim_debug" 6>&1
1097 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1098 if test "${enable_sim_stdio+set}" = set; then
1099 enableval
="$enable_sim_stdio"
1100 case "${enableval}" in
1101 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1102 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1103 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1105 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1106 echo "Setting stdio flags = $sim_stdio" 6>&1
1114 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1115 if test "${enable_sim_trace+set}" = set; then
1116 enableval
="$enable_sim_trace"
1117 case "${enableval}" in
1118 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=1";;
1119 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
1120 *) sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1122 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1123 echo "Setting sim trace = $sim_trace" 6>&1
1134 sim_link_links
=tconfig.h
1135 if test -f ${srcdir}/tconfig.
in
1137 sim_link_files
=tconfig.
in
1139 sim_link_files
=..
/common
/tconfig.
in
1142 # targ-vals.def points to the libc macro description file.
1144 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1146 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1147 sim_link_links
="${sim_link_links} targ-vals.def"
1151 # Put a useful copy of CPP_FOR_TARGET in Makefile.
1152 # This is only used to build the target values header files. These files are
1153 # shipped with distributions so CPP_FOR_TARGET only needs to work in
1154 # developer's trees. This value is borrowed from ../../Makefile.in.
1155 CPP_FOR_TARGET
="\` \
1156 if test -f \$\${rootme}/../../gcc/Makefile ; then \
1157 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
1158 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
1160 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
1163 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
1166 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
1171 # Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
1172 if test x
"${host}" = x
"${target}" ; then
1175 TARGET_SUBDIR
=${target_alias}
1179 # These aren't all needed yet, but will be eventually.
1180 for ac_hdr
in stdlib.h string.h
strings.h
time.h sys
/times.h
1182 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_hdr" >&5
1185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 cat > conftest.
$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1193 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1194 { (eval echo configure
:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1195 ac_err
=`grep -v '^ *+' conftest.out`
1196 if test -z "$ac_err"; then
1198 eval "ac_cv_header_$ac_safe=yes"
1201 echo "configure: failed program was:" >&5
1202 cat conftest.
$ac_ext >&5
1204 eval "ac_cv_header_$ac_safe=no"
1208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1209 echo "$ac_t""yes" 1>&6
1210 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1211 cat >> confdefs.h
<<EOF
1212 #define $ac_tr_hdr 1
1216 echo "$ac_t""no" 1>&6
1222 cat > confcache
<<\EOF
1223 # This file is a shell script that caches the results of configure
1224 # tests run on this system so they can be shared between configure
1225 # scripts and configure runs. It is not useful on other systems.
1226 # If it contains results you don't want to keep, you may remove or edit it.
1228 # By default, configure uses ./config.cache as the cache file,
1229 # creating it if it does not exist already. You can give configure
1230 # the --cache-file=FILE option to use a different cache file; that is
1231 # what configure does when it calls configure scripts in
1232 # subdirectories, so they share the cache.
1233 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1234 # config.status only pays attention to the cache file if you give it the
1235 # --recheck option to rerun configure.
1238 # The following way of writing the cache mishandles newlines in values,
1239 # but we know of no workaround that is simple, portable, and efficient.
1240 # So, don't put newlines in cache variables' values.
1241 # Ultrix sh set writes to stderr and can't be redirected directly,
1242 # and sets the high bit in the cache file unless we assign to the vars.
1244 case `(ac_space=' '; set) 2>&1` in
1246 # `set' does not quote correctly, so add quotes (double-quote substitution
1247 # turns \\\\ into \\, and sed turns \\ into \).
1249 -e "s/'/'\\\\''/g" \
1250 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1253 # `set' quotes correctly as required by POSIX, so do not add quotes.
1254 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1257 if cmp -s $cache_file confcache
; then
1260 if test -w $cache_file; then
1261 echo "updating cache $cache_file"
1262 cat confcache
> $cache_file
1264 echo "not updating unwritable cache $cache_file"
1269 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1271 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1272 # Let make expand exec_prefix.
1273 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1275 # Any assignment to VPATH causes Sun make to only execute
1276 # the first set of double-colon rules, so remove it if not needed.
1277 # If there is a colon in the path, we need to keep it.
1278 if test "x$srcdir" = x.
; then
1279 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1282 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1284 DEFS
=-DHAVE_CONFIG_H
1286 # Without the "./", some shells look in PATH for config.status.
1287 : ${CONFIG_STATUS=./config.status}
1289 echo creating
$CONFIG_STATUS
1290 rm -f $CONFIG_STATUS
1291 cat > $CONFIG_STATUS <<EOF
1293 # Generated automatically by configure.
1294 # Run this file to recreate the current configuration.
1295 # This directory was configured as follows,
1296 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1298 # $0 $ac_configure_args
1300 # Compiler output produced by configure, useful for debugging
1301 # configure, is in ./config.log if it exists.
1303 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1306 case "\$ac_option" in
1307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1308 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1309 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1310 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1311 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1313 -help | --help | --hel | --he | --h)
1314 echo "\$ac_cs_usage"; exit 0 ;;
1315 *) echo "\$ac_cs_usage"; exit 1 ;;
1319 ac_given_srcdir=$srcdir
1320 ac_given_INSTALL="$INSTALL"
1322 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1324 cat >> $CONFIG_STATUS <<EOF
1326 # Protect against being on the right side of a sed subst in config.status.
1327 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1328 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1331 s%@CFLAGS@%$CFLAGS%g
1332 s%@CPPFLAGS@%$CPPFLAGS%g
1333 s%@CXXFLAGS@%$CXXFLAGS%g
1335 s%@LDFLAGS@%$LDFLAGS%g
1337 s%@exec_prefix@%$exec_prefix%g
1338 s%@prefix@%$prefix%g
1339 s%@program_transform_name@%$program_transform_name%g
1340 s%@bindir@%$bindir%g
1341 s%@sbindir@%$sbindir%g
1342 s%@libexecdir@%$libexecdir%g
1343 s%@datadir@%$datadir%g
1344 s%@sysconfdir@%$sysconfdir%g
1345 s%@sharedstatedir@%$sharedstatedir%g
1346 s%@localstatedir@%$localstatedir%g
1347 s%@libdir@%$libdir%g
1348 s%@includedir@%$includedir%g
1349 s%@oldincludedir@%$oldincludedir%g
1350 s%@infodir@%$infodir%g
1351 s%@mandir@%$mandir%g
1353 s%@host_alias@%$host_alias%g
1354 s%@host_cpu@%$host_cpu%g
1355 s%@host_vendor@%$host_vendor%g
1356 s%@host_os@%$host_os%g
1357 s%@target@%$target%g
1358 s%@target_alias@%$target_alias%g
1359 s%@target_cpu@%$target_cpu%g
1360 s%@target_vendor@%$target_vendor%g
1361 s%@target_os@%$target_os%g
1363 s%@build_alias@%$build_alias%g
1364 s%@build_cpu@%$build_cpu%g
1365 s%@build_vendor@%$build_vendor%g
1366 s%@build_os@%$build_os%g
1368 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1369 s%@INSTALL_DATA@%$INSTALL_DATA%g
1370 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1371 s%@HDEFINES@%$HDEFINES%g
1373 s%@RANLIB@%$RANLIB%g
1375 s%@sim_bswap@%$sim_bswap%g
1376 s%@sim_cflags@%$sim_cflags%g
1377 s%@sim_debug@%$sim_debug%g
1378 s%@sim_stdio@%$sim_stdio%g
1379 s%@sim_trace@%$sim_trace%g
1380 s%@CPP_FOR_TARGET@%$CPP_FOR_TARGET%g
1381 s%@TARGET_SUBDIR@%$TARGET_SUBDIR%g
1386 cat >> $CONFIG_STATUS <<\EOF
1388 # Split the substitutions into bite-sized pieces for seds with
1389 # small command number limits, like on Digital OSF/1 and HP-UX.
1390 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1391 ac_file
=1 # Number of current file.
1392 ac_beg
=1 # First line for current file.
1393 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1396 while $ac_more_lines; do
1397 if test $ac_beg -gt 1; then
1398 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1400 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1402 if test ! -s conftest.s
$ac_file; then
1404 rm -f conftest.s
$ac_file
1406 if test -z "$ac_sed_cmds"; then
1407 ac_sed_cmds
="sed -f conftest.s$ac_file"
1409 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1411 ac_file
=`expr $ac_file + 1`
1413 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1416 if test -z "$ac_sed_cmds"; then
1421 cat >> $CONFIG_STATUS <<EOF
1423 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1425 cat >> $CONFIG_STATUS <<\EOF
1426 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1427 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1429 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1430 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1431 *) ac_file_in
="${ac_file}.in" ;;
1434 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1436 # Remove last slash and all that follows it. Not all systems have dirname.
1437 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1438 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1439 # The file is in a subdirectory.
1440 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1441 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1442 # A "../" for each directory in $ac_dir_suffix.
1443 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1445 ac_dir_suffix
= ac_dots
=
1448 case "$ac_given_srcdir" in
1450 if test -z "$ac_dots"; then top_srcdir
=.
1451 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1452 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1454 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1455 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1458 case "$ac_given_INSTALL" in
1459 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1460 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1463 echo creating
"$ac_file"
1465 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1467 *Makefile
*) ac_comsub
="1i\\
1468 # $configure_input" ;;
1472 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1474 s%@configure_input@%$configure_input%g
1475 s%@srcdir@%$srcdir%g
1476 s%@top_srcdir@%$top_srcdir%g
1477 s%@INSTALL@%$INSTALL%g
1478 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1482 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1483 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1485 # ac_d sets the value in "#define NAME VALUE" lines.
1486 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1487 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1490 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1491 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1492 ac_uB
='\([ ]\)%\1#\2define\3'
1495 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1496 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1497 ac_eB
='$%\1#\2define\3'
1501 if test "${CONFIG_HEADERS+set}" != set; then
1503 cat >> $CONFIG_STATUS <<EOF
1504 CONFIG_HEADERS="config.h:config.in"
1506 cat >> $CONFIG_STATUS <<\EOF
1508 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1511 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1512 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1513 *) ac_file_in
="${ac_file}.in" ;;
1516 echo creating
$ac_file
1518 rm -f conftest.frag conftest.
in conftest.out
1519 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1520 cat $ac_file_inputs > conftest.
in
1524 # Transform confdefs.h into a sed script conftest.vals that substitutes
1525 # the proper values into config.h.in to produce config.h. And first:
1526 # Protect against being on the right side of a sed subst in config.status.
1527 # Protect against being in an unquoted here document in config.status.
1529 cat > conftest.hdr
<<\EOF
1532 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1536 sed -n -f conftest.hdr confdefs.h > conftest.vals
1539 # This sed command replaces #undef with comments. This is necessary, for
1540 # example, in the case of _POSIX_SOURCE, which is predefined and required
1541 # on some systems where configure will not decide to define it.
1542 cat >> conftest.vals <<\EOF
1543 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1546 # Break up conftest.vals because some shells have a limit on
1547 # the size of here documents, and old seds have small limits too.
1552 ac_lines=`grep -c . conftest.vals
`
1553 # grep -c gives empty output for an empty file on some AIX systems.
1554 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1555 # Write a limited-size here document to conftest.frag.
1556 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1557 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1559 sed -f conftest.frag conftest.in > conftest.out
1561 mv conftest.out conftest.in
1563 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1565 mv conftest.tail conftest.vals
1569 cat >> $CONFIG_STATUS <<\EOF
1570 rm -f conftest.frag conftest.h
1571 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1572 cat conftest.in >> conftest.h
1574 if cmp -s $ac_file conftest.h 2>/dev/null; then
1575 echo "$ac_file is unchanged"
1578 # Remove last slash and all that follows it. Not all systems have dirname.
1579 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1580 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1581 # The file is in a subdirectory.
1582 test ! -d "$ac_dir" && mkdir "$ac_dir"
1585 mv conftest.h $ac_file
1590 cat >> $CONFIG_STATUS <<EOF
1593 cat >> $CONFIG_STATUS <<\EOF
1594 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1597 chmod +x $CONFIG_STATUS
1598 rm -fr confdefs* $ac_clean_files
1599 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1