make qtdom compile on Mandrake-cooker

This commit is contained in:
Thies C. Arntzen 2001-03-20 19:19:31 +00:00
parent 00b8f898e7
commit deae9549c8

View File

@ -10,12 +10,23 @@ case "$withval" in
no)
AC_MSG_RESULT(no) ;;
yes)
AC_MSG_RESULT(yes)
AC_ADD_LIBRARY_WITH_PATH(qt, $QTDIR/lib)
AC_ADD_INCLUDE($QTDIR/include)
AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom])
PHP_EXTENSION(qtdom, $ext_shared)
PHP_REQUIRE_CXX
if test -f $QTDIR/include/qdom.h; then
AC_MSG_RESULT(yes)
AC_ADD_LIBRARY_WITH_PATH(qt, $QTDIR/lib)
AC_ADD_INCLUDE($QTDIR/include)
AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom])
PHP_EXTENSION(qtdom, $ext_shared)
PHP_REQUIRE_CXX
elif test -f /usr/lib/qt2/include/qdom.h; then
AC_MSG_RESULT(yes)
AC_ADD_LIBRARY(qt)
AC_ADD_INCLUDE(/usr/lib/qt2/include)
AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom])
PHP_EXTENSION(qtdom, $ext_shared)
PHP_REQUIRE_CXX
else
AC_MSG_RESULT(no)
fi
;;
esac
],[