diff options
author | David Bremner <david@tethera.net> | 2014-01-27 10:12:12 -0400 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-04-08 07:27:14 -0300 |
commit | af5c3afa91cc29268c6754ea70f15cae30f22403 (patch) | |
tree | cc1fe830310c9debb7de0a19f707c06858479697 /configure | |
parent | 134dbadaf517c6962c2588f36f1f8782277e2f95 (diff) |
compat: add canonicalize_file_name
the POSIX 2008 behaviour of realpath is not available everywhere so we
provide a simple wrapper function. We use (and provide) the gnu
extension canonicalize_file_name to make it cleaner to test for the
feature we need; otherwise we have to rely on realpath segfaulting if
the second argument is null.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -556,6 +556,18 @@ EOF exit 1 fi +printf "Checking for canonicalize_file_name... " +if ${CC} -o compat/have_canonicalize_file_name "$srcdir"/compat/have_canonicalize_file_name.c > /dev/null 2>&1 +then + printf "Yes.\n" + have_canonicalize_file_name=1 +else + printf "No (will use our own instead).\n" + have_canonicalize_file_name=0 +fi +rm -f compat/have_canonicalize_file_name + + printf "Checking for getline... " if ${CC} -o compat/have_getline "$srcdir"/compat/have_getline.c > /dev/null 2>&1 then @@ -802,6 +814,10 @@ zsh_completion_dir = ${ZSHCOMLETIONDIR:=\$(prefix)/share/zsh/functions/Completio # Whether the getline function is available (if not, then notmuch will # build its own version) +HAVE_CANONICALIZE_FILE_NAME = ${have_canonicalize_file_name} + +# Whether the getline function is available (if not, then notmuch will +# build its own version) HAVE_GETLINE = ${have_getline} # Whether the strcasestr function is available (if not, then notmuch will |