diff mbox

[v2,1/2] configure: add ARCH optimisation support by directory

Message ID 1428348899-22253-1-git-send-email-mike.holmes@linaro.org
State Accepted
Commit a2383e6d72e9fc498986658a17bdbcd7c2ca46fe
Headers show

Commit Message

Mike Holmes April 6, 2015, 7:34 p.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 configure.ac | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Maxim Uvarov April 7, 2015, 12:43 p.m. UTC | #1
I'm ok with that patches. Anders do you want also to take a look?

Thanks,
Maxim.

On 04/06/15 22:34, Mike Holmes wrote:
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
>   configure.ac | 11 +++++++++++
>   1 file changed, 11 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 57054c5..f14648c 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -44,6 +44,16 @@ AC_TYPE_UINT32_T
>   AC_TYPE_UINT64_T
>   
>   ##########################################################################
> +# Which archetecture optimizations will we use
> +##########################################################################
> +AS_CASE([$host],
> +  [x86*], [ARCH=x86],
> +  [mips64*], [ARCH=mips64],
> +  [ARCH=linux]
> +)
> +AC_SUBST([ARCH])
> +
> +##########################################################################
>   # Set correct platform library version
>   ##########################################################################
>   AGE=0
> @@ -286,6 +296,7 @@ AC_MSG_RESULT([
>   
>   	Library version:	${ODP_LIBSO_VERSION}
>   
> +	arch			${ARCH}
>   	with_platform:		${with_platform}
>   	prefix:			${prefix}
>   	sysconfdir:		${sysconfdir}
Anders Roxell April 8, 2015, 9:01 p.m. UTC | #2
On 6 April 2015 at 21:34, Mike Holmes <mike.holmes@linaro.org> wrote:

> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
>

Reviewed-by: Anders Roxell <anders.roxell@linaro.org>


> ---
>  configure.ac | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 57054c5..f14648c 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -44,6 +44,16 @@ AC_TYPE_UINT32_T
>  AC_TYPE_UINT64_T
>
>  ##########################################################################
> +# Which archetecture optimizations will we use
> +##########################################################################
> +AS_CASE([$host],
> +  [x86*], [ARCH=x86],
> +  [mips64*], [ARCH=mips64],
> +  [ARCH=linux]
> +)
> +AC_SUBST([ARCH])
> +
> +##########################################################################
>  # Set correct platform library version
>  ##########################################################################
>  AGE=0
> @@ -286,6 +296,7 @@ AC_MSG_RESULT([
>
>         Library version:        ${ODP_LIBSO_VERSION}
>
> +       arch                    ${ARCH}
>         with_platform:          ${with_platform}
>         prefix:                 ${prefix}
>         sysconfdir:             ${sysconfdir}
> --
> 2.1.0
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
>
Maxim Uvarov April 10, 2015, 4:01 p.m. UTC | #3
Merged,
Maxim.

On 04/06/15 22:34, Mike Holmes wrote:
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
>   configure.ac | 11 +++++++++++
>   1 file changed, 11 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 57054c5..f14648c 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -44,6 +44,16 @@ AC_TYPE_UINT32_T
>   AC_TYPE_UINT64_T
>   
>   ##########################################################################
> +# Which archetecture optimizations will we use
> +##########################################################################
> +AS_CASE([$host],
> +  [x86*], [ARCH=x86],
> +  [mips64*], [ARCH=mips64],
> +  [ARCH=linux]
> +)
> +AC_SUBST([ARCH])
> +
> +##########################################################################
>   # Set correct platform library version
>   ##########################################################################
>   AGE=0
> @@ -286,6 +296,7 @@ AC_MSG_RESULT([
>   
>   	Library version:	${ODP_LIBSO_VERSION}
>   
> +	arch			${ARCH}
>   	with_platform:		${with_platform}
>   	prefix:			${prefix}
>   	sysconfdir:		${sysconfdir}
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index 57054c5..f14648c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,6 +44,16 @@  AC_TYPE_UINT32_T
 AC_TYPE_UINT64_T
 
 ##########################################################################
+# Which archetecture optimizations will we use
+##########################################################################
+AS_CASE([$host],
+  [x86*], [ARCH=x86],
+  [mips64*], [ARCH=mips64],
+  [ARCH=linux]
+)
+AC_SUBST([ARCH])
+
+##########################################################################
 # Set correct platform library version
 ##########################################################################
 AGE=0
@@ -286,6 +296,7 @@  AC_MSG_RESULT([
 
 	Library version:	${ODP_LIBSO_VERSION}
 
+	arch			${ARCH}
 	with_platform:		${with_platform}
 	prefix:			${prefix}
 	sysconfdir:		${sysconfdir}