configure.ac: Check for expat21 if expat is not found.
authorVinson Lee <vlee@freedesktop.org>
Sat, 5 Aug 2017 20:31:50 +0000 (13:31 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 17 Aug 2017 07:11:27 +0000 (00:11 -0700)
Fixes build error on CentOS 6.9.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102052
Fixes: 5c007203b73d ("configure.ac: drop manual detection of expat header/library")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
configure.ac

index 52645bb44ff64e3ab48c7c0c45c6009926db4d88..53d52f6d52f90588360c39e2308a4d330735e9fc 100644 (file)
@@ -1814,7 +1814,9 @@ if test "x$with_dri_drivers" = xno; then
 fi
 
 # Check for expat
-PKG_CHECK_MODULES([EXPAT], [expat])
+PKG_CHECK_MODULES([EXPAT], [expat],,
+    [PKG_CHECK_MODULES([EXPAT], [expat21])]
+)
 
 dnl If $with_dri_drivers is yes, drivers will be added through
 dnl platform checks. Set DEFINES and LIB_DEPS