aboutsummaryrefslogtreecommitdiff
path: root/libchill/configure.in
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-24 21:46:18 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-24 21:46:18 +0000
commitc266290f972e237c1e6836fe661b75e39f3928c0 (patch)
treebab95c7874bc0e1d427accbdf238f6f4380a0f98 /libchill/configure.in
parentbb140690505d7204cf16454f09f5fd67ecd2073f (diff)
* configure.in (AC_PREREQ): Update to 2.13. (AC_EXEEXT): Call to find possible file extension. (compiler_name): Use. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25953 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libchill/configure.in')
-rw-r--r--libchill/configure.in44
1 files changed, 26 insertions, 18 deletions
diff --git a/libchill/configure.in b/libchill/configure.in
index afb9f67464e..ff5e62b3202 100644
--- a/libchill/configure.in
+++ b/libchill/configure.in
@@ -1,5 +1,5 @@
# Process this file with autoconf to produce a configure script.
-# Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
# Contributed by Dave Love (d.love@dl.ac.uk).
#
#This file is part of GNU CC.
@@ -19,7 +19,7 @@
#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#02111-1307, USA.
-AC_PREREQ(2.12.1)
+AC_PREREQ(2.13)
AC_INIT(chillrt0.c)
if test "${srcdir}" = "." ; then
@@ -35,29 +35,37 @@ dnl This is needed for a multilibbed build in the source tree so
dnl that install-sh and config.sub get found.
AC_CONFIG_AUX_DIR($topsrcdir)
-# If the language specific compiler does not exist, but the "gcc" directory does,
-# we do not build anything. Note, $r is set by the top-level Makefile.
+# We have to handle 3 cases -- native, cross and canadian cross -- and
+# the extension returned from this macro needs to be treated as a possible
+# scenario and not the only one.
+AC_EXEEXT
+
+# If the language specific compiler does not exist, but the "gcc" directory
+# does, we do not build anything. Note, $r is set by the top-level Makefile.
+# Note that when we look for the compiler, we search both with and without
+# extension to handle cross and canadian cross builds.
compiler_name=cc1chill
rm -f skip-this-dir
AC_MSG_CHECKING(if compiler $compiler_name has been built)
AC_CACHE_VAL(chill_cv_compiler_exists,
- [chill_cv_compiler_exists=yes
- if test -n "$r"; then
- if test -d "$r"/gcc; then
- if test -f "$r"/gcc/$compiler_name; then
- true
- else
- chill_cv_compiler_exists=no
- echo "rm -f config.cache config.log multilib.out" > skip-this-dir
- fi
- fi
- fi
- ])
+[chill_cv_compiler_exists=yes
+if test -n "$r"; then
+ if test -d "$r"/gcc; then
+ if test -f "$r"/gcc/$compiler_name \
+ || test -f "$r"/gcc/$compiler_name$EXEEXT; then
+ true
+ else
+ chill_cv_compiler_exists=no
+ echo "rm -f config.cache config.log multilib.out" > skip-this-dir
+ fi
+ fi
+fi
+])
AC_MSG_RESULT($chill_cv_compiler_exists)
if test x$chill_cv_compiler_exists = xno
then
- rm -f Makefile conftest* confdefs* core
- exit 0
+ rm -f Makefile conftest* confdefs* core
+ exit 0
fi
dnl Checks for programs.