mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 17:04:06 +00:00
configure: Fix caching of PCSCLITE_LIBS on mac.
ac_cv_lib_pcsclite_SCardEstablishContext=yes would be cached, causing
AC_CHECK_LIB to use -lpcsclite on the second run.
Fixes: f74c4af257
This commit is contained in:
parent
91f8926023
commit
d405a688ba
10
configure
vendored
10
configure
vendored
|
@ -15853,12 +15853,14 @@ fi
|
|||
|
||||
if test "x$ac_cv_lib_pcsclite_SCardEstablishContext" != xyes && test "$ac_cv_header_PCSC_pcsclite_h" = "yes"
|
||||
then
|
||||
PCSCLITE_LIBS="-framework PCSC"
|
||||
|
||||
ac_cv_lib_pcsclite_SCardEstablishContext=yes
|
||||
case $host_os in
|
||||
darwin*|macosx*)
|
||||
PCSCLITE_LIBS="-framework PCSC"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
if test "x$ac_cv_lib_pcsclite_SCardEstablishContext" != xyes
|
||||
if test "x$PCSCLITE_LIBS" = x || test "$ac_cv_header_PCSC_pcsclite_h" != "yes"
|
||||
then :
|
||||
case "x$with_pcsclite" in
|
||||
x) as_fn_append wine_notices "|libpcsclite not found, smart cards won't be supported." ;;
|
||||
|
|
|
@ -1396,11 +1396,13 @@ then
|
|||
AC_CHECK_LIB(pcsclite,SCardEstablishContext,[AC_SUBST(PCSCLITE_LIBS,["-lpcsclite"])])
|
||||
if test "x$ac_cv_lib_pcsclite_SCardEstablishContext" != xyes && test "$ac_cv_header_PCSC_pcsclite_h" = "yes"
|
||||
then
|
||||
AC_SUBST(PCSCLITE_LIBS,"-framework PCSC")
|
||||
ac_cv_lib_pcsclite_SCardEstablishContext=yes
|
||||
case $host_os in
|
||||
darwin*|macosx*)
|
||||
AC_SUBST(PCSCLITE_LIBS,"-framework PCSC") ;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
WINE_NOTICE_WITH(pcsclite,[test "x$ac_cv_lib_pcsclite_SCardEstablishContext" != xyes],
|
||||
WINE_NOTICE_WITH(pcsclite,[test "x$PCSCLITE_LIBS" = x || test "$ac_cv_header_PCSC_pcsclite_h" != "yes"],
|
||||
[libpcsclite not found, smart cards won't be supported.],
|
||||
[enable_winscard])
|
||||
|
||||
|
|
Loading…
Reference in a new issue