aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-06 00:02:00 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-06 00:02:00 +0000
commit4c2e4d0e014910abda6675ca82021cd735bf7199 (patch)
treefd52c8a2d05968c5c93689cc2e37f99d00e924e9 /bfd
parente881afb8ba9aecfcdba459844388d682a64ac01b (diff)
downloadgdb-4c2e4d0e014910abda6675ca82021cd735bf7199.zip
gdb-4c2e4d0e014910abda6675ca82021cd735bf7199.tar.gz
gdb-4c2e4d0e014910abda6675ca82021cd735bf7199.tar.bz2
* aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
* configure: Rebuild.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/aclocal.m42
-rwxr-xr-xbfd/configure2
3 files changed, 5 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 3d6d1f3..e8f9f72 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,8 @@
Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
+ * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
+ * configure: Rebuild.
+
* coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
a global symbol.
diff --git a/bfd/aclocal.m4 b/bfd/aclocal.m4
index dabc963..f08dd35 100644
--- a/bfd/aclocal.m4
+++ b/bfd/aclocal.m4
@@ -14,7 +14,7 @@ dnl The ugly bit...
dnl
AC_MSG_CHECKING([for CC])
dnl Don't bother with cache.
-test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
+test -z "$CC" && test -r ../Makefile && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
test -z "$CC" && CC=cc
AC_MSG_RESULT(setting CC to $CC)
AC_SUBST(CC)
diff --git a/bfd/configure b/bfd/configure
index ca119e0..ac19834 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -562,7 +562,7 @@ HDEFINES=
. ${srcdir}/configure.host
echo $ac_n "checking for CC""... $ac_c" 1>&6
-test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
+test -z "$CC" && test -r ../Makefile && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
test -z "$CC" && CC=cc
echo "$ac_t""setting CC to $CC" 1>&6