source: rtems/scripts/configure.ac @ e85312d

4.104.114.84.95
Last change on this file since e85312d was e85312d, checked in by Joel Sherrill <joel.sherrill@…>, on 01/28/04 at 21:19:49

2004-01-28 RTEMS

  • configure.ac: Enable OS versioning by default for 4.7 branch.
  • setup.def: Update binutils RPM version and build new gcc 3.2.3 RPMs.
  • autotools/autoconf-rtems.spec.in, autotools/automake-rtems.spec.in: Update for new tool spin.
  • Property mode set to 100644
File size: 3.1 KB
Line 
1## $Id$
2
3AC_PREREQ(2.59)
4AC_INIT([rtems-scripts],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
5AC_CONFIG_SRCDIR([binutils])
6RTEMS_TOP([..])
7
8AM_INIT_AUTOMAKE([no-define foreign 1.8])
9
10AC_CANONICAL_HOST
11
12test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
13. ./setup.cache
14
15AC_ARG_ENABLE([rpmprefix],
16[  --enable-rpmprefix=<rpmprefix>      prefix rpms],
17[case $enable_rpmprefix in
18yes ) rpmprefix="rtems-"]RTEMS_API["-";;
19no ) rpmprefix="%{nil}";;
20* ) AS_IF([test -z "$enable_rpmprefix"],
21      [rpmprefix="%{nil}"],
22      [rpmprefix="$enable_rpmprefix"]);;
23esac],
24[rpmprefix="rtems-"]RTEMS_API["-"])
25
26AC_ARG_ENABLE([osversions],
27[  --enable-osversions       whether to use version numbers in os-tripples],
28[case $enable_osversions in
29yes ) osversion=RTEMS_API;;
30* ) osversion=;;
31esac],
32[osversion=RTEMS_API])
33
34AC_MSG_CHECKING(for rpm SPECS directory)
35# Allow users to override RPM_SPECSdir from the environment.
36if test -z "$RPM_SPECSdir" ;
37then
38# SuSE uses /usr/src/packages
39# redhat uses /usr/src/redhat
40# MDK is reported to use /usr/src/RPM
41# others might use /usr/src
42  rpmpath="/usr:/usr/local"
43  rpmdirs="src/packages:src/redhat:src/RPM:src"
44  save_IFS="$IFS"; IFS=":"
45  for d in $rpmdirs; do
46    for p in $rpmpath; do
47      list="$p/$d:$list"
48    done
49  done
50  for d in $list; do
51    if test -d $d/SPECS; then
52      RPM_SPECSdir="$d/SPECS";
53      break;
54    fi
55  done
56  IFS="$save_IFS"
57fi
58
59if test x"$RPM_SPECSdir" = x"" ; then
60AC_MSG_ERROR([not found])
61fi
62AC_MSG_RESULT($RPM_SPECSdir)
63AC_SUBST(RPM_SPECSdir)
64
65AC_MSG_CHECKING(for RPM CPU type)
66case "$host" in
67  i?86-*linux*)         RPM_CPU=i386 ;;
68  i?86-*cygwin*)        RPM_CPU=i386 ;;
69  sparc-*solaris*)      RPM_CPU=sparc ;;
70  *)
71    AC_MSG_ERROR([RPM CPU for ${host} is unknown])
72    ;;
73esac
74AC_MSG_RESULT($RPM_CPU)
75
76GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}"
77AC_SUBST(GCCNEWLIBVERS)
78GCC3NEWLIBVERS="gcc-${gcc3_version}-newlib-${gcc3newlib_version}"
79AC_SUBST(GCC3NEWLIBVERS)
80BINUTILSVERS="binutils-${binutils_version}"
81AC_SUBST(BINUTILSVERS)
82GDBVERS="gdb-${gdb_version}"
83AC_SUBST(GDBVERS)
84BSPVERS="${rtems_version}"
85AC_SUBST(RTEMS_VERSION)
86AC_SUBST(BSPVERS)
87AC_SUBST(RPM_CPU)
88AC_SUBST(rpmprefix,$rpmprefix)
89AC_SUBST(rpmgroup,[RTEMS/][RTEMS_API])
90AC_SUBST(osversion,$osversion)
91
92AC_CONFIG_FILES([Makefile
93binutils/Makefile
94gccnewlib/Makefile
95gcc3newlib/Makefile
96gdb/Makefile
97rtems/Makefile
98autotools/Makefile
99autotools/automake-rtems.spec
100autotools/autoconf-rtems.spec
101cpukit/Makefile
102rtemsdoc/Makefile
103])
104
105AC_CONFIG_FILES([common/common.add common/clean.add])
106AC_CONFIG_FILES([buildalltar],[chmod +x buildalltar])
107AC_CONFIG_FILES([buildall],[chmod +x buildall])
108AC_CONFIG_FILES([gdb/mkspec],[chmod +x gdb/mkspec])
109AC_CONFIG_FILES([binutils/mkspec],[chmod +x binutils/mkspec])
110AC_CONFIG_FILES([mkgccnewlibspec],[chmod +x mkgccnewlibspec])
111AC_CONFIG_FILES([mkbspspec],[chmod +x mkbspspec])
112AC_CONFIG_FILES([gcc3newlib/mkspec],[chmod +x gcc3newlib/mkspec])
113AC_CONFIG_FILES([cpukit/mkspec],[chmod +x cpukit/mkspec])
114AC_CONFIG_FILES([rtemsdoc/mkspec],[chmod +x rtemsdoc/mkspec])
115
116AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
117chmod 755 buildalltar
118]],[[]])
119AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.