Use string comparison operator in configure.ac.

.. to compare strings. `==` is for numeric values.
This commit is contained in:
iphydf 2018-07-19 14:58:43 +00:00
parent bf79fdbb43
commit 3f6b6842f3
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -468,7 +468,7 @@ AC_C_BIGENDIAN
# Checks for library functions. # Checks for library functions.
AC_FUNC_FORK AC_FUNC_FORK
AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc]) AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc])
if (test "x$WIN32" != "xyes") && (test "x$MACH" != "xyes") && (test "x${host_os#*openbsd}" == "x$host_os") && (test "x$DISABLE_RT" != "xyes"); then if (test "x$WIN32" != "xyes") && (test "x$MACH" != "xyes") && (test "x${host_os#*openbsd}" = "x$host_os") && (test "x$DISABLE_RT" != "xyes"); then
AC_CHECK_LIB(rt, clock_gettime, AC_CHECK_LIB(rt, clock_gettime,
[ [
RT_LIBS="-lrt" RT_LIBS="-lrt"