From 01ec6c0c4cc6668ea060e8486724ad01fe403624 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 24 May 2001 19:58:35 +0000 Subject: 2001-05-15 Ralf Corsepius * configure.in: Remove AC_EXEEXT, treat .exe manually. * gccnewlib/base-gcc.add: Remove cpp. * gccnewlib/gccnewlib.add: mv cpp $target_alias-cpp, update copyright. --- scripts/configure.in | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'scripts/configure.in') diff --git a/scripts/configure.in b/scripts/configure.in index af2b918ecf..f2f2cd0cb9 100644 --- a/scripts/configure.in +++ b/scripts/configure.in @@ -2,9 +2,19 @@ AC_INIT(binutils) -AM_INIT_AUTOMAKE(rtems-scripts,20000610-0,no) +AM_INIT_AUTOMAKE(rtems-scripts,20010516,no) -AC_EXEEXT +AC_CANONICAL_HOST + +# Check for .exe suffix. +# With autoconf > 2.13 AC_EXEEXT is not what we want to use. +AC_MSG_CHECKING([for executable suffix]) +case "$host" in +i?86-*cygwin*) + EXEEXT=.exe ;; +esac +AC_SUBST(EXEEXT) +AC_MSG_RESULT([$EXEEXT]) test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache . ./setup.cache @@ -32,13 +42,11 @@ fi AC_MSG_RESULT($RPM_SPECSdir) AC_SUBST(RPM_SPECSdir) -AC_CANONICAL_HOST - AC_MSG_CHECKING(for RPM CPU type) -case "${host}" in - i[[34567]]86-*linux*) RPM_CPU=i386 ;; - i[[34567]]86-pc-cygwin*) RPM_CPU=i386 ;; - sparc-sun-solaris*) RPM_CPU=sparc ;; +case "$host" in + i?86-*linux*) RPM_CPU=i386 ;; + i?86-*cygwin*) RPM_CPU=i386 ;; + sparc-sun-solaris*) RPM_CPU=sparc ;; *) AC_MSG_ERROR([RPM CPU for ${host} is unknown]) ;; -- cgit v1.2.3