Next: , Previous: , Up: The Macros  


ax_create_generic_config

Synopsis

AX_CREATE_GENERIC_CONFIG [(PACKAGEnlibs [, VERSION])]

Description

Creates a generic PACKAGE-config file that has all the things that you want, hmm, well, at least it has –cflags, –version, –libs. Ahhm, did you see ax_path_generic in the autoconf-archive? ;-)

this macros saves you all the typing for a pkg-config.in script, you don’t even need to distribute one along. Place this macro in your configure.ac, et voila, you got one that you want to install.

oh, btw, if the first arg looks like "mylib -lwhat’ then it will go to be added to the –libs, and mylib is extracted.

the defaults: $1 = $PACKAGE $LIBS $2 = $VERSION there is also an AC_SUBST(GENERIC_CONFIG) that will be set to the name of the file that we did output in this macro. Use as:

 install-exec-local:    install-generic-config
 install-generic-config:
    $(mkinstalldirs) $(DESTDIR)$(bindir)
    $(INSTALL_SCRIPT) @GENERIC_CONFIG@ $(DESTDIR)$(bindir)

Source Code

Download the latest version of ax_create_generic_config.m4 or browse the macro’s revision history.

License

Copyright © 2008 Guido U. Draheim guidod@gmx.de

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.