--- configure.in +++ configure.in 2012-06-26 16:30:51.496510306 +0000 @@ -420,7 +420,8 @@ case "${canonical}" in case ${canonical} in alpha*) machine=alpha ;; s390x-*) machine=ibms390x ;; - powerpc*) machine=macppc ;; + powerpc*|ppc*) + machine=macppc ;; sparc*) machine=sparc ;; ia64*) machine=ia64 ;; m68k*) machine=m68k ;; @@ -1050,7 +1051,7 @@ if test "x$crt_files" != x; then test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64 ;; - powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;; + powerpc64-*-linux-gnu* | ppc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;; esac case "$opsys" in --- src/m/macppc.h +++ src/m/macppc.h 2012-06-26 16:31:30.584509749 +0000 @@ -17,6 +17,12 @@ GNU General Public License for more deta You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ +#ifdef __powerpc64__ +#ifndef _ARCH_PPC64 +#define _ARCH_PPC64 +#endif +#endif + #ifdef _ARCH_PPC64 #ifndef _LP64 #define _LP64