Commit caa55b1e by Nathanael Nerode

Makefile.in, [...]: Replace uses of ${target_alias} for directory names (and other places which...

	* Makefile.in, configure.in, config.host, mkheaders.in: Replace
	uses of ${target_alias} for directory names (and other places which
	won't like the empty string) with ${target_noncanonical}.  Introduce
	call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
	available.
	* configure: Regenerate.

From-SVN: r72457
parent 4d4f9f19
2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.in, configure.in, config.host, mkheaders.in: Replace
uses of ${target_alias} for directory names (and other places which
won't like the empty string) with ${target_noncanonical}. Introduce
call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
available.
* configure: Regenerate.
2003-10-13 Ian Lance Taylor <ian@wasabisystems.com> 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
* config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern. * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
......
...@@ -62,7 +62,7 @@ VPATH = @srcdir@ ...@@ -62,7 +62,7 @@ VPATH = @srcdir@
build=@build@ build=@build@
host=@host@ host=@host@
target=@target@ target=@target@
target_alias=@target_alias@ target_noncanonical=@target_noncanonical@
# Sed command to transform gcc to installed name. # Sed command to transform gcc to installed name.
program_transform_name = @program_transform_name@ program_transform_name = @program_transform_name@
...@@ -396,9 +396,9 @@ libexecdir = @libexecdir@ ...@@ -396,9 +396,9 @@ libexecdir = @libexecdir@
# -------- # --------
# Directory in which the compiler finds libraries etc. # Directory in which the compiler finds libraries etc.
libsubdir = $(libdir)/gcc/$(target_alias)/$(version) libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(version)
# Directory in which the compiler finds executables # Directory in which the compiler finds executables
libexecsubdir = $(libexecdir)/gcc/$(target_alias)/$(version) libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(version)
# Used to produce a relative $(gcc_tooldir) in gcc.o # Used to produce a relative $(gcc_tooldir) in gcc.o
unlibsubdir = ../../.. unlibsubdir = ../../..
# Directory in which to find other cross-compilation tools and headers. # Directory in which to find other cross-compilation tools and headers.
...@@ -408,7 +408,7 @@ gcc_tooldir = @gcc_tooldir@ ...@@ -408,7 +408,7 @@ gcc_tooldir = @gcc_tooldir@
# Used to install the shared libgcc. # Used to install the shared libgcc.
slibdir = @slibdir@ slibdir = @slibdir@
# Since gcc_tooldir does not exist at build-time, use -B$(build_tooldir)/bin/ # Since gcc_tooldir does not exist at build-time, use -B$(build_tooldir)/bin/
build_tooldir = $(exec_prefix)/$(target_alias) build_tooldir = $(exec_prefix)/$(target_noncanonical)
# Directory in which the compiler finds target-independent g++ includes. # Directory in which the compiler finds target-independent g++ includes.
gcc_gxx_include_dir = @gcc_gxx_include_dir@ gcc_gxx_include_dir = @gcc_gxx_include_dir@
# Directory to search for site-specific includes. # Directory to search for site-specific includes.
...@@ -570,7 +570,7 @@ BUILD_CPPFLAGS=$(ALL_CPPFLAGS) ...@@ -570,7 +570,7 @@ BUILD_CPPFLAGS=$(ALL_CPPFLAGS)
# Actual name to use when installing a native compiler. # Actual name to use when installing a native compiler.
GCC_INSTALL_NAME = `echo gcc|sed '$(program_transform_name)'` GCC_INSTALL_NAME = `echo gcc|sed '$(program_transform_name)'`
GCC_TARGET_INSTALL_NAME = $(target_alias)-`echo gcc|sed '$(program_transform_name)'` GCC_TARGET_INSTALL_NAME = $(target_noncanonical)-`echo gcc|sed '$(program_transform_name)'`
CPP_INSTALL_NAME = `echo cpp|sed '$(program_transform_name)'` CPP_INSTALL_NAME = `echo cpp|sed '$(program_transform_name)'`
PROTOIZE_INSTALL_NAME = `echo protoize|sed '$(program_transform_name)'` PROTOIZE_INSTALL_NAME = `echo protoize|sed '$(program_transform_name)'`
UNPROTOIZE_INSTALL_NAME = `echo unprotoize|sed '$(program_transform_name)'` UNPROTOIZE_INSTALL_NAME = `echo unprotoize|sed '$(program_transform_name)'`
...@@ -1316,7 +1316,7 @@ collect2$(exeext): $(COLLECT2_OBJS) $(LIBDEPS) ...@@ -1316,7 +1316,7 @@ collect2$(exeext): $(COLLECT2_OBJS) $(LIBDEPS)
collect2.o : collect2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) gstab.h intl.h \ collect2.o : collect2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) gstab.h intl.h \
$(OBSTACK_H) $(DEMANGLE_H) collect2.h version.h $(OBSTACK_H) $(DEMANGLE_H) collect2.h version.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-DTARGET_MACHINE=\"$(target_alias)\" \ -DTARGET_MACHINE=\"$(target_noncanonical)\" \
-c $(srcdir)/collect2.c $(OUTPUT_OPTION) -c $(srcdir)/collect2.c $(OUTPUT_OPTION)
tlink.o: tlink.c $(DEMANGLE_H) $(HASHTAB_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ tlink.o: tlink.c $(DEMANGLE_H) $(HASHTAB_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
...@@ -1369,7 +1369,7 @@ DRIVER_DEFINES = \ ...@@ -1369,7 +1369,7 @@ DRIVER_DEFINES = \
-DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \ -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
-DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \ -DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \
-DDEFAULT_TARGET_VERSION=\"$(version)\" \ -DDEFAULT_TARGET_VERSION=\"$(version)\" \
-DDEFAULT_TARGET_MACHINE=\"$(target_alias)\" \ -DDEFAULT_TARGET_MACHINE=\"$(target_noncanonical)\" \
-DSTANDARD_BINDIR_PREFIX=\"$(bindir)/\" \ -DSTANDARD_BINDIR_PREFIX=\"$(bindir)/\" \
-DTOOLDIR_BASE_PREFIX=\"$(unlibsubdir)/../\" \ -DTOOLDIR_BASE_PREFIX=\"$(unlibsubdir)/../\" \
@TARGET_SYSTEM_ROOT_DEFINE@ \ @TARGET_SYSTEM_ROOT_DEFINE@ \
...@@ -1504,7 +1504,7 @@ toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_ ...@@ -1504,7 +1504,7 @@ toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_
langhooks.h insn-flags.h cfglayout.h real.h cfgloop.h \ langhooks.h insn-flags.h cfglayout.h real.h cfgloop.h \
hosthooks.h $(LANGHOOKS_DEF_H) cgraph.h $(COVERAGE_H) hosthooks.h $(LANGHOOKS_DEF_H) cgraph.h $(COVERAGE_H)
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-DTARGET_NAME=\"$(target_alias)\" \ -DTARGET_NAME=\"$(target_noncanonical)\" \
-c $(srcdir)/toplev.c $(OUTPUT_OPTION) -c $(srcdir)/toplev.c $(OUTPUT_OPTION)
main.o : main.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) toplev.h main.o : main.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) toplev.h
...@@ -1839,7 +1839,7 @@ libbackend.o : $(OBJS-common:.o=.c) $(out_file) \ ...@@ -1839,7 +1839,7 @@ libbackend.o : $(OBJS-common:.o=.c) $(out_file) \
insn-config.h insn-flags.h insn-codes.h insn-constants.h \ insn-config.h insn-flags.h insn-codes.h insn-constants.h \
insn-attr.h insn-attr.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-DTARGET_NAME=\"$(target_alias)\" \ -DTARGET_NAME=\"$(target_noncanonical)\" \
-DLOCALEDIR=\"$(localedir)\" \ -DLOCALEDIR=\"$(localedir)\" \
-c $(filter %.c,$^) -o $@ -c $(filter %.c,$^) -o $@
...@@ -2313,7 +2313,7 @@ po-generated: $(parsedir)/c-parse.c options.c ...@@ -2313,7 +2313,7 @@ po-generated: $(parsedir)/c-parse.c options.c
PREPROCESSOR_DEFINES = \ PREPROCESSOR_DEFINES = \
-DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
-DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \
-DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/$(target_alias)\" \ -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/$(target_noncanonical)\" \
-DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/backward\" \ -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/backward\" \
-DLOCAL_INCLUDE_DIR=\"$(local_includedir)\" \ -DLOCAL_INCLUDE_DIR=\"$(local_includedir)\" \
-DCROSS_INCLUDE_DIR=\"$(CROSS_SYSTEM_HEADER_DIR)\" \ -DCROSS_INCLUDE_DIR=\"$(CROSS_SYSTEM_HEADER_DIR)\" \
...@@ -2930,16 +2930,16 @@ install-common: native $(EXTRA_PARTS) lang.install-common installdirs ...@@ -2930,16 +2930,16 @@ install-common: native $(EXTRA_PARTS) lang.install-common installdirs
fi fi
$(INSTALL_SCRIPT) gccbug $(DESTDIR)$(bindir)/$(GCCBUG_INSTALL_NAME) $(INSTALL_SCRIPT) gccbug $(DESTDIR)$(bindir)/$(GCCBUG_INSTALL_NAME)
# Install the driver program as $(target_alias)-gcc, # Install the driver program as $(target_noncanonical)-gcc,
# $(target_alias)-gcc-$(version) # $(target_noncanonical)-gcc-$(version)
# and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc. # and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc.
install-driver: installdirs xgcc$(exeext) install-driver: installdirs xgcc$(exeext)
-if [ -f gcc-cross$(exeext) ] ; then \ -if [ -f gcc-cross$(exeext) ] ; then \
rm -f $(DESTDIR)$(bindir)/$(GCC_CROSS_NAME)$(exeext); \ rm -f $(DESTDIR)$(bindir)/$(GCC_CROSS_NAME)$(exeext); \
$(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(bindir)/$(GCC_CROSS_NAME)$(exeext); \ $(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(bindir)/$(GCC_CROSS_NAME)$(exeext); \
rm -f $(DESTDIR)$(bindir)/$(target_alias)-gcc-$(version); \ rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version); \
( cd $(DESTDIR)$(bindir) && \ ( cd $(DESTDIR)$(bindir) && \
$(LN) $(GCC_CROSS_NAME)$(exeext) $(target_alias)-gcc-$(version) ); \ $(LN) $(GCC_CROSS_NAME)$(exeext) $(target_noncanonical)-gcc-$(version) ); \
if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \ if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \ rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
$(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \ $(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
...@@ -2947,13 +2947,13 @@ install-driver: installdirs xgcc$(exeext) ...@@ -2947,13 +2947,13 @@ install-driver: installdirs xgcc$(exeext)
else \ else \
rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext); \ rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext); \ $(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
rm -f $(DESTDIR)$(bindir)/$(target_alias)-gcc-$(version); \ rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version); \
( cd $(DESTDIR)$(bindir) && \ ( cd $(DESTDIR)$(bindir) && \
$(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_alias)-gcc-$(version) ); \ $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version) ); \
rm -f $(DESTDIR)$(bindir)/$(target_alias)-gcc-tmp$(exeext); \ rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-tmp$(exeext); \
( cd $(DESTDIR)$(bindir) && \ ( cd $(DESTDIR)$(bindir) && \
$(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_alias)-gcc-tmp$(exeext) && \ $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-tmp$(exeext) && \
mv -f $(target_alias)-gcc-tmp$(exeext) $(GCC_TARGET_INSTALL_NAME)$(exeext) ); \ mv -f $(target_noncanonical)-gcc-tmp$(exeext) $(GCC_TARGET_INSTALL_NAME)$(exeext) ); \
fi fi
# Install the info files. # Install the info files.
...@@ -3145,7 +3145,6 @@ uninstall: lang.uninstall ...@@ -3145,7 +3145,6 @@ uninstall: lang.uninstall
# These targets are for the dejagnu testsuites. The file site.exp # These targets are for the dejagnu testsuites. The file site.exp
# contains global variables that all the testsuites will use. # contains global variables that all the testsuites will use.
# Set to $(target_alias).
target_subdir = @target_subdir@ target_subdir = @target_subdir@
site.exp: ./config.status Makefile site.exp: ./config.status Makefile
...@@ -3161,7 +3160,7 @@ site.exp: ./config.status Makefile ...@@ -3161,7 +3160,7 @@ site.exp: ./config.status Makefile
@echo "set host_triplet $(host)" >> ./tmp0 @echo "set host_triplet $(host)" >> ./tmp0
@echo "set build_triplet $(build)" >> ./tmp0 @echo "set build_triplet $(build)" >> ./tmp0
@echo "set target_triplet $(target)" >> ./tmp0 @echo "set target_triplet $(target)" >> ./tmp0
@echo "set target_alias $(target_alias)" >> ./tmp0 @echo "set target_alias $(target_noncanonical)" >> ./tmp0
# CFLAGS is set even though it's empty to show we reserve the right to set it. # CFLAGS is set even though it's empty to show we reserve the right to set it.
@echo "set CFLAGS \"\"" >> ./tmp0 @echo "set CFLAGS \"\"" >> ./tmp0
@echo "set CXXFLAGS \"\"" >> ./tmp0 @echo "set CXXFLAGS \"\"" >> ./tmp0
...@@ -3296,7 +3295,7 @@ ${QMTEST_DIR}/context: stamp-qmtest ...@@ -3296,7 +3295,7 @@ ${QMTEST_DIR}/context: stamp-qmtest
echo "CompilerTable.cplusplus_kind=GCC" >> $@ echo "CompilerTable.cplusplus_kind=GCC" >> $@
echo "CompilerTable.cplusplus_path=${objdir}/g++" >> $@ echo "CompilerTable.cplusplus_path=${objdir}/g++" >> $@
echo "CompilerTable.cplusplus_options=-B${objdir}/" >> $@ echo "CompilerTable.cplusplus_options=-B${objdir}/" >> $@
echo "DejaGNUTest.target=${target_alias}" >> $@ echo "DejaGNUTest.target=${target_noncanonical}" >> $@
# Run the G++ testsuite using QMTest. # Run the G++ testsuite using QMTest.
qmtest-g++: ${QMTEST_DIR}/context qmtest-g++: ${QMTEST_DIR}/context
......
...@@ -84,7 +84,7 @@ case ${host} in ...@@ -84,7 +84,7 @@ case ${host} in
host_exeext=.exe host_exeext=.exe
# This removes the cpu type and manufacturer components and # This removes the cpu type and manufacturer components and
# replaces "." with "_" in the operating system version. # replaces "." with "_" in the operating system version.
target_alias=`echo $host | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'` target_noncanonical=`echo $host | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
prefix=/gnu prefix=/gnu
local_prefix=/gnu local_prefix=/gnu
;; ;;
...@@ -120,10 +120,10 @@ case ${host} in ...@@ -120,10 +120,10 @@ case ${host} in
i[34567]86-pc-msdosdjgpp*) i[34567]86-pc-msdosdjgpp*)
host_xm_file=i386/xm-djgpp.h host_xm_file=i386/xm-djgpp.h
host_exeext=.exe host_exeext=.exe
# Shorten $target_alias for 8.3 filename conventions. # Shorten $target_noncanonical for 8.3 filename conventions.
case ${target} in case ${target} in
*pc-msdosdjgpp*) *pc-msdosdjgpp*)
target_alias=djgpp target_noncanonical=djgpp
;; ;;
esac esac
;; ;;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -32,6 +32,9 @@ AC_CONFIG_HEADER(auto-host.h:config.in) ...@@ -32,6 +32,9 @@ AC_CONFIG_HEADER(auto-host.h:config.in)
# Determine the host, build, and target systems # Determine the host, build, and target systems
AC_CANONICAL_SYSTEM AC_CANONICAL_SYSTEM
# Determine the noncanonical target name, for directory use.
_GCC_TOPLEV_NONCANONICAL_TARGET
# Determine the target- and build-specific subdirectories # Determine the target- and build-specific subdirectories
GCC_TOPLEV_SUBDIRS GCC_TOPLEV_SUBDIRS
...@@ -519,7 +522,7 @@ AC_ARG_WITH(sysroot, ...@@ -519,7 +522,7 @@ AC_ARG_WITH(sysroot,
[ --with-sysroot[=DIR] Search for usr/lib, usr/include, et al, within DIR.], [ --with-sysroot[=DIR] Search for usr/lib, usr/include, et al, within DIR.],
[ [
case ${with_sysroot} in case ${with_sysroot} in
yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
*) TARGET_SYSTEM_ROOT=$with_sysroot ;; *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
esac esac
...@@ -1561,12 +1564,12 @@ if test "x$gcc_cv_as" = x; then ...@@ -1561,12 +1564,12 @@ if test "x$gcc_cv_as" = x; then
gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
fi fi
test_dirs="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \ test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
$test_prefix/lib/gcc-lib/$target_alias \ $test_prefix/lib/gcc-lib/$target_noncanonical \
/usr/lib/gcc/$target_alias/$gcc_version \ /usr/lib/gcc/$target_noncanonical/$gcc_version \
/usr/lib/gcc/$target_alias \ /usr/lib/gcc/$target_noncanonical \
$test_prefix/$target_alias/bin/$target_alias/$gcc_version \ $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
$test_prefix/$target_alias/bin" $test_prefix/$target_noncanonical/bin"
if test x$host = x$target; then if test x$host = x$target; then
test_dirs="$test_dirs \ test_dirs="$test_dirs \
...@@ -1677,12 +1680,12 @@ if test "x$gcc_cv_ld" = x; then ...@@ -1677,12 +1680,12 @@ if test "x$gcc_cv_ld" = x; then
gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
fi fi
test_dirs="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \ test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
$test_prefix/lib/gcc-lib/$target_alias \ $test_prefix/lib/gcc-lib/$target_noncanonical \
/usr/lib/gcc/$target_alias/$gcc_version \ /usr/lib/gcc/$target_noncanonical/$gcc_version \
/usr/lib/gcc/$target_alias \ /usr/lib/gcc/$target_noncanonical \
$test_prefix/$target_alias/bin/$target_alias/$gcc_version \ $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
$test_prefix/$target_alias/bin" $test_prefix/$target_noncanonical/bin"
if test x$host = x$target; then if test x$host = x$target; then
test_dirs="$test_dirs \ test_dirs="$test_dirs \
...@@ -2521,7 +2524,7 @@ case "$target" in ...@@ -2521,7 +2524,7 @@ case "$target" in
else else
test_prefix=$exec_prefix test_prefix=$exec_prefix
fi fi
for f in $gcc_cv_libgloss_srcdir/mips/idt.ld $test_prefix/$target_alias/lib/idt.ld for f in $gcc_cv_libgloss_srcdir/mips/idt.ld $test_prefix/$target_noncanonical/lib/idt.ld
do do
if grep '^STARTUP' $f > /dev/null 2>&1; then if grep '^STARTUP' $f > /dev/null 2>&1; then
gcc_cv_mips_libgloss_startup=yes gcc_cv_mips_libgloss_startup=yes
...@@ -2863,7 +2866,7 @@ echo "source ${srcdir}/gdbinit.in" >> .gdbinit ...@@ -2863,7 +2866,7 @@ echo "source ${srcdir}/gdbinit.in" >> .gdbinit
# make and thus we'd get different behavior depending on where we built the # make and thus we'd get different behavior depending on where we built the
# sources. # sources.
if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
else else
changequote(<<, >>)dnl changequote(<<, >>)dnl
# An explanation of the sed strings: # An explanation of the sed strings:
...@@ -2888,7 +2891,7 @@ changequote(<<, >>)dnl ...@@ -2888,7 +2891,7 @@ changequote(<<, >>)dnl
# /foo /foo/bar/ugg ../../ # /foo /foo/bar/ugg ../../
# #
dollar='$$' dollar='$$'
gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
changequote([, ])dnl changequote([, ])dnl
fi fi
AC_SUBST(gcc_tooldir) AC_SUBST(gcc_tooldir)
...@@ -2978,7 +2981,7 @@ AC_SUBST(tm_p_include_list) ...@@ -2978,7 +2981,7 @@ AC_SUBST(tm_p_include_list)
AC_SUBST(xm_file_list) AC_SUBST(xm_file_list)
AC_SUBST(xm_include_list) AC_SUBST(xm_include_list)
AC_SUBST(xm_defines) AC_SUBST(xm_defines)
AC_SUBST(target_alias) AC_SUBST(target_noncanonical)
AC_SUBST(c_target_objs) AC_SUBST(c_target_objs)
AC_SUBST(cxx_target_objs) AC_SUBST(cxx_target_objs)
AC_SUBST(target_cpu_default) AC_SUBST(target_cpu_default)
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# Basic information # Basic information
target=@target@ target=@target@
target_alias=@target_alias@ target_noncanonical=@target_noncanonical@
version=@gcc_version@ version=@gcc_version@
VERBOSE=0 VERBOSE=0
...@@ -66,11 +66,11 @@ exec_prefix=@exec_prefix@ ...@@ -66,11 +66,11 @@ exec_prefix=@exec_prefix@
libdir=@libdir@ libdir=@libdir@
libexecdir=@libexecdir@ libexecdir=@libexecdir@
# Directory in which the compiler finds libraries, etc. # Directory in which the compiler finds libraries, etc.
libsubdir=${libdir}/gcc-lib/${target_alias}/${version} libsubdir=${libdir}/gcc-lib/${target_noncanonical}/${version}
# Directory in which the compiler finds executables # Directory in which the compiler finds executables
libexecsubdir=${libexecdir}/gcc/${target_alias}/${version} libexecsubdir=${libexecdir}/gcc/${target_noncanonical}/${version}
# Since gcc_tooldir does not exist at build-time, use -B${build_tooldir}/bin/ # Since gcc_tooldir does not exist at build-time, use -B${build_tooldir}/bin/
build_tooldir=${exec_prefix}/${target_alias} build_tooldir=${exec_prefix}/${target_noncanonical}
# Directory to search for site-specific includes. # Directory to search for site-specific includes.
local_includedir=${local_prefix}/include local_includedir=${local_prefix}/include
includedir=${prefix}/include includedir=${prefix}/include
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment