Permalink
Browse files

./configure --with-curl=yes

  • Loading branch information...
1 parent 66ac916 commit 726d12dc840520281c10602f3ea790db043169e2 @steveyen steveyen committed Jun 9, 2010
Showing with 10 additions and 2 deletions.
  1. +10 −2 configure.ac
View
@@ -99,8 +99,16 @@ AC_SUBST(PROFILER_FLAGS)
AC_SEARCH_LIBS(pthread_create, pthread,
[], AC_MSG_ERROR([Can't enable pthreads.]))
-AC_SEARCH_LIBS(curl_global_init, curl, [],
- AC_MSG_ERROR([Can't find curl]))
+
+AC_ARG_WITH([curl],
+ [AS_HELP_STRING([--with-curl=yes], [search libs for curl])])
+
+if test "x$with_curl" != "xno"; then
+ AC_SEARCH_LIBS(curl_global_init, curl, [],
+ AC_MSG_ERROR([Can't find curl]))
+else
+ AC_MSG_NOTICE([skipping search for curl library])
+fi
AC_ARG_WITH([check],
[AS_HELP_STRING([--with-check=yes], [look for check tool for unit tests])])

0 comments on commit 726d12d

Please sign in to comment.