From 515db853f6631e92b5950bcedf392db2d35e919a Mon Sep 17 00:00:00 2001 From: mpeterv Date: Sun, 6 Dec 2015 21:53:59 +0300 Subject: Fix find_program() in configure which returns path to the program, not to the directory containing it. That causes errors when configuring without --with-lua. The fix is to apply 'dirname' if 'command -v' was a success. --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8b99b2ae..75ba4039 100755 --- a/configure +++ b/configure @@ -71,7 +71,11 @@ EOF # Helper functions find_program() { - command -v "$1" 2>/dev/null + prog=`command -v "$1" 2>/dev/null` + if [ -n "$prog" ] + then + dirname "$prog" + fi } die() { -- cgit v1.2.3-55-g6feb