delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/02/19:14:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <60151.217.125.128.19.1083538040.squirrel@sugus.eii.us.es>
Date: Mon, 3 May 2004 00:47:20 +0200 (CEST)
Subject: problems with autoconf and libiconv
From: "Ricardo Varela [phobeo]" <phobeo AT sugus DOT eii DOT us DOT es>
To: <cygwin AT cygwin DOT com>
Reply-To: phobeo AT sugus DOT eii DOT us DOT es
MIME-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019