summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-12-17 12:14:44 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-12-17 12:14:44 +0000
commitf1a2a3459ee87b77ab6a15c879c6c10f4ef9c4f8 (patch)
tree1829f731a00814dd11fd530bed2614ba9f3cb0a9 /configure.ac
parente6f8d5ea328a92945d00553822ce9e1c46bb05a9 (diff)
check for glib
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3f6f152fd..9a8730392 100644
--- a/configure.ac
+++ b/configure.ac
@@ -413,6 +413,20 @@ else
AC_DEFINE([HAVE_LIBGLPK],[1],[Have GLPK])
fi
+# test for glib
+# Minimum required version for glibtop is 2.6.0
+AM_PATH_GLIB_2_0(2.6.0, [glib2=true] , [glib2=false] ,)
+if test x$glib2 = xfalse
+then
+ AM_CONDITIONAL(HAVE_GLIB2, false)
+ AC_MSG_WARN([GNUnet requires GLIB >= 2.6.0])
+else
+ AM_CONDITIONAL(HAVE_GLIB2, true)
+ AC_DEFINE([HAVE_GLIB2],[1],[Have glib2])
+ LIBS="$LIBS $GLIB_LIBS"
+ CFLAGS="$CFLAGS $GLIB_CFLAGS"
+fi
+
AC_CHECK_HEADERS([nss.h],[nss=true],[nss=false])