I sent this to the maintainer a couple weeks ago with no response, so
I'm resending it here.
The emacs configure script mistakenly thinks that openbsd-*-hppa* is
68k instead of PA-RISC, and since 68k has been deprecated in Emacs 22,
the build fails with a deprecation warning. The following simple
patch corrects this, the configure.in patch has already been
accepted upstream.
--- Makefile.orig Thu Jul 17 09:52:16 2008
+++ Makefile Mon Nov 17 18:39:14 2008
@@ -32,7 +32,8 @@
GCCARCH= ${MACHINE_ARCH}-unknown-openbsd${OPSYS_VER}
-CONFIGURE_STYLE= gnu
+AUTOCONF_VERSION= 2.61
+CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= ${GCCARCH} --with-pop --localstatedir=/var
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
--- /dev/null Mon Nov 17 21:40:13 2008
+++ patches/patch-configure.in Mon Nov 17 21:08:00 2008
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- configure.in.orig Sat Mar 1 11:28:11 2008
++++ configure.in Mon Nov 17 18:27:53 2008
+@@ -298,7 +298,7 @@ dnl see the `changequote' comment above.
+ case "${canonical}" in
+ alpha*-*-openbsd*) machine=alpha ;;
+ arm-*-openbsd*) machine=arm ;;
+- hppa-*-openbsd*) machine=hp9000s300 ;;
++ hppa-*-openbsd*) machine=hp800 ;;
+ i386-*-openbsd*) machine=intel386 ;;
+ m68k-*-openbsd*) machine=hp9000s300 ;;
+ m88k-*-openbsd*) machine=aviion ;;