Thu 16 Aug 2012 07:40:33 AM UTC, original submission:
Here are two patches for m4/ax_check_postgres_db.m4.
The first one uses AS_HELP_STRING to format AC_ARG_WITH and makes the messages
slightly more informative.
The second is a substantial rewrite of the macro, while keeping the same default
behaviour.
From the commit message:
It still behaves the same by default, AC_DEFINing HAVE_LIBPQ and setting
variables PQINCPATH and PQLIBPATH, while erroring when either header or
library is found in the default or specified paths.
The logic is however different, where the specified prefixes and/or
incdir and libdir are temporarily added to CFLAGS and LDFLAGS. The
normal detection logic (AC_CHECK_HEADER and AC_CHECK_LIB) is used next,
only, and once.
In addition, two optional arguments to the macro, ACTION-IF-FOUND and
ACTION-IF-NOT-FOUND are now available to extend the logic. The default
ACTION-IF-FOUND is to do nothing (apart from defining the variables and
substitutions, which is always done). The default ACTION-IF-NOT-FOUND is
to error out; it is replaced by the ACTION-IF-NOT-FOUND if specified
to, e.g., gracefully remove configure PGSQL out when it's only optional.
Bump serial from 5 to 6.
|