aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Brooksby2012-09-10 17:24:47 +0100
committerRichard Brooksby2012-09-10 17:24:47 +0100
commit2c4c8902240d4f367125bbde044bbfcbb41c6434 (patch)
tree039938b14e0a8ba805b1aae3fbe01e05df60cc31
parent4a3a69934b93c0481a4e29f1ae346c59dfe3ed47 (diff)
downloademacs-2c4c8902240d4f367125bbde044bbfcbb41c6434.tar.gz
emacs-2c4c8902240d4f367125bbde044bbfcbb41c6434.zip
Merging https://github.com/datafueled/memory-pool-system/pull/6 to make configure work on freebsd (whose "make" isn't gnu make).
Copied from Perforce Change: 179400 ServerID: perforce.ravenbrook.com
-rw-r--r--mps/Makefile.in2
-rwxr-xr-xmps/configure48
-rw-r--r--mps/configure.ac5
3 files changed, 54 insertions, 1 deletions
diff --git a/mps/Makefile.in b/mps/Makefile.in
index c816e73efcc..180bf944083 100644
--- a/mps/Makefile.in
+++ b/mps/Makefile.in
@@ -9,6 +9,7 @@
9# to build and integrate the MPS. 9# to build and integrate the MPS.
10# 10#
11 11
12MAKE=@MAKE@
12MPS_TARGET_PF=@MPS_TARGET_PF@ 13MPS_TARGET_PF=@MPS_TARGET_PF@
13MPS_TARGET_NAME=@MPS_TARGET_NAME@ 14MPS_TARGET_NAME=@MPS_TARGET_NAME@
14 15
@@ -16,7 +17,6 @@ BUILD_TARGET=@BUILD_TARGET@
16CLEAN_TARGET=@CLEAN_TARGET@ 17CLEAN_TARGET=@CLEAN_TARGET@
17 18
18all: @BUILD_TARGET@ 19all: @BUILD_TARGET@
19 $(BUILD)
20 20
21build-via-make: 21build-via-make:
22 $(MAKE) -C code -f $(MPS_TARGET_NAME).gmk 22 $(MAKE) -C code -f $(MPS_TARGET_NAME).gmk
diff --git a/mps/configure b/mps/configure
index 787f690890b..3c6b094c176 100755
--- a/mps/configure
+++ b/mps/configure
@@ -591,6 +591,7 @@ CLEAN_TARGET
591BUILD_TARGET 591BUILD_TARGET
592MPS_TARGET_NAME 592MPS_TARGET_NAME
593MPS_TARGET_PF 593MPS_TARGET_PF
594MAKE
594host_os 595host_os
595host_vendor 596host_vendor
596host_cpu 597host_cpu
@@ -2686,6 +2687,53 @@ $as_echo "FreeBSD x86_64" >&6; }
2686 as_fn_error $? "MPS does not support this platform out of the box. See manual/build.txt" "$LINENO" 5 2687 as_fn_error $? "MPS does not support this platform out of the box. See manual/build.txt" "$LINENO" 5
2687esac 2688esac
2688 2689
2690for ac_prog in gnumake gmake make
2691do
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693set dummy $ac_prog; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
2696if ${ac_cv_prog_MAKE+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698else
2699 if test -n "$MAKE"; then
2700 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_MAKE="$ac_prog"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713done
2714 done
2715IFS=$as_save_IFS
2716
2717fi
2718fi
2719MAKE=$ac_cv_prog_MAKE
2720if test -n "$MAKE"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
2722$as_echo "$MAKE" >&6; }
2723else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
2726fi
2727
2728
2729 test -n "$MAKE" && break
2730done
2731test -n "$MAKE" || MAKE="as_fn_error $? "Unable to find a make program." "$LINENO" 5"
2732
2733if ! $MAKE --version | grep -q "GNU" 2> /dev/null; then
2734 as_fn_error $? "MPS requires GNU make to build from configure, but see manual/build.txt" "$LINENO" 5
2735fi
2736
2689 2737
2690 2738
2691 2739
diff --git a/mps/configure.ac b/mps/configure.ac
index abcddd82166..66f90ba17ca 100644
--- a/mps/configure.ac
+++ b/mps/configure.ac
@@ -69,6 +69,11 @@ case $host in
69 AC_MSG_ERROR([MPS does not support this platform out of the box. See manual/build.txt]) 69 AC_MSG_ERROR([MPS does not support this platform out of the box. See manual/build.txt])
70esac 70esac
71 71
72AC_CHECK_PROGS([MAKE],[gnumake gmake make],[AC_MSG_ERROR([Unable to find a make program.])])
73if ! $MAKE --version | grep -q "GNU" 2> /dev/null; then
74 AC_MSG_ERROR([MPS requires GNU make to build from configure, but see manual/build.txt])
75fi
76
72AC_SUBST(MPS_TARGET_PF) 77AC_SUBST(MPS_TARGET_PF)
73AC_SUBST(MPS_TARGET_NAME) 78AC_SUBST(MPS_TARGET_NAME)
74AC_SUBST(BUILD_TARGET) 79AC_SUBST(BUILD_TARGET)