2011-01-18 09:24:57 +00:00
|
|
|
# configure.ac for anaconda
|
|
|
|
#
|
|
|
|
# Copyright (C) 2009 Red Hat, Inc.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License as published
|
|
|
|
# by the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
# Author: David Cantrell <dcantrell@redhat.com>
|
|
|
|
|
2016-04-10 04:00:00 +00:00
|
|
|
m4_define(python_required_version, 3.4)
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
AC_PREREQ([2.63])
|
2016-04-10 04:00:00 +00:00
|
|
|
AC_INIT([anaconda], [23.19.10], [anaconda-devel-list@redhat.com])
|
|
|
|
|
|
|
|
# Disable building static libraries.
|
|
|
|
# This needs to be set before initializing automake
|
|
|
|
AC_DISABLE_STATIC
|
|
|
|
|
2014-04-07 12:38:09 +00:00
|
|
|
AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2 tar-ustar])
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED([BUILD_DATE], ["`date +%m%d%Y`"], [Date of anaconda build])
|
|
|
|
AM_SILENT_RULES([yes]) # make --enable-silent-rules the default.
|
|
|
|
|
2015-05-30 11:20:59 +00:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
|
2011-01-18 09:24:57 +00:00
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_LIBTOOL
|
2015-03-23 11:36:12 +00:00
|
|
|
AC_PROG_MKDIR_P
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2014-04-07 12:38:09 +00:00
|
|
|
# Check for the intltool programs
|
|
|
|
# These checks and subsitutions are adapted IT_PROG_INTLTOOL provided in
|
|
|
|
# intltool.m4, but without the parts where it breaks gettext.
|
|
|
|
AC_PATH_PROG([INTLTOOL_EXTRACT], [intltool-extract])
|
|
|
|
AC_PATH_PROG([INTLTOOL_MERGE], [intltool-merge])
|
|
|
|
AS_IF([test -z "$INTLTOOL_EXTRACT" -o -z "$INTLTOOL_MERGE"],
|
2015-05-30 11:20:59 +00:00
|
|
|
[ANACONDA_SOFT_FAILURE([intltool not found])])
|
2014-04-07 12:38:09 +00:00
|
|
|
|
|
|
|
# Add the bits for Makefile rules
|
|
|
|
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
|
|
|
|
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
|
|
|
|
INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
|
|
|
|
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
|
|
|
|
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
|
|
|
|
intltool__v_merge_options_0='-q'
|
|
|
|
AC_SUBST(INTLTOOL_V_MERGE)
|
|
|
|
AC_SUBST(INTLTOOL__v_MERGE_)
|
|
|
|
AC_SUBST(INTLTOOL__v_MERGE_0)
|
|
|
|
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
|
|
|
|
AC_SUBST(intltool__v_merge_options_)
|
|
|
|
AC_SUBST(intltool__v_merge_options_0)
|
|
|
|
|
|
|
|
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
|
|
|
|
AC_SUBST(INTLTOOL_DESKTOP_RULE)
|
|
|
|
|
2011-01-18 09:24:57 +00:00
|
|
|
AM_GNU_GETTEXT([external])
|
2015-03-23 11:36:12 +00:00
|
|
|
# Also update in gettextver in anaconda.spec.in
|
|
|
|
AM_GNU_GETTEXT_VERSION([0.18.3])
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
# Checks for header files.
|
2015-03-23 11:36:12 +00:00
|
|
|
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h],
|
2011-01-18 09:24:57 +00:00
|
|
|
[],
|
2015-05-30 11:20:59 +00:00
|
|
|
[ANACONDA_SOFT_FAILURE([Header file $ac_header not found.])],
|
2011-01-18 09:24:57 +00:00
|
|
|
[])
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_TYPE_PID_T
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_TYPE_SSIZE_T
|
|
|
|
AC_TYPE_UINT32_T
|
2014-04-07 12:38:09 +00:00
|
|
|
AC_TYPE_INT64_T
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_FORK
|
2015-03-23 11:36:12 +00:00
|
|
|
AC_CHECK_FUNCS([getcwd memset mkdir strchr strdup],
|
2011-01-18 09:24:57 +00:00
|
|
|
[],
|
2015-05-30 11:20:59 +00:00
|
|
|
[ANACONDA_SOFT_FAILURE([Function $ac_func not found.])])
|
|
|
|
|
|
|
|
AC_CHECK_LIB([audit], [audit_open], [:],
|
|
|
|
[ANACONDA_SOFT_FAILURE([libaudit not found])])
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
AM_PATH_PYTHON(python_required_version)
|
2014-04-07 12:38:09 +00:00
|
|
|
|
|
|
|
# Check for the python extension paths
|
2016-04-10 04:00:00 +00:00
|
|
|
PKG_CHECK_MODULES([PYTHON3], [python3], [
|
2014-04-07 12:38:09 +00:00
|
|
|
LIBS_save="$LIBS"
|
2016-04-10 04:00:00 +00:00
|
|
|
LIBS="$LIBS $PYTHON3_LIBS"
|
2014-04-07 12:38:09 +00:00
|
|
|
AC_MSG_CHECKING([Python libraries])
|
|
|
|
AC_TRY_LINK_FUNC([Py_Initialize],
|
|
|
|
[AC_MSG_RESULT([yes])],
|
|
|
|
[AC_MSG_RESULT([no])
|
2015-05-30 11:20:59 +00:00
|
|
|
ANACONDA_SOFT_FAILURE([Unable to use python library])])
|
2014-04-07 12:38:09 +00:00
|
|
|
LIBS="$LIBS_save"
|
|
|
|
],
|
2015-05-30 11:20:59 +00:00
|
|
|
[ANACONDA_SOFT_FAILURE([Unable to find python library])])
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
# Check for libraries we need that provide pkg-config scripts
|
2015-05-30 11:20:59 +00:00
|
|
|
ANACONDA_PKG_CHECK_MODULES([RPM], [rpm >= 4.10.0])
|
|
|
|
ANACONDA_PKG_CHECK_MODULES([LIBARCHIVE], [libarchive >= 3.0.4])
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2013-01-23 17:28:19 +00:00
|
|
|
# GCC likes to bomb out on some ridiculous warnings. Add your favorites
|
|
|
|
# here.
|
|
|
|
SHUT_UP_GCC="-Wno-unused-result"
|
|
|
|
|
2011-01-18 09:24:57 +00:00
|
|
|
# Add remaining compiler flags we want to use
|
2015-05-30 11:20:59 +00:00
|
|
|
CFLAGS="$CFLAGS -Wall -Werror $SHUT_UP_GCC"
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
# Get the release number from the spec file
|
2016-04-10 04:00:00 +00:00
|
|
|
rel="`awk '/^Release:/ { split($2, r, "%"); print r[[1]] }' $srcdir/anaconda.spec`"
|
2011-01-18 09:24:57 +00:00
|
|
|
AC_SUBST(PACKAGE_RELEASE, [$rel])
|
|
|
|
|
2014-04-07 12:38:09 +00:00
|
|
|
# Perform arch related tests
|
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
s_arch="`echo $build_cpu | sed -e s/i.86/i386/ -e s/powerpc.*/ppc/`"
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
AM_CONDITIONAL(IS_LIVEINST_ARCH,
|
2015-03-23 11:36:12 +00:00
|
|
|
[test x$s_arch = xppc || test x$s_arch = xppc64 || test x$s_arch = xppc64le || test x$s_arch = xi386 || test x$s_arch = xx86_64])
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2013-01-23 17:28:19 +00:00
|
|
|
AC_CONFIG_SUBDIRS([widgets])
|
|
|
|
|
2011-01-18 09:24:57 +00:00
|
|
|
AC_CONFIG_FILES([Makefile
|
2013-01-23 17:28:19 +00:00
|
|
|
data/Makefile
|
|
|
|
data/command-stubs/Makefile
|
2011-01-18 09:24:57 +00:00
|
|
|
docs/Makefile
|
2013-01-23 17:28:19 +00:00
|
|
|
dracut/Makefile
|
|
|
|
pyanaconda/installclasses/Makefile
|
|
|
|
data/liveinst/Makefile
|
|
|
|
data/liveinst/console.apps/Makefile
|
|
|
|
data/liveinst/gnome/Makefile
|
|
|
|
data/liveinst/pam.d/Makefile
|
|
|
|
data/systemd/Makefile
|
2015-05-30 11:20:59 +00:00
|
|
|
data/window-manager/Makefile
|
|
|
|
data/window-manager/config/Makefile
|
|
|
|
data/window-manager/theme/Makefile
|
2011-01-18 09:24:57 +00:00
|
|
|
po/Makefile.in
|
|
|
|
scripts/Makefile
|
2013-01-23 17:28:19 +00:00
|
|
|
pyanaconda/Makefile
|
2015-03-23 11:36:12 +00:00
|
|
|
pyanaconda/version.py
|
2013-01-23 17:28:19 +00:00
|
|
|
pyanaconda/isys/Makefile
|
|
|
|
pyanaconda/packaging/Makefile
|
|
|
|
pyanaconda/ui/Makefile
|
2015-03-23 11:36:12 +00:00
|
|
|
pyanaconda/ui/categories/Makefile
|
2013-01-23 17:28:19 +00:00
|
|
|
pyanaconda/ui/lib/Makefile
|
|
|
|
pyanaconda/ui/gui/hubs/Makefile
|
|
|
|
pyanaconda/ui/gui/spokes/Makefile
|
2014-04-07 12:38:09 +00:00
|
|
|
pyanaconda/ui/gui/spokes/advstorage/Makefile
|
2013-01-23 17:28:19 +00:00
|
|
|
pyanaconda/ui/gui/spokes/lib/Makefile
|
|
|
|
pyanaconda/ui/gui/Makefile
|
|
|
|
pyanaconda/ui/tui/hubs/Makefile
|
|
|
|
pyanaconda/ui/tui/simpleline/Makefile
|
|
|
|
pyanaconda/ui/tui/spokes/Makefile
|
|
|
|
pyanaconda/ui/tui/Makefile
|
|
|
|
data/post-scripts/Makefile
|
2014-04-07 12:38:09 +00:00
|
|
|
tests/Makefile
|
2013-01-23 17:28:19 +00:00
|
|
|
utils/Makefile
|
2014-04-07 12:38:09 +00:00
|
|
|
utils/dd/Makefile])
|
2011-01-18 09:24:57 +00:00
|
|
|
AC_OUTPUT
|
2015-05-30 11:20:59 +00:00
|
|
|
|
|
|
|
# Gently advise the user about the build failures they are about to encounter
|
|
|
|
ANACONDA_FAILURES
|