Blame SOURCES/apache-commons-daemon-ppc64.patch

e0076e
diff -up commons-daemon-1.0.10-src/src/native/unix/configure.ppc64 commons-daemon-1.0.10-src/src/native/unix/configure
e0076e
--- commons-daemon-1.0.10-src/src/native/unix/configure.ppc64  2012-08-17 15:50:17.060069518 +0200
e0076e
+++ commons-daemon-1.0.10-src/src/native/unix/configure        2012-08-17 15:51:23.540069517 +0200
e0076e
@@ -2566,8 +2566,14 @@ echo "$as_me: error: Unsupported operati
e0076e
   esac
e0076e
   case $host_cpu in
e0076e
   powerpc)
e0076e
-    CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
e0076e
-    HOST_CPU=$host_cpu;;
e0076e
+    CFLAGS="$CFLAGS -DCPU=\\\"ppc\\\""
e0076e
+    HOST_CPU=ppc;;
e0076e
+  powerpc64)
e0076e
+    CFLAGS="$CFLAGS -DCPU=\\\"ppc64\\\""
e0076e
+    HOST_CPU=ppc64;;
e0076e
+  powerpc64le)
e0076e
+    CFLAGS="$CFLAGS -DCPU=\\\"ppc64le\\\""
e0076e
+    HOST_CPU=ppc64le;;
e0076e
   sparc*)
e0076e
     CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
e0076e
     HOST_CPU=$host_cpu;;
e0076e
diff -up commons-daemon-1.0.10-src/src/native/unix/support/apsupport.m4.ppc64 commons-daemon-1.0.10-src/src/native/unix/support/apsupport.m4
e0076e
--- commons-daemon-1.0.10-src/src/native/unix/support/apsupport.m4.ppc64       2012-08-17 15:50:30.330069517 +0200
e0076e
+++ commons-daemon-1.0.10-src/src/native/unix/support/apsupport.m4     2012-08-17 15:51:33.280069517 +0200
e0076e
@@ -77,8 +77,14 @@ AC_DEFUN(AP_SUPPORTED_HOST,[
e0076e
   esac
e0076e
   case $host_cpu in
e0076e
   powerpc)
e0076e
-    CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
e0076e
-    HOST_CPU=$host_cpu;;
e0076e
+    CFLAGS="$CFLAGS -DCPU=\\\"ppc\\\""
e0076e
+    HOST_CPU=ppc;;
e0076e
+  powerpc64)
e0076e
+    CFLAGS="$CFLAGS -DCPU=\\\"ppc64\\\""
e0076e
+    HOST_CPU=ppc64;;
e0076e
+  powerpc64le)
e0076e
+    CFLAGS="$CFLAGS -DCPU=\\\"ppc64le\\\""
e0076e
+    HOST_CPU=ppc64le;;
e0076e
   sparc*)
e0076e
     CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
e0076e
     HOST_CPU=$host_cpu;;