summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaul <paul>2006-05-28 08:02:41 +0000
committerpaul <paul>2006-05-28 08:02:41 +0000
commit7596b105fab019150457ca7b69c73ad089371024 (patch)
tree5d43917b43c99e9f0dd36237ceaa4dfb33bd2d8b
parent724e66d4510001a9d64976c6ef27365ada79bdc7 (diff)
downloadquagga-7596b105fab019150457ca7b69c73ad089371024.tar.bz2
quagga-7596b105fab019150457ca7b69c73ad089371024.tar.xz
[build] Update SOS CFLAGS and add check for GNU Make in configure.ac
2006-05-28 Paul Jakma <paul.jakma@sun.com> * configure.ac: Update SOS CFLAGS, Xt shouldn't be used and enable debug options. Add a check for GNU Make and warn the user if it does not appear to be the make used.
-rw-r--r--ChangeLog7
-rwxr-xr-xconfigure.ac28
2 files changed, 32 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 094ee59b..f36e31e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-05-28 Paul Jakma <paul.jakma@sun.com>
+
+ * configure.ac: Update SOS CFLAGS, Xt shouldn't be used and
+ enable debug options.
+ Add a check for GNU Make and warn the user if it does not appear
+ to be the make used.
+
2006-05-10 Paul Jakma <paul.jakma@sun.com>
* configure.ac: Bump to 0.99.4
diff --git a/configure.ac b/configure.ac
index 97342a64..e173fcae 100755
--- a/configure.ac
+++ b/configure.ac
@@ -122,7 +122,7 @@ if test "x${cflags_specified}" = "x" ; then
AC_MSG_RESULT([gcc default])
;;
"SUNPRO")
- CFLAGS="-xO4 -xspace -xcode=pic32 -xstrconst -Xt -xc99"
+ CFLAGS="-xO4 -v -g -xspace -xcode=pic32 -xstrconst -xc99"
AC_MSG_RESULT([SunPro default])
;;
*)
@@ -141,6 +141,22 @@ AC_PROG_MAKE_SET
AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(RANLIB, ranlib, :)
+dnl ---------------------------
+dnl We, perhaps unfortunately,
+dnl depend on GNU Make specific
+dnl constructs.
+dnl Give the user a warning if
+dnl not GNU Make.
+dnl ---------------------------
+AC_CACHE_CHECK([if ${MAKE-make} is GNU make], [quagga_cv_gnu_make],
+ [quagga_cv_gnu_make=no
+ if ${MAKE-make} --version 2>/dev/null | \
+ grep '^GNU Make ' >/dev/null ; then
+ quagga_cv_gnu_make=yes;
+ fi
+ ]
+)
+
dnl ---------
dnl AIX check
dnl ---------
@@ -1375,5 +1391,11 @@ config file mask : ${enable_configfile_mask}
log file mask : ${enable_logfile_mask}
The above user and group must have read/write access to the state file
-directory and to the config files in the config file directory.
-"
+directory and to the config files in the config file directory."
+
+if test x"$quagga_cv_gnu_make" = x"no"; then echo "
+Warning: The ${MAKE-make} programme detected, either in your path or
+via the MAKE variable, is not GNU Make. GNU make may be installed as
+gmake on some systems. and is required to complete a build of Quagga
+" > /dev/stderr
+fi