]> granicus.if.org Git - p11-kit/commitdiff
Expand the various pkcs11 config paths properly.
authorStef Walter <stefw@collabora.co.uk>
Thu, 21 Jul 2011 14:51:34 +0000 (16:51 +0200)
committerStef Walter <stefw@collabora.co.uk>
Thu, 21 Jul 2011 14:51:53 +0000 (16:51 +0200)
 * Without this the ${prefix} part of the variable wasn't being
   expanded and was making it into the #define.

configure.ac

index 1c64fa8f713e46664a02d60f42efbb0c98eeaef9..5548117bd3bffb92ab4bec333515cbf68f228ab2 100644 (file)
@@ -46,8 +46,9 @@ AC_ARG_WITH([pkcs11-dir],
             [pkcs11_dir=$withval],
             [pkcs11_dir=$sysconfdir/pkcs11])
 
-p11_system_conf="$pkcs11_dir/pkcs11.conf"
-p11_system_modules="$pkcs11_dir/modules"
+# We expand these so we have concrete paths
+p11_system_conf=$(eval echo $pkcs11_dir/pkcs11.conf)
+p11_system_modules=$(eval echo $pkcs11_dir/modules)
 p11_user_conf="~/.pkcs11/pkcs11.conf"
 p11_user_modules="~/.pkcs11/modules"