Improve MacOSX portability: many thanks to Daniel Macks <dmacks@netspace.org> from #fink irc channel.
This commit is contained in:
parent
d5b1ccea6d
commit
658f24ba3e
2 changed files with 12 additions and 0 deletions
|
@ -60,10 +60,18 @@ AC_SUBST(LIBUSB_CFLAGS)
|
|||
## libpcsclite
|
||||
if test "x$enable_pcsc_lite" = "xyes"
|
||||
then
|
||||
case "$host" in
|
||||
*darwin*)
|
||||
AC_MSG_WARN(Using darwin PCSC Framework)
|
||||
LIBPCSCLITE_LIBS=-Wl,-framework,PCSC
|
||||
;;
|
||||
*)
|
||||
PKG_CHECK_MODULES(LIBPCSCLITE, libpcsclite, [WITH_PCSC=1], [WITH_PCSC=0])
|
||||
if test "$WITH_PCSC" = "0" ; then
|
||||
AC_MSG_ERROR([libpcsclite is mandatory.])
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
AC_SUBST(LIBPCSCLITE_LIBS)
|
||||
AC_SUBST(LIBPCSCLITE_CFLAGS)
|
||||
fi
|
||||
|
|
|
@ -25,7 +25,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef __APPLE__
|
||||
#include <winscard.h>
|
||||
#else
|
||||
#include <PCSC/winscard.h>
|
||||
#endif
|
||||
|
||||
#include "defines.h"
|
||||
#include "bitutils.h"
|
||||
|
|
Loading…
Reference in a new issue