aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 5f26a61b..d1ce5d42 100644
--- a/configure.ac
+++ b/configure.ac
@@ -701,8 +701,16 @@ AC_CHECK_HEADERS([sys/types.h sys/time.h sys/msg.h time.h sys/mman.h sys/ioctl.h
701 inttypes.h stddef.h unistd.h \ 701 inttypes.h stddef.h unistd.h \
702 sockLib.h inetLib.h net/if.h], [], [], [AC_INCLUDES_DEFAULT]) 702 sockLib.h inetLib.h net/if.h], [], [], [AC_INCLUDES_DEFAULT])
703 703
704gl_FUNC_TSEARCH 704AC_CHECK_HEADER([[search.h]],
705AM_CONDITIONAL([HAVE_TSEARCH], [test "x$HAVE_TSEARCH" = "x1"]) 705 [
706 gl_FUNC_TSEARCH
707 AS_IF([[test "x$HAVE_TSEARCH" = "x1" && test "x$REPLACE_TSEARCH" != "x1"]],
708 [AC_DEFINE([[HAVE_SEARCH_H]], [[1]],
709 [Define to 1 if you have the <search.h> header file and your system have properly functioning tsearch(), tfind() and tdelete() functions])])
710 ],
711 [], [AC_INCLUDES_DEFAULT])
712
713AM_CONDITIONAL([MHD_HAVE_TSEARCH], [[test "x$ac_cv_header_search_h" = xyes && test "x$HAVE_TSEARCH" = "x1" && test "x$REPLACE_TSEARCH" != "x1"]])
706 714
707# Check for generic functions 715# Check for generic functions
708AC_CHECK_FUNCS([rand random]) 716AC_CHECK_FUNCS([rand random])