]> err.no Git - mapper/commitdiff
Check that we can link with expat lib
authorKaj-Michael Lang <milang@angel.tal.org>
Fri, 20 Jul 2007 11:41:17 +0000 (14:41 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Fri, 20 Jul 2007 11:41:17 +0000 (14:41 +0300)
configure.ac

index 6266d6b15336ad192374089f44fdd3152bf8de70..9e7c83825b8af5267ece7a9143e0502cd03c9e41 100644 (file)
@@ -110,6 +110,11 @@ EXPAT_CFLAGS="-I/usr/include"
 AC_SUBST(EXPAT_CFLAGS)
 AC_SUBST(EXPAT_LIBS)
 
+AC_CHECK_LIB([expat], [XML_ParserCreate],
+  AC_DEFINE(HAVE_LIBEXPAT, 1, [Defined if you have libexpat])
+  AC_SUBST(EXPAT_LIB)
+)
+
 # Localisation
 if test "x$HAVE_HILDON" = "xyes"; then
  localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`