blob: b8c0b2d330fca5e21b038b913688e03c9635ebe9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
--- configure.ac.orig 2023-07-28 17:16:37 UTC
+++ configure.ac
@@ -54,6 +54,8 @@ AC_CONFIG_FILES([tests/run_prog_manual.sh],
AC_CONFIG_FILES([tests/run_prog_manual.sh],
[chmod +x tests/run_prog_manual.sh])
+AC_PATH_PROGS([MAKE], [gmake gnumake make])
+
# In general: don't export/setenv but pass as option to configure
# this has the benefit that re-runs will take the same and "sudo"
# or later "make" (possibly as different user) will use the same
@@ -291,22 +293,6 @@ AC_DEFINE_UNQUOTED([MAX_CALL_FIELD_PARAMS], [$with_max
# Basic capability tests
-
-configured_make=""
-if test -z "$MAKE"; then
- AC_CHECK_PROGS([configured_make], [make gmake gnumake])
- if test -z "$configured_make"; then
- AC_MSG_ERROR([make not found])
- else
- MAKE=$configured_make
- AC_SUBST(MAKE)
- fi
-else
- AC_CHECK_PROG([configured_make], [$MAKE], [$MAKE])
- if test -z "$configured_make"; then
- AC_MSG_ERROR([make, configured as "$MAKE", was not found])
- fi
-fi
AC_MSG_CHECKING([whether ${MAKE} can handle common constructs])
rm -f confmake.out
|