From de1176ee2805b819a5bf0964d90ce9e84e307500 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 10 Jan 2008 16:27:03 +0000 Subject: Use AST_EXT_TOOL_CHECK() for the GTK check again. I changed this to an inline implementation to fix a small bug, but after a discussion with rizzo, I went to change it back. Also, it turns out that the implementation of the macro already supported what was needed to fix the problem. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97767 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configure.ac | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d3d14259f..5e2a56a25 100644 --- a/configure.ac +++ b/configure.ac @@ -1161,16 +1161,7 @@ AST_EXT_LIB_CHECK([X11], [X11], [XOpenDisplay], [X11/Xlib.h],,, [standard_path]) AST_EXT_LIB_CHECK([X11], [X11], [XOpenDisplay], [X11/Xlib.h],, [-I/usr/X11R6/include], [X11R6]) PBX_GTK=0 -AC_CHECK_TOOL(GTKCONFIG, gtk-config, No) -if test ! "x${GTKCONFIG}" = xNo; then - GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread) - GTK_LIB=$(${GTKCONFIG} --libs gthread) - PBX_GTK=1 - AC_DEFINE([HAVE_GTK], 1, [Define if your system has the GTK libraries.]) -fi -AC_SUBST(PBX_GTK) -AC_SUBST(GTK_INCLUDE) -AC_SUBST(GTK_LIB) +AST_EXT_TOOL_CHECK([GTK], [gtk], [--cflags gthread], [--libs gthread]) PBX_GTK2=0 AC_CHECK_TOOL(PKGCONFIG, pkg-config, No) -- cgit v1.2.3