[Pcsclite-cvs-commit] r2288 - trunk/Drivers/ccid

Ludovic Rousseau rousseau at alioth.debian.org
Sat Dec 30 21:33:45 CET 2006


Author: rousseau
Date: 2006-12-30 21:33:45 +0100 (Sat, 30 Dec 2006)
New Revision: 2288

Modified:
   trunk/Drivers/ccid/configure.in
Log:
do not use two AM_CONDITIONAL() with the same variable

Thanks to Alon Bar-Lev for the patch


Modified: trunk/Drivers/ccid/configure.in
===================================================================
--- trunk/Drivers/ccid/configure.in	2006-12-30 20:17:32 UTC (rev 2287)
+++ trunk/Drivers/ccid/configure.in	2006-12-30 20:33:45 UTC (rev 2288)
@@ -227,9 +227,7 @@
 	AC_HELP_STRING([--disable-pcsclite],[do not use pcsc-lite debug support]),
 	[ pcsclite="${enableval}" ], [ pcsclite=yes ] )
 
-if test "${pcsclite}" = no ; then
-	AM_CONDITIONAL(WITHOUT_PCSC, true)
-else
+if test "${pcsclite}" != no ; then
 	# check that pcsc-lite is installed
 	OLD_LIBS="$LIBS"
 	LIBS="$LIBS $PCSC_LIBS"
@@ -239,11 +237,10 @@
 		[ AC_MSG_ERROR([SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta9 or later,or use LDLIBS=...  ./configure]) ])
 	LIBS="$OLD_LIBS"
 
-	AM_CONDITIONAL(WITHOUT_PCSC, false)
-
 	pcsclite=yes
 fi
 AC_MSG_RESULT([compiled for pcsc-lite  : $pcsclite])
+AM_CONDITIONAL(WITHOUT_PCSC, test "${pcsclite}" != "yes")
 
 
 # Setup dist stuff




More information about the Pcsclite-cvs-commit mailing list