Bug #52904 Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac
Submitted: 16 Apr 2010 22:24 Modified: 21 Apr 2010 16:40
Reporter: Twang Li Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.18 OS:Other (NetBSD)
Assigned to:
Tags: autoconf, configure, contributions

[16 Apr 2010 22:24] Twang Li
Description:
In addendum to (different bug, but related since it´s the same file):

http://bugs.mysql.com/bug.php?id=52874

I believe this also needs to be added to the file:

AC_CONFIG_MACRO_DIR([m4])

This is what happens before adding this line:

config.status: executing default-1 commands
rm: ./ltmain.sh: No such file or directory
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
rm: m4/libtool.m4: No such file or directory
libtoolize: putting macros in `m4'.
libtoolize: linking file `m4/libtool.m4'
rm: m4/ltoptions.m4: No such file or directory
libtoolize: linking file `m4/ltoptions.m4'
rm: m4/ltsugar.m4: No such file or directory
libtoolize: linking file `m4/ltsugar.m4'
rm: m4/ltversion.m4: No such file or directory
libtoolize: linking file `m4/ltversion.m4'
rm: m4/lt~obsolete.m4: No such file or directory
libtoolize: linking file `m4/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
configure.ac:21: installing `./config.guess'
configure.ac:21: installing `./config.sub'
configure.ac:11: installing `./install-sh'
configure: WARNING: unrecognized options: --disable-dynamic

This is what happens after adding this line:

config.status: executing default-1 commands
rm: ./ltmain.sh: No such file or directory
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
rm: m4/libtool.m4: No such file or directory
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
rm: m4/ltoptions.m4: No such file or directory
libtoolize: linking file `m4/ltoptions.m4'
rm: m4/ltsugar.m4: No such file or directory
libtoolize: linking file `m4/ltsugar.m4'
rm: m4/ltversion.m4: No such file or directory
libtoolize: linking file `m4/ltversion.m4'
rm: m4/lt~obsolete.m4: No such file or directory
libtoolize: linking file `m4/lt~obsolete.m4'
configure.ac:21: installing `./config.guess'
configure.ac:21: installing `./config.sub'
configure.ac:11: installing `./install-sh'
configure: WARNING: unrecognized options: --disable-dynamic

This seems to be the way to make this check work with different libtool versions. I´m not sure where to add it in the file, because i´m not an expert with libtool. That´s why i didn´t include this in the prior patch i sent. I added it at the end and it seemed to work fine. Will let the devs decide the best place to put it.

How to repeat:
bmake configure

Suggested fix:
Add:

AC_CONFIG_MACRO_DIR([m4])

to: ext/ctemplate/ctemplate-src/configure.ac
[20 Apr 2010 13:16] Alfredo Kojima
Marking it as Won't Fix as its a path for ctemplate. --with-system-ctemplate should be used
when compiling WB instead. See bug #52874
[21 Apr 2010 16:40] Twang Li
See recent comment on: http://bugs.mysql.com/bug.php?id=52874