[patch #9900] New AX_CHECK_PCRE2

anonymous <[email protected]> Mon, 2 Mar 2020 15:29:19 -0500 (EST)
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
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: [email protected]
             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/