[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : luke
Repository : xara
Revision   : 763
Date       : Tue Apr  4 10:20:30 BST 2006

Changed paths:
   M /Trunk/XaraLX/configure.in

Fix an issue with PKG_CHECK_MODULES on some autoconf's


Diff:
Index: Trunk/XaraLX/configure.in
===================================================================
--- Trunk/XaraLX/configure.in	(revision 762)
+++ Trunk/XaraLX/configure.in	(revision 763)
@@ -179,14 +179,18 @@
 	FT_CFLAGS="`$FTCONFIG --cflags`"
 
 	# check for the Pango package
+	PkgError = "no"
 	PKG_CHECK_MODULES(PANGOX, pangox,
 			  [
 				PANGO_CFLAGS="$PANGOX_CFLAGS"
 			  ],
 			  [
-				AC_MSG_ERROR([pangox library not found])
+				PkgError = "yes"
 			  ]
 			  )
+	if( test PkgError == "yes"; then
+		AC_MSG_ERROR([pangox library not found])
+	fi
 else
 	# non-GTK build, i.e., MacOS, so Pango and FreeType are not required
 	FT_CFLAGS = ""


Xara