This is an automated email from the ASF dual-hosted git repository.

scantor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git

commit 2a64a944d59f3273e09e018bbe7f526b00910311
Author: Scott Cantor <canto...@osu.edu>
AuthorDate: Wed Oct 5 12:44:56 2022 -0400

    XERCESC-2242 - Non-default curl location breaks autoconf link detection
    
    https://issues.apache.org/jira/browse/XERCESC-2242
---
 m4/xerces_curl_prefix.m4 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/m4/xerces_curl_prefix.m4 b/m4/xerces_curl_prefix.m4
index fec4418a7..d1d015ca8 100644
--- a/m4/xerces_curl_prefix.m4
+++ b/m4/xerces_curl_prefix.m4
@@ -66,6 +66,7 @@ AC_DEFUN([XERCES_CURL_PREFIX],
 
                        orig_libs=$LIBS
                        LIBS="$curl_libs $LIBS"
+                        CPPFLAGS="$curl_flags $CPPFLAGS"
 
                        AC_LINK_IFELSE(
                                [AC_LANG_SOURCE([
@@ -82,6 +83,7 @@ AC_DEFUN([XERCES_CURL_PREFIX],
                                [], [xerces_cv_curl_present=no])
 
                        LIBS=$orig_libs
+                        CPPFLAGS=$orig_cppflags
 
                        if test x"$xerces_cv_curl_present" != x"no"; then
                                AC_MSG_RESULT([yes])


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to