dbTalk Databases Forums  

[PATCH] fix examples subdir processing

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss [PATCH] fix examples subdir processing in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andres Salomon
 
Posts: n/a

Default [PATCH] fix examples subdir processing - 10-03-2005 , 01:38 PM






--=-UhdmqMfgEduijdUF2mqG
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

When configuring and building mysql++ with --disable-examples, the
autoconf script still creates examples/Makefile, but automake's SUBDIRS
variable doesn't include examples/; so, it gets skipped anytime anyone
runs make. This means that examples/Makefile and examples/.deps/*.Po
gets created during './configure --disable-examples', but 'make
distclean' doesn't clean up those files.

While this isn't a terrible thing, it would be nice to not have this
extra stuff appear in the examples subdir when not building them. The
attached patch does this by only running AC_OUTPUT() on
examples/Makefile if we're building the examples. Note that AC_OUTPUT
doesn't accept variables (feh), so the patch simply makes a separate
AC_OUTPUT call if building examples.



--=-UhdmqMfgEduijdUF2mqG
Content-Disposition: attachment; filename=001-examples_subdir.patch
Content-Type: text/x-patch; name=001-examples_subdir.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit

--- mysql++-2.0.6/configure.in.orig 2005-09-28 09:43:08.684213224 -0400
+++ mysql++-2.0.6/configure.in 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


--=-UhdmqMfgEduijdUF2mqG
Content-Type: text/plain; charset=us-ascii


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw
--=-UhdmqMfgEduijdUF2mqG--


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: [PATCH] fix examples subdir processing - 10-04-2005 , 06:18 AM






Andres Salomon wrote:
Quote:
-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
Thanks. It's scheduled to go into the main trunk, which will become
v2.1. My local copy is in disarray due to an experiment in progress, so
I can't check it in right now.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.