config/misc.m4
changeset 1441 fd4b6f6d592a
parent 1370 76a3f46d361c
equal deleted inserted replaced
0:cfcd60a25a17 1:75ff3f977710
    24       ;;
    24       ;;
    25   esac
    25   esac
    26   AC_SUBST(DOXYGEN_INTERNAL_DOCS)
    26   AC_SUBST(DOXYGEN_INTERNAL_DOCS)
    27   AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"])
    27   AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"])
    28 ])
    28 ])
       
    29 
       
    30 AC_DEFUN([LX_ENABLE_GUI],
       
    31 [
       
    32   AC_ARG_ENABLE([gui],
       
    33 AS_HELP_STRING([--enable-gui], [build the GUI])
       
    34 AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
       
    35          [], [enable_gui=no])
       
    36 
       
    37   AC_MSG_CHECKING([whether to build the GUI])
       
    38   if test x"$enable_gui" != x"no"; then
       
    39       AC_MSG_RESULT([yes])
       
    40   else
       
    41       AC_MSG_RESULT([no])
       
    42   fi
       
    43   if test x"$enable_gui" != x"no"; then
       
    44     PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
       
    45   fi
       
    46   AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
       
    47 ])