dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
dnl
|
dnl
|
dnl $Id: configure.in,v 1.2 2001-09-27 12:02:07 chris Exp $
|
dnl $Id: configure.in,v 1.2 2001-09-27 12:02:07 chris Exp $
|
|
|
AC_PREREQ(2.13)
|
AC_PREREQ(2.13)
|
AC_INIT(samples)
|
AC_INIT(samples)
|
RTEMS_TOP(../../..)
|
RTEMS_TOP(../../..)
|
AC_CONFIG_AUX_DIR(../../..)
|
AC_CONFIG_AUX_DIR(../../..)
|
|
|
RTEMS_CANONICAL_TARGET_CPU
|
RTEMS_CANONICAL_TARGET_CPU
|
|
|
AM_INIT_AUTOMAKE(rtems-c-src-tests,$RTEMS_VERSION,no)
|
AM_INIT_AUTOMAKE(rtems-c-src-tests,$RTEMS_VERSION,no)
|
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
|
|
RTEMS_ENABLE_MULTIPROCESSING
|
RTEMS_ENABLE_MULTIPROCESSING
|
RTEMS_ENABLE_POSIX
|
RTEMS_ENABLE_POSIX
|
RTEMS_ENABLE_ITRON
|
RTEMS_ENABLE_ITRON
|
RTEMS_ENABLE_NETWORKING
|
RTEMS_ENABLE_NETWORKING
|
RTEMS_ENABLE_INLINES
|
RTEMS_ENABLE_INLINES
|
RTEMS_ENABLE_CXX
|
RTEMS_ENABLE_CXX
|
RTEMS_ENABLE_GCC28
|
RTEMS_ENABLE_GCC28
|
RTEMS_ENABLE_BARE
|
RTEMS_ENABLE_BARE
|
RTEMS_ENABLE_TESTS
|
RTEMS_ENABLE_TESTS
|
|
|
RTEMS_ENV_RTEMSBSP
|
RTEMS_ENV_RTEMSBSP
|
RTEMS_CHECK_CPU
|
RTEMS_CHECK_CPU
|
RTEMS_CANONICAL_HOST
|
RTEMS_CANONICAL_HOST
|
|
|
RTEMS_PROJECT_ROOT
|
RTEMS_PROJECT_ROOT
|
|
|
RTEMS_PROG_CC_FOR_TARGET
|
RTEMS_PROG_CC_FOR_TARGET
|
|
|
dnl check for g++
|
dnl check for g++
|
if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
|
if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
|
RTEMS_PROG_CXX_FOR_TARGET
|
RTEMS_PROG_CXX_FOR_TARGET
|
fi
|
fi
|
|
|
RTEMS_CANONICALIZE_TOOLS
|
RTEMS_CANONICALIZE_TOOLS
|
|
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
|
RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
|
RTEMS_CHECK_POSIX_API(RTEMS_BSP)
|
RTEMS_CHECK_POSIX_API(RTEMS_BSP)
|
RTEMS_CHECK_ITRON_API(RTEMS_BSP)
|
RTEMS_CHECK_ITRON_API(RTEMS_BSP)
|
|
|
if test "$tests_enabled" = "yes"; then
|
if test "$tests_enabled" = "yes"; then
|
# do functionality tests first, then performance tests
|
# do functionality tests first, then performance tests
|
cfg_subdirs="libtests sptests"
|
cfg_subdirs="libtests sptests"
|
if test "$HAS_MP" = "yes"; then
|
if test "$HAS_MP" = "yes"; then
|
cfg_subdirs="$cfg_subdirs mptests"
|
cfg_subdirs="$cfg_subdirs mptests"
|
fi
|
fi
|
if test "$HAS_POSIX_API" = "yes"; then
|
if test "$HAS_POSIX_API" = "yes"; then
|
cfg_subdirs="$cfg_subdirs psxtests"
|
cfg_subdirs="$cfg_subdirs psxtests"
|
fi
|
fi
|
if test "$HAS_ITRON_API" = "yes"; then
|
if test "$HAS_ITRON_API" = "yes"; then
|
cfg_subdirs="$cfg_subdirs itrontests"
|
cfg_subdirs="$cfg_subdirs itrontests"
|
fi
|
fi
|
# Now do performance tests
|
# Now do performance tests
|
cfg_subdirs="$cfg_subdirs tmtests"
|
cfg_subdirs="$cfg_subdirs tmtests"
|
if test "$HAS_ITRON_API" = "yes"; then
|
if test "$HAS_ITRON_API" = "yes"; then
|
cfg_subdirs="$cfg_subdirs tmitrontests"
|
cfg_subdirs="$cfg_subdirs tmitrontests"
|
fi
|
fi
|
fi
|
fi
|
|
|
AC_SUBST(BARE_CPU_CFLAGS)
|
AC_SUBST(BARE_CPU_CFLAGS)
|
AC_SUBST(BARE_CPU_MODEL)
|
AC_SUBST(BARE_CPU_MODEL)
|
|
|
AC_CONFIG_SUBDIRS(tools)
|
AC_CONFIG_SUBDIRS(tools)
|
AC_CONFIG_SUBDIRS(support)
|
AC_CONFIG_SUBDIRS(support)
|
AC_CONFIG_SUBDIRS(samples)
|
AC_CONFIG_SUBDIRS(samples)
|
AC_CONFIG_SUBDIRS($cfg_subdirs)
|
AC_CONFIG_SUBDIRS($cfg_subdirs)
|
|
|
# Explicitly list all Makefiles here
|
# Explicitly list all Makefiles here
|
AC_OUTPUT(
|
AC_OUTPUT(
|
Makefile
|
Makefile
|
)
|
)
|
|
|