Fixed bug: #20458 (--with-qtdom=shared broken)

This commit is contained in:
foobar 2002-11-18 05:06:02 +00:00
parent 43584058e9
commit 6987855e95

View File

@ -2,33 +2,36 @@ dnl
dnl $Id$ dnl $Id$
dnl dnl
AC_MSG_CHECKING(whether to include QDOM support) PHP_ARG_WITH(qtdom, for QtDOM support,
AC_ARG_WITH(qtdom, [ --with-qtdom Include QtDOM support (requires Qt >= 2.2.0).])
[ --with-qtdom Include QtDOM support (requires Qt >= 2.2.0).],
[ if test "$PHP_QTDOM" != "no"; then
case $withval in case $PHP_QTDOM in
no)
AC_MSG_RESULT(no) ;;
yes) yes)
if test -f $QTDIR/include/qdom.h; then if test -f $QTDIR/include/qdom.h; then
AC_MSG_RESULT(yes) QTDOM_LIBDIR=$QTDIR/lib
PHP_ADD_LIBRARY_WITH_PATH(qt, $QTDIR/lib) QTDOM_INCDIR=$QTDIR/include
PHP_ADD_INCLUDE($QTDIR/include)
AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom])
PHP_NEW_EXTENSION(qtdom, qtdom.c qtdom_qt.cpp, $ext_shared)
PHP_REQUIRE_CXX
elif test -f /usr/lib/qt2/include/qdom.h; then elif test -f /usr/lib/qt2/include/qdom.h; then
AC_MSG_RESULT(yes) QTDOM_LIBDIR=/usr/lib
PHP_ADD_LIBRARY(qt) QTDOM_INCDIR=/usr/lib/qt2/include
PHP_ADD_INCLUDE(/usr/lib/qt2/include) fi
AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom]) ;;
PHP_NEW_EXTENSION(qtdom, qtdom.c qtdom_qt.cpp, $ext_shared) *)
PHP_REQUIRE_CXX if test -f $PHP_QTDOM/include/qdom.h; then
else QTDOM_LIBDIR=$PHP_QTDOM/lib
AC_MSG_RESULT(no) QTDOM_INCDIR=$PHP_QTDOM/include
fi fi
;; ;;
esac esac
],[
AC_MSG_RESULT(no) if test -z "$QTDOM_INCDIR"; then
]) AC_MSG_ERROR([qdom.h not found.])
fi
PHP_ADD_LIBRARY_WITH_PATH(qt, $QTDOM_LIBDIR, QTDOM_SHARED_LIBADD)
PHP_ADD_INCLUDE($QTDOM_INCDIR)
PHP_NEW_EXTENSION(qtdom, qtdom.c qtdom_qt.cpp, $ext_shared)
PHP_SUBST(QTDOM_SHARED_LIBADD)
AC_DEFINE(HAVE_QTDOM, 1, [Whether you have qtdom])
PHP_REQUIRE_CXX
fi