Differences From Artifact [a54fda935e]:
- File
aclocal/dc_pcsc.m4
— part of check-in
[fea904e63c]
at
2010-07-11 06:32:09
on branch trunk
— Updated to include PCSC header "winstype.h"
Updated PCSC header inclusion to be more robust (user: rkeene, size: 2087) [annotate] [blame] [check-ins using]
To Artifact [0629be017d]:
- File aclocal/dc_pcsc.m4 — part of check-in [48bd3742a7] at 2010-07-11 06:53:07 on branch trunk — Added support for Mac OS X headers and libraries (user: rkeene, size: 2461) [annotate] [blame] [check-ins using]
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
..
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
ADD_CFLAGS="" ADD_CPPFLAGS="" found_pcsclite=0 found_winscard=0 found_wintypes=0 for headerpath in /usr/include /usr/local/include /usr/cac/include; do for subdir in smartcard PCSC pcsc pcsclite ""; do headerdir="${headerpath}/${subdir}" CFLAGS="${SAVE_CFLAGS} -I${headerdir}" CPPFLAGS="${SAVE_CPPFLAGS} -I${headerdir}" unset ac_cv_header_pcsclite_h unset ac_cv_header_winscard_h ................................................................................ CFLAGS="${SAVE_CFLAGS}${ADD_CFLAGS}" CPPFLAGS="${SAVE_CPPFLAGS}${ADD_CPPFLAGS}" ]) AC_DEFUN(DC_PCSC_LIBS, [ foundlib="0" for lib in pcsclite pcsc-lite pcsc; do AC_CHECK_LIB(${lib}, SCardEstablishContext, [ LIBS="${LIBS} -l${lib}" foundlib="1" break ]) done if test "${foundlib}" = "0"; then AC_MSG_WARN([unable to find PCSC library, compilation will likely fail.]) fi dnl Check for SCardIsValidContext, only in newer PCSC-Lite AC_CHECK_FUNCS(SCardIsValidContext) ]) AC_DEFUN(DC_PCSC, [ DC_PCSC_HEADERS DC_PCSC_LIBS ]) |
|
<
<
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
..
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
ADD_CFLAGS="" ADD_CPPFLAGS="" found_pcsclite=0 found_winscard=0 found_wintypes=0 for headerpath in /usr/include /usr/local/include /usr/cac/include /Developers/SDKs/*/System/Library/Frameworks/PCSC.framework/Versions/A/Headers; do for subdir in smartcard PCSC pcsc pcsclite ""; do headerdir="${headerpath}/${subdir}" CFLAGS="${SAVE_CFLAGS} -I${headerdir}" CPPFLAGS="${SAVE_CPPFLAGS} -I${headerdir}" unset ac_cv_header_pcsclite_h unset ac_cv_header_winscard_h ................................................................................ CFLAGS="${SAVE_CFLAGS}${ADD_CFLAGS}" CPPFLAGS="${SAVE_CPPFLAGS}${ADD_CPPFLAGS}" ]) AC_DEFUN(DC_PCSC_LIBS, [ foundlib="0" SAVELIBS="${LIBS}" AC_MSG_CHECKING([for how to link to PC/SC]) for lib in -lpcsclite -lpcsc-lite -lpcsc /Developer/SDKs/*/System/Library/Frameworks/PCSC.framework/PCSC; do LIBS="${SAVELIBS} ${lib}" AC_LINK_IFELSE(AC_LANG_PROGRAM([[ int SCardEstablishContext(void); ]], [[ int x; x = SCardEstablishContext(); ]]), [ AC_MSG_RESULT([${lib}]) LIBS="${SAVELIBS} ${lib}" foundlib="1" break ]) done if test "${foundlib}" = "0"; then AC_MSG_RESULT(cant) AC_MSG_WARN([unable to find PCSC library, compilation will likely fail.]) fi dnl Check for SCardIsValidContext, only in newer PCSC-Lite AC_CHECK_FUNCS(SCardIsValidContext) ]) AC_DEFUN(DC_PCSC, [ DC_PCSC_HEADERS DC_PCSC_LIBS ]) |