common/autoconf/basics.m4
changeset 34493 c68e0ab807d8
parent 34491 307c28cb36c2
child 34923 0a2be16ce53d
--- a/common/autoconf/basics.m4	Thu Dec 10 09:23:36 2015 -0800
+++ b/common/autoconf/basics.m4	Fri Dec 11 21:58:28 2015 +0900
@@ -243,12 +243,18 @@
 # Register a --enable argument but mark it as deprecated
 # $1: The name of the with argument to deprecate, not including --enable-
 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
+# $3: Messages to user.
 AC_DEFUN([BASIC_DEPRECATED_ARG_ENABLE],
 [
   AC_ARG_ENABLE($1, [AS_HELP_STRING([--enable-$1],
       [Deprecated. Option is kept for backwards compatibility and is ignored])])
   if test "x$enable_$2" != x; then
     AC_MSG_WARN([Option --enable-$1 is deprecated and will be ignored.])
+
+    if test "x$3" != x; then
+      AC_MSG_WARN([$3])
+    fi
+
   fi
 ])