On Thu, Dec 11, 2008 at 9:58 AM, Alon Bar-Lev <[EMAIL PROTECTED]> wrote:
> You need an available winscard.h on the platform.
>
> The followings must be availbale:
> -               test -z "${PCSC_CFLAGS}" && PCSC_CFLAGS="-I/usr/include/PCSC"
> -       AC_CHECK_HEADERS([winscard.h],,[test "${WIN32}" != "yes" &&
> AC_MSG_ERROR([winscard.h is required for pcsc])])
>
> Maybe you should have different default PCSC_CFLAGS for these
> platforms? So just modify this:
> -               test -z "${PCSC_CFLAGS}" && PCSC_CFLAGS="-I/usr/include/PCSC"

The SVN version works for me with two modifications.

I call ./configure as:
./configure --disable-man --enable-pcsc
PCSC_CFLAGS=-I/System/Library/Frameworks/PCSC.framework/Headers

Maybe this PATH can be configured as the default PATH on Darwin/Mac OS
X in the configure.ac file?
The configure.ac file already has the correct DEFAULT_PCSC_PROVIDER
for Darwin. Maybe PCSC_CFLAGS should be defined the same way (if not
already set by the user).

And I need the patch:
Index: src/libopensc/internal-winscard.h
===================================================================
--- src/libopensc/internal-winscard.h   (revision 3602)
+++ src/libopensc/internal-winscard.h   (working copy)
@@ -17,6 +17,9 @@ typedef unsigned __int8 uint8_t;

 #ifdef HAVE_WINSCARD_H
 #include <winscard.h>
+#ifdef __APPLE__
+#include <wintypes.h>
+#endif
 #else
 /* mingw32 does not have winscard.h */


This patch is needed (committed in revision 3603) because on Mac OS X
winscard.h does not define (and does not use) the windows types DWORD,
LONG, etc. and these types are used in internal-winscard.h

Bye

-- 
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to