aboutsummaryrefslogtreecommitdiff
path: root/libf2c/configure.in
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-02-22 12:36:33 -0700
committerJeff Law <law@gcc.gnu.org>1998-02-22 12:36:33 -0700
commit56a0044b23379c1b4129f7d97d4abb444f3df175 (patch)
tree896df8a7767510a09f2791565643d25b1dc6ef2f /libf2c/configure.in
parent86fc7a6c5d2fc7f9a5daa5e48f94cbfb87ca6db1 (diff)
downloadgcc-56a0044b23379c1b4129f7d97d4abb444f3df175.zip
gcc-56a0044b23379c1b4129f7d97d4abb444f3df175.tar.gz
gcc-56a0044b23379c1b4129f7d97d4abb444f3df175.tar.bz2
Another bunch of patches from Craig. See ChangeLogs for details.
From-SVN: r18188
Diffstat (limited to 'libf2c/configure.in')
-rw-r--r--libf2c/configure.in13
1 files changed, 9 insertions, 4 deletions
diff --git a/libf2c/configure.in b/libf2c/configure.in
index 6bd6518..f5b127e 100644
--- a/libf2c/configure.in
+++ b/libf2c/configure.in
@@ -23,15 +23,20 @@ AC_INIT(libF77/Version.c)
AC_REVISION(1.10)
-dnl Checks for programs.
-# For g77 we'll set CC to point at the built gcc, but this will get it into
-# the makefiles
-AC_PROG_CC
dnl AC_C_CROSS
dnl Gives misleading `(cached)' message from the check.
if test "$CROSS";then
+ if test "$CC_FOR_TARGET"; then
+ CC="$CC_FOR_TARGET"
+ else
+ CC="../../xgcc -B../../xgcc/"
+ fi
ac_cv_c_cross=yes
else
+ dnl Checks for programs.
+ # For g77 we'll set CC to point at the built gcc, but this will get it into
+ # the makefiles
+ AC_PROG_CC
ac_cv_c_cross=no
fi