mariadb/config/ac-macros
Georgi Kodinov c14a43cd40 Bug #43614: make distcheck failure (ndb/Makefile is made, but not subdirs of ndb)
There are some recursive targets that automake generates which reference
DIST_SUBDIRS.  It's critical, then, for such subdirs to exist even if they
won't be built as part of SUBDIRS.

During a VPATH build, it is the configure script which creates the subdirs
(when it processes the AC_CONFIG_FILES() for each subdir's Makefile).  If
autoconf doesn't create a subdir's Makefile, then the recursive make will fail
when it is unable to cd into that subdir.

This isn't a problem in non-VPATH builds, because the subdirs are all present
in the source tarball.  So the problem only shows up during 'make distcheck',
which does a VPATH build.

The fix is to look, when configure is being created by autoconf, for any
plugin subdirectories.  These are the dynamic subdirectories which need to be
handled specially.  It's enough to tell autoconf to generate a Makefile for
any Makefile.am found in the plugin directory - all plugin subdirectories
using automake (i.e., listed in the plugin's DIST_SUBDIRS) will have a
Makefile.am.

This is done by calling 'find'.  This means that 'find' must be in the PATH on
the host that is running autoconf.  'find' is NOT needed when calling
configure, so it is not an additional dependency for the user.

Finally, ha_ndbcluster.m4 had called AC_CONFIG_FILES() on all those subdir
Makefiles, but only when the plugin was actually being built.  So it didn't
work in the case that NDB was not being built.  All of those Makefiles have to
be removed from this static list, since the plugin machinery is now adding
them automatically.  autoconf fails if a file is duplicated in
AC_CONFIG_FILES().
2009-03-13 13:13:55 +02:00
..
alloca.m4 Fixing problem with case insitive file systems. 2004-12-04 11:00:33 -08:00
character_sets.m4 Fix Bug#32831: libmysql should be built with all charsets 2009-01-13 16:16:03 +01:00
check_cpu.m4 Fixing problem with case insitive file systems. 2004-12-04 11:00:33 -08:00
compiler_flag.m4 sql_parse.cc, config-win.h, config-netware.h: 2007-05-27 23:21:03 +02:00
ha_ndbcluster.m4 Bug #43614: make distcheck failure (ndb/Makefile is made, but not subdirs of ndb) 2009-03-13 13:13:55 +02:00
large_file.m4 Fix for bug #31254: "Max_data_length" truncated / reported wrong 2007-10-12 14:03:51 +04:00
misc.m4 Merge mysql.com:/home/kent/bk/build/mysql-5.0-build 2008-02-26 18:38:43 +01:00
plugins.m4 Bug #43614: make distcheck failure (ndb/Makefile is made, but not subdirs of ndb) 2009-03-13 13:13:55 +02:00
readline.m4 Fix for Bug#3982 2005-09-14 21:47:24 -07:00
ssl.m4 Makefile.am: 2007-09-26 18:47:55 +02:00
zlib.m4 Makefile.am: 2007-09-26 18:47:55 +02:00