configure: clean up comments

This commit is contained in:
Andrzej Rybczak
2017-04-23 03:48:36 +02:00
parent 2c495abd8c
commit dd79548d08

View File

@@ -26,9 +26,7 @@ if test "$clock" = "yes"; then
AC_DEFINE([ENABLE_CLOCK], [1], [enables clock screen]) AC_DEFINE([ENABLE_CLOCK], [1], [enables clock screen])
fi fi
dnl ================================ # -std=c++14
dnl = checking for -std=c++14 flag =
dnl ================================
AC_MSG_CHECKING([whether compiler supports -std=c++14]) AC_MSG_CHECKING([whether compiler supports -std=c++14])
old_CXXFLAGS="$CXXFLAGS" old_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="-std=c++14" CXXFLAGS="-std=c++14"
@@ -40,9 +38,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]])],
) )
CXXFLAGS="$old_CXXFLAGS $std_cpp14" CXXFLAGS="$old_CXXFLAGS $std_cpp14"
dnl =================================================== # generic lambda expressions support
dnl = checking for generic lambda expressions support =
dnl ===================================================
AC_MSG_CHECKING([whether compiler supports generic lambda expressions]) AC_MSG_CHECKING([whether compiler supports generic lambda expressions])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[auto f = [](auto n) { return n*n; }; f(7);]])], AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[auto f = [](auto n) { return n*n; }; f(7);]])],
AC_MSG_RESULT([yes]), AC_MSG_RESULT([yes]),
@@ -50,9 +46,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[auto f = [](auto n) { return n*n; }; f(
AC_MSG_ERROR([[Your compiler doesn't seem to support generic lambda expressions, please upgrade (GCC >= 5)]]) AC_MSG_ERROR([[Your compiler doesn't seem to support generic lambda expressions, please upgrade (GCC >= 5)]])
) )
dnl ====================== # boost
dnl = checking for boost =
dnl ======================
BOOST_REQUIRE([1.60]) BOOST_REQUIRE([1.60])
AC_SUBST(BOOST_CPPFLAGS) AC_SUBST(BOOST_CPPFLAGS)
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
@@ -104,9 +98,7 @@ AC_SUBST(BOOST_THREAD_LIBS)
LDFLAGS+="$LDFLAGS $BOOST_THREAD_LDFLAGS" LDFLAGS+="$LDFLAGS $BOOST_THREAD_LDFLAGS"
LIBS="$LIBS $BOOST_THREAD_LIBS" LIBS="$LIBS $BOOST_THREAD_LIBS"
dnl ==================== # icu
dnl = checking for icu =
dnl ====================
AH_TEMPLATE([BOOST_REGEX_ICU], [boost.regex was compiled with ICU support]) AH_TEMPLATE([BOOST_REGEX_ICU], [boost.regex was compiled with ICU support])
PKG_CHECK_MODULES([ICU], [icu-i18n icu-uc], [ PKG_CHECK_MODULES([ICU], [icu-i18n icu-uc], [
old_CPPFLAGS="$CPPFLAGS" old_CPPFLAGS="$CPPFLAGS"
@@ -125,15 +117,11 @@ PKG_CHECK_MODULES([ICU], [icu-i18n icu-uc], [
) )
], [[]]) ], [[]])
dnl ================================ # various headers
dnl = checking for various headers =
dnl ================================
AC_CHECK_HEADERS([netinet/tcp.h netinet/in.h], , AC_MSG_ERROR(vital headers missing)) AC_CHECK_HEADERS([netinet/tcp.h netinet/in.h], , AC_MSG_ERROR(vital headers missing))
AC_CHECK_HEADERS([langinfo.h], , AC_MSG_WARN(locale detection disabled)) AC_CHECK_HEADERS([langinfo.h], , AC_MSG_WARN(locale detection disabled))
dnl ============================== # libmpdclient2
dnl = checking for libmpdclient2 =
dnl ==============================
PKG_CHECK_MODULES([libmpdclient], [libmpdclient >= 2.8], [ PKG_CHECK_MODULES([libmpdclient], [libmpdclient >= 2.8], [
AC_SUBST(libmpdclient_CFLAGS) AC_SUBST(libmpdclient_CFLAGS)
AC_SUBST(libmpdclient_LIBS) AC_SUBST(libmpdclient_LIBS)
@@ -147,9 +135,7 @@ PKG_CHECK_MODULES([libmpdclient], [libmpdclient >= 2.8], [
AC_MSG_ERROR([libmpdclient >= 2.8 is required!]) AC_MSG_ERROR([libmpdclient >= 2.8 is required!])
) )
dnl ========================= # readline
dnl = checking for readline =
dnl =========================
AX_LIB_READLINE AX_LIB_READLINE
if test "$ax_cv_lib_readline" = "no"; then if test "$ax_cv_lib_readline" = "no"; then
AC_MSG_ERROR([no readline compatible library found]) AC_MSG_ERROR([no readline compatible library found])
@@ -158,16 +144,12 @@ if test "$ax_cv_lib_readline_history" = "no"; then
AC_MSG_WARN([readline library has no history functionality]) AC_MSG_WARN([readline library has no history functionality])
fi fi
dnl ======================== # pthread
dnl = checking for pthread =
dnl ========================
AC_CHECK_LIB(pthread, pthread_create, LIBS="$LIBS -lpthread", AC_CHECK_LIB(pthread, pthread_create, LIBS="$LIBS -lpthread",
AC_MSG_ERROR([pthread library is required]) AC_MSG_ERROR([pthread library is required])
) )
dnl ========================= # ncursesw
dnl = checking for ncursesw =
dnl =========================
PKG_CHECK_MODULES([ncursesw], [ncursesw], [ PKG_CHECK_MODULES([ncursesw], [ncursesw], [
AC_SUBST(ncursesw_CFLAGS) AC_SUBST(ncursesw_CFLAGS)
AC_SUBST(ncursesw_LIBS) AC_SUBST(ncursesw_LIBS)
@@ -184,9 +166,7 @@ PKG_CHECK_MODULES([ncursesw], [ncursesw], [
AC_MSG_ERROR([ncursesw is required!]) AC_MSG_ERROR([ncursesw is required!])
) )
dnl ====================== # fftw3
dnl = checking for fftw3 =
dnl ======================
if test "$visualizer" = "yes" ; then if test "$visualizer" = "yes" ; then
if test "$fftw" != "no" ; then if test "$fftw" != "no" ; then
PKG_CHECK_MODULES([fftw3], [fftw3 >= 3], [ PKG_CHECK_MODULES([fftw3], [fftw3 >= 3], [
@@ -209,9 +189,7 @@ if test "$visualizer" = "yes" ; then
AC_DEFINE([ENABLE_VISUALIZER], [1], [enables music visualizer screen]) AC_DEFINE([ENABLE_VISUALIZER], [1], [enables music visualizer screen])
fi fi
dnl ======================== # libcurl
dnl = checking for libcurl =
dnl ========================
PKG_CHECK_MODULES([libcurl], [libcurl], [ PKG_CHECK_MODULES([libcurl], [libcurl], [
AC_SUBST(libcurl_CFLAGS) AC_SUBST(libcurl_CFLAGS)
AC_SUBST(libcurl_LIBS) AC_SUBST(libcurl_LIBS)
@@ -225,9 +203,7 @@ PKG_CHECK_MODULES([libcurl], [libcurl], [
AC_MSG_ERROR([libcurl is required!]) AC_MSG_ERROR([libcurl is required!])
) )
dnl ======================= # taglib
dnl = checking for taglib =
dnl =======================
if test "$taglib" != "no" ; then if test "$taglib" != "no" ; then
AC_PATH_PROG(TAGLIB_CONFIG, taglib-config) AC_PATH_PROG(TAGLIB_CONFIG, taglib-config)
if test "$TAGLIB_CONFIG" != "" ; then if test "$TAGLIB_CONFIG" != "" ; then