]> Dogcows Code - chaz/yoink/commitdiff
arch linux prefers pkgconfig for finding lua
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 4 Mar 2010 00:21:59 +0000 (17:21 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 4 Mar 2010 00:21:59 +0000 (17:21 -0700)
configure.ac

index 2f2bc1d5874cd9f9342358d09b5cd4cd8f0af3ee..fa996164497112097c86a85f632056a99f660e60 100644 (file)
@@ -264,12 +264,12 @@ AC_SEARCH_LIBS([alEnable], [openal OpenAL32],,
 
 ##### liblua #####
 website="http://www.lua.org/"
-AC_CHECK_HEADERS([lua.h],,
-                                [missing=yes
-                                 echo "***** Missing lua headers ($website) *****"])
-AC_SEARCH_LIBS([lua_load], [lua],,
-                          [missing=yes
-                               echo "***** Missing liblua ($website) *****"])
+PKG_CHECK_MODULES([LUA], [lua],
+                                 [LIBS="$LIBS $LUA_LIBS"
+                                  CFLAGS="$CFLAGS $LUA_CFLAGS"
+                                  CXXFLAGS="$CXXFLAGS $LUA_CFLAGS"],
+                                 [missing=yes
+                                  echo "***** Missing liblua ($website) *****"])
 
 ##### libpng #####
 website="http://www.libpng.org/pub/png/libpng.html"
This page took 0.022463 seconds and 4 git commands to generate.