source: rtems/scripts/configure.in @ bd914b46

4.104.114.84.95
Last change on this file since bd914b46 was bd914b46, checked in by Joel Sherrill <joel.sherrill@…>, on 11/09/00 at 16:51:47

2000-11-05 Ralf Corsepius <corsepiu@…>

  • configure.in: Adapt m4-quoting to autoconf-2.49b, use $host instead of $target to setup RPM_CPU, move chmod 755 buildall to AC_OUTPUT's extra-cmds.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1## $Id$
2
3AC_INIT(binutils)
4
5AM_INIT_AUTOMAKE(rtems-scripts,20000610-0,no)
6
7AC_EXEEXT
8
9test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
10. ./setup.cache
11
12# Some linux distributions use /usr/src/packages
13# redhat uses /usr/src/redhat
14# others might use /usr/src
15AC_MSG_CHECKING(for rpm SPECS directory)
16if test -d /usr/src/packages/SPECS;
17then
18  RPM_SPECSdir=/usr/src/packages/SPECS;
19elif test -d /usr/src/redhat/SPECS;
20then
21  RPM_SPECSdir=/usr/src/redhat/SPECS;
22elif test -d /usr/src/SPECS;
23then
24  RPM_SPECSdir=/usr/src/SPECS;
25elif test -d /usr/local/src/redhat/SPECS;
26then
27  RPM_SPECSdir=/usr/local/src/redhat/SPECS;
28fi
29if test x"$RPM_SPECSdir" = x"" ; then
30AC_MSG_ERROR(not found)
31fi
32AC_MSG_RESULT($RPM_SPECSdir)
33AC_SUBST(RPM_SPECSdir)
34
35AC_CANONICAL_HOST
36
37AC_MSG_CHECKING(for RPM CPU type)
38case "${host}" in
39  i[[34567]]86-*linux*)    RPM_CPU=i386 ;;
40  i[[34567]]86-pc-cygwin*) RPM_CPU=i386 ;;
41  sparc-sun-solaris*)    RPM_CPU=sparc ;;
42  *)
43    AC_MSG_ERROR([RPM CPU for ${host} is unknown])
44    ;;
45esac
46AC_MSG_RESULT($RPM_CPU)
47
48GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}"
49AC_SUBST(GCCNEWLIBVERS)
50BINUTILSVERS="binutils-${binutils_version}"
51AC_SUBST(BINUTILSVERS)
52GDBVERS="gdb-${gdb_version}"
53AC_SUBST(GDBVERS)
54BSPVERS="${rtems_version}"
55AC_SUBST(RTEMS_VERSION)
56AC_SUBST(BSPVERS)
57AC_SUBST(RPM_CPU)
58
59AC_OUTPUT(
60Makefile
61buildall
62mkbinutilspec
63mkgccnewlibspec
64mkgdbspec
65mkbspspec
66binutils/Makefile
67gccnewlib/Makefile
68gdb/Makefile
69rtems/Makefile,
70chmod 755 buildall
71)
Note: See TracBrowser for help on using the repository browser.