This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/29311] toplevel configure script does not test for GNU Make



------- Comment #2 from bkorb at gnu dot org  2008-12-28 23:01 -------
It would seem to me that requiring one to read through installation
documentation is unreasonable when a trivial change to the configure script can
tell the hapless builder what is wrong.  You are correct in that it is
documented.  But adding a useful error message in configure is still the right
thing to do.

Something like this:

--- configure.ac        (revision 140070)
+++ configure.ac        (working copy)
@@ -160,13 +160,24 @@
 #
 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib
libcpp libdecnumber gmp mpfr ppl cloog"

+[MAKE=${MAKE-make}
+case "`${MAKE} --version`" in
+"GNU Make "* ) : ;;
+* ) MAKE=gmake
+    case "`${MAKE} --version`" in
+    "GNU Make "* ) : ;;
+    * ) AC_MSG_ERROR([GNU Make is required to build]) ;;
+    esac
+    ;;
+esac ]
+
 # these tools are built for the host environment
 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
 # know that we are building the simulator.
 # binutils, gas and ld appear in that order because it makes sense to run
 # "make check" in that particular order.
 # If --enable-gold is used, "gold" will replace "ld".
-host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim
gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf
automake libtool diff rcs fileutils shellutils time textutils wdiff find
uudecode hello tar gzip indent recode release sed utils guile perl gawk
findutils gettext zip fastjar gnattools"
+host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim
gdb ${MAKE} patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4
autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff
find uudecode hello tar gzip indent recode release sed utils guile perl gawk
findutils gettext zip fastjar gnattools"

 # libgcj represents the runtime libraries only used by gcj.
 libgcj="target-libffi \


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29311


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]