]> granicus.if.org Git - p11-kit/commitdiff
configure: Use $sysconfdir for p11_system_conf dir, not hardcoded /etc
authorColin Walters <walters@verbum.org>
Mon, 18 Jul 2011 15:09:41 +0000 (11:09 -0400)
committerStef Walter <stefw@collabora.co.uk>
Thu, 21 Jul 2011 11:15:44 +0000 (13:15 +0200)
If the user specified sysconfdir, we should respect it.  Don't
hardcode /etc.  This is important for jhbuild, which uses
/path/to/builddir/etc.

configure.ac

index 33b0b92392cab02e66434374b69e666bf7fc80a1..1c64fa8f713e46664a02d60f42efbb0c98eeaef9 100644 (file)
@@ -44,7 +44,7 @@ GTK_DOC_CHECK([1.15])
 AC_ARG_WITH([pkcs11-dir],
             [AS_HELP_STRING([--with-pkcs11-dir], [Change PKCS#11 system config directory])],
             [pkcs11_dir=$withval],
-            [pkcs11_dir=/etc/pkcs11])
+            [pkcs11_dir=$sysconfdir/pkcs11])
 
 p11_system_conf="$pkcs11_dir/pkcs11.conf"
 p11_system_modules="$pkcs11_dir/modules"