1.1 --- a/common/autoconf/basics.m4 Tue Oct 22 11:12:43 2013 +0200 1.2 +++ b/common/autoconf/basics.m4 Tue Oct 22 12:29:29 2013 +0200 1.3 @@ -212,6 +212,18 @@ 1.4 [AC_MSG_WARN([Option --with-$1 is deprecated and will be ignored.])]) 1.5 ]) 1.6 1.7 +# Register a --enable argument but mark it as deprecated 1.8 +# $1: The name of the with argument to deprecate, not including --enable- 1.9 +# $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 1.10 +AC_DEFUN([BASIC_DEPRECATED_ARG_ENABLE], 1.11 +[ 1.12 + AC_ARG_ENABLE($1, [AS_HELP_STRING([--enable-$1], 1.13 + [Deprecated. Option is kept for backwards compatibility and is ignored])]) 1.14 + if test "x$enable_$2" != x; then 1.15 + AC_MSG_WARN([Option --enable-$1 is deprecated and will be ignored.]) 1.16 + fi 1.17 +]) 1.18 + 1.19 AC_DEFUN_ONCE([BASIC_INIT], 1.20 [ 1.21 # Save the original command line. This is passed to us by the wrapper configure script.