From: Abramo Bagnara Date: Tue, 13 Jun 2000 09:29:55 +0000 (+0000) Subject: Better solution for compat sources X-Git-Tag: v1.0.3~1227 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b60673fe689db601bd40207cbd48f79a7842c35b;p=alsa-lib.git Better solution for compat sources --- diff --git a/configure.in b/configure.in index 15509aa6..0453ea6a 100644 --- a/configure.in +++ b/configure.in @@ -32,8 +32,8 @@ AC_HEADER_TIME dnl Checks for library functions. AC_PROG_GCC_TRADITIONAL -AC_CHECK_FUNCS(hsearch_r) -AM_CONDITIONAL(Have_hsearch_r, test x$ac_cv_func_hsearch_r = xyes) +AC_CHECK_FUNC(hsearch_r, , [ COMPAT_SRCS="$COMPAT_SRCS hsearch_r.c" ]) +AC_SUBST(COMPAT_SRCS) ALSA_CHECK_DRIVER SAVE_LIBRARY_VERSION diff --git a/src/compat/Makefile.am b/src/compat/Makefile.am index 1ed222b5..27f0e868 100644 --- a/src/compat/Makefile.am +++ b/src/compat/Makefile.am @@ -1,12 +1,6 @@ EXTRA_LTLIBRARIES = libcompat.la EXTRA_libcompat_la_SOURCES = hsearch_r.c -if Have_hsearch_r -HSEARCH_R = -else -HSEARCH_R = hsearch_r.c -endif - -libcompat_la_SOURCES = $(HSEARCH_R) +libcompat_la_SOURCES = @COMPAT_SRCS@ all: libcompat.la