3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4
5 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-bfd-assembler use BFD back end for writing object files"
17 targets alternative target configurations besides the primary"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file
=.
/config.cache
32 program_transform_name
=s
,x
,x
,
41 # Initialize some other variables.
48 # If the previous option needs an argument, assign it.
49 if test -n "$ac_prev"; then
50 eval "$ac_prev=\$ac_option"
56 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
60 # Accept the important Cygnus configure options, so we can diagnose typos.
64 -build |
--build |
--buil |
--bui |
--bu |
--b)
66 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=* |
--b=*)
69 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
70 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
72 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
73 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
74 cache_file
="$ac_optarg" ;;
76 -disable-* |
--disable-*)
77 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
78 # Reject names that are not valid shell variable names.
79 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
80 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
82 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
83 eval "enable_${ac_feature}=no" ;;
85 -enable-* |
--enable-*)
86 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
87 # Reject names that are not valid shell variable names.
88 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
89 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
91 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
96 eval "enable_${ac_feature}='$ac_optarg'" ;;
98 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
99 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
100 |
--exec |
--exe |
--ex)
101 ac_prev
=exec_prefix
;;
102 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
103 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
104 |
--exec=* |
--exe=* |
--ex=*)
105 exec_prefix
="$ac_optarg" ;;
107 -gas |
--gas |
--ga |
--g)
108 # Obsolete; use --with-gas.
111 -help |
--help |
--hel |
--he)
112 # Omit some internal or obsolete options to make the list less imposing.
113 # This message is too long to be a string in the A/UX 3.1 sh.
115 Usage: configure [options] [host]
116 Options: [defaults in brackets after descriptions]
118 --cache-file=FILE cache test results in FILE
119 --help print this message
120 --no-create do not create output files
121 --quiet, --silent do not print \`checking...' messages
122 --version print the version of autoconf that created configure
123 Directory and file names:
124 --prefix=PREFIX install architecture-independent files in PREFIX
126 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
128 --srcdir=DIR find the sources in DIR [configure dir or ..]
129 --program-prefix=PREFIX prepend PREFIX to installed program names
130 --program-suffix=SUFFIX append SUFFIX to installed program names
131 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
133 --build=BUILD configure for building on BUILD [BUILD=HOST]
134 --host=HOST configure for HOST [guessed]
135 --target=TARGET configure for TARGET [TARGET=HOST]
136 Features and packages:
137 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
138 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
139 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
140 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
141 --x-includes=DIR X include files are in DIR
142 --x-libraries=DIR X library files are in DIR
143 --enable and --with options recognized:$ac_help
147 -host |
--host |
--hos |
--ho)
149 -host=* |
--host=* |
--hos=* |
--ho=*)
153 # Obsolete; use --without-fp.
156 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
160 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
161 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
164 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
166 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
167 prefix
="$ac_optarg" ;;
169 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
170 |
--program-pre |
--program-pr |
--program-p)
171 ac_prev
=program_prefix
;;
172 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
173 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
174 program_prefix
="$ac_optarg" ;;
176 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
177 |
--program-suf |
--program-su |
--program-s)
178 ac_prev
=program_suffix
;;
179 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
180 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
181 program_suffix
="$ac_optarg" ;;
183 -program-transform-name |
--program-transform-name \
184 |
--program-transform-nam |
--program-transform-na \
185 |
--program-transform-n |
--program-transform- \
186 |
--program-transform |
--program-transfor \
187 |
--program-transfo |
--program-transf \
188 |
--program-trans |
--program-tran \
189 |
--progr-tra |
--program-tr |
--program-t)
190 ac_prev
=program_transform_name
;;
191 -program-transform-name=* |
--program-transform-name=* \
192 |
--program-transform-nam=* |
--program-transform-na=* \
193 |
--program-transform-n=* |
--program-transform-=* \
194 |
--program-transform=* |
--program-transfor=* \
195 |
--program-transfo=* |
--program-transf=* \
196 |
--program-trans=* |
--program-tran=* \
197 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
198 program_transform_name
="$ac_optarg" ;;
200 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
201 |
-silent |
--silent |
--silen |
--sile |
--sil)
204 -site |
--site |
--sit)
206 -site=* |
--site=* |
--sit=*)
209 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
211 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
212 srcdir
="$ac_optarg" ;;
214 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
216 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
217 target
="$ac_optarg" ;;
219 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
222 -version |
--version |
--versio |
--versi |
--vers)
223 echo "configure generated by autoconf version 2.4"
227 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
230 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
232 ac_package
=`echo $ac_package| sed 's/-/_/g'`
237 eval "with_${ac_package}='$ac_optarg'" ;;
239 -without-* |
--without-*)
240 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
243 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
245 ac_package
=`echo $ac_package| sed 's/-/_/g'`
246 eval "with_${ac_package}=no" ;;
249 # Obsolete; use --with-x.
252 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
253 |
--x-incl |
--x-inc |
--x-in |
--x-i)
254 ac_prev
=x_includes
;;
255 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
256 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
257 x_includes
="$ac_optarg" ;;
259 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
260 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
261 ac_prev
=x_libraries
;;
262 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
263 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
264 x_libraries
="$ac_optarg" ;;
266 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
270 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
271 echo "configure: warning: $ac_option: invalid host type" 1>&2
273 if test "x$nonopt" != xNONE
; then
274 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
282 if test -n "$ac_prev"; then
283 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
286 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
288 # File descriptor usage:
291 # 2 errors and warnings
292 # 3 some systems may open it to /dev/tty
293 # 4 used on the Kubota Titan
294 # 6 checking for... messages and results
295 # 5 compiler messages saved in config.log
296 if test "$silent" = yes; then
304 This file contains any messages produced by compilers while
305 running configure, to aid debugging if configure makes a mistake.
308 # Strip out --no-create and --no-recursion so they do not pile up.
309 # Also quote any args containing shell metacharacters.
314 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
315 |
--no-cr |
--no-c) ;;
316 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
317 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
318 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
319 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
320 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
325 # Only set LANG and LC_ALL to C if already set.
326 # These must not be set unconditionally because not all systems understand
327 # e.g. LANG=C (notably SCO).
328 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
329 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
332 rm -rf conftest
* confdefs.h
333 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
336 # A filename unique to this package, relative to the directory that
337 # configure is in, which we can look for to find out if srcdir is correct.
340 # Find the source files, if location was not specified.
341 if test -z "$srcdir"; then
342 ac_srcdir_defaulted
=yes
343 # Try the directory containing this script, then its parent.
345 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
346 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
348 if test ! -r $srcdir/$ac_unique_file; then
352 ac_srcdir_defaulted
=no
354 if test ! -r $srcdir/$ac_unique_file; then
355 if test "$ac_srcdir_defaulted" = yes; then
356 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
358 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
361 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
363 # Prefer explicitly selected file to automatically selected ones.
364 if test -z "$CONFIG_SITE"; then
365 if test "x$prefix" != xNONE
; then
366 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
368 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
371 for ac_site_file
in $CONFIG_SITE; do
372 if test -r "$ac_site_file"; then
373 echo "loading site script $ac_site_file"
378 if test -r "$cache_file"; then
379 echo "loading cache $cache_file"
382 echo "creating cache $cache_file"
387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
388 ac_cpp
='$CPP $CPPFLAGS'
389 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
390 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
392 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
393 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
394 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
401 ac_n
= ac_c
='\c' ac_t
=
405 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
406 enableval
="$enable_bfd_assembler"
407 if test -n "$enableval"; then
408 case "${enableval}" in
409 yes) need_bfd
=yes user_bfd_gas
=yes ;;
410 no
) user_bfd_gas
=no
;;
411 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
414 # Check whether --enable-targets or --disable-targets was given.
415 enableval
="$enable_targets"
416 if test -n "$enableval"; then
417 case "${enableval}" in
418 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
420 no
) enable_targets
= ;;
421 *) enable_targets
=$enableval ;;
425 # Generate a header file -- gets more post-processing by Makefile later.
429 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
430 if test -f $ac_dir/install-sh
; then
432 ac_install_sh
="$ac_aux_dir/install-sh -c"
434 elif test -f $ac_dir/install.sh
; then
436 ac_install_sh
="$ac_aux_dir/install.sh -c"
440 if test -z "$ac_aux_dir"; then
441 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
443 ac_config_guess
=$ac_aux_dir/config.guess
444 ac_config_sub
=$ac_aux_dir/config.sub
445 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
448 # Do some error checking and defaulting for the host and target type.
450 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
453 # 1. You are not allowed to specify --host, --target, and nonopt at the
455 # 2. Host defaults to nonopt.
456 # 3. If nonopt is not specified, then host defaults to the current host,
457 # as determined by config.guess.
458 # 4. Target and build default to nonopt.
459 # 5. If nonopt is not specified, then target and build default to host.
461 # The aliases save the names the user supplied, while $host etc.
462 # will get canonicalized.
463 case $host---$target---$nonopt in
464 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
465 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
469 # Make sure we can run config.sub.
470 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
471 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
474 echo $ac_n "checking host system type""... $ac_c" 1>&6
477 case "$host_alias" in
481 if host_alias
=`$ac_config_guess`; then :
482 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
484 *) host_alias
=$nonopt ;;
488 host=`$ac_config_sub $host_alias`
489 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
490 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
491 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
492 echo "$ac_t""$host" 1>&6
494 echo $ac_n "checking target system type""... $ac_c" 1>&6
497 case "$target_alias" in
500 NONE
) target_alias
=$host_alias ;;
501 *) target_alias
=$nonopt ;;
505 target
=`$ac_config_sub $target_alias`
506 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
507 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
508 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
509 echo "$ac_t""$target" 1>&6
511 echo $ac_n "checking build system type""... $ac_c" 1>&6
514 case "$build_alias" in
517 NONE
) build_alias
=$host_alias ;;
518 *) build_alias
=$nonopt ;;
522 build
=`$ac_config_sub $build_alias`
523 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
524 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
525 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
526 echo "$ac_t""$build" 1>&6
528 test "$host_alias" != "$target_alias" &&
529 test "$program_prefix$program_suffix$program_transform_name" = \
531 program_prefix
=${target_alias}-
533 if test "$program_transform_name" = s
,x
,x
,; then
534 program_transform_name
=
537 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
538 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
541 test "$program_prefix" != NONE
&&
542 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
543 # Use a double $ so make ignores it.
544 test "$program_suffix" != NONE
&&
545 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
547 # sed with no file args requires a program.
548 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
555 # check for architecture variants
556 case ${target_cpu} in
557 armeb
) cpu_type
=arm endian
=big
;;
558 arm
*) cpu_type
=arm endian
=little
;;
559 hppa
*) cpu_type
=hppa
;;
560 i
[45]86) cpu_type
=i386
;;
561 m680
[012346]0) cpu_type
=m68k
;;
562 m68008
) cpu_type
=m68k
;;
563 m683??
) cpu_type
=m68k
;;
564 m8
*) cpu_type
=m88k
;;
565 mips
*el
) cpu_type
=mips endian
=little
;;
566 mips
*) cpu_type
=mips endian
=big
;;
567 powerpcle
*) cpu_type
=ppc endian
=little
;;
568 powerpc
*) cpu_type
=ppc endian
=big
;;
569 rs6000
*) cpu_type
=ppc
;;
570 sparc64
) cpu_type
=sparc
571 cat >> confdefs.h
<<\EOF
575 sparclite
*) cpu_type
=sparc
;;
576 *) cpu_type
=${target_cpu} ;;
579 # do we need the opcodes library?
584 OPCODES_LIB
="../opcodes/libopcodes.a"
589 gas_target
=${cpu_type}
590 this_target
=${generic_target}
593 if test -n "$enable_targets" ; then
594 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
595 result
=`$ac_config_sub $t 2>/dev/null`
596 if test -n "$result" ; then
597 canon_targets
="$canon_targets $result"
599 # # Permit "all", etc. We don't support it yet though.
600 # canon_targets="$canon_targets $t"
603 _gas_uniq_list
="$canon_targets"
605 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
608 *) case " $_gas_uniq_newlist " in
609 *" $_gas_uniq_i "*) ;;
610 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
614 canon_targets
=$_gas_uniq_newlist
620 for this_target
in $target $canon_targets ; do
622 eval `echo $this_target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
624 # check for architecture variants
626 hppa
*) cpu_type
=hppa
;;
627 i
[45]86) cpu_type
=i386
;;
628 m680
[012346]0) cpu_type
=m68k
;;
629 m68008
) cpu_type
=m68k
;;
630 m683??
) cpu_type
=m68k
;;
631 m8
*) cpu_type
=m88k
;;
632 mips
*el
) cpu_type
=mips endian
=little
;;
633 mips
*) cpu_type
=mips endian
=big
;;
634 powerpcle
*) cpu_type
=ppc endian
=little
;;
635 powerpc
*) cpu_type
=ppc endian
=big
;;
636 rs6000
*) cpu_type
=ppc
;;
637 sparc64
) cpu_type
=sparc want_sparc_v9
=true
;;
638 sparclite
*) cpu_type
=sparc
;;
639 *) cpu_type
=${cpu} ;;
642 if test ${this_target} = $target ; then
643 target_cpu_type
=${cpu_type}
644 elif test ${target_cpu_type} != ${cpu_type} ; then
649 generic_target
=${cpu_type}-$vendor-$os
654 # assign object format
655 case ${generic_target} in
656 a29k-amd-udi
) fmt=coff targ
=ebmon29k
;;
657 a29k-amd-ebmon
) fmt=coff targ
=ebmon29k
;;
658 a29k-nyu-sym1
) fmt=coff targ
=ebmon29k
;;
659 a29k-
*-vxworks*) fmt=coff
;;
661 alpha-
*-netware*) fmt=ecoff
;;
662 alpha-
*-osf*) fmt=ecoff
;;
663 alpha-
*-linux*) fmt=ecoff
;;
666 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
669 arm-
*-riscix*) fmt=aout targ
=arm-lit
;;
676 arm-
*-coff) fmt=coff
;;
677 arm-
*-riscix*) fmt=aout
;;
678 arm-
*-pe) fmt=coff targ
=armcoff em
=pe
;;
680 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
681 hppa-
*-lites*) fmt=elf em
=hppa
;;
682 hppa-
*-osf*) fmt=som em
=hppa
;;
683 hppa-
*-hpux*) fmt=som em
=hppa
;;
684 hppa-
*-bsd*) fmt=som em
=hppa
;;
685 hppa-
*-hiux*) fmt=som em
=hppa
;;
687 h8300-
*-coff) fmt=coff
;;
689 i386-ibm-aix
*) fmt=coff targ
=i386coff
691 i386-
*-bsd*) fmt=aout em
=386bsd
;;
692 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
693 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
694 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
695 i386-
*-linux*coff
*) fmt=coff em
=linux
697 i386-
*-linux*) fmt=elf em
=linux
;;
698 i386-
*-lynxos*) fmt=coff targ
=i386coff
700 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
702 i386-
*-sco*elf
*) fmt=elf targ
=sco5
;;
703 i386-
*-coff | i386-
*-sysv* | i386-
*-sco* | i386-
*-isc*)
704 fmt=coff targ
=i386coff
;;
705 i386-
*-vsta) fmt=aout
;;
706 i386-
*-go32) fmt=coff targ
=i386coff
;;
707 i386-
*-gnu*) fmt=elf
;;
709 fmt=aout em
=mach bfd_gas
=yes ;;
710 i386-
*-msdos*) fmt=aout
;;
711 i386-
*-moss*) fmt=elf
;;
712 i386-
*-pe) fmt=coff targ
=i386coff em
=pe bfd_gas
=yes;;
713 i386-
*-cygwin32) fmt=coff targ
=i386coff em
=pe bfd_gas
=yes;;
714 i386-
*-*nt
) fmt=coff targ
=i386coff em
=pe bfd_gas
=yes;;
715 i960-
*-bout) fmt=bout
;;
716 i960-
*-coff) fmt=coff em
=ic960 targ
=ic960coff
;;
717 i960-
*-nindy*) fmt=bout
;;
718 i960-
*-vxworks4*) fmt=bout
;;
719 i960-
*-vxworks5.0
) fmt=bout
;;
720 i960-
*-vxworks5.
*) fmt=coff em
=ic960 targ
=ic960coff
;;
721 i960-
*-vxworks*) fmt=bout
;;
723 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
725 m68k-motorola-sysv
*) fmt=coff targ
=m68kcoff em
=delta
;;
726 m68k-bull-sysv3
*) fmt=coff targ
=m68kcoff em
=dpx2
;;
727 m68k-apollo-
*) fmt=coff targ
=apollo em
=apollo
;;
728 m68k-
*-sysv4 | m68k-
*-elf) # must be before -sysv*
730 m68k-
*-coff | m68k-
*-sysv*)
731 fmt=coff targ
=m68kcoff
;;
732 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
733 m68k-
*-lynxos*) fmt=coff targ
=m68kcoff
735 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
736 m68
*-apple-aux*) fmt=coff targ
=m68kcoff em
=aux
;;
738 m88k-motorola-sysv3
*) fmt=coff targ
=m88kcoff em
=delt88
;;
739 m88k-
*-coff*) fmt=coff targ
=m88kcoff
;;
741 # don't change em like *-*-bsd does
742 mips-dec-netbsd
*) fmt=elf targ
=mips-lit endian
=little
;;
743 mips-dec-bsd
*) fmt=aout targ
=mips-lit
;;
744 mips-sony-bsd
*) fmt=ecoff targ
=mips-big
;;
745 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
746 mips-
*-ultrix*) fmt=ecoff targ
=mips-lit endian
=little
;;
747 mips-
*-ecoff*) fmt=ecoff
749 big
) targ
=mips-big
;;
753 mips-
*-ecoff*) fmt=ecoff targ
=mips-big
;;
754 mips-
*-gnu*) fmt=aout
756 big
) targ
=mips-big
;;
760 mips-
*-irix5*) fmt=elf targ
=mips-big
;;
761 mips-
*-irix*) fmt=ecoff targ
=mips-big
;;
762 mips-
*-riscos*) fmt=ecoff targ
=mips-big
;;
763 mips-
*-sysv*) fmt=ecoff targ
=mips-big
;;
766 big
) targ
=mips-big
;;
770 ppc-
*-pe | ppc-
*-cygwin32 | ppc-
*-winnt*)
777 ppc-
*-aix*) fmt=coff
;;
778 ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
785 ppc-
*-macos* | ppc-
*-mpw*)
787 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
789 sh-
*-coff) fmt=coff
;;
792 rce-
*-aout) fmt=aout
;;
795 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
796 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
798 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
799 sparc-
*-aout | sparc
*-*-vxworks)
801 sparc-
*-coff) fmt=coff
;;
802 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
803 sparc-fujitsu-none
) fmt=aout
;;
804 sparc-
*-elf | sparc
*-*-solaris*)
806 sparc-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
808 vax-
*-bsd* | vax-
*-ultrix*)
810 vax-
*-vms) fmt=vms
;;
812 z8k-
*-coff | z8k-
*-sim)
817 *-*-aout |
*-*-scout)
823 *-*-generic) fmt=generic
;;
824 *-*-xray |
*-*-hms) fmt=coff
;;
826 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
827 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
829 *-*-vxworks) fmt=aout
;;
830 *-*-netware) fmt=elf
;;
833 case ${cpu_type}-${fmt} in
834 arm-
*) bfd_gas
=yes ;;
836 # i386-aout) bfd_gas=preferred ;;
837 mips-
*) bfd_gas
=yes ;;
838 ns32k-
*) bfd_gas
=yes ;;
839 ppc-
*) bfd_gas
=yes ;;
840 sparc-
*) bfd_gas
=yes ;;
841 *-elf) bfd_gas
=yes ;;
842 *-ecoff) bfd_gas
=yes ;;
843 *-som) bfd_gas
=yes ;;
847 # Other random stuff.
849 test -n "$want_sparc_v9" && cat >> confdefs.h
<<\EOF
854 case ${cpu}-${vendor}-${os} in
855 sparc64-
*-elf*) cat >> confdefs.h
<<\EOF
856 #define SPARC_ARCH64 1
862 m68k
) extra_objects
="$extra_objects m68k-parse.o" ;;
865 # See if we really can support this configuration with the emulation code.
867 if test $this_target = $target ; then
868 primary_bfd_gas
=$bfd_gas
873 if test $bfd_gas = no
; then
874 # Can't support other configurations this way.
877 elif test $bfd_gas = no
; then
878 # Can't support this configuration.
882 # From target name and format, produce a list of supported emulations.
884 case ${generic_target}-${fmt} in
885 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
886 mips-
*-*-ecoff) case "$endian" in
887 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
888 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
890 mips-
*-*-elf) case "$endian" in
891 big
) emulation
="mipsbelf mipslelf mipself" ;;
892 *) emulation
="mipslelf mipsbelf mipself" ;;
896 emulations
="$emulations $emulation"
900 # Assign floating point type. Most processors with FP support
901 # IEEE FP. On those that don't support FP at all, usually IEEE
903 case ${target_cpu} in
904 vax | tahoe
) atof
=${target_cpu} ;;
908 case "${obj_format}" in
909 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
913 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
914 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
917 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
918 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
921 # and target makefile frag
923 target_frag
=${srcdir}/config
/${gas_target}.mt
924 if test ! -r ${target_frag}; then
925 target_frag
=/dev
/null
# ick! but subst_file can't be conditionalized
929 case ${user_bfd_gas}-${primary_bfd_gas} in
931 # We didn't override user's choice.
934 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
946 # User specified nothing.
950 # Some COFF configurations want these random other flags set.
951 case ${obj_format} in
953 case ${target_cpu_type} in
954 i386
) cat >> confdefs.h
<<\EOF
958 m68k
) cat >> confdefs.h
<<\EOF
962 m88k
) cat >> confdefs.h
<<\EOF
970 # Getting this done right is going to be a bitch. Each configuration specified
971 # with --enable-targets=... should be checked for environment, format, cpu, and
974 # For each configuration, the necessary object file support code must be linked
975 # in. This might be only one, it might be up to four. The necessary emulation
976 # code needs to be provided, too.
978 # And then there's "--enable-targets=all"....
980 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
982 formats
="${obj_format}"
985 _gas_uniq_list
="$emulations"
987 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
990 *) case " $_gas_uniq_newlist " in
991 *" $_gas_uniq_i "*) ;;
992 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
996 emulations
=$_gas_uniq_newlist
998 for em
in .
$emulations ; do
1001 mipsbelf | mipslelf
)
1002 fmt=elf
file=mipself
;;
1003 mipsbecoff | mipslecoff
)
1004 fmt=ecoff
file=mipsecoff
;;
1006 formats
="$formats $fmt"
1007 emfiles
="$emfiles e-$file.o"
1008 EMULATIONS
="$EMULATIONS &$em,"
1010 _gas_uniq_list
="$formats"
1011 _gas_uniq_newlist
=""
1012 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1013 case $_gas_uniq_i in
1015 *) case " $_gas_uniq_newlist " in
1016 *" $_gas_uniq_i "*) ;;
1017 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1021 formats
=$_gas_uniq_newlist
1023 _gas_uniq_list
="$emfiles"
1024 _gas_uniq_newlist
=""
1025 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1026 case $_gas_uniq_i in
1028 *) case " $_gas_uniq_newlist " in
1029 *" $_gas_uniq_i "*) ;;
1030 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1034 emfiles
=$_gas_uniq_newlist
1036 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
1037 for fmt in $formats ; do
1039 aout
) cat >> confdefs.h
<<\EOF
1040 #define OBJ_MAYBE_AOUT 1
1043 bout
) cat >> confdefs.h
<<\EOF
1044 #define OBJ_MAYBE_BOUT 1
1047 coff
) cat >> confdefs.h
<<\EOF
1048 #define OBJ_MAYBE_COFF 1
1051 ecoff
) cat >> confdefs.h
<<\EOF
1052 #define OBJ_MAYBE_ECOFF 1
1055 elf
) cat >> confdefs.h
<<\EOF
1056 #define OBJ_MAYBE_ELF 1
1059 generic
) cat >> confdefs.h
<<\EOF
1060 #define OBJ_MAYBE_GENERIC 1
1063 hp300
) cat >> confdefs.h
<<\EOF
1064 #define OBJ_MAYBE_HP300 1
1067 ieee
) cat >> confdefs.h
<<\EOF
1068 #define OBJ_MAYBE_IEEE 1
1071 som
) cat >> confdefs.h
<<\EOF
1072 #define OBJ_MAYBE_SOM 1
1075 vms
) cat >> confdefs.h
<<\EOF
1076 #define OBJ_MAYBE_VMS 1
1080 extra_objects
="$extra_objects obj-$fmt.o"
1084 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
1086 extra_objects
="$extra_objects $emfiles"
1087 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
1088 cat >> confdefs.h
<<\EOF
1089 #define USE_EMULATIONS 1
1094 cat >> confdefs.h
<<EOF
1095 #define EMULATIONS $EMULATIONS
1098 cat >> confdefs.h
<<EOF
1099 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
1103 files
="config/tc-${target_cpu_type}.c config/tc-${target_cpu_type}.h \
1104 config/obj-${obj_format}.h config/obj-${obj_format}.c \
1105 config/te-${te_file}.h config/atof-${atof}.c \
1107 links
="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \
1110 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
1111 yes-
*-coff) need_bfd
=yes ;;
1112 no-
*-coff) need_bfd
=yes
1113 cat >> confdefs.h
<<\EOF
1114 #define MANY_SEGMENTS 1
1119 reject_dev_configs
=yes
1121 case ${reject_dev_configs}-${dev} in
1123 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
1133 case "${primary_bfd_gas}" in
1134 yes) cat >> confdefs.h
<<\EOF
1135 #define BFD_ASSEMBLER 1
1141 case "${need_bfd}" in
1142 yes) BFDLIB
=..
/bfd
/libbfd.a
1143 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
1149 cat >> confdefs.h
<<EOF
1150 #define TARGET_ALIAS "${target_alias}"
1153 cat >> confdefs.h
<<EOF
1154 #define TARGET_CANONICAL "${target}"
1157 cat >> confdefs.h
<<EOF
1158 #define TARGET_CPU "${target_cpu}"
1161 cat >> confdefs.h
<<EOF
1162 #define TARGET_VENDOR "${target_vendor}"
1165 cat >> confdefs.h
<<EOF
1166 #define TARGET_OS "${target_os}"
1170 # Extract the first word of "gcc", so it can be a program name with args.
1171 set dummy gcc
; ac_word
=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 if test -n "$CC"; then
1177 ac_cv_prog_CC
="$CC" # Let the user override the test.
1179 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1180 for ac_dir
in $PATH; do
1181 test -z "$ac_dir" && ac_dir
=.
1182 if test -f $ac_dir/$ac_word; then
1188 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
1192 if test -n "$CC"; then
1193 echo "$ac_t""$CC" 1>&6
1195 echo "$ac_t""no" 1>&6
1199 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1200 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 cat > conftest.c
<<EOF
1208 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
1214 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1215 if test $ac_cv_prog_gcc = yes; then
1217 if test "${CFLAGS+set}" != set; then
1218 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1219 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 echo 'void f(){}' > conftest.c
1223 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1224 ac_cv_prog_gcc_g
=yes
1231 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
1232 if test $ac_cv_prog_gcc_g = yes; then
1240 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1243 # Find a good install program. We prefer a C program (faster),
1244 # so one script is as good as another. But avoid the broken or
1245 # incompatible versions:
1246 # SysV /etc/install, /usr/sbin/install
1247 # SunOS /usr/etc/install
1248 # IRIX /sbin/install
1250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1252 # ./install, which can be erroneously created by make from ./install.sh.
1253 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1254 if test -z "$INSTALL"; then
1255 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1259 for ac_dir
in $PATH; do
1260 # Account for people who put trailing slashes in PATH elements.
1262 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1264 # OSF1 and SCO ODT 3.0 have their own names for install.
1265 for ac_prog
in ginstall installbsd scoinst
install; do
1266 if test -f $ac_dir/$ac_prog; then
1267 if test $ac_prog = install &&
1268 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1269 # AIX install. It has an incompatible calling convention.
1270 # OSF/1 installbsd also uses dspmsg, but is usable.
1273 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1282 # As a last resort, use the slow shell script.
1283 test -z "$ac_cv_path_install" && ac_cv_path_install
="$ac_install_sh"
1285 INSTALL
="$ac_cv_path_install"
1287 echo "$ac_t""$INSTALL" 1>&6
1289 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1290 # It thinks the first close brace ends the variable substitution.
1291 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1293 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1296 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1297 # On Suns, sometimes $CPP names a directory.
1298 if test -n "$CPP" && test -d "$CPP"; then
1301 if test -z "$CPP"; then
1302 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 # This must be in double quotes, not single quotes, because CPP may get
1306 # substituted into the Makefile and "${CC-cc}" will confuse make.
1308 # On the NeXT, cc -E runs the code through the compiler's parser,
1309 # not just through cpp.
1310 cat > conftest.
$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1316 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1317 ac_err
=`grep -v '^ *+' conftest.out`
1318 if test -z "$ac_err"; then
1323 CPP
="${CC-cc} -E -traditional-cpp"
1324 cat > conftest.
$ac_ext <<EOF
1325 #line 1326 "configure"
1326 #include "confdefs.h"
1330 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1331 ac_err
=`grep -v '^ *+' conftest.out`
1332 if test -z "$ac_err"; then
1342 ac_cv_prog_CPP
="$CPP"
1344 CPP
="$ac_cv_prog_CPP"
1346 ac_cv_prog_CPP
="$CPP"
1348 echo "$ac_t""$CPP" 1>&6
1350 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
1352 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 cat > conftest.
$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1362 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1363 ac_err
=`grep -v '^ *+' conftest.out`
1364 if test -z "$ac_err"; then
1366 eval "ac_cv_header_$ac_safe=yes"
1370 eval "ac_cv_header_$ac_safe=no"
1374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1375 echo "$ac_t""yes" 1>&6
1376 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
1377 cat >> confdefs.h
<<EOF
1378 #define $ac_tr_hdr 1
1382 echo "$ac_t""no" 1>&6
1387 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
1388 # people who are not cross-compiling but are compiling cross-assemblers.
1389 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
1390 if test "${host}" = "${target}"; then
1394 cat >> confdefs.h
<<\EOF
1395 #define CROSS_COMPILE 1
1399 echo "$ac_t""$cross_gas" 1>&6
1401 # If we cannot run a trivial program, we must be cross compiling.
1402 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1403 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 if test "$cross_compiling" = yes; then
1409 cat > conftest.
$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1415 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1423 cross_compiling
=$ac_cv_c_cross
1424 echo "$ac_t""$ac_cv_c_cross" 1>&6
1426 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1427 # for constant arguments. Useless!
1428 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1429 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 cat > conftest.
$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1436 int main() { return 0; }
1438 char *p = alloca(2 * sizeof(int));
1441 if eval $ac_link; then
1443 ac_cv_header_alloca_h
=yes
1446 ac_cv_header_alloca_h
=no
1451 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1452 if test $ac_cv_header_alloca_h = yes; then
1453 cat >> confdefs.h
<<\EOF
1454 #define HAVE_ALLOCA_H 1
1459 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1460 if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 cat > conftest.
$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1468 # define alloca __builtin_alloca
1471 # include <alloca.h>
1476 # ifndef alloca /* predefined by HP cc +Olibcalls */
1483 int main() { return 0; }
1485 char *p = (char *) alloca(1);
1488 if eval $ac_link; then
1490 ac_cv_func_alloca
=yes
1493 ac_cv_func_alloca
=no
1498 echo "$ac_t""$ac_cv_func_alloca" 1>&6
1499 if test $ac_cv_func_alloca = yes; then
1500 cat >> confdefs.h
<<\EOF
1501 #define HAVE_ALLOCA 1
1506 if test $ac_cv_func_alloca = no
; then
1507 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1508 # that cause trouble. Some versions do not even contain alloca or
1509 # contain a buggy version. If you still want to use their alloca,
1510 # use ar to extract alloca.o from them instead of compiling alloca.c.
1512 cat >> confdefs.h
<<\EOF
1517 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1518 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 cat > conftest.
$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1524 #if defined(CRAY) && ! defined(CRAY2)
1531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1532 egrep "webecray" >/dev
/null
2>&1; then
1542 echo "$ac_t""$ac_cv_os_cray" 1>&6
1543 if test $ac_cv_os_cray = yes; then
1544 for ac_func
in _getb67 GETB67 getb67
; do
1545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 cat > conftest.
$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 /* System header to define __stub macros and hopefully few prototypes,
1553 which can conflict with char $ac_func(); below. */
1555 /* Override any gcc2 internal prototype to avoid an error. */
1558 int main() { return 0; }
1561 /* The GNU C library defines this for functions which it implements
1562 to always fail with ENOSYS. Some functions are actually named
1563 something starting with __ and the normal name is an alias. */
1564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1572 if eval $ac_link; then
1574 eval "ac_cv_func_$ac_func=yes"
1577 eval "ac_cv_func_$ac_func=no"
1582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1583 echo "$ac_t""yes" 1>&6
1584 cat >> confdefs.h
<<EOF
1585 #define CRAY_STACKSEG_END $ac_func
1590 echo "$ac_t""no" 1>&6
1596 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1597 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 if test "$cross_compiling" = yes; then
1601 ac_cv_c_stack_direction
=0
1603 cat > conftest.
$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 find_stack_direction ()
1608 static char *addr = 0;
1613 return find_stack_direction ();
1616 return (&dummy > addr) ? 1 : -1;
1620 exit (find_stack_direction() < 0);
1624 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1625 ac_cv_c_stack_direction
=1
1627 ac_cv_c_stack_direction
=-1
1632 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1633 cat >> confdefs.h
<<EOF
1634 #define STACK_DIRECTION $ac_cv_c_stack_direction
1639 echo $ac_n "checking for inline""... $ac_c" 1>&6
1640 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1641 echo $ac_n "(cached) $ac_c" 1>&6
1644 for ac_kw
in inline __inline__ __inline
; do
1645 cat > conftest.
$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1649 int main() { return 0; }
1654 if eval $ac_compile; then
1656 ac_cv_c_inline
=$ac_kw; break
1663 echo "$ac_t""$ac_cv_c_inline" 1>&6
1664 case "$ac_cv_c_inline" in
1666 no
) cat >> confdefs.h
<<\EOF
1670 *) cat >> confdefs.h
<<EOF
1671 #define inline $ac_cv_c_inline
1677 # VMS doesn't have unlink.
1678 for ac_func
in unlink remove
1680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.
$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 /* System header to define __stub macros and hopefully few prototypes,
1688 which can conflict with char $ac_func(); below. */
1690 /* Override any gcc2 internal prototype to avoid an error. */
1693 int main() { return 0; }
1696 /* The GNU C library defines this for functions which it implements
1697 to always fail with ENOSYS. Some functions are actually named
1698 something starting with __ and the normal name is an alias. */
1699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1707 if eval $ac_link; then
1709 eval "ac_cv_func_$ac_func=yes"
1712 eval "ac_cv_func_$ac_func=no"
1717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1719 ac_tr_func
=HAVE_
`echo $ac_func | tr '[a-z]' '[A-Z]'`
1720 cat >> confdefs.h
<<EOF
1721 #define $ac_tr_func 1
1725 echo "$ac_t""no" 1>&6
1730 # Some systems don't have sbrk().
1733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 cat > conftest.
$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1740 /* System header to define __stub macros and hopefully few prototypes,
1741 which can conflict with char $ac_func(); below. */
1743 /* Override any gcc2 internal prototype to avoid an error. */
1746 int main() { return 0; }
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1760 if eval $ac_link; then
1762 eval "ac_cv_func_$ac_func=yes"
1765 eval "ac_cv_func_$ac_func=no"
1770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1772 ac_tr_func
=HAVE_
`echo $ac_func | tr '[a-z]' '[A-Z]'`
1773 cat >> confdefs.h
<<EOF
1774 #define $ac_tr_func 1
1778 echo "$ac_t""no" 1>&6
1783 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
1784 # enough, but on some of those systems, the assert macro relies on requoting
1786 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
1787 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 cat > conftest.
$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1795 int main() { return 0; }
1798 /* check for requoting problems */
1799 static int a, b, c, d;
1801 assert (!strcmp(s, "foo bar baz quux"));
1802 /* check for newline handling */
1808 if eval $ac_link; then
1810 gas_cv_assert_ok
=yes
1818 echo "$ac_t""$gas_cv_assert_ok" 1>&6
1819 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
1820 #define BROKEN_ASSERT 1
1825 # On some systems, the system header files may not declare malloc, realloc,
1826 # and free. There are places where gas needs these functions to have been
1827 # declared -- such as when taking their addresses.
1829 #ifdef HAVE_MEMORY_H
1832 #ifdef HAVE_STRING_H
1835 #ifdef HAVE_STDLIB_H
1838 #ifdef HAVE_UNISTD_H
1843 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
1844 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1851 int main() { return 0; }
1854 typedef char *(*f)();
1860 if eval $ac_link; then
1862 gas_cv_decl_needed_malloc
=no
1865 gas_cv_decl_needed_malloc
=yes
1870 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
1871 test $gas_cv_decl_needed_malloc = no ||
{
1872 cat >> confdefs.h
<<\EOF
1873 #define NEED_DECLARATION_MALLOC 1
1879 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
1880 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 cat > conftest.
$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1887 int main() { return 0; }
1890 typedef void (*f)();
1896 if eval $ac_link; then
1898 gas_cv_decl_needed_free
=no
1901 gas_cv_decl_needed_free
=yes
1906 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
1907 test $gas_cv_decl_needed_free = no ||
{
1908 cat >> confdefs.h
<<\EOF
1909 #define NEED_DECLARATION_FREE 1
1915 # Does errno.h declare errno, or do we have to add a separate declaration
1918 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
1919 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 cat > conftest.
$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1930 int main() { return 0; }
1939 if eval $ac_link; then
1941 gas_cv_decl_needed_errno
=no
1944 gas_cv_decl_needed_errno
=yes
1949 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
1950 test $gas_cv_decl_needed_errno = no ||
{
1951 cat >> confdefs.h
<<\EOF
1952 #define NEED_DECLARATION_ERRNO 1
1959 cat > confcache
<<\EOF
1960 # This file is a shell script that caches the results of configure
1961 # tests run on this system so they can be shared between configure
1962 # scripts and configure runs. It is not useful on other systems.
1963 # If it contains results you don't want to keep, you may remove or edit it.
1965 # By default, configure uses ./config.cache as the cache file,
1966 # creating it if it does not exist already. You can give configure
1967 # the --cache-file=FILE option to use a different cache file; that is
1968 # what configure does when it calls configure scripts in
1969 # subdirectories, so they share the cache.
1970 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1971 # config.status only pays attention to the cache file if you give it the
1972 # --recheck option to rerun configure.
1975 # Ultrix sh set writes to stderr and can't be redirected directly,
1976 # and sets the high bit in the cache file unless we assign to the vars.
1978 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1980 if cmp -s $cache_file confcache
; then
1983 if test -w $cache_file; then
1984 echo "updating cache $cache_file"
1985 cat confcache
> $cache_file
1987 echo "not updating unwritable cache $cache_file"
1992 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1994 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1995 # Let make expand exec_prefix.
1996 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1998 # Any assignment to VPATH causes Sun make to only execute
1999 # the first set of double-colon rules, so remove it if not needed.
2000 # If there is a colon in the path, we need to keep it.
2001 if test "x$srcdir" = x.
; then
2002 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2005 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2007 DEFS
=-DHAVE_CONFIG_H
2009 # Without the "./", some shells look in PATH for config.status.
2010 : ${CONFIG_STATUS=./config.status}
2012 echo creating
$CONFIG_STATUS
2013 rm -f $CONFIG_STATUS
2014 cat > $CONFIG_STATUS <<EOF
2016 # Generated automatically by configure.
2017 # Run this file to recreate the current configuration.
2018 # This directory was configured as follows,
2019 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2021 # $0 $ac_configure_args
2023 # Compiler output produced by configure, useful for debugging
2024 # configure, is in ./config.log if it exists.
2026 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2029 case "\$ac_option" in
2030 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2031 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2032 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2033 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2034 echo "$CONFIG_STATUS generated by autoconf version 2.4"
2036 -help | --help | --hel | --he | --h)
2037 echo "\$ac_cs_usage"; exit 0 ;;
2038 *) echo "\$ac_cs_usage"; exit 1 ;;
2042 ac_given_srcdir=$srcdir
2043 ac_given_INSTALL="$INSTALL"
2045 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in conf" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2047 # Protect against being on the right side of a sed subst in config.status.
2048 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2049 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2052 s%@CFLAGS@%$CFLAGS%g
2053 s%@CPPFLAGS@%$CPPFLAGS%g
2054 s%@CXXFLAGS@%$CXXFLAGS%g
2056 s%@LDFLAGS@%$LDFLAGS%g
2058 s%@exec_prefix@%$exec_prefix%g
2059 s%@prefix@%$prefix%g
2060 s%@program_transform_name@%$program_transform_name%g
2062 s%@host_alias@%$host_alias%g
2063 s%@host_cpu@%$host_cpu%g
2064 s%@host_vendor@%$host_vendor%g
2065 s%@host_os@%$host_os%g
2066 s%@target@%$target%g
2067 s%@target_alias@%$target_alias%g
2068 s%@target_cpu@%$target_cpu%g
2069 s%@target_vendor@%$target_vendor%g
2070 s%@target_os@%$target_os%g
2072 s%@build_alias@%$build_alias%g
2073 s%@build_cpu@%$build_cpu%g
2074 s%@build_vendor@%$build_vendor%g
2075 s%@build_os@%$build_os%g
2076 s%@OPCODES_LIB@%$OPCODES_LIB%g
2077 /@target_frag@/r $target_frag
2079 s%@extra_objects@%$extra_objects%g
2080 s%@target_cpu_type@%$target_cpu_type%g
2081 s%@obj_format@%$obj_format%g
2083 s%@BFDLIB@%$BFDLIB%g
2084 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
2086 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2087 s%@INSTALL_DATA@%$INSTALL_DATA%g
2089 s%@ALLOCA@%$ALLOCA%g
2093 cat >> $CONFIG_STATUS <<EOF
2095 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"}
2097 cat >> $CONFIG_STATUS <<\EOF
2098 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2099 # Support "outfile[:infile]", defaulting infile="outfile.in".
2101 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2102 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2103 *) ac_file_in
="${ac_file}.in" ;;
2106 # Adjust relative srcdir, etc. for subdirectories.
2108 # Remove last slash and all that follows it. Not all systems have dirname.
2109 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2110 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2111 # The file is in a subdirectory.
2112 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2113 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2114 # A "../" for each directory in $ac_dir_suffix.
2115 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2117 ac_dir_suffix
= ac_dots
=
2120 case "$ac_given_srcdir" in
2122 if test -z "$ac_dots"; then top_srcdir
=.
2123 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2124 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2126 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2127 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2130 case "$ac_given_INSTALL" in
2131 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2132 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2134 echo creating
"$ac_file"
2136 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2138 *Makefile
*) ac_comsub
="1i\\
2139 # $configure_input" ;;
2143 s%@configure_input@%$configure_input%g
2144 s%@srcdir@%$srcdir%g
2145 s%@top_srcdir@%$top_srcdir%g
2146 s%@INSTALL@%$INSTALL%g
2147 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
2151 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2152 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2154 # ac_d sets the value in "#define NAME VALUE" lines.
2155 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2156 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2159 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2160 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2161 ac_uB
='\([ ]\)%\1#\2define\3'
2164 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2165 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2166 ac_eB
='$%\1#\2define\3'
2170 CONFIG_HEADERS
=${CONFIG_HEADERS-"conf"}
2171 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2172 # Support "outfile[:infile]", defaulting infile="outfile.in".
2174 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2175 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2176 *) ac_file_in
="${ac_file}.in" ;;
2179 echo creating
$ac_file
2181 rm -f conftest.frag conftest.
in conftest.out
2182 cp $ac_given_srcdir/$ac_file_in conftest.
in
2186 # Transform confdefs.h into a sed script conftest.vals that substitutes
2187 # the proper values into config.h.in to produce config.h. And first:
2188 # Protect against being on the right side of a sed subst in config.status.
2189 # Protect against being in an unquoted here document in config.status.
2191 cat > conftest.hdr
<<\EOF
2194 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2198 sed -n -f conftest.hdr confdefs.h > conftest.vals
2201 # This sed command replaces #undef with comments. This is necessary, for
2202 # example, in the case of _POSIX_SOURCE, which is predefined and required
2203 # on some systems where configure will not decide to define it.
2204 cat >> conftest.vals <<\EOF
2205 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2208 # Break up conftest.vals because some shells have a limit on
2209 # the size of here documents, and old seds have small limits too.
2210 # Maximum number of lines to put in a single here document.
2211 ac_max_here_lines=12
2216 ac_lines=`grep -c . conftest.vals
`
2217 # grep -c gives empty output for an empty file on some AIX systems.
2218 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2219 # Write a limited-size here document to conftest.frag.
2220 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2221 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2223 sed -f conftest.frag conftest.in > conftest.out
2225 mv conftest.out conftest.in
2227 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2229 mv conftest.tail conftest.vals
2233 cat >> $CONFIG_STATUS <<\EOF
2234 rm -f conftest.frag conftest.h
2235 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2236 cat conftest.in >> conftest.h
2238 if cmp -s $ac_file conftest.h 2>/dev/null; then
2239 echo "$ac_file is unchanged"
2243 mv conftest.h $ac_file
2249 cat >> $CONFIG_STATUS <<EOF
2254 cat >> $CONFIG_STATUS <<\EOF
2255 srcdir=$ac_given_srcdir
2256 while test -n "$ac_sources"; do
2257 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2258 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2260 echo "linking $srcdir/$ac_source to $ac_dest"
2262 if test ! -r $srcdir/$ac_source; then
2263 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2267 # Make relative symlinks.
2268 # Remove last slash and all that follows it. Not all systems have dirname.
2269 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2270 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2271 # The dest file is in a subdirectory.
2272 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2273 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2274 # A "../" for each directory in $ac_dest_dir_suffix.
2275 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2277 ac_dest_dir_suffix= ac_dots=
2281 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2282 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2285 # Make a symlink if possible; otherwise try a hard link.
2286 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2287 ln $srcdir/$ac_source $ac_dest; then :
2289 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2296 chmod +x $CONFIG_STATUS
2297 rm -fr confdefs* $ac_clean_files
2298 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1