Files
rtems/c/src/aclocal/check-posix.m4
Ralf Corsepius 9550125efa 2003-11-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/bsp-arg-enable.m4, aclocal/canonical-target-name.m4,
	aclocal/canonicalize-tools.m4, aclocal/check-custom-bsp.m4,
	aclocal/check-posix.m4, aclocal/check-rdbg.m4,
	aclocal/check-tool.m4, aclocal/config-subdirs.m4,
	aclocal/enable-bare.m4, aclocal/enable-cxx.m4,
	aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4,
	aclocal/enable-networking.m4, aclocal/enable-posix.m4,
	aclocal/enable-rdbg.m4, aclocal/enable-rtemsbsp.m4,
	aclocal/env-rtemsbsp.m4, aclocal/gcc-isystem.m4,
	aclocal/gcc-pipe.m4, aclocal/gcc-specs.m4,
	aclocal/i386-gas-code16.m4, aclocal/multilib.m4,
	aclocal/path-ksh.m4, aclocal/prog-cc.m4,
	aclocal/prog-cxx.m4, aclocal/project-root.m4,
	aclocal/rtems-top.m4, aclocal/target.m4,
	aclocal/tool-paths.m4:
	Fix underquoting to silence automake-1.8.
2003-11-26 06:18:03 +00:00

37 lines
801 B
Plaintext

dnl $Id$
dnl
AC_DEFUN([RTEMS_CHECK_POSIX_API],
[dnl
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl
AC_CACHE_CHECK([whether CPU 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
])
AC_DEFUN([RTEMS_DEFINE_POSIX_API],
[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnl
AS_IF(
[test x"${HAS_POSIX_API}" = x"yes"],
[AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])])
])