From 468a7e3daf469c108785d0742d34e1e6b3ca52f9 Mon Sep 17 00:00:00 2001 From: aet Date: Sat, 22 Dec 2001 22:55:40 +0000 Subject: [PATCH] Fix LIBPCSCLITE Rename COMPILE_PAM conditional to HAVE_PAM Remove lex check from configure.ac git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@95 c6295689-39f2-0310-b995-f0e70906c6a9 --- bootstrap | 2 +- configure.in | 10 ++++------ src/pam/Makefile.am | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/bootstrap b/bootstrap index eaf5ff3c60..f9dac672b1 100755 --- a/bootstrap +++ b/bootstrap @@ -6,6 +6,6 @@ rm -f *.cache *.status *.log *.m4 cat aclocal/*.m4 > acinclude.m4 aclocal libtoolize --copy --force --automake -autoheader configure.in > config.h.in +autoheader automake --add-missing --copy --force autoreconf --gnu diff --git a/configure.in b/configure.in index 9fd7525751..119e1d912e 100644 --- a/configure.in +++ b/configure.in @@ -118,7 +118,6 @@ AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET -AM_PROG_LEX dnl Special check for pthread support. ACX_PTHREAD( @@ -255,6 +254,7 @@ if (test ! -z "$ac_cv_commondir" && test "x$ac_cv_commondir" != "x(system)") ; t fi AC_SUBST(LIBPCSCLITE) +LIBPCSCLITE="-lpcsclite" saved_LIBS="$LIBS" saved_LDFLAGS="$LDFLAGS" saved_CPPFLAGS="$CPPFLAGS" @@ -284,16 +284,14 @@ AC_ARG_WITH(pcsclite, else CPPFLAGS="-I${withval}${pcscdir} ${CPPFLAGS}" fi - AC_CHECK_LIB(pcsclite, SCardEstablishContext, [LIBPCSCLITE="$LIBPCSCLITE -lpcsclite"]) + AC_CHECK_LIB(pcsclite, SCardEstablishContext) if test "x$ac_cv_lib_pcsclite_SCardEstablishContext" = "xyes" ; then break; fi done ] ) -if test "x$ac_cv_lib_pcsclite_SCardEstablishContext" = "xno" ; then - AC_CHECK_LIB(pcsclite, SCardEstablishContext, [LIBPCSCLITE="$LIBPCSCLITE -lpcsclite"]) -fi +AC_CHECK_LIB(pcsclite, SCardEstablishContext, , AC_MSG_ERROR([*** PC/SC Lite missing - please install first])) AM_CONDITIONAL(HAVE_PCSCLITE, test "x$ac_cv_lib_pcsclite_SCardEstablishContext" = "xyes") AC_SUBST(LIBDL) @@ -462,7 +460,7 @@ if test "x$PAM_MSG" = "xyes" ; then ) fi LIBS="$saved_LIBS" -AM_CONDITIONAL(COMPILE_PAM, test "x$PAM_MSG" = "xyes") +AM_CONDITIONAL(HAVE_PAM, test "x$PAM_MSG" = "xyes") dnl Enable/disable debugging messages. AC_ARG_ENABLE(debug, diff --git a/src/pam/Makefile.am b/src/pam/Makefile.am index cd6f81ab9f..7eca7b8266 100644 --- a/src/pam/Makefile.am +++ b/src/pam/Makefile.am @@ -9,7 +9,7 @@ LDFLAGS = @LDFLAGS@ @LIBDL@ @LIBPAM@ @LIBCRYPTO@ \ SRC = pam_pkcs15.c INC = -if COMPILE_PAM +if HAVE_PAM lib_LTLIBRARIES = libpam_pkcs15.la noinst_PROGRAMS = pam_pkcs15-test else @@ -23,7 +23,7 @@ libpam_pkcs15_la_LDFLAGS = -module pam_pkcs15_test_SOURCES = $(SRC) $(INC) pam_pkcs15_test_CFLAGS = -DTEST -if COMPILE_PAM +if HAVE_PAM install-exec-local: install-libLTLIBRARIES @$(NORMAL_INSTALL)