forked from Imagelibrary/rtems
* aclocal/enable-itron.m4: Remove changequotes (autoconf-2.49b). * aclocal/enable-posix.m4: Remove changequotes (autoconf-2.49b), use $host instead of $target (BUG-FIX). * configure.in: Use $target and $host instead of $target_alias and $host_alias (autoconf-2.49b). * aclocal/check-newlib.m4: Remove CC_FOR_TARGET (BUG-FIX) * aclocal/sysv-ipc.m4: Move AC_DEFINE outside of AC_CACHE (BUG-FIX) NOTES: * autoconf-2.49b depredicates using changequotes. * The changes to configure.in are due to cleanups in autoconf-2.49b's implemention of canonicalization. With autoconf-2.1x it wasn't always clear, when to use $xxx or $xxx_alias. Now this is clear.
34 lines
767 B
Plaintext
34 lines
767 B
Plaintext
dnl $Id$
|
|
|
|
AC_DEFUN(RTEMS_ENABLE_POSIX,
|
|
[
|
|
## AC_BEFORE([$0], [RTEMS_CHECK_POSIX_API])dnl
|
|
|
|
AC_ARG_ENABLE(posix,
|
|
[ --enable-posix enable posix interface],
|
|
[case "${enableval}" in
|
|
yes) RTEMS_HAS_POSIX_API=yes ;;
|
|
no) RTEMS_HAS_POSIX_API=no ;;
|
|
*) AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;
|
|
esac],[RTEMS_HAS_POSIX_API=yes])
|
|
|
|
case "${host}" in
|
|
# hpux unix port should go here
|
|
i[[34567]]86-pc-linux*) # unix "simulator" port
|
|
RTEMS_HAS_POSIX_API=no
|
|
;;
|
|
i[[34567]]86-*freebsd*) # unix "simulator" port
|
|
RTEMS_HAS_POSIX_API=no
|
|
;;
|
|
no_cpu-*rtems*)
|
|
RTEMS_HAS_POSIX_API=no
|
|
;;
|
|
sparc-sun-solaris*) # unix "simulator" port
|
|
RTEMS_HAS_POSIX_API=no
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
AC_SUBST(RTEMS_HAS_POSIX_API)
|
|
])
|