]> git.tuebingen.mpg.de Git - paraslash.git/commit
build: Reduce redundancy in configure.ac, convert osl detection.
authorAndre Noll <maan@systemlinux.org>
Sun, 20 Apr 2014 04:33:11 +0000 (04:33 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 Mar 2015 16:45:41 +0000 (16:45 +0000)
commitf189411b9986564c2652ef87e54189e5fa0d5d11
treed800cdcaf4ae6e81d6441575322dbd5926c7d293
parentca14953f8f1c5968578735af5de7e966e9b4487d
build: Reduce redundancy in configure.ac, convert osl detection.

We've had a fair number of bugs in configure.ac due to the fact that
most parts of it were created by copy+paste from an existing part.
This commit is an attempt to reduce this redundancy by factoring out
the reappearing parts to common macros. This will also reduce the
number of lines of configure.ac considerably, although this first
patch naturally adds more lines than it removes.

This commit introduces four new macros in configure.ac:

* AC_ARG_WITH: handles --with-xxx-headers and --with-xxx-libs
options for configure. The generated options are identical
to the old ones, so there are no compatibility issues.

* LIB_SUBST_FLAGS: creates preprocessor defines and make
variables

* STASH_FLAGS: saves copies of the CPPFLAGS, LDFLAGS and
LIBS variables

* UNSTASH_FLAGS restores stashed values

Only libosl detection is converted to use the new macros.  Subsequent
patches will convert other libraries.
INSTALL
configure.ac