]> granicus.if.org Git - apache/commitdiff
accept both 5.1 and 5.2, so make messages clear
authorJim Jagielski <jim@apache.org>
Thu, 17 Sep 2015 15:01:38 +0000 (15:01 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 17 Sep 2015 15:01:38 +0000 (15:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1703642 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/config.m4

index 8a778ce136458709ec763b96032f87b6315a3b6e..4c7dd2329aa4818c4843774769ca5660f353ab88 100644 (file)
@@ -1,7 +1,7 @@
 
 APACHE_MODPATH_INIT(lua)
 
-dnl Check for Lua 5.1 Libraries
+dnl Check for Lua 5.1/5.2 Libraries
 dnl CHECK_LUA(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
 dnl Sets:
 dnl  LUA_CFLAGS
@@ -109,7 +109,7 @@ for x in $test_paths ; do
         AC_MSG_RESULT([no])
     fi
 #
-# Why are we bothering looking for lua 5.2?
+# Shouldn't we look for 5.2 first??
 #
     AC_MSG_CHECKING([for lua.h in ${x}/include/lua-5.2])
     if test -f ${x}/include/lua-5.2/lua.h; then
@@ -198,13 +198,13 @@ AC_SUBST(LUA_LIBS)
 AC_SUBST(LUA_CFLAGS)
 
 if test -z "${LUA_LIBS}"; then
-  AC_MSG_WARN([*** Lua 5.1 library not found.])
+  AC_MSG_WARN([*** Lua 5.1 or 5.2 library not found.])
   ifelse([$2], ,
     enable_lua="no"
     if test -z "${lua_path}"; then
-        AC_MSG_WARN([Lua 5.1 library is required])
+        AC_MSG_WARN([Lua 5.1 or 5.2 library is required])
     else
-        AC_MSG_ERROR([Lua 5.1 library is required])
+        AC_MSG_ERROR([Lua 5.1 or 5.2 library is required])
     fi,
     $2)
 else