Blame SOURCES/cairo-multilib.patch

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