diff mbox

[3/3] Use predefined compiler symbols to try and detect ARM or HPPA systems.

Message ID 20110526030642.GC4978@rox.home.comstyle.com
State New
Headers show

Commit Message

Brad Smith May 26, 2011, 3:06 a.m. UTC
Use predefined compiler symbols to try and detect ARM or HPPA systems
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>

---
 configure |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

Comments

Brad Smith June 15, 2011, 5:05 p.m. UTC | #1
On 25/05/11 11:06 PM, Brad wrote:
> Use predefined compiler symbols to try and detect ARM or HPPA systems
> 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>

ping.

> ---
>   configure |    8 +++++++-
>   1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index a318d37..97b28f8 100755
> --- a/configure
> +++ b/configure
> @@ -280,6 +280,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
> @@ -300,7 +306,7 @@ case "$cpu" in
>     armv*l)
>       cpu="armv4l"
>     ;;
> -  parisc|parisc64)
> +  hppa|parisc|parisc64)
>       cpu="hppa"
>     ;;
>     mips*)
Andreas Färber June 16, 2011, 12:11 a.m. UTC | #2
Am 26.05.2011 um 05:06 schrieb Brad:

> Use predefined compiler symbols to try and detect ARM or HPPA systems

Subject could be sth. like: "configure: Detect predefined compiler  
symbols for ARM and HPPA"
No need to duplicate the first half of the sentence. Otherwise looks  
okay, untested.

Andreas

> 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>
>
> ---
> configure |    8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index a318d37..97b28f8 100755
> --- a/configure
> +++ b/configure
> @@ -280,6 +280,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
> @@ -300,7 +306,7 @@ case "$cpu" in
>   armv*l)
>     cpu="armv4l"
>   ;;
> -  parisc|parisc64)
> +  hppa|parisc|parisc64)
>     cpu="hppa"
>   ;;
>   mips*)
> -- 
> 1.7.5
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
diff mbox

Patch

diff --git a/configure b/configure
index a318d37..97b28f8 100755
--- a/configure
+++ b/configure
@@ -280,6 +280,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
@@ -300,7 +306,7 @@  case "$cpu" in
   armv*l)
     cpu="armv4l"
   ;;
-  parisc|parisc64)
+  hppa|parisc|parisc64)
     cpu="hppa"
   ;;
   mips*)