X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=configure.ac;h=ac281225e0a703cb0478aa4a809f358bcf3360ff;hb=f2d160c71a5458ae9789861f772853afb471dbe8;hp=d927b60a939ce2533a297170d9afb97ce74b0587;hpb=ae172fa8e3fc003febbdb20eebc928b73258a2a5;p=sysdb.git diff --git a/configure.ac b/configure.ac index d927b60..ac28122 100644 --- a/configure.ac +++ b/configure.ac @@ -191,9 +191,21 @@ AC_ARG_ENABLE([gcov], [enable_gcov="$enableval"], [enable_gcov="no"]) +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 + xgcc) + cc_is_gcc="yes" + ;; + xgcc-*) + cc_is_gcc="yes" + ;; +esac + COVERAGE_CFLAGS="" COVERAGE_LDFLAGS="" -if test "x$enable_gcov" = "xyes" && test "x$GCC" == "xyes"; then +if test "x$enable_gcov" = "xyes" && test "x$GCC$cc_is_gcc" == "xyesyes"; then COVERAGE_CFLAGS="-O0" cov_flag_have_problem="no" @@ -297,7 +309,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],