dnl -*- mode: Autoconf; -*-
dnl Invoke autogen.sh to produce a configure script.

# BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."

AC_ARG_ENABLE_BACKEND(qtcontacts,
                      qtcontacts,
                      AS_HELP_STRING([--enable-qtcontacts],
                                     [enable support for QtMobility's QtContacts storage]),
		      [enable_qtcontacts="$enableval"],
                      [enable_qtcontacts="no"]
                      )

if test "$enable_qtcontacts" = "yes"; then
        AC_DEFINE(ENABLE_QTCONTACTS, 1, [QtContacts available])
        # AC_WITH_QT() will be called in configure-post if need_qt_modules is not empty,
        # setting QT_* flags.
        need_qt_modules="$need_qt_modules +gui" # GUI needed for QVersit
        qt_config="$qt_config +mobility"
        qt_misc="$qt_misc
MOBILITY += contacts versit"
fi
AC_SUBST(QT_CONTACTS_LIBS)
