# configure.in for GNU CC
# Process this file with autoconf to generate a configuration script.
-# Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
#This file is part of GNU CC.
fi])
# Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
-cpp_main=cccp
+cpp_main=cppmain
AC_ARG_ENABLE(cpplib,
-[ --enable-cpplib use cpplib for the C preprocessor.],
-if test x$enable_cpplib != xno; then
- cpp_main=cppmain
+[ --disable-cpplib use the old isolated C preprocessor.],
+if test x$enable_cpplib = xno; then
+ cpp_main=cccp
fi)
# Link cpplib into the compiler proper, for C/C++/ObjC.
cpp_main=cppmain
fi)
-# Disable fast fixincludes
-AC_ARG_ENABLE(fast-fixincludes,
-[ --disable-fast-fixincludes
- Disable the new fast fixincludes.
- Run the old fixincludes script unconditionally],
-if test x$enable_fast_fixincludes = xno ; then
- cp $srcdir/fixincludes ./fixinc.sh
-fi)
-
# Enable Multibyte Characters for C/C++
AC_ARG_ENABLE(c-mbchar,
[ --enable-c-mbchar Enable multibyte characters for C and C++.],
objc_boehm_gc='')
AC_ARG_WITH(dwarf2,
-[ --enable-dwarf2 enable DWARF2 debugging as default.],
+[ --with-dwarf2 force the default debug format to be DWARF2.],
dwarf2="$with_dwarf2",
dwarf2=no)
;;
esac
AC_FUNC_VFORK
-AC_FUNC_MMAP
+AC_FUNC_MMAP_ANYWHERE
GCC_NEED_DECLARATIONS(bcopy bzero bcmp \
index rindex getenv atol sbrk abort atof strerror getcwd getwd \
- strsignal putc_unlocked fputs_unlocked strstr)
+ strsignal putc_unlocked fputs_unlocked strstr environ)
GCC_NEED_DECLARATIONS(malloc realloc calloc free, [
#ifdef HAVE_MALLOC_H
install_headers_dir=install-headers-cpio
;;
*-*-osf5*)
- tm_file="${tm_file} alpha/osf.h"
+ tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
;;
esac
case $machine in
changequote(,)dnl
- *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
+ *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
changequote([,])dnl
target_cpu_default=MASK_SUPPORT_ARCH
;;
xmake_file=pa/x-pa-mpeix
echo "You must use gas. Assuming it is already installed."
install_headers_dir=install-headers-tar
- fixincludes=Makefile.in
use_collect2=yes
;;
i370-*-opened*) # IBM 360/370/390 Architecture
tm_file=i370/oe.h
xmake_file=i370/x-oe
tmake_file=i370/t-oe
- fixincludes=Makefile.in # Headers are wierd, don't mess with
;;
i370-*-mvs*)
xm_file=i370/xm-mvs.h
tm_file=i370/mvs.h
tmake_file=i370/t-mvs
- fixincludes=Makefile.in # Headers are wierd, don't mess with
;;
i370-*-linux*)
xm_file="xm-linux.h i370/xm-linux.h"
xmake_file=x-linux
tm_file="i370/linux.h ${tm_file}"
tmake_file="t-linux i370/t-linux"
- fixincludes=Makefile.in # The headers are ok already.
# broken_install=yes
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
# extra_parts="crtbegin.o crtend.o"
tmake_file=i386/t-i386bare
;;
changequote(,)dnl
+ i[34567]86-*-beospe*)
+changequote([,])dnl
+ xm_file=i386/xm-beos.h
+ xm_defines="USE_C_ALLOCA"
+ tmake_file=i386/t-beos
+ tm_file=i386/beos-pe.h
+ xmake_file=i386/x-beos
+ extra_objs=winnt.o
+ ;;
+changequote(,)dnl
+ i[34567]86-*-beoself* | i[34567]86-*-beos*)
+changequote([,])dnl
+ xm_file=i386/xm-beos.h
+ tmake_file='i386/t-beos i386/t-crtpic'
+ tm_file=i386/beos-elf.h
+ xmake_file=i386/x-beos
+ extra_objs=winnt.o
+ extra_parts='crtbegin.o crtend.o'
+ ;;
+changequote(,)dnl
i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
changequote([,])dnl
tm_file=i386/bsd386.h
tmake_file="i386/t-go32 t-rtems"
;;
changequote(,)dnl
- i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
+ i[34567]86-*-rtemscoff*)
changequote([,])dnl
cpu_type=i386
- tm_file=i386/rtemself.h
- extra_parts="crtbegin.o crtend.o crti.o crtn.o"
- tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
+ tm_file=i386/rtems.h
+ tmake_file="i386/t-i386bare t-rtems"
;;
changequote(,)dnl
- i[34567]86-*-rtemscoff*)
+ i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
changequote([,])dnl
cpu_type=i386
- tm_file=i386/rtems.h
- tmake_file="i386/t-i386bare t-rtems"
+ tm_file=i386/rtemself.h
+ extra_parts="crtbegin.o crtend.o crti.o crtn.o"
+ tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
;;
changequote(,)dnl
i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
extra_headers=math-68881.h
float_format=m68k
;;
- m68k-*-rtemscoff*|m68k-*-rtems*)
+ m68k-*-rtemscoff*)
tmake_file="m68k/t-m68kbare t-rtems"
tm_file=m68k/rtems.h
extra_headers=math-68881.h
float_format=m68k
;;
- m68k-*-rtemself*)
+ m68k-*-rtemself*|m68k-*-rtems*)
tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
tm_file=m68k/rtemself.h
extra_headers=math-68881.h
;;
mips64orion-*-rtems*)
tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
- tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
tmake_file="mips/t-elf t-rtems"
;;
mipstx39el-*-elf*)
tmake_file=sparc/t-sunos41
xmake_file=x-lynx
;;
+ sparc-*-rtemsaout*)
+ tmake_file="sparc/t-sparcbare t-rtems"
+ tm_file=sparc/rtems.h
+ ;;
sparc-*-rtems*|sparc-*-rtemself*)
tm_file="sparc/rtemself.h"
tmake_file="sparc/t-elf t-rtems"
#float_format=i128
float_format=i64
;;
- sparc-*-rtemsaout*)
- tmake_file="sparc/t-sparcbare t-rtems"
- tm_file=sparc/rtems.h
- ;;
sparcv9-*-solaris2*)
if test x$gnu_ld = xyes
then
fi
if test x"$dwarf2" = xyes
-then tm_file="tm-dwarf2.h $tm_file"
+then tm_file="$tm_file tm-dwarf2.h"
fi
if test x$float_format = x
AC_MSG_ERROR([$withval is an invalid option to --with-gc])
;;
esac],
-[if test $ac_cv_func_mmap_fixed_mapped = yes; then
- GGC=ggc-page
-elif test $ac_cv_func_valloc = yes; then
+[if test $ac_cv_func_mmap_anywhere = yes \
+ || test $ac_cv_func_valloc = yes; then
GGC=ggc-page
else
GGC=ggc-simple
AC_SUBST(GGC)
echo "Using $GGC for garbage collection."
+# Build a new-abi (c++) system
+AC_ARG_ENABLE(new-gxx-abi,
+[ --enable-new-gxx-abi
+ select the new abi for g++. You must select an ABI
+ at configuration time, so that the correct runtime
+ support is built. You cannot mix ABIs.],
+[AC_DEFINE(ENABLE_NEW_GXX_ABI)
+GXX_ABI_FLAG='-fnew-abi'
+echo "Building a new-abi g++ compiler."
+])
+AC_SUBST(GXX_ABI_FLAG)
+
# Make empty files to contain the specs and options for each language.
# Then add #include lines to for a compiler that has specs and/or options.
AC_SUBST(extra_parts)
AC_SUBST(extra_passes)
AC_SUBST(extra_programs)
-AC_SUBST(fixinc_defs)
AC_SUBST(float_h_file)
AC_SUBST(gcc_gxx_include_dir)
AC_SUBST(gcc_version)