X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=m4%2Fae_config_feature.m4;h=1d7cd5831ab57ed2c64124141359eaf4698618a0;hb=HEAD;hp=315da572aaa2675eeb07404850956bc87860b46b;hpb=2fbda51c64f28b33b8febffc998af235e6fa9ea9;p=lttng-ust.git diff --git a/m4/ae_config_feature.m4 b/m4/ae_config_feature.m4 index 315da572..d34f5b50 100644 --- a/m4/ae_config_feature.m4 +++ b/m4/ae_config_feature.m4 @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Michael Jeanson +# SPDX-FileCopyrightText: 2008 Francesco Salvestrini +# +# SPDX-License-Identifier: GPL-2.0-or-later WITH LicenseRef-Autoconf-exception-macro # # SYNOPSIS # @@ -63,39 +67,8 @@ # NOTE: AE_FEATURE_ENABLE/DISABLE() must be placed first of the relative # AE_FEATURE() macro if you want the the proper ACTION-IF-ENABLED and # ACTION-IF-NOT-ENABLED to run. -# -# LICENSE -# -# Copyright (c) 2020 Michael Jeanson -# Copyright (c) 2008 Francesco Salvestrini -# -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 2 of the License, or (at your -# option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -# Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# As a special exception, the respective Autoconf Macro's copyright owner -# gives unlimited permission to copy, distribute and modify the configure -# scripts that are the output of Autoconf when processing the Macro. You -# need not follow the terms of the GNU General Public License when using -# or distributing such scripts, even though portions of the text of the -# Macro appear in them. The GNU General Public License (GPL) does govern -# all other use of the material that constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the Autoconf -# Macro released by the Autoconf Archive. When you make and distribute a -# modified version of the Autoconf Macro, you may extend this special -# exception to the GPL to apply to your modified version as well. -#serial 1 +#serial 3 # AE_FEATURE_DEFAULT_ENABLE: The next feature defined with AE_FEATURE will @@ -230,7 +203,7 @@ AS_IF([test "x$enable_[]FEATURE[]" = x && test "ae_feature_default_arg" = yes],[ AC_ARG_ENABLE([$1], AS_HELP_STRING([--ae_feature_default_switch-$1],dnl - [$2 [default=ae_feature_default_arg]]),[ + [$2]),[ case "${enableval}" in yes) enable_[]FEATURE[]=yes