forked from Imagelibrary/rtems
<corsepiu@faw.uni-ulm.de> that addresses a couple of minor configuration issues which popped up when experimenting with multilibs. Note: The multigen generated make/custom/bare-*.cfg will still be non-functional, even after having applied this patch.
30 lines
592 B
Plaintext
30 lines
592 B
Plaintext
dnl $Id$
|
|
dnl
|
|
AC_DEFUN(RTEMS_CHECK_POSIX_API,
|
|
[dnl
|
|
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
|
|
AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl
|
|
|
|
AC_CACHE_CHECK([whether BSP supports libposix],
|
|
rtems_cv_HAS_POSIX_API,
|
|
[dnl
|
|
case "$RTEMS_CPU" in
|
|
unix*)
|
|
rtems_cv_HAS_POSIX_API="no"
|
|
;;
|
|
*)
|
|
if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
|
|
rtems_cv_HAS_POSIX_API="yes";
|
|
else
|
|
rtems_cv_HAS_POSIX_API="disabled";
|
|
fi
|
|
;;
|
|
esac])
|
|
if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
|
|
HAS_POSIX_API="yes";
|
|
else
|
|
HAS_POSIX_API="no";
|
|
fi
|
|
AC_SUBST(HAS_POSIX_API)dnl
|
|
])
|