Hello,
The attached patch fixes GNU libiconv detection by adding an additional
libiconv symbol check to autoconf -liconv link test. Right now some
iconv implementations have only iconv* symbols (GNU libc), some have
only libiconv* (GNU libiconv), and some have both defined (Mac OS X's
iconv), so it's necessary to check for both variants.
Without this patch configure fails to properly detect GNU libiconv.
--
Best regards,
Kalev Lember
diff -up opensc-0.11.7/configure.ac.iconv opensc-0.11.7/configure.ac
--- opensc-0.11.7/configure.ac.iconv 2009-04-21 17:20:59.000000000 +0300
+++ opensc-0.11.7/configure.ac 2009-04-21 17:30:47.000000000 +0300
@@ -464,6 +464,16 @@ else
[
ac_cv_lib_iconv="yes"
ICONV_LIBS="-liconv"
+ ],
+ [
+ AC_CHECK_LIB(
+ [iconv],
+ [libiconv],
+ [
+ ac_cv_lib_iconv="yes"
+ ICONV_LIBS="-liconv"
+ ]
+ )
]
)
]
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel