summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRalf Corsépius <corsepiu@fedoraproject.org>2007-08-13 07:30:28 +0200
committerRalf Corsépius <corsepiu@fedoraproject.org>2007-08-13 07:30:28 +0200
commit25cc40bfa55f876f8ebb0ddbcaf802648bdf8ae5 (patch)
tree475d6669215ca4c726344e9b606f8dcf0d71b684 /configure.ac
parente0088ef0755aa9782c11adb3c9f73579a7920e5f (diff)
downloadrpm-25cc40bfa55f876f8ebb0ddbcaf802648bdf8ae5.tar.gz
rpm-25cc40bfa55f876f8ebb0ddbcaf802648bdf8ae5.tar.bz2
rpm-25cc40bfa55f876f8ebb0ddbcaf802648bdf8ae5.zip
Clean up --with-lua.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 5cb8b4b84..337a19709 100644
--- a/configure.ac
+++ b/configure.ac
@@ -845,13 +845,12 @@ AC_SUBST(WITH_SELINUX_LIB)
WITH_LUA_LIB=
WITH_LUA_INCLUDE=
-withval=yes
-AC_ARG_WITH(lua, [ --with-lua build with lua support ])
-if test $withval != no -a -d lua ; then
+AC_ARG_WITH(lua, [ --with-lua build with lua support ],,[with_lua=yes])
+AS_IF([test "$with_lua" = yes],[
AC_DEFINE(WITH_LUA, 1, [Build with lua support?])
WITH_LUA_INCLUDE="-I\${top_srcdir}/lua/include -I\${top_srcdir}/lua/local"
WITH_LUA_LIB="\$(top_builddir)/lua/liblua.la"
-fi
+])
AC_SUBST(WITH_LUA_LIB)
AC_SUBST(WITH_LUA_INCLUDE)