tools/configure: only require bcc/ld86/as86 when needed
PATCH v2 1/4 tools/configure: only require bcc/ld86/as86 when needed
bcc/ld86/as86 are only necessary when we build rombios and not always so failing the build when they aren't available should not happen if the user isn't building rombios.
---
CC: Ian Jackson <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Wei Liu <[email protected]>
change since v1:
- don't screw up the white space
--- README | 3 ++- tools/configure.ac | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-)
README +2 -1
@@ -58,7 +58,6 @@ provided by your OS distributor: * iproute package (/sbin/ip) * GNU bison and GNU flex * GNU gettext - * 16-bit x86 assembler, loader and compiler (dev86 rpm or bin86 & bcc debs) * ACPI ASL compiler (iasl) * Libc multiarch package (e.g. libc6-dev-i386 / glibc-devel.i686). Required when building on a 64-bit platform to build
@@ -78,6 +77,8 @@ disabled at compile time: libnl-3-dev, etc). Required if network buffering is desired when using Remus with libxl. See docs/README.remus for detailed information. + * 16-bit x86 assembler, loader and compiler for qemu-traditional / rombios + (dev86 rpm or bin86 & bcc debs) Second, you need to acquire a suitable kernel for use in domain 0. If possible you should use a kernel provided by your OS distributor. If
tools/configure.ac +7 -4
@@ -164,7 +164,13 @@ AC_ARG_ENABLE([rombios], ]) ]) AS_IF([test "x$enable_rombios" = "xyes"], [ -AC_DEFINE([HAVE_ROMBIOS], [1], [ROMBIOS enabled]) + dnl as86, ld86, and bcc are only required when building rombios. They + dnl are only needed when the host system is x86 but that check is done + dnl for us above when checking if we should build with qemu-traditional. + AX_PATH_PROG_OR_FAIL([AS86], [as86]) + AX_PATH_PROG_OR_FAIL([LD86], [ld86]) + AX_PATH_PROG_OR_FAIL([BCC], [bcc]) + AC_DEFINE([HAVE_ROMBIOS], [1], [ROMBIOS enabled]) rombios=y],[ rombios=n ])
@@ -320,9 +326,6 @@ dnl going to run, not the platform on which we are building (known as dnl "build" in gnu speak). 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
Signature · 1 line
2.4.10
PATCH v2 2/4 m4/python: fix typo in LDFLAGS variable name
---
CC: Ian Jackson <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Wei Liu <[email protected]>
change since v1:
- don't screw up the white space
--- m4/python_devel.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
m4/python_devel.m4 +1 -1
@@ -32,5 +32,5 @@ AC_CHECK_HEADER([Python.h], [], AC_CHECK_LIB(python$ac_python_version, PyArg_ParseTuple, [], [AC_MSG_ERROR([Unable to find a suitable python development library])]) CPPFLAGS=$ac_previous_cppflags -LDLFAGS=$ac_previous_ldflags +LDFLAGS=$ac_previous_ldflags ])
Signature · 1 line
2.4.10
Re: [PATCH v2 2/4] m4/python: fix typo in LDFLAGS variable name
Quoted 2 lines · Doug Goldstein
Reported-by Jonathan Creekmore <[email protected]>Signed-off-by Doug Goldstein <[email protected]>
Quoted 31 lines
---
CC: Ian Jackson <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Wei Liu <[email protected]>change since v1:
- don't screw up the white space--- m4/python_devel.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)m4/python_devel.m4 +1
-1@@ -32,5 +32,5 @@ AC_CHECK_HEADER([Python.h], [], AC_CHECK_LIB(python$ac_python_version, PyArg_ParseTuple, [], [AC_MSG_ERROR([Unable to find a suitable python development library])]) CPPFLAGS=$ac_previous_cppflags -LDLFAGS=$ac_previous_ldflags +LDFLAGS=$ac_previous_ldflags ])Signature · 7 lines
2.4.10 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Re: [PATCH v2 2/4] m4/python: fix typo in LDFLAGS variable name
Konrad Rzeszutek Wilk writes ("Re: [Xen-devel] [PATCH v2 2/4] m4/python: fix typo in LDFLAGS variable name"):
Quoted 5 lines · Doug Goldstein
Quoted 2 lines
Reported-by Jonathan Creekmore <[email protected]>Signed-off-by Doug Goldstein <[email protected]>Reviewed-by Konrad Rzeszutek Wilk <[email protected]>
Quoted 2 lines
m4/python_devel.m4 AC_CHECK_HEADER([Python.h], [], · line 35
Quoted 2 lines
m4/python_devel.m4 +1
-1-LDLFAGS=$ac_previous_ldflags +LDFLAGS=$ac_previous_ldflags
Oops!
Queued for push in my tree.
Thanks,
Ian.
PATCH v2 3/4 m4/python: fix checks for Python library support
In reply to Doug GoldsteinAC_CHECK_LIB() was running gcc -Llib -lm -lutils conftest.c which on platforms that do as needed operations by default will result in underlinking. Instead AC_CHECK_LIB() suggests supplying the extra libraries necessary in a 5th argument.
---
CC: Ian Jackson <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Wei Liu <[email protected]>
change since v1:
- don't screw up the white space
--- m4/python_devel.m4 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
m4/python_devel.m4 +5 -3
@@ -10,9 +10,9 @@ AS_IF([test x"$pyconfig" = x"no"], [ print "-I" + distutils.sysconfig.get_config_var("INCLUDEPY")'`" CPPFLAGS="$CPPFLAGS `$PYTHON -c 'import distutils.sysconfig; \ print distutils.sysconfig.get_config_var("CFLAGS")'`" - LDFLAGS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ + PYTHON_LIBS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ print distutils.sysconfig.get_config_var("LIBS")'`" - LDFLAGS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ + PYTHON_LIBS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ print distutils.sysconfig.get_config_var("SYSLIBS")'`" LDFLAGS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ print "-L" + distutils.sysconfig.get_python_lib(plat_specific=1,\
@@ -25,12 +25,14 @@ AS_IF([test x"$pyconfig" = x"no"], [ dnl If python-config is found use it CPPFLAGS="$CFLAGS `$PYTHON-config --cflags`" LDFLAGS="$LDFLAGS `$PYTHON-config --ldflags`" + PYTHON_LIBS="$LIBS `$PYTHON-config --libs`" ]) AC_CHECK_HEADER([Python.h], [], [AC_MSG_ERROR([Unable to find Python development headers])],) AC_CHECK_LIB(python$ac_python_version, PyArg_ParseTuple, [], - [AC_MSG_ERROR([Unable to find a suitable python development library])]) + [AC_MSG_ERROR([Unable to find a suitable python development library])], + [$PYTHON_LIBS]) CPPFLAGS=$ac_previous_cppflags LDFLAGS=$ac_previous_ldflags ])
Signature · 1 line
2.4.10
Re: [PATCH v2 3/4] m4/python: fix checks for Python library support
Doug Goldstein writes ("[PATCH v2 3/4] m4/python: fix checks for Python library support"):
Quoted 4 lines
AC_CHECK_LIB()was running gcc -Llib -lm -lutilsconftest.cwhich on platforms that do as needed operations by default will result in underlinking. InsteadAC_CHECK_LIB()suggests supplying the extra libraries necessary in a 5th argument.
I'm afraid I don't quite follow why the code in the patch has the effect you desire. Why does setting LDFLAGS not work ? Forgive me if I'm being dense - I'm afraid I have a cold.
Regards,
Ian.
Re: [PATCH v2 3/4] m4/python: fix checks for Python library support
Quoted 6 lines · Ian Jackson
Doug Goldstein writes ("[PATCH v2 3/4] m4/python: fix checks for Python library support"):
Quoted 4 lines
AC_CHECK_LIB()was running gcc -Llib -lm -lutilsconftest.cwhich on platforms that do as needed operations by default will result in underlinking. InsteadAC_CHECK_LIB()suggests supplying the extra libraries necessary in a 5th argument.
Quoted 7 lines
I'm afraid I don't quite follow why the code in the patch has the effect you desire. Why does setting LDFLAGS not work ? Forgive me if I'm being dense - I'm afraid I have a cold.
Regards,
Ian.
You need to put your libraries after the sources. e.g.
gcc -W -march=native -Llibs -o program program.c -lm -lcustom
Not before. That's why there's a difference between LIBS and LDFLAGS. The proper order is:
COMPILER CFLAGS LDFLAGS SOURCES LIBS
The reason is the compiler reduces the symbols to only the symbols used in each stage. By putting the libraries first the symbols are all reduced out and the result is a compiler failure.
I can link you to the Gentoo docs on this:
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Failure_in_..2Fconfigure
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH v2 3/4] m4/python: fix checks for Python library support
Quoted 22 lines · Doug Goldstein
Quoted 6 lines · Ian Jackson
Doug Goldstein writes ("[PATCH v2 3/4] m4/python: fix checks for Python library support"):
Quoted 4 lines
AC_CHECK_LIB()was running gcc -Llib -lm -lutilsconftest.cwhich on platforms that do as needed operations by default will result in underlinking. InsteadAC_CHECK_LIB()suggests supplying the extra libraries necessary in a 5th argument.Quoted 7 lines
I'm afraid I don't quite follow why the code in the patch has the effect you desire. Why does setting LDFLAGS not work ? Forgive me if I'm being dense - I'm afraid I have a cold.
Regards,
Ian.You need to put your libraries after the sources. e.g.
gcc -W -march=native -Llibs -o program
program.c-lm -lcustomNot before. That's why there's a difference between LIBS and LDFLAGS. The proper order is:
Quoted 10 lines
COMPILER CFLAGS LDFLAGS SOURCES LIBS
The reason is the compiler reduces the symbols to only the symbols used in each stage. By putting the libraries first the symbols are all reduced out and the result is a compiler failure.
I can link you to the Gentoo docs on this:
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Failure_in_..2Fconfigure
Does this answer your question?
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Ian Jackson
Acked-byRe: [PATCH v2 3/4] m4/python: fix checks for Python library support
In reply to Doug GoldsteinDoug Goldstein writes ("Re: [PATCH v2 3/4] m4/python: fix checks for Python library support"):
Quoted 2 lines
You need to put your libraries after the sources. e.g. gcc -W -march=native -Llibs -o program
program.c-lm -lcustom
Of course. I really was quite thick last week! I have queued this patch now.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH v2 3/4] m4/python: fix checks for Python library support
In reply to Ian JacksonQuoted 6 lines · Ian Jackson
Doug Goldstein writes ("[PATCH v2 3/4] m4/python: fix checks for Python library support"):
Quoted 4 lines
AC_CHECK_LIB()was running gcc -Llib -lm -lutilsconftest.cwhich on platforms that do as needed operations by default will result in underlinking. InsteadAC_CHECK_LIB()suggests supplying the extra libraries necessary in a 5th argument.
Quoted 7 lines
I'm afraid I don't quite follow why the code in the patch has the effect you desire. Why does setting LDFLAGS not work ? Forgive me if I'm being dense - I'm afraid I have a cold.
Regards,
Ian.
In fact this pattern is repeated all over the code base in makefiles:
libxenctrl.so.$(MAJOR).$(MINOR): $(CTRL_PIC_OBJS)
$(CC) $(LDFLAGS) $(PTHREAD_LDFLAGS) -Wl,$(SONAME_LDFLAG)
-Wl,libxenctrl.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $^ $(LDLIBS_libxentoollog) $(LDLIBS_libxenevtchn) $(LDLIBS_libxengnttab) $(LDLIBS_libxengntshr) $(LDLIBS_libxencall) $(LDLIBS_libxenforeignmemory) $(PTHREAD_LIBS) $(APPEND_LDFLAGS)
COMPILER CFLAGS/LDFLAGS -o TARGET SOURCE LIBS
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
PATCH v2 4/4 configure: rerun autoconf
In reply to Doug Goldstein---
CC: Ian Jackson <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Wei Liu <[email protected]>
Before these changes I was seeing the following errors:
https://travis-ci.org/cardoe/xen/jobs/110174912
https://travis-ci.org/cardoe/xen/jobs/110196932#L1435 (you have to expand the 'cat tools/config.log' and go down to line 1435).
The goal here is to enabling building the toolstack in Travis. This series gets us to this:
https://travis-ci.org/cardoe/xen/jobs/110210149#L3536
But Andrew Cooper has provided a patch to solve that issue in 'hvmloader: Use xen/errno.h rather than the host systems errno.h'
change since v1:
- don't screw up the white space
--- tools/configure | 295 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 148 insertions(+), 147 deletions(-)
tools/configure +148 -147
@@ -682,9 +682,6 @@ INSTALL_PROGRAM SET_MAKE AWK IASL -BCC -LD86 -AS86 XGETTEXT BASH XML
@@ -704,6 +701,9 @@ qemu_xen_systemd qemu_xen_path qemu_xen rombios +BCC +LD86 +AS86 qemu_traditional blktap2 LINUX_BACKEND_MODULES
@@ -3348,7 +3348,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1];
@@ -3394,7 +3394,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1];
@@ -3418,7 +3418,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1];
@@ -3463,7 +3463,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1];
@@ -3487,7 +3487,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1];
@@ -4242,6 +4242,141 @@ fi if test "x$enable_rombios" = "xyes"; then : + # Extract the first word of "as86", so it can be a program name with args. +set dummy as86; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_AS86+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $AS86 in + [\\/]* | ?:[\\/]*) + ac_cv_path_AS86="$AS86" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_AS86="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_AS86" && ac_cv_path_AS86="no" + ;; +esac +fi +AS86=$ac_cv_path_AS86 +if test -n "$AS86"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS86" >&5 +$as_echo "$AS86" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test x"${AS86}" = x"no" +then + as_fn_error $? "Unable to find as86, please install as86" "$LINENO" 5 +fi + # Extract the first word of "ld86", so it can be a program name with args. +set dummy ld86; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_LD86+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $LD86 in + [\\/]* | ?:[\\/]*) + ac_cv_path_LD86="$LD86" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_LD86="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_LD86" && ac_cv_path_LD86="no" + ;; +esac +fi +LD86=$ac_cv_path_LD86 +if test -n "$LD86"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD86" >&5 +$as_echo "$LD86" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test x"${LD86}" = x"no" +then + as_fn_error $? "Unable to find ld86, please install ld86" "$LINENO" 5 +fi + # Extract the first word of "bcc", so it can be a program name with args. +set dummy bcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_BCC+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $BCC in + [\\/]* | ?:[\\/]*) + ac_cv_path_BCC="$BCC" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_BCC="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_BCC" && ac_cv_path_BCC="no" + ;; +esac +fi +BCC=$ac_cv_path_BCC +if test -n "$BCC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BCC" >&5 +$as_echo "$BCC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test x"${BCC}" = x"no" +then + as_fn_error $? "Unable to find bcc, please install bcc" "$LINENO" 5 +fi $as_echo "#define HAVE_ROMBIOS 1" >>confdefs.h
@@ -7150,9 +7285,9 @@ if test x"$pyconfig" = x"no"; then : print "-I" + distutils.sysconfig.get_config_var("INCLUDEPY")'`" CPPFLAGS="$CPPFLAGS `$PYTHON -c 'import distutils.sysconfig; \ print distutils.sysconfig.get_config_var("CFLAGS")'`" - LDFLAGS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ + PYTHON_LIBS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ print distutils.sysconfig.get_config_var("LIBS")'`" - LDFLAGS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ + PYTHON_LIBS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ print distutils.sysconfig.get_config_var("SYSLIBS")'`" LDFLAGS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ print "-L" + distutils.sysconfig.get_python_lib(plat_specific=1,\
@@ -7166,6 +7301,7 @@ else CPPFLAGS="$CFLAGS `$PYTHON-config --cflags`" LDFLAGS="$LDFLAGS `$PYTHON-config --ldflags`" + PYTHON_LIBS="$LIBS `$PYTHON-config --libs`" fi
@@ -7184,7 +7320,7 @@ if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpython$ac_python_version $LIBS" +LIBS="-lpython$ac_python_version $PYTHON_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */
@@ -7227,7 +7363,7 @@ else fi CPPFLAGS=$ac_previous_cppflags -LDLFAGS=$ac_previous_ldflags +LDFLAGS=$ac_previous_ldflags { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Python setup.py brokenly enables -D_FORTIFY_SOURCE" >&5
@@ -7315,141 +7451,6 @@ then fi case "$host_cpu" in i[3456]86|x86_64) - # Extract the first word of "as86", so it can be a program name with args. -set dummy as86; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_AS86+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $AS86 in - [\\/]* | ?:[\\/]*) - ac_cv_path_AS86="$AS86" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_AS86="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_AS86" && ac_cv_path_AS86="no" - ;; -esac -fi -AS86=$ac_cv_path_AS86 -if test -n "$AS86"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS86" >&5 -$as_echo "$AS86" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test x"${AS86}" = x"no" -then - as_fn_error $? "Unable to find as86, please install as86" "$LINENO" 5 -fi - # Extract the first word of "ld86", so it can be a program name with args. -set dummy ld86; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_LD86+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $LD86 in - [\\/]* | ?:[\\/]*) - ac_cv_path_LD86="$LD86" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_LD86="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_LD86" && ac_cv_path_LD86="no" - ;; -esac -fi -LD86=$ac_cv_path_LD86 -if test -n "$LD86"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD86" >&5 -$as_echo "$LD86" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test x"${LD86}" = x"no" -then - as_fn_error $? "Unable to find ld86, please install ld86" "$LINENO" 5 -fi - # Extract the first word of "bcc", so it can be a program name with args. -set dummy bcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_BCC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $BCC in - [\\/]* | ?:[\\/]*) - ac_cv_path_BCC="$BCC" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_BCC="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_BCC" && ac_cv_path_BCC="no" - ;; -esac -fi -BCC=$ac_cv_path_BCC -if test -n "$BCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BCC" >&5 -$as_echo "$BCC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test x"${BCC}" = x"no" -then - as_fn_error $? "Unable to find bcc, please install bcc" "$LINENO" 5 -fi # Extract the first word of "iasl", so it can be a program name with args. set dummy iasl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Signature · 1 line
2.4.10
PATCH v2 4/4 configure: rerun autoconf
Doug Goldstein writes ("[PATCH v2 4/4] configure: rerun autoconf"):
Quoted 1 line
Signed-off-by Doug Goldstein <[email protected]>
The committer normally reruns autoconf during application of each individual patch, thus folding the configure' changes into the same patch as the configure.ac' changes.
I have done this with your LDLFAGS fix.
I haven't yet applied your python change (because I'm giving people a chance to ack/object/etc.) but when we do apply it, autogen.sh should also be rerun.
In future, please, instead of providing the autogen.sh output in a separate patch, put a note in the commit message. Ideally this would go below the S-o-b and below the acks, and would say
"Please rerun autogen.sh when applying this patch"
Thanks,
Ian.
Quoted 3 lines · Doug Goldstein
bcc/ld86/as86 are only necessary when we build rombios and not always so failing the build when they aren't available should not happen if the user isn't building rombios.
That is quite the long sentence. Perhaps trim it down to:
"are necessary when we build ROMBIOS. However if we do not build it (not building qemu-trad) - the build requirements are overly strict and can lead to failures." ?
Otherwise
Quoted 5 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Doug Goldstein
bcc/ld86/as86 are only necessary when we build rombios and not always so failing the build when they aren't available should not happen if the user isn't building rombios.
Quoted 9 lines
That is quite the long sentence. Perhaps trim it down to:
"are necessary when we build ROMBIOS. However if we do not build it (not building qemu-trad) - the build requirements are overly strict and can lead to failures." ?
Otherwise
Reviewed-by Konrad Rzeszutek Wilk <[email protected]>
Agreed. That's better. Thank you for the review.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 12 lines · Doug Goldstein
Quoted 11 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Doug Goldstein
bcc/ld86/as86 are only necessary when we build rombios and not always so failing the build when they aren't available should not happen if the user isn't building rombios.
That is quite the long sentence. Perhaps trim it down to:
"are necessary when we build ROMBIOS. However if we do not build it (not building qemu-trad) - the build requirements are overly strict and can lead to failures." ?
Quoted 7 lines
Quoted 3 lines
Otherwise
Reviewed-by Konrad Rzeszutek Wilk <[email protected]>Agreed. That's better. Thank you for the review.
Hoping to get some more reviews before I resend this with the wording update. 3/4 has no reviews.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel