source: rtems/contrib/rtemsrpms/configure.ac @ 01f1b60c

4.104.114.84.95
Last change on this file since 01f1b60c was 01f1b60c, checked in by Chris Johns <chrisj@…>, on 08/17/06 at 05:43:00

Add the rtemsrpms package to RTEMS.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1## $Id$
2
3m4_define([M4_RTEMS_API],[4.7])
4m4_define([M4_RTEMS_RELEASE],[0])
5
6AC_PREREQ(2.59)
7AC_INIT([rtemsrpms],[M4_RTEMS_RELEASE],[rtems-bugs@rtems.com])
8AC_CONFIG_AUX_DIR(.)
9
10AC_CANONICAL_HOST
11
12AC_PREFIX_DEFAULT([/opt/rtems-][M4_RTEMS_API])
13
14AM_INIT_AUTOMAKE([1.9])
15
16AC_ARG_ENABLE([targets],
17  AS_HELP_STRING([--enable-targets=<targets>],[build for targets <targets>]),
18  [targets="$enable_targets"],
19  [targets="i386 m68k powerpc sparc arm mips"]
20)
21
22rpmprefix="[rtems-]M4_RTEMS_API[-]"
23
24case "$prefix" in
25 /usr/local)
26  rpmprefix="local-"
27  ;;
28 /opt/rtems)
29  ;;
30 NONE|$ac_default_prefix)
31  prefix=$ac_default_prefix
32  rpmprefix="rtems-"
33  ;;
34 *)
35  rpmprefix="custom-"
36  ;;
37esac
38
39AC_ARG_ENABLE([rpmprefix],
40[  --enable-rpmprefix=<rpmprefix>      prefix rpms],[
41  case "$enable_rpmprefix" in
42  yes) # ignore, use default
43    ;;
44  no) # use default
45    ;;
46  *) # presume user knows what he is doing
47    rpmprefix=$enable_rpmprefix;;
48  esac
49])
50
51rpmdbpath=
52AC_ARG_ENABLE([rpmdbpath],
53[  --enable-rpmdbpath=<rpmdbpath>      rpm database path],[
54  case "$enable_rpmdbpath" in
55  yes) # ignore, use default
56    ;;
57  no) # use default
58    ;;
59  *) # presume user knows what he is doing
60    rpmdbpath=$enable_rpmdbpath;;
61  esac
62])
63rpmdbpath="--dbpath $rpmdbpath"
64
65bootstrap=no
66AC_ARG_ENABLE([bootstrap],
67[  --enable-bootstrap=<bootstap>      bootstrap RTEMS],[
68  case "$enable_bootstrap" in
69  yes|no) # ignore, use default
70   bootstrap=$enable_bootstrap;;
71  *) # use default
72   ;;
73  esac
74])
75
76bsps="%{nil}"
77AC_ARG_ENABLE([bsps],
78[  --enable-bsps=<yes/bsps>      BSP list],[
79  case "$enable_bsps" in
80  yes) # ignore, use default
81   ;;
82  no)
83   bsps="RTEMS_BSPS=\"\""
84   ;;
85  *) # take a the list to build
86   bsps="RTEMS_BSPS=\"$enable_bsps\""
87   ;;
88  esac
89])
90
91AC_SUBST(RTEMS_API, [M4_RTEMS_API])
92AC_SUBST(RTEMS_RELEASE, [M4_RTEMS_RELEASE])
93AC_SUBST(PREFIX, [$prefix])
94AC_SUBST(TARGETS, [$targets])
95AC_SUBST(RPMPREFIX, [$rpmprefix])
96AC_SUBST(RPMDBPATH, [$rpmdbpath])
97AC_SUBST(RTEMS_BOOTSTRAP, [$bootstrap])
98AC_SUBST(RTEMS_BSPS, [$bsps])
99
100AC_CONFIG_FILES([Makefile rtems.specs])
101
102AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.