[buddy] update obsolete autoconf constructs
Part of #447. * configure.ac, m4/bdebug.m4: Replace AC_ERROR and AC_HELP_STRING by by AC_MSG_ERROR and AS_HELP_STRING.
This commit is contained in:
parent
e076645382
commit
06b5a82950
2 changed files with 5 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ AC_PROG_CXX
|
||||||
|
|
||||||
# Option to activate C++20
|
# Option to activate C++20
|
||||||
AC_ARG_ENABLE([c++20],
|
AC_ARG_ENABLE([c++20],
|
||||||
[AC_HELP_STRING([--enable-c++20],
|
[AS_HELP_STRING([--enable-c++20],
|
||||||
[Compile in C++20 mode.])],
|
[Compile in C++20 mode.])],
|
||||||
[enable_20=yes], [enable_20=no])
|
[enable_20=yes], [enable_20=no])
|
||||||
|
|
||||||
|
|
@ -89,7 +89,7 @@ if test x"${enable_20}" = xyes; then
|
||||||
${stdpass-false} && break
|
${stdpass-false} && break
|
||||||
done
|
done
|
||||||
if ! "${stdpass-false}"; then
|
if ! "${stdpass-false}"; then
|
||||||
AC_ERROR([unable to turn on C++20 mode with this compiler])
|
AC_MSG_ERROR([unable to turn on C++20 mode with this compiler])
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
for f in -std=c++17 '-std=c++17 -stdlib=libc++' -std=c++1z
|
for f in -std=c++17 '-std=c++17 -stdlib=libc++' -std=c++1z
|
||||||
|
|
@ -99,7 +99,7 @@ else
|
||||||
${stdpass-false} && break
|
${stdpass-false} && break
|
||||||
done
|
done
|
||||||
if ! "${stdpass-false}"; then
|
if ! "${stdpass-false}"; then
|
||||||
AC_ERROR([unable to turn on C++17 mode with this compiler])
|
AC_MSG_ERROR([unable to turn on C++17 mode with this compiler])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
AC_DEFUN([buddy_DEBUG_FLAGS],
|
AC_DEFUN([buddy_DEBUG_FLAGS],
|
||||||
[AC_ARG_ENABLE([swap-count],
|
[AC_ARG_ENABLE([swap-count],
|
||||||
[AC_HELP_STRING([--enable-swap-count],
|
[AS_HELP_STRING([--enable-swap-count],
|
||||||
[Count number of fundamental variable swaps (for debugging)])])
|
[Count number of fundamental variable swaps (for debugging)])])
|
||||||
case $enable_swap_count in
|
case $enable_swap_count in
|
||||||
yes)
|
yes)
|
||||||
|
|
@ -11,7 +11,7 @@ case $enable_swap_count in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_ARG_ENABLE([cache-stats],
|
AC_ARG_ENABLE([cache-stats],
|
||||||
[AC_HELP_STRING([--enable-cache-stats],
|
[AS_HELP_STRING([--enable-cache-stats],
|
||||||
[Gather statistical information about operator and unique node caching (for debugging)])])
|
[Gather statistical information about operator and unique node caching (for debugging)])])
|
||||||
case $enable_cache_stats in
|
case $enable_cache_stats in
|
||||||
yes)
|
yes)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue