summaryrefslogtreecommitdiff
path: root/contrib/repo-conf/configure.ac
blob: ba2dab44535e6abd7020671dc1bbb9a5b435d107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT([rtems-]_RTEMS_API[-repo-conf],[0.12],[http://www.rtems.org/bugzilla],
  [rtems-]_RTEMS_API[-repo-conf])
RTEMS_VERSIONING
AC_CONFIG_SRCDIR([gpg])
AC_CONFIG_AUX_DIR([.])
AC_SUBST([RTEMS_API],[_RTEMS_API])
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip 1.10])

AC_ARG_ENABLE(os_subdir,AS_HELP_STRING(
[--enable-os-subdir=<dir> ... os subdirectory]),
[os_subdir="$enable_os_subdir"],
[os_subdir="fedora/"])
AC_SUBST([OS_SUBDIR],[$os_subdir])

case "$os_subdir" in
centos/ ) os_name="CentOS"
  apt_versdir="\$(VERSION)"
  yum_versdir="\"(apivers)";;
fedora/ ) os_name="Fedora";;
redhat/el ) os_name="CentOS";;
suse/ ) os_name="openSUSE";;
*) AC_MSG_ERROR([Invalid os-name])
  ;;
esac
AC_SUBST([OS_NAME],[$os_name])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT