autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #7832] Rewrite of AX_CHECK_POSTGRES_DB


From: Olivier Mehani
Subject: [patch #7832] Rewrite of AX_CHECK_POSTGRES_DB
Date: Thu, 16 Aug 2012 07:40:34 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1

URL:
  <http://savannah.gnu.org/patch/?7832>

                 Summary: Rewrite of  AX_CHECK_POSTGRES_DB
                 Project: GNU Autoconf Archive
            Submitted by: shtrom
            Submitted on: Thu 16 Aug 2012 09:40:33 AM CEST
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 16 Aug 2012 09:40:34 AM CEST  Name:
0002-Substantial-rewrite-of-AX_CHECK_POSTGRES_DB.patch  Size: 6kB   By: shtrom
Patches are from a different repository where I imported the macro, but they
should apply cleanly.
<http://savannah.gnu.org/patch/download.php?file_id=26368>
-------------------------------------------------------
Date: Thu 16 Aug 2012 09:40:33 AM CEST  Name:
0001-Use-AS_HELP_STRING-in-ax_check_postgres_db.m4.patch  Size: 1kB   By:
shtrom
Patches are from a different repository where I imported the macro, but they
should apply cleanly.
<http://savannah.gnu.org/patch/download.php?file_id=26367>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?7832>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]