From 212adf63ce136182524ee425293957345743cede Mon Sep 17 00:00:00 2001 From: hasufell Date: Sun, 31 Mar 2013 16:35:02 +0200 Subject: CONFIGURE: fix configure when gtk+ is not installed AM_PATH_GTK_2_0 would be an undefined macro then --- configure.ac | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index f4ceb031..62cb9292 100644 --- a/configure.ac +++ b/configure.ac @@ -199,14 +199,16 @@ dnl ********************************************************************* dnl ** GTK ************************************************************** dnl ********************************************************************* -AM_PATH_GTK_2_0(2.10.0, havegtk=yes, havegtk=no) - -if test "$havegtk" = no; then - gtkfe=no - echo - echo Cannot find GTK\! Not building GTK FrontEnd. - echo -fi +# we might get undefined macro without this test +if test "$gtkfe" = yes ; then + AM_PATH_GTK_2_0(2.10.0, havegtk=yes, havegtk=no) + + if test "$havegtk" = no; then + gtkfe=no + echo + echo Cannot find GTK\! Not building GTK FrontEnd. + echo + fi if test "$gtkfe" != yes; then gnome=no -- cgit 1.4.1