From: David Bremner Date: Tue, 21 Feb 2017 12:16:07 +0000 (-0400) Subject: Merge branch 'release' X-Git-Tag: 0.24_rc0~38 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=9951598d11f9e883374d295f886009cdb64d8f63;hp=-c Merge branch 'release' Merge changes to use gpgconf --create-socketdir --- 9951598d11f9e883374d295f886009cdb64d8f63 diff --combined configure index fa77eb8f,46063b5d..d0d8f18a --- a/configure +++ b/configure @@@ -70,7 -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 @@@ -142,7 -141,6 +142,7 @@@ Some features can be disabled (--with-f --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 @@@ -211,14 -209,6 +211,14 @@@ for option; d 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 @@@ -612,16 -602,19 +612,29 @@@ if [ $WITH_DOCS = "1" ] ; the 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 + printf "Yes.\n" + have_gpgconf_socketdir=1 + else + printf "No.\n" + fi + else + printf "No. (missing or broken gpgconf?)\n" + fi + +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" + else + printf "No (so will not install .desktop file).\n" + WITH_DESKTOP=0 + fi +fi + libdir_in_ldconfig=0 printf "Checking which platform we are on... " @@@ -680,6 -673,19 +693,6 @@@ els 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 </dev/null ; then test_ok_ else testname=$this_test.$test_count + basename1=`basename "$file1"` + basename2=`basename "$file2"` cp "$file1" "$testname.$basename1" cp "$file2" "$testname.$basename2" test_failure_ "$(diff -u "$testname.$basename1" "$testname.$basename2")" @@@ -1277,6 -1285,11 +1286,11 @@@ test_init_ () . ./test-lib-common.sh || exit 1 + # we need the setting of GNUPGHOME in test-lib-common.sh + if [ ${NOTMUCH_HAVE_GPGCONF_SOCKETDIR} = 1 ]; then + gpgconf --create-socketdir + fi + emacs_generate_script @@@ -1380,7 -1393,7 +1394,7 @@@ esa test_declare_external_prereq dtach test_declare_external_prereq emacs test_declare_external_prereq ${TEST_EMACSCLIENT} -test_declare_external_prereq gdb +test_declare_external_prereq ${TEST_GDB} test_declare_external_prereq gpg test_declare_external_prereq openssl test_declare_external_prereq gpgsm