diff options
author | David Champion <dgc@bikeshed.us> | 2011-06-29 11:57:12 -0500 |
---|---|---|
committer | David Champion <dgc@bikeshed.us> | 2011-06-29 11:57:12 -0500 |
commit | 402f1aee7bfdec21c34a2de348a7b6b5f15d11ee (patch) | |
tree | 4b62e8c8a9f05bbabc8c8cca17fa4ccb8834d1cf /configure.ac | |
parent | f3c5bf2fb098cd66d53bd24567d21c2ae4758de0 (diff) |
version.sh: support building outside of source directory
Reported by Emanuele Giaquinta <e.giaquinta@glauco.it>. Thanks also
to Michael Elkins <me@sigpipe.org>.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index bbcf5f8e..f4609172 100644 --- a/configure.ac +++ b/configure.ac @@ -7,11 +7,11 @@ AC_PREREQ([2.54]) AC_INIT([mutt.h]) AM_CONFIG_HEADER([config.h]) -mutt_cv_version=`cat $srcdir/VERSION` +mutt_cv_version=`cat "$srcdir/VERSION"` AM_INIT_AUTOMAKE(mutt, $mutt_cv_version) AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/VERSION']) -MUTT_VERSION=`sh ./version.sh` +MUTT_VERSION=`env HGROOT="$srcdir" sh "$srcdir/version.sh"` AC_DEFINE_UNQUOTED(MUTT_VERSION,"$MUTT_VERSION", [Full textual version string.]) AC_GNU_SOURCE |