Revision: 768 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=768&view=rev Author: hyperair Date: 2009-06-22 09:57:49 +0000 (Mon, 22 Jun 2009)
Log Message: ----------- Fail if --enable-gtkspell and gtkspell isn't found
Modified Paths: -------------- trunk/geany-plugins/build/geanyvc.m4
Modified: trunk/geany-plugins/build/geanyvc.m4 =================================================================== --- trunk/geany-plugins/build/geanyvc.m4 2009-06-22 09:56:54 UTC (rev 767) +++ trunk/geany-plugins/build/geanyvc.m4 2009-06-22 09:57:49 UTC (rev 768) @@ -1,19 +1,19 @@ AC_DEFUN([GP_CHECK_GEANYVC], [ - AC_ARG_ENABLE([gtkspell], - AC_HELP_STRING([--disable-gtkspell], - [Disables gtkspell support in GeanyVC]), - [enable_gtkspell=$enableval], - [enable_gtkspell=yes]) + AC_ARG_ENABLE(gtkspell, + AC_HELP_STRING([--enable-gtkspell=ARG], + [Enable GtkSpell support in GeanyVC. [[default=auto]]]),, + enable_gtkspell=auto)
- if [[ x"$enable_gtkspell" = "xyes" ]]; then - PKG_CHECK_MODULES(GTKSPELL, [gtkspell-2.0], - [AM_CONDITIONAL([USE_GTKSPELL], true)], - [AM_CONDITIONAL([USE_GTKSPELL], false)]) - else - AM_CONDITIONAL([USE_GTKSPELL], false) + if [[ x"$enable_gtkspell" = "xauto" ]]; then + PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0, + enable_gtkspell=yes, enable_gtkspell=no) + elif [[ x"$enable_gtkspell" = "xyes" ]]; then + PKG_CHECK_MODULES(GTKSPELL, [gtkspell-2.0]) fi
+ AM_CONDITIONAL(USE_GTKSPELL, test $enable_gtkspell = yes) + AC_CONFIG_FILES([ geanyvc/Makefile geanyvc/src/Makefile
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.