X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=configure.ac;h=c0a25c1dc9110a14025a37bb350bc0f19807b07a;hb=89e6eb85d393cba8d258f21d43ee77651ab66271;hp=4977fb5986b7c4902a120fce4415609731128976;hpb=7dc71a66ca212863e6f748edf1eced45436577c1;p=sysdb.git diff --git a/configure.ac b/configure.ac index 4977fb5..c0a25c1 100644 --- a/configure.ac +++ b/configure.ac @@ -195,10 +195,10 @@ dnl $GCC is based on some heuristics which might apply to clang as well. dnl However, clang does not support gcov. cc_is_gcc="no" case "x$CC" in - gcc) + xgcc) cc_is_gcc="yes" ;; - gcc-*) + xgcc-*) cc_is_gcc="yes" ;; esac @@ -254,11 +254,15 @@ AC_ARG_WITH([libdbi], [AS_HELP_STRING([--with-libdbi], [libdbi support (default: auto)])], [with_libdbi="$withval"], [with_libdbi="yes"]) -if test "x$with_libdbi" = "xyes"; then +if test "x$with_libdbi" = "xyes" || test "x$with_libdbi" = "xauto"; then AC_CHECK_HEADERS([dbi/dbi.h], [with_libdbi="yes"], [with_libdbi="no (dbi/dbi.h not found)"]) -fi +else if test "x$with_libdbi" = "xno"; then + with_libdbi="$with_libdbi (disabled on command-line)" +else + AC_MSG_ERROR([Invalid value for option --with-libdbi=$with_libdbi (expected "yes", "no", or "auto")]) +fi; fi if test "x$with_libdbi" = "xyes"; then AC_CHECK_LIB([dbi], [dbi_initialize], [with_libdbi="yes"], @@ -287,7 +291,12 @@ AC_ARG_WITH([readline], if test "x$readline_support" = "xyes"; then readline_support="auto" -fi +else if test "x$readline_support" != "xauto" \ + && test "x$readline_support" != "xno" \ + && test "x$readline_support" != "xlibedit" \ + && test "x$readline_support" != "xlibreadline"; then + AC_MSG_ERROR([Invalid value for option --with-readline=$readline_support (expected "yes", "no", "auto", "libedit", or "libreadline")]) +fi; fi have_libedit="no" if test "x$readline_support" = "xauto" \ @@ -309,7 +318,7 @@ else fi have_libreadline="no" -if test "x$have_libedit" = "xno"; then +if test "x$have_libedit" != "xyes"; then if test "x$readline_support" = "xauto" \ || test "x$readline_support" = "xlibreadline"; then AC_CHECK_LIB([readline], [readline],