Patchwork configure: Detect predefined compiler symbols for ARM and HPPA

login
register
mail settings
Submitter Brad
Date Sept. 8, 2011, 1:24 a.m.
Message ID <20110908012456.GA29428@rox.home.comstyle.com>
Download mbox | patch
Permalink /patch/113856/
State New
Headers show

Comments

Brad - Sept. 8, 2011, 1:24 a.m.
configure: Detect predefined compiler symbols for ARM and HPPA

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(-)
Brad - Sept. 19, 2011, 5:54 p.m.
On 07/09/11 9:24 PM, Brad wrote:
> configure: Detect predefined compiler symbols for ARM and HPPA
>
> 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.
Blue Swirl - Oct. 1, 2011, 12:03 p.m.
Thanks, applied.

On Thu, Sep 8, 2011 at 1:24 AM, Brad <brad@comstyle.com> wrote:
> configure: Detect predefined compiler symbols for ARM and HPPA
>
> 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 c7948b6..3bc6904 100755
> --- 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*)
> --
> 1.7.6
>
>
>

Patch

diff --git a/configure b/configure
index c7948b6..3bc6904 100755
--- 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*)