AC_INIT(tree.c)
AC_CONFIG_HEADER(config.h:config.in)
-native_prefix=/usr
remove=rm
hard_link=ln
symbolic_link='ln -s'
# Find some useful tools
AC_PROG_AWK
AC_PROG_LEX
-AC_PROG_LN_S
+GCC_PROG_LN
+GCC_PROG_LN_S
AC_PROG_RANLIB
AC_PROG_YACC
-AC_PROG_INSTALL
+EGCS_PROG_INSTALL
# Find the native compiler
AC_PROG_CC
AC_PROG_MAKE_SET
-AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
+AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h varargs.h sys/varargs.h)
GCC_NEED_DECLARATION(malloc)
GCC_NEED_DECLARATION(realloc)
+GCC_NEED_DECLARATION(calloc)
GCC_NEED_DECLARATION(free)
+AC_DECL_SYS_SIGLIST
+
+AC_CHECK_FUNCS(strerror strtoul bsearch)
+
# File extensions
manext='.1'
objext='.o'
AC_SUBST(objext)
build_xm_file=
-build_broken_install=
build_install_headers_dir=install-headers-tar
build_exeext=
host_xm_file=
use_collect2=
# Set this to override the default target model.
target_cpu_default=
- # Set this to force use of install.sh.
- broken_install=
# Set this to control which fixincludes program to use.
fixincludes=fixincludes
# Set this to control how the header file directory is installed.
fixincludes=Makefile.in
gas=yes gnu_ld=yes
;;
+ alpha*-*-linux-gnulibc1*)
+ tm_file="${tm_file} alpha/linux.h alpha/elf.h"
+ xm_file="${xm_file} alpha/xm-linux.h"
+ target_cpu_default="MASK_GAS"
+ tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
+ xmake_file=none
+ fixincludes=Makefile.in
+ gas=yes gnu_ld=yes
+ if [[ x$enable_threads = xyes ]]; then
+ thread_file='posix'
+ fi
+ ;;
alpha*-*-linux-gnu*)
tm_file="${tm_file} alpha/linux.h alpha/elf.h"
xm_file="${xm_file} alpha/xm-linux.h"
target_cpu_default="MASK_GAS"
- gas=no
tmake_file="t-linux alpha/t-linux"
xmake_file=none
fixincludes=Makefile.in
- extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
gas=yes gnu_ld=yes
if [[ x$enable_threads = xyes ]]; then
thread_file='posix'
then
extra_passes="mips-tfile mips-tdump"
fi
- broken_install=yes
use_collect2=yes
# Some versions of OSF4 (specifically X4.0-9 296.7) have
# a broken tar, so we use cpio instead.
then
extra_passes="mips-tfile mips-tdump"
fi
- broken_install=yes
use_collect2=yes
;;
alpha*-dec-osf1.2)
then
extra_passes="mips-tfile mips-tdump"
fi
- broken_install=yes
use_collect2=yes
;;
alpha*-*-osf*)
then
extra_passes="mips-tfile mips-tdump"
fi
- broken_install=yes
use_collect2=yes
;;
alpha*-*-winnt3*)
tmake_file=alpha/t-vms
fixincludes=Makefile.in
;;
+ arc-*-elf*)
+ extra_parts="crtinit.o crtfini.o"
+ ;;
arm-*-coff* | armel-*-coff*)
tm_file=arm/coff.h
tmake_file=arm/t-bare
tm_file=arm/netbsd.h
xm_file=arm/xm-netbsd.h
tmake_file=arm/t-netbsd
- # On NetBSD, the headers are already okay.
- fixincludes=Makefile.in
+ # On NetBSD, the headers are already okay, except for math.h.
+ fixincludes=fixinc.math
use_collect2=yes
;;
arm-*-linux-gnuaout*) # ARM Linux
tm_file=arm/linux-gas.h
tmake_file=arm/t-linux
fixincludes=Makefile.in
- broken_install=yes
gnu_ld=yes
;;
arm-*-aout)
extra_headers=va-clipper.h
extra_parts="crtbegin.o crtend.o"
install_headers_dir=install-headers-cpio
- broken_install=yes
;;
dsp16xx-*)
;;
float_format=i32
;;
hppa1.1-*-pro*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
xm_file=pa/xm-papro.h
tmake_file=pa/t-pro
;;
hppa1.1-*-osf*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
target_cpu_default=1
tm_file="${tm_file} pa/pa-osf.h"
use_collect2=yes
fixincludes=Makefile.in
;;
hppa1.1-*-rtems*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
xm_file=pa/xm-papro.h
tmake_file=pa/t-pro
;;
hppa1.0-*-osf*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
tm_file="${tm_file} pa/pa-osf.h"
use_collect2=yes
fixincludes=Makefile.in
;;
hppa1.1-*-bsd*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
target_cpu_default=1
use_collect2=yes
fixincludes=Makefile.in
;;
hppa1.0-*-bsd*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
use_collect2=yes
fixincludes=Makefile.in
;;
hppa1.0-*-hpux7*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
then
tm_file="${tm_file} pa/gas.h"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.0-*-hpux8.0[[0-2]]*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
tm_file="${tm_file} pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
else
tm_file="pa/pa-oldas.h ${tm_file}"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hpux8.0[[0-2]]*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
else
tm_file="pa/pa-oldas.h ${tm_file}"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hpux8*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
then
tm_file="${tm_file} pa/pa-gas.h"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.0-*-hpux8*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
tm_file="${tm_file} pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
then
tm_file="${tm_file} pa/pa-gas.h"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hpux10*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
xm_file=pa/xm-pahpux.h
then
tm_file="${tm_file} pa/pa-gas.h"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.0-*-hpux10*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
then
tm_file="${tm_file} pa/pa-gas.h"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hpux*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
xm_file=pa/xm-pahpux.h
then
tm_file="${tm_file} pa/pa-gas.h"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.0-*-hpux*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
then
tm_file="${tm_file} pa/pa-gas.h"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hiux*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
xm_file=pa/xm-pahpux.h
then
tm_file="${tm_file} pa/pa-gas.h"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.0-*-hiux*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
then
tm_file="${tm_file} pa/pa-gas.h"
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa*-*-lites*)
+ if [[ x$enable_haifa != xno ]]; then
+ enable_haifa=yes
+ fi
target_cpu_default=1
use_collect2=yes
fixincludes=Makefile.in
fi
xm_file=i386/xm-aix.h
xmake_file=i386/x-aix
- broken_install=yes
;;
i486-ncr-sysv4*) # NCR 3000 - i486 running system V.4
xm_file=i386/xm-sysv4.h
fixincludes=fixinc.ptx
extra_parts="crtbegin.o crtend.o"
install_headers_dir=install-headers-cpio
- broken_install=yes
;;
i[[3456]]86-sequent-ptx2* | i[[3456]]86-sequent-sysv3*)
xm_file=i386/xm-sysv3.h
extra_parts="crtbegin.o crtend.o"
fixincludes=fixinc.ptx
install_headers_dir=install-headers-cpio
- broken_install=yes
;;
i[[3456]]86-sequent-ptx4* | i[[3456]]86-sequent-sysv4*)
xm_file=i386/xm-sysv4.h
extra_parts="crtbegin.o crtend.o"
fixincludes=fixinc.ptx
install_headers_dir=install-headers-cpio
- broken_install=yes
;;
i386-sun-sunos*) # Sun i386 roadrunner
xm_file=i386/xm-sun.h
i[[3456]]86-*-freebsdelf*)
tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
xm_file=i386/xm-freebsd.h
- # On FreeBSD, the headers are already ok.
- fixincludes=Makefile.in
+ # On FreeBSD, the headers are already ok, except for math.h.
+ fixincludes=fixinc.math
tmake_file=i386/t-freebsd
gas=yes
gnu_ld=yes
i[[3456]]86-*-freebsd*)
tm_file=i386/freebsd.h
xm_file=i386/xm-freebsd.h
- # On FreeBSD, the headers are already ok.
- fixincludes=Makefile.in
+ # On FreeBSD, the headers are already ok, except for math.h.
+ fixincludes=fixinc.math
tmake_file=i386/t-freebsd
;;
i[[3456]]86-*-netbsd*)
tm_file=i386/netbsd.h
xm_file=i386/xm-netbsd.h
- # On NetBSD, the headers are already okay.
- fixincludes=Makefile.in
+ # On NetBSD, the headers are already okay, except for math.h.
+ fixincludes=fixinc.math
tmake_file=t-netbsd
;;
i[[3456]]86-*-coff*)
extra_parts="crtbegin.o crtend.o"
fi
install_headers_dir=install-headers-cpio
- broken_install=yes
;;
i[[3456]]86-*-linux-gnuoldld*) # Intel 80386's running Linux
xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers
tmake_file="t-linux-aout i386/t-crtstuff"
tm_file=i386/linux-oldld.h
fixincludes=Makefile.in #On Linux, the headers are ok already.
- broken_install=yes
gnu_ld=yes
;;
i[[3456]]86-*-linux-gnuaout*) # Intel 80386's running Linux
tmake_file="t-linux-aout i386/t-crtstuff"
tm_file=i386/linux-aout.h
fixincludes=Makefile.in #On Linux, the headers are ok already.
- broken_install=yes
gnu_ld=yes
;;
i[[3456]]86-*-linux-gnulibc1)
tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
fixincludes=Makefile.in #On Linux, the headers are ok already.
- broken_install=yes
gnu_ld=yes
if [[ x$enable_threads = xyes ]]; then
thread_file='single'
tmake_file="t-linux i386/t-crtstuff"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
fixincludes=Makefile.in #On Linux, the headers are ok already.
- broken_install=yes
gnu_ld=yes
if [[ x$enable_threads = xyes ]]; then
thread_file='posix'
xm_file=i386/xm-sco5.h
xmake_file=i386/x-sco5
fixincludes=fixinc.sco
- broken_install=yes
tm_file=i386/sco5.h
tmake_file=i386/t-sco5
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
xm_file=i386/xm-sco.h
xmake_file=i386/x-sco4
fixincludes=fixinc.sco
- broken_install=yes
install_headers_dir=install-headers-cpio
if [[ x$stabs = xyes ]]
then
i[[3456]]86-*-sco*) # 80386 running SCO system
xm_file=i386/xm-sco.h
xmake_file=i386/x-sco
- broken_install=yes
install_headers_dir=install-headers-cpio
if [[ x$stabs = xyes ]]
then
extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
xmake_file=x-svr4
fixincludes=fixinc.svr4
- broken_install=yes
if [[ x$enable_threads = xyes ]]; then
thread_file='solaris'
fi
tm_file="${tm_file} svr3.h i860/paragon.h"
xm_file="${xm_file} xm-svr3.h"
tmake_file=t-osf
- broken_install=yes
;;
i860-*-sysv3*)
tm_file="${tm_file} svr3.h i860/sysv3.h"
xmake_file=m68k/x-hp320
tm_file=m68k/hp310.h
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
extra_headers=math-68881.h
m68k-apple-aux*) # Apple Macintosh running A/UX
xm_file=m68k/xm-aux.h
tmake_file=m68k/t-aux
- broken_install=yes
install_headers_dir=install-headers-cpio
extra_headers=math-68881.h
extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
xm_file=m68k/xm-crds.h
xmake_file=m68k/x-crds
tm_file=m68k/crds.h
- broken_install=yes
use_collect2=yes
extra_headers=math-68881.h
;;
xmake_file=m68k/x-ccur
extra_headers=math-68881.h
use_collect2=yes
- broken_install=yes
;;
m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
tm_file=m68k/hp3bsd44.h
xmake_file=m68k/x-hp320
tm_file=m68k/hpux7.h
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
extra_headers=math-68881.h
xmake_file=m68k/x-hp320
tm_file=m68k/hp320.h
fi
- broken_install=yes
install_headers_dir=install-headers-cpio
use_collect2=yes
extra_headers=math-68881.h
m68k-*-netbsd*)
tm_file=m68k/netbsd.h
xm_file=m68k/xm-netbsd.h
- # On NetBSD, the headers are already okay.
- fixincludes=Makefile.in
+ # On NetBSD, the headers are already okay, except for math.h.
+ fixincludes=fixinc.math
tmake_file=t-netbsd
;;
m68k-*-sysv3*) # Motorola m68k's running system V.3
;;
esac
extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
- broken_install=yes
xmake_file=m88k/x-dgux
if [[ x$gas = xyes ]]
then
mips-sgi-irix6*) # SGI System V.4., IRIX 6
tm_file=mips/iris6.h
xm_file=mips/xm-iris6.h
- broken_install=yes
fixincludes=fixinc.irix
xmake_file=mips/x-iris6
tmake_file=mips/t-iris6
mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
tm_file=mips/cross64.h
xm_file=mips/xm-iris5.h
- broken_install=yes
fixincludes=Makefile.in
xmake_file=mips/x-iris
tmake_file=mips/t-cross64
then
use_collect2=yes
fi
- broken_install=yes
;;
mips-sgi-irix5*) # SGI System V.4., IRIX 5
if [[ x$gas = xyes ]]
tm_file=mips/iris5.h
fi
xm_file=mips/xm-iris5.h
- broken_install=yes
fixincludes=fixinc.irix
xmake_file=mips/x-iris
# mips-tfile doesn't work yet
tm_file="${tm_file} dbx.h"
fi
xm_file=mips/xm-iris4.h
- broken_install=yes
xmake_file=mips/x-iris
if [[ x$gas = xyes ]]
then
tm_file="${tm_file} dbx.h"
fi
xm_file=mips/xm-iris4.h
- broken_install=yes
xmake_file=mips/x-iris
if [[ x$gas = xyes ]]
then
tm_file="${tm_file} dbx.h"
fi
xm_file=mips/xm-iris3.h
- broken_install=yes
xmake_file=mips/x-iris3
if [[ x$gas = xyes ]]
then
mips-dec-netbsd*) # Decstation running NetBSD
tm_file=mips/netbsd.h
xm_file=mips/xm-netbsd.h
- # On NetBSD, the headers are already okay.
- fixincludes=Makefile.in
+ # On NetBSD, the headers are already okay, except for math.h.
+ fixincludes=fixinc.math
tmake_file=t-netbsd
- if [[ x$prefix = xNONE ]]; then
- prefix=$native_prefix
- fi
- prefix=$native_prefix
;;
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
tm_file=mips/news4.h
then
use_collect2=yes
fi
- broken_install=yes
;;
mips-*-ultrix* | mips-dec-mach3) # Decstation.
tm_file=mips/ultrix.h
then
use_collect2=yes
fi
- broken_install=yes
;;
mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
tm_file=mips/bsd-4.h # MIPS BSD 4.3, RISC-OS 4.0
then
use_collect2=yes
fi
- broken_install=yes
;;
mips-*-riscos[[56789]]sysv4*)
tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
then
use_collect2=yes
fi
- broken_install=yes
;;
mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
tm_file=mips/svr4-4.h # MIPS System V.4. RISC-OS 4.0
then
use_collect2=yes
fi
- broken_install=yes
;;
mips-*-riscos[[56789]]sysv*)
tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
then
use_collect2=yes
fi
- broken_install=yes
;;
mips-*-sysv* | mips-*-riscos*sysv*)
tm_file=mips/svr3-4.h # MIPS System V.3, RISC-OS 4.0
then
use_collect2=yes
fi
- broken_install=yes
;;
mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
tm_file=mips/mips-5.h
then
use_collect2=yes
fi
- broken_install=yes
;;
mips-*-gnu*)
;;
tm_file="${tm_file} dbx.h"
fi
tmake_file=mips/t-ecoff
- broken_install=yes
;;
mipsel-*-elf*)
tm_file="mips/elfl.h libgloss.h"
;;
ns32k-tek6100-bsd*)
tm_file=ns32k/tek6100.h
- broken_install=yes
use_collect2=yes
;;
ns32k-tek6200-bsd*)
tm_file=ns32k/tek6200.h
- broken_install=yes
use_collect2=yes
;;
# This has not been updated to GCC 2.
# xm_file=ns32k/xm-genix.h
# xmake_file=ns32k/x-genix
# tm_file=ns32k/genix.h
-# broken_install=yes
# use_collect2=yes
# ;;
ns32k-merlin-*)
ns32k-pc532-netbsd*)
tm_file=ns32k/netbsd.h
xm_file=ns32k/xm-netbsd.h
- # On NetBSD, the headers are already okay.
- fixincludes=Makefile.in
+ # On NetBSD, the headers are already okay, except for math.h.
+ fixincludes=fixinc.math
tmake_file=t-netbsd
;;
pdp11-*-bsd)
tm_file=sh/elf.h
float_format=sh
;;
+ sh-*-rtems*)
+ tmake_file="sh/t-sh t-rtems"
+ tm_file=sh/rtems.h
+ float_format=sh
+ ;;
sh-*-*)
float_format=sh
;;
sparc-*-netbsd*)
tm_file=sparc/netbsd.h
xm_file=sparc/xm-netbsd.h
- # On NetBSD, the headers are already okay.
- fixincludes=Makefile.in
+ # On NetBSD, the headers are already okay, except for math.h.
+ fixincludes=fixinc.math
tmake_file=t-netbsd
;;
sparc-*-bsd*)
tm_file=sparc/bsd.h
;;
sparc-*-linux-gnuaout*) # Sparc's running Linux, a.out
- xm_file=sparc/xm-linux.h
+ xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
tm_file=sparc/linux-aout.h
xmake_file=x-linux
fixincludes=Makefile.in #On Linux, the headers are ok already.
- broken_install=yes
gnu_ld=yes
;;
- sparc-*-linux-gnulibc1*) # Sparc's running Linux
- xm_file=sparc/xm-linux.h # with ELF format using the
- xmake_file=x-linux # Linux C library 5.
+ sparc-*-linux-gnulibc1*) # Sparc's running Linux, libc5
+ xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
+ xmake_file=x-linux
tm_file=sparc/linux.h
tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
fixincludes=Makefile.in #On Linux, the headers are ok already.
- broken_install=yes
gnu_ld=yes
;;
- sparc-*-linux-gnu*) # Sparc's running Linux
- xm_file=sparc/xm-linux.h # with ELF format using glibc 2
- xmake_file=x-linux # aka the Linux C library 6.
+ sparc-*-linux-gnu*) # Sparc's running Linux, libc6
+ xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
+ xmake_file=x-linux
tm_file=sparc/linux.h
tmake_file="t-linux sparc/t-linux"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
fixincludes=Makefile.in #On Linux, the headers are ok already.
- broken_install=yes
gnu_ld=yes
if [[ x$enable_threads = xyes ]]; then
thread_file='posix'
xmake_file=sparc/x-sysv4
extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
fixincludes=fixinc.svr4
- broken_install=yes
if [[ x$enable_threads = xyes ]]; then
thread_file='solaris'
fi
tm_file=sparc/sunos4.h
tmake_file=sparc/t-sunos41
use_collect2=yes
+ if [[ x$gas = xyes ]]; then
+ tm_file="${tm_file} sparc/sun4gas.h"
+ fi
;;
sparc-*-sunos3*)
tm_file=sparc/sun4o3.h
tm_file=sparc/sp64-elf.h
extra_parts="crtbegin.o crtend.o"
;;
+ sparc64-*-linux*) # 64-bit Sparc's running Linux
+ tmake_file=sparc/t-sp64
+ xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
+ tm_file=sparc/linux64.h
+ xmake_file=x-linux
+ fixincludes=Makefile.in # On Linux, the headers are ok already.
+ gnu_ld=yes
+ ;;
# This hasn't been upgraded to GCC 2.
# tahoe-harris-*) # Harris tahoe, using COFF.
# tm_file=tahoe/harris.h
# cpu_type=gmicro
# use_collect2=yes
# ;;
+ v850-*-*)
+ cpu_type=v850
+ tm_file="v850/v850.h"
+ xm_file="v850/xm-v850.h"
+ if [[ x$stabs = xyes ]]
+ then
+ tm_file="${tm_file} dbx.h"
+ fi
+ use_collect2=no
+ ;;
vax-*-bsd*) # vaxen running BSD
use_collect2=yes
float_format=vax
vax-*-netbsd*)
tm_file="${tm_file} netbsd.h vax/netbsd.h"
xm_file="${xm_file} xm-netbsd.h"
- # On NetBSD, the headers are already okay.
- fixincludes=Makefile.in
+ # On NetBSD, the headers are already okay, except for math.h.
+ fixincludes=fixinc.math
tmake_file=t-netbsd
float_format=vax
;;
*-*-sysv4*)
fixincludes=fixinc.svr4
xmake_try_sysv=x-sysv
- broken_install=yes
install_headers_dir=install-headers-cpio
;;
*-*-sysv*)
- broken_install=yes
install_headers_dir=install-headers-cpio
;;
esac
| xrios1 | xrios2 | xrsc | xrsc1 \
| x601 | x602 | x603 | x603e | x604 | x604e | x620 \
| x403 | x505 | x801 | x821 | x823 | x860)
- target_cpu_default2="'\"$with_cpu\"'"
+ target_cpu_default2="\"$with_cpu\""
;;
xyes | xno)
then build_xm_file=$cpu_type/xm-$cpu_type.h
else build_xm_file=$xm_file
fi
- build_broken_install=$broken_install
build_install_headers_dir=$install_headers_dir
build_exeext=$exeext
pass1done=yes
# Get the version number from the toplevel
version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
-# Are we using gcc as the native compiler?
-case $host in
-*linux*) # All Linux's use gcc as the native compiler.
- if [[ x$prefix = xNONE ]]; then
- prefix=$native_prefix
- fi
- ;;
-esac
-
# Get an absolute path to the GCC top-level source directory
holddir=`pwd`
cd $srcdir
# If we have gas in the build tree, make a link to it.
if [[ -f ../gas/Makefile ]]; then
- rm -f as; $symbolic_link ../gas/as.new as 2>/dev/null
+ rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null
fi
# If we have ld in the build tree, make a link to it.
if [[ -f ../ld/Makefile ]]; then
# if [[ x$use_collect2 = x ]]; then
-# rm -f ld; $symbolic_link ../ld/ld.new ld 2>/dev/null
+# rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null
# else
- rm -f collect-ld; $symbolic_link ../ld/ld.new collect-ld 2>/dev/null
+ rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null
# fi
fi
echo "source ${srcdir}/.gdbinit" >> .gdbinit
fi
+# If this is using newlib, then define inhibit_libc in
+# LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
+# libgcc.a, but that's OK because newib should have its own version of
+# assert.h.
+inhibit_libc=
+if [[ x$with_newlib = xyes ]]; then
+ inhibit_libc=-Dinhibit_libc
+fi
+AC_SUBST(inhibit_libc)
+
# Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
sched_prefix=
sched_cflags=
if [[ x$enable_haifa != x ]]; then
# Explicitly remove files that need to be recompiled for the Haifa scheduler.
for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
- if [ -f $x ]; then
+ if [[ -f $x ]]; then
echo "Removing $x"
rm -f $x
fi
AC_SUBST(maybe_use_collect2)
AC_SUBST(cc_set_by_configure)
AC_SUBST(stage_prefix_set_by_configure)
+AC_SUBST(install)
AC_SUBST_FILE(target_overrides)
AC_SUBST_FILE(host_overrides)
xconfig.h:config.in)
echo > cstamp-h ;;
esac
+# If the host supports symlinks, point stage[1234] at ../stage[1234] so
+# bootstrapping and the installation procedure can still use
+# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
+# FLAGS_TO_PASS has been modified to solve the problem there.
+# This is virtually a duplicate of what happens in configure.lang; we do
+# an extra check to make sure this only happens if ln -s can be used.
+if [[ "$symbolic_link" = "ln -s" ]]; then
+ for d in .. ${subdirs} ; do
+ if [[ $d != .. ]]; then
+ STARTDIR=`pwd`
+ cd $d
+ for t in stage1 stage2 stage3 stage4 include
+ do
+ rm -f $t
+ $symbolic_link ../$t $t 2>/dev/null
+ done
+ cd $STARTDIR
+ fi
+ done
+else true ; fi
],
[
host='${host}'
local_prefix='${local_prefix}'
build_install_headers_dir='${build_install_headers_dir}'
build_exeext='${build_exeext}'
+out_file='${out_file}'
gdb_needs_out_file_path='${gdb_needs_out_file_path}'
SET_MAKE='${SET_MAKE}'
-build_broken_install='${build_broken_install}'
target_list='${target_list}'
target_overrides='${target_overrides}'
host_overrides='${host_overrides}'