This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to update top-level config to autoconf 2.59


Here is my final patch to update autoconf in the src tree.  All subtrees
have been updated to be configured by autoconf 2.59 and this patch
updates the top level configure and Makefiles to also use 2.59.  The
only real change needed was to rename AS_FOR_TARGET to GAS_FOR_TARGET.
I also changed COMPILER_AS_FOR_TARGET to COMPILER_GAS_FOR_TARGET, though
that wasn't strictly necessary, it just seemed like a good idea to
maintain the naming consistency.

Tested on IA64 HP-UX.  OK for checkin?

Steve Ellcey
sje@cup.hp.com



2006-08-10  Steve Ellcey  <sje@cup.hp.com>

	* configure.in: Fix for autoconf 2.59.
	* Makefile.tpl: Ditto.
	* Makefile.def: Ditto.
	* configure: Regenerate.
	* Makefile.in: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/configure.in,v
retrieving revision 1.315
diff -c -r1.315 configure.in
*** configure.in	25 Jul 2006 08:39:57 -0000	1.315
--- configure.in	10 Aug 2006 18:22:10 -0000
***************
*** 21,27 ****
  sinclude(config/acx.m4)
  
  AC_INIT(move-if-change)
! AC_PREREQ(2.13)
  AC_CANONICAL_SYSTEM
  AC_ARG_PROGRAM
  
--- 21,27 ----
  sinclude(config/acx.m4)
  
  AC_INIT(move-if-change)
! AC_PREREQ(2.59)
  AC_CANONICAL_SYSTEM
  AC_ARG_PROGRAM
  
***************
*** 2296,2302 ****
  NCN_STRICT_CHECK_TARGET_TOOLS(GFORTRAN_FOR_TARGET, gfortran)
  
  ACX_CHECK_INSTALLED_TARGET_TOOL(AR_FOR_TARGET, ar)
! ACX_CHECK_INSTALLED_TARGET_TOOL(AS_FOR_TARGET, as)
  ACX_CHECK_INSTALLED_TARGET_TOOL(DLLTOOL_FOR_TARGET, dlltool)
  ACX_CHECK_INSTALLED_TARGET_TOOL(LD_FOR_TARGET, ld)
  ACX_CHECK_INSTALLED_TARGET_TOOL(LIPO_FOR_TARGET, lipo)
--- 2296,2302 ----
  NCN_STRICT_CHECK_TARGET_TOOLS(GFORTRAN_FOR_TARGET, gfortran)
  
  ACX_CHECK_INSTALLED_TARGET_TOOL(AR_FOR_TARGET, ar)
! ACX_CHECK_INSTALLED_TARGET_TOOL(GAS_FOR_TARGET, as)
  ACX_CHECK_INSTALLED_TARGET_TOOL(DLLTOOL_FOR_TARGET, dlltool)
  ACX_CHECK_INSTALLED_TARGET_TOOL(LD_FOR_TARGET, ld)
  ACX_CHECK_INSTALLED_TARGET_TOOL(LIPO_FOR_TARGET, lipo)
***************
*** 2309,2315 ****
  RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
  
  GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar])
! GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new])
  GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/])
  GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX,
  		[gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs],
--- 2309,2315 ----
  RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
  
  GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar])
! GCC_TARGET_TOOL(as, GAS_FOR_TARGET, AS, [gas/as-new])
  GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/])
  GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX,
  		[gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs],
***************
*** 2341,2360 ****
  
  # When building target libraries, except in a Canadian cross, we use
  # the same toolchain as the compiler we just built.
! COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
  COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
  COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
  if test $host = $build; then
    case " $configdirs " in
      *" gcc "*)
!       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
        COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
        COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
        ;;
    esac
  fi
  
! AC_SUBST(COMPILER_AS_FOR_TARGET)
  AC_SUBST(COMPILER_LD_FOR_TARGET)
  AC_SUBST(COMPILER_NM_FOR_TARGET)
  
--- 2341,2360 ----
  
  # When building target libraries, except in a Canadian cross, we use
  # the same toolchain as the compiler we just built.
! COMPILER_GAS_FOR_TARGET='$(GAS_FOR_TARGET)'
  COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
  COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
  if test $host = $build; then
    case " $configdirs " in
      *" gcc "*)
!       COMPILER_GAS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
        COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
        COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
        ;;
    esac
  fi
  
! AC_SUBST(COMPILER_GAS_FOR_TARGET)
  AC_SUBST(COMPILER_LD_FOR_TARGET)
  AC_SUBST(COMPILER_NM_FOR_TARGET)
  
Index: Makefile.tpl
===================================================================
RCS file: /cvs/src/src/Makefile.tpl,v
retrieving revision 1.164
diff -c -r1.164 Makefile.tpl
*** Makefile.tpl	19 Jul 2006 17:06:06 -0000	1.164
--- Makefile.tpl	10 Aug 2006 18:22:10 -0000
***************
*** 158,164 ****
  	OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
  	OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
  	AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
! 	AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
  	GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
  	LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
  	NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
--- 158,164 ----
  	OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
  	OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
  	AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
! 	GAS_FOR_TARGET="$(GAS_FOR_TARGET)"; export GAS_FOR_TARGET; \
  	GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
  	LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
  	NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
***************
*** 194,200 ****
  BASE_TARGET_EXPORTS = \
  	$(BASE_EXPORTS) \
  	AR="$(AR_FOR_TARGET)"; export AR; \
! 	AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
  	CC="$(CC_FOR_TARGET)"; export CC; \
  	CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
  	CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
--- 194,200 ----
  BASE_TARGET_EXPORTS = \
  	$(BASE_EXPORTS) \
  	AR="$(AR_FOR_TARGET)"; export AR; \
! 	AS="$(COMPILER_GAS_FOR_TARGET)"; export AS; \
  	CC="$(CC_FOR_TARGET)"; export CC; \
  	CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
  	CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
***************
*** 304,310 ****
  FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
  
  AR_FOR_TARGET=@AR_FOR_TARGET@
! AS_FOR_TARGET=@AS_FOR_TARGET@
  CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
  
  # If GCC_FOR_TARGET is not overriden on the command line, then this
--- 304,310 ----
  FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
  
  AR_FOR_TARGET=@AR_FOR_TARGET@
! GAS_FOR_TARGET=@GAS_FOR_TARGET@
  CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
  
  # If GCC_FOR_TARGET is not overriden on the command line, then this
***************
*** 326,332 ****
  STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
  WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
  
! COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
  COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
  COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
  
--- 326,332 ----
  STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
  WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
  
! COMPILER_GAS_FOR_TARGET=@COMPILER_GAS_FOR_TARGET@
  COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
  COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
  
***************
*** 434,440 ****
  # COMPILER_ prefixed variables are not passed down so we expand them here.
  EXTRA_TARGET_FLAGS = \
  	'AR=$$(AR_FOR_TARGET)' \
! 	'AS=$(COMPILER_AS_FOR_TARGET)' \
  	'CC=$$(CC_FOR_TARGET)' \
  	'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
  	'CXX=$$(CXX_FOR_TARGET)' \
--- 434,440 ----
  # COMPILER_ prefixed variables are not passed down so we expand them here.
  EXTRA_TARGET_FLAGS = \
  	'AR=$$(AR_FOR_TARGET)' \
! 	'AS=$(COMPILER_GAS_FOR_TARGET)' \
  	'CC=$$(CC_FOR_TARGET)' \
  	'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
  	'CXX=$$(CXX_FOR_TARGET)' \
Index: Makefile.def
===================================================================
RCS file: /cvs/src/src/Makefile.def,v
retrieving revision 1.70
diff -c -r1.70 Makefile.def
*** Makefile.def	17 Jul 2006 17:04:21 -0000	1.70
--- Makefile.def	10 Aug 2006 18:22:10 -0000
***************
*** 227,233 ****
  
  // Target tools
  flags_to_pass = { flag= AR_FOR_TARGET ; };
! flags_to_pass = { flag= AS_FOR_TARGET ; };
  flags_to_pass = { flag= CC_FOR_TARGET ; };
  flags_to_pass = { flag= CFLAGS_FOR_TARGET ; };
  flags_to_pass = { flag= CPPFLAGS_FOR_TARGET ; };
--- 227,233 ----
  
  // Target tools
  flags_to_pass = { flag= AR_FOR_TARGET ; };
! flags_to_pass = { flag= GAS_FOR_TARGET ; };
  flags_to_pass = { flag= CC_FOR_TARGET ; };
  flags_to_pass = { flag= CFLAGS_FOR_TARGET ; };
  flags_to_pass = { flag= CPPFLAGS_FOR_TARGET ; };


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]