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

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