Creates a generic PACKAGE-config file that has all the
things that you want, hmm, well, atleast it has
--cflags, --version, --libs. Ahhm, did you see ac_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)