Module: wine Branch: stable Commit: d267a658c62152b3bead5842f317d9f4e5e5d313 URL: https://gitlab.winehq.org/wine/wine/-/commit/d267a658c62152b3bead5842f317d9f...
Author: Zebediah Figura zfigura@codeweavers.com Date: Fri Mar 4 18:22:18 2022 -0600
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 (cherry picked from commit b8cb9195d0d029da132a0fe1ed8e132d36bc6ea9) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure index 82870da724d..56fa0974d31 100755 --- a/configure +++ b/configure @@ -17609,7 +17609,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." ;; diff --git a/configure.ac b/configure.ac index b9903b04671..aeeaa8bfcf7 100644 --- a/configure.ac +++ b/configure.ac @@ -1648,7 +1648,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])