source: rtems/testsuites/samples/configure.ac @ aa567bc1

Last change on this file since aa567bc1 was aa567bc1, checked in by Chris Johns <chrisj@…>, on Apr 10, 2018 at 6:06:39 AM

configure: Add subdir-objects to all automake flags.

This option silences warning with automake-1.16.1 allowing us to
upgrade to that version.

This change has been tested with automake-1.12.6 and automake-1.16.1.
It seems version 1.16.1 configures slower than 1.12.6 for the same
source and BSP. The newer versions is 6 second slower.

Close #3387.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems-c-src-tests-samples],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
5AC_CONFIG_SRCDIR([hello])
6AC_CONFIG_HEADER([config.h])
7RTEMS_TOP([../..],[..])
8RTEMS_SOURCE_TOP
9RTEMS_BUILD_TOP
10
11RTEMS_CANONICAL_TARGET_CPU
12
13AM_INIT_AUTOMAKE([no-define foreign subdir-objects 1.12.2])
14AM_MAINTAINER_MODE
15
16RTEMS_ENABLE_CXX
17
18RTEMS_ENV_RTEMSBSP
19
20RTEMS_PROJECT_ROOT
21
22RTEMS_PROG_CC_FOR_TARGET
23
24RTEMS_PROG_CXX_FOR_TARGET
25RTEMS_CANONICALIZE_TOOLS
26
27RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
28RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING])
29RTEMS_CHECK_CXX(RTEMS_BSP)
30RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
31RTEMS_CHECK_CPUOPTS([RTEMS_SMP])
32
33CXXTESTS=$HAS_CPLUSPLUS
34AS_IF([test $HAS_CPLUSPLUS = yes],[
35  AC_LANG_PUSH([C++])
36  AC_CHECK_HEADERS([cstdio cstdlib iostream],[],[CXXTESTS=no])
37  AC_CACHE_CHECK(
38  [if iostream supports std:: namespace],
39  [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE],
40  [AC_COMPILE_IFELSE(
41    [AC_LANG_PROGRAM(
42      [[#include <iostream>]],
43      [[std::cout << "hello" << std::endl;]])
44    ],
45    [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=yes],
46    [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=no])
47  ])
48  AS_IF([test $rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE = no],[CXXTESTS=no])
49  AS_IF([test $CXXTESTS = no],[
50    AC_MSG_WARN([disabling C++ tests])
51  ])
52  AC_LANG_POP
53])
54
55AM_CONDITIONAL([CXXTESTS],[test $CXXTESTS = "yes"])
56AM_CONDITIONAL(NETTESTS,test "$rtems_cv_RTEMS_NETWORKING" = "yes")
57AM_CONDITIONAL(HAS_MP,test "$rtems_cv_RTEMS_MULTIPROCESSING" = "yes")
58AM_CONDITIONAL(NO_SMP,test "$rtems_cv_RTEMS_SMP" != "yes")
59AM_CONDITIONAL(HAS_SMP,test "$rtems_cv_RTEMS_SMP" = "yes")
60
61# FIXME: We should get rid of this. It's a cludge.
62AC_CHECK_SIZEOF([time_t])
63
64# BSP Test configuration
65RTEMS_TEST_CHECK([base_mp])
66RTEMS_TEST_CHECK([base_sp])
67RTEMS_TEST_CHECK([capture])
68RTEMS_TEST_CHECK([cdtest])
69RTEMS_TEST_CHECK([iostream])
70RTEMS_TEST_CHECK([fileio])
71RTEMS_TEST_CHECK([hello])
72RTEMS_TEST_CHECK([loopback])
73RTEMS_TEST_CHECK([minimum])
74RTEMS_TEST_CHECK([nsecs])
75RTEMS_TEST_CHECK([paranoia])
76RTEMS_TEST_CHECK([pppd])
77RTEMS_TEST_CHECK([ticker])
78RTEMS_TEST_CHECK([unlimited])
79
80AC_CONFIG_FILES([Makefile])
81AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.