--- opensc-0.11.13.orig/etc/Makefile.am	2009-12-13 10:14:28.000000000 +0100
+++ opensc-0.11.13/etc/Makefile.am	2013-10-31 16:21:04.000000000 +0100
@@ -20,6 +20,7 @@ opensc.conf: opensc.conf.in force
 
 sysconf_DATA=#required in order to create dir
 install-exec-hook:	install-sysconfDATA opensc.conf
+	$(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
 	if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \
 		$(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf.new"; \
 	else \
