Tidy up the indentation. Give the cache variable a proper name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-11-25 04:43:54 +00:00
parent 898ae19319
commit 4f5f1406fd

View File

@ -1,21 +1,22 @@
# #
# Check for GNU Make. This is from # Check for GNU Make. This is originally from
# http://www.gnu.org/software/ac-archive/htmldoc/check_gnu_make.html # http://www.gnu.org/software/ac-archive/htmldoc/check_gnu_make.html
# #
AC_DEFUN([AC_CHECK_GNU_MAKE], AC_DEFUN([AC_CHECK_GNU_MAKE],
[ AC_CACHE_CHECK( for GNU make,_cv_gnu_make_command, [AC_CACHE_CHECK([for GNU make],[llvm_cv_gnu_make_command],
_cv_gnu_make_command='' ;
dnl Search all the common names for GNU make dnl Search all the common names for GNU make
[llvm_cv_gnu_make_command=''
for a in "$MAKE" make gmake gnumake ; do for a in "$MAKE" make gmake gnumake ; do
if test -z "$a" ; then continue ; fi ; if test -z "$a" ; then continue ; fi ;
if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
_cv_gnu_make_command=$a ; then
llvm_cv_gnu_make_command=$a ;
break; break;
fi fi
done ; done])
) ; dnl If there was a GNU version, then set @ifGNUmake@ to the empty string,
dnl If there was a GNU version, then set @ifGNUmake@ to the empty string, '#' otherwise dnl '#' otherwise
if test "x$_cv_gnu_make_command" != "x" ; then if test "x$llvm_cv_gnu_make_command" != "x" ; then
ifGNUmake='' ; ifGNUmake='' ;
else else
ifGNUmake='#' ; ifGNUmake='#' ;