# HG changeset patch # User Matt Johnston # Date 1519832577 -28800 # Node ID 86e4995bbedfec3741f3b5322ee9ebc26a585795 # Parent 1cbb7b3d670315a44ba70fad9e947e4c9bfcbd71 more portable for `which hg` test diff -r 1cbb7b3d6703 -r 86e4995bbedf configure.ac --- a/configure.ac Wed Feb 28 22:12:05 2018 +0800 +++ b/configure.ac Wed Feb 28 23:42:57 2018 +0800 @@ -10,7 +10,7 @@ AC_CONFIG_SRCDIR(buffer.c) # Record which revision is being built -if which -s hg && test -d "$srcdir/.hg"; then +if test -s "`which hg`" && test -d "$srcdir/.hg"; then hgrev=`hg id -i -R "$srcdir"` AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev]) fi