Bug#33831: Creates incompatible acinclude.m4 files

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Fri Oct 19 21:38:39 UTC 2001


Harald Fernengel <harry at bnro.de> writes:

> Hi,
> 
> since you seem to know a lot about autoconf/automake, is it possible
> for you to create a patch to fix this?

A patch will be difficulty because changes must be done in the tar.gz
template-files. There are a lot of files I don't know for which they are
indented (e.g. admin.tar.gz), but I have put a "new" cpp.tar.gz file at
[1]. The other templates (e.g. c.tar.gz) can/should be modified in a
similar manner.

The main change there is the splitting of acinclude.m4 in smaller files
into a newly generated m4 directory. There is done:

- moved standard automake macros into an `am-extra.m4.ignore' file for
  archiving purposes. Probably this file can be omitted.

- fixed bad parenthesis in K_PATH_X

- fixed the AC_CHECK_COMPILERS macro which was a huge incompatible
  piece of code. Please test the `--enable-debug' and `--enable-strict'
  options if they are still working! This fix makes projects compatible
  with recent autoconf & automake versions and should solve bug #33862.

Probably there is to do more but because I am not using kdevelop I can
not tell more currently.


Other changes are:

- automatic generated files were removed; these files are

  * config.guess
  * config.sub
  * install-sh
  * libtool.m4.in
  * ltconfig
  * ltmain.sh
  * missing
  * mkinstalldirs.

  These files will be generated by calling automake & libtool with special
  options. Therefore, installed automake, autoconf and libtoolize-packages
  are requirements on the developers machine now.

- Makefile.dist is changed so files mentioned above will be generated

- removed the `cat ... libtool.m4.in >acinclude.m4' from Makefile.dist

- added AM_MAINTAINER_MODE to configure.in; this macro prevents rebuilding of
  `configure' and `Makefile.in' at the final package-builder. The developer
  must call `./configure' now with the `--enable-maintainer-mode' option, but
  I do not know how to change it in kdevelop.

- removed multiple calls to AC_ARG_PROGRAM in configure.in


The new code was tested rudimentarily on RH based machines with
- automake-1.4p5, autoconf-2.13, libtool-1.4 and
- automake-1.5, autoconf-2.52, libtool-1.4



DISCLAIMER: Most items above were hacked within the last hours without
            knowing kdevelop internals. Therefore, it's highly probably
            there are bugs inside.
            


Enrico


Footnotes: 
[1]  http://www.tu-chemnitz.de/~ensc/kdevelop/cpp.tar.gz


> > kdevelop creates incompatible acinclude.m4 files by including standard
> > macros like those of libtool.m4. [...]
> > I suggest a modular concept where needed m4-macros are put into a
> > extra-directory (e.g. m4) of the project and to omit the creation of
> > acinclude.m4 entirely.

-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list