summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-02 04:08:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-02 04:08:27 +0000
commitcbb97383c097a188c4d7e2257b7159e758416129 (patch)
treeeec7418209a4566b261d96995ba6807094266108
parent2ff00bf6faf85a14fb77b560911a5137910ad2b2 (diff)
downloadother-cbb97383c097a188c4d7e2257b7159e758416129.tar.gz
other-cbb97383c097a188c4d7e2257b7159e758416129.zip
Add gtk/glibc checks to global acinclude.m4.in file
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1256728 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--admin/acinclude.m4.in35
1 files changed, 35 insertions, 0 deletions
diff --git a/admin/acinclude.m4.in b/admin/acinclude.m4.in
index a172a25..d596095 100644
--- a/admin/acinclude.m4.in
+++ b/admin/acinclude.m4.in
@@ -6501,6 +6501,41 @@ AC_DEFUN([AM_KDE_MIN_VERSION],
AC_LANG_RESTORE
])
+AC_DEFUN([AC_GLIB_2],
+[
+
+AC_MSG_CHECKING([for glib == 2.0])
+
+GLIB2_LIBS=`$PKG_CONFIG --libs glib-2.0`
+GLIB2_CFLAGS="`$PKG_CONFIG --cflags glib-2.0`"
+if test -z "$GLIB2_LIBS"; then
+ AC_MSG_RESULT(no);
+ DO_NOT_COMPILE="$DO_NOT_COMPILE mozilla"
+else
+ AC_MSG_RESULT([cflags $GLIB2_CFLAGS]);
+ AC_SUBST(GLIB2_CFLAGS)
+ AC_SUBST(GLIB2_LIBS)
+fi
+
+])
+
+AC_DEFUN([AC_GTK_2],
+[
+
+AC_MSG_CHECKING([for gtk == 2.0])
+
+GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
+GTK2_CFLAGS="`$PKG_CONFIG --cflags gtk+-2.0`"
+if test -z "$GTK2_LIBS"; then
+ AC_MSG_RESULT(no);
+ DO_NOT_COMPILE="$DO_NOT_COMPILE mozilla"
+else
+ AC_MSG_RESULT([cflags $GTK2_CFLAGS]);
+ AC_SUBST(GTK2_CFLAGS)
+ AC_SUBST(GTK2_LIBS)
+fi
+
+])
AC_DEFUN([AC_LIBOFX],
[