This is the mail archive of the
cygwin
mailing list for the Cygwin project.
problems with autoconf and libiconv
- From: "Ricardo Varela [phobeo]" <phobeo at sugus dot eii dot us dot es>
- To: <cygwin at cygwin dot com>
- Date: Mon, 3 May 2004 00:47:20 +0200 (CEST)
- Subject: problems with autoconf and libiconv
- Reply-to: phobeo at sugus dot eii dot us dot es
hallo,
I was trying to add some libraries for autolinking with a program via
autoconf, but I'm having problems with libiconv (any other library links
properly, but the program seems not to like to have a -liconv. I reckon
the autoconf syntax is correct, please see below)
If I have the following in my configure.ac file:
AC_CHECK_LIB(iconv, iconv_open)
AC_CHECK_LIB(iconv, iconv)
AC_CHECK_LIB(pthread, pthread_attr_init)
But I get an output like:
...
checking for iconv_open in -liconv... no
checking for iconv in -liconv... no
checking for pthread_attr_init in -lpthread... yes
...
(same if I use AC_SEARCH_LIBS instead of AC_CHECK_LIB, have tried that too)
Did anybody had similar problems before?
---
Ricardo Varela
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/