4a9232d6ee
== is a bashism which fails in dash. Kudos to Jussi for reporting the problem and the initial patch.
19 lines
847 B
Plaintext
19 lines
847 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
|