From 4dd1bad88c8a5e9799dfda636b5542c5234167a6 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Fri, 24 Jun 2005 10:13:10 +0000 Subject: [PATCH] * Indicate that this is not version 0.1 any more. * Change email address. * Better tests for curl. --- configure.ac | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 6e6f887..134101f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT(btpd, 0.1, rnyberg@gmail.com) +AC_INIT(btpd, 0.1+, btpd@murmeldjur.se) AC_CANONICAL_TARGET @@ -54,12 +54,17 @@ if test x$CURLCONF == x; then AC_PATH_PROG(CURLCONF, curl-config) fi -if test x$CURLCONF == x ; then - echo Must have curl-config +if test x$CURLCONF == x -o \! \( -r $CURLCONF -a -x $CURLCONF \); then + echo Must have the curl-config script exit 1 else AC_SUBST(CURL_CFLAGS, `$CURLCONF --cflags`) AC_SUBST(CURL_LDFLAGS, `$CURLCONF --libs`) fi +old_LDFLAGS="$LDFLAGS" +LDFLAGS="$LDFLAGS $CURL_LDFLAGS" +AC_CHECK_LIB(curl, curl_easy_strerror, :, echo Must have recent curl; exit 1) +LDFLAGS=$old_LDFLAGS + AC_OUTPUT