source: rtems-schedsim/aclocal/check-networking.m4 @ fa45079

Last change on this file since fa45079 was a2aad55, checked in by Joel Sherrill <joel.sherrill@…>, on 05/01/13 at 00:41:56

Remove CVS $

  • Property mode set to 100644
File size: 936 bytes
Line 
1AC_DEFUN([RTEMS_CHECK_NETWORKING],
2[dnl
3AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
4AC_REQUIRE([RTEMS_ENABLE_NETWORKING])dnl
5
6AC_CACHE_CHECK([whether CPU supports networking],
7  rtems_cv_HAS_NETWORKING,
8  [dnl
9    case "$host" in
10    *-*-rtems*)
11      AS_IF([test "${RTEMS_HAS_NETWORKING}" = "yes"],[
12# suppress libnetworking if one these types is not available
13        AS_IF([test x"$ac_cv_type_int8_t" = xyes \
14          && test x"$ac_cv_type_uint8_t" = xyes \
15          && test x"$ac_cv_type_int16_t" = xyes \
16          && test x"$ac_cv_type_uint16_t" = xyes \
17          && test x"$ac_cv_type_int32_t" = xyes \
18          && test x"$ac_cv_type_uint32_t" = xyes \
19          && test x"$ac_cv_type_int64_t" = xyes \
20          && test x"$ac_cv_type_uint64_t" = xyes],
21        [rtems_cv_HAS_NETWORKING=yes],
22        [rtems_cv_HAS_NETWORKING=no])
23      ],[
24        rtems_cv_HAS_NETWORKING=disabled
25      ])
26      ;;
27    esac
28    ])
29  ])
30])
Note: See TracBrowser for help on using the repository browser.