1 diff -urN celestia-1.4.1.orig/configure.in celestia-1.4.1.mod/configure.in
2 --- celestia-1.4.1.orig/configure.in 2006-02-03 19:09:54.000000000 +0100
3 +++ celestia-1.4.1.mod/configure.in 2006-06-29 21:41:44.159248250 +0200
5 dnl (this is a silly trick to make configure behave)
6 AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, test "x" = "y")
10 if (test "$ui_gtk" != "no"); then
13 dnl GNOME is an extension to the GTK options
14 if (test "$ui_gnome" = "yes"); then
19 - AC_HELP_STRING([--with-lua[=DIR]],
20 + AC_HELP_STRING([--with-lua],
21 [Use Lua for Celestia Extension Language support]),
22 - enable_lua="$withval",
26 -AC_ARG_WITH([lua-inc],
27 - AC_HELP_STRING([--with-lua-includes[=DIR]],
28 - [Specify location of Lua headers]),
29 - lua_includes="$withval",
32 -AC_ARG_WITH([lua-lib],
33 - AC_HELP_STRING([--with-lua-libs[=DIR]],
34 - [Specify location of Lua libs]),
35 - lua_libs="$withval",
38 -AC_MSG_CHECKING([whether to enable Celestia Extension Language])
39 -if (test "$enable_lua" != "no"); then
40 - CXXFLAGS="$CXXFLAGS -DCELX"
41 - LDFLAGS="$LDFLAGS -llualib -llua"
43 - if (test "$lua_includes" != "no"); then
44 - CXXFLAGS="$CXXFLAGS -I$lua_includes"
47 - if (test "$lua_libs" != "no"); then
48 - LIBS="$LIBS -L$lua_libs"
52 - if (test "$enable_lua" != "yes"); then
53 - CXXFLAGS="$CXXFLAGS -I$enable_lua/include"
54 - LIBS="$LIBS -L$enable_lua/lib"
58 +if (test "x$enable_lua" = "xyes"); then
59 + PKG_CHECK_MODULES(LUA, lua,
60 + CXXFLAGS="$CXXFLAGS -DCELX $LUA_CFLAGS"
61 + LIBS="$LIBS $LUA_LIBS")
63 AM_CONDITIONAL(ENABLE_CELX, test "$enable_lua" != "no")