source: rtems/contrib/rtemsrpms/configure.ac @ 8a1c14b

4.104.114.84.95
Last change on this file since 8a1c14b was 8a1c14b, checked in by Chris Johns <chrisj@…>, on 08/18/06 at 11:28:17

Renamed the spec file.

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[01f1b60c]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  ;;
33 *)
34  rpmprefix="custom-"
35  ;;
36esac
37
38AC_ARG_ENABLE([rpmprefix],
39[  --enable-rpmprefix=<rpmprefix>      prefix rpms],[
40  case "$enable_rpmprefix" in
41  yes) # ignore, use default
42    ;;
43  no) # use default
44    ;;
45  *) # presume user knows what he is doing
46    rpmprefix=$enable_rpmprefix;;
47  esac
48])
49
50rpmdbpath=
51AC_ARG_ENABLE([rpmdbpath],
52[  --enable-rpmdbpath=<rpmdbpath>      rpm database path],[
53  case "$enable_rpmdbpath" in
54  yes) # ignore, use default
55    ;;
56  no) # use default
57    ;;
58  *) # presume user knows what he is doing
[8a1c14b]59    rpmdbpath="--dbpath $enable_rpmdbpath";;
[01f1b60c]60  esac
61])
62
63bootstrap=no
64AC_ARG_ENABLE([bootstrap],
65[  --enable-bootstrap=<bootstap>      bootstrap RTEMS],[
66  case "$enable_bootstrap" in
67  yes|no) # ignore, use default
68   bootstrap=$enable_bootstrap;;
69  *) # use default
70   ;;
71  esac
72])
73
74bsps="%{nil}"
75AC_ARG_ENABLE([bsps],
76[  --enable-bsps=<yes/bsps>      BSP list],[
77  case "$enable_bsps" in
78  yes) # ignore, use default
79   ;;
80  no)
[8a1c14b]81   bsps="RTEMS_BSP=\"\""
[01f1b60c]82   ;;
83  *) # take a the list to build
[8a1c14b]84   bsps="RTEMS_BSP=\"$enable_bsps\""
[01f1b60c]85   ;;
86  esac
87])
88
89AC_SUBST(RTEMS_API, [M4_RTEMS_API])
90AC_SUBST(RTEMS_RELEASE, [M4_RTEMS_RELEASE])
91AC_SUBST(PREFIX, [$prefix])
92AC_SUBST(TARGETS, [$targets])
93AC_SUBST(RPMPREFIX, [$rpmprefix])
94AC_SUBST(RPMDBPATH, [$rpmdbpath])
95AC_SUBST(RTEMS_BOOTSTRAP, [$bootstrap])
[8a1c14b]96AC_SUBST(RTEMS_BSP, [$bsps])
[01f1b60c]97
[8a1c14b]98AC_CONFIG_FILES([Makefile rtems.spec])
[01f1b60c]99
100AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.