[Asterisk-code-review] menuselect: autoconf: report GTK2 support (asterisk[11])

Tzafrir Cohen asteriskteam at digium.com
Sun Oct 16 22:30:48 CDT 2016


Tzafrir Cohen has uploaded a new change for review.

  https://gerrit.asterisk.org/4122

Change subject: menuselect: autoconf: report GTK2 support
......................................................................

menuselect: autoconf: report GTK2 support

The configure script did not report GTK2 support. Report it.

It seems that reporting of pkg-config support was deemed good enough
instead. See ASTERISK-26356.

Change-Id: I02dc63bc6e04cda545049564e904174795c229ff
---
M menuselect/configure
M menuselect/configure.ac
2 files changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/22/4122/1

diff --git a/menuselect/configure b/menuselect/configure
index 648091e..4424594 100755
--- a/menuselect/configure
+++ b/menuselect/configure
@@ -4845,6 +4845,8 @@
   PKGCONFIG="$ac_cv_prog_PKGCONFIG"
 fi
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK2 support" >&5
+$as_echo_n "checking GTK2 support... " >&6; }
 if test ! "x${PKGCONFIG}" = xNo; then
    GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
    GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
@@ -4852,6 +4854,11 @@
 
 $as_echo "#define HAVE_GTK2 1" >>confdefs.h
 
+   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
 fi
 
 
diff --git a/menuselect/configure.ac b/menuselect/configure.ac
index 5989f5c..a2d6f18 100644
--- a/menuselect/configure.ac
+++ b/menuselect/configure.ac
@@ -136,11 +136,15 @@
 
 PBX_GTK2=0
 AC_CHECK_TOOL(PKGCONFIG, pkg-config, No)
+AC_MSG_CHECKING([GTK2 support])
 if test ! "x${PKGCONFIG}" = xNo; then
    GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
    GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)   
    PBX_GTK2=1
    AC_DEFINE([HAVE_GTK2], 1, [Define if your system has the GTK2 libraries.])
+   AC_MSG_RESULT([yes])
+else
+   AC_MSG_RESULT([no])
 fi
 AC_SUBST(PBX_GTK2)
 AC_SUBST(GTK2_INCLUDE)

-- 
To view, visit https://gerrit.asterisk.org/4122
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I02dc63bc6e04cda545049564e904174795c229ff
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Tzafrir Cohen <tzafrir.cohen at xorcom.com>



More information about the asterisk-code-review mailing list