Skip to content

Commit 0d2d01b

Browse files
author
Felipe Zimmerle
committed
Disables mlogc compilation with Curl was not found
This commit automatic disables Curl compilation if Curl development files were not found on build machine.
1 parent 0691221 commit 0d2d01b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

configure.ac

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,14 @@ AC_ARG_ENABLE(mlogc,
224224
[
225225
build_mlogc=1
226226
])
227+
228+
CHECK_CURL()
229+
230+
if test -z "${CURL_VERSION}"; then
231+
AC_MSG_NOTICE([NOTE: mlgoc compilation was disabled.])
232+
build_mlogc=0
233+
fi
234+
227235
AM_CONDITIONAL([BUILD_MLOGC], [test "$build_mlogc" -eq 1])
228236
if test "$build_mlogc" -eq 1; then
229237
TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS mlogc"
@@ -695,7 +703,7 @@ fi
695703
CHECK_LIBXML2()
696704
CHECK_LUA()
697705
#if test "$build_mlogc" -ne 0; then
698-
CHECK_CURL()
706+
#CHECK_CURL()
699707
#fi
700708

701709
# Check for YAJL libs (for JSON body processor)

0 commit comments

Comments
 (0)