X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=configure;h=40538e14eec0f3aa9263eeb4b0d1b84282837429;hb=5bc4ff4e1d31ddd45ac7e2638109c5e502c71836;hp=095a476e55faf256c5847a809f7d542146639a29;hpb=cbcc3454aee63c26864428039ea688c5eb3e6be0;p=notmuch diff --git a/configure b/configure index 095a476e..40538e14 100755 --- a/configure +++ b/configure @@ -6,6 +6,7 @@ CC=${CC:-gcc} CXX=${CXX:-g++} CFLAGS=${CFLAGS:--O2} CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} +LDFLAGS=${LDFLAGS:-} XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config-1.1 xapian-config} # We don't allow the EMACS or GZIP Makefile variables inherit values @@ -77,7 +78,9 @@ Additional options are accepted for compatibility with other configure-script calling conventions, but don't do anything yet: --build=-- Currently ignored + --host=-- Currently ignored --infodir=DIR Currently ignored + --datadir=DIR Currently ignored --localstatedir=DIR Currently ignored --libexecdir=DIR Currently ignored --disable-maintainer-mode Currently ignored @@ -119,8 +122,26 @@ for option; do build_option=${build_option#*-} build_vendor=${build_option%%-*} build_os=${build_option#*-} + elif [ "${option%%=*}" = '--host' ] ; then + host_option="${option#*=}" + case ${host_option} in + *-*-*) ;; + *) + echo "Unrecognized value for --host option: ${host_option}" + echo "Should be: --" + echo "See:" + echo " $0 --help" + echo "" + exit 1 + esac + host_cpu=${host_option%%-*} + host_option=${host_option#*-} + host_vendor=${host_option%%-*} + host_os=${host_option#*-} elif [ "${option%%=*}" = '--infodir' ] ; then true + elif [ "${option%%=*}" = '--datadir' ] ; then + true elif [ "${option%%=*}" = '--localstatedir' ] ; then true elif [ "${option%%=*}" = '--libexecdir' ] ; then @@ -170,7 +191,7 @@ printf "Checking for Xapian development files... " have_xapian=0 for xapian_config in ${XAPIAN_CONFIG}; do if ${xapian_config} --version > /dev/null 2>&1; then - printf "Yes.\n" + printf "Yes (%s).\n" $(${xapian_config} --version | sed -e 's/.* //') have_xapian=1 xapian_cxxflags=$(${xapian_config} --cxxflags) xapian_ldflags=$(${xapian_config} --libs) @@ -237,15 +258,26 @@ else have_emacs=0 fi -printf "Checking for Mac OS X (for shared library)... " +printf "Checking which platform we are on... " if [ `uname` = "Darwin" ] ; then - printf "Yes.\n" - mac_os_x=1 + printf "Mac OS X.\n" + platform=MACOSX linker_resolves_library_dependencies=0 -else - printf "No.\n" - mac_os_x=0 +elif [ `uname` = "SunOS" ] ; then + printf "Solaris.\n" + platform=SOLARIS + linker_resolves_library_dependencies=0 +elif [ `uname` = "Linux" ] ; then + printf "Linux\n" + platform=LINUX linker_resolves_library_dependencies=1 +else + printf "Unknown.\n" + cat <