Zebediah Figura : configure: Fix the check for CAPI support.

Alexandre Julliard julliard at winehq.org
Tue Mar 8 16:10:47 CST 2022


Module: wine
Branch: master
Commit: b8cb9195d0d029da132a0fe1ed8e132d36bc6ea9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b8cb9195d0d029da132a0fe1ed8e132d36bc6ea9

Author: Zebediah Figura <zfigura at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure    | 2 +-
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 990f1f9d610..ad2ef2e7b8d 100755
--- a/configure
+++ b/configure
@@ -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." ;;
diff --git a/configure.ac b/configure.ac
index 445d3048198..4245f7efb0f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
 




More information about the wine-cvs mailing list