2009/5/27 André Cruz <andre.cruz@co.sapo.pt>:
I tried compiling the latest opensc trunk on osx but I couldn't get past the configure stage. If I try just running ./bootstrap I get an error: configure.ac:100: error: possibly undefined macro: AC_DEFINE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:262: error: possibly undefined macro: AC_MSG_ERROR configure.ac:324: error: possibly undefined macro: AC_CHECK_LIB autoreconf: /usr/bin/autoconf failed with exit status: 1 I need to run "autoreconf --verbose --install" without the "--force" flag so that the scripts are built. It only works the 2nd time though. Next, when I run configure it breaks near the end: checking for iconv in -liconv... yes checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes ./configure: line 23782: syntax error near unexpected token `newline' ./configure: line 23782: `PKG_CHECK_MODULES(' Is this a known problem?
You need to install pkg-config (so that autoconf finds the pkg.m4 file to expand the PKG_CHECK_MODULES macro). This is an OpenSC issue that should be best addressed on the opensc-devel list. Bye -- Dr. Ludovic Rousseau