[Pcsclite-cvs-commit] r2235 - trunk/libmusclecard
Ludovic Rousseau
rousseau at alioth.debian.org
Thu Nov 23 10:10:08 CET 2006
Author: rousseau
Date: 2006-11-23 10:10:08 +0100 (Thu, 23 Nov 2006)
New Revision: 2235
Modified:
trunk/libmusclecard/configure.in
Log:
check that $PCSCLITE_LIBS is configured correctly by using
AC_TRY_LINK_FUNC() instead of AC_CHECK_LIB()
Thanks to Guillaume Rablat for the bug report
Modified: trunk/libmusclecard/configure.in
===================================================================
--- trunk/libmusclecard/configure.in 2006-11-22 19:40:15 UTC (rev 2234)
+++ trunk/libmusclecard/configure.in 2006-11-23 09:10:08 UTC (rev 2235)
@@ -54,8 +54,10 @@
OLD_LIBS="$LIBS"
LIBS="$LIBS $PCSCLITE_LIBS"
-AC_CHECK_LIB(pcsclite, SCardEstablishContext, [],
- [AC_MSG_ERROR([SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta7 or later])])
+AC_MSG_CHECKING([for SCardEstablishContext])
+AC_TRY_LINK_FUNC(SCardEstablishContext,
+ [ AC_MSG_RESULT([yes]) ],
+ [ AC_MSG_ERROR([SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta7 or later,or use LDLIBS=... ./configure]) ])
LIBS="$OLD_LIBS"
dnl check if the compiler support -fvisibility=hidden (GCC >= 4)
More information about the Pcsclite-cvs-commit
mailing list