From 62b0a69d9a99d8651e5fa60ffd72a74783e8d413 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Thu, 17 Aug 2023 00:08:12 +0200 Subject: [PATCH] m4: Replace obsolete AC_ERROR with AC_MSG_ERROR. AC_ERROR is triggering a warning on systems with autoconf 2.70+: $ ./boot.sh ... configure.ac:174: warning: The macro `AC_ERROR' is obsolete. configure.ac:174: You should run autoupdate. ... Replace with AC_MSG_ERROR that is supported in all versions of autoconf that we care about (2.63+). Signed-off-by: Ilya Maximets --- acinclude.m4 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 4198120bcb..ad3ee9fdf4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -412,7 +412,7 @@ AC_DEFUN([OVN_CHECK_OVS], [ fi OVSDIR=$(cd "$(eval echo "$with_ovs_source")"; pwd) if test ! -f "$OVSDIR/vswitchd/bridge.c"; then - AC_ERROR([$OVSDIR is not an OVS source directory]) + AC_MSG_ERROR([$OVSDIR is not an OVS source directory]) fi AC_MSG_RESULT([$OVSDIR]) @@ -426,13 +426,16 @@ AC_DEFUN([OVN_CHECK_OVS], [ *) OVSBUILDDIR=`pwd`/$OVSBUILDDIR ;; esac if test ! -f "$OVSBUILDDIR/config.h"; then - AC_ERROR([$OVSBUILDDIR is not a configured OVS build directory]) + AC_MSG_ERROR([$OVSBUILDDIR is not a configured OVS build directory]) fi elif test -f "$OVSDIR/config.h"; then # If separate build dir is not specified, use src dir. OVSBUILDDIR=$OVSDIR else - AC_ERROR([OVS source dir $OVSDIR is not configured as a build directory (either run configure there or use --with-ovs-build to point to the build directory)]) + AC_MSG_ERROR(m4_normalize([ + OVS source dir $OVSDIR is not configured as a build directory + (either run configure there or use --with-ovs-build to point + to the build directory)])) fi AC_MSG_RESULT([$OVSBUILDDIR]) AC_SUBST(OVSBUILDDIR)