summaryrefslogtreecommitdiffstats
path: root/m4/pdns_check_lua_hpp.m4
blob: 7cc8f5e8f6d2f44f17057eee789a3489eb369927 (plain)
1
2
3
4
5
6
7
8
9
10
AC_DEFUN([PDNS_CHECK_LUA_HPP],[
  AC_REQUIRE([PDNS_WITH_LUA])
  AS_IF([test "x$LUAPC" != "x" ], [
    OLD_CPPFLAGS="$CPPFLAGS"
    CPPFLAGS="$CPPFLAGS $LUA_CFLAGS"
    AC_CHECK_HEADER([lua.hpp], [ have_lua_hpp=y ])
    CPPFLAGS="$OLD_CPPFLAGS"
  ])
  AM_CONDITIONAL([HAVE_LUA_HPP], [ test x"$have_lua_hpp" = "xy" ])
])