Add autotools deprecation warning
authorSebastian Blunt <sebastian@c4k3.net>
Mon, 5 Jun 2017 13:09:36 +0000 (15:09 +0200)
committerSebastian Blunt <sebastian@c4k3.net>
Mon, 5 Jun 2017 13:09:36 +0000 (15:09 +0200)
Adds a warning about autotools being deprecated directly in autogen.sh
Using the m4_warn/m4_errprintn macro causes the warning to not be
displayed with autogen.sh, and using AC_MSG_WARN is only displayed when
configure is run (which might instead be desirable.) This solution
very clearly displays the warning when running autogen.sh.

autogen.sh

index 5bce9bab38baa893f0a2e03a919fbf353418439f..ac210b67b69138dd2cc959d8e18915f82c9f078a 100755 (executable)
@@ -1567,6 +1567,15 @@ else
     $ECHO "  make"
 fi
 
+$ECHO
+$ECHO "WARNING: Building umurmur with autotools has been deprecated. In the"
+$ECHO "future, support for autotools will be dropped, please switch to"
+$ECHO "compiling with cmake instead. See the links below for information"
+$ECHO "on how to compile with cmake, and the relevant discussion."
+$ECHO
+$ECHO "https://github.com/umurmur/umurmur/wiki/Building"
+$ECHO "https://github.com/umurmur/umurmur/issues/111"
+
 
 # Local Variables:
 # mode: sh