1 # Copyright (C) 2011 Brian Aker (brian@tangent.org)
5 AC_DEFUN([_SEARCH_HIREDIS],
6 [AC_REQUIRE([AX_CHECK_LIBRARY])
8 AS_IF([test "x$ac_enable_hiredis" = "xyes"],
9 [hiredis_header="hiredis/hiredis.h"],
10 [hiredis_header="does_not_exist"])
12 AX_CHECK_LIBRARY([HIREDIS],[$hiredis_header],[hiredis],,
13 [AC_DEFINE([HAVE_HIREDIS],[0],[Define to 1 if HIREDIS is found])])
15 AS_IF([test "x$ax_cv_have_HIREDIS" = xno],[ac_enable_hiredis="no"])
18 AC_DEFUN([AX_ENABLE_LIBHIREDIS],
19 [AC_ARG_ENABLE([hiredis],
20 [AS_HELP_STRING([--disable-hiredis],
21 [Build with hiredis support @<:@default=on@:>@])],
22 [ac_enable_hiredis="$enableval"],
23 [ac_enable_hiredis="yes"])