X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=configure;h=fa77eb8fd4b7b406f2b3a097137c4c5001c285f9;hp=46063b5d2eeffabe893c70639ed74f754e5e0ed8;hb=8f35cb889acd82a631cc7277ee3f97cf2f50e928;hpb=12f7d4e61d30fb9a5c99e128ab1aab0bf069cdb4 diff --git a/configure b/configure index 46063b5d..fa77eb8f 100755 --- a/configure +++ b/configure @@ -70,6 +70,7 @@ LIBDIR= WITH_DOCS=1 WITH_API_DOCS=1 WITH_EMACS=1 +WITH_DESKTOP=1 WITH_BASH=1 WITH_RUBY=1 WITH_ZSH=1 @@ -141,6 +142,7 @@ Some features can be disabled (--with-feature=no is equivalent to --without-docs Do not install documentation --without-api-docs Do not install API man page --without-emacs Do not install lisp file + --without-desktop Do not install desktop file --without-ruby Do not install ruby bindings --without-zsh-completion Do not install zsh completions files --without-retry-lock Do not use blocking xapian opens, even if available @@ -209,6 +211,14 @@ for option; do fi elif [ "${option}" = '--without-emacs' ] ; then WITH_EMACS=0 + elif [ "${option%%=*}" = '--with-desktop' ]; then + if [ "${option#*=}" = 'no' ]; then + WITH_DESKTOP=0 + else + WITH_DESKTOP=1 + fi + elif [ "${option}" = '--without-desktop' ] ; then + WITH_DESKTOP=0 elif [ "${option%%=*}" = '--with-bash-completion' ]; then if [ "${option#*=}" = 'no' ]; then WITH_BASH=0 @@ -602,17 +612,14 @@ if [ $WITH_DOCS = "1" ] ; then fi fi -have_gpgconf_socketdir=0 -printf "Checking for gpgconf --{create,remove}-socketdir... " -if gpgconf --dump-options > /dev/null ; then - if gpgconf --dump-options | grep -q create-socketdir ; then +if [ $WITH_DESKTOP = "1" ]; then + printf "Checking if desktop-file-install is available... " + if command -v desktop-file-install > /dev/null; then printf "Yes.\n" - have_gpgconf_socketdir=1 else - printf "No.\n" + printf "No (so will not install .desktop file).\n" + WITH_DESKTOP=0 fi -else - printf "No. (missing or broken gpgconf?)\n" fi libdir_in_ldconfig=0 @@ -673,19 +680,6 @@ else EOF fi -printf "Checking byte order... " -cat> _byteorder.c < -#include -uint32_t test = 0x34333231; -int main() { printf("%.4s\n", (const char*)&test); return 0; } -EOF -${CC} ${CFLAGS} _byteorder.c -o _byteorder > /dev/null 2>&1 -util_byte_order=$(./_byteorder) -echo $util_byte_order - -rm -f _byteorder _byteorder.c - if [ $errors -gt 0 ]; then cat <