cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcurl in configure.in

From: Andrés García <fandom_at_retemail.es>
Date: Tue, 10 Apr 2001 02:38:46 +0200

Hello,

I have been trying to include a test in a configure.in
so that, if libcurl isn't detected, the script fails with
an error message.

I have tried doing:

AC_CHECK_LIB(curl, curl_version, libcurl=yes, libcurl=no)
if test "x$libcurl" = xno ; then
        AC_MSG_ERROR("libcurl required..go to http://curl.haxx.se/ to
download and then install it first")
fi
LIBS="-lcurl $LIBS"

and

LIBS="-lcurl $LIBS"
AC_MSG_CHECKING(for libcurl)
AC_TRY_LINK([#include <curl/curl.h>], [curl_version();], libcurl=yes,
libcurl=no)
if test "x$libcurl" = xno ; then
        AC_MSG_ERROR("libcurl required..go to http://curl.haxx.se/ to
download and then install it first")
fi

But they both fail even though libcurl is installed in /usr/local/lib
and I can link programs to it without a problem.

The truth is I know next to nothing about autoconf and I don't
know what else to try.

Any suggestions?

Andres

_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-04-10