From: Fredrik Tolf Date: Wed, 26 Mar 2014 01:04:39 +0000 (+0100) Subject: Remove Bash dependencies from configure script. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=8d8c739fc25e302e0d9c490a15f7eca11bf4654b;p=doldaconnect.git Remove Bash dependencies from configure script. --- diff --git a/acinclude.m4 b/acinclude.m4 index 493f374..9f24860 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -55,7 +55,7 @@ AC_DEFUN([DOLDA_ENABLE],[dnl AC_ARG_ENABLE([$1], [$2]) if test "[$enable_][$1]" = yes; then for var in [$4]; do - if test "${!var}" != yes; then + if test "$(eval "echo \$$var")" != yes; then AC_MSG_ERROR([*** cannot enable $1 without $var]) fi done @@ -63,7 +63,7 @@ elif test -z "[$enable_][$1]"; then ifelse([$3], yes, [dnl [enable_][$1]=yes for var in [$4]; do - if test "${!var}" != yes; then + if test "$(eval "echo \$$var")" != yes; then [enable_][$1]=no break fi