diff options
-rw-r--r-- | configure.in | 23 |
1 files changed, 13 insertions, 10 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 |