efl build - fix lua old support on debian
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 2 Aug 2017 07:54:56 +0000 (16:54 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 2 Aug 2017 08:01:12 +0000 (17:01 +0900)
didnt detect cflags properly. now it does.

@fix

configure.ac
m4/efl_lua_old.m4

index 8bb4395..7e4c177 100644 (file)
@@ -4815,7 +4815,7 @@ fi
 dnl EFL_OPTIONAL_INTERNAL_DEPEND_PKG([EDJE], [${want_physics}], [ephysics])
 
 if test "x${want_lua_old}" = "xyes"; then
-   EFL_CHECK_LUA_OLD([EDJE_LUA])
+   EFL_CHECK_LUA_OLD([EDJE])
 else
    PKG_CHECK_MODULES([EDJE_LUA], [luajit >= 2.0.0])
 fi
index ff8a33a..537a6f3 100644 (file)
@@ -25,6 +25,12 @@ if test "x${requirement_lua}" = "x"; then
       AC_MSG_ERROR([Missing lua 5.1 or 5.2 support])
    fi
 else
-   EFL_DEPEND_PKG([$1], [LUA], [${requirement_lua}])
+   req_found="no"
+   EFL_DEPEND_PKG([$1], [LUA], [${requirement_lua}],
+                  [ req_found="yes" ],
+                  [ req_found="no" ])
+   if test "x${req_found}" = "xyes"; then
+      PKG_CHECK_MODULES([$1]_LUA, [${requirement_lua}])
+   fi
 fi
 ])