diff options
author | cgd <cgd@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-29 22:07:27 +0000 |
---|---|---|
committer | cgd <cgd@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-29 22:07:27 +0000 |
commit | b3eecb6c12e1c236a33074b9e5c80c253f5500ba (patch) | |
tree | bc96f85cd11de9c19f512f74bdd5fd6be3ea90b1 /gcc/configure | |
parent | 4f97537bdfd2f7388b8da7e009de5a43537e949f (diff) | |
download | gcc-b3eecb6c12e1c236a33074b9e5c80c253f5500ba.tar.gz |
2002-07-29 Chris Demetriou <cgd@broadcom.com>
* configure.in (mips*-*-*): Add a test to see if MIPS libgloss
linker scripts use STARTUP directives consistently.
* configure: Regenerate.
* config.in: Regenerate.
* config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
* config/mips/elf64.h (STARTFILE_SPEC): Likewise.
* config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
will be the same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55851 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/gcc/configure b/gcc/configure index e980e137e80..6c7824d8557 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7917,6 +7917,39 @@ EOF fi echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6 +# Miscellaneous target-specific checks. +case "$target" in + mips*-*-*) + echo $ac_n "checking whether libgloss uses STARTUP directives consistently""... $ac_c" 1>&6 +echo "configure:7925: checking whether libgloss uses STARTUP directives consistently" >&5 + gcc_cv_mips_libgloss_startup=no + gcc_cv_libgloss_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss + if test "x$exec_prefix" = xNONE; then + if test "x$prefix" = xNONE; then + test_prefix=/usr/local + else + test_prefix=$prefix + fi + else + test_prefix=$exec_prefix + fi + for f in $gcc_cv_libgloss_srcdir/mips/idt.ld $test_prefix/$target_alias/lib/idt.ld + do + if grep '^STARTUP' $f > /dev/null 2>&1; then + gcc_cv_mips_libgloss_startup=yes + break + fi + done + if test x"$gcc_cv_mips_libgloss_startup" = xyes; then + cat >> confdefs.h <<\EOF +#define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1 +EOF + + fi + echo "$ac_t""$gcc_cv_mips_libgloss_startup" 1>&6 + ;; +esac + if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then cat >> confdefs.h <<EOF #define PREFIX_INCLUDE_DIR "$prefix/include" @@ -8092,7 +8125,7 @@ fi echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:8096: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo "configure:8129: checking whether to enable maintainer-specific portions of Makefiles" >&5 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" |