Files
rtems/cpukit/aclocal/check-networking.m4
Joel Sherrill 118472cf87 2009-08-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* aclocal/check-networking.m4: Disable BSD TCP/IP for small memory
	targets.
2009-08-17 21:18:34 +00:00

39 lines
1.1 KiB
Plaintext

dnl $Id$
dnl
AC_DEFUN([RTEMS_CHECK_NETWORKING],
[dnl
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
AC_REQUIRE([RTEMS_ENABLE_NETWORKING])dnl
AC_CACHE_CHECK([whether CPU supports networking],
rtems_cv_HAS_NETWORKING,
[dnl
case "$RTEMS_CPU" in
avr*|m32c*) # do not have address space to hold BSD TCP/IP stack
rtems_cv_HAS_NETWORKING="no"
;;
unix*)
rtems_cv_HAS_NETWORKING="no"
;;
*)
AS_IF([test "${RTEMS_HAS_NETWORKING}" = "yes"],[
# suppress libnetworking if one these types is not available
AS_IF([test x"$ac_cv_type_int8_t" = xyes \
&& test x"$ac_cv_type_uint8_t" = xyes \
&& test x"$ac_cv_type_int16_t" = xyes \
&& test x"$ac_cv_type_uint16_t" = xyes \
&& test x"$ac_cv_type_int32_t" = xyes \
&& test x"$ac_cv_type_uint32_t" = xyes \
&& test x"$ac_cv_type_int64_t" = xyes \
&& test x"$ac_cv_type_uint64_t" = xyes],
[rtems_cv_HAS_NETWORKING=yes],
[rtems_cv_HAS_NETWORKING=no])
],[
rtems_cv_HAS_NETWORKING=disabled
])
;;
esac
])
])
])