Correct $withval usage in configure

This commit is contained in:
Allen Byrne
2018-09-20 10:15:12 -05:00
parent a2da8fc776
commit 2862c93a2b

View File

@@ -1261,8 +1261,8 @@ AC_ARG_WITH([dmalloc],
[Use dmalloc memory debugging aid [default=no]])],, [Use dmalloc memory debugging aid [default=no]])],,
[withval=no]) [withval=no])
case $withval in case "X-$withval" in
yes) X-yes)
HAVE_DMALLOC="yes" HAVE_DMALLOC="yes"
AC_CHECK_HEADERS([dmalloc.h],, [unset HAVE_DMALLOC]) AC_CHECK_HEADERS([dmalloc.h],, [unset HAVE_DMALLOC])
if test "x$HAVE_DMALLOC" = "xyes"; then if test "x$HAVE_DMALLOC" = "xyes"; then
@@ -1272,7 +1272,7 @@ case $withval in
AC_MSG_ERROR([couldn't find dmalloc library]) AC_MSG_ERROR([couldn't find dmalloc library])
fi fi
;; ;;
no) X-|X-no|X-none)
HAVE_DMALLOC="no" HAVE_DMALLOC="no"
AC_MSG_CHECKING([for dmalloc library]) AC_MSG_CHECKING([for dmalloc library])
AC_MSG_RESULT([suppressed]) AC_MSG_RESULT([suppressed])
@@ -1340,8 +1340,8 @@ AC_ARG_WITH([zlib],
filter [default=yes]])],, filter [default=yes]])],,
[withval=yes]) [withval=yes])
case $withval in case "X-$withval" in
yes) X-yes)
HAVE_ZLIB="yes" HAVE_ZLIB="yes"
AC_CHECK_HEADERS([zlib.h], [HAVE_ZLIB_H="yes"], [unset HAVE_ZLIB]) AC_CHECK_HEADERS([zlib.h], [HAVE_ZLIB_H="yes"], [unset HAVE_ZLIB])
if test "x$HAVE_ZLIB" = "xyes" -a "x$HAVE_ZLIB_H" = "xyes"; then if test "x$HAVE_ZLIB" = "xyes" -a "x$HAVE_ZLIB_H" = "xyes"; then
@@ -1355,7 +1355,7 @@ case $withval in
AC_CHECK_FUNC([compress2], [HAVE_COMPRESS2="yes"]) AC_CHECK_FUNC([compress2], [HAVE_COMPRESS2="yes"])
fi fi
;; ;;
no) X-|X-no|X-none)
HAVE_ZLIB="no" HAVE_ZLIB="no"
AC_MSG_CHECKING([for zlib]) AC_MSG_CHECKING([for zlib])
AC_MSG_RESULT([suppressed]) AC_MSG_RESULT([suppressed])
@@ -1434,8 +1434,8 @@ AC_ARG_WITH([szlib],
filter [default=no]])],, filter [default=no]])],,
[withval=no]) [withval=no])
case $withval in case "X-$withval" in
yes) X-yes)
HAVE_SZLIB="yes" HAVE_SZLIB="yes"
AC_CHECK_HEADERS([szlib.h], [HAVE_SZLIB_H="yes"], [unset HAVE_SZLIB]) AC_CHECK_HEADERS([szlib.h], [HAVE_SZLIB_H="yes"], [unset HAVE_SZLIB])
if test "x$HAVE_SZLIB" = "xyes" -a "x$HAVE_SZLIB_H" = "xyes"; then if test "x$HAVE_SZLIB" = "xyes" -a "x$HAVE_SZLIB_H" = "xyes"; then
@@ -1445,7 +1445,7 @@ case $withval in
AC_MSG_ERROR([couldn't find szlib library]) AC_MSG_ERROR([couldn't find szlib library])
fi fi
;; ;;
no) X-|X-no|X-none)
HAVE_SZLIB="no" HAVE_SZLIB="no"
AC_MSG_CHECKING([for szlib]) AC_MSG_CHECKING([for szlib])
AC_MSG_RESULT([suppressed]) AC_MSG_RESULT([suppressed])