6078602c8b
For static linking the first parameter of AC_ARG_ENABLE_BACKEND() becomes relevant: it must name the sync*.la file.
19 lines
848 B
Plaintext
19 lines
848 B
Plaintext
dnl -*- mode: Autoconf; -*-
|
|
dnl Invoke autogen.sh to produce a configure script.
|
|
|
|
dnl Check for calendar-backend
|
|
PKG_CHECK_MODULES(MCALB, calendar-backend, MCALBFOUND=yes, [MCALBFOUND=no])
|
|
AC_SUBST(MCALB_CFLAGS)
|
|
AC_SUBST(MCALB_LIBS)
|
|
BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $MCALB_CFLAGS"
|
|
|
|
AC_ARG_ENABLE_BACKEND(maemocal, maemo,
|
|
AS_HELP_STRING([--enable-maemo-calendar],
|
|
[enable access to PIM data stored in Maemo 5 calendar application (default off)]),
|
|
[enable_maemocal="$enableval"], [enable_maemocal="no"])
|
|
|
|
if test "$enable_maemocal" = "yes"; then
|
|
test "x${MCALBFOUND}" == "xyes" || AC_MSG_ERROR([--enable-maemo-calendar requires pkg-config information for calendar-backend, which was not found])
|
|
AC_DEFINE(ENABLE_MAEMO_CALENDAR, 1, [Maemo 5 calendar available])
|
|
fi
|