From 77414691498427129d61568ccd292429a5ffae64 Mon Sep 17 00:00:00 2001 From: Francesco Salvestrini Date: Thu, 30 Jul 2009 00:36:22 +0200 Subject: [PATCH 2/4] Renewed version of AC_CHECK_CURL (using AX_PATH_GENERIC) --- ax_lib_curl.m4 | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) create mode 100644 ax_lib_curl.m4 diff --git a/ax_lib_curl.m4 b/ax_lib_curl.m4 new file mode 100644 index 0000000..93b8f56 --- /dev/null +++ b/ax_lib_curl.m4 @@ -0,0 +1,32 @@ +# =========================================================================== +# http://www.nongnu.org/autoconf-archive/ax_lib_curl.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_LIB_CURL([VERSION],[ACTION-IF-SUCCESS],[ACTION-IF-FAILURE]) +# +# DESCRIPTION +# +# Checks for minimum curl library version VERSION. If successfull executes +# ACTION-IF-SUCCESS otherwise ACTION-IF-FAILURE. +# +# Defines CURL_LIBS and CURL_CFLAGS. +# +# A simple example: +# +# AX_LIB_CURL([7.19.4],,[ +# AC_MSG_ERROR([Your system lacks of libcurl >= 7.19.4]) +# ]) +# +# LICENSE +# +# Copyright (c) 2009 Francesco Salvestrini +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. + +AC_DEFUN([AX_LIB_CURL], [ + AX_PATH_GENERIC([curl],[$1],'s/^libcurl\ \+//',[$2],[$3]) +]) -- 1.6.3.3