README: Program name does not need /usr/bin path.
[a-fedora-appliance.git] / configure.ac
1 # a-fedora-appliance
2 # Copyright (C) 2011-2014 Red Hat Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 AC_INIT([a-fedora-appliance],[1.0])
19 AM_INIT_AUTOMAKE([foreign])
20
21 dnl RPM release.
22 RELEASE=7
23 AC_SUBST([RELEASE])
24
25 dnl The list of packages included in the appliance.
26 dnl NOTES:
27 dnl  (1) These packages have to be installed on the host.
28 dnl  (2) After changing this do:
29 dnl        touch make.sh.in; make
30 PACKAGELIST="\
31 bash \
32 binutils \
33 coreutils \
34 dbus \
35 file \
36 findutils \
37 gawk \
38 grep \
39 gzip \
40 less \
41 NetworkManager \
42 openssh-clients \
43 openssh-server \
44 perl \
45 procps \
46 python \
47 rsyslog \
48 systemd \
49 udev \
50 yum \
51 "
52 AC_SUBST([PACKAGELIST])
53
54 dnl Check for supermin >= 5.
55 AC_CHECK_PROG([SUPERMIN],
56               [supermin],[supermin],[no])
57 test "x$SUPERMIN" = "xno" &&
58     AC_MSG_ERROR([supermin >= 5 must be installed])
59
60 dnl Pass a supermin --packager-config option.
61 AC_MSG_CHECKING([if user requested supermin --packager-config option])
62 AC_ARG_WITH([packager-config],
63     [AS_HELP_STRING([--with-packager-config=FILE],
64       [pass supermin --packager-config option @<:@default=no@:>@])],
65     [PACKAGER_CONFIG="$withval"],
66     [PACKAGER_CONFIG=no])
67 AC_MSG_RESULT([$PACKAGER_CONFIG])
68 AC_SUBST([PACKAGER_CONFIG])
69
70 dnl Produce output files.
71 AC_CONFIG_FILES([Makefile
72                  a-fedora-appliance.spec
73                 ])
74 AC_CONFIG_FILES([build-a-fedora-appliance],
75                 [chmod 0555 build-a-fedora-appliance])
76 AC_CONFIG_FILES([boot-a-fedora-appliance],
77                 [chmod 0555 boot-a-fedora-appliance])
78 AC_OUTPUT