From 578c871e58df3820906c808d2787ab73d32ca168 Mon Sep 17 00:00:00 2001 From: Olivier Sirol Date: Mon, 16 Dec 2002 14:09:04 +0000 Subject: [PATCH] find GNU make --- alliance/src/build | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/alliance/src/build b/alliance/src/build index 6924db29..f0b1ba3b 100755 --- a/alliance/src/build +++ b/alliance/src/build @@ -4,11 +4,11 @@ # Author: Czo # License: GPL (http://www.gnu.org/copyleft/gpl.html) # Started: Oct 2002 -# Last Change: Wednesday 09 October 2002, 18:39 -# Edit Time: 0:24:13 +# Last Change: Monday 16 December 2002, 15:08 +# Edit Time: 1:08:54 # Description: # -# $Id: build,v 1.1 2002/10/09 16:41:43 czo Exp $ +# $Id: build,v 1.2 2002/12/16 14:09:04 czo Exp $ # # The way the configure and Makefiles are written @@ -18,7 +18,31 @@ # To avoid make problems, please use gnu make (gmake) # The fowllowing commands builds the full package from scratch. -export ALLIANCE_TOP=/usr/local/alliance -./configure --prefix=$ALLIANCE_TOP -gmake install + + + +echo "checking for GNU make..." + + _cv_gnu_make_command='' ; + for a in "$MAKE" make gmake gnumake ; do + if test -z "$a" ; then continue ; fi ; + if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then + _cv_gnu_make_command=$a ; + break; + fi + done ; + + if test "x$_cv_gnu_make_command" != "x" ; then + MAKE=$_cv_gnu_make_command; + echo "found, $_cv_gnu_make_command"; + else + MAKE=make; + echo "Not found, using make"; + fi + +export MAKE +ALLIANCE_TOP=/usr/local/alliance +export ALLIANCE_TOP +./configure --prefix=$ALLIANCE_TOP +$MAKE install