Hi!Tsume <[EMAIL PROTECTED]> helped me fix my autoconf problem, to which he created this patch below.
Hope it helps fixing things upstream, because I figured I could not run the autotools in several flavors of linux and bsd.
Kind regards, Evaldo Gardenali --- configure.in.orig 2005-03-01 17:15:59.000000000 -0300 +++ configure.in @@ -62,21 +62,38 @@ AC_PATH_PROG(TEST_MINUS_S_SH, ksh) AC_PATH_PROG(TEST_MINUS_S_SH, sh) dnl Special check for pthread support -ACX_PTHREAD( -[ - AC_DEFINE(HAVE_PTHREAD, 1, - [Define if you have POSIX threads libraries and header files.]) -], [ - AC_MSG_ERROR([POSIX thread support required]) -]) - -LIBS="$PTHREAD_LIBS $LIBS" -CFLAGS="$CFLAGS $PTHREAD_CFLAGS" -CC="$PTHREAD_CC" +dnl ACX_PTHREAD( +dnl [ +dnl AC_DEFINE(HAVE_PTHREAD, 1, +dnl [Define if you have POSIX threads libraries and header files.]) +dnl ], [ +dnl AC_MSG_ERROR([POSIX thread support required]) +dnl ]) + +dnl LIBS="$PTHREAD_LIBS $LIBS" +dnl CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +dnl CC="$PTHREAD_CC" AC_SUBST(PTHREAD_LIBS) AC_SUBST(PTHREAD_CFLAGS) + for pthread_lib in pthread pthreads c c_r; do + AC_CHECK_LIB($pthread_lib, pthread_kill) + done + + AC_DEFINE(HAVE_LIBPTHREAD,1, [Define if you have the pthread library.]) + case $pthread_lib in + c) + MAINLIBS="-pthread $MAINLIBS" + ;; + c_r) + MAINLIBS="-pthread $MAINLIBS" + ;; + *) + LIBS="-l$pthread_lib $LIBS" + ;; + esac + dnl Add libtool support AM_PROG_LIBTOOL dnl Automatically update the libtool script if it becomes out-of-date @@ -284,10 +301,10 @@ AC_SUBST(usbdropdir) AC_SUBST(confdir) AC_SUBST(runpid) AC_SUBST(extended_apdu) -AS_AC_EXPAND(confdir_exp,$confdir) -AS_AC_EXPAND(sysconfdir_exp,$sysconfdir) -AS_AC_EXPAND(sbindir_exp,$sbindir) -AS_AC_EXPAND(localstatedir_exp,$localstatedir) +dnl AS_AC_EXPAND(confdir_exp,$confdir) +dnl AS_AC_EXPAND(sysconfdir_exp,$sysconfdir) +dnl AS_AC_EXPAND(sbindir_exp,$sbindir) +dnl AS_AC_EXPAND(localstatedir_exp,$localstatedir) dnl Write Makefiles AC_CONFIG_FILES([ Evaldo Gardenali wrote:
Hi!I am running into some problem when trying to build PC/SC-Lite. I am packaging it for NetBSD, so I need to re-run the autotools.I have these in my environment:===> Required installed package libtool-base>=1.5.18nb1: libtool-base-1.5.18nb3 found===> Required installed package automake>=1.9: automake-1.9.6 found ===> Required installed package autoconf>=2.58: autoconf-2.59nb1 found ===> Required installed package gmake>=3.78: gmake-3.80nb4 found I am downloading this: http://alioth.debian.org/download.php/975/pcsc-lite-1.2.9-beta7.tar.gz then I am running this: aclocal && autoheader && libtoolize --automake && \ automake --copy --add-missing && autoconf and I get these error messages: configure.in:67: error: possibly undefined macro: AC_DEFINE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:70: error: possibly undefined macro: AC_MSG_ERROR configure.in:287: error: possibly undefined macro: AS_AC_EXPANDI would like further details of which versions of each tools are used with this package.I got to generate files with a hack (downgraded autoconf, skipped running aclocal), and then I can verify the following patch to be okay. This patch creates the $DESTDIR/include/PCSC directory, which seems to be missing, causing the installation to fail for non-gnu 'install' utility.--- src/Makefile.am.orig 2005-02-24 09:44:10.000000000 -0300 +++ src/Makefile.am @@ -86,3 +86,6 @@ tokenparser.c: tokenparser.lEXTRA_DIST = README_INTERNALS.txt dyn_win32.c thread_win32.c winscard_scf.c+install-data-local: + ${INSTALL} -d ${DESTDIR}${includedir}/PCSCI have other 2 patches for correctly handling pathnames in NetBSD, which require running the autotools too.Thanks, Evaldo Gardenali
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
