diff options
author | Francesco Salvestrini <salvestrini@gmail.com> | 2009-07-30 00:36:22 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2009-07-31 21:01:37 +0200 |
commit | 15c1f30a23b69d45d913f79e7f8dbcc14e65f4bf (patch) | |
tree | afacf707e49dac06a7a492ba5a80e23147435f6a /m4/ax_lib_curl.m4 | |
parent | 62daf52bdf36623bf06e56a93208ee1c9f3cde9e (diff) | |
download | autoconf-archive-15c1f30a23b69d45d913f79e7f8dbcc14e65f4bf.tar.gz |
Renewed version of AC_CHECK_CURL (using AX_PATH_GENERIC)
Diffstat (limited to 'm4/ax_lib_curl.m4')
-rw-r--r-- | m4/ax_lib_curl.m4 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/m4/ax_lib_curl.m4 b/m4/ax_lib_curl.m4 new file mode 100644 index 0000000..93b8f56 --- /dev/null +++ b/m4/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 <salvestrini@users.sourceforge.net> +# +# 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]) +]) |