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],
+ 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_rtl_checking=1 ;;
+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
done
;;
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
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.],
gcc_AC_C_LONG_DOUBLE
-AC_MSG_CHECKING(whether ${CC-cc} accepts -Wno-long-long)
-echo 'void f(){}' > conftest.c
-if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_no_long_long=yes
-else
- ac_cv_prog_cc_no_long_long=no
-fi
-rm -f conftest*
-echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
+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
AC_MSG_RESULT(no)
fi
+AC_C_INLINE
+
# Find some useful tools
AC_PROG_AWK
AC_PROG_LEX
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
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"
- fi
+ ;;
+ esac
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
;;
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"
;;
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"
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
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"
[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
*64*)
AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
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.