From 94fd93a0c45d6e991a9e6686b43b58272c17dcbf Mon Sep 17 00:00:00 2001 From: Richard Burke Date: Mon, 21 Mar 2016 23:45:58 +0000 Subject: Remove bashisms from configure script. --- configure | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 22e0446..91b5f7c 100755 --- a/configure +++ b/configure @@ -204,9 +204,9 @@ LDFLAGS_STD="-lc" OS=$(uname) case "$OS" in -*BSD) CFLAGS_STD+=-D_DARWIN_C_SOURCE ;; -Darwin) CFLAGS_STD+=-D_BSD_SOURCE ;; -AIX) CFLAGS_STD+=-D_ALL_SOURCE ;; +*BSD) CFLAGS_STD="$CFLAGS_STD -D_DARWIN_C_SOURCE" ;; +Darwin) CFLAGS_STD="$CFLAGS_STD -D_BSD_SOURCE" ;; +AIX) CFLAGS_STD="$CFLAGS_STD -D_ALL_SOURCE" ;; esac tryflag CFLAGS_AUTO -pipe @@ -349,7 +349,10 @@ EOF done test "$lua" = "yes" -a $CONFIG_LUA -ne 1 && fail "$0: cannot find liblua" - test $CONFIG_LUA -eq 1 && CFLAGS_LUA+=" -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_ALL" + + if test $CONFIG_LUA -eq 1; then + CFLAGS_LUA="$CFLAGS_LUA -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_ALL" + fi fi CONFIG_ACL=0 -- cgit v1.2.3