[Pcsclite-git-commit] [pcsc-tools] 02/03: configure.ac: add support of macOS

Ludovic Rousseau rousseau at moszumanska.debian.org
Sat May 13 15:30:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository pcsc-tools.

commit e8358686cba2c5dfeec4fb7f976104d507027b7a
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Fri May 12 21:42:14 2017 +0200

    configure.ac: add support of macOS
    
    No need to add extra parameters to ./configure on macOS.
---
 configure.ac | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index a0295f3..9e8ab54 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,14 +15,19 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 AC_CANONICAL_HOST
 
-if test `uname` == 'Darwin'; then
-	PCSC_PATH="PCSC/"
-fi
-
 dnl Checks for programs.
 AC_PROG_INSTALL
 AC_PROG_CC
 
+# Check for some target-specific stuff
+case "$host" in
+*-*-darwin*)
+	PCSC_CFLAGS=${PCSC_CFLAGS:--framework PCSC}
+	PCSC_LIBS=${PCSC_LIBS:--framework PCSC}
+	PCSC_PATH="PCSC/"
+    ;;
+esac
+
 dnl Checks for libraries.
 # check pcsc-lite
 PKG_CHECK_EXISTS([libpcsclite],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/pcsc-tools.git



More information about the Pcsclite-cvs-commit mailing list