source: rtems/configure.ac @ 9f6f026

Last change on this file since 9f6f026 was 9f6f026, checked in by Chris Johns <chrisj@…>, on Apr 9, 2018 at 6:18:09 AM

Generate an error if no valid gcc is found when configure runs.

Close #3385.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
5AC_CONFIG_SRCDIR([c])
6RTEMS_TOP([.])
7RTEMS_SOURCE_TOP
8RTEMS_BUILD_TOP
9
10# Abort if trying to build inside of the source tree.
11AS_IF([test -f aclocal/version.m4],[
12  rm -f config.cache config.log confdefs.h
13  AC_MSG_ERROR([***]
14    [Attempt to build inside of the source tree]
15    [Please use a separate build directory, instead] )
16])
17
18AC_CANONICAL_TARGET([])
19AM_INIT_AUTOMAKE([no-define foreign dist-bzip2 no-dist-gzip 1.12.2])
20AM_MAINTAINER_MODE
21
22## These option are only in here to let --help report all supported
23## options.
24RTEMS_ENABLE_MULTIPROCESSING
25RTEMS_ENABLE_POSIX
26RTEMS_ENABLE_NETWORKING
27RTEMS_ENABLE_CXX
28RTEMS_ENABLE_TESTS
29RTEMS_ENABLE_RTEMS_DEBUG
30RTEMS_ENABLE_RTEMSBSP
31RTEMS_ENABLE_PARAVIRT
32RTEMS_ENABLE_DRVMGR
33
34## Check if there are valid tools install and in the path.
35RTEMS_CHECK_TOOL(RTEMS_CC,gcc)
36test -z "$RTEMS_CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
37
38## NOTES:
39## * tools/build are host-native tools to be installed on the host.
40## * tools/cpu are host-native or host-cross-target-tools
41
42RTEMS_BUILD_CONFIG_SUBDIRS([tools/build])
43RTEMS_BUILD_CONFIG_SUBDIRS([tools/cpu])
44
45case $enable_tests in
46yes | samples )
47  RTEMS_BUILD_CONFIG_SUBDIRS([testsuites/tools])
48  ;;
49esac
50
51# Some BSPs carelessly apply these tools as build-tools
52AS_IF([test $host != $build],[
53RTEMS_HOST_CONFIG_SUBDIRS([tools/build])
54])
55
56RTEMS_TARGET_CONFIG_SUBDIRS([c])
57
58AC_CONFIG_FILES([Makefile])
59
60AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.