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

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

[patch #9900] New AX_CHECK_PCRE2


From: anonymous
Subject: [patch #9900] New AX_CHECK_PCRE2
Date: Mon, 2 Mar 2020 15:29:19 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15

URL:
  <https://savannah.gnu.org/patch/?9900>

                 Summary: New AX_CHECK_PCRE2
                 Project: GNU Autoconf Archive
            Submitted by: None
            Submitted on: Mon 02 Mar 2020 08:29:18 PM UTC
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

New autoconf check to find the PCRE2 pcre2.h header and libpcre2-8 library
files. AX_CHECK_PCRE2([action-if-found], [action-if-not-found]) sets
HAVE_PCRE2 to 1 if both are found on the usual paths /usr/local /usr
/opt/local /sw or on the user-specified path with option --with-pcre2=DIR. If
both header file and library are found, shell commands 'action-if-found' is
run. If 'action-if-found' is not specified, the default action appends
'-I${PCRE2_HOME}/include' to CPFLAGS, appends '-L$PCRE2_HOME}/lib' to LDFLAGS,
prepends '-lpcre2-8' to LIBS, and calls AC_DEFINE(HAVE_PCRE2). You should use
autoheader to include a definition for this symbol in a config.h file. Sample
usage in a C/C++ source is as follows:

     #ifdef HAVE_PCRE2
     #define PCRE2_CODE_UNIT_WIDTH 8
     #include <pcre2.h>
     #endif /* HAVE_PCRE2 */

This covers the most common uses of PCRE2.

If either the header file (pcre2.h) or the library (libpcre2-8) is not  found,
shell commands 'action-if-not-found' is run. If 'action-if-not-found' is not
specified, the configuration exits on error, asking for a valid PCRE2
installation directory or --without-pcre2.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 02 Mar 2020 08:29:18 PM UTC  Name: ax_check_pcre2.m4  Size: 5KiB  
By: None

<http://savannah.gnu.org/patch/download.php?file_id=48537>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?9900>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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