X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=configure;h=acb90a8c610efdf24c5d472e6a2d1852b71dc391;hp=5602be247611558fdb1cc1f743e0ac3cf9239a82;hb=df6f3cdf9d421011090ccb50af9828f5903544ee;hpb=fae97b1013a18ad960aa0cd413154783409f310d diff --git a/configure b/configure index 5602be24..acb90a8c 100755 --- a/configure +++ b/configure @@ -1,7 +1,21 @@ #! /bin/sh +# Test whether this shell is capable of parameter substring processing. +( option='a/b'; : ${option#*/} ) 2>/dev/null || { + echo " +The shell interpreting '$0' is lacking some required features. + +To work around this problem you may try to execute: + + ksh $0 $* + or + bash $0 $* +" + exit 1 +} + # Store original IFS value so it can be changed (and restored) in many places. -readonly DEFAULT_IFS=$IFS +readonly DEFAULT_IFS="$IFS" srcdir=$(dirname "$0") @@ -360,6 +374,10 @@ elif [ $uname = "SunOS" ] ; then printf "Solaris.\n" platform=SOLARIS linker_resolves_library_dependencies=0 +elif [ $uname = "FreeBSD" ] ; then + printf "FreeBSD.\n" + platform=FREEBSD + linker_resolves_library_dependencies=0 elif [ $uname = "Linux" ] || [ $uname = "GNU" ] ; then printf "$uname\n" platform="$uname" @@ -649,7 +667,7 @@ HAVE_GETLINE = ${have_getline} # build its own version) HAVE_STRCASESTR = ${have_strcasestr} -# Supported platforms (so far) are: LINUX, MACOSX, SOLARIS +# Supported platforms (so far) are: LINUX, MACOSX, SOLARIS, FREEBSD PLATFORM = ${platform} # Whether the linker will automatically resolve the dependency of one