source: rtems/scripts/configure.ac @ d5dd9b9

4.104.114.84.95
Last change on this file since d5dd9b9 was 2eb3fdaa, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/26/03 at 08:20:30

2003-01-26 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add rtemsdoc.
  • Makefile.ac: Add rtemsdoc.
  • rtemsdoc/README: New.
  • rtemsdoc/.cvsignore: New.
  • Property mode set to 100644
File size: 2.6 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
88autotools/autoconf-rtems.spec
89cpukit/Makefile
90rtemsdoc/Makefile
91])
92
93AC_CONFIG_FILES([buildalltar],[chmod +x buildalltar])
94AC_CONFIG_FILES([buildall],[chmod +x buildall])
95AC_CONFIG_FILES([mkgdbspec],[chmod +x mkgdbspec])
96AC_CONFIG_FILES([mkbinutilspec],[chmod +x mkbinutilspec])
97AC_CONFIG_FILES([mkgccnewlibspec],[chmod +x mkgccnewlibspec])
98AC_CONFIG_FILES([mkbspspec],[chmod +x mkbspspec])
99AC_CONFIG_FILES([gcc3newlib/mkspec],[chmod +x gcc3newlib/mkspec])
100AC_CONFIG_FILES([cpukit/mkspec],[chmod +x cpukit/mkspec])
101AC_CONFIG_FILES([rtemsdoc/mkspec],[chmod +x rtemsdoc/mkspec])
102
103AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
104chmod 755 buildalltar
105]],[[]])
106AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.