source: rtems/scripts/configure.ac @ 3d36fe3d

4.104.114.84.95
Last change on this file since 3d36fe3d was 3d36fe3d, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 29, 2002 at 7:55:49 AM

2002-07-29 Ralf Corsepius <corsepiu@…>

  • configure.ac: Use AC_CONFIG_FILES(script, chmod +x script) to generate mk*spec scripts.
  • mkbspspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • mkbinutilsspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • cpukit/mkspec.in: Cosmetical changes.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1## $Id$
2
3AC_PREREQ(2.52)
4AC_INIT([rtems-scripts],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
5AC_CONFIG_SRCDIR([binutils])
6RTEMS_TOP([..])
7AC_PREFIX_DEFAULT([/opt/rtems])
8AM_INIT_AUTOMAKE([no-define foreign 1.6])
9
10AC_CANONICAL_HOST
11
12# Check for .exe suffix.
13# With autoconf > 2.13 AC_EXEEXT is not what we want to use.
14AC_MSG_CHECKING([for executable suffix])
15case "$host" in
16i?86-*cygwin*)
17  EXEEXT=.exe ;;
18esac
19AC_SUBST(EXEEXT)
20AC_MSG_RESULT([$EXEEXT])
21
22test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
23. ./setup.cache
24
25AC_MSG_CHECKING(for rpm SPECS directory)
26# Allow users to override RPM_SPECSdir from the environment.
27if test -z "$RPM_SPECSdir" ;
28then
29# SuSE uses /usr/src/packages
30# redhat uses /usr/src/redhat
31# MDK is reported to use /usr/src/RPM
32# others might use /usr/src
33  rpmpath="/usr:/usr/local"
34  rpmdirs="src/packages:src/redhat:src/RPM:src"
35  save_IFS="$IFS"; IFS=":"
36  for d in $rpmdirs; do
37    for p in $rpmpath; do
38      list="$p/$d:$list"
39    done
40  done
41  for d in $list; do
42    if test -d $d/SPECS; then
43      RPM_SPECSdir="$d/SPECS";
44      break;
45    fi
46  done
47  IFS="$save_IFS"
48fi
49
50if test x"$RPM_SPECSdir" = x"" ; then
51AC_MSG_ERROR([not found])
52fi
53AC_MSG_RESULT($RPM_SPECSdir)
54AC_SUBST(RPM_SPECSdir)
55
56AC_MSG_CHECKING(for RPM CPU type)
57case "$host" in
58  i?86-*linux*)         RPM_CPU=i386 ;;
59  i?86-*cygwin*)        RPM_CPU=i386 ;;
60  sparc-*solaris*)      RPM_CPU=sparc ;;
61  *)
62    AC_MSG_ERROR([RPM CPU for ${host} is unknown])
63    ;;
64esac
65AC_MSG_RESULT($RPM_CPU)
66
67GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}"
68AC_SUBST(GCCNEWLIBVERS)
69GCC3NEWLIBVERS="gcc-${gcc3_version}-newlib-${gcc3newlib_version}"
70AC_SUBST(GCC3NEWLIBVERS)
71BINUTILSVERS="binutils-${binutils_version}"
72AC_SUBST(BINUTILSVERS)
73GDBVERS="gdb-${gdb_version}"
74AC_SUBST(GDBVERS)
75BSPVERS="${rtems_version}"
76AC_SUBST(RTEMS_VERSION)
77AC_SUBST(BSPVERS)
78AC_SUBST(RPM_CPU)
79
80AC_CONFIG_FILES([Makefile
81binutils/Makefile
82gccnewlib/Makefile
83gcc3newlib/Makefile
84gdb/Makefile
85rtems/Makefile
86autotools/Makefile
87autotools/automake-rtems.spec
88cpukit/Makefile
89])
90
91AC_CONFIG_FILES([buildalltar],[chmod +x buildalltar])
92AC_CONFIG_FILES([buildall],[chmod +x buildall])
93AC_CONFIG_FILES([mkgdbspec],[chmod +x mkgdbspec])
94AC_CONFIG_FILES([mkbinutilspec],[chmod +x mkbinutilspec])
95AC_CONFIG_FILES([mkgccnewlibspec],[chmod +x mkgccnewlibspec])
96AC_CONFIG_FILES([mkgcc3newlibspec],[chmod +x mkgcc3newlibspec])
97AC_CONFIG_FILES([mkbspspec],[chmod +x mkbspspec])
98AC_CONFIG_FILES([cpukit/mkspec],[chmod +x cpukit/mkspec])
99
100AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
101chmod 755 buildalltar
102]],[[]])
103AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.