source: rtems/contrib/crossrpms/configure.ac @ 9087b7c

4.104.114.84.9
Last change on this file since 9087b7c was 9087b7c, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 7, 2006 at 5:28:35 AM

Fix main package name. Update version.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1## $Id$
2
3m4_define([RTEMS_API],[4.7])
4
5AC_PREREQ(2.59)
6AC_INIT([crossrpms],[0.20060307.0],[rtems-bugs@rtems.com])
7AC_CONFIG_SRCDIR([binutils/binutils.add])
8AC_CONFIG_AUX_DIR(.)
9
10AC_CANONICAL_HOST
11AC_CANONICAL_TARGET
12
13AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API])
14
15AM_INIT_AUTOMAKE([1.9])
16
17AC_ARG_ENABLE([rpmprefix],
18[  --enable-rpmprefix=<rpmprefix>      prefix rpms],[
19  case "$prefix" in
20  /usr)   rpmprefix=
21    AC_MSG_WARN([Ignoring given rpmprefix])
22    ;;
23  NONE)   rpmprefix=[rtems-]RTEMS_API[-]
24    AC_MSG_WARN([Ignoring given rpmprefix])
25    ;;
26  *)
27     case $enable_rpmprefix in
28     ''|[rtems-]RTEMS_API[-])
29       AC_MSG_ERROR([Invalid --enable-rpmprefix]);;
30     *)
31        rpmprefix=$enable_rpmprefix;;
32     esac
33    ;;
34  esac
35],[
36# defaults
37  case "$prefix" in
38  /usr)   rpmprefix=;;
39  NONE)   rpmprefix=[rtems-]RTEMS_API[-];;
40  *)      AC_MSG_ERROR([Missing --enable-rpmprefix]) ;;
41  esac
42])
43AC_SUBST(rpmprefix)
44
45AS_IF([test "${host}" != "${build}"],[
46AC_MSG_CHECKING(for RPM OS)
47case "$host" in
48  i?86-*cygwin*)        RPM_OS=cygwin ;;
49  i?86-*mingw*)         RPM_OS=mingw32 ;;
50  sparc-*solaris*)      RPM_OS=solaris2.7 ;;
51  i?86-*freebsd5*)      RPM_OS=freebsd5.2 ;;
52  i?86-*freebsd*)       RPM_OS=freebsd6.0 ;;
53  *)
54    AC_MSG_ERROR([Unsupported host ${host}])
55    ;;
56esac
57AC_MSG_RESULT($RPM_OS)
58])
59AC_SUBST(RPM_OS)
60
61case "${target_os}" in
62  rtems|[rtems]RTEMS_API[])
63    TARGET_SUBDIRS=rtems
64    ;;
65  *) # ignore
66#    AC_MSG_ERROR([Unsupported target ${target}])
67esac
68AC_SUBST([TARGET_SUBDIRS])
69
70case "${target_os}" in
71  [rtems]RTEMS_API[])
72    osversion=[]RTEMS_API[]
73    ;;
74  *)
75  osversion=
76esac
77AC_SUBST([osversion])
78
79AC_CONFIG_FILES([Makefile])
80
81AC_CONFIG_FILES([cygwin/Makefile])
82AC_CONFIG_FILES([mingw32/Makefile])
83AC_CONFIG_FILES([solaris2.7/Makefile])
84AC_CONFIG_FILES([freebsd5.2/Makefile])
85AC_CONFIG_FILES([freebsd6.0/Makefile])
86AC_CONFIG_FILES([rtems/Makefile])
87
88AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.