~7-luca/skylable/master

« back to all changes in this revision

Viewing changes to libsxclient/configure.ac

  • Committer: Alberto Wu
  • Date: 2015-10-29 16:39:50 UTC
  • Revision ID: git-v1:4d0837a887d92ed148e87a6e7bb7f4096046dc98
Allow building with valgrind hints (--enable-vghints)

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
fi
208
208
AM_CONDITIONAL([BUILD_CURL], [test "$build_curl" = "yes"])
209
209
 
 
210
AC_ARG_ENABLE([vghints],
 
211
    AS_HELP_STRING([--enable-vghints], [build with support for valgrind hints]),
 
212
    [vghints=$enableval], [vghints=no])
 
213
if test "x$vghints" = "xyes"; then
 
214
   AC_CHECK_HEADER([valgrind/memcheck.h],
 
215
        AC_DEFINE([ENABLE_VGHINTS], 1, [Build with support for valgrind hints]),
 
216
        AC_MSG_ERROR([Cannot find valgrind includes]))
 
217
fi
 
218
 
210
219
AC_SUBST(CURL_LIBS)
211
220
AC_SUBST(YAJL_LIBS)
212
221