X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=configure.ac;h=e6bd59a5aaf2cf37ac5fe29f608fa6cfd20011bf;hp=0fc618e9d42537aeec4630d9351131e958ff3d44;hb=94cf335f2ec8f4e19250b873aba7ee4eddd7c0d2;hpb=91db7a622b66e0219c6dbce650aaa74272493a08 diff --git a/configure.ac b/configure.ac index 0fc618e..e6bd59a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([pam_pcsc_cr], 0.9.3) +AC_INIT([pam_pcsc_cr], 0.9.4) AC_CONFIG_SRCDIR([pam_pcsc_cr.c]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE @@ -28,13 +28,14 @@ AC_CHECK_HEADERS([security/pam_modules.h security/pam_ext.h], [], [], [ ]) AC_CHECK_LIB([pam], [pam_start]) AC_CHECK_FUNCS([pam_get_authtok]) +pamdir=/lib/${host_cpu}-${host_os}/security AC_ARG_WITH(pam-dir, - [ --with-pam-dir=DIR path to install the PAM module (/lib/security)], + [ --with-pam-dir=DIR path to install the PAM module (${pamdir})], [PAMDIR="$withval"], [ case $prefix in -*/_inst) PAMDIR='${exec_prefix}/lib/security' ;; -*) PAMDIR=/lib/security ;; +*/_inst) PAMDIR="${prefix}${pamdir}" ;; +*) PAMDIR=${pamdir} ;; esac ]) AC_SUBST(PAMDIR)