summaryrefslogtreecommitdiff
blob: a88839728c531b4f17afa40538f09fb4dcc27643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- a/configure.ac
+++ b/configure.ac
@@ -401,24 +401,11 @@
 ])
 
 AQUALUNG_DETECT([lua], [Lua Extension],
-    [PKG_CHECK_MODULES([lua], [lua5.2],
+    [PKG_CHECK_MODULES([lua], [lua],
         [AQUALUNG_FOUND([lua])],
-        [PKG_CHECK_MODULES([lua], [lua-5.2],
-            [AQUALUNG_FOUND([lua])],
-            [PKG_CHECK_MODULES([lua], [lua52],
-                [AQUALUNG_FOUND([lua])],
-                [PKG_CHECK_MODULES([lua], [lua5.1],
-                    [AQUALUNG_FOUND([lua])],
-                    [PKG_CHECK_MODULES([lua], [lua-5.1],
-                        [AQUALUNG_FOUND([lua])],
-                        [PKG_CHECK_MODULES([lua], [lua51],
-                            [AQUALUNG_FOUND([lua])],
-                            [PKG_CHECK_MODULES([lua], [lua >= 5.2],
-                                [AQUALUNG_FOUND([lua])],
-                                    [PKG_CHECK_MODULES([lua], [lua >= 5.1],
-                                    [AQUALUNG_FOUND([lua])],
-                                [AQUALUNG_MISSING([lua], [$lua_PKG_ERRORS])])])])])])])])])])
-
+        [AQUALUNG_MISSING([lua], [$lua_PKG_ERRORS])]
+    )]
+)
 
 # Compiler and linker variables.
 AS_VAR_IF([GCC], [yes], [CFLAGS="-Wall $CFLAGS"])