1diff -uNrp misc/build/mythes-1.2.0/configure misc/mythes-1.2.0/configure 2--- misc/build/mythes-1.2.0/configure 2010-02-27 12:57:37.000000000 -0300 3+++ misc/mythes-1.2.0/configure 2011-11-21 10:48:03.724435792 -0300 4@@ -748,6 +748,7 @@ LTLIBOBJS 5 LIBOBJS 6 HUNSPELL_LIBS 7 HUNSPELL_CFLAGS 8+ENABLE_EXAMPLE 9 PKG_CONFIG 10 CXXCPP 11 CPP 12@@ -867,6 +868,7 @@ ac_subst_files='' 13 ac_user_opts=' 14 enable_option_checking 15 enable_dependency_tracking 16+enable_example 17 with_gnu_ld 18 enable_rpath 19 enable_shared 20@@ -1519,6 +1521,8 @@ Optional Features: 21 optimize for fast installation [default=yes] 22 --disable-libtool-lock avoid locking (might break parallel builds) 23 24+ --enable-example compiles the example (requires hunspell library) 25+ 26 Optional Packages: 27 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 28 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 29@@ -3723,6 +3727,19 @@ fi 30 31 32 33+# Check whether --enable-example was given. 34+if test "${enable_example+set}" != set; then : 35+ ENABLE_EXAMPLE=no; 36+ $enable_example=no; 37+else 38+ ENABLE_EXAMPLE=$enable_example; 39+fi 40+ 41+ 42+ 43+ 44+ 45+ 46 depcc="$CC" am_compiler_list= 47 48 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 49@@ -14476,6 +14493,8 @@ $as_echo "no" >&6; } 50 51 fi 52 53+ 54+if test "$ENABLE_EXAMPLE" != "no"; then 55 pkg_failed=no 56 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUNSPELL" >&5 57 $as_echo_n "checking for HUNSPELL... " >&6; } 58@@ -14561,6 +14580,9 @@ else 59 $as_echo "yes" >&6; } 60 : 61 fi 62+fi 63+export ENABLE_EXAMPLE 64+ 65 66 ac_config_files="$ac_config_files Makefile mythes.pc" 67 68diff -uNrp misc/build/mythes-1.2.0/Makefile.in misc/mythes-1.2.0/Makefile.in 69--- misc/build/mythes-1.2.0/Makefile.in 2010-02-27 12:57:35.000000000 -0300 70+++ misc/mythes-1.2.0/Makefile.in 2011-11-21 10:48:03.713435791 -0300 71@@ -18,7 +18,7 @@ 72 73 74 75- 76+ENABLE_EXAMPLE=@ENABLE_EXAMPLE@ 77 VPATH = @srcdir@ 78 pkgdatadir = $(datadir)/@PACKAGE@ 79 pkgincludedir = $(includedir)/@PACKAGE@ 80@@ -85,7 +85,11 @@ LTLIBRARIES = $(lib_LTLIBRARIES) 81 libmythes_1_2_la_LIBADD = 82 am_libmythes_1_2_la_OBJECTS = mythes.lo 83 libmythes_1_2_la_OBJECTS = $(am_libmythes_1_2_la_OBJECTS) 84+ifeq "$(ENABLE_EXAMPLE)" "no" 85+PROGRAMS= 86+else 87 PROGRAMS = $(noinst_PROGRAMS) 88+endif 89 am_example_OBJECTS = example.$(OBJEXT) 90 example_OBJECTS = $(am_example_OBJECTS) 91 example_DEPENDENCIES = libmythes-1.2.la 92