]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSBUILD-285: Fix build with --with-curl
authorMathieu Parent <math.parent@gmail.com>
Sun, 25 Jul 2010 08:10:06 +0000 (10:10 +0200)
committerMathieu Parent <math.parent@gmail.com>
Sun, 25 Jul 2010 08:10:06 +0000 (10:10 +0200)
configure.in

index 8d2307640b492af23ecd127aac07ce1d56872f78..c6d89f8d5411f6a54b7b28579fa5d22fe62c24d7 100644 (file)
@@ -725,6 +725,10 @@ AC_ARG_WITH(libcurl,
  AC_HELP_STRING([--with-libcurl=DIR],[look for the curl library in DIR]),
  [_libcurl_with=$withval],[_libcurl_with=ifelse([$1],,[yes],[$1])])
 
+AC_CACHE_CHECK([whether to use system libcurl library], [ac_cv_use_system_curl], [
+  LIBCURL_CHECK_CONFIG([yes], [7.13.0], [ac_cv_use_system_curl='yes'], [ac_cv_use_system_curl='no']) 
+])
+
 if test "$_libcurl_with" = "no" ; then
   ac_cv_use_system_curl=no;
 fi
@@ -732,10 +736,6 @@ if test "$_libcurl_with" = "yes" ; then
   ac_cv_use_system_curl=yes;
 fi
 
-AC_CACHE_CHECK([whether to use system libcurl library], [ac_cv_use_system_curl], [
-  LIBCURL_CHECK_CONFIG([yes], [7.13.0], [ac_cv_use_system_curl='yes'], [ac_cv_use_system_curl='no']) 
-])
-
 if test "$ac_cv_use_system_curl" != "yes" ; then
  LIBCURL_DEPS='${switch_builddir}/libs/curl/lib/libcurl.la'
  LIBCURL='${switch_builddir}/libs/curl/lib/libcurl.la'