3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
17 --enable-shared build shared libraries [default=yes]"
19 --enable-static build static libraries [default=yes]"
21 --enable-bfd-assembler use BFD back end for writing object files"
23 targets alternative target configurations besides the primary"
25 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
27 --enable-maintainer-mode enable make rules and dependencies not useful
28 (and sometimes confusing) to the casual installer"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file
=.
/config.cache
43 program_transform_name
=s
,x
,x
,
51 bindir
='${exec_prefix}/bin'
52 sbindir
='${exec_prefix}/sbin'
53 libexecdir
='${exec_prefix}/libexec'
54 datadir
='${prefix}/share'
55 sysconfdir
='${prefix}/etc'
56 sharedstatedir
='${prefix}/com'
57 localstatedir
='${prefix}/var'
58 libdir
='${exec_prefix}/lib'
59 includedir
='${prefix}/include'
60 oldincludedir
='/usr/include'
61 infodir
='${prefix}/info'
62 mandir
='${prefix}/man'
64 # Initialize some other variables.
67 SHELL
=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
93 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
94 bindir
="$ac_optarg" ;;
96 -build |
--build |
--buil |
--bui |
--bu)
98 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
102 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
103 ac_prev
=cache_file
;;
104 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
105 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
106 cache_file
="$ac_optarg" ;;
108 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
110 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
112 datadir
="$ac_optarg" ;;
114 -disable-* |
--disable-*)
115 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* |
--enable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
137 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
138 |
--exec |
--exe |
--ex)
139 ac_prev
=exec_prefix
;;
140 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
141 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
142 |
--exec=* |
--exe=* |
--ex=*)
143 exec_prefix
="$ac_optarg" ;;
145 -gas |
--gas |
--ga |
--g)
146 # Obsolete; use --with-gas.
149 -help |
--help |
--hel |
--he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host |
--host |
--hos |
--ho)
206 -host=* |
--host=* |
--hos=* |
--ho=*)
209 -includedir |
--includedir |
--includedi |
--included |
--include \
210 |
--includ |
--inclu |
--incl |
--inc)
211 ac_prev
=includedir
;;
212 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
213 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
214 includedir
="$ac_optarg" ;;
216 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
218 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
219 infodir
="$ac_optarg" ;;
221 -libdir |
--libdir |
--libdi |
--libd)
223 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
224 libdir
="$ac_optarg" ;;
226 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
227 |
--libexe |
--libex |
--libe)
228 ac_prev
=libexecdir
;;
229 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
230 |
--libexe=* |
--libex=* |
--libe=*)
231 libexecdir
="$ac_optarg" ;;
233 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
234 |
--localstate |
--localstat |
--localsta |
--localst \
235 |
--locals |
--local |
--loca |
--loc |
--lo)
236 ac_prev
=localstatedir
;;
237 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
238 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
239 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
240 localstatedir
="$ac_optarg" ;;
242 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
244 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
245 mandir
="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
255 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
256 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
259 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
260 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
261 |
--oldin |
--oldi |
--old |
--ol |
--o)
262 ac_prev
=oldincludedir
;;
263 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
264 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
265 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
266 oldincludedir
="$ac_optarg" ;;
268 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
270 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
271 prefix
="$ac_optarg" ;;
273 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
274 |
--program-pre |
--program-pr |
--program-p)
275 ac_prev
=program_prefix
;;
276 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
277 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
278 program_prefix
="$ac_optarg" ;;
280 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
281 |
--program-suf |
--program-su |
--program-s)
282 ac_prev
=program_suffix
;;
283 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
284 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
285 program_suffix
="$ac_optarg" ;;
287 -program-transform-name |
--program-transform-name \
288 |
--program-transform-nam |
--program-transform-na \
289 |
--program-transform-n |
--program-transform- \
290 |
--program-transform |
--program-transfor \
291 |
--program-transfo |
--program-transf \
292 |
--program-trans |
--program-tran \
293 |
--progr-tra |
--program-tr |
--program-t)
294 ac_prev
=program_transform_name
;;
295 -program-transform-name=* |
--program-transform-name=* \
296 |
--program-transform-nam=* |
--program-transform-na=* \
297 |
--program-transform-n=* |
--program-transform-=* \
298 |
--program-transform=* |
--program-transfor=* \
299 |
--program-transfo=* |
--program-transf=* \
300 |
--program-trans=* |
--program-tran=* \
301 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
302 program_transform_name
="$ac_optarg" ;;
304 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
305 |
-silent |
--silent |
--silen |
--sile |
--sil)
308 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
310 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
312 sbindir
="$ac_optarg" ;;
314 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
315 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
316 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
318 ac_prev
=sharedstatedir
;;
319 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
320 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
321 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
323 sharedstatedir
="$ac_optarg" ;;
325 -site |
--site |
--sit)
327 -site=* |
--site=* |
--sit=*)
330 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
332 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
333 srcdir
="$ac_optarg" ;;
335 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
336 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
337 ac_prev
=sysconfdir
;;
338 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
339 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
340 sysconfdir
="$ac_optarg" ;;
342 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
344 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
345 target
="$ac_optarg" ;;
347 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
350 -version |
--version |
--versio |
--versi |
--vers)
351 echo "configure generated by autoconf version 2.12.1"
355 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package
=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* |
--without-*)
368 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
381 |
--x-incl |
--x-inc |
--x-in |
--x-i)
382 ac_prev
=x_includes
;;
383 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
384 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
385 x_includes
="$ac_optarg" ;;
387 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
388 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
389 ac_prev
=x_libraries
;;
390 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
391 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
392 x_libraries
="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE
; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
443 |
--no-cr |
--no-c) ;;
444 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
445 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
446 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest
* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted
=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted
=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE
; then
497 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file
in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp
='$CPP $CPPFLAGS'
520 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling
=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
533 ac_n
= ac_c
='\c' ac_t
=
539 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
540 if test -f $ac_dir/install-sh
; then
542 ac_install_sh
="$ac_aux_dir/install-sh -c"
544 elif test -f $ac_dir/install.sh
; then
546 ac_install_sh
="$ac_aux_dir/install.sh -c"
550 if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
553 ac_config_guess
=$ac_aux_dir/config.guess
554 ac_config_sub
=$ac_aux_dir/config.sub
555 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
558 # Do some error checking and defaulting for the host and target type.
560 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
563 # 1. You are not allowed to specify --host, --target, and nonopt at the
565 # 2. Host defaults to nonopt.
566 # 3. If nonopt is not specified, then host defaults to the current host,
567 # as determined by config.guess.
568 # 4. Target and build default to nonopt.
569 # 5. If nonopt is not specified, then target and build default to host.
571 # The aliases save the names the user supplied, while $host etc.
572 # will get canonicalized.
573 case $host---$target---$nonopt in
574 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
575 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
579 # Make sure we can run config.sub.
580 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
581 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
584 echo $ac_n "checking host system type""... $ac_c" 1>&6
585 echo "configure:586: checking host system type" >&5
588 case "$host_alias" in
592 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
593 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
595 *) host_alias
=$nonopt ;;
599 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
600 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
601 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
602 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
603 echo "$ac_t""$host" 1>&6
605 echo $ac_n "checking target system type""... $ac_c" 1>&6
606 echo "configure:607: checking target system type" >&5
609 case "$target_alias" in
612 NONE
) target_alias
=$host_alias ;;
613 *) target_alias
=$nonopt ;;
617 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
618 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
619 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
620 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
621 echo "$ac_t""$target" 1>&6
623 echo $ac_n "checking build system type""... $ac_c" 1>&6
624 echo "configure:625: checking build system type" >&5
627 case "$build_alias" in
630 NONE
) build_alias
=$host_alias ;;
631 *) build_alias
=$nonopt ;;
635 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
636 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
637 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
638 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
639 echo "$ac_t""$build" 1>&6
641 test "$host_alias" != "$target_alias" &&
642 test "$program_prefix$program_suffix$program_transform_name" = \
644 program_prefix
=${target_alias}-
647 # Find a good install program. We prefer a C program (faster),
648 # so one script is as good as another. But avoid the broken or
649 # incompatible versions:
650 # SysV /etc/install, /usr/sbin/install
651 # SunOS /usr/etc/install
654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
657 # ./install, which can be erroneously created by make from ./install.sh.
658 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
659 echo "configure:660: checking for a BSD compatible install" >&5
660 if test -z "$INSTALL"; then
661 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
662 echo $ac_n "(cached) $ac_c" 1>&6
664 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
665 for ac_dir
in $PATH; do
666 # Account for people who put trailing slashes in PATH elements.
668 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
670 # OSF1 and SCO ODT 3.0 have their own names for install.
671 # Don't use installbsd from OSF since it installs stuff as root
673 for ac_prog
in ginstall scoinst
install; do
674 if test -f $ac_dir/$ac_prog; then
675 if test $ac_prog = install &&
676 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
677 # AIX install. It has an incompatible calling convention.
680 ac_cv_path_install
="$ac_dir/$ac_prog -c"
691 if test "${ac_cv_path_install+set}" = set; then
692 INSTALL
="$ac_cv_path_install"
694 # As a last resort, use the slow shell script. We don't cache a
695 # path for INSTALL within a source directory, because that will
696 # break other packages using the cache if that directory is
697 # removed, or if the path is relative.
698 INSTALL
="$ac_install_sh"
701 echo "$ac_t""$INSTALL" 1>&6
703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
704 # It thinks the first close brace ends the variable substitution.
705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
707 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
717 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
718 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
720 cat >> confdefs.h
<<EOF
721 #define PACKAGE "$PACKAGE"
724 cat >> confdefs.h
<<EOF
725 #define VERSION "$VERSION"
728 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
729 echo "configure:730: checking whether build environment is sane" >&5
732 echo timestamp
> conftestfile
733 # Do `set' in a subshell so we don't clobber the current shell's
734 # arguments. Must try -L first in case configure is actually a
735 # symlink; some systems play weird games with the mod time of symlinks
736 # (eg FreeBSD returns the mod time of the symlink's containing
739 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
740 if test "" = "X"; then
742 set X
`ls -t $srcdir/configure conftestfile`
744 test "$2" = conftestfile
750 { echo "configure: error: newly created file is older than distributed files!
751 Check your system clock" 1>&2; exit 1; }
754 echo "$ac_t""yes" 1>&6
755 if test "$program_transform_name" = s
,x
,x
,; then
756 program_transform_name
=
758 # Double any \ or $. echo might interpret backslashes.
759 cat <<\EOF_SED
> conftestsed
760 s
,\\,\\\\,g
; s
,\$
,$$
,g
762 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
765 test "$program_prefix" != NONE
&&
766 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
767 # Use a double $ so make ignores it.
768 test "$program_suffix" != NONE
&&
769 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
771 # sed with no file args requires a program.
772 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
774 missing_dir
=`cd $ac_aux_dir && pwd`
775 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
776 echo "configure:777: checking for working aclocal" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
782 echo "$ac_t""found" 1>&6
784 ACLOCAL
="$missing_dir/missing aclocal"
785 echo "$ac_t""missing" 1>&6
788 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
789 echo "configure:790: checking for working autoconf" >&5
790 # Run test in a subshell; some versions of sh will print an error if
791 # an executable is not found, even if stderr is redirected.
792 # Redirect stdin to placate older versions of autoconf. Sigh.
793 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
795 echo "$ac_t""found" 1>&6
797 AUTOCONF
="$missing_dir/missing autoconf"
798 echo "$ac_t""missing" 1>&6
801 echo $ac_n "checking for working automake""... $ac_c" 1>&6
802 echo "configure:803: checking for working automake" >&5
803 # Run test in a subshell; some versions of sh will print an error if
804 # an executable is not found, even if stderr is redirected.
805 # Redirect stdin to placate older versions of autoconf. Sigh.
806 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
808 echo "$ac_t""found" 1>&6
810 AUTOMAKE
="$missing_dir/missing automake"
811 echo "$ac_t""missing" 1>&6
814 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
815 echo "configure:816: checking for working autoheader" >&5
816 # Run test in a subshell; some versions of sh will print an error if
817 # an executable is not found, even if stderr is redirected.
818 # Redirect stdin to placate older versions of autoconf. Sigh.
819 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
820 AUTOHEADER
=autoheader
821 echo "$ac_t""found" 1>&6
823 AUTOHEADER
="$missing_dir/missing autoheader"
824 echo "$ac_t""missing" 1>&6
827 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
828 echo "configure:829: checking for working makeinfo" >&5
829 # Run test in a subshell; some versions of sh will print an error if
830 # an executable is not found, even if stderr is redirected.
831 # Redirect stdin to placate older versions of autoconf. Sigh.
832 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
834 echo "$ac_t""found" 1>&6
836 MAKEINFO
="$missing_dir/missing makeinfo"
837 echo "$ac_t""missing" 1>&6
840 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${MAKE-make} sets \${MAKE}" >&5
842 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
843 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 cat > conftestmake
<<\EOF
848 @
echo 'ac_maketemp="${MAKE}"'
850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
851 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
852 if test -n "$ac_maketemp"; then
853 eval ac_cv_prog_make_
${ac_make}_set
=yes
855 eval ac_cv_prog_make_
${ac_make}_set
=no
859 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
860 echo "$ac_t""yes" 1>&6
863 echo "$ac_t""no" 1>&6
864 SET_MAKE
="MAKE=${MAKE-make}"
868 # Extract the first word of "gcc", so it can be a program name with args.
869 set dummy gcc
; ac_word
=$2
870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871 echo "configure:872: checking for $ac_word" >&5
872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
875 if test -n "$CC"; then
876 ac_cv_prog_CC
="$CC" # Let the user override the test.
878 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
879 for ac_dir
in $PATH; do
880 test -z "$ac_dir" && ac_dir
=.
881 if test -f $ac_dir/$ac_word; then
890 if test -n "$CC"; then
891 echo "$ac_t""$CC" 1>&6
893 echo "$ac_t""no" 1>&6
896 if test -z "$CC"; then
897 # Extract the first word of "cc", so it can be a program name with args.
898 set dummy cc
; ac_word
=$2
899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
900 echo "configure:901: checking for $ac_word" >&5
901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 if test -n "$CC"; then
905 ac_cv_prog_CC
="$CC" # Let the user override the test.
907 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
909 for ac_dir
in $PATH; do
910 test -z "$ac_dir" && ac_dir
=.
911 if test -f $ac_dir/$ac_word; then
912 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
921 if test $ac_prog_rejected = yes; then
922 # We found a bogon in the path, so make sure we never use it.
923 set dummy
$ac_cv_prog_CC
925 if test $# -gt 0; then
926 # We chose a different compiler from the bogus one.
927 # However, it has the same basename, so the bogon will be chosen
928 # first if we set CC to just the basename; use the full file name.
930 set dummy
"$ac_dir/$ac_word" "$@"
938 if test -n "$CC"; then
939 echo "$ac_t""$CC" 1>&6
941 echo "$ac_t""no" 1>&6
944 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
948 echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp
='$CPP $CPPFLAGS'
953 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling
=$ac_cv_prog_cc_cross
957 cat > conftest.
$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
962 if { (eval echo configure
:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
963 ac_cv_prog_cc_works
=yes
964 # If we can't run a trivial program, we are probably using a cross compiler.
965 if (.
/conftest
; exit) 2>/dev
/null
; then
966 ac_cv_prog_cc_cross
=no
968 ac_cv_prog_cc_cross
=yes
971 echo "configure: failed program was:" >&5
972 cat conftest.
$ac_ext >&5
973 ac_cv_prog_cc_works
=no
977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
978 if test $ac_cv_prog_cc_works = no
; then
979 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
982 echo "configure:983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
984 cross_compiling
=$ac_cv_prog_cc_cross
986 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
987 echo "configure:988: checking whether we are using GNU C" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 cat > conftest.c
<<EOF
996 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1003 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1005 if test $ac_cv_prog_gcc = yes; then
1007 ac_test_CFLAGS
="${CFLAGS+set}"
1008 ac_save_CFLAGS
="$CFLAGS"
1010 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1011 echo "configure:1012: checking whether ${CC-cc} accepts -g" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 echo 'void f(){}' > conftest.c
1016 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1025 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1026 if test "$ac_test_CFLAGS" = set; then
1027 CFLAGS
="$ac_save_CFLAGS"
1028 elif test $ac_cv_prog_cc_g = yes; then
1035 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1038 # Extract the first word of "ranlib", so it can be a program name with args.
1039 set dummy ranlib
; ac_word
=$2
1040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1041 echo "configure:1042: checking for $ac_word" >&5
1042 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 if test -n "$RANLIB"; then
1046 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1048 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1049 for ac_dir
in $PATH; do
1050 test -z "$ac_dir" && ac_dir
=.
1051 if test -f $ac_dir/$ac_word; then
1052 ac_cv_prog_RANLIB
="ranlib"
1057 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1060 RANLIB
="$ac_cv_prog_RANLIB"
1061 if test -n "$RANLIB"; then
1062 echo "$ac_t""$RANLIB" 1>&6
1064 echo "$ac_t""no" 1>&6
1067 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1068 if test "${with_gnu_ld+set}" = set; then
1069 withval
="$with_gnu_ld"
1070 test "$withval" = no || with_gnu_ld
=yes
1075 if test "$with_gnu_ld" = yes; then
1076 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1077 echo "configure:1078: checking for GNU ld" >&5
1079 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1080 echo "configure:1081: checking for non-GNU ld" >&5
1082 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1087 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1088 for ac_dir
in $PATH; do
1089 test -z "$ac_dir" && ac_dir
=.
1090 if test -f "$ac_dir/ld"; then
1091 ac_cv_path_LD
="$ac_dir/ld"
1092 # Check to see if the program is GNU ld. I'd rather use --version,
1093 # but apparently some GNU ld's only accept -v.
1094 # Break only if it was the GNU/non-GNU ld that we prefer.
1095 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU ld|with BFD)' > /dev
/null
; then
1096 test "$with_gnu_ld" = yes && break
1098 test "$with_gnu_ld" != yes && break
1105 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1111 if test -n "$LD"; then
1112 echo "$ac_t""$LD" 1>&6
1114 echo "$ac_t""no" 1>&6
1116 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1118 echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether we are using GNU ld" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1124 if $LD -v 2>&1 </dev
/null |
egrep '(GNU ld|with BFD)' > /dev
/null
; then
1125 ac_cv_prog_gnu_ld
=yes
1127 ac_cv_prog_gnu_ld
=no
1131 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1134 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1135 echo "configure:1136: checking whether ln -s works" >&5
1136 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1140 if ln -s X conftestdata
2>/dev
/null
1143 ac_cv_prog_LN_S
="ln -s"
1148 LN_S
="$ac_cv_prog_LN_S"
1149 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1150 echo "$ac_t""yes" 1>&6
1152 echo "$ac_t""no" 1>&6
1161 # Always use our own libtool.
1162 LIBTOOL
='$(top_builddir)/libtool'
1165 # Check whether --enable-shared or --disable-shared was given.
1166 if test "${enable_shared+set}" = set; then
1167 enableval
="$enable_shared"
1168 if test "$enableval" = no
; then
1176 test "$enable_shared" = no
&& libtool_shared
=" --disable-shared"
1178 # Check whether --enable-static or --disable-static was given.
1179 if test "${enable_static+set}" = set; then
1180 enableval
="$enable_static"
1181 if test "$enableval" = no
; then
1189 test "$enable_static" = no
&& libtool_static
=" --disable-static"
1191 libtool_flags
="$libtool_shared$libtool_static"
1192 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1193 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1194 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1196 # Some flags need to be propagated to the compiler or linker for good
1200 ac_save_CFLAGS
="$CFLAGS"
1201 # -n32 always needs to be added to the linker when using GCC.
1202 test "$ac_cv_prog_gcc" = yes && CFLAGS
="$CFLAGS -n32"
1203 for f
in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
1204 if echo " $CC $CFLAGS " |
egrep -e "[ ]$f[ ]" > /dev
/null
; then
1208 CFLAGS
="$ac_save_CFLAGS"
1212 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1213 CFLAGS
="$CFLAGS -belf"
1217 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1218 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1219 LD
="$LD" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1220 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1221 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1222 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1226 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1227 if test "${enable_bfd_assembler+set}" = set; then
1228 enableval
="$enable_bfd_assembler"
1229 case "${enableval}" in
1230 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1231 no
) user_bfd_gas
=no
;;
1232 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1235 # Check whether --enable-targets or --disable-targets was given.
1236 if test "${enable_targets+set}" = set; then
1237 enableval
="$enable_targets"
1238 case "${enableval}" in
1239 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1241 no
) enable_targets
= ;;
1242 *) enable_targets
=$enableval ;;
1245 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1246 if test "${enable_commonbfdlib+set}" = set; then
1247 enableval
="$enable_commonbfdlib"
1248 case "${enableval}" in
1249 yes) commonbfdlib
=true
;;
1250 no
) commonbfdlib
=false
;;
1251 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1255 # Generate a header file
1263 if test -n "$enable_targets" ; then
1264 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1265 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
1266 if test -n "$result" ; then
1267 canon_targets
="$canon_targets $result"
1269 # # Permit "all", etc. We don't support it yet though.
1270 # canon_targets="$canon_targets $t"
1273 _gas_uniq_list
="$canon_targets"
1274 _gas_uniq_newlist
=""
1275 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1276 case $_gas_uniq_i in
1278 *) case " $_gas_uniq_newlist " in
1279 *" $_gas_uniq_i "*) ;;
1280 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1284 canon_targets
=$_gas_uniq_newlist
1290 for this_target
in $target $canon_targets ; do
1292 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1294 # check for architecture variants
1298 alpha
*) cpu_type
=alpha
;;
1299 armeb
) cpu_type
=arm endian
=big
;;
1300 arm
*) cpu_type
=arm endian
=little
;;
1301 thumb
*) cpu_type
=arm endian
=little
;;
1302 hppa
*) cpu_type
=hppa
;;
1303 i
[456]86) cpu_type
=i386
;;
1304 m680
[012346]0) cpu_type
=m68k
;;
1305 m68008
) cpu_type
=m68k
;;
1306 m683??
) cpu_type
=m68k
;;
1307 m8
*) cpu_type
=m88k
;;
1308 mips
*el
) cpu_type
=mips endian
=little
;;
1309 mips
*5900*) cpu_type
=mips endian
=little
;;
1310 mips
*) cpu_type
=mips endian
=big
;;
1311 powerpcle
*) cpu_type
=ppc endian
=little
;;
1312 powerpc
*) cpu_type
=ppc endian
=big
;;
1313 rs6000
*) cpu_type
=ppc
;;
1314 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
1315 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
1316 sparc64
*) cpu_type
=sparc arch
=v9
;;
1317 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
1318 v850
*) cpu_type
=v850
;;
1319 *) cpu_type
=${cpu} ;;
1322 if test ${this_target} = $target ; then
1323 target_cpu_type
=${cpu_type}
1324 if test x
${endian} = xbig
; then
1325 cat >> confdefs.h
<<\EOF
1326 #define TARGET_BYTES_BIG_ENDIAN 1
1329 elif test x
${endian} = xlittle
; then
1330 cat >> confdefs.h
<<\EOF
1331 #define TARGET_BYTES_BIG_ENDIAN 0
1335 elif test ${target_cpu_type} != ${cpu_type} ; then
1339 generic_target
=${cpu_type}-$vendor-$os
1344 # assign object format
1345 case ${generic_target} in
1346 a29k-
*-coff) fmt=coff
;;
1347 a29k-amd-udi
) fmt=coff
;;
1348 a29k-amd-ebmon
) fmt=coff
;;
1349 a29k-nyu-sym1
) fmt=coff
;;
1350 a29k-
*-vxworks*) fmt=coff
;;
1352 alpha
*-*-*vms
*) fmt=evax
;;
1353 alpha
*-*-netware*) fmt=ecoff
;;
1354 alpha
*-*-openbsd*) fmt=ecoff
;;
1355 alpha
*-*-osf*) fmt=ecoff
;;
1356 alpha
*-*-linuxecoff*) fmt=ecoff
;;
1357 alpha
*-*-linux*) fmt=elf em
=linux
;;
1359 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
1361 arm-
*-riscix*) fmt=aout em
=riscix
;;
1362 arm-
*-aout) fmt=aout
;;
1363 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
1364 arm-
*-riscix*) fmt=aout
;;
1365 arm-
*-pe) fmt=coff em
=pe
;;
1367 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
1368 # start-sanitize-d30v
1369 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
1372 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
1373 hppa-
*-lites*) fmt=elf em
=hppa
;;
1374 hppa-
*-osf*) fmt=som em
=hppa
;;
1375 hppa-
*-rtems*) fmt=elf em
=hppa
;;
1376 hppa-
*-hpux*) fmt=som em
=hppa
;;
1377 hppa-
*-bsd*) fmt=som em
=hppa
;;
1378 hppa-
*-hiux*) fmt=som em
=hppa
;;
1380 h8300-
*-coff) fmt=coff
;;
1382 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
1383 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
1384 i386-
*-bsd*) fmt=aout em
=386bsd
;;
1385 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
1386 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1387 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1388 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
1389 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
1390 i386-
*-linux*) fmt=elf em
=linux
;;
1391 i386-
*-lynxos*) fmt=coff em
=lynx
;;
1392 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf | i386-
*-freebsdelf*)
1394 i386-
*-sco*elf
*) fmt=elf
1395 if test ${this_target} = $target; then
1396 cat >> confdefs.h
<<\EOF
1402 i386-
*-coff | i386-
*-sysv* | i386-
*-sco* | i386-
*-isc*)
1404 i386-
*-vsta) fmt=aout
;;
1405 i386-
*-msdosdjgpp* | i386-
*-go32*)
1407 i386-
*-rtems*) fmt=coff
;;
1408 i386-
*-gnu*) fmt=elf
;;
1410 fmt=aout em
=mach bfd_gas
=yes ;;
1411 i386-
*-msdos*) fmt=aout
;;
1412 i386-
*-moss*) fmt=elf
;;
1413 i386-
*-pe) fmt=coff em
=pe
;;
1414 i386-
*-cygwin32) fmt=coff em
=pe bfd_gas
=yes ;;
1415 i386-
*-*nt
) fmt=coff em
=pe
;;
1416 i960-
*-bout) fmt=bout
;;
1417 i960-
*-coff) fmt=coff em
=ic960
;;
1418 i960-
*-rtems*) fmt=coff em
=ic960
;;
1419 i960-
*-nindy*) fmt=bout
;;
1420 i960-
*-vxworks4*) fmt=bout
;;
1421 i960-
*-vxworks5.0
) fmt=bout
;;
1422 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
1423 i960-
*-vxworks*) fmt=bout
;;
1425 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
1427 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
1429 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
1430 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
1431 m68k-apollo-
*) fmt=coff em
=apollo
;;
1432 m68k-
*-sysv4*) # must be before -sysv*
1434 m68k-
*-elf*) fmt=elf
;;
1435 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
1437 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
1438 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
1439 m68k-
*-linux*) fmt=elf em
=linux
;;
1440 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
1441 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1442 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1443 m68k-apple-aux
*) fmt=coff em
=aux
;;
1444 m68k-
*-psos*) fmt=elf em
=psos
;;
1446 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
1447 m88k-
*-coff*) fmt=coff
;;
1449 # don't change em like *-*-bsd does
1450 mips-dec-netbsd
*) fmt=elf endian
=little
;;
1451 mips-dec-openbsd
*) fmt=elf endian
=little
;;
1452 mips-dec-bsd
*) fmt=aout
;;
1453 mips-sony-bsd
*) fmt=ecoff
;;
1454 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
1455 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
1456 mips-
*-osf*) fmt=ecoff endian
=little
;;
1457 mips-
*-ecoff*) fmt=ecoff
;;
1458 mips-
*-ecoff*) fmt=ecoff
;;
1459 mips-
*-irix6*) fmt=elf
;;
1460 mips-
*-irix5*) fmt=elf
;;
1461 mips-
*-irix*) fmt=ecoff
;;
1462 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
1463 mips-
*-riscos*) fmt=ecoff
;;
1464 mips-
*-sysv*) fmt=ecoff
;;
1465 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux* | mips-
*-gnu* | mips-
*-openbsd*)
1467 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
1468 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
1469 ppc-
*-pe | ppc-
*-cygwin32 | ppc-
*-winnt*)
1471 ppc-
*-aix*) fmt=coff
;;
1472 ppc-
*-beos*) fmt=coff
;;
1473 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
1475 ppc-
*-linux*) fmt=elf
1478 *) { echo "configure: error: Linux must be configured big endian" 1>&2; exit 1; } ;;
1481 ppc-
*-solaris*) fmt=elf
1482 if test ${this_target} = $target; then
1483 cat >> confdefs.h
<<\EOF
1484 #define TARGET_SOLARIS_COMMENT 1
1488 if test x
${endian} = xbig
; then
1489 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1492 ppc-
*-rtems*) fmt=elf
;;
1493 ppc-
*-macos* | ppc-
*-mpw*)
1494 fmt=coff em
=macos
;;
1495 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
1497 sh-
*-elf*) fmt=elf
;;
1498 sh-
*-coff*) fmt=coff
;;
1499 sh-
*-rtems*) fmt=elf
;;
1501 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
1502 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
1503 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
1505 sparc-
*-rtems*) fmt=aout
;;
1506 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
1507 sparc-
*-aout | sparc
*-*-vxworks*)
1508 fmt=aout em
=sparcaout
;;
1509 sparc-
*-coff) fmt=coff
;;
1510 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
1511 sparc-
*-linux*) fmt=elf em
=linux
;;
1512 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
1513 sparc-fujitsu-none
) fmt=aout
;;
1514 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
1516 sparc-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1517 sparc-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1519 # start-sanitize-tic80
1520 tic80-
*-*) fmt=coff
;;
1521 # end-sanitize-tic80
1522 v850-
*-*) fmt=elf bfd_gas
=yes ;;
1524 # start-sanitize-v850e
1525 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
1526 v850eq-
*-*) fmt=elf bfd_gas
=yes ;;
1527 # end-sanitize-v850e
1528 vax-
*-bsd* | vax-
*-ultrix*)
1530 vax-
*-vms) fmt=vms
;;
1532 z8k-
*-coff | z8k-
*-sim)
1535 w65-
*-*) fmt=coff
;;
1537 *-*-aout |
*-*-scout)
1543 *-*-generic) fmt=generic
;;
1544 *-*-xray |
*-*-hms) fmt=coff
;;
1545 *-*-sim) fmt=coff
;;
1546 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
1547 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
1549 *-*-vxworks) fmt=aout
;;
1550 *-*-netware) fmt=elf
;;
1553 case ${cpu_type}-${fmt} in
1554 alpha
*-*) bfd_gas
=yes ;;
1555 arm-
*) bfd_gas
=yes ;;
1557 # i386-aout) bfd_gas=preferred ;;
1558 mips-
*) bfd_gas
=yes ;;
1559 ns32k-
*) bfd_gas
=yes ;;
1560 ppc-
*) bfd_gas
=yes ;;
1561 sparc-
*) bfd_gas
=yes ;;
1562 *-elf) bfd_gas
=yes ;;
1563 *-ecoff) bfd_gas
=yes ;;
1564 *-som) bfd_gas
=yes ;;
1568 # Other random stuff.
1570 # do we need the opcodes library?
1576 if test "${shared_opcodes}" = "true"; then
1577 # A shared libopcodes must be linked against libbfd.
1585 case ${extra_objects} in
1587 *) extra_objects
="$extra_objects cgen.o"
1588 cat >> confdefs.h
<<\EOF
1589 #define USING_CGEN 1
1597 case ${extra_objects} in
1599 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1604 echo ${extra_objects} |
grep -s "itbl-parse.o"
1605 if test $?
-ne 0 ; then
1606 extra_objects
="$extra_objects itbl-parse.o"
1609 echo ${extra_objects} |
grep -s "itbl-lex.o"
1610 if test $?
-ne 0 ; then
1611 extra_objects
="$extra_objects itbl-lex.o"
1614 echo ${extra_objects} |
grep -s "itbl-ops.o"
1615 if test $?
-ne 0 ; then
1616 extra_objects
="$extra_objects itbl-ops.o"
1621 cat >> confdefs.h
<<EOF
1622 #define DEFAULT_ARCH "${arch}"
1631 # See if we really can support this configuration with the emulation code.
1633 if test $this_target = $target ; then
1634 primary_bfd_gas
=$bfd_gas
1638 if test $bfd_gas = no
; then
1639 # Can't support other configurations this way.
1642 elif test $bfd_gas = no
; then
1643 # Can't support this configuration.
1647 # From target name and format, produce a list of supported emulations.
1649 case ${generic_target}-${fmt} in
1650 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1651 mips-
*-linux*-*) case "$endian" in
1652 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1653 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
1655 mips-
*-lnews*-ecoff) ;;
1656 mips-
*-*-ecoff) case "$endian" in
1657 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
1658 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
1660 mips-
*-*-elf) case "$endian" in
1661 big
) emulation
="mipsbelf mipslelf mipself" ;;
1662 *) emulation
="mipslelf mipsbelf mipself" ;;
1663 # Uncommenting the next line will turn on support for i386 COFF
1664 # in any i386 ELF configuration. This probably doesn't work
1666 # i386-*-*-elf) emulation="i386coff i386elf" ;;
1670 emulations
="$emulations $emulation"
1674 # Assign floating point type. Most processors with FP support
1675 # IEEE FP. On those that don't support FP at all, usually IEEE
1677 case ${target_cpu} in
1678 vax | tahoe
) atof
=${target_cpu} ;;
1682 case "${obj_format}" in
1683 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1687 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
1688 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
1691 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
1692 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
1695 case ${user_bfd_gas}-${primary_bfd_gas} in
1697 # We didn't override user's choice.
1700 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1712 # User specified nothing.
1716 # Some COFF configurations want these random other flags set.
1717 case ${obj_format} in
1719 case ${target_cpu_type} in
1720 i386
) cat >> confdefs.h
<<\EOF
1724 m68k
) cat >> confdefs.h
<<\EOF
1728 m88k
) cat >> confdefs.h
<<\EOF
1736 # Getting this done right is going to be a bitch. Each configuration specified
1737 # with --enable-targets=... should be checked for environment, format, cpu, and
1740 # For each configuration, the necessary object file support code must be linked
1741 # in. This might be only one, it might be up to four. The necessary emulation
1742 # code needs to be provided, too.
1744 # And then there's "--enable-targets=all"....
1746 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
1748 formats
="${obj_format}"
1751 _gas_uniq_list
="$emulations"
1752 _gas_uniq_newlist
=""
1753 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1754 case $_gas_uniq_i in
1756 *) case " $_gas_uniq_newlist " in
1757 *" $_gas_uniq_i "*) ;;
1758 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1762 emulations
=$_gas_uniq_newlist
1764 for em
in .
$emulations ; do
1767 mipsbelf | mipslelf
)
1768 fmt=elf
file=mipself
;;
1769 mipsbecoff | mipslecoff
)
1770 fmt=ecoff
file=mipsecoff
;;
1772 fmt=coff
file=i386coff
;;
1774 fmt=elf
file=i386elf
;;
1776 formats
="$formats $fmt"
1777 emfiles
="$emfiles e-$file.o"
1778 EMULATIONS
="$EMULATIONS &$em,"
1780 _gas_uniq_list
="$formats"
1781 _gas_uniq_newlist
=""
1782 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1783 case $_gas_uniq_i in
1785 *) case " $_gas_uniq_newlist " in
1786 *" $_gas_uniq_i "*) ;;
1787 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1791 formats
=$_gas_uniq_newlist
1793 _gas_uniq_list
="$emfiles"
1794 _gas_uniq_newlist
=""
1795 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1796 case $_gas_uniq_i in
1798 *) case " $_gas_uniq_newlist " in
1799 *" $_gas_uniq_i "*) ;;
1800 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1804 emfiles
=$_gas_uniq_newlist
1806 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
1807 for fmt in $formats ; do
1809 aout
) cat >> confdefs.h
<<\EOF
1810 #define OBJ_MAYBE_AOUT 1
1813 bout
) cat >> confdefs.h
<<\EOF
1814 #define OBJ_MAYBE_BOUT 1
1817 coff
) cat >> confdefs.h
<<\EOF
1818 #define OBJ_MAYBE_COFF 1
1821 ecoff
) cat >> confdefs.h
<<\EOF
1822 #define OBJ_MAYBE_ECOFF 1
1825 elf
) cat >> confdefs.h
<<\EOF
1826 #define OBJ_MAYBE_ELF 1
1829 generic
) cat >> confdefs.h
<<\EOF
1830 #define OBJ_MAYBE_GENERIC 1
1833 hp300
) cat >> confdefs.h
<<\EOF
1834 #define OBJ_MAYBE_HP300 1
1837 ieee
) cat >> confdefs.h
<<\EOF
1838 #define OBJ_MAYBE_IEEE 1
1841 som
) cat >> confdefs.h
<<\EOF
1842 #define OBJ_MAYBE_SOM 1
1845 vms
) cat >> confdefs.h
<<\EOF
1846 #define OBJ_MAYBE_VMS 1
1850 extra_objects
="$extra_objects obj-$fmt.o"
1854 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
1856 extra_objects
="$extra_objects $emfiles"
1857 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
1858 cat >> confdefs.h
<<\EOF
1859 #define USE_EMULATIONS 1
1864 cat >> confdefs.h
<<EOF
1865 #define EMULATIONS $EMULATIONS
1868 cat >> confdefs.h
<<EOF
1869 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
1873 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
1874 yes-
*-coff) need_bfd
=yes ;;
1875 no-
*-coff) need_bfd
=yes
1876 cat >> confdefs.h
<<\EOF
1877 #define MANY_SEGMENTS 1
1882 reject_dev_configs
=yes
1884 case ${reject_dev_configs}-${dev} in
1886 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
1895 case "${primary_bfd_gas}" in
1896 yes) cat >> confdefs.h
<<\EOF
1897 #define BFD_ASSEMBLER 1
1903 # do we need the opcodes library?
1904 case "${need_opcodes}" in
1906 OPCODES_LIB
=..
/opcodes
/libopcodes.la
1910 case "${need_bfd}" in
1912 BFDLIB
=..
/bfd
/libbfd.la
1913 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
1922 cat >> confdefs.h
<<EOF
1923 #define TARGET_ALIAS "${target_alias}"
1926 cat >> confdefs.h
<<EOF
1927 #define TARGET_CANONICAL "${target}"
1930 cat >> confdefs.h
<<EOF
1931 #define TARGET_CPU "${target_cpu}"
1934 cat >> confdefs.h
<<EOF
1935 #define TARGET_VENDOR "${target_vendor}"
1938 cat >> confdefs.h
<<EOF
1939 #define TARGET_OS "${target_os}"
1943 # Extract the first word of "gcc", so it can be a program name with args.
1944 set dummy gcc
; ac_word
=$2
1945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1946 echo "configure:1947: checking for $ac_word" >&5
1947 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 if test -n "$CC"; then
1951 ac_cv_prog_CC
="$CC" # Let the user override the test.
1953 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1954 for ac_dir
in $PATH; do
1955 test -z "$ac_dir" && ac_dir
=.
1956 if test -f $ac_dir/$ac_word; then
1965 if test -n "$CC"; then
1966 echo "$ac_t""$CC" 1>&6
1968 echo "$ac_t""no" 1>&6
1971 if test -z "$CC"; then
1972 # Extract the first word of "cc", so it can be a program name with args.
1973 set dummy cc
; ac_word
=$2
1974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1975 echo "configure:1976: checking for $ac_word" >&5
1976 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC
="$CC" # Let the user override the test.
1982 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1984 for ac_dir
in $PATH; do
1985 test -z "$ac_dir" && ac_dir
=.
1986 if test -f $ac_dir/$ac_word; then
1987 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1988 ac_prog_rejected
=yes
1996 if test $ac_prog_rejected = yes; then
1997 # We found a bogon in the path, so make sure we never use it.
1998 set dummy
$ac_cv_prog_CC
2000 if test $# -gt 0; then
2001 # We chose a different compiler from the bogus one.
2002 # However, it has the same basename, so the bogon will be chosen
2003 # first if we set CC to just the basename; use the full file name.
2005 set dummy
"$ac_dir/$ac_word" "$@"
2013 if test -n "$CC"; then
2014 echo "$ac_t""$CC" 1>&6
2016 echo "$ac_t""no" 1>&6
2019 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2022 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2023 echo "configure:2024: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2027 ac_cpp
='$CPP $CPPFLAGS'
2028 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2029 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2030 cross_compiling
=$ac_cv_prog_cc_cross
2032 cat > conftest.
$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2037 if { (eval echo configure
:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2038 ac_cv_prog_cc_works
=yes
2039 # If we can't run a trivial program, we are probably using a cross compiler.
2040 if (.
/conftest
; exit) 2>/dev
/null
; then
2041 ac_cv_prog_cc_cross
=no
2043 ac_cv_prog_cc_cross
=yes
2046 echo "configure: failed program was:" >&5
2047 cat conftest.
$ac_ext >&5
2048 ac_cv_prog_cc_works
=no
2052 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2053 if test $ac_cv_prog_cc_works = no
; then
2054 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2056 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2057 echo "configure:2058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2058 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2059 cross_compiling
=$ac_cv_prog_cc_cross
2061 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2062 echo "configure:2063: checking whether we are using GNU C" >&5
2063 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 cat > conftest.c
<<EOF
2071 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2078 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2080 if test $ac_cv_prog_gcc = yes; then
2082 ac_test_CFLAGS
="${CFLAGS+set}"
2083 ac_save_CFLAGS
="$CFLAGS"
2085 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2086 echo "configure:2087: checking whether ${CC-cc} accepts -g" >&5
2087 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2090 echo 'void f(){}' > conftest.c
2091 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2100 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2101 if test "$ac_test_CFLAGS" = set; then
2102 CFLAGS
="$ac_save_CFLAGS"
2103 elif test $ac_cv_prog_cc_g = yes; then
2110 test "${CFLAGS+set}" = set || CFLAGS
="-g"
2114 for ac_prog
in 'bison -y' byacc
2116 # Extract the first word of "$ac_prog", so it can be a program name with args.
2117 set dummy
$ac_prog; ac_word
=$2
2118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_word" >&5
2120 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2123 if test -n "$YACC"; then
2124 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2126 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2127 for ac_dir
in $PATH; do
2128 test -z "$ac_dir" && ac_dir
=.
2129 if test -f $ac_dir/$ac_word; then
2130 ac_cv_prog_YACC
="$ac_prog"
2137 YACC
="$ac_cv_prog_YACC"
2138 if test -n "$YACC"; then
2139 echo "$ac_t""$YACC" 1>&6
2141 echo "$ac_t""no" 1>&6
2144 test -n "$YACC" && break
2146 test -n "$YACC" || YACC
="yacc"
2148 # Extract the first word of "flex", so it can be a program name with args.
2149 set dummy flex
; ac_word
=$2
2150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2151 echo "configure:2152: checking for $ac_word" >&5
2152 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 if test -n "$LEX"; then
2156 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2158 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2159 for ac_dir
in $PATH; do
2160 test -z "$ac_dir" && ac_dir
=.
2161 if test -f $ac_dir/$ac_word; then
2162 ac_cv_prog_LEX
="flex"
2167 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2170 LEX
="$ac_cv_prog_LEX"
2171 if test -n "$LEX"; then
2172 echo "$ac_t""$LEX" 1>&6
2174 echo "$ac_t""no" 1>&6
2177 if test -z "$LEXLIB"
2183 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2184 echo "configure:2185: checking for yywrap in -l$ac_lib" >&5
2185 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2189 ac_save_LIBS
="$LIBS"
2190 LIBS
="-l$ac_lib $LIBS"
2191 cat > conftest.
$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 /* Override any gcc2 internal prototype to avoid an error. */
2195 /* We use char because int might match the return type of a gcc2
2196 builtin and then its argument prototype would still apply. */
2203 if { (eval echo configure
:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2205 eval "ac_cv_lib_$ac_lib_var=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.
$ac_ext >&5
2210 eval "ac_cv_lib_$ac_lib_var=no"
2213 LIBS
="$ac_save_LIBS"
2216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2220 echo "$ac_t""no" 1>&6
2225 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2226 echo "configure:2227: checking how to run the C preprocessor" >&5
2227 # On Suns, sometimes $CPP names a directory.
2228 if test -n "$CPP" && test -d "$CPP"; then
2231 if test -z "$CPP"; then
2232 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 # This must be in double quotes, not single quotes, because CPP may get
2236 # substituted into the Makefile and "${CC-cc}" will confuse make.
2238 # On the NeXT, cc -E runs the code through the compiler's parser,
2239 # not just through cpp.
2240 cat > conftest.
$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2246 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2247 { (eval echo configure
:2248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2248 ac_err
=`grep -v '^ *+' conftest.out`
2249 if test -z "$ac_err"; then
2253 echo "configure: failed program was:" >&5
2254 cat conftest.
$ac_ext >&5
2256 CPP
="${CC-cc} -E -traditional-cpp"
2257 cat > conftest.
$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2263 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2264 { (eval echo configure
:2265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2265 ac_err
=`grep -v '^ *+' conftest.out`
2266 if test -z "$ac_err"; then
2270 echo "configure: failed program was:" >&5
2271 cat conftest.
$ac_ext >&5
2278 ac_cv_prog_CPP
="$CPP"
2280 CPP
="$ac_cv_prog_CPP"
2282 ac_cv_prog_CPP
="$CPP"
2284 echo "$ac_t""$CPP" 1>&6
2286 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2287 echo "configure:2288: checking lex output file root" >&5
2288 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2291 # The minimal lex program is just a single line: %%. But some broken lexes
2292 # (Solaris, I think it was) want two %% lines, so accommodate them.
2295 if test -f lex.yy.c
; then
2296 ac_cv_prog_lex_root
=lex.yy
2297 elif test -f lexyy.c
; then
2298 ac_cv_prog_lex_root
=lexyy
2300 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2304 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2305 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2307 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2308 echo "configure:2309: checking whether yytext is a pointer" >&5
2309 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 # POSIX says lex can declare yytext either as a pointer or an array; the
2313 # default is implementation-dependent. Figure out which it is, since
2314 # not all implementations provide the %pointer and %array declarations.
2315 ac_cv_prog_lex_yytext_pointer
=no
2316 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2317 ac_save_LIBS
="$LIBS"
2318 LIBS
="$LIBS $LEXLIB"
2319 cat > conftest.
$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 `cat $LEX_OUTPUT_ROOT.c`
2327 if { (eval echo configure
:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2329 ac_cv_prog_lex_yytext_pointer
=yes
2331 echo "configure: failed program was:" >&5
2332 cat conftest.
$ac_ext >&5
2335 LIBS
="$ac_save_LIBS"
2336 rm -f "${LEX_OUTPUT_ROOT}.c"
2340 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2341 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2342 cat >> confdefs.h
<<\EOF
2343 #define YYTEXT_POINTER 1
2349 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2350 echo "configure:2351: checking whether to enable maintainer-specific portions of Makefiles" >&5
2351 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2352 if test "${enable_maintainer_mode+set}" = set; then
2353 enableval
="$enable_maintainer_mode"
2354 USE_MAINTAINER_MODE
=$enableval
2356 USE_MAINTAINER_MODE
=no
2359 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2360 if test $USE_MAINTAINER_MODE = yes; then
2367 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
2368 echo "configure:2369: checking for Cygwin32 environment" >&5
2369 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 cat > conftest.
$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2377 int main () { return __CYGWIN32__; }
2380 if { (eval echo configure
:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2384 echo "configure: failed program was:" >&5
2385 cat conftest.
$ac_ext >&5
2393 echo "$ac_t""$am_cv_cygwin32" 1>&6
2395 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
2397 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2398 echo "configure:2399: checking for executable suffix" >&5
2399 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 if test "$CYGWIN32" = yes; then
2405 cat > am_c_test.c
<< 'EOF'
2407 /* Nothing needed here
*/
2410 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
2411 am_cv_exeext
=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
2415 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
2418 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
2419 echo "$ac_t""${am_cv_exeext}" 1>&6
2422 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
2424 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_hdr" >&5
2427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.
$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2435 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2436 { (eval echo configure
:2437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2437 ac_err
=`grep -v '^ *+' conftest.out`
2438 if test -z "$ac_err"; then
2440 eval "ac_cv_header_$ac_safe=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.
$ac_ext >&5
2446 eval "ac_cv_header_$ac_safe=no"
2450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2453 cat >> confdefs.h
<<EOF
2454 #define $ac_tr_hdr 1
2458 echo "$ac_t""no" 1>&6
2463 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
2464 # people who are not cross-compiling but are compiling cross-assemblers.
2465 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
2466 echo "configure:2467: checking whether compiling a cross-assembler" >&5
2467 if test "${host}" = "${target}"; then
2471 cat >> confdefs.h
<<\EOF
2472 #define CROSS_COMPILE 1
2476 echo "$ac_t""$cross_gas" 1>&6
2478 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2479 # for constant arguments. Useless!
2480 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2481 echo "configure:2482: checking for working alloca.h" >&5
2482 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.
$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2490 char *p = alloca(2 * sizeof(int));
2493 if { (eval echo configure
:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2495 ac_cv_header_alloca_h
=yes
2497 echo "configure: failed program was:" >&5
2498 cat conftest.
$ac_ext >&5
2500 ac_cv_header_alloca_h
=no
2505 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2506 if test $ac_cv_header_alloca_h = yes; then
2507 cat >> confdefs.h
<<\EOF
2508 #define HAVE_ALLOCA_H 1
2513 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2514 echo "configure:2515: checking for alloca" >&5
2515 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 cat > conftest.
$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2523 # define alloca __builtin_alloca
2526 # include <alloca.h>
2531 # ifndef alloca /* predefined by HP cc +Olibcalls */
2539 char *p = (char *) alloca(1);
2542 if { (eval echo configure
:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2544 ac_cv_func_alloca_works
=yes
2546 echo "configure: failed program was:" >&5
2547 cat conftest.
$ac_ext >&5
2549 ac_cv_func_alloca_works
=no
2554 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2555 if test $ac_cv_func_alloca_works = yes; then
2556 cat >> confdefs.h
<<\EOF
2557 #define HAVE_ALLOCA 1
2562 if test $ac_cv_func_alloca_works = no
; then
2563 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2564 # that cause trouble. Some versions do not even contain alloca or
2565 # contain a buggy version. If you still want to use their alloca,
2566 # use ar to extract alloca.o from them instead of compiling alloca.c.
2568 cat >> confdefs.h
<<\EOF
2573 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2574 echo "configure:2575: checking whether alloca needs Cray hooks" >&5
2575 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.
$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581 #if defined(CRAY) && ! defined(CRAY2)
2588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2589 egrep "webecray" >/dev
/null
2>&1; then
2600 echo "$ac_t""$ac_cv_os_cray" 1>&6
2601 if test $ac_cv_os_cray = yes; then
2602 for ac_func
in _getb67 GETB67 getb67
; do
2603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2604 echo "configure:2605: checking for $ac_func" >&5
2605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 cat > conftest.
$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2611 /* System header to define __stub macros and hopefully few prototypes,
2612 which can conflict with char $ac_func(); below. */
2614 /* Override any gcc2 internal prototype to avoid an error. */
2615 /* We use char because int might match the return type of a gcc2
2616 builtin and then its argument prototype would still apply. */
2621 /* The GNU C library defines this for functions which it implements
2622 to always fail with ENOSYS. Some functions are actually named
2623 something starting with __ and the normal name is an alias. */
2624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2632 if { (eval echo configure
:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2634 eval "ac_cv_func_$ac_func=yes"
2636 echo "configure: failed program was:" >&5
2637 cat conftest.
$ac_ext >&5
2639 eval "ac_cv_func_$ac_func=no"
2644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2645 echo "$ac_t""yes" 1>&6
2646 cat >> confdefs.h
<<EOF
2647 #define CRAY_STACKSEG_END $ac_func
2652 echo "$ac_t""no" 1>&6
2658 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2659 echo "configure:2660: checking stack direction for C alloca" >&5
2660 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 if test "$cross_compiling" = yes; then
2664 ac_cv_c_stack_direction
=0
2666 cat > conftest.
$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 find_stack_direction ()
2671 static char *addr = 0;
2676 return find_stack_direction ();
2679 return (&dummy > addr) ? 1 : -1;
2683 exit (find_stack_direction() < 0);
2686 if { (eval echo configure
:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2688 ac_cv_c_stack_direction
=1
2690 echo "configure: failed program was:" >&5
2691 cat conftest.
$ac_ext >&5
2693 ac_cv_c_stack_direction
=-1
2700 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2701 cat >> confdefs.h
<<EOF
2702 #define STACK_DIRECTION $ac_cv_c_stack_direction
2707 echo $ac_n "checking for inline""... $ac_c" 1>&6
2708 echo "configure:2709: checking for inline" >&5
2709 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2713 for ac_kw
in inline __inline__ __inline
; do
2714 cat > conftest.
$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2722 if { (eval echo configure
:2723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2724 ac_cv_c_inline
=$ac_kw; break
2726 echo "configure: failed program was:" >&5
2727 cat conftest.
$ac_ext >&5
2734 echo "$ac_t""$ac_cv_c_inline" 1>&6
2735 case "$ac_cv_c_inline" in
2737 no
) cat >> confdefs.h
<<\EOF
2741 *) cat >> confdefs.h
<<EOF
2742 #define inline $ac_cv_c_inline
2748 # VMS doesn't have unlink.
2749 for ac_func
in unlink remove
2751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2752 echo "configure:2753: checking for $ac_func" >&5
2753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 /* System header to define __stub macros and hopefully few prototypes,
2760 which can conflict with char $ac_func(); below. */
2762 /* Override any gcc2 internal prototype to avoid an error. */
2763 /* We use char because int might match the return type of a gcc2
2764 builtin and then its argument prototype would still apply. */
2769 /* The GNU C library defines this for functions which it implements
2770 to always fail with ENOSYS. Some functions are actually named
2771 something starting with __ and the normal name is an alias. */
2772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2780 if { (eval echo configure
:2781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2782 eval "ac_cv_func_$ac_func=yes"
2784 echo "configure: failed program was:" >&5
2785 cat conftest.
$ac_ext >&5
2787 eval "ac_cv_func_$ac_func=no"
2792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2793 echo "$ac_t""yes" 1>&6
2794 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2795 cat >> confdefs.h
<<EOF
2796 #define $ac_tr_func 1
2800 echo "$ac_t""no" 1>&6
2805 # Some systems don't have sbrk().
2808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2809 echo "configure:2810: checking for $ac_func" >&5
2810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.
$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2816 /* System header to define __stub macros and hopefully few prototypes,
2817 which can conflict with char $ac_func(); below. */
2819 /* Override any gcc2 internal prototype to avoid an error. */
2820 /* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2826 /* The GNU C library defines this for functions which it implements
2827 to always fail with ENOSYS. Some functions are actually named
2828 something starting with __ and the normal name is an alias. */
2829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2837 if { (eval echo configure
:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2839 eval "ac_cv_func_$ac_func=yes"
2841 echo "configure: failed program was:" >&5
2842 cat conftest.
$ac_ext >&5
2844 eval "ac_cv_func_$ac_func=no"
2849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2850 echo "$ac_t""yes" 1>&6
2851 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2852 cat >> confdefs.h
<<EOF
2853 #define $ac_tr_func 1
2857 echo "$ac_t""no" 1>&6
2862 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
2863 # enough, but on some of those systems, the assert macro relies on requoting
2865 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
2866 echo "configure:2867: checking for working assert macro" >&5
2867 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 cat > conftest.
$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2877 /* check for requoting problems */
2878 static int a, b, c, d;
2880 assert (!strcmp(s, "foo bar baz quux"));
2881 /* check for newline handling */
2887 if { (eval echo configure
:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2889 gas_cv_assert_ok
=yes
2891 echo "configure: failed program was:" >&5
2892 cat conftest.
$ac_ext >&5
2898 echo "$ac_t""$gas_cv_assert_ok" 1>&6
2899 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
2900 #define BROKEN_ASSERT 1
2905 # On some systems, the system header files may not declare malloc, realloc,
2906 # and free. There are places where gas needs these functions to have been
2907 # declared -- such as when taking their addresses.
2909 #ifdef HAVE_MEMORY_H
2912 #ifdef HAVE_STRING_H
2915 #ifdef HAVE_STRINGS_H
2916 #include <strings.h>
2919 #ifdef HAVE_STDLIB_H
2922 #ifdef HAVE_UNISTD_H
2927 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
2928 echo "configure:2929: checking whether declaration is required for strstr" >&5
2929 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 cat > conftest.
$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2938 typedef char *(*f)();
2944 if { (eval echo configure
:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2946 gas_cv_decl_needed_strstr
=no
2948 echo "configure: failed program was:" >&5
2949 cat conftest.
$ac_ext >&5
2951 gas_cv_decl_needed_strstr
=yes
2955 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
2956 test $gas_cv_decl_needed_strstr = no ||
{
2957 cat >> confdefs.h
<<\EOF
2958 #define NEED_DECLARATION_STRSTR 1
2964 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
2965 echo "configure:2966: checking whether declaration is required for malloc" >&5
2966 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 cat > conftest.
$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2975 typedef char *(*f)();
2981 if { (eval echo configure
:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2983 gas_cv_decl_needed_malloc
=no
2985 echo "configure: failed program was:" >&5
2986 cat conftest.
$ac_ext >&5
2988 gas_cv_decl_needed_malloc
=yes
2992 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
2993 test $gas_cv_decl_needed_malloc = no ||
{
2994 cat >> confdefs.h
<<\EOF
2995 #define NEED_DECLARATION_MALLOC 1
3001 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
3002 echo "configure:3003: checking whether declaration is required for free" >&5
3003 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 cat > conftest.
$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3012 typedef void (*f)();
3018 if { (eval echo configure
:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3020 gas_cv_decl_needed_free
=no
3022 echo "configure: failed program was:" >&5
3023 cat conftest.
$ac_ext >&5
3025 gas_cv_decl_needed_free
=yes
3029 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
3030 test $gas_cv_decl_needed_free = no ||
{
3031 cat >> confdefs.h
<<\EOF
3032 #define NEED_DECLARATION_FREE 1
3038 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
3039 echo "configure:3040: checking whether declaration is required for sbrk" >&5
3040 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 cat > conftest.
$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3049 typedef char *(*f)();
3055 if { (eval echo configure
:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3057 gas_cv_decl_needed_sbrk
=no
3059 echo "configure: failed program was:" >&5
3060 cat conftest.
$ac_ext >&5
3062 gas_cv_decl_needed_sbrk
=yes
3066 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
3067 test $gas_cv_decl_needed_sbrk = no ||
{
3068 cat >> confdefs.h
<<\EOF
3069 #define NEED_DECLARATION_SBRK 1
3075 # Does errno.h declare errno, or do we have to add a separate declaration
3078 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
3079 echo "configure:3080: checking whether declaration is required for errno" >&5
3080 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.
$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3099 if { (eval echo configure
:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3101 gas_cv_decl_needed_errno
=no
3103 echo "configure: failed program was:" >&5
3104 cat conftest.
$ac_ext >&5
3106 gas_cv_decl_needed_errno
=yes
3110 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
3111 test $gas_cv_decl_needed_errno = no ||
{
3112 cat >> confdefs.h
<<\EOF
3113 #define NEED_DECLARATION_ERRNO 1
3122 cat > confcache
<<\EOF
3123 # This file is a shell script that caches the results of configure
3124 # tests run on this system so they can be shared between configure
3125 # scripts and configure runs. It is not useful on other systems.
3126 # If it contains results you don't want to keep, you may remove or edit it.
3128 # By default, configure uses ./config.cache as the cache file,
3129 # creating it if it does not exist already. You can give configure
3130 # the --cache-file=FILE option to use a different cache file; that is
3131 # what configure does when it calls configure scripts in
3132 # subdirectories, so they share the cache.
3133 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3134 # config.status only pays attention to the cache file if you give it the
3135 # --recheck option to rerun configure.
3138 # The following way of writing the cache mishandles newlines in values,
3139 # but we know of no workaround that is simple, portable, and efficient.
3140 # So, don't put newlines in cache variables' values.
3141 # Ultrix sh set writes to stderr and can't be redirected directly,
3142 # and sets the high bit in the cache file unless we assign to the vars.
3144 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3146 # `set' does not quote correctly, so add quotes (double-quote substitution
3147 # turns \\\\ into \\, and sed turns \\ into \).
3149 -e "s/'/'\\\\''/g" \
3150 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3153 # `set' quotes correctly as required by POSIX, so do not add quotes.
3154 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3157 if cmp -s $cache_file confcache
; then
3160 if test -w $cache_file; then
3161 echo "updating cache $cache_file"
3162 cat confcache
> $cache_file
3164 echo "not updating unwritable cache $cache_file"
3169 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3171 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3172 # Let make expand exec_prefix.
3173 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3175 # Any assignment to VPATH causes Sun make to only execute
3176 # the first set of double-colon rules, so remove it if not needed.
3177 # If there is a colon in the path, we need to keep it.
3178 if test "x$srcdir" = x.
; then
3179 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3182 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3184 DEFS
=-DHAVE_CONFIG_H
3186 # Without the "./", some shells look in PATH for config.status.
3187 : ${CONFIG_STATUS=./config.status}
3189 echo creating
$CONFIG_STATUS
3190 rm -f $CONFIG_STATUS
3191 cat > $CONFIG_STATUS <<EOF
3193 # Generated automatically by configure.
3194 # Run this file to recreate the current configuration.
3195 # This directory was configured as follows,
3196 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3198 # $0 $ac_configure_args
3200 # Compiler output produced by configure, useful for debugging
3201 # configure, is in ./config.log if it exists.
3203 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3206 case "\$ac_option" in
3207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3208 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3209 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3210 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3211 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3213 -help | --help | --hel | --he | --h)
3214 echo "\$ac_cs_usage"; exit 0 ;;
3215 *) echo "\$ac_cs_usage"; exit 1 ;;
3219 ac_given_srcdir=$srcdir
3220 ac_given_INSTALL="$INSTALL"
3222 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3224 cat >> $CONFIG_STATUS <<EOF
3226 # Protect against being on the right side of a sed subst in config.status.
3227 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3228 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3232 s%@CFLAGS@%$CFLAGS%g
3233 s%@CPPFLAGS@%$CPPFLAGS%g
3234 s%@CXXFLAGS@%$CXXFLAGS%g
3236 s%@LDFLAGS@%$LDFLAGS%g
3238 s%@exec_prefix@%$exec_prefix%g
3239 s%@prefix@%$prefix%g
3240 s%@program_transform_name@%$program_transform_name%g
3241 s%@bindir@%$bindir%g
3242 s%@sbindir@%$sbindir%g
3243 s%@libexecdir@%$libexecdir%g
3244 s%@datadir@%$datadir%g
3245 s%@sysconfdir@%$sysconfdir%g
3246 s%@sharedstatedir@%$sharedstatedir%g
3247 s%@localstatedir@%$localstatedir%g
3248 s%@libdir@%$libdir%g
3249 s%@includedir@%$includedir%g
3250 s%@oldincludedir@%$oldincludedir%g
3251 s%@infodir@%$infodir%g
3252 s%@mandir@%$mandir%g
3254 s%@host_alias@%$host_alias%g
3255 s%@host_cpu@%$host_cpu%g
3256 s%@host_vendor@%$host_vendor%g
3257 s%@host_os@%$host_os%g
3258 s%@target@%$target%g
3259 s%@target_alias@%$target_alias%g
3260 s%@target_cpu@%$target_cpu%g
3261 s%@target_vendor@%$target_vendor%g
3262 s%@target_os@%$target_os%g
3264 s%@build_alias@%$build_alias%g
3265 s%@build_cpu@%$build_cpu%g
3266 s%@build_vendor@%$build_vendor%g
3267 s%@build_os@%$build_os%g
3268 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3269 s%@INSTALL_DATA@%$INSTALL_DATA%g
3270 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3271 s%@PACKAGE@%$PACKAGE%g
3272 s%@VERSION@%$VERSION%g
3273 s%@ACLOCAL@%$ACLOCAL%g
3274 s%@AUTOCONF@%$AUTOCONF%g
3275 s%@AUTOMAKE@%$AUTOMAKE%g
3276 s%@AUTOHEADER@%$AUTOHEADER%g
3277 s%@MAKEINFO@%$MAKEINFO%g
3278 s%@SET_MAKE@%$SET_MAKE%g
3280 s%@RANLIB@%$RANLIB%g
3283 s%@LIBTOOL@%$LIBTOOL%g
3284 s%@extra_objects@%$extra_objects%g
3285 s%@target_cpu_type@%$target_cpu_type%g
3286 s%@obj_format@%$obj_format%g
3287 s%@te_file@%$te_file%g
3289 s%@BFDLIB@%$BFDLIB%g
3290 s%@OPCODES_LIB@%$OPCODES_LIB%g
3291 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
3294 s%@LEXLIB@%$LEXLIB%g
3296 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3298 s%@EXEEXT@%$EXEEXT%g
3299 s%@ALLOCA@%$ALLOCA%g
3304 cat >> $CONFIG_STATUS <<\EOF
3306 # Split the substitutions into bite-sized pieces for seds with
3307 # small command number limits, like on Digital OSF/1 and HP-UX.
3308 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3309 ac_file
=1 # Number of current file.
3310 ac_beg
=1 # First line for current file.
3311 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3314 while $ac_more_lines; do
3315 if test $ac_beg -gt 1; then
3316 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3318 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3320 if test ! -s conftest.s
$ac_file; then
3322 rm -f conftest.s
$ac_file
3324 if test -z "$ac_sed_cmds"; then
3325 ac_sed_cmds
="sed -f conftest.s$ac_file"
3327 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3329 ac_file
=`expr $ac_file + 1`
3331 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3334 if test -z "$ac_sed_cmds"; then
3339 cat >> $CONFIG_STATUS <<EOF
3341 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"}
3343 cat >> $CONFIG_STATUS <<\EOF
3344 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3347 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3348 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3349 *) ac_file_in
="${ac_file}.in" ;;
3352 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3354 # Remove last slash and all that follows it. Not all systems have dirname.
3355 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3356 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3357 # The file is in a subdirectory.
3358 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3359 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3360 # A "../" for each directory in $ac_dir_suffix.
3361 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3363 ac_dir_suffix
= ac_dots
=
3366 case "$ac_given_srcdir" in
3368 if test -z "$ac_dots"; then top_srcdir
=.
3369 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3370 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3372 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3373 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3376 case "$ac_given_INSTALL" in
3377 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3378 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3381 echo creating
"$ac_file"
3383 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3385 *Makefile
*) ac_comsub
="1i\\
3386 # $configure_input" ;;
3390 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3392 s%@configure_input@%$configure_input%g
3393 s%@srcdir@%$srcdir%g
3394 s%@top_srcdir@%$top_srcdir%g
3395 s%@INSTALL@%$INSTALL%g
3396 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3400 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3401 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3403 # ac_d sets the value in "#define NAME VALUE" lines.
3404 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3405 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3408 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3409 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3410 ac_uB
='\([ ]\)%\1#\2define\3'
3413 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3414 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3415 ac_eB
='$%\1#\2define\3'
3419 if test "${CONFIG_HEADERS+set}" != set; then
3421 cat >> $CONFIG_STATUS <<EOF
3422 CONFIG_HEADERS="config.h:config.in"
3424 cat >> $CONFIG_STATUS <<\EOF
3426 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3427 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3429 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3430 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3431 *) ac_file_in
="${ac_file}.in" ;;
3434 echo creating
$ac_file
3436 rm -f conftest.frag conftest.
in conftest.out
3437 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3438 cat $ac_file_inputs > conftest.
in
3442 # Transform confdefs.h into a sed script conftest.vals that substitutes
3443 # the proper values into config.h.in to produce config.h. And first:
3444 # Protect against being on the right side of a sed subst in config.status.
3445 # Protect against being in an unquoted here document in config.status.
3447 cat > conftest.hdr
<<\EOF
3450 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3454 sed -n -f conftest.hdr confdefs.h > conftest.vals
3457 # This sed command replaces #undef with comments. This is necessary, for
3458 # example, in the case of _POSIX_SOURCE, which is predefined and required
3459 # on some systems where configure will not decide to define it.
3460 cat >> conftest.vals <<\EOF
3461 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3464 # Break up conftest.vals because some shells have a limit on
3465 # the size of here documents, and old seds have small limits too.
3470 ac_lines=`grep -c . conftest.vals
`
3471 # grep -c gives empty output for an empty file on some AIX systems.
3472 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3473 # Write a limited-size here document to conftest.frag.
3474 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3475 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3477 sed -f conftest.frag conftest.in > conftest.out
3479 mv conftest.out conftest.in
3481 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3483 mv conftest.tail conftest.vals
3487 cat >> $CONFIG_STATUS <<\EOF
3488 rm -f conftest.frag conftest.h
3489 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3490 cat conftest.in >> conftest.h
3492 if cmp -s $ac_file conftest.h 2>/dev/null; then
3493 echo "$ac_file is unchanged"
3496 # Remove last slash and all that follows it. Not all systems have dirname.
3497 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3498 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3499 # The file is in a subdirectory.
3500 test ! -d "$ac_dir" && mkdir "$ac_dir"
3503 mv conftest.h $ac_file
3508 cat >> $CONFIG_STATUS <<EOF
3510 target_cpu_type=${target_cpu_type}
3511 obj_format=${obj_format}
3514 cat >> $CONFIG_STATUS <<\EOF
3515 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3516 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
3517 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
3518 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
3519 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
3520 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
3521 case ${target_cpu_type} in
3522 m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
3526 chmod +x $CONFIG_STATUS
3527 rm -fr confdefs* $ac_clean_files
3528 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1