X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/cdfd126039d367b116f0e462b3583e30a7db5cd9..7ac7ae8d08541f9d91f07bd3b7f91e9fa201b683:/configure.ac diff --git a/configure.ac b/configure.ac index f772576..d798674 100644 --- a/configure.ac +++ b/configure.ac @@ -36,10 +36,19 @@ DX_CHECK_LIBPNG([1.2], [have_libpng=yes]) fi AM_CONDITIONAL([BUILD_LBXIMG], [test x"$have_libpng" = x"yes"]) -# A horrible combination of bugs makes this necessary for GTK+ detection. -unset POSIXLY_CORRECT - -AM_PATH_GTK_2_0([2.16.0], [have_gtk=yes], [have_gtk=no]) +AC_ARG_ENABLE([lbxgui], + [AS_HELP_STRING([--enable-lbxgui], + [build the lbxgui tool (requires GTK+) [default=auto]])], + [enable_lbxgui=$enableval], + [enable_lbxgui=auto]) + +have_gtk=no +if test x"$enable_lbxgui" = x"auto"; then +DX_CHECK_GTK2([2.16], [have_gtk=yes], [have_gtk=no]) +fi +if test x"$enable_lbxgui" = x"yes"; then +DX_CHECK_GTK2([2.16], [have_gtk=yes]) +fi AM_CONDITIONAL([BUILD_LBXGUI], [test x"$have_gtk" = x"yes"]) AC_CONFIG_FILES([