X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=configure;h=c0a550c7f9fd74402ab42974075ddd40ac88cc47;hp=c5e2ffed9e6705a9b16f5cf52f3c57235bc40044;hb=5fb0f5f113e7cb7422fb44bb7abcba2bcadfc0c8;hpb=ab022657776af0bb47e72caf2517464ca59e7d48 diff --git a/configure b/configure index c5e2ffed..c0a550c7 100755 --- a/configure +++ b/configure @@ -646,6 +646,15 @@ if [ $WITH_DESKTOP = "1" ]; then fi fi +printf "Checking for cppcheck... " +if command -v cppcheck > /dev/null; then + have_cppcheck=1 + printf "Yes.\n" +else + have_cppcheck=0 + printf "No.\n" +fi + libdir_in_ldconfig=0 printf "Checking which platform we are on... " @@ -1065,6 +1074,9 @@ zsh_completion_dir = ${ZSHCOMLETIONDIR:=\$(prefix)/share/zsh/functions/Completio # build its own version) HAVE_CANONICALIZE_FILE_NAME = ${have_canonicalize_file_name} +# Whether the cppcheck static checker is available +HAVE_CPPCHECK = ${have_cppcheck} + # Whether the getline function is available (if not, then notmuch will # build its own version) HAVE_GETLINE = ${have_getline}