source: rtems/testsuites/aclocal/rtems-top.m4 @ 55658c6

4.115
Last change on this file since 55658c6 was 8179916, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/04/11 at 16:14:42

2011-03-04 Ralf Corsépius <ralf.corsepius@…>

  • aclocal/env-rtemsbsp.m4, aclocal/rtems-top.m4, aclocal/version.m4: Rename RTEMS_API into _RTEMS_API.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1dnl $Id$
2
3# AC_DISABLE_OPTION_CHECKING is not available before 2.62
4AC_PREREQ(2.62)
5
6dnl
7dnl RTEMS_TOP($1)
8dnl
9dnl $1 .. relative path from this configure.in to the toplevel configure.in
10dnl
11AC_DEFUN([RTEMS_TOP],
12[dnl
13AC_REQUIRE([RTEMS_VERSIONING])
14AC_REQUIRE([AM_SET_LEADING_DOT])
15AC_REQUIRE([AC_DISABLE_OPTION_CHECKING])
16AC_CONFIG_AUX_DIR([$1])
17AC_CHECK_PROGS(MAKE, gmake make)
18AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
19
20AC_PREFIX_DEFAULT([/opt/rtems-][_RTEMS_API])
21
22## HACK to allow gnu-make conditionals in automake-Makefiles.
23ENDIF=endif
24AC_SUBST(ENDIF)
25
26AC_SUBST([RTEMS_TOPdir],["$1"])
27
28rtems_updir=m4_if([$2],[],[],[$2/])
29
30AC_ARG_ENABLE([rtems-root],[
31AS_HELP_STRING(--enable-rtems-root,directory containing make/custom)],
32[case ${enable_rtems_root} in
33  [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
34   rtems_rootdir=${enable_rtems_root}
35   RTEMS_ROOT=${enable_rtems_root}
36   ;;
37  *) # relative directory
38   rtems_rootdir=${rtems_updir}${enable_rtems_root}
39   RTEMS_ROOT='$(top_builddir)'/${rtems_updir}${enable_rtems_root}
40   ;;
41esac],[
42rtems_rootdir=${rtems_updir}
43RTEMS_ROOT='$(top_builddir)'/${rtems_updir}
44])
45AC_SUBST([RTEMS_ROOT])
46
47AS_IF([test -n "${with_target_subdir}"],
48  [project_top="../${with_project_top}"],
49  [project_top="${with_project_top}"])
50AC_SUBST([PROJECT_TOPdir],[${project_top}${rtems_updir}'$(top_builddir)'])
51
52AC_ARG_ENABLE([cpukit-root],[
53AS_HELP_STRING(--enable-cpukit-root,directory containing lib/librtemscpu.a)],
54[case ${enable_cpukit_root} in
55  [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
56   cpukit_rootdir=${enable_cpukit_root}
57   CPUKIT_ROOT=${enable_cpukit_root}
58   ;;
59  *) # relative directory
60   cpukit_rootdir=${rtems_updir}${enable_cpukit_root}
61   CPUKIT_ROOT='$(top_builddir)'/${rtems_updir}${enable_cpukit_root}
62   ;;
63esac],[
64cpukit_rootdir=
65CPUKIT_ROOT=
66])
67AC_SUBST([CPUKIT_ROOT])
68
69AC_ARG_ENABLE([project-root],[
70AS_HELP_STRING(--enable-project-root,directory containing lib/librtemsbsp.a)],
71[case ${enable_project_root} in
72  [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
73   project_rootdir=${enable_project_root}
74   PROJECT_ROOT=${enable_project_root}
75   ;;
76  *) # relative directory
77   project_rootdir=${rtems_updir}${enable_project_root}
78   PROJECT_ROOT='$(top_builddir)'/${rtems_updir}${enable_project_root}
79   ;;
80esac],[
81project_rootdir=
82PROJECT_ROOT=
83])
84AC_SUBST([PROJECT_ROOT])
85])dnl
Note: See TracBrowser for help on using the repository browser.