mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
It is reported that [] was removed by autoconf, which caused the
following error:
./configure: line 4681: -z: command not found
Switch to test. That's what is used throughout our configure scripts.
Also put the variable expansion in quotes.
Signed-off-by: Wei Liu <wl@xen.org>
Reported-by: Bertrand Marquis <Bertrand.Marquis@arm.com>
Fixes: 8a6b1665d9 ("configure: also add EXTRA_PREFIX to {CPP/LD}FLAGS")
Signed-off-by: Wei Liu <wl@xen.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Paul Durrant <paul@xen.org>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
25 lines
616 B
Plaintext
25 lines
616 B
Plaintext
AC_DEFUN([AX_SET_FLAGS],
|
|
[for cppflag in $PREPEND_INCLUDES
|
|
do
|
|
PREPEND_CPPFLAGS="$PREPEND_CPPFLAGS -I$cppflag"
|
|
done
|
|
for ldflag in $PREPEND_LIB
|
|
do
|
|
PREPEND_LDFLAGS="$PREPEND_LDFLAGS -L$ldflag"
|
|
done
|
|
for cppflag in $APPEND_INCLUDES
|
|
do
|
|
APPEND_CPPFLAGS="$APPEND_CPPFLAGS -I$cppflag"
|
|
done
|
|
for ldflag in $APPEND_LIB
|
|
do
|
|
APPEND_LDFLAGS="$APPEND_LDFLAGS -L$ldflag"
|
|
done
|
|
if test ! -z "$EXTRA_PREFIX" ; then
|
|
CPPFLAGS="$CPPFLAGS -I$EXTRA_PREFIX/include"
|
|
LDFLAGS="$LDFLAGS -L$EXTRA_PREFIX/lib"
|
|
fi
|
|
CPPFLAGS="$PREPEND_CPPFLAGS $CPPFLAGS $APPEND_CPPFLAGS"
|
|
LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPEND_LDFLAGS"])
|
|
|