Adding a file to help test git commands.
[asdcplib.git] / m4 / ax_lib_expat.m4
index 90bd1b4a6173e37921538601126714beb767a217..1fcb0d248236d7bafe13dfe105146b70f065c211 100644 (file)
@@ -110,7 +110,7 @@ AC_DEFUN([AX_LIB_EXPAT],
 
     if test -n "$expat_prefix"; then
         expat_include_dir="$expat_prefix/include"
-        expat_lib_flags="-L$expat_prefix/lib -lexpat"
+        expat_lib_flags="-L$expat_prefix/lib64 -L$expat_prefix/lib -lexpat"
         run_expat_test="yes"
     elif test "$expat_requested" = "yes"; then
         if test -n "$expat_include_dir" -a -n "$expat_lib_flags"; then
@@ -275,6 +275,7 @@ p = NULL;
         fi
     fi
     if test "$HAVE_EXPAT" = "yes"; then
-        CPPFLAGS="$CPPFLAGS -DHAVE_EXPAT=1"
+        CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS -DHAVE_EXPAT=1"
+        LDFLAGS="$LDFLAGS $EXPAT_LDFLAGS"
     fi
 ])