autoconf: check for dev86 and iasl on x86* only
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 23 lines · Xen patchbot-unstable
# HG changeset patch
# User Roger Pau Monne <[email protected]> # Date 1337008959 -3600
# Node IDdfe39bd65137a97d18f0ee7d155d3755ae5530b4# Parent49ce39c88aeeb0ba58e4f0e2bf865f6981f6e99d
autoconf: check for dev86 and iasl on x86* onlyCheck for this tools on x86 systems only.
Signed-off-by Roger Pau Monne <[email protected]>Acked-by Ian Jackson <[email protected]>Committed-by Ian Jackson <[email protected]>---
diff -r
49ce39c88aee-rdfe39bd65137tools/configuretools/configure +0
-1@@ -2622,9 +2622,14 @@ LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPE -
tools/configure LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPE · line 2632
Quoted 10 lines
tools/configure +8
-2- - +case "$host_cpu" in +i[3456]86|x86_64) + + + + + ;; +esac
This seems like a strange result from the change below, or is XC_ARG_VAR weird in some way? On ARM I still see the configure option:
ianc@army:xen-unstable$ ./configure --help | grep iasl
IASL Path to iasl tool
ianc@army:xen-unstable$ uname -m
armv7lThe thing I actually noticed was that we still have
AX_PATH_PROG_OR_FAIL([AS86], [as86])
AX_PATH_PROG_OR_FAIL([LD86], [ld86])
AX_PATH_PROG_OR_FAIL([BCC], [bcc])
AX_PATH_PROG_OR_FAIL([IASL], [iasl])Is that expected? I don't think it is... Should these not be the ones which are conditional?
Quoted 32 lines
tools/configure +0
-0# Checks for programs. ac_ext=cdiff -r
49ce39c88aee-rdfe39bd65137tools/configure.actools/configure.ac +10
-4@@ -67,10 +67,16 @@ AC_ARG_VAR([CURL], [Path to curl-config AC_ARG_VAR([XML], [Path to xml2-config tool]) AC_ARG_VAR([BASH], [Path to bash shell]) AC_ARG_VAR([XGETTEXT], [Path to xgetttext tool]) -AC_ARG_VAR([AS86], [Path to as86 tool]) -AC_ARG_VAR([LD86], [Path to ld86 tool]) -AC_ARG_VAR([BCC], [Path to bcc tool]) -AC_ARG_VAR([IASL], [Path to iasl tool]) + +dnl as86, ld86, bcc and iasl are only present in x86* systems +case "$host_cpu" in +i[[3456]]86|x86_64) + AC_ARG_VAR([AS86], [Path to as86 tool]) + AC_ARG_VAR([LD86], [Path to ld86 tool]) + AC_ARG_VAR([BCC], [Path to bcc tool]) + AC_ARG_VAR([IASL], [Path to iasl tool]) + ;; +esac # Checks for programs. AC_PROG_CC_______________________________________________
Xen-staging mailing list
[email protected]
http://lists.xensource.com/xen-staging
Quoted 42 lines · Ian Campbell
Quoted 23 lines · Xen patchbot-unstable
# HG changeset patch
# User Roger Pau Monne<[email protected]> # Date 1337008959 -3600
# Node IDdfe39bd65137a97d18f0ee7d155d3755ae5530b4# Parent49ce39c88aeeb0ba58e4f0e2bf865f6981f6e99d
autoconf: check for dev86 and iasl on x86* onlyCheck for this tools on x86 systems only.
Signed-off-by Roger Pau Monne<[email protected]>Acked-by Ian Jackson<[email protected]>Committed-by Ian Jackson<[email protected]>---
diff -r
49ce39c88aee-rdfe39bd65137tools/configuretools/configure +0
-1@@ -2622,9 +2622,14 @@ LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPE -tools/configure LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPE · line 2632
Quoted 10 lines
tools/configure +8
-2- - +case "$host_cpu" in +i[3456]86|x86_64) + + + + + ;; +esacThis seems like a strange result from the change below, or is
XC_ARG_VARweird in some way? On ARM I still see the configure option:ianc@army:xen-unstable$ ./configure --help | grep iasl IASL Path to iasl tool ianc@army:xen-unstable$ uname -m armv7l
Quoted 8 lines
The thing I actually noticed was that we still have
AX_PATH_PROG_OR_FAIL([AS86], [as86]) AX_PATH_PROG_OR_FAIL([LD86], [ld86]) AX_PATH_PROG_OR_FAIL([BCC], [bcc]) AX_PATH_PROG_OR_FAIL([IASL], [iasl])Is that expected? I don't think it is... Should these not be the ones which are conditional?
It is a conditional, but since the script is the same for all architectures and arch is not checked when doing a "configure --help", all the possible options are printed, even those that don't apply to a system. I will try to check if there's a better way to hide them, but I'm not sure.
Quoted 25 lines
Quoted 25 lines
tools/configure +0
-0# Checks for programs. ac_ext=cdiff -r
49ce39c88aee-rdfe39bd65137tools/configure.actools/configure.ac +10
-4@@ -67,10 +67,16 @@ AC_ARG_VAR([CURL], [Path to curl-config AC_ARG_VAR([XML], [Path to xml2-config tool]) AC_ARG_VAR([BASH], [Path to bash shell]) AC_ARG_VAR([XGETTEXT], [Path to xgetttext tool]) -AC_ARG_VAR([AS86], [Path to as86 tool]) -AC_ARG_VAR([LD86], [Path to ld86 tool]) -AC_ARG_VAR([BCC], [Path to bcc tool]) -AC_ARG_VAR([IASL], [Path to iasl tool]) + +dnl as86, ld86, bcc and iasl are only present in x86* systems +case "$host_cpu" in +i[[3456]]86|x86_64) + AC_ARG_VAR([AS86], [Path to as86 tool]) + AC_ARG_VAR([LD86], [Path to ld86 tool]) + AC_ARG_VAR([BCC], [Path to bcc tool]) + AC_ARG_VAR([IASL], [Path to iasl tool]) + ;; +esac
Quoted 3 lines
tools/configure.ac AC_ARG_VAR([CURL], [Path to curl-config · line 82
Quoted 3 lines
tools/configure.ac +0
-0# Checks for programs. AC_PROG_CC
I don't know why, but I think my previous patch missed to also make the actual check conditional, so the applied patch was useless. This should fix it:
8<----------------------------------------------------------
autoconf: disable dev86 and iasl checks on arm
Run autogen after applying this patch.
--- tools/configure.ac | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-)
tools/configure.ac +9 -4
@@ -109,10 +109,15 @@ AS_IF([test "x$pythontools" = "xy"], [ AX_CHECK_PYTHON_DEVEL() ]) AX_PATH_PROG_OR_FAIL([XGETTEXT], [xgettext]) -AX_PATH_PROG_OR_FAIL([AS86], [as86]) -AX_PATH_PROG_OR_FAIL([LD86], [ld86]) -AX_PATH_PROG_OR_FAIL([BCC], [bcc]) -AX_PATH_PROG_OR_FAIL([IASL], [iasl]) +dnl as86, ld86, bcc and iasl are only present in x86* systems +case "$host_cpu" in +i[[3456]]86|x86_64) + AX_PATH_PROG_OR_FAIL([AS86], [as86]) + AX_PATH_PROG_OR_FAIL([LD86], [ld86]) + AX_PATH_PROG_OR_FAIL([BCC], [bcc]) + AX_PATH_PROG_OR_FAIL([IASL], [iasl]) + ;; +esac AX_CHECK_UUID AX_CHECK_CURSES PKG_CHECK_MODULES(glib, glib-2.0)
Ian Campbell
Acked-byQuoted 8 lines · Roger Pau Monne
Quoted 2 lines
Is that expected? I don't think it is... Should these not be the ones which are conditional?
It is a conditional, but since the script is the same for all architectures and arch is not checked when doing a "configure --help", all the possible options are printed, even those that don't apply to a system. I will try to check if there's a better way to hide them, but I'm not sure.
If not then I guess the original patch should be reverted?
Quoted 33 lines
Quoted 25 lines
Quoted 25 lines
# Checks for programs.
ac_ext=c
diff -r49ce39c88aee-rdfe39bd65137tools/configure.actools/configure.ac +10
-4@@ -67,10 +67,16 @@ AC_ARG_VAR([CURL], [Path to curl-config AC_ARG_VAR([XML], [Path to xml2-config tool]) AC_ARG_VAR([BASH], [Path to bash shell]) AC_ARG_VAR([XGETTEXT], [Path to xgetttext tool]) -AC_ARG_VAR([AS86], [Path to as86 tool]) -AC_ARG_VAR([LD86], [Path to ld86 tool]) -AC_ARG_VAR([BCC], [Path to bcc tool]) -AC_ARG_VAR([IASL], [Path to iasl tool]) + +dnl as86, ld86, bcc and iasl are only present in x86* systems +case "$host_cpu" in +i[[3456]]86|x86_64) + AC_ARG_VAR([AS86], [Path to as86 tool]) + AC_ARG_VAR([LD86], [Path to ld86 tool]) + AC_ARG_VAR([BCC], [Path to bcc tool]) + AC_ARG_VAR([IASL], [Path to iasl tool]) + ;; +esacQuoted 3 lines
tools/configure.ac AC_ARG_VAR([CURL], [Path to curl-config · line 82
Quoted 3 lines
tools/configure.ac +0
-0# Checks for programs. AC_PROG_CCI don't know why, but I think my previous patch missed to also make the actual check conditional, so the applied patch was useless. This should fix it:
Quoted 7 lines
8<----------------------------------------------------------
autoconf: disable dev86 and iasl checks on arm
Run autogen after applying this patch.
Signed-off-by Roger Pau Monne <[email protected]>
Looks good to me
Quoted 29 lines
--- tools/configure.ac | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-)tools/configure.ac +9
-4@@ -109,10 +109,15 @@ AS_IF([test "x$pythontools" = "xy"], [ AX_CHECK_PYTHON_DEVEL() ]) AX_PATH_PROG_OR_FAIL([XGETTEXT], [xgettext]) -AX_PATH_PROG_OR_FAIL([AS86], [as86]) -AX_PATH_PROG_OR_FAIL([LD86], [ld86]) -AX_PATH_PROG_OR_FAIL([BCC], [bcc]) -AX_PATH_PROG_OR_FAIL([IASL], [iasl]) +dnl as86, ld86, bcc and iasl are only present in x86* systems +case "$host_cpu" in +i[[3456]]86|x86_64) + AX_PATH_PROG_OR_FAIL([AS86], [as86]) + AX_PATH_PROG_OR_FAIL([LD86], [ld86]) + AX_PATH_PROG_OR_FAIL([BCC], [bcc]) + AX_PATH_PROG_OR_FAIL([IASL], [iasl]) + ;; +esac AX_CHECK_UUID AX_CHECK_CURSES PKG_CHECK_MODULES(glib, glib-2.0)
Quoted 10 lines · Ian Campbell
Quoted 7 lines · Roger Pau Monne
Quoted 2 lines
Is that expected? I don't think it is... Should these not be the ones which are conditional?
It is a conditional, but since the script is the same for all architectures and arch is not checked when doing a "configure --help", all the possible options are printed, even those that don't apply to a system. I will try to check if there's a better way to hide them, but I'm not sure.
If not then I guess the original patch should be reverted?
The original patch doesn't do anything, so yes it can be reverted (although it doesn't affect configure in any way).
Quoted 33 lines
Quoted 33 lines
Quoted 24 lines
Quoted 24 lines
# Checks for programs.
ac_ext=c
diff -r49ce39c88aee-rdfe39bd65137tools/configure.actools/configure.ac +10
-4@@ -67,10 +67,16 @@ AC_ARG_VAR([CURL], [Path to curl-config AC_ARG_VAR([XML], [Path to xml2-config tool]) AC_ARG_VAR([BASH], [Path to bash shell]) AC_ARG_VAR([XGETTEXT], [Path to xgetttext tool]) -AC_ARG_VAR([AS86], [Path to as86 tool]) -AC_ARG_VAR([LD86], [Path to ld86 tool]) -AC_ARG_VAR([BCC], [Path to bcc tool]) -AC_ARG_VAR([IASL], [Path to iasl tool]) + +dnl as86, ld86, bcc and iasl are only present in x86* systems +case "$host_cpu" in +i[[3456]]86|x86_64) + AC_ARG_VAR([AS86], [Path to as86 tool]) + AC_ARG_VAR([LD86], [Path to ld86 tool]) + AC_ARG_VAR([BCC], [Path to bcc tool]) + AC_ARG_VAR([IASL], [Path to iasl tool]) + ;; +esacQuoted 3 lines
tools/configure.ac AC_ARG_VAR([CURL], [Path to curl-config · line 82
Quoted 3 lines
tools/configure.ac +0
-0# Checks for programs. AC_PROG_CCI don't know why, but I think my previous patch missed to also make the actual check conditional, so the applied patch was useless. This should fix it:
8<----------------------------------------------------------
Quoted 8 lines
Quoted 5 lines
autoconf: disable dev86 and iasl checks on arm
Run autogen after applying this patch.
Signed-off-by Roger Pau Monne<[email protected]>Looks good to me
Acked-by Ian Campbell<[email protected]>
Any news on this one? It's been quite some time since the Ack, but I don't think it has been committed (or at least I cannot find it).
Thanks!
Quoted 31 lines
Quoted 29 lines
--- tools/configure.ac | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-)tools/configure.ac +9
-5@@ -109,10 +109,15 @@ AS_IF([test "x$pythontools" = "xy"], [ AX_CHECK_PYTHON_DEVEL() ]) AX_PATH_PROG_OR_FAIL([XGETTEXT], [xgettext]) -AX_PATH_PROG_OR_FAIL([AS86], [as86]) -AX_PATH_PROG_OR_FAIL([LD86], [ld86]) -AX_PATH_PROG_OR_FAIL([BCC], [bcc]) -AX_PATH_PROG_OR_FAIL([IASL], [iasl]) +dnl as86, ld86, bcc and iasl are only present in x86* systems +case "$host_cpu" in +i[[3456]]86|x86_64) + AX_PATH_PROG_OR_FAIL([AS86], [as86]) + AX_PATH_PROG_OR_FAIL([LD86], [ld86]) + AX_PATH_PROG_OR_FAIL([BCC], [bcc]) + AX_PATH_PROG_OR_FAIL([IASL], [iasl]) + ;; +esac AX_CHECK_UUID AX_CHECK_CURSES PKG_CHECK_MODULES(glib, glib-2.0) --
Quoted 7 lines · Roger Pau Monne
Quoted 7 lines
AX_PATH_PROG_OR_FAIL([XGETTEXT], [xgettext])tools/configure.ac AS_IF([test "x$pythontools" = "xy"], [ · line 113
Quoted 6 lines
tools/configure.ac +2
-4-AX_PATH_PROG_OR_FAIL([AS86], [as86]) -AX_PATH_PROG_OR_FAIL([LD86], [ld86]) -AX_PATH_PROG_OR_FAIL([BCC], [bcc]) -AX_PATH_PROG_OR_FAIL([IASL], [iasl]) +dnl as86, ld86, bcc and iasl are only present in x86* systems +case "$host_cpu" in
In the meantime AC_CANONICAL_HOST has been removed (25303:078c7d4cde1d) which breaks this test. I shall re-add it and fold into the commit.
Ian.
Quoted 11 lines · Ian Campbell
Quoted 7 lines · Roger Pau Monne
Quoted 7 lines
AX_PATH_PROG_OR_FAIL([XGETTEXT], [xgettext])tools/configure.ac AS_IF([test "x$pythontools" = "xy"], [ · line 113
Quoted 6 lines
tools/configure.ac +2
-4-AX_PATH_PROG_OR_FAIL([AS86], [as86]) -AX_PATH_PROG_OR_FAIL([LD86], [ld86]) -AX_PATH_PROG_OR_FAIL([BCC], [bcc]) -AX_PATH_PROG_OR_FAIL([IASL], [iasl]) +dnl as86, ld86, bcc and iasl are only present in x86* systems +case "$host_cpu" inIn the meantime
AC_CANONICAL_HOSThas been removed (25303:078c7d4cde1d) which breaks this test. I shall re-add it and fold into the commit.
I applied this as 25639:ce24b84f6af8 -- please take a look and ensure I got it right.
Ian.
Ian Campbell writes ("Re: [Xen-devel] [Xen-staging] [xen-unstable] autoconf: check for dev86 and iasl on x86* only"):
Quoted 13 lines · Ian Campbell
Quoted 11 lines · Roger Pau Monne
Quoted 7 lines
Quoted 7 lines
AX_PATH_PROG_OR_FAIL([XGETTEXT], [xgettext])tools/configure.ac AS_IF([test "x$pythontools" = "xy"], [ · line 113
Quoted 6 lines
tools/configure.ac +2
-4-AX_PATH_PROG_OR_FAIL([AS86], [as86]) -AX_PATH_PROG_OR_FAIL([LD86], [ld86]) -AX_PATH_PROG_OR_FAIL([BCC], [bcc]) -AX_PATH_PROG_OR_FAIL([IASL], [iasl]) +dnl as86, ld86, bcc and iasl are only present in x86* systems +case "$host_cpu" inIn the meantime
AC_CANONICAL_HOSThas been removed (25303:078c7d4cde1d) which breaks this test. I shall re-add it and fold into the commit.
Quoted 2 lines
I applied this as 25639:ce24b84f6af8 -- please take a look and ensure I got it right.
Inspecting the diff reveals some probably-unintentional whitespace changes but aside from that it looks good to me.
Ian.