From 7eeea6e113e135e986d951798fd6e9bd82fb0e79 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 13 May 2019 07:30:21 +0200 Subject: use AS_CASE/AS_IF --- configure.ac | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2d81eb2..53c802b 100644 --- a/configure.ac +++ b/configure.ac @@ -129,23 +129,20 @@ AS_CASE(["$target_os"], AC_ARG_WITH(plibc, [ --with-plibc=PFX Base of PliBC installation], [AC_MSG_RESULT([$with_plibc]) - case $with_plibc in - no) - ;; - yes) + AS_CASE([$with_plibc], + [no],[], + [yes],[ AC_CHECK_HEADERS([plibc.h], AC_CHECK_LIB([plibc], [plibc_init], plibc=1)) - ;; - *) + ],[ AM_LDFLAGS="-L$with_plibc/lib $AM_LDFLAGS" AM_CPPFLAGS="-I$with_plibc/include $AM_CPPFLAGS" AC_CHECK_HEADERS([plibc.h], AC_CHECK_LIB([plibc], [plibc_init], EXT_LIB_PATH="-L$with_plibc/lib $EXT_LIB_PATH" plibc=1)) - ;; - esac + ]) ], [AC_MSG_RESULT([--with-plibc not specified]) AM_LDFLAGS="-L/usr/lib $AM_LDFLAGS" -- cgit v1.2.3