From bb74d931d6ded15b7bb587d1cc2e168cb91193f3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 25 Mar 1996 08:09:03 +0000 Subject: After CC tool check, invoke AC_PROG_CC to set default CFLAGS and test for GCC. Barf if not GCC. --- configure.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 7603efca..dc5039d4 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_REVISION([$Id: configure.in,v 1.2 1995/09/21 23:07:35 roland Exp $]) +AC_REVISION([$Id: configure.in,v 1.3 1996/03/25 08:09:03 roland Exp $]) AC_PREREQ(2.4) dnl Minimum Autoconf version required. AC_INIT(hurd/hurd_types.h) dnl A distinctive file to look for in srcdir. @@ -12,7 +12,16 @@ gnu*) ;; esac AC_PROG_INSTALL + AC_CHECK_TOOL(CC, gcc) +# That check handles cross-compilation well, but AC_PROG_CC tests for GCC +# and sets default CFLAGS nicely for us, so do that too. +AC_PROG_CC +# Require GCC. +if test x$GCC != xyes; then + AC_MSG_ERROR([this code uses GNU C extensions, you must compile with GCC]) +fi + AC_CHECK_TOOL(LD, ld) AC_CHECK_TOOL(OBJCOPY, objcopy) AC_CHECK_TOOL(AR, ar) -- cgit v1.2.3