You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if test -n "$expat_include_dir" -a -n "$expat_lib_flags"; then
@@ -128,8 +128,11 @@ AC_DEFUN([AX_LIB_EXPAT],
128
128
saved_CPPFLAGS="$CPPFLAGS"
129
129
CPPFLAGS="$CPPFLAGS -I$expat_include_dir"
130
130
131
+
saved_LIBS="$LIBS"
132
+
LIBS="$LIBS $expat_lib_flags"
133
+
131
134
saved_LDFLAGS="$LDFLAGS"
132
-
LDFLAGS="$LDFLAGS $expat_lib_flags"
135
+
LDFLAGS="$LDFLAGS $expat_ld_flags"
133
136
134
137
dnl
135
138
dnl Check Expat headers
@@ -176,7 +179,8 @@ p = NULL;
176
179
]]
177
180
)],
178
181
[
179
-
EXPAT_LDFLAGS="$expat_lib_flags"
182
+
EXPAT_LIBS="$expat_lib_flags"
183
+
EXPAT_LDFLAGS="$expat_ld_flags"
180
184
expat_lib_found="yes"
181
185
AC_MSG_RESULT([found])
182
186
],
@@ -190,6 +194,7 @@ p = NULL;
190
194
191
195
CPPFLAGS="$saved_CPPFLAGS"
192
196
LDFLAGS="$saved_LDFLAGS"
197
+
LIBS="$saved_LIBS"
193
198
fi
194
199
195
200
AC_MSG_CHECKING([for Expat XML Parser])
@@ -199,6 +204,7 @@ p = NULL;
199
204
200
205
AC_SUBST([EXPAT_CFLAGS])
201
206
AC_SUBST([EXPAT_LDFLAGS])
207
+
AC_SUBST([EXPAT_LIBS])
202
208
203
209
HAVE_EXPAT="yes"
204
210
else
@@ -274,8 +280,4 @@ p = NULL;
274
280
AC_MSG_WARN([Expat XML Parser support requested but headers or library not found. Specify valid prefix of Expat using --with-expat=@<:@DIR@:>@ or provide include directory and linker flags using --with-expat-inc and --with-expat-lib])
AC_MSG_WARN([Xerces C++ Parser support requested but headers or library not found. Specify valid prefix of Xerces C++ using --with-xerces=@<:@DIR@:>@ or provide include directory and linker flags using --with-xerces-inc and --with-xerces-lib])
0 commit comments