configure: Fix the check for CAPI support.

AC_CHECK_LIB sets the variable to "no", not an empty string. Hence compilation
would fail if headers were present but libraries were missing.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2022-03-04 18:22:18 -06:00 committed by Alexandre Julliard
parent 7b27e60e67
commit b8cb9195d0
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@ -17498,7 +17498,7 @@ fi
CPPFLAGS=$ac_save_CPPFLAGS
fi
if test "x$ac_cv_lib_capi20_capi20_register" = "x"
if test "x$ac_cv_lib_capi20_capi20_register" != xyes
then :
case "x$with_capi" in
x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;

View File

@ -1667,7 +1667,7 @@ then
AC_CHECK_LIB(capi20,capi20_register,[:],[CAPI20_LIBS=""],[$CAPI20_LIBS])
fi])
fi
WINE_NOTICE_WITH(capi,[test "x$ac_cv_lib_capi20_capi20_register" = "x"],
WINE_NOTICE_WITH(capi,[test "x$ac_cv_lib_capi20_capi20_register" != xyes],
[libcapi20 ${notice_platform}development files not found, ISDN won't be supported.],
[enable_capi2032])