From 483dc5ef924ce05897d9215943ed1328c3bc8416 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 13 May 2019 07:41:18 +0200 Subject: use AS_CASE/AS_IF --- configure.ac | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index 23bd1b5..0aeaf4d 100644 --- a/configure.ac +++ b/configure.ac @@ -792,20 +792,14 @@ AS_IF([test "x$HAVE_FLAC_TRUE" = "x#"], AS_IF([test "x$HAVE_SMF_TRUE" = "x#"], [AC_MSG_NOTICE([NOTICE: libsmf not found, midi support disabled])]) -if test "x$HAVE_MPEG2_TRUE" = "x#" -then - AC_MSG_NOTICE([NOTICE: libmpeg2 not found, mpeg2 support disabled]) -fi - -if test "x$HAVE_MP4V2_TRUE" = "x#" -then - AC_MSG_NOTICE([NOTICE: libmp4v2 not found, mp4 support disabled]) -fi - -if test "x$HAVE_CXX" != "xyes" -then - AC_MSG_NOTICE([NOTICE: no C++ compiler found (not compiling plugins that require C++)]) -fi +AS_IF([test "x$HAVE_MPEG2_TRUE" = "x#"], + [AC_MSG_NOTICE([NOTICE: libmpeg2 not found, mpeg2 support disabled])]) + +AS_IF([test "x$HAVE_MP4V2_TRUE" = "x#"], + [AC_MSG_NOTICE([NOTICE: libmp4v2 not found, mp4 support disabled])]) + +AS_IF([test "x$HAVE_CXX" != "xyes"], + [AC_MSG_NOTICE([NOTICE: no C++ compiler found (not compiling plugins that require C++)])]) AS_IF([test x$have_gstreamer = xyes -a x$have_gstreamer_pbutils = xyes -a x$have_gstreamer_tag = xyes -a x$have_gstreamer_app = xyes -a ! x$without_glib = xtrue], [AS_IF([test x$enable_experimental = xyes], -- cgit v1.2.3