aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-05-13 07:30:21 +0200
committerChristian Grothoff <christian@grothoff.org>2019-05-13 07:30:21 +0200
commit7eeea6e113e135e986d951798fd6e9bd82fb0e79 (patch)
treeee4f0cc7e66308c3edb4a85d1ce1574bceac4dd3
parent7c8505b4ada1764085536bdbfeb80c7b44d04827 (diff)
downloadlibextractor-7eeea6e113e135e986d951798fd6e9bd82fb0e79.tar.gz
libextractor-7eeea6e113e135e986d951798fd6e9bd82fb0e79.zip
use AS_CASE/AS_IF
-rw-r--r--configure.ac13
1 files changed, 5 insertions, 8 deletions
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"],
129 AC_ARG_WITH(plibc, 129 AC_ARG_WITH(plibc,
130 [ --with-plibc=PFX Base of PliBC installation], 130 [ --with-plibc=PFX Base of PliBC installation],
131 [AC_MSG_RESULT([$with_plibc]) 131 [AC_MSG_RESULT([$with_plibc])
132 case $with_plibc in 132 AS_CASE([$with_plibc],
133 no) 133 [no],[],
134 ;; 134 [yes],[
135 yes)
136 AC_CHECK_HEADERS([plibc.h], 135 AC_CHECK_HEADERS([plibc.h],
137 AC_CHECK_LIB([plibc], [plibc_init], 136 AC_CHECK_LIB([plibc], [plibc_init],
138 plibc=1)) 137 plibc=1))
139 ;; 138 ],[
140 *)
141 AM_LDFLAGS="-L$with_plibc/lib $AM_LDFLAGS" 139 AM_LDFLAGS="-L$with_plibc/lib $AM_LDFLAGS"
142 AM_CPPFLAGS="-I$with_plibc/include $AM_CPPFLAGS" 140 AM_CPPFLAGS="-I$with_plibc/include $AM_CPPFLAGS"
143 AC_CHECK_HEADERS([plibc.h], 141 AC_CHECK_HEADERS([plibc.h],
144 AC_CHECK_LIB([plibc], [plibc_init], 142 AC_CHECK_LIB([plibc], [plibc_init],
145 EXT_LIB_PATH="-L$with_plibc/lib $EXT_LIB_PATH" 143 EXT_LIB_PATH="-L$with_plibc/lib $EXT_LIB_PATH"
146 plibc=1)) 144 plibc=1))
147 ;; 145 ])
148 esac
149 ], 146 ],
150 [AC_MSG_RESULT([--with-plibc not specified]) 147 [AC_MSG_RESULT([--with-plibc not specified])
151 AM_LDFLAGS="-L/usr/lib $AM_LDFLAGS" 148 AM_LDFLAGS="-L/usr/lib $AM_LDFLAGS"