]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Require GNU make for now
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 14 Feb 2010 09:25:49 +0000 (10:25 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 14 Feb 2010 09:25:49 +0000 (10:25 +0100)
configure.ac

index db87814f2efb741c6ec29a287e408c063282653c..560aa7a7e5d8a73beaa634fe371e6fd88c22801e 100644 (file)
@@ -89,6 +89,22 @@ AC_CHECK_HEADER(
         AC_MSG_ERROR(Required library zlib missing.)),
     AC_MSG_ERROR(Header file for required library zlib missing.))
 
+dnl Check for GNU make.
+AC_PATH_PROGS(MAKE, gmake make)
+AC_CACHE_CHECK(
+    for GNU make,
+    ccache_cv_gnu_make,
+    [
+    if $ac_cv_path_MAKE --version | head -1 | grep GNU >/dev/null 2>&1; then
+        ccache_cv_gnu_make=yes
+    else
+        ccache_cv_gnu_make=no
+    fi
+    ])
+if test x$ccache_cv_gnu_make = xno; then
+    AC_MSG_ERROR(Please install GNU make as gmake or make)
+fi
+
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT