aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2009-01-18 10:06:32 -0500
committerAvatar Mike Kelly <pioto@pioto.org> 2009-01-18 10:06:32 -0500
commit85bf661d895f01efeb8bc94b593a89af7bd86aca (patch)
tree3c9e271bbdc7ee70c09d763a830caa8023a007c3
parente448bb39265f3efe8db72ff024a8a97b5ec9b57a (diff)
downloadpaludis-85bf661d895f01efeb8bc94b593a89af7bd86aca.tar.gz
paludis-85bf661d895f01efeb8bc94b593a89af7bd86aca.tar.xz
Fix automatic config framework selection.
I hate posix shell... Apparently test -x "" is true...
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 1cb7da6..6b103f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1420,7 +1420,8 @@ AC_ARG_WITH([config-framework],
CONFIG_FRAMEWORK=auto)
if test x"$CONFIG_FRAMEWORK" = x"auto" ; then
- if test -x `which eclectic 2>/dev/null` ; then
+ eclectic=`which eclectic 2>/dev/null`
+ if test -n "$eclectic" && test -x "$eclectic" ; then
CONFIG_FRAMEWORK="eclectic"
else
CONFIG_FRAMEWORK="eselect"