From dbb0e0b01de9a5a368edbf9ca54fce7165c903cd Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 14 Nov 1999 12:32:49 +0000 Subject: [PATCH] Doesn't try to build GTK UI if GTK isn't found git-svn-id: http://svn.irssi.org/repos/irssi/trunk@76 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- configure.in | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/configure.in b/configure.in index 04f9979a..f3a869b6 100644 --- a/configure.in +++ b/configure.in @@ -248,18 +248,21 @@ else want_gnome_panel="no" AC_DEFINE(HAVE_GTK) AM_PATH_GTK(1.2.0) - GUI_CFLAGS="$GTK_CFLAGS" - GUI_LIBS="$GTK_LIBS" - if test "x$want_imlib" = "xyes"; then - AM_PATH_GDK_IMLIB(, [define_imlib=true]) - if test x$define_imlib = xtrue; then - AC_DEFINE(HAVE_IMLIB) - GUI_CFLAGS="$GUI_CFLAGS $GDK_IMLIB_CFLAGS" - GUI_LIBS="$GDK_IMLIB_LIBS" + if test "x$GTK_LIBS" != "x"; then + GUI_CFLAGS="$GTK_CFLAGS" + GUI_LIBS="$GTK_LIBS" + + if test "x$want_imlib" = "xyes"; then + AM_PATH_GDK_IMLIB(, [define_imlib=true]) + if test x$define_imlib = xtrue; then + AC_DEFINE(HAVE_IMLIB) + GUI_CFLAGS="$GUI_CFLAGS $GDK_IMLIB_CFLAGS" + GUI_LIBS="$GDK_IMLIB_LIBS" + fi fi + GUI_LIBS="$GUI_LIBS ../lib-popt/libpopt.a" fi - GUI_LIBS="$GUI_LIBS ../lib-popt/libpopt.a" fi if test "x$GUI_LIBS" != "x"; then