aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2019-11-16 00:10:27 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2019-11-16 00:10:27 (GMT)
commitcae95a6efb8cf2b842c04e805d3a2de728d63ec6 (patch)
treeca86b2e040674741fe9054485ae48288e9bfa0d5
parentf01c24749606da01b21ba9f028ce377570da20f0 (diff)
downloadpowwow-cae95a6efb8cf2b842c04e805d3a2de728d63ec6.zip
powwow-cae95a6efb8cf2b842c04e805d3a2de728d63ec6.tar.gz
powwow-cae95a6efb8cf2b842c04e805d3a2de728d63ec6.tar.bz2
fix comma placement for AC_CHECK_FUNC(regcomp) in libc regcomp check
-rw-r--r--configure.ac14
1 files changed, 8 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 8909021..0c4381e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,13 +137,15 @@ else
AC_DEFINE(USE_REGEXP)
if test "x${enable_regex_using}" = "xpcreposix"; then
- AC_DEFINE(USE_REGEXP_PCREPOSIX)
- AC_CHECK_LIB(pcreposix, regcomp
- ,,AC_MSG_ERROR([*** pcreposix library not found])
+ AC_CHECK_LIB(pcreposix, regcomp,
+ AC_MSG_RESULT([Using pcreposix regcomp])
+ AC_DEFINE(USE_REGEXP_PCREPOSIX),
+ AC_MSG_ERROR([*** pcreposix library not found])
)
- elif test "x${enable_regex_using}" = "libc"; then
- AC_CHECK_FUNC(regcomp
- ,,AC_MSG_ERROR([*** regcomp not found in libc])
+ elif test "x${enable_regex_using}" = "xlibc"; then
+ AC_CHECK_FUNC(regcomp,
+ AC_MSG_RESULT([Using libc regcomp]),
+ AC_MSG_ERROR([*** regcomp not found in libc])
)
else
AC_MSG_ERROR([*** unknown regex option: $enable_regex_using])