AM_PATH_CHECK is deprecated, so check it defined

This commit is contained in:
mattn 2014-05-22 01:14:37 +09:00
parent e7aaaac63f
commit 7e13b0be9c

View file

@ -8,9 +8,12 @@ AC_PROG_CC
AC_PROG_CC_STDC AC_PROG_CC_STDC
# AM_PATH_CHECK() # AM_PATH_CHECK()
AM_PATH_CHECK(,[have_check="yes"], PKG_CHECK_MODULES(CHECK,[check >= 0.9.4],:,[
ifdef([AM_PATH_CHECK],
[AM_PATH_CHECK(,[have_check="yes"])],
AC_MSG_WARN([Check not found; cannot run unit tests!]) AC_MSG_WARN([Check not found; cannot run unit tests!])
[have_check="no"]) [have_check="no"])]
])
AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes") AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
AC_CHECK_HEADERS([stdlib.h string.h sys/time.h]) AC_CHECK_HEADERS([stdlib.h string.h sys/time.h])