X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=configure;h=ba2057643edea9a37823c9c9ffe3671bd5ad9380;hb=0f3480919728def0c414866f8e635e94650eee82;hp=5d254b3d97c09ab8ee047f4cd0b3719c3258909b;hpb=bf159bd829efb6aa73c68542949eb11d9a44d93c;p=notmuch diff --git a/configure b/configure index 5d254b3d..ba205764 100755 --- a/configure +++ b/configure @@ -8,6 +8,13 @@ CFLAGS=${CFLAGS:--O2} CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config-1.1 xapian-config} +# We don't allow the EMACS or GZIP Makefile variables inherit values +# from the environment as we do with CC and CXX above. The reason is +# that these names as environment variables have existing uses other +# than the program name that we want. (EMACS is set to 't' when a +# shell is running within emacs and GZIP specifies arguments to pass +# on the gzip command line). + # Set the defaults for values the user can specify with command-line # options. PREFIX=/usr/local @@ -168,6 +175,15 @@ else emacs_lispdir='$(prefix)/share/emacs/site-lisp' fi +printf "Checking if emacs is available... " +if emacs --quick --batch > /dev/null 2>&1; then + printf "Yes.\n" + have_emacs=1 +else + printf "No (so will not byte-compile emacs code)\n" + have_emacs=0 +fi + if [ $errors -gt 0 ]; then cat <