configure: test(1) uses = not == for string comparison

Avoids a bash-ism.

Signed-off-by: Patrick Welche <prlw1@cam.ac.uk>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Patrick Welche authored and Ian Campbell committed 2013-04-17 14:29:17 +01:00
1 parent 717d9e5f76
commit be4d793faa
4 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
AC_DEFUN([AX_PATH_PROG_OR_FAIL], AC_DEFUN([AX_PATH_PROG_OR_FAIL],
[AC_PATH_PROG([$1], [$2], [no]) [AC_PATH_PROG([$1], [$2], [no])
if test x"${$1}" == x"no" if test x"${$1}" = x"no"
then then
AC_MSG_ERROR([Unable to find $2, please install $2]) AC_MSG_ERROR([Unable to find $2, please install $2])
fi]) fi])
+1 -1
View File
@@ -4,7 +4,7 @@ ac_previous_ldflags=$LDFLAGS
ac_python_version=`$PYTHON -c 'import distutils.sysconfig; \ ac_python_version=`$PYTHON -c 'import distutils.sysconfig; \
print distutils.sysconfig.get_config_var("VERSION")'` print distutils.sysconfig.get_config_var("VERSION")'`
AC_PATH_PROG([pyconfig], [$PYTHON-config], [no]) AC_PATH_PROG([pyconfig], [$PYTHON-config], [no])
AS_IF([test x"$pyconfig" == x"no"], [ AS_IF([test x"$pyconfig" = x"no"], [
dnl For those that don't have python-config dnl For those that don't have python-config
CPPFLAGS="$CFLAGS `$PYTHON -c 'import distutils.sysconfig; \ CPPFLAGS="$CFLAGS `$PYTHON -c 'import distutils.sysconfig; \
print "-I" + distutils.sysconfig.get_config_var("INCLUDEPY")'`" print "-I" + distutils.sysconfig.get_config_var("INCLUDEPY")'`"
+2 -2
View File
@@ -3119,7 +3119,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${WGET}" == x"no" if test x"${WGET}" = x"no"
then then
as_fn_error $? "Unable to find wget, please install wget" "$LINENO" 5 as_fn_error $? "Unable to find wget, please install wget" "$LINENO" 5
fi fi
@@ -3168,7 +3168,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${CMAKE}" == x"no" if test x"${CMAKE}" = x"no"
then then
as_fn_error $? "Unable to find cmake, please install cmake" "$LINENO" 5 as_fn_error $? "Unable to find cmake, please install cmake" "$LINENO" 5
fi fi
+11 -11
View File
@@ -4477,7 +4477,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${PERL}" == x"no" if test x"${PERL}" = x"no"
then then
as_fn_error $? "Unable to find perl, please install perl" "$LINENO" 5 as_fn_error $? "Unable to find perl, please install perl" "$LINENO" 5
fi fi
@@ -4524,7 +4524,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${CURL}" == x"no" if test x"${CURL}" = x"no"
then then
as_fn_error $? "Unable to find curl-config, please install curl-config" "$LINENO" 5 as_fn_error $? "Unable to find curl-config, please install curl-config" "$LINENO" 5
fi fi
@@ -4569,7 +4569,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${XML}" == x"no" if test x"${XML}" = x"no"
then then
as_fn_error $? "Unable to find xml2-config, please install xml2-config" "$LINENO" 5 as_fn_error $? "Unable to find xml2-config, please install xml2-config" "$LINENO" 5
fi fi
@@ -5837,7 +5837,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${BASH}" == x"no" if test x"${BASH}" = x"no"
then then
as_fn_error $? "Unable to find bash, please install bash" "$LINENO" 5 as_fn_error $? "Unable to find bash, please install bash" "$LINENO" 5
fi fi
@@ -5892,7 +5892,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${PYTHONPATH}" == x"no" if test x"${PYTHONPATH}" = x"no"
then then
as_fn_error $? "Unable to find $PYTHON, please install $PYTHON" "$LINENO" 5 as_fn_error $? "Unable to find $PYTHON, please install $PYTHON" "$LINENO" 5
fi fi
@@ -6355,7 +6355,7 @@ $as_echo "no" >&6; }
fi fi
if test x"$pyconfig" == x"no"; then : if test x"$pyconfig" = x"no"; then :
CPPFLAGS="$CFLAGS `$PYTHON -c 'import distutils.sysconfig; \ CPPFLAGS="$CFLAGS `$PYTHON -c 'import distutils.sysconfig; \
print "-I" + distutils.sysconfig.get_config_var("INCLUDEPY")'`" print "-I" + distutils.sysconfig.get_config_var("INCLUDEPY")'`"
@@ -6484,7 +6484,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${XGETTEXT}" == x"no" if test x"${XGETTEXT}" = x"no"
then then
as_fn_error $? "Unable to find xgettext, please install xgettext" "$LINENO" 5 as_fn_error $? "Unable to find xgettext, please install xgettext" "$LINENO" 5
fi fi
@@ -6531,7 +6531,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${AS86}" == x"no" if test x"${AS86}" = x"no"
then then
as_fn_error $? "Unable to find as86, please install as86" "$LINENO" 5 as_fn_error $? "Unable to find as86, please install as86" "$LINENO" 5
fi fi
@@ -6576,7 +6576,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${LD86}" == x"no" if test x"${LD86}" = x"no"
then then
as_fn_error $? "Unable to find ld86, please install ld86" "$LINENO" 5 as_fn_error $? "Unable to find ld86, please install ld86" "$LINENO" 5
fi fi
@@ -6621,7 +6621,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${BCC}" == x"no" if test x"${BCC}" = x"no"
then then
as_fn_error $? "Unable to find bcc, please install bcc" "$LINENO" 5 as_fn_error $? "Unable to find bcc, please install bcc" "$LINENO" 5
fi fi
@@ -6666,7 +6666,7 @@ $as_echo "no" >&6; }
fi fi
if test x"${IASL}" == x"no" if test x"${IASL}" = x"no"
then then
as_fn_error $? "Unable to find iasl, please install iasl" "$LINENO" 5 as_fn_error $? "Unable to find iasl, please install iasl" "$LINENO" 5
fi fi
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.