2 # Copyright (C) 2011 Red Hat Inc.
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.
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.
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.
18 AC_INIT([a-fedora-appliance],[1.0])
19 AM_INIT_AUTOMAKE([foreign])
25 dnl The list of packages included in the appliance.
26 dnl NOTE: After changing this: touch make.sh.in; make
48 AC_SUBST([PACKAGELIST])
50 dnl Check for febootstrap >= 3.0.
51 AC_CHECK_PROG([FEBOOTSTRAP],
52 [febootstrap],[febootstrap],[no])
53 test "x$FEBOOTSTRAP" = "xno" &&
54 AC_MSG_ERROR([febootstrap must be installed])
55 dnl febootstrap 2.x did not support the --version parameter
56 $FEBOOTSTRAP --version >&AS_MESSAGE_LOG_FD 2>&1 ||
57 AC_MSG_ERROR([febootstrap >= 3.0 must be installed, your version is too old])
59 dnl Pass a febootstrap --yum-config option.
60 AC_MSG_CHECKING([if user requested febootstrap --yum-config option])
61 AC_ARG_WITH([yum-config],
62 [AS_HELP_STRING([--with-yum-config=FILE],
63 [pass febootstrap --yum-config option @<:@default=no@:>@])],
64 [YUM_CONFIG="$withval"],
66 AC_MSG_RESULT([$YUM_CONFIG])
67 AC_SUBST([YUM_CONFIG])
69 dnl Produce output files.
70 AC_CONFIG_FILES([Makefile
71 a-fedora-appliance.spec
73 AC_CONFIG_FILES([build-a-fedora-appliance],
74 [chmod 0555 build-a-fedora-appliance])
75 AC_CONFIG_FILES([boot-a-fedora-appliance],
76 [chmod 0555 boot-a-fedora-appliance])