$Log$
+Revision 400.81 2003/01/12 23:22:53 ajc
+* configure.in: check for libical v0.24 or newer
+
Revision 400.80 2003/01/07 04:56:17 ajc
* Complete the free/busy transparency handling in the form
* Default times for new events are now in the correct timezone
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
)])
fi
-if test "x$ok_libical" != xno ; then
- LIBS="-lical $LIBS"
- AC_DEFINE(HAVE_LIBICAL)
+if test "x$ok_libical" = xyes ; then
+
+ AC_TRY_RUN(
+ [
+#include <ical.h>
+main() {
+ float v;
+ int i;
+ sscanf(ICAL_VERSION, "%f", &v);
+ printf("libical version: %0.2f\n", v);
+ v = v * 100.0;
+ i = (int) v;
+ if (i >= 24) {
+ printf("This version is ok.\n");
+ printf("WebCit will be built with calendar support.\n");
+ return(0);
+ }
+ printf("libical 0.24 or newer is required.\n");
+ printf("WebCit will be built without calendar support.\n");
+ return(1);
+}
+ ],
+ [
+ LIBS="-lical $LIBS"
+ AC_DEFINE(HAVE_LIBICAL)
+ ]
+ )
fi
AC_OUTPUT(Makefile)