Better solution for compat sources

This commit is contained in:
Abramo Bagnara 2000-06-13 09:29:55 +00:00
parent a983321c27
commit b60673fe68
2 changed files with 3 additions and 9 deletions

View file

@ -32,8 +32,8 @@ AC_HEADER_TIME
dnl Checks for library functions. dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL AC_PROG_GCC_TRADITIONAL
AC_CHECK_FUNCS(hsearch_r) AC_CHECK_FUNC(hsearch_r, , [ COMPAT_SRCS="$COMPAT_SRCS hsearch_r.c" ])
AM_CONDITIONAL(Have_hsearch_r, test x$ac_cv_func_hsearch_r = xyes) AC_SUBST(COMPAT_SRCS)
ALSA_CHECK_DRIVER ALSA_CHECK_DRIVER
SAVE_LIBRARY_VERSION SAVE_LIBRARY_VERSION

View file

@ -1,12 +1,6 @@
EXTRA_LTLIBRARIES = libcompat.la EXTRA_LTLIBRARIES = libcompat.la
EXTRA_libcompat_la_SOURCES = hsearch_r.c EXTRA_libcompat_la_SOURCES = hsearch_r.c
if Have_hsearch_r libcompat_la_SOURCES = @COMPAT_SRCS@
HSEARCH_R =
else
HSEARCH_R = hsearch_r.c
endif
libcompat_la_SOURCES = $(HSEARCH_R)
all: libcompat.la all: libcompat.la