- Timestamp:
- 07/19/04 21:03:22 (4 years ago)
- Location:
- branches/openct-0.6
- Files:
-
- 3 modified
-
configure.ac (modified) (6 diffs)
-
src/ifd/Makefile.am (modified) (1 diff)
-
src/pcsc/Makefile.am (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/openct-0.6/configure.ac
r525 r542 17 17 # (Interfaces removed: AGE=0) 18 18 OPENCT_LT_CURRENT=0 19 OPENCT_LT_REVISION= 119 OPENCT_LT_REVISION=2 20 20 OPENCT_LT_AGE=0 21 21 … … 199 199 PCSC_MSG=no 200 200 pcsc_path=/usr 201 AC_SUBST( CFLAGS_PCSC)202 AC_SUBST( LIBPCSC)201 AC_SUBST(PCSC_CFLAGS) 202 AC_SUBST(PCSC_LIBS) 203 203 204 204 case "$host" in 205 205 *-*-darwin*) 206 206 PCSC_MSG=yes 207 CFLAGS_PCSC=""208 LIBPCSC="-Wl,-framework,PCSC"207 PCSC_CFLAGS="" 208 PCSC_LIBS="-Wl,-framework,PCSC" 209 209 ;; 210 210 esac … … 221 221 if test "x$pcsc_path" != "xno" -a "x$PCSC_MSG" != "xyes"; then 222 222 AC_MSG_CHECKING(for PC/SC Lite support) 223 for pcscdir in /pcsc ""; do 223 PKG_CHECK_MODULES(PCSC, libpcsclite, [ 224 PCSC_MSG="yes" 225 AC_MSG_RESULT($PCSC_MSG) 226 ], [ 227 for pcscdir in "" /pcsc /PCSC; do 224 228 CPPFLAGS="$saved_CPPFLAGS" 225 229 LDFLAGS="$saved_LDFLAGS" 226 230 LIBS="-lpcsclite $saved_LIBS" 227 CFLAGS_PCSC=""231 PCSC_CFLAGS="" 228 232 229 233 for pcsc_libdir in $pcsc_path/lib$pcscdir \ … … 242 246 $pcsc_path$pcscdir; do 243 247 if test -d $pcsc_incdir; then 244 CFLAGS_PCSC="-I${pcsc_incdir}"248 PCSC_CFLAGS="-I${pcsc_incdir}" 245 249 break; 246 250 fi 247 251 done 248 252 249 CPPFLAGS="${ CFLAGS_PCSC} ${CPPFLAGS}"253 CPPFLAGS="${PCSC_CFLAGS} ${CPPFLAGS}" 250 254 AC_TRY_LINK([#include <stdlib.h> 251 255 #include <winscard.h>],[SCardEstablishContext(0, NULL, NULL, NULL);], ac_cv_lib_pcsclite_SCardEstablishContext=yes) … … 257 261 LDFLAGS="$saved_LDFLAGS" 258 262 LIBS="$saved_LIBS" 259 CFLAGS_PCSC=""263 PCSC_CFLAGS="" 260 264 done 261 265 AC_MSG_RESULT($PCSC_MSG) 262 266 if test "x$PCSC_MSG" = "xyes" ; then 263 LIBPCSC="-lpcsclite"267 PCSC_LIBS="-lpcsclite" 264 268 CPPFLAGS="$saved_CPPFLAGS" 265 269 LIBS="$saved_LIBS" 266 270 fi 271 ]) 267 272 fi 268 273 AM_CONDITIONAL(HAVE_PCSC, test "x$PCSC_MSG" = "xyes") … … 270 275 AC_DEFINE(HAVE_PCSC, 1, [Have PC/SC implementation]) 271 276 else 272 LIBPCSC=""273 CFLAGS_PCSC=""277 PCSC_LIBS="" 278 PCSC_CFLAGS="" 274 279 fi 275 280 -
branches/openct-0.6/src/ifd/Makefile.am
r507 r542 3 3 MAINTAINERCLEANFILES = Makefile.in 4 4 5 INCLUDES = -I$(top_srcdir)/src/scdl @CPPFLAGS@ @ CFLAGS_PCSC@5 INCLUDES = -I$(top_srcdir)/src/scdl @CPPFLAGS@ @PCSC_CFLAGS@ 6 6 7 7 lib_LTLIBRARIES = libifd.la -
branches/openct-0.6/src/pcsc/Makefile.am
r531 r542 5 5 MAINTAINERCLEANFILES = Makefile.in 6 6 7 INCLUDES = -I$(top_srcdir)/src/ctapi @CPPFLAGS@ @ CFLAGS_PCSC@7 INCLUDES = -I$(top_srcdir)/src/ctapi @CPPFLAGS@ @PCSC_CFLAGS@ 8 8 9 9 if HAVE_PCSC
