source: rtems/scripts/configure.ac @ afe5cac

4.104.114.84.95
Last change on this file since afe5cac was afe5cac, checked in by Joel Sherrill <joel.sherrill@…>, on 03/28/02 at 18:17:40

2001-03-28 Joel Sherrill <joel@…>

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