source: rtems/contrib/repo-conf/configure.ac @ c51adc79

4.104.11
Last change on this file since c51adc79 was c51adc79, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 19, 2008 at 3:31:05 AM

Update.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.61)
5AC_INIT([rtems-]_RTEMS_API[-repo-conf],[0.14],[http://www.rtems.org/bugzilla],
6  [rtems-]_RTEMS_API[-repo-conf])
7RTEMS_VERSIONING
8
9AC_CONFIG_SRCDIR([gpg])
10AC_CONFIG_AUX_DIR([.])
11AC_SUBST([RTEMS_API],[_RTEMS_API])
12AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip 1.10])
13
14AC_ARG_ENABLE(osname,AS_HELP_STRING(
15[--enable-osname=<dir> ... os name]),
16[osname="$enable_osname"],
17[osname="fedora-10"])
18
19case $osname in
20fedora-9* | fedora-10* )
21  os_name="Fedora"
22  os_subdir="fedora/"
23  yum_verdir="\$\$releasever"
24  apt_verdir="\$\$(VERSION)"
25  ;;
26centos-5* | redhat-el5* | fedora-7* | fedora-8* )
27  os_name="CentOS"
28  os_subdir="centos/"
29  yum_verdir="5"
30  apt_verdir="5"
31  ;;
32centos-4* | redhat-el4* | fedora-5* | fedora-6* )
33  os_name="CentOS"
34  os_subdir="centos/"
35  yum_verdir="4"
36  apt_verdir="4"
37  ;;
38suse-*)
39  os_name="openSUSE"
40  os_subdir="suse/"
41  yum_verdir="\$\$releasever"
42  apt_verdir="\$\$(VERSION)"
43  ;;
44*)
45  AC_MSG_ERROR([Unsupported OS])
46esac
47
48AC_SUBST([OS_SUBDIR],[$os_subdir])
49AC_SUBST([YUM_VERDIR],[$yum_verdir])
50AC_SUBST([APT_VERDIR],[$apt_verdir])
51AC_SUBST([OS_NAME],[$os_name])
52
53AC_CONFIG_FILES([Makefile])
54AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.