fix build of rijndael lib
authorRudolf Polzer <divverent@alientrap.org>
Mon, 26 Jul 2010 13:32:52 +0000 (15:32 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 26 Jul 2010 13:32:52 +0000 (15:32 +0200)
Makefile.am
configure.ac
d0_blind_id.pc.in
d0_rijndael.pc.in [new file with mode: 0644]

index a97b281..19092c3 100644 (file)
@@ -13,16 +13,16 @@ lib_LTLIBRARIES = libd0_blind_id.la
 libd0_blind_id_la_SOURCES = d0_bignum-gmp.c d0_blind_id.c d0.c d0_iobuf.c sha2.c
 libd0_blind_id_la_LDFLAGS = -versioninfo 2:0:2
 libd0_blind_id_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
-
 library_includedir = $(includedir)/d0_blind_id
-library_include_HEADERS = d0_blind_id.h d0.h d0_rijndael.h
+library_include_HEADERS = d0_blind_id.h d0.h
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_HEADERS = d0_blind_id.pc
 
 if ENABLE_RIJNDAEL
-library_include_HEADERS += d0_rijndael.h
 lib_LTLIBRARIES += libd0_rijndael.la
 libd0_rijndael_la_SOURCES = d0_rijndael.c
 libd0_rijndael_la_LDFLAGS = -versioninfo 0:0:0
 libd0_rijndael_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
+library_include_HEADERS += d0_rijndael.h
+pkgconfig_HEADERS += d0_rijndael.pc
 endif
index 70fecc0..a6e8bbe 100644 (file)
@@ -7,7 +7,7 @@ AC_PROG_LIBTOOL
 AC_SEARCH_LIBS(__gmpz_init, gmp, , [AC_MSG_ERROR([GNU MP not found, see http://gmplib.org/])])
 
 AC_ARG_ENABLE(rijndael, AS_HELP_STRING([--disable-rijndael], [Disable build of the d0_rijndael library]), [enable_aes=$enableval], [enable_aes=yes])
-AM_CONDITIONAL(ENABLE_RIJNDAEL, [test x$enable_aes = xtrue])
+AM_CONDITIONAL(ENABLE_RIJNDAEL, [test x$enable_aes = xyes])
 
 dnl AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([Makefile d0_blind_id.pc])
index bfd5097..60fcdc4 100644 (file)
@@ -7,5 +7,5 @@ Name: Blind-ID
 Description: Library for user identification using RSA blind signatures
 Requires: 
 Version: @VERSION@
-Libs: -L${libdir} -lblind_id
-Cflags: -I${includedir}/blind_id
+Libs: -L${libdir} -ld0_blind_id
+Cflags: -I${includedir}/d0_blind_id
diff --git a/d0_rijndael.pc.in b/d0_rijndael.pc.in
new file mode 100644 (file)
index 0000000..bb735f1
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Rijndael
+Description: Library for Rijndael encryption
+Requires: 
+Version: @VERSION@
+Libs: -L${libdir} -ld0_rijndael
+Cflags: -I${includedir}/d0_blind_id