From: Charles McGarvey Date: Thu, 4 Mar 2010 00:21:59 +0000 (-0700) Subject: arch linux prefers pkgconfig for finding lua X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=ed5fcf5f1357fc42749408f705e9ec55531ff006;p=chaz%2Fyoink arch linux prefers pkgconfig for finding lua --- diff --git a/configure.ac b/configure.ac index 2f2bc1d..fa99616 100644 --- a/configure.ac +++ b/configure.ac @@ -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"