diff options
author | Roger Pau Monne <roger.pau@entel.upc.edu> | 2012-04-03 18:02:46 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@entel.upc.edu> | 2012-04-03 18:02:46 +0100 |
commit | 43774fe3f123f6bcf67da9e979a035e3d43a4461 (patch) | |
tree | c65e26543bad4f4448cb2833fba847939b841b85 /tools/m4/disable_feature.m4 | |
parent | 436292b074c4f888e4b8c9ffa32c73ab823218c2 (diff) | |
download | xen-43774fe3f123f6bcf67da9e979a035e3d43a4461.tar.gz xen-43774fe3f123f6bcf67da9e979a035e3d43a4461.tar.bz2 xen-43774fe3f123f6bcf67da9e979a035e3d43a4461.zip |
autoconf: change AX_ARG_{DISABLE/ENABLE}_AND_EXPORT to make more sense
Change disable/enable feature macros to have a more significative name
of what they actually do, to avoid confusions.
New macros have the following names:
AX_ARG_DEFAULT_ENABLE: feature is enabled by default, provides the
--disable-{feature} option to disable it.
AX_ARG_DEFAULT_DISABLE: feature is disabled by default, provides the
--enable-{feature] option to enable it.
Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/m4/disable_feature.m4')
-rw-r--r-- | tools/m4/disable_feature.m4 | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tools/m4/disable_feature.m4 b/tools/m4/disable_feature.m4 deleted file mode 100644 index 4e5ceeeae6..0000000000 --- a/tools/m4/disable_feature.m4 +++ /dev/null @@ -1,13 +0,0 @@ -AC_DEFUN([AX_ARG_DISABLE_AND_EXPORT], -[AC_ARG_ENABLE([$1], - AS_HELP_STRING([--disable-$1], [$2])) - -AS_IF([test "x$enable_$1" = "xno"], [ - ax_cv_$1="n" -], [test "x$enable_$1" = "xyes"], [ - ax_cv_$1="y" -], [test -z $ax_cv_$1], [ - ax_cv_$1="y" -]) -$1=$ax_cv_$1 -AC_SUBST($1)]) |