source: rtems/scripts/configure.ac @ 4b3af7a4

4.104.114.84.95
Last change on this file since 4b3af7a4 was b96a7b1, checked in by Joel Sherrill <joel.sherrill@…>, on 01/24/02 at 14:14:31

2002-01-23 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add AC_PREFIX_DEFAULT(opt/rtems).
  • mkbinutilsspec.in: Add propagation of @prefix@.
  • binutils/base-binutils.add: Let %post and %unpost apply %{_prefix}. Apply %{_prefix} instead of /opt/rtems.
  • binutils/binutils.add: Update copyright notice. Add _prefix. Apply %{_prefix} instead of /opt/rtems. Remove -a 0 in %setup. Rework hack to SuSE's rpm screwing up %{_target}. Replace ARGS with CONFIGURE_ARGS.
  • binutils/target-binutils.add: Apply %{_prefix} instead of /opt/rtems.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1## $Id$
2
3AC_PREREQ(2.52)
4AC_INIT
5AC_CONFIG_SRCDIR([binutils])
6AC_PREFIX_DEFAULT([/opt/rtems])
7AM_INIT_AUTOMAKE(rtems-scripts,20010516,no)
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-sun-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)
68BINUTILSVERS="binutils-${binutils_version}"
69AC_SUBST(BINUTILSVERS)
70GDBVERS="gdb-${gdb_version}"
71AC_SUBST(GDBVERS)
72BSPVERS="${rtems_version}"
73AC_SUBST(RTEMS_VERSION)
74AC_SUBST(BSPVERS)
75AC_SUBST(RPM_CPU)
76
77AC_CONFIG_FILES([Makefile
78buildall
79buildalltar
80mkbinutilspec
81mkgccnewlibspec
82mkgdbspec
83mkbspspec
84binutils/Makefile
85gccnewlib/Makefile
86gdb/Makefile
87rtems/Makefile
88autotools/Makefile])
89AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
90chmod 755 buildalltar
91]],[[]])
92AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.