Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
[gnulib.git] / modules / tsearch-tests
blob2612b72c4ae617dd7c31b58d851cdb68e4cb9a29
1 Files:
2 tests/test-tsearch.sh
3 tests/test-tsearch.c
4 tests/signature.h
5 tests/macros.h
7 Depends-on:
8 stdint
10 configure.ac:
11 TEST_TSEARCH_LIBM=
12 AC_LINK_IFELSE(
13   [AC_LANG_PROGRAM(
14      [[#ifndef __NO_MATH_INLINES
15        # define __NO_MATH_INLINES 1 /* for glibc */
16        #endif
17        #include <math.h>
18        double x;]],
19      [[x = log (x);]])],
20   [],
21   [TEST_TSEARCH_LIBM=-lm])
22 AC_SUBST([TEST_TSEARCH_LIBM])
23 AC_CHECK_FUNCS_ONCE([initstate])
25 Makefile.am:
26 TESTS += test-tsearch.sh
27 check_PROGRAMS += test-tsearch
28 test_tsearch_LDADD = $(LDADD) @TEST_TSEARCH_LIBM@