mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
Add support for the Solaris platform
Like on Mac OS X, the linker doesn't automatically resolve dependencies. Signed-off-by: Tomas Carnecky <tom@dbservice.com>
This commit is contained in:
parent
80d5d162be
commit
a54cecfc8e
2 changed files with 20 additions and 10 deletions
28
configure
vendored
28
configure
vendored
|
@ -258,15 +258,26 @@ else
|
||||||
have_emacs=0
|
have_emacs=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "Checking for Mac OS X (for shared library)... "
|
printf "Checking which platform we are on... "
|
||||||
if [ `uname` = "Darwin" ] ; then
|
if [ `uname` = "Darwin" ] ; then
|
||||||
printf "Yes.\n"
|
printf "Mac OS X.\n"
|
||||||
mac_os_x=1
|
platform=MACOSX
|
||||||
linker_resolves_library_dependencies=0
|
linker_resolves_library_dependencies=0
|
||||||
else
|
elif [ `uname` = "SunOS" ] ; then
|
||||||
printf "No.\n"
|
printf "Solaris.\n"
|
||||||
mac_os_x=0
|
platform=SOLARIS
|
||||||
|
linker_resolves_library_dependencies=0
|
||||||
|
elif [ `uname` = "Linux" ] ; then
|
||||||
|
printf "Linux\n"
|
||||||
|
platform=LINUX
|
||||||
linker_resolves_library_dependencies=1
|
linker_resolves_library_dependencies=1
|
||||||
|
else
|
||||||
|
printf "Unknown.\n"
|
||||||
|
cat <<EOF
|
||||||
|
|
||||||
|
*** Warning: Unknown platform. Notmuch might or might not build correctly.
|
||||||
|
|
||||||
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $errors -gt 0 ]; then
|
if [ $errors -gt 0 ]; then
|
||||||
|
@ -437,9 +448,8 @@ HAVE_GETLINE = ${have_getline}
|
||||||
# build its own version)
|
# build its own version)
|
||||||
HAVE_STRCASESTR = ${have_strcasestr}
|
HAVE_STRCASESTR = ${have_strcasestr}
|
||||||
|
|
||||||
# Whether we are building on OS X. This will affect how we build the
|
# Supported platforms (so far) are: LINUX, MACOSX, SOLARIS
|
||||||
# shared library.
|
PLATFORM = ${platform}
|
||||||
MAC_OS_X = ${mac_os_x}
|
|
||||||
|
|
||||||
# Whether the linker will automatically resolve the dependency of one
|
# Whether the linker will automatically resolve the dependency of one
|
||||||
# library on another (if not, then linking a binary requires linking
|
# library on another (if not, then linking a binary requires linking
|
||||||
|
|
|
@ -22,7 +22,7 @@ LIBNOTMUCH_VERSION_MINOR = 1
|
||||||
# simply compatible changes to the implementation).
|
# simply compatible changes to the implementation).
|
||||||
LIBNOTMUCH_VERSION_RELEASE = 0
|
LIBNOTMUCH_VERSION_RELEASE = 0
|
||||||
|
|
||||||
ifeq ($(MAC_OS_X),1)
|
ifeq ($(PLATFORM),MACOSX)
|
||||||
LIBRARY_SUFFIX = dylib
|
LIBRARY_SUFFIX = dylib
|
||||||
# On OS X, library version numbers go before suffix.
|
# On OS X, library version numbers go before suffix.
|
||||||
LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX)
|
LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX)
|
||||||
|
|
Loading…
Reference in a new issue