LudovicRousseau / PCSC

pcsc-lite: PC/SC implementation
https://pcsclite.apdu.fr/
Other
268 stars 109 forks source link

not able to compile on macos AX_RECURSIVE_EVAL #196

Closed stoege closed 4 months ago

stoege commented 4 months ago

Versions

% pcscd --version pcsc-lite version 2.2.3 Copyright (C) 1999-2002 by David Corcoran corcoran@musclecard.com. Copyright (C) 2001-2024 by Ludovic Rousseau ludovic.rousseau@free.fr. Copyright (C) 2003-2004 by Damien Sauveron sauveron@labri.fr. Report bugs to pcsclite-muscle@lists.infradead.org. Enabled features: USB serial MacOS aarch64 ipcdir=/opt/homebrew/var/run usbdropdir=/usr/lib/pcsc/drivers serialconfdir=/etc/reader.conf.d MAX_READERNAME: 128, PCSCLITE_MAX_READERS_CONTEXTS: 16

Platform

Issue

Build Log

% ./bootstrap 
+ test -f Makefile
+ rm -rf autom4te.cache aclocal.m4 config.guess config.log config.status config.sub depcomp ltmain.sh
+ autoreconf --verbose --install
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.72/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:16: installing './config.guess'
configure.ac:16: installing './config.sub'
Makefile.am: installing './depcomp'
autoreconf: Leaving directory '.'
% ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 2
checking whether build environment is sane... yes
checking for a race-free mkdir -p... mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking build system type... aarch64-apple-darwin23.5.0
checking host system type... aarch64-apple-darwin23.5.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for msgfmt... yes
checking for pkg-config... /opt/homebrew/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libpcsclite... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for PCSC/winscard.h... yes
checking for SCardEstablishContext... yes
checking for unistd.h... (cached) yes
checking for time.h... yes
checking for string.h... (cached) yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for sys/time.h... yes
checking for sysexits.h... yes
./configure: line 5025: syntax error near unexpected token `$datarootdir,'
./configure: line 5025: `AX_RECURSIVE_EVAL($datarootdir, datarootdir_exp)'

thank you

LudovicRousseau commented 4 months ago

pcsc-lite does NOT support macOS. Apple provides its own version of PC/SC on macOS.

I have no idea why Homebrew provides a pcsc-lite build.

stoege commented 4 months ago

thank you for your answer, Ludovic.

LudovicRousseau commented 4 months ago

If you really want to build pcsc-lite on macOS you should install autoconf-archive and run bootstrap again.

Also you should use meson now https://blog.apdu.fr/posts/2024/05/pcsc-lite-now-uses-meson-build-tool/