elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
gnu_ld_flag=yes
fi
- AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER")
+ AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
+ [Define to enable the use of a default linker.])
fi
# With GNU as
elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
gas_flag=yes
fi
- AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER")
+ AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
+ [Define to enable the use of a default assembler.])
fi
# With stabs
enable expensive run-time checks. With LIST,
enable only specific categories of checks.
Categories are: misc,tree,rtl,gc,gcac; default
- is misc,tree,rtl],
-[case "${enableval}" in
-yes) AC_DEFINE(ENABLE_CHECKING)
- AC_DEFINE(ENABLE_TREE_CHECKING)
- AC_DEFINE(ENABLE_RTL_CHECKING) ;;
+ is misc,tree,gc],
+[ac_checking=
+ac_tree_checking=
+ac_rtl_checking=
+ac_gc_checking=
+ac_gc_always_collect=
+case "${enableval}" in
+yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
no) ;;
-*) IFS="${IFS= }"; ac_save_IFS="$IFS" IFS="$IFS,"
+*) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
set fnord $enableval; shift
IFS="$ac_save_IFS"
for check
do
case $check in
- misc) AC_DEFINE(ENABLE_CHECKING) ;;
- tree) AC_DEFINE(ENABLE_TREE_CHECKING) ;;
- rtl) AC_DEFINE(ENABLE_RTL_CHECKING) ;;
- gc) AC_DEFINE(ENABLE_GC_CHECKING) ;;
- gcac) AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT) ;;
+ misc) ac_checking=1 ;;
+ tree) ac_tree_checking=1 ;;
+ rtl) ac_rtl_checking=1 ;;
+ gc) ac_gc_checking=1 ;;
+ gcac) ac_gc_always_collect=1 ;;
*) AC_MSG_ERROR(unknown check category $check) ;;
esac
done
;;
-esac])
+esac
+],
+# Enable some checks by default for development versions of GCC
+[ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;])
+if test x$ac_checking != x ; then
+ AC_DEFINE(ENABLE_CHECKING, 1,
+[Define if you want more run-time sanity checks. This one gets a grab
+ bag of miscellaneous but relatively cheap checks.])
+fi
+if test x$ac_tree_checking != x ; then
+ AC_DEFINE(ENABLE_TREE_CHECKING, 1,
+[Define if you want all operations on trees (the basic data
+ structure of the front ends) to be checked for dynamic type safety
+ at runtime. This is moderately expensive.])
+fi
+if test x$ac_rtl_checking != x ; then
+ AC_DEFINE(ENABLE_RTL_CHECKING, 1,
+[Define if you want all operations on RTL (the basic data structure
+ of the optimizer and back end) to be checked for dynamic type safety
+ at runtime. This is quite expensive.])
+fi
+if test x$ac_gc_checking != x ; then
+ AC_DEFINE(ENABLE_GC_CHECKING, 1,
+[Define if you want the garbage collector to do object poisoning and
+ other memory allocation checks. This is quite expensive.])
+fi
+if test x$ac_gc_always_collect != x ; then
+ AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
+[Define if you want the garbage collector to operate in maximally
+ paranoid mode, validating the entire heap and collecting garbage at
+ every opportunity. This is extremely expensive.])
+fi
+
AC_ARG_ENABLE(cpp,
[ --disable-cpp don't provide a user-visible C preprocessor.],
cpp_install_dir=$withval
fi])
-dnl Disable this for the moment; the library interface is changing.
-dnl # Link cpplib into the compiler proper, for C/C++/ObjC.
-dnl AC_ARG_ENABLE(c-cpplib,
-dnl [ --enable-c-cpplib link cpplib directly into C and C++ compilers
-dnl (EXPERIMENTAL) (implies --enable-cpplib).],
-dnl if test x$enable_c_cpplib != xno; then
-dnl extra_c_objs="${extra_c_objs} libcpp.a"
-dnl extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
-dnl extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
-dnl fi)
+# Link cpplib into the compiler proper, for C/C++/ObjC.
+AC_ARG_ENABLE(c-cpplib,
+[ --enable-c-cpplib link cpplib directly into C and C++ compilers
+ (HIGHLY EXPERIMENTAL).],
+if test x$enable_c_cpplib != xno; then
+ extra_c_objs="${extra_c_objs} libcpp.a"
+ extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
+ AC_DEFINE(USE_CPPLIB, 1,
+ [Define if you want the preprocessor merged into the C and C++ compilers.
+ This mode is not ready for production use.])
+fi)
# Enable Multibyte Characters for C/C++
AC_ARG_ENABLE(c-mbchar,
[ --enable-c-mbchar Enable multibyte characters for C and C++.],
if test x$enable_c_mbchar != xno; then
- extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
+ AC_DEFINE(MULTIBYTE_CHARS, 1,
+ [Define if you want the C and C++ compilers to support multibyte
+ character sets for source code.])
fi)
# Enable threads
# Pass with a value to specify a thread package
AC_ARG_ENABLE(threads,
[ --enable-threads enable thread usage for target GCC.
- --enable-threads=LIB use LIB thread package for target GCC.],
-if test x$enable_threads = xno; then
- enable_threads=''
-fi,
+ --enable-threads=LIB use LIB thread package for target GCC.],,
enable_threads='')
enable_threads_flag=$enable_threads
target_thread_file=''
;;
xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
- xsolaris | xwin32 | xdce | xvxworks)
+ xsolaris | xwin32 | xdce | xvxworks | xaix)
target_thread_file=$enable_threads_flag
;;
*)
# Find the native compiler
AC_PROG_CC
+AC_PROG_CC_C_O
+if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
+ NO_MINUS_C_MINUS_O=yes
+fi
+AC_SUBST(NO_MINUS_C_MINUS_O)
+
gcc_AC_C_LONG_DOUBLE
+AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
+ac_cv_prog_cc_no_long_long,
+[save_CFLAGS="$CFLAGS"
+CFLAGS="-Wno-long-long"
+AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
+ ac_cv_prog_cc_no_long_long=no)
+CFLAGS="$save_CFLAGS"])
+
# If the native compiler is GCC, we can enable warnings even in stage1.
# That's useful for people building cross-compilers, or just running a
# quick `make'.
+stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
+stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
if test "x$GCC" = "xyes"; then
- stage1_warn_cflags='$(WARN_CFLAGS)'
+ if test $ac_cv_prog_cc_no_long_long = yes; then
+ stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
+ fi
else
stage1_warn_cflags=""
fi
+
+# Stage specific cflags for build.
+case $build in
+vax-*-*)
+ if test x$GCC = xyes
+ then
+ stage1_warn_cflags="$stage1_warn_cflags -Wa,-J"
+ else
+ stage1_warn_cflags="$stage1_warn_cflags -J"
+ fi
+ ;;
+esac
+
AC_SUBST(stage1_warn_cflags)
+AC_SUBST(stage2_warn_cflags)
AC_PROG_MAKE_SET
AC_MSG_RESULT(no)
fi
+AC_MSG_CHECKING(for GNU C library)
+AC_CACHE_VAL(gcc_cv_glibc,
+[AC_TRY_COMPILE(
+ [#include <features.h>],[
+#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
+#error Not a GNU C library system
+#endif],
+ [gcc_cv_glibc=yes],
+ gcc_cv_glibc=no)])
+AC_MSG_RESULT($gcc_cv_glibc)
+if test $gcc_cv_glibc = yes; then
+ AC_DEFINE(_GNU_SOURCE, 1, [Always define this when using the GNU C Library])
+fi
+
+AC_C_INLINE
+
# Find some useful tools
AC_PROG_AWK
AC_PROG_LEX
AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
fcntl.h unistd.h stab.h sys/file.h sys/time.h \
sys/resource.h sys/param.h sys/times.h sys/stat.h \
- direct.h malloc.h)
+ direct.h malloc.h langinfo.h iconv.h)
# Check for thread headers.
AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
# See if GNAT has been installed
AC_CHECK_PROG(gnat, gnatbind, yes, no)
+# Do we have a single-tree copy of texinfo?
+if test -f $srcdir/../texinfo/Makefile.in; then
+ MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
+ gcc_cv_prog_makeinfo_modern=yes
+ AC_MSG_RESULT([Using makeinfo from the unified source tree.])
+else
+ # See if makeinfo has been installed and is modern enough
+ # that we can use it.
+ gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
+ [GNU texinfo.* \([0-9][0-9.]*\)],
+ [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
+fi
+
+if test $gcc_cv_prog_makeinfo_modern = no; then
+ AC_MSG_WARN([
+*** Makeinfo is missing or too old.
+*** Info documentation will not be built or installed.])
+ BUILD_INFO=
+ INSTALL_INFO=
+else
+ BUILD_INFO=info AC_SUBST(BUILD_INFO)
+ INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
+fi
+
# See if the stage1 system preprocessor understands the ANSI C
# preprocessor stringification operator.
AC_C_STRINGIZE
gcc_cv_header_inttypes_h=no)])
AC_MSG_RESULT($gcc_cv_header_inttypes_h)
if test $gcc_cv_header_inttypes_h = yes; then
- AC_DEFINE(HAVE_INTTYPES_H)
+ AC_DEFINE(HAVE_INTTYPES_H, 1,
+ [Define if you have a working <inttypes.h> header file.])
fi
#
exit(0);
}, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
-AC_MSG_RESULT($gcc_cv_enum_bf_unsigned)
if test $gcc_cv_enum_bf_unsigned = yes; then
AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
[Define if enumerated bitfields are treated as unsigned values.])
AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
- fputs_unlocked getrusage valloc)
+ fputs_unlocked getrusage valloc iconv nl_langinfo)
-# Make sure wchar_t is available
-#AC_CHECK_TYPE(wchar_t, unsigned int)
+AC_CHECK_TYPE(ssize_t, int)
+
+# Try to determine the array type of the second argument of getgroups
+# for the target system (int or gid_t).
+AC_TYPE_GETGROUPS
+if test "${target}" = "${build}"; then
+ TARGET_GETGROUPS_T=$ac_cv_type_getgroups
+else
+ case "${target}" in
+ # This condition may need some tweaking. It should include all
+ # targets where the array type of the second argument of getgroups
+ # is int and the type of gid_t is not equivalent to int.
+ *-*-sunos* | *-*-ultrix*)
+ TARGET_GETGROUPS_T=int
+ ;;
+ *)
+ TARGET_GETGROUPS_T=gid_t
+ ;;
+ esac
+fi
+AC_SUBST(TARGET_GETGROUPS_T)
gcc_AC_FUNC_VFPRINTF_DOPRNT
gcc_AC_FUNC_PRINTF_PTR
AC_FUNC_MMAP_ANYWHERE
AC_FUNC_MMAP_FILE
-gcc_AC_NEED_DECLARATIONS(bcopy bzero bcmp \
+# We will need to find libiberty.h and ansidecl.h
+saved_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
+gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
index rindex getenv atol sbrk abort atof getcwd getwd \
- strsignal putc_unlocked fputs_unlocked strstr environ)
-
-gcc_AC_NEED_DECLARATIONS(malloc realloc calloc free, [
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-])
-
-gcc_AC_NEED_DECLARATIONS(getrlimit setrlimit getrusage, [
-#include <sys/types.h>
+ strsignal putc_unlocked fputs_unlocked strstr environ \
+ malloc realloc calloc free basename getopt, , ,[
+#include "gansidecl.h"
+#include "system.h"])
+
+gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
+#include "gansidecl.h"
+#include "system.h"
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
])
+# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
+CFLAGS="$saved_CFLAGS"
+
# mkdir takes a single argument on some systems.
gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
alpha*-*-*)
cpu_type=alpha
;;
+ strongarm*-*-*)
+ cpu_type=arm
+ ;;
arm*-*-*)
cpu_type=arm
;;
;;
esac
- # Common parts for linux-gnu and openbsd systems
+ # Common parts for linux and openbsd systems
case $machine in
- *-*-linux-gnu*)
+ *-*-linux*)
xm_defines="HAVE_ATEXIT POSIX BSTRING"
;;
*-*-openbsd*)
#prefix='$$INTERIX_ROOT'/usr/contrib
#local_prefix='$$INTERIX_ROOT'/usr/contrib
;;
- alpha*-*-linux-gnuecoff*)
+ alpha*-*-linux*ecoff*)
tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
target_cpu_default="MASK_GAS"
tmake_file="alpha/t-alpha alpha/t-ieee"
xmake_file=none
gas=yes gnu_ld=yes
;;
- alpha*-*-linux-gnulibc1*)
+ alpha*-*-linux*libc1*)
tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
target_cpu_default="MASK_GAS"
- tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-linux alpha/t-crtbe alpha/t-ieee"
+ tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
xmake_file=none
gas=yes gnu_ld=yes
thread_file='posix'
fi
;;
- alpha*-*-linux-gnu*)
+ alpha*-*-linux*)
tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
target_cpu_default="MASK_GAS"
- tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
+ tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
xmake_file=none
gas=yes gnu_ld=yes
tmake_file="t-netbsd arm/t-netbsd"
use_collect2=yes
;;
- arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
+ arm*-*-linux*aout*) # ARM GNU/Linux with a.out
cpu_type=arm
xmake_file=x-linux
tm_file=arm/linux-aout.h
tmake_file=arm/t-linux
gnu_ld=yes
;;
- arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
+ arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
xm_file=arm/xm-linux.h
xmake_file=x-linux
tm_file="arm/linux-oldld.h arm/linux-elf.h"
;;
esac
;;
- arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
+ arm*-*-linux*) # ARM GNU/Linux with ELF
xm_file=arm/xm-linux.h
xmake_file=x-linux
tm_file="arm/linux-elf.h"
extra_parts="crtbegin.o crtend.o"
install_headers_dir=install-headers-cpio
;;
+ d30v-*)
+ float_format=i64
+ ;;
dsp16xx-*)
;;
elxsi-elxsi-*)
if test x$enable_threads = x; then
enable_threads=$have_pthread_h
fi
- if test x$enable_threads = xyes; then
- thread_file='dce'
+ case x${enable_threads} in
+ xyes | xdce)
tmake_file="${tmake_file} pa/t-dce-thr"
- fi
+ ;;
+ esac
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
if test x$enable_threads = x; then
enable_threads=$have_pthread_h
fi
- if test x$enable_threads = xyes; then
- thread_file='dce'
+ case x${enable_threads} in
+ xyes | xdce)
tmake_file="${tmake_file} pa/t-dce-thr"
+ ;;
+ esac
+ install_headers_dir=install-headers-cpio
+ use_collect2=yes
+ ;;
+ hppa*64*-*-hpux11*)
+ target_cpu_default="MASK_PA_11"
+ xm_file=pa/xm-pa64hpux.h
+ xmake_file=pa/x-pa-hpux
+ tmake_file=pa/t-pa
+ tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
+ float_format=i128
+ tmake_file=pa/t-pa64
+ target_cpu_default="(MASK_PA_11|MASK_PA_20)"
+
+ if [[ x$gas = xyes ]]
+ then
+ tm_file="${tm_file} pa/pa-gas.h"
fi
+# if [[ x$enable_threads = x ]]; then
+# enable_threads=$have_pthread_h
+# fi
+# if [[ x$enable_threads = xyes ]]; then
+# thread_file='dce'
+# tmake_file="${tmake_file} pa/t-dce-thr"
+# fi
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
use_collect2=yes
;;
hppa*-*-mpeix*)
- tm_file="${tm_file} pa/pa-mpeix.h"
+ tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
xm_file=pa/xm-pampeix.h
xmake_file=pa/x-pa-mpeix
echo "You must use gas. Assuming it is already installed."
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
# use_collect2=yes
;;
changequote(,)dnl
- i[34567]86-*-freebsdelf*)
+ i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
+changequote([,])dnl
+ tm_file="i386/freebsd.h i386/perform.h"
+ tmake_file=t-freebsd
+ ;;
+changequote(,)dnl
+ i[34567]86-*-freebsd*)
changequote([,])dnl
tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
esac
;;
changequote(,)dnl
- i[34567]86-*-freebsd*)
-changequote([,])dnl
- tm_file="i386/freebsd.h i386/perform.h"
- tmake_file=t-freebsd
- ;;
-changequote(,)dnl
i[34567]86-*-netbsd*)
changequote([,])dnl
tm_file=i386/netbsd.h
tmake_file=i386/t-crtstuff
extra_parts="crtbegin.o crtend.o"
fi
+ tmake_file="$tmake_file i386/t-i386bare"
install_headers_dir=install-headers-cpio
;;
changequote(,)dnl
- i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
+ i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
changequote([,])dnl # with a.out format using
# pre BFD linkers
xmake_file=x-linux-aout
float_format=i386
;;
changequote(,)dnl
- i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
+ i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
changequote([,])dnl # with a.out format
xmake_file=x-linux-aout
tmake_file="t-linux-aout i386/t-crtstuff"
float_format=i386
;;
changequote(,)dnl
- i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
+ i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
changequote([,])dnl # with ELF format using the
# GNU/Linux C library 5
xmake_file=x-linux
fi
;;
changequote(,)dnl
- i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
+ i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
changequote([,])dnl # with ELF format using glibc 2
# aka GNU/Linux C library 6
xmake_file=x-linux
gnu_ld=yes
gas=yes
exeext=.exe
+ float_format=none
case $host in *pc-msdosdjgpp*)
target_alias=djgpp
;;
else
tmake_file=i386/t-sco5
fi
+ tmake_file="$tmake_file i386/t-i386bare"
extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
;;
changequote(,)dnl
tmake_file=i386/t-crtstuff
extra_parts="crtbegin.o crtend.o"
fi
+ tmake_file="$tmake_file i386/t-i386bare"
# The default EAFS filesystem supports long file names.
# Truncating the target makes $host != $target which
# makes gcc think it is doing a cross-compile.
extra_parts="crtbegin.o crtend.o"
tmake_file=i386/t-crtstuff
fi
+ tmake_file="$tmake_file i386/t-i386bare"
truncate_target=yes
;;
changequote(,)dnl
# Only needed if gas does not support -s
tm_file="i386/sol2gas.h ${tm_file}"
fi
- tmake_file=i386/t-sol2
+ tmake_file="i386/t-i386bare i386/t-sol2"
extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
xmake_file=x-svr4
if test x${enable_threads} = x; then
then
tm_file="${tm_file} dbx.h"
fi
- tmake_file=i386/t-crtpic
+ tmake_file="i386/t-i386bare i386/t-crtpic"
xmake_file=x-svr4
extra_parts="crtbegin.o crtend.o"
if test x$enable_threads = xyes; then
then
tm_file="${tm_file} dbx.h"
fi
- tmake_file=i386/t-crtpic
+ tmake_file="i386/t-i386bare i386/t-crtpic"
xmake_file=x-svr4
extra_parts="crtbegin.o crtend.o"
;;
xm_file="xm-alloca.h ${xm_file}"
xm_defines="USG POSIX"
tm_file=i386/udk.h
- tmake_file="i386/t-crtpic i386/t-udk"
+ tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
xmake_file=x-svr4
extra_parts="crtbegin.o crtend.o"
install_headers_dir=install-headers-cpio
extra_parts="crtbegin.o crtend.o"
tmake_file=i386/t-crtstuff
fi
+ tmake_file="$tmake_file i386/t-crtpic"
;;
i386-*-vsta) # Intel 80386's running VSTa kernel
xm_file="${xm_file} i386/xm-vsta.h"
then
target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
fi
+ float_format=i386
;;
ia64*-*-linux*)
tm_file=ia64/linux.h
if test x$enable_threads = xyes; then
thread_file='posix'
fi
+ float_format=i386
;;
m32r-*-elf*)
extra_parts="crtinit.o crtfini.o"
;;
+ # m68hc11 and m68hc12 share the same machine description.
+ m68hc11-*-*|m6811-*-*)
+ tm_file="m68hc11/m68hc11.h"
+ xm_file="m68hc11/xm-m68hc11.h"
+ tm_p_file="m68hc11/m68hc11-protos.h"
+ md_file="m68hc11/m68hc11.md"
+ out_file="m68hc11/m68hc11.c"
+ tmake_file="m68hc11/t-m68hc11-gas"
+ ;;
+ m68hc12-*-*|m6812-*-*)
+ tm_file="m68hc11/m68hc12.h"
+ tm_p_file="m68hc11/m68hc11-protos.h"
+ xm_file="m68hc11/xm-m68hc11.h"
+ md_file="m68hc11/m68hc11.md"
+ out_file="m68hc11/m68hc11.c"
+ tmake_file="m68hc11/t-m68hc11-gas"
+ ;;
m68000-convergent-sysv*)
tm_file=m68k/ctix.h
xm_file="m68k/xm-3b1.h ${xm_file}"
extra_headers=math-68881.h
float_format=m68k
;;
- m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
+ m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
# with a.out format
xmake_file=x-linux
tm_file=m68k/linux-aout.h
float_format=m68k
gnu_ld=yes
;;
- m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
+ m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
# with ELF format using the
# GNU/Linux C library 5
xmake_file=x-linux
float_format=m68k
gnu_ld=yes
;;
- m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
+ m68k-*-linux*) # Motorola m68k's running GNU/Linux
# with ELF format using glibc 2
# aka the GNU/Linux C library 6.
xmake_file=x-linux
;;
m88k-*-openbsd*)
tmake_file="${tmake_file} m88k/t-luna-gas"
+ tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
+ xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
;;
m88k-*-sysv3*)
tm_file=m88k/sysv3.h
# On NetBSD, the headers are already okay, except for math.h.
tmake_file=t-netbsd
;;
- mips*-*-linux*) # Linux MIPS, either endian.
+ mips*-*-linux*) # Linux MIPS, either endian.
xmake_file=x-linux
- case $machine in
- mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
- *) tm_file="mips/elf.h mips/linux.h" ;;
- esac
+ case $machine in
+ mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
+ *) tm_file="mips/elf.h mips/linux.h" ;;
+ esac
+ tmake_file=t-linux
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
gnu_ld=yes
gas=yes
- if test x$enable_threads = xyes; then
- thread_file='posix'
- fi
+ if test x$enable_threads = xyes; then
+ thread_file='posix'
+ fi
;;
mips*el-*-openbsd*) # mips little endian
target_cpu_default="MASK_GAS|MASK_ABICALLS"
tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
extra_headers=ppc-asm.h
;;
- powerpc-*-linux-gnulibc1)
+ powerpc-*-linux*libc1)
tm_file="rs6000/sysv4.h rs6000/linux.h"
xm_file=rs6000/xm-sysv4.h
out_file=rs6000/rs6000.c
thread_file='posix'
fi
;;
- powerpc-*-linux-gnu*)
+ powerpc-*-linux*)
tm_file="rs6000/sysv4.h rs6000/linux.h"
xm_file="rs6000/xm-sysv4.h"
xm_defines="USG ${xm_defines}"
then
xmake_file=rs6000/x-aix41-gld
else
- tmake_file="rs6000/t-newas rs6000/t-aix41"
+ tmake_file='rs6000/t-newas'
fi
xmake_file=rs6000/x-aix41
float_format=none
xmake_file=rs6000/x-aix41
float_format=none
use_collect2=yes
+ thread_file='aix'
;;
changequote(,)dnl
rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
xmake_file=rs6000/x-aix41
float_format=none
use_collect2=yes
+ thread_file='aix'
;;
rs6000-ibm-aix*)
float_format=none
use_collect2=yes
;;
sh-*-elf*)
- tm_file=sh/elf.h
+ tmake_file="sh/t-sh sh/t-elf"
+ tm_file="sh/sh.h sh/elf.h"
float_format=sh
;;
sh-*-rtemself*)
- tmake_file="sh/t-sh t-rtems"
- tm_file=sh/rtemself.h
+ tmake_file="sh/t-sh sh/t-elf t-rtems"
+ tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
float_format=sh
;;
sh-*-rtems*)
tmake_file="sh/t-sh t-rtems"
- tm_file=sh/rtems.h
+ tm_file="sh/sh.h sh/rtems.h"
+ float_format=sh
+ ;;
+ sh-*-linux*)
+ tm_file="sh/sh.h sh/elf.h sh/linux.h"
+ tmake_file="sh/t-sh sh/t-elf sh/t-linux"
+ xmake_file=x-linux
+ gas=yes gnu_ld=yes
+ if test x$enable_threads = xyes; then
+ thread_file='posix'
+ fi
float_format=sh
;;
sh-*-*)
#float_format=i128
float_format=i64
;;
- sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
+ sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
xm_file="${xm_file} sparc/xm-linux.h"
tm_file=sparc/linux-aout.h
xmake_file=x-linux
gnu_ld=yes
;;
- sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
+ sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
xm_file="${xm_file} sparc/xm-linux.h"
xmake_file=x-linux
tm_file=sparc/linux.h
gnu_ld=yes
float_format=sparc
;;
- sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
+ sparc-*-linux*) # Sparc's running GNU/Linux, libc6
xm_file="${xm_file} sparc/xm-linux.h"
xmake_file=x-linux
tm_file=sparc/linux.h
xmake_file=sparc/x-sysv4
extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
case $machine in
+changequote(,)dnl
*-*-solaris2.[0-4])
+changequote([,])dnl
float_format=i128
;;
*)
;;
vax-*-openbsd*)
tmake_file="${tmake_file} vax/t-openbsd"
+ tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
+ xm_file="xm-openbsd.h vax/xm-vax.h"
+ float_format=vax
+ use_collect2=yes
;;
vax-*-ultrix*) # vaxen running ultrix
tm_file="${tm_file} vax/ultrix.h"
- use_collect2=yes
float_format=vax
;;
vax-*-vms*) # vaxen running VMS
esac
case $machine in
- *-*-linux-gnu*)
+ *-*-linux*)
;; # Existing GNU/Linux systems do not use the GNU setup.
*-*-gnu*)
# On the GNU system, the setup is just about the same on
then
if test x$gnu_ld = xyes
then
- target_cpu_default2=20
+ target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
else
- target_cpu_default2=16
+ target_cpu_default2="MASK_GAS"
fi
fi
;;
mips*-*-*)
if test x$gas = xyes
then
- target_cpu_default2=16
+ target_cpu_default2="MASK_GAS"
fi
;;
powerpc*-*-* | rs6000-*-*)
for file in `eval echo '$'$var`; do
case $file in
- auto-config.h)
+ auto-host.h | auto-build.h )
;;
*)
echo '#ifdef IN_GCC' >>$link
esac
echo "#include \"$file\"" >>$link
case $file in
- auto-config.h)
+ auto-host.h | auto-build.h )
;;
*)
echo '#endif' >>$link
# Internationalization
PACKAGE=gcc
VERSION="$gcc_version"
-AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
-AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
+AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
+ [Define to the name of the distribution.])
+AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
+ [Define to the version of the distribution.])
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
-ALL_LINGUAS="en_UK"
+ALL_LINGUAS="en_GB"
-# NLS support is still experimental, so disable it by default for now.
+# Enable NLS support by default
AC_ARG_ENABLE(nls,
- [ --enable-nls use Native Language Support (disabled by default)],
- , enable_nls=no)
+ [ --enable-nls use Native Language Support (default)],
+ , enable_nls=yes)
+
+# if cross compiling, disable NLS support.
+# It's not worth the trouble, at least for now.
+
+if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
+ AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
+ enable_nls=no
+fi
AM_GNU_GETTEXT
XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
AC_MSG_CHECKING(whether windows registry support is requested)
if test x$enable_win32_registry != xno; then
- AC_DEFINE(ENABLE_WIN32_REGISTRY)
+ AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
+[Define to 1 if installation paths should be looked up in Windows32
+ Registry. Ignored on non windows32 hosts.])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
if test x$enable_win32_registry != xno; then
AC_MSG_CHECKING(registry key on windows hosts)
- AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key")
+ AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
+ [Define to be the last portion of registry key on windows hosts.])
AC_MSG_RESULT($gcc_cv_win32_registry_key)
fi
cross_overrides="${topdir}/cross-make"
fi
+# If this is a cross-compiler that does not
+# have its own set of headers then define
+# inhibit_libc
+
+# 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 newlib should have its own version of
+# assert.h.
+inhibit_libc=
+if [test x$host != x$target] && [test x$with_headers = x]; then
+ inhibit_libc=-Dinhibit_libc
+else
+ if [test x$with_newlib = xyes]; then
+ inhibit_libc=-Dinhibit_libc
+ fi
+fi
+AC_SUBST(inhibit_libc)
+
# When building gcc with a cross-compiler, we need to fix a few things.
# This must come after cross-make as we want all.build to override
# all.cross.
# fi
fi
-# Figure out what assembler alignment features are present.
-AC_MSG_CHECKING(assembler alignment features)
+# Figure out what assembler we will be using.
+AC_MSG_CHECKING(what assembler to use)
gcc_cv_as=
-gcc_cv_as_alignment_features=
+gcc_cv_gas_major_version=
+gcc_cv_gas_minor_version=
gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
if test -x "$DEFAULT_ASSEMBLER"; then
gcc_cv_as="$DEFAULT_ASSEMBLER"
gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
changequote([,])dnl
- if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
- # Gas version 2.6 and later support for .balign and .p2align.
- # bytes to skip when using .p2align.
- if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
- gcc_cv_as_alignment_features=".balign and .p2align"
- AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
- fi
- # Gas version 2.8 and later support specifying the maximum
- # bytes to skip when using .p2align.
- if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
- gcc_cv_as_alignment_features=".p2align including maximum skip"
- AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
- fi
- fi
-elif test x$host = x$target; then
+fi
+
+if test "x$gcc_cv_as" = x -a x$host = x$target; then
# Native build.
# Search the same directories that the installed compiler will
# search. Else we may find the wrong assembler and lose. If we
fi
done
fi
-if test x$gcc_cv_as != x; then
+if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
+ AC_MSG_RESULT("newly built gas")
+else
+ AC_MSG_RESULT($gcc_cv_as)
+fi
+
+# Figure out what nm we will be using.
+AC_MSG_CHECKING(what nm to use)
+if test -x nm$host_exeext; then
+ gcc_cv_nm=./nm$host_exeext
+elif test x$host = x$target; then
+ # Native build.
+ gcc_cv_nm=nm$host_exeext
+fi
+AC_MSG_RESULT($gcc_cv_nm)
+
+# Figure out what assembler alignment features are present.
+AC_MSG_CHECKING(assembler alignment features)
+gcc_cv_as_alignment_features=
+if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
+ # Gas version 2.6 and later support for .balign and .p2align.
+ # bytes to skip when using .p2align.
+ if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
+ gcc_cv_as_alignment_features=".balign and .p2align"
+ AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
+ fi
+ # Gas version 2.8 and later support specifying the maximum
+ # bytes to skip when using .p2align.
+ if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
+ gcc_cv_as_alignment_features=".p2align including maximum skip"
+ AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
+ fi
+elif test x$gcc_cv_as != x; then
# Check if we have .balign and .p2align
echo ".balign 4" > conftest.s
echo ".p2align 2" >> conftest.s
AC_MSG_CHECKING(assembler subsection support)
gcc_cv_as_subsections=
-if test x$gcc_cv_as != x; then
+if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
+ if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
+ gcc_cv_as_subsections="working .subsection -1"
+ fi
+elif test x$gcc_cv_as != x; then
# Check if we have .subsection
echo ".subsection 1" > conftest.s
if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
gcc_cv_as_subsections=".subsection"
- if test -x nm$host_exeext; then
- gcc_cv_nm=./nm$host_exeext
- elif test x$host = x$target; then
- # Native build.
- gcc_cv_nm=nm$host_exeext
- fi
if test x$gcc_cv_nm != x; then
cat > conftest.s <<EOF
conftest_label1: .word 0
:
else
gcc_cv_as_subsections="working .subsection -1"
- AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
fi
fi
fi
fi
rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
fi
+if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
+ AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
+[Define if your assembler supports .subsection and .subsection -1 starts
+ emitting at the beginning of your section.])
+fi
AC_MSG_RESULT($gcc_cv_as_subsections)
AC_MSG_CHECKING(assembler weak support)
gcc_cv_as_weak=
-if test x$gcc_cv_as != x; then
+if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
+ if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
+ gcc_cv_as_weak="yes"
+ fi
+elif test x$gcc_cv_as != x; then
# Check if we have .weak
echo " .weak foobar" > conftest.s
if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
- AC_DEFINE(HAVE_GAS_WEAK)
gcc_cv_as_weak="yes"
fi
rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
fi
+if test x"$gcc_cv_as_weak" = xyes; then
+ AC_DEFINE(HAVE_GAS_WEAK, 1, [Define if your assembler supports .weak.])
+fi
AC_MSG_RESULT($gcc_cv_as_weak)
AC_MSG_CHECKING(assembler hidden support)
gcc_cv_as_hidden=
-if test x$gcc_cv_as != x; then
+if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
+ if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
+ gcc_cv_as_hidden="yes"
+ fi
+elif test x$gcc_cv_as != x; then
# Check if we have .hidden
echo " .hidden foobar" > conftest.s
echo "foobar:" >> conftest.s
if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
- AC_DEFINE(HAVE_GAS_HIDDEN)
gcc_cv_as_hidden="yes"
fi
rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
fi
+if test x"$gcc_cv_as_hidden" = xyes; then
+ AC_DEFINE(HAVE_GAS_HIDDEN, 1,
+ [Define if your assembler supports .hidden.])
+fi
AC_MSG_RESULT($gcc_cv_as_hidden)
case "$target" in
fi
])
if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
- AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP)
+ AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
+ [Define if your assembler supports .register.])
+ fi
+
+ AC_CACHE_CHECK([assembler supports -relax],
+ gcc_cv_as_relax_opt, [
+ gcc_cv_as_relax_opt=unknown
+ if test x$gcc_cv_as != x; then
+ # Check if gas supports -relax
+ echo ".text" > conftest.s
+ if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
+ gcc_cv_as_relax_opt=yes
+ else
+ gcc_cv_as_relax_opt=no
+ fi
+ rm -f conftest.s conftest.o
+ fi
+ ])
+ if test "x$gcc_cv_as_relax_opt" = xyes; then
+ AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
+ [Define if your assembler supports -relax option.])
fi
case "$tm_file" in
dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
changequote([, ])
else
- AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64")
+ AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
+ [Define if the assembler supports 64bit sparc.])
fi
;;
*) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
fi
])
if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
- AC_DEFINE(HAVE_AS_OFFSETABLE_LO10)
+ AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
+ [Define if your assembler supports offsetable %lo().])
fi
fi
;;
changequote([,])dnl
AC_MSG_CHECKING(assembler instructions)
gcc_cv_as_instructions=
- if test x$gcc_cv_as != x; then
+ if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
+ if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
+ gcc_cv_as_instructions="filds fists"
+ fi
+ elif test x$gcc_cv_as != x; then
set "filds fists" "filds mem; fists mem"
while test $# -gt 0
do
echo "$2" > conftest.s
if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
- AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
fi
shift 2
done
rm -f conftest.s conftest.o
fi
+ if test x"$gcc_cv_as_instructions" != x; then
+ AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$gcc_cv_as_instructions" | tr '[a-z ]' '[A-Z_]'`)
+ fi
AC_MSG_RESULT($gcc_cv_as_instructions)
;;
esac
else
enable_languages=all
fi
+else
+ if test x"${enable_languages}" = x; then
+ AC_MSG_ERROR([--enable-languages needs at least one argument])
+ fi
fi
subdirs=
for lang in ${srcdir}/*/config-lang.in ..
AC_SUBST(GGC)
echo "Using $GGC for garbage collection."
+# Use the system's zlib library.
+zlibdir=-L../../zlib
+zlibinc="-I\$(srcdir)/../../zlib"
+AC_ARG_WITH(system-zlib,
+[ --with-system-zlib use installed libz],
+zlibdir=
+zlibinc=
+)
+AC_SUBST(zlibdir)
+AC_SUBST(zlibinc)
+
# 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)
+[AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
+ [Define if you want to always select the new-abi for g++.])
GXX_ABI_FLAG='-fnew-abi'
echo "Building a new-abi g++ compiler."
])
AC_ARG_ENABLE(libstdcxx-v3,
[ --enable-libstdcxx-v3
enable libstdc++-v3 for building and installation],
- [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
+ [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=no])
if test x$enable_libstdcxx_v3 = xyes; then
AC_MSG_RESULT(v3)
- AC_DEFINE(ENABLE_STD_NAMESPACE)
+ ac_esn=1
else
AC_MSG_RESULT(v2)
+ ac_esn=0
fi
+AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
+ [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
+
+dnl Very limited version of automake's enable-maintainer-mode
+AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
+ dnl maintainer-mode is disabled by default
+ AC_ARG_ENABLE(maintainer-mode,
+[ --enable-maintainer-mode enable make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer],
+ maintainer_mode=$enableval,
+ maintainer_mode=no)
+
+AC_MSG_RESULT($maintainer_mode)
+
+if test "$maintainer_mode" = "yes"; then
+ MAINT=''
+else
+ MAINT='#'
+fi
+AC_SUBST(MAINT)dnl
# 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.
all_compilers=
all_stagestuff=
all_diff_excludes=
-all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug'
+all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
# List of language makefile fragments.
all_lang_makefiles=
all_headers=
AC_SUBST(host_canonical)
AC_SUBST(target_subdir)
-# 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 test x$with_newlib = xyes; then
- inhibit_libc=-Dinhibit_libc
-fi
-AC_SUBST(inhibit_libc)
-
# If $(exec_prefix) exists and is not the same as $(prefix), then compute an
# absolute path for gcc_tooldir based on inserting the number of up-directory
# movements required to get from $(exec_prefix) to $(prefix) into the basic