$OpenBSD: patch-configure,v 1.9 2010/02/23 19:55:15 phessler Exp $
--- configure.orig	Thu Mar 30 02:51:49 2000
+++ configure	Sat Feb 13 11:30:23 2010
@@ -528,7 +528,7 @@ fi
 
 
 ac_aux_dir=
-for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+for ac_dir in ${GNUSYSTEM_AUX_DIR} $srcdir $srcdir/.. $srcdir/../..; do
   if test -f $ac_dir/install-sh; then
     ac_aux_dir=$ac_dir
     ac_install_sh="$ac_aux_dir/install-sh -c"
@@ -1273,8 +1273,36 @@ sparc-*) cat >> confdefs.h <<\EOF
 #define __sparc__ 1
 EOF
 ;;
-ppc-*) cat >> confdefs.h <<\EOF
+sparc64-*) cat >> confdefs.h <<\EOF
+#define __sparc64__ 1
+EOF
+;;
+ppc-*|powerpc-*) cat >> confdefs.h <<\EOF
 #define __ppc__ 1
+EOF
+;;
+vax-*) cat >> confdefs.h <<\EOF
+#define __vax__ 1
+EOF
+;;
+m68k-*) cat >> confdefs.h <<\EOF
+#define __m68k__ 1
+EOF
+;;
+hppa-*) cat >> confdefs.h <<\EOF
+#define __hppa__ 1
+EOF
+;;
+arm-*) cat >> confdefs.h <<\EOF
+#define __arm__ 1
+EOF
+;;
+x86_64-*) cat >> confdefs.h <<\EOF
+#define __amd64__ 1
+EOF
+;;
+mips64-*|mips64el-*) cat >> confdefs.h <<\EOF
+#define __mips64__ 1
 EOF
 ;;
 *) echo "$host is not currently supported by ac3dec"; exit 1;;
