AC_SUBST(SOLIPA_CFLAGS)
AC_SUBST(SOLIPA_LIBS)
-PKG_CHECK_MODULES(CAMEL, camel-provider-1.2 >= 3, [camel3_found=yes], [camel3_found=no])
-
-if test x$camel3_found = xno; then
- PKG_CHECK_MODULES(CAMEL, camel-provider-1.2 >= 2.32)
+PKG_CHECK_MODULES(CAMEL, camel-1.2 >= 3.4, [camel34_found=yes], [camel34_found=no])
+
+camel3_found=no
+if test x$camel34_found = xno; then
+ PKG_CHECK_MODULES(CAMEL, camel-provider-1.2 >= 3, [camel3_found=yes], [camel3_found=no])
+
+ if test x$camel3_found = xno; then
+ PKG_CHECK_MODULES(CAMEL, camel-provider-1.2 >= 2.32)
+ fi
+ CAMEL_PKGCONFIG="camel-provider-1.2"
+else
+ CAMEL_PKGCONFIG="camel-1.2"
fi
AC_SUBST(CAMEL_CFLAGS)
AC_SUBST(CAMEL_LIBS)
+AC_SUBST(CAMEL34_FOUND)
+AM_CONDITIONAL(HAVE_CAMEL34, test $camel34_found = yes)
AC_SUBST(CAMEL3_FOUND)
AM_CONDITIONAL(HAVE_CAMEL3, test $camel3_found = yes)
+AC_SUBST(CAMEL_PKGCONFIG)
+
AC_CHECK_PROG(PYTHON_CFLAGS, [python-config], `python-config --cflags`, [-I/c/Python26/include])
AC_CHECK_PROG(PYTHON_LIBS, [python-config], `python-config --libs`, [-lpthread -lm -L/c/Python26/libs -lpython26])
AC_SUBST(PYTHON_CFLAGS)
Name: @PACKAGE_NAME@
Description: Classe con funzioni varie di utilità .
Version: @PACKAGE_VERSION@
-Requires: glib-2.0 gobject-2.0 libgdaex camel-provider-1.2 gtk+-2.0 libgtkform gio-2.0
+Requires: glib-2.0 gobject-2.0 libgdaex @CAMEL_PKGCONFIG@ gtk+-2.0 libgtkform gio-2.0
Libs: -L${libdir} -lsolipa
Cflags: -I${includedir}