Automatic check for oaf. Thanks ettore, you rule!

svn path=/trunk/; revision=2715
This commit is contained in:
Anders Carlsson
2000-05-01 17:48:01 +00:00
parent 88c3bbaecb
commit 0b889518d2
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-05-01 Anders Carlsson <andersca@gnu.org>
* configure.in: Check if bonobo uses oaf, so you don't
need to specify --enable-oaf.
2000-04-27 Ettore Perazzoli <ettore@helixcode.com>
* acconfig.h: New configured #define `USING_OAF'.

View File

@ -327,8 +327,14 @@ dnl ******************************
dnl Whether to use OAF
dnl ******************************
AC_ARG_ENABLE(oaf,
[ --enable-oaf=[no/yes] Use OAF instead of GOAD.],,enable_oaf=no)
AC_MSG_CHECKING(if Bonobo uses OAF)
if ( gnome-config --libs bonobo | grep oaf ) > /dev/null 2>&1 ; then
enable_oaf="yes"
else
enable_oaf="no"
fi
AC_MSG_RESULT("$enable_oaf")
if test "x$enable_oaf" = "xyes"; then
AC_PATH_PROG(OAF_CONFIG,oaf-config,no)