]> git.pld-linux.org Git - packages/ptlib.git/blob - ptlib-lua.patch
8ef789e88644c0cbe446b0bd9e5fd5c6889066ab
[packages/ptlib.git] / ptlib-lua.patch
1 --- ptlib-2.10.11/ptlib.m4.orig 2013-08-15 01:20:33.000000000 +0200
2 +++ ptlib-2.10.11/ptlib.m4      2015-08-01 22:00:11.565907729 +0200
3 @@ -472,17 +472,19 @@
4  
5            AC_CHECK_HEADERS([lua.h], [ptlib_lua=yes], [ptlib_lua=no])
6            if test "x${ptlib_lua}" = "xyes" ; then
7 -            AC_CHECK_LIB([lua], [lua_newstate], [ptlib_lua=yes], [ptlib_lua=no])
8 +            AC_CHECK_LIB([lua5.2], [lua_newstate], [ptlib_lua=lua5.2], [
9 +            AC_CHECK_LIB([lua51], [lua_newstate], [ptlib_lua=lua51], [
10 +            AC_CHECK_LIB([lua], [lua_newstate], [ptlib_lua=lua], [ptlib_lua=no])])])
11            fi
12  
13            LIBS="$old_LIBS"
14            CPPFLAGS="$old_CPPFLAGS"
15  
16 -          if test "x${ptlib_lua}" = "xyes" ; then
17 -            LUA_LIBS="-llua ${ptlib_lua_libs}"
18 +          if test "x${ptlib_lua}" != "xno" ; then
19 +            LUA_LIBS="-l${ptlib_lua} ${ptlib_lua_libs}"
20              LUA_CFLAGS="${ptlib_lua_cflags}"
21            fi
22 -          AS_IF([test AS_VAR_GET([ptlib_lua]) = yes], [$1], [$2])[]
23 +          AS_IF([test AS_VAR_GET([ptlib_lua]) != no], [$1], [$2])[]
24           ])
25  
26  
This page took 0.042499 seconds and 2 git commands to generate.