From 60bce31e41dda9f378cfab3dd948720372951bfe Mon Sep 17 00:00:00 2001 From: brendan Date: Wed, 28 May 2003 03:45:57 +0000 Subject: [PATCH] Check whether CURLOPT_NOSIGNAL is available, or disable YP (hopefully). svn path=/trunk/icecast/; revision=4825 --- configure.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index f711fce2..1bddfcfd 100644 --- a/configure.in +++ b/configure.in @@ -164,10 +164,14 @@ fi AM_PATH_OGG(, AC_MSG_ERROR(must have Ogg installed!(Perhaps you need --with-ogg-prefix=/usr/local))) AM_PATH_VORBIS(, AC_MSG_ERROR(must have Vorbis installed!(Perhaps you need --with-vorbis-prefix=/usr/local))) -AM_PATH_CURL( - [ICECAST_OBJECTS="$ICECAST_OBJECTS geturl.o yp.o"], - [AC_MSG_NOTICE([libcurl not found, YP disabled])]) -ACX_PTHREAD(, AC_MSG_ERROR(POSIX threads missing)) +AM_PATH_CURL([ + AC_CHECK_DECL([CURLOPT_NOSIGNAL], + [ICECAST_OBJECTS="$ICECAST_OBJECTS geturl.o yp.o"], + [AC_MSG_NOTICE([Your libcurl is too old (7.10 or above required), YP disabled])], + [#include ])], [ + AC_MSG_NOTICE([libcurl not found, YP disabled]) + ]) +ACX_PTHREAD(, AC_MSG_ERROR([POSIX threads missing])) dnl Make substitutions