Blame SOURCES/cairo-multilib.patch

f70f23
diff -up cairo-1.12.14/util/cairo-trace/cairo-trace.in.multilib cairo-1.12.14/util/cairo-trace/cairo-trace.in
f70f23
--- cairo-1.12.14/util/cairo-trace/cairo-trace.in.multilib	2013-07-18 16:03:38.044832193 -0400
f70f23
+++ cairo-1.12.14/util/cairo-trace/cairo-trace.in	2013-07-18 16:03:43.981882777 -0400
f70f23
@@ -2,6 +2,12 @@
f70f23
 
f70f23
 prefix=@prefix@
f70f23
 exec_prefix=@exec_prefix@
f70f23
+case `uname -m` in
f70f23
+  x86_64|s390x|ppc64) libdir=@prefix@/lib64
f70f23
+    ;;
f70f23
+  *) libdir=@prefix@/lib
f70f23
+    ;;
f70f23
+esac
f70f23
 
f70f23
 nofile=
f70f23
 flush=
f70f23
@@ -90,7 +96,7 @@ export CAIRO_TRACE_PROG_NAME
f70f23
 
f70f23
 if test "x$CAIRO_TRACE_SO" = "x"; then
f70f23
     CAIRO_TRACE_SO=""
f70f23
-    for lib in @libdir@/cairo/libcairo-trace.@SHLIB_EXT@ @libdir@/cairo/libcairo-trace.@SHLIB_EXT@* @libdir@/cairo/libcairo-trace.*.@SHLIB_EXT@ ; do
f70f23
+    for lib in $libdir/cairo/libcairo-trace.@SHLIB_EXT@ $libdir/cairo/libcairo-trace.@SHLIB_EXT@* $libdir/cairo/libcairo-trace.*.@SHLIB_EXT@ ; do
f70f23
 	if test -h "$lib" -o -f "$lib"; then
f70f23
 	    CAIRO_TRACE_SO="$lib"
f70f23
 	    break
f70f23
@@ -98,7 +104,7 @@ if test "x$CAIRO_TRACE_SO" = "x"; then
f70f23
     done
f70f23
 fi
f70f23
 if test "x$CAIRO_TRACE_SO" = "x"; then
f70f23
-    echo "Could not find the cairo-trace shared library in @libdir@/cairo/." >&2
f70f23
+    echo "Could not find the cairo-trace shared library in $libdir/cairo/." >&2
f70f23
     echo "Set the CAIRO_TRACE_SO environment variable to the full path of the library." >&2
f70f23
     exit 15
f70f23
 fi