configure: Detect predefined compiler symbols for ARM and HPPA
authorBrad <brad@comstyle.com>
Thu, 8 Sep 2011 01:24:56 +0000 (21:24 -0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 1 Oct 2011 06:13:04 +0000 (06:13 +0000)
To be able to detect some ARM / HPPA based architectures such as with
OpenBSD/(armish / zaurus) or OpenBSD/hppa.

Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index 24b8df4..59b1494 100755 (executable)
--- a/configure
+++ b/configure
@@ -284,6 +284,12 @@ elif check_define __s390__ ; then
   else
     cpu="s390"
   fi
+elif check_define __ARMEB__ ; then
+  cpu="armv4b"
+elif check_define __ARMEL__ ; then
+  cpu="armv4l"
+elif check_define __hppa__ ; then
+  cpu="hppa"
 else
   cpu=`uname -m`
 fi
@@ -304,7 +310,7 @@ case "$cpu" in
   armv*l)
     cpu="armv4l"
   ;;
-  parisc|parisc64)
+  hppa|parisc|parisc64)
     cpu="hppa"
   ;;
   mips*)