source: rtems/scripts/configure.ac @ 5333511

4.104.114.84.95
Last change on this file since 5333511 was 5333511, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/12/04 at 15:00:11

2004-02-12 Ralf Corsepius <corsepiu@…>

  • mkgccnewlibspec.in, gccnewlib/.cvsignore, gccnewlib/HISTORY, gccnewlib/Makefile.am, gccnewlib/README, gccnewlib/base-chill.add, gccnewlib/base-g77.add, gccnewlib/base-gcc.add, gccnewlib/base-gcj.add, gccnewlib/gccnewlib.add, gccnewlib/header.add, gccnewlib/target-chill.add, gccnewlib/target-g77.add, gccnewlib/target-gcc.add, gccnewlib/target-gcj.add, gccnewlib/target-objc.add: Remove (Obsolete).
  • configure.ac, Makefile.am: Reflect changes above.
  • Property mode set to 100644
File size: 2.5 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
15RTEMS_ENABLE_RPMPREFIX
16
17AC_MSG_CHECKING(for rpm SPECS directory)
18# Allow users to override RPM_SPECSdir from the environment.
19if test -z "$RPM_SPECSdir" ;
20then
21# SuSE uses /usr/src/packages
22# redhat uses /usr/src/redhat
23# MDK is reported to use /usr/src/RPM
24# others might use /usr/src
25  rpmpath="/usr:/usr/local"
26  rpmdirs="src/packages:src/redhat:src/RPM:src"
27  save_IFS="$IFS"; IFS=":"
28  for d in $rpmdirs; do
29    for p in $rpmpath; do
30      list="$p/$d:$list"
31    done
32  done
33  for d in $list; do
34    if test -d $d/SPECS; then
35      RPM_SPECSdir="$d/SPECS";
36      break;
37    fi
38  done
39  IFS="$save_IFS"
40fi
41
42if test x"$RPM_SPECSdir" = x"" ; then
43AC_MSG_ERROR([not found])
44fi
45AC_MSG_RESULT($RPM_SPECSdir)
46AC_SUBST(RPM_SPECSdir)
47
48AC_MSG_CHECKING(for RPM CPU type)
49case "$host" in
50  i?86-*linux*)         RPM_CPU=i386 ;;
51  i?86-*cygwin*)        RPM_CPU=i386 ;;
52  sparc-*solaris*)      RPM_CPU=sparc ;;
53  *)
54    AC_MSG_ERROR([RPM CPU for ${host} is unknown])
55    ;;
56esac
57AC_MSG_RESULT($RPM_CPU)
58
59GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}"
60AC_SUBST(GCCNEWLIBVERS)
61GCC3NEWLIBVERS="gcc-${gcc3_version}-newlib-${gcc3newlib_version}"
62AC_SUBST(GCC3NEWLIBVERS)
63BINUTILSVERS="binutils-${binutils_version}"
64AC_SUBST(BINUTILSVERS)
65GDBVERS="gdb-${gdb_version}"
66AC_SUBST(GDBVERS)
67BSPVERS="${rtems_version}"
68AC_SUBST(RTEMS_VERSION,[_RTEMS_VERSION])
69AC_SUBST(BSPVERS)
70AC_SUBST(RPM_CPU)
71AC_SUBST(rpmprefix,$rpmprefix)
72AC_SUBST(rpmgroup,[RTEMS/][RTEMS_API])
73AC_SUBST(RTEMS_RPM_RELEASE,$rtems_rpm_release)
74AC_SUBST(osversion,$osversion)
75AC_CONFIG_FILES([Makefile
76binutils/Makefile
77gcc3newlib/Makefile
78gdb/Makefile
79rtems/Makefile
80autotools/Makefile
81autotools/automake-rtems.spec
82autotools/autoconf-rtems.spec
83cpukit/Makefile
84rtemsdoc/Makefile
85])
86
87AC_CONFIG_FILES([common/common.add common/clean.add])
88AC_CONFIG_FILES([buildalltar],[chmod +x buildalltar])
89AC_CONFIG_FILES([buildall],[chmod +x buildall])
90AC_CONFIG_FILES([gdb/mkspec],[chmod +x gdb/mkspec])
91AC_CONFIG_FILES([binutils/mkspec],[chmod +x binutils/mkspec])
92AC_CONFIG_FILES([mkbspspec],[chmod +x mkbspspec])
93AC_CONFIG_FILES([gcc3newlib/mkspec],[chmod +x gcc3newlib/mkspec])
94AC_CONFIG_FILES([cpukit/mkspec],[chmod +x cpukit/mkspec])
95
96AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
97chmod 755 buildalltar
98]],[[]])
99AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.