diff options
author | hasufell <julian.ospald@googlemail.com> | 2013-03-31 16:35:02 +0200 |
---|---|---|
committer | hasufell <julian.ospald@googlemail.com> | 2013-03-31 16:35:02 +0200 |
commit | 212adf63ce136182524ee425293957345743cede (patch) | |
tree | 72151ad6627131df2316cab613342bc097261346 | |
parent | f317076cb23745d3b03d09bde817fb66bdf81a26 (diff) |
CONFIGURE: fix configure when gtk+ is not installed
AM_PATH_GTK_2_0 would be an undefined macro then
-rw-r--r-- | configure.ac | 18 |
1 files 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 |