+# Extract the first word of "curl-config", so it can be a program name with args.
+set dummy curl-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_FOUND_CURLCONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$FOUND_CURLCONFIG"; then
+ ac_cv_prog_FOUND_CURLCONFIG="$FOUND_CURLCONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_FOUND_CURLCONFIG="yes"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_prog_FOUND_CURLCONFIG" && ac_cv_prog_FOUND_CURLCONFIG="no"
+fi
+fi
+FOUND_CURLCONFIG=$ac_cv_prog_FOUND_CURLCONFIG
+if test -n "$FOUND_CURLCONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_CURLCONFIG" >&5
+$as_echo "$FOUND_CURLCONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test x$FOUND_CURLCONFIG = xyes; then
+ FOUND_CURLCONFIG_RES_TRUE=
+ FOUND_CURLCONFIG_RES_FALSE='#'
+else
+ FOUND_CURLCONFIG_RES_TRUE='#'
+ FOUND_CURLCONFIG_RES_FALSE=
+fi
+
+
+if test -z "$FOUND_CURLCONFIG_RES_TRUE"; then :
+ else
+ echo "Cannot find the curl-config program on your system.
+If it is installed on your system, adjust your PATH environment
+variable before running configure again."
+ exit -1
+
+fi
+