Bug 125526 - KMymoney 0.8.3 - broken m4 scripts
Summary: KMymoney 0.8.3 - broken m4 scripts
Status: RESOLVED NOT A BUG
Alias: None
Product: kmymoney2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Development Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-13 19:49 UTC by Carsten Lohrke
Modified: 2006-04-14 08:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke 2006-04-13 19:49:10 UTC
Version:           0.8.3 (using KDE KDE 3.5.2)
Installed from:    Gentoo Packages

It fails to build without having cppunit installed

aclocal: configure.in: 93: macro `AM_PATH_CPPUNIT' not found in library

Adding the relevant macro to acinclude.m4.in, configure creation spits out 

configure.in:88: error: possibly undefined macro: AC_MEMORY_LEAK_CHECK
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:123: error: possibly undefined macro: AC_PDF_GENERATION
configure.in:129: error: possibly undefined macro: AC_LIBOFX

and configure fails later accoridngly.


These macros are in acinclude.m4 of KMymoney 0.8.2, but not in acinclude.m4.in so recreation of acinclude.m4 would have failed with this version, too.
Comment 1 Thomas Baumgart 2006-04-13 21:30:19 UTC
Why are you running aclocal? This can't work from the tar-ball. Start with ./configure then you won't have any problems.

If you want rebuild the configure script, you have to get the sources from CVS. Those also contain the files you mention.

Or am I missing something completely?
Comment 2 Carsten Lohrke 2006-04-13 21:57:15 UTC
configure fails as described above, when cppunit is not available on the system.
Comment 3 Thomas Baumgart 2006-04-13 22:05:56 UTC
Does it help to run configure with option '--disable-cppunit'?  I am curious, because I built KMyMoney 0.8.3 on systems that do not have cppunit installed without any problems.

Please provide your config.log and the screen output in case this does not work for you (attach them to the bug entry).
Comment 4 Carsten Lohrke 2006-04-13 22:24:31 UTC
btw.: I got two "Your message to KMyMoney2-developer awaits moderator approval" emails from lists.sf.net by now, as well as the one from bugs.kde.org. Would be nice, if the sf.net list emails would not reach those who file bugs here.
Comment 5 Rex Dieter 2006-04-13 22:43:39 UTC
Point is: if you want to re-automake/autoconf things, you need cppunit installed, period.  Else, it's not required.
Comment 6 Carsten Lohrke 2006-04-13 22:58:37 UTC
Thomas: I wasn't correct regarding configure. It get's indeed recreated.

Rex, if this is your last word I have to accept this, of course. I just don't understand why you won't add the relevant macros to acinclude.m4.in. Imho rerunning autotools should always work out of the box and flawlessly. If it's only because of necessary bug fixes downstream (which happens unfortunately too often).
Comment 7 Rex Dieter 2006-04-13 23:05:14 UTC
I'm not a kmymoney2 dev, I'm just telling you how things are and work.  

What you don't understand is that the missing macros are contained in cppunits's .m4 files, which you *would* have, had you installed cppunit as both I and Thomas have suggested.  Does that help?

Either way, not a kmymoney2 bug.
Comment 8 Carsten Lohrke 2006-04-13 23:29:00 UTC
I understand that very well. My point is that cppunit is not a needed dependency, unless you want to run the make tests, so it shouldn't break missing cppunit, when it's not intended to run the tests.
Comment 9 Thomas Baumgart 2006-04-14 08:19:36 UTC
Well, if you want to/have to recreate configure, please use the foreseen way: run 'make -f Makefile.dist'.  That will take care of everything.

Jumping into the middle of the logic is not a good idea here. There are a couple of tweaks around the normal autotools in KDE applications which you would miss and things would go crazy afterwards.

So please stick with the instructions. Either use configure as is or run 'make -f Makefile.dist' to rebuild it.