--- mysql++-2.0.6/configure.ac.orig	2005-09-28 09:43:08.684213224 -0400
+++ mysql++-2.0.6/configure.ac	2005-10-03 14:02:59.886386391 -0400
@@ -106,6 +106,10 @@
 #
 # Done with checks!
 #
-AC_OUTPUT([Makefile mysql++.spec lib/mysql++.h lib/Makefile lib/Doxyfile examples/Makefile])
+AC_OUTPUT([Makefile mysql++.spec lib/mysql++.h lib/Makefile lib/Doxyfile])
+if test "x$OPTIONAL_EXAMPLES" != "x"
+then
+	AC_OUTPUT([examples/Makefile])
+fi
 
 ./makemake.sh simple gcc
