Blame configure.ac

rpm-build 0fba15
AC_PREREQ([2.63])
rpm-build 0fba15
dnl To do a release: follow the instructions to update libostree-released.sym from
rpm-build 0fba15
dnl libostree-devel.sym, update the checksum in test-symbols.sh, set is_release_build=yes
rpm-build 0fba15
dnl below. Then make another post-release commit to bump the version and set
rpm-build 0fba15
dnl is_release_build=no.
rpm-build 0fba15
dnl Seed the release notes with `git-shortlog-with-prs <previous-release>..`. Then use
rpm-build 0fba15
dnl `git-evtag` to create the tag and push it. Finally, create a GitHub release and attach
rpm-build 0fba15
dnl the tarball from `make dist`.
rpm-build 0fba15
m4_define([year_version], [2020])
Packit Service 6eb7b9
m4_define([release_version], [7])
rpm-build 0fba15
m4_define([package_version], [year_version.release_version])
rpm-build 0fba15
AC_INIT([libostree], [package_version], [walters@verbum.org])
rpm-build 0fba15
is_release_build=yes
rpm-build 0fba15
AC_CONFIG_HEADER([config.h])
rpm-build 0fba15
AC_CONFIG_MACRO_DIR([buildutil])
rpm-build 0fba15
AC_CONFIG_AUX_DIR([build-aux])
rpm-build 0fba15
rpm-build 0fba15
AM_INIT_AUTOMAKE([1.13 -Wno-portability foreign no-define tar-ustar no-dist-gzip dist-xz
rpm-build 0fba15
                  color-tests subdir-objects])
rpm-build 0fba15
AM_MAINTAINER_MODE([enable])
rpm-build 0fba15
AM_SILENT_RULES([yes])
rpm-build 0fba15
AC_USE_SYSTEM_EXTENSIONS
rpm-build 0fba15
AC_SYS_LARGEFILE
rpm-build 0fba15
rpm-build 0fba15
AC_PROG_CC
rpm-build 0fba15
AM_PROG_CC_C_O
rpm-build 0fba15
AC_PROG_YACC
rpm-build 0fba15
rpm-build 0fba15
dnl Versioning information
rpm-build 0fba15
AC_SUBST([YEAR_VERSION], [year_version])
rpm-build 0fba15
AC_SUBST([RELEASE_VERSION], [release_version])
rpm-build 0fba15
AC_SUBST([PACKAGE_VERSION], [package_version])
rpm-build 0fba15
rpm-build 0fba15
AS_IF([echo "$CFLAGS" | grep -q -E -e '-Werror($| )'], [], [
rpm-build 0fba15
CC_CHECK_FLAGS_APPEND([WARN_CFLAGS], [CFLAGS], [\
rpm-build 0fba15
  -pipe \
rpm-build 0fba15
  -Wall \
Packit Service 6eb7b9
  -Werror=shadow \
rpm-build 0fba15
  -Werror=empty-body \
rpm-build 0fba15
  -Werror=strict-prototypes \
rpm-build 0fba15
  -Werror=missing-prototypes \
rpm-build 0fba15
  -Werror=implicit-function-declaration \
rpm-build 0fba15
  "-Werror=format=2 -Werror=format-security -Werror=format-nonliteral" \
rpm-build 0fba15
  -Werror=pointer-arith -Werror=init-self \
rpm-build 0fba15
  -Werror=missing-declarations \
rpm-build 0fba15
  -Werror=return-type \
rpm-build 0fba15
  -Werror=switch \
rpm-build 0fba15
  -Werror=overflow \
rpm-build 0fba15
  -Werror=int-conversion \
rpm-build 0fba15
  -Werror=parentheses \
rpm-build 0fba15
  -Werror=undef \
rpm-build 0fba15
  -Werror=incompatible-pointer-types \
rpm-build 0fba15
  -Werror=misleading-indentation \
rpm-build 0fba15
  -Werror=missing-include-dirs -Werror=aggregate-return \
rpm-build 0fba15
  -Wstrict-aliasing=2 \
rpm-build 0fba15
  -Werror=unused-result \
rpm-build 0fba15
])])
rpm-build 0fba15
AC_SUBST(WARN_CFLAGS)
rpm-build 0fba15
rpm-build 0fba15
AC_MSG_CHECKING([for -fsanitize=address in CFLAGS])
rpm-build 0fba15
if echo $CFLAGS | grep -q -e -fsanitize=address; then
rpm-build 0fba15
  AC_MSG_RESULT([yes])
rpm-build 0fba15
  using_asan=yes
rpm-build 0fba15
else
rpm-build 0fba15
  AC_MSG_RESULT([no])
rpm-build 0fba15
fi
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_ASAN, [test x$using_asan = xyes])
rpm-build 0fba15
AM_COND_IF([BUILDOPT_ASAN],
rpm-build 0fba15
  [AC_DEFINE([BUILDOPT_ASAN], 1, [Define if we are building with -fsanitize=address])])
rpm-build 0fba15
rpm-build 0fba15
AC_MSG_CHECKING([for -fsanitize=thread in CFLAGS])
rpm-build 0fba15
if echo $CFLAGS | grep -q -e -fsanitize=thread; then
rpm-build 0fba15
  AC_MSG_RESULT([yes])
rpm-build 0fba15
  using_tsan=yes
rpm-build 0fba15
else
rpm-build 0fba15
  AC_MSG_RESULT([no])
rpm-build 0fba15
fi
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_TSAN, [test x$using_tsan = xyes])
rpm-build 0fba15
AM_COND_IF([BUILDOPT_TSAN],
rpm-build 0fba15
  [AC_DEFINE([BUILDOPT_TSAN], 1, [Define if we are building with -fsanitize=thread])])
rpm-build 0fba15
rpm-build 0fba15
# Initialize libtool
rpm-build 0fba15
LT_PREREQ([2.2.4])
rpm-build 0fba15
LT_INIT([disable-static])
rpm-build 0fba15
rpm-build 0fba15
OSTREE_FEATURES=""
rpm-build 0fba15
AC_SUBST([OSTREE_FEATURES])
rpm-build 0fba15
rpm-build 0fba15
GLIB_TESTS
rpm-build 0fba15
LIBGLNX_CONFIGURE
rpm-build 0fba15
rpm-build 0fba15
dnl These bits attempt to mirror https://github.com/coreutils/gnulib/blob/e369b04cca4da1534c98628b8ee4648bfca2bb3a/m4/parse-datetime.m4#L27
rpm-build 0fba15
AC_CHECK_FUNCS([nanotime clock_gettime])
rpm-build 0fba15
AC_STRUCT_TIMEZONE
rpm-build 0fba15
AC_CHECK_HEADER([sys/xattr.h],,[AC_MSG_ERROR([You must have sys/xattr.h from glibc])])
rpm-build 0fba15
rpm-build 0fba15
AS_IF([test "$YACC" != "bison -y"], [AC_MSG_ERROR([bison not found but required])])
rpm-build 0fba15
rpm-build 0fba15
PKG_PROG_PKG_CONFIG
rpm-build 0fba15
rpm-build 0fba15
# PKG_CHECK_VAR added to pkg-config 0.28
rpm-build 0fba15
m4_define_default(
rpm-build 0fba15
    [PKG_CHECK_VAR],
rpm-build 0fba15
    [AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])
rpm-build 0fba15
     AS_IF([test -z "$$1"], [$1=`$PKG_CONFIG --variable="$3" "$2"`])
rpm-build 0fba15
     AS_IF([test -n "$$1"], [$4], [$5])])
rpm-build 0fba15
rpm-build 0fba15
PKG_CHECK_VAR(BASH_COMPLETIONSDIR, [bash-completion], [completionsdir], ,
rpm-build 0fba15
  BASH_COMPLETIONSDIR="${datadir}/bash-completion/completions")
rpm-build 0fba15
AC_SUBST(BASH_COMPLETIONSDIR)
rpm-build 0fba15
rpm-build 0fba15
AM_PATH_GLIB_2_0(,,AC_MSG_ERROR([GLib not found]))
rpm-build 0fba15
rpm-build 0fba15
dnl When bumping the gio-unix-2.0 dependency (or glib-2.0 in general),
rpm-build 0fba15
dnl remember to bump GLIB_VERSION_MIN_REQUIRED and
rpm-build 0fba15
dnl GLIB_VERSION_MAX_ALLOWED in Makefile.am
rpm-build 0fba15
GIO_DEPENDENCY="gio-unix-2.0 >= 2.40.0"
rpm-build 0fba15
PKG_CHECK_MODULES(OT_DEP_GIO_UNIX, $GIO_DEPENDENCY)
rpm-build 0fba15
rpm-build 0fba15
dnl 5.1.0 is an arbitrary version here
rpm-build 0fba15
PKG_CHECK_MODULES(OT_DEP_LZMA, liblzma >= 5.0.5)
rpm-build 0fba15
rpm-build 0fba15
dnl Needed for rollsum
rpm-build 0fba15
PKG_CHECK_MODULES(OT_DEP_ZLIB, zlib)
rpm-build 0fba15
rpm-build 0fba15
dnl We're not actually linking to this, just using the header
rpm-build 0fba15
PKG_CHECK_MODULES(OT_DEP_E2P, e2p)
rpm-build 0fba15
rpm-build 0fba15
dnl Arbitrary version that's in CentOS7.2 now
rpm-build 0fba15
CURL_DEPENDENCY=7.29.0
rpm-build 0fba15
AC_ARG_WITH(curl,
rpm-build 0fba15
	    AS_HELP_STRING([--with-curl], [Use libcurl @<:@default=no@:>@]),
rpm-build 0fba15
	    [], [with_curl=no])
rpm-build 0fba15
AS_IF([test x$with_curl != xno ], [
rpm-build 0fba15
    PKG_CHECK_MODULES(OT_DEP_CURL, libcurl >= $CURL_DEPENDENCY)
rpm-build 0fba15
    with_curl=yes
rpm-build 0fba15
    AC_DEFINE([HAVE_LIBCURL], 1, [Define if we have libcurl.pc])
rpm-build 0fba15
    dnl Currently using libcurl requires soup for trivial-httpd for tests
rpm-build 0fba15
    with_soup_default=yes
rpm-build 0fba15
], [with_soup_default=check])
rpm-build 0fba15
AM_CONDITIONAL(USE_CURL, test x$with_curl != xno)
rpm-build 0fba15
if test x$with_curl = xyes; then OSTREE_FEATURES="$OSTREE_FEATURES libcurl"; fi
rpm-build 0fba15
AC_ARG_ENABLE(http2,
rpm-build 0fba15
AS_HELP_STRING([--disable-http2],
rpm-build 0fba15
  [Disable use of http2 (default: no)]),,
rpm-build 0fba15
  [enable_http2=yes])
rpm-build 0fba15
AS_IF([test x$enable_http2 != xno ], [
rpm-build 0fba15
  AC_DEFINE([BUILDOPT_HTTP2], 1, [Define if we enable http2 by default])
rpm-build 0fba15
], [
rpm-build 0fba15
  OSTREE_FEATURES="$OSTREE_FEATURES no-http2"
rpm-build 0fba15
])
rpm-build 0fba15
rpm-build 0fba15
dnl When bumping the libsoup-2.4 dependency, remember to bump
rpm-build 0fba15
dnl SOUP_VERSION_MIN_REQUIRED and SOUP_VERSION_MAX_ALLOWED in
rpm-build 0fba15
dnl Makefile.am
rpm-build 0fba15
SOUP_DEPENDENCY="libsoup-2.4 >= 2.39.1"
rpm-build 0fba15
AC_ARG_WITH(soup,
rpm-build 0fba15
	    AS_HELP_STRING([--with-soup], [Use libsoup @<:@default=yes@:>@]),
rpm-build 0fba15
	    [], [with_soup=$with_soup_default])
rpm-build 0fba15
AS_IF([test x$with_soup != xno], [
rpm-build 0fba15
  AC_ARG_ENABLE(libsoup_client_certs,
rpm-build 0fba15
                AS_HELP_STRING([--enable-libsoup-client-certs],
rpm-build 0fba15
                               [Require availability of new enough libsoup TLS client cert API (default: auto)]),,
rpm-build 0fba15
                [enable_libsoup_client_certs=auto])
rpm-build 0fba15
  AC_MSG_CHECKING([for $SOUP_DEPENDENCY])
rpm-build 0fba15
  PKG_CHECK_EXISTS($SOUP_DEPENDENCY, have_soup=yes, have_soup=no)
rpm-build 0fba15
  AC_MSG_RESULT([$have_soup])
rpm-build 0fba15
    AS_IF([ test x$have_soup = xno && test x$with_soup != xcheck], [
rpm-build 0fba15
       AC_MSG_ERROR([libsoup is enabled but could not be found])
rpm-build 0fba15
  ])
rpm-build 0fba15
  AS_IF([test x$have_soup = xyes], [
rpm-build 0fba15
    PKG_CHECK_MODULES(OT_DEP_SOUP, $SOUP_DEPENDENCY)
rpm-build 0fba15
    AC_DEFINE([HAVE_LIBSOUP], 1, [Define if we have libsoup.pc])
rpm-build 0fba15
    with_soup=yes
rpm-build 0fba15
    save_CFLAGS=$CFLAGS
rpm-build 0fba15
    CFLAGS=$OT_DEP_SOUP_CFLAGS
rpm-build 0fba15
    have_libsoup_client_certs=no
rpm-build 0fba15
    AC_CHECK_DECL([SOUP_SESSION_TLS_INTERACTION], [
rpm-build 0fba15
        AC_DEFINE([HAVE_LIBSOUP_CLIENT_CERTS], 1, [Define if we have libsoup client certs])
rpm-build 0fba15
        have_libsoup_client_certs=yes
rpm-build 0fba15
        ], [], [#include <libsoup/soup.h>])
rpm-build 0fba15
    AS_IF([test x$enable_libsoup_client_certs = xyes && test x$have_libsoup_client_certs != xyes], [
rpm-build 0fba15
      AC_MSG_ERROR([libsoup client certs explicitly requested but not found])
rpm-build 0fba15
    ]) 
rpm-build 0fba15
    CFLAGS=$save_CFLAGS
rpm-build 0fba15
  ], [
rpm-build 0fba15
    with_soup=no
rpm-build 0fba15
  ])
rpm-build 0fba15
], [ with_soup=no ])
rpm-build 0fba15
if test x$with_soup != xno; then OSTREE_FEATURES="$OSTREE_FEATURES libsoup"; fi
rpm-build 0fba15
AM_CONDITIONAL(USE_LIBSOUP, test x$with_soup != xno)
rpm-build 0fba15
AM_CONDITIONAL(HAVE_LIBSOUP_CLIENT_CERTS, test x$have_libsoup_client_certs = xyes)
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_ENABLE(trivial-httpd-cmdline,
rpm-build 0fba15
  [AS_HELP_STRING([--enable-trivial-httpd-cmdline],
rpm-build 0fba15
  [Continue to support "ostree trivial-httpd" [default=no]])],,
rpm-build 0fba15
  enable_trivial_httpd_cmdline=no)
rpm-build 0fba15
AS_IF([test x$enable_trivial_httpd_cmdline = xyes],
rpm-build 0fba15
  [AC_DEFINE([BUILDOPT_ENABLE_TRIVIAL_HTTPD_CMDLINE], 1, [Define if we are enabling ostree trivial-httpd entrypoint])]
rpm-build 0fba15
)
rpm-build 0fba15
rpm-build 0fba15
AS_IF([test x$with_curl = xyes && test x$with_soup = xno], [
rpm-build 0fba15
  AC_MSG_WARN([Curl enabled, but libsoup is not; libsoup is needed for tests (make check, etc.)])
rpm-build 0fba15
])
rpm-build 0fba15
AM_CONDITIONAL(USE_CURL_OR_SOUP, test x$with_curl != xno || test x$with_soup != xno)
rpm-build 0fba15
AS_IF([test x$with_curl != xno || test x$with_soup != xno],
rpm-build 0fba15
            [AC_DEFINE([HAVE_LIBCURL_OR_LIBSOUP], 1, [Define if we have soup or curl])])
rpm-build 0fba15
AS_IF([test x$with_curl = xyes], [fetcher_backend=curl], [test x$with_soup = xyes], [fetcher_backend=libsoup], [fetcher_backend=none])
rpm-build 0fba15
rpm-build 0fba15
m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
rpm-build 0fba15
  GOBJECT_INTROSPECTION_CHECK([1.34.0])
rpm-build 0fba15
])
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_INTROSPECTION, test "x$found_introspection" = xyes)
rpm-build 0fba15
rpm-build 0fba15
LIBGPGME_DEPENDENCY="1.1.8"
rpm-build 0fba15
AC_ARG_WITH(gpgme,
rpm-build 0fba15
	    AS_HELP_STRING([--with-gpgme], [Use gpgme @<:@default=yes@:>@]),
rpm-build 0fba15
	    [], [with_gpgme=yes])
rpm-build 0fba15
AS_IF([test x$with_gpgme != xno], [
rpm-build 0fba15
    PKG_CHECK_MODULES(OT_DEP_GPGME, gpgme-pthread >= $LIBGPGME_DEPENDENCY, have_gpgme=yes, [
rpm-build 0fba15
        m4_ifdef([AM_PATH_GPGME_PTHREAD], [
rpm-build 0fba15
            AM_PATH_GPGME_PTHREAD($LIBGPGME_DEPENDENCY, have_gpgme=yes, have_gpgme=no)
rpm-build 0fba15
        ],[ have_gpgme=no ])
rpm-build 0fba15
    ])
rpm-build 0fba15
    AS_IF([ test x$have_gpgme = xno ], [
rpm-build 0fba15
       AC_MSG_ERROR([Need GPGME_PTHREAD version $LIBGPGME_DEPENDENCY or later])
rpm-build 0fba15
    ])
rpm-build 0fba15
    OSTREE_FEATURES="$OSTREE_FEATURES gpgme"
rpm-build 0fba15
    PKG_CHECK_MODULES(OT_DEP_GPG_ERROR, [gpg-error], [], [
rpm-build 0fba15
dnl This apparently doesn't ship a pkg-config file either, and we need
rpm-build 0fba15
dnl to link to it directly.
rpm-build 0fba15
        AC_PATH_PROG(GPG_ERROR_CONFIG, [gpg-error-config], [AC_MSG_ERROR([Missing gpg-error-config])])
rpm-build 0fba15
        OT_DEP_GPG_ERROR_CFLAGS="$( $GPG_ERROR_CONFIG --cflags )"
rpm-build 0fba15
        OT_DEP_GPG_ERROR_LIBS="$( $GPG_ERROR_CONFIG --libs )"
rpm-build 0fba15
    ])
rpm-build 0fba15
    OT_DEP_GPGME_CFLAGS="${OT_DEP_GPGME_CFLAGS} ${OT_DEP_GPG_ERROR_CFLAGS}"
rpm-build 0fba15
    OT_DEP_GPGME_LIBS="${OT_DEP_GPGME_LIBS} ${OT_DEP_GPG_ERROR_LIBS}"
rpm-build 0fba15
    ],
rpm-build 0fba15
    [
rpm-build 0fba15
    AC_DEFINE([OSTREE_DISABLE_GPGME], 1, [Define to disable internal GPGME support])
rpm-build 0fba15
    with_gpgme=no
rpm-build 0fba15
    ]
rpm-build 0fba15
)
rpm-build 0fba15
AM_CONDITIONAL(USE_GPGME, test "x$have_gpgme" = xyes)
rpm-build 0fba15
rpm-build 0fba15
rpm-build 0fba15
LIBSODIUM_DEPENDENCY="1.0.14"
rpm-build 0fba15
AC_ARG_WITH(ed25519_libsodium,
rpm-build 0fba15
	    AS_HELP_STRING([--with-ed25519-libsodium], [Use libsodium for ed25519 @<:@default=no@:>@]),
rpm-build 0fba15
	    [], [with_ed25519_libsodium=no])
rpm-build 0fba15
AS_IF([test x$with_ed25519_libsodium != xno], [
rpm-build 0fba15
    AC_DEFINE([HAVE_LIBSODIUM], 1, [Define if using libsodium])
rpm-build 0fba15
    PKG_CHECK_MODULES(OT_DEP_LIBSODIUM, libsodium >= $LIBSODIUM_DEPENDENCY, have_libsodium=yes,  have_libsodium=no)
rpm-build 0fba15
    AS_IF([ test x$have_libsodium = xno ], [
rpm-build 0fba15
       AC_MSG_ERROR([Need LIBSODIUM version $LIBSODIUM_DEPENDENCY or later])
rpm-build 0fba15
    ])
rpm-build 0fba15
    OSTREE_FEATURES="$OSTREE_FEATURES sign-ed25519"
rpm-build 0fba15
], with_ed25519_libsodium=no )
rpm-build 0fba15
AM_CONDITIONAL(USE_LIBSODIUM, test "x$have_libsodium" = xyes)
rpm-build 0fba15
rpm-build 0fba15
LIBARCHIVE_DEPENDENCY="libarchive >= 2.8.0"
rpm-build 0fba15
# What's in RHEL7.2.
rpm-build 0fba15
FUSE_DEPENDENCY="fuse >= 2.9.2"
rpm-build 0fba15
rpm-build 0fba15
AC_CHECK_HEADERS([linux/fsverity.h])
rpm-build 0fba15
AS_IF([test x$ac_cv_header_linux_fsverity_h = xyes ],
rpm-build 0fba15
  [OSTREE_FEATURES="$OSTREE_FEATURES ex-fsverity"])
rpm-build 0fba15
rpm-build 0fba15
# check for gtk-doc
rpm-build 0fba15
m4_ifdef([GTK_DOC_CHECK], [
rpm-build 0fba15
GTK_DOC_CHECK([1.15], [--flavour no-tmpl])
rpm-build 0fba15
],[
rpm-build 0fba15
enable_gtk_doc=no
rpm-build 0fba15
AM_CONDITIONAL([ENABLE_GTK_DOC], false)
rpm-build 0fba15
])
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_ENABLE(man,
rpm-build 0fba15
              [AS_HELP_STRING([--enable-man],
rpm-build 0fba15
                              [generate man pages [default=auto]])],,
rpm-build 0fba15
              enable_man=maybe)
rpm-build 0fba15
rpm-build 0fba15
AS_IF([test "$enable_man" != no], [
rpm-build 0fba15
  AC_PATH_PROG([XSLTPROC], [xsltproc])
rpm-build 0fba15
  AS_IF([test -z "$XSLTPROC"], [
rpm-build 0fba15
    AS_IF([test "$enable_man" = yes], [
rpm-build 0fba15
      AC_MSG_ERROR([xsltproc is required for --enable-man])
rpm-build 0fba15
    ])
rpm-build 0fba15
    enable_man=no
rpm-build 0fba15
  ],[
rpm-build 0fba15
    enable_man=yes
rpm-build 0fba15
  ])
rpm-build 0fba15
])
rpm-build 0fba15
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_ENABLE(rust,
rpm-build 0fba15
  [AS_HELP_STRING([--enable-rust],
rpm-build 0fba15
  [Compile Rust code instead of C [default=no]])],,
rpm-build 0fba15
   [enable_rust=no; rust_debug_release=no])
rpm-build 0fba15
rpm-build 0fba15
AS_IF([test "$enable_rust" = yes], [
rpm-build 0fba15
   AC_PATH_PROG([cargo], [cargo])
rpm-build 0fba15
   AS_IF([test -z "$cargo"], [AC_MSG_ERROR([cargo is required for --enable-rust])])
rpm-build 0fba15
   AC_PATH_PROG([rustc], [rustc])
rpm-build 0fba15
   AS_IF([test -z "$rustc"], [AC_MSG_ERROR([rustc is required for --enable-rust])])
rpm-build 0fba15
rpm-build 0fba15
   dnl These bits based on gnome:librsvg/configure.ac
rpm-build 0fba15
rpm-build 0fba15
   dnl By default, we build in public release mode.
rpm-build 0fba15
   AC_ARG_ENABLE(rust-debug,
rpm-build 0fba15
      AC_HELP_STRING([--enable-rust-debug],
rpm-build 0fba15
       [Build Rust code with debugging information [default=no]]),
rpm-build 0fba15
       [rust_debug_release=$enableval],
rpm-build 0fba15
       [rust_debug_release=release])
rpm-build 0fba15
rpm-build 0fba15
   AC_MSG_CHECKING(whether to build Rust code with debugging information)
rpm-build 0fba15
   if test "x$rust_debug_release" = "xyes" ; then
rpm-build 0fba15
      rust_debug_release=debug
rpm-build 0fba15
      AC_MSG_RESULT(yes)
rpm-build 0fba15
   else
rpm-build 0fba15
      AC_MSG_RESULT(no)
rpm-build 0fba15
   fi
rpm-build 0fba15
   RUST_TARGET_SUBDIR=${rust_debug_release}
rpm-build 0fba15
   AC_SUBST([RUST_TARGET_SUBDIR])
rpm-build 0fba15
])
rpm-build 0fba15
AM_CONDITIONAL(RUST_DEBUG, [test "x$rust_debug_release" = "xdebug"])
rpm-build 0fba15
AM_CONDITIONAL(ENABLE_RUST, [test "$enable_rust" != no])
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_WITH(libarchive,
rpm-build 0fba15
	    AS_HELP_STRING([--without-libarchive], [Do not use libarchive]),
rpm-build 0fba15
	    :, with_libarchive=maybe)
rpm-build 0fba15
rpm-build 0fba15
AS_IF([ test x$with_libarchive != xno ], [
rpm-build 0fba15
    AC_MSG_CHECKING([for $LIBARCHIVE_DEPENDENCY])
rpm-build 0fba15
    PKG_CHECK_EXISTS($LIBARCHIVE_DEPENDENCY, have_libarchive=yes, have_libarchive=no)
rpm-build 0fba15
    AC_MSG_RESULT([$have_libarchive])
rpm-build 0fba15
    AS_IF([ test x$have_libarchive = xno && test x$with_libarchive != xmaybe ], [
rpm-build 0fba15
       AC_MSG_ERROR([libarchive is enabled but could not be found])
rpm-build 0fba15
    ])
rpm-build 0fba15
    AS_IF([ test x$have_libarchive = xyes], [
rpm-build 0fba15
        AC_DEFINE([HAVE_LIBARCHIVE], 1, [Define if we have libarchive.pc])
rpm-build 0fba15
	PKG_CHECK_MODULES(OT_DEP_LIBARCHIVE, $LIBARCHIVE_DEPENDENCY)
rpm-build 0fba15
        save_LIBS=$LIBS
rpm-build 0fba15
        LIBS=$OT_DEP_LIBARCHIVE_LIBS
rpm-build 0fba15
        AC_CHECK_FUNCS(archive_read_support_filter_all)
rpm-build 0fba15
        LIBS=$save_LIBS
rpm-build 0fba15
	with_libarchive=yes
rpm-build 0fba15
    ], [
rpm-build 0fba15
	with_libarchive=no
rpm-build 0fba15
    ])
rpm-build 0fba15
], [ with_libarchive=no ])
rpm-build 0fba15
if test x$with_libarchive != xno; then OSTREE_FEATURES="$OSTREE_FEATURES libarchive"; fi
rpm-build 0fba15
AM_CONDITIONAL(USE_LIBARCHIVE, test $with_libarchive != no)
rpm-build 0fba15
rpm-build 0fba15
dnl This is what is in RHEL7 anyways
rpm-build 0fba15
SELINUX_DEPENDENCY="libselinux >= 2.1.13"
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_WITH(selinux,
rpm-build 0fba15
	    AS_HELP_STRING([--without-selinux], [Do not use SELinux]),
rpm-build 0fba15
	    :, with_selinux=maybe)
rpm-build 0fba15
rpm-build 0fba15
AS_IF([ test x$with_selinux != xno ], [
rpm-build 0fba15
    AC_MSG_CHECKING([for $SELINUX_DEPENDENCY])
rpm-build 0fba15
    PKG_CHECK_EXISTS($SELINUX_DEPENDENCY, have_selinux=yes, have_selinux=no)
rpm-build 0fba15
    AC_MSG_RESULT([$have_selinux])
rpm-build 0fba15
    AS_IF([ test x$have_selinux = xno && test x$with_selinux != xmaybe ], [
rpm-build 0fba15
       AC_MSG_ERROR([SELinux is enabled but could not be found])
rpm-build 0fba15
    ])
rpm-build 0fba15
    AS_IF([ test x$have_selinux = xyes], [
rpm-build 0fba15
        AC_DEFINE([HAVE_SELINUX], 1, [Define if we have libselinux.pc])
rpm-build 0fba15
	PKG_CHECK_MODULES(OT_DEP_SELINUX, $SELINUX_DEPENDENCY)
rpm-build 0fba15
	with_selinux=yes
rpm-build 0fba15
    ], [
rpm-build 0fba15
	with_selinux=no
rpm-build 0fba15
    ])
rpm-build 0fba15
], [ with_selinux=no ])
rpm-build 0fba15
if test x$with_selinux != xno; then OSTREE_FEATURES="$OSTREE_FEATURES selinux"; fi
rpm-build 0fba15
AM_CONDITIONAL(USE_SELINUX, test $with_selinux != no)
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_WITH(smack,
rpm-build 0fba15
AS_HELP_STRING([--with-smack], [Enable smack]),
rpm-build 0fba15
:, with_smack=no)
rpm-build 0fba15
AS_IF([ test x$with_smack = xyes], [
rpm-build 0fba15
  AC_DEFINE([WITH_SMACK], 1, [Define if we have smack.pc])
rpm-build 0fba15
])
rpm-build 0fba15
AM_CONDITIONAL(USE_SMACK, test $with_smack != no)
rpm-build 0fba15
rpm-build 0fba15
dnl crypto
rpm-build 0fba15
AC_ARG_WITH(crypto,
rpm-build 0fba15
AS_HELP_STRING([--with-crypto], [Choose library for checksums, one of glib, openssl, gnutls (default: glib)]),
rpm-build 0fba15
:, with_crypto=glib)
rpm-build 0fba15
rpm-build 0fba15
AS_IF([test $with_crypto = glib],
rpm-build 0fba15
      [],
rpm-build 0fba15
      [test $with_crypto = openssl],
rpm-build 0fba15
      [with_openssl=yes],
rpm-build 0fba15
      [test $with_crypto = gnutls],
rpm-build 0fba15
      [],
rpm-build 0fba15
      [AC_MSG_ERROR([Invalid --with-crypto $with_crypto])]
rpm-build 0fba15
      )
rpm-build 0fba15
rpm-build 0fba15
dnl begin openssl (really just libcrypto right now)
rpm-build 0fba15
dnl Note this option is now deprecated in favor of --with-crypto=openssl
rpm-build 0fba15
OPENSSL_DEPENDENCY="libcrypto >= 1.0.1"
rpm-build 0fba15
AC_ARG_WITH(openssl,
rpm-build 0fba15
AS_HELP_STRING([--with-openssl], [Enable use of OpenSSL libcrypto (checksums)]),with_openssl=$withval,with_openssl=no)
rpm-build 0fba15
AS_IF([ test x$with_openssl != xno ], [
rpm-build 0fba15
      PKG_CHECK_MODULES(OT_DEP_CRYPTO, $OPENSSL_DEPENDENCY)
rpm-build 0fba15
      AC_DEFINE([HAVE_OPENSSL], 1, [Define if we have openssl])
rpm-build 0fba15
      with_crypto=openssl
rpm-build 0fba15
      with_openssl=yes
rpm-build 0fba15
], [
rpm-build 0fba15
      with_openssl=no
rpm-build 0fba15
])
rpm-build 0fba15
if test x$with_openssl != xno; then OSTREE_FEATURES="$OSTREE_FEATURES openssl"; fi
rpm-build 0fba15
AM_CONDITIONAL(USE_OPENSSL, test $with_openssl != no)
rpm-build 0fba15
dnl end openssl
rpm-build 0fba15
rpm-build 0fba15
dnl begin gnutls; in contrast to openssl this one only
rpm-build 0fba15
dnl supports --with-crypto=gnutls
rpm-build 0fba15
GNUTLS_DEPENDENCY="gnutls >= 3.5.0"
rpm-build 0fba15
AS_IF([ test $with_crypto = gnutls ], [
rpm-build 0fba15
      PKG_CHECK_MODULES(OT_DEP_CRYPTO, $GNUTLS_DEPENDENCY)
rpm-build 0fba15
      AC_DEFINE([HAVE_GNUTLS], 1, [Define if we have gnutls])
rpm-build 0fba15
      OSTREE_FEATURES="$OSTREE_FEATURES gnutls"
rpm-build 0fba15
])
rpm-build 0fba15
AM_CONDITIONAL(USE_GNUTLS, test $with_crypto = gnutls)
rpm-build 0fba15
dnl end gnutls
rpm-build 0fba15
rpm-build 0fba15
dnl Avahi dependency for finding repos
rpm-build 0fba15
AVAHI_DEPENDENCY="avahi-client >= 0.6.31 avahi-glib >= 0.6.31"
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_WITH(avahi,
rpm-build 0fba15
            AS_HELP_STRING([--without-avahi], [Do not use Avahi]),
rpm-build 0fba15
            :, with_avahi=maybe)
rpm-build 0fba15
rpm-build 0fba15
AS_IF([ test x$with_avahi != xno ], [
rpm-build 0fba15
    AC_MSG_CHECKING([for $AVAHI_DEPENDENCY])
rpm-build 0fba15
    PKG_CHECK_EXISTS($AVAHI_DEPENDENCY, have_avahi=yes, have_avahi=no)
rpm-build 0fba15
    AC_MSG_RESULT([$have_avahi])
rpm-build 0fba15
    AS_IF([ test x$have_avahi = xno && test x$with_avahi != xmaybe ], [
rpm-build 0fba15
       AC_MSG_ERROR([Avahi is enabled but could not be found])
rpm-build 0fba15
    ])
rpm-build 0fba15
    AS_IF([ test x$have_avahi = xyes], [
rpm-build 0fba15
        AC_DEFINE([HAVE_AVAHI], 1, [Define if we have avahi-client.pc and avahi-glib.pc])
rpm-build 0fba15
        PKG_CHECK_MODULES(OT_DEP_AVAHI, $AVAHI_DEPENDENCY)
rpm-build 0fba15
        with_avahi=yes
rpm-build 0fba15
    ], [
rpm-build 0fba15
        with_avahi=no
rpm-build 0fba15
    ])
rpm-build 0fba15
], [ with_avahi=no ])
rpm-build 0fba15
if test x$with_avahi != xno; then OSTREE_FEATURES="$OSTREE_FEATURES avahi"; fi
rpm-build 0fba15
AM_CONDITIONAL(USE_AVAHI, test $with_avahi != no)
rpm-build 0fba15
rpm-build 0fba15
dnl This is what is in RHEL7.2 right now, picking it arbitrarily
rpm-build 0fba15
LIBMOUNT_DEPENDENCY="mount >= 2.23.0"
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_WITH(libmount,
rpm-build 0fba15
	    AS_HELP_STRING([--without-libmount], [Do not use libmount]),
rpm-build 0fba15
	    :, with_libmount=maybe)
rpm-build 0fba15
rpm-build 0fba15
AS_IF([ test x$with_libmount != xno ], [
rpm-build 0fba15
    AC_MSG_CHECKING([for $LIBMOUNT_DEPENDENCY])
rpm-build 0fba15
    PKG_CHECK_EXISTS($LIBMOUNT_DEPENDENCY, have_libmount=yes, have_libmount=no)
rpm-build 0fba15
    AC_MSG_RESULT([$have_libmount])
rpm-build 0fba15
    AS_IF([ test x$have_libmount = xno && test x$with_libmount != xmaybe ], [
rpm-build 0fba15
       AC_MSG_ERROR([libmount is enabled but could not be found])
rpm-build 0fba15
    ])
rpm-build 0fba15
    AS_IF([ test x$have_libmount = xyes], [
rpm-build 0fba15
        AC_DEFINE([HAVE_LIBMOUNT], 1, [Define if we have libmount.pc])
rpm-build 0fba15
	PKG_CHECK_MODULES(OT_DEP_LIBMOUNT, $LIBMOUNT_DEPENDENCY)
rpm-build 0fba15
	with_libmount=yes
rpm-build 0fba15
  save_LIBS=$LIBS
rpm-build 0fba15
  LIBS=$OT_DEP_LIBMOUNT_LIBS
rpm-build 0fba15
  AC_CHECK_FUNCS(mnt_unref_cache)
rpm-build 0fba15
  LIBS=$save_LIBS
rpm-build 0fba15
    ], [
rpm-build 0fba15
	with_libmount=no
rpm-build 0fba15
    ])
rpm-build 0fba15
], [ with_libmount=no ])
rpm-build 0fba15
if test x$with_libmount != xno; then OSTREE_FEATURES="$OSTREE_FEATURES libmount"; fi
rpm-build 0fba15
AM_CONDITIONAL(USE_LIBMOUNT, test $with_libmount != no)
rpm-build 0fba15
rpm-build 0fba15
# Enabled by default because I think people should use it.
rpm-build 0fba15
AC_ARG_ENABLE(rofiles-fuse,
rpm-build 0fba15
              [AS_HELP_STRING([--enable-rofiles-fuse],
rpm-build 0fba15
                              [generate rofiles-fuse helper [default=yes]])],,
rpm-build 0fba15
              enable_rofiles_fuse=yes)
rpm-build 0fba15
AS_IF([ test x$enable_rofiles_fuse != xno ], [
rpm-build 0fba15
    PKG_CHECK_MODULES(BUILDOPT_FUSE, $FUSE_DEPENDENCY)
rpm-build 0fba15
], [enable_rofiles_fuse=no])
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_FUSE, test x$enable_rofiles_fuse = xyes)
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_WITH(dracut,
rpm-build 0fba15
            AS_HELP_STRING([--with-dracut],
rpm-build 0fba15
                           [Install dracut module (default: no)]),,
rpm-build 0fba15
              [with_dracut=no])
rpm-build 0fba15
case x$with_dracut in
rpm-build 0fba15
    xno) ;;
rpm-build 0fba15
    xyes) ;;
rpm-build 0fba15
    xyesbutnoconf) ;;
rpm-build 0fba15
    *) AC_MSG_ERROR([Unknown --with-dracut value $with_dracut])
rpm-build 0fba15
esac    
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_DRACUT, test x$with_dracut = xyes || test x$with_dracut = xyesbutnoconf)
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_DRACUT_CONF, test x$with_dracut = xyes)
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_WITH(mkinitcpio,
rpm-build 0fba15
            AS_HELP_STRING([--with-mkinitcpio],
rpm-build 0fba15
                           [Install mkinitcpio module (default: no)]),,
rpm-build 0fba15
              [with_mkinitcpio=no])
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_MKINITCPIO, test x$with_mkinitcpio = xyes)
rpm-build 0fba15
rpm-build 0fba15
dnl We have separate checks for libsystemd and the unit dir for historical reasons
rpm-build 0fba15
AC_ARG_WITH(libsystemd,
rpm-build 0fba15
            AS_HELP_STRING([--without-libsystemd], [Do not use libsystemd]),
rpm-build 0fba15
            :, with_libsystemd=maybe)
rpm-build 0fba15
rpm-build 0fba15
AS_IF([ test x$with_libsystemd != xno ], [
rpm-build 0fba15
    AC_MSG_CHECKING([for libsystemd])
rpm-build 0fba15
    PKG_CHECK_EXISTS(libsystemd, have_libsystemd=yes, have_libsystemd=no)
rpm-build 0fba15
    AC_MSG_RESULT([$have_libsystemd])
rpm-build 0fba15
    AS_IF([ test x$have_libsystemd = xno && test x$with_libsystemd != xmaybe ], [
rpm-build 0fba15
       AC_MSG_ERROR([libsystemd is enabled but could not be found])
rpm-build 0fba15
    ])
rpm-build 0fba15
    AS_IF([ test x$have_libsystemd = xyes], [
rpm-build 0fba15
        AC_DEFINE([HAVE_LIBSYSTEMD], 1, [Define if we have libsystemd.pc])
rpm-build 0fba15
        PKG_CHECK_MODULES([LIBSYSTEMD], [libsystemd])
rpm-build 0fba15
        with_libsystemd=yes
rpm-build 0fba15
    ], [
rpm-build 0fba15
        with_libsystemd=no
rpm-build 0fba15
    ])
rpm-build 0fba15
], [ with_libsystemd=no ])
rpm-build 0fba15
rpm-build 0fba15
AS_IF([test "x$with_libsystemd" = "xyes"], [
rpm-build 0fba15
  AC_ARG_WITH([systemdsystemunitdir],
rpm-build 0fba15
              AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
rpm-build 0fba15
              [],
rpm-build 0fba15
              [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
rpm-build 0fba15
  AS_IF([test "x$with_systemdsystemunitdir" != "xno"], [
rpm-build 0fba15
    AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
rpm-build 0fba15
  ])
rpm-build 0fba15
  AC_ARG_WITH([systemdsystemgeneratordir],
rpm-build 0fba15
              AS_HELP_STRING([--with-systemdsystemgeneratordir=DIR], [Directory for systemd generators]),
rpm-build 0fba15
              [],
rpm-build 0fba15
              [with_systemdsystemgeneratordir=$($PKG_CONFIG --variable=systemdsystemgeneratordir systemd)])
rpm-build 0fba15
  AS_IF([test "x$with_systemdsystemgeneratordir" != "xno"], [
rpm-build 0fba15
    AC_SUBST([systemdsystemgeneratordir], [$with_systemdsystemgeneratordir])
rpm-build 0fba15
  ])
rpm-build 0fba15
])
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_SYSTEMD, test x$with_libsystemd = xyes)
rpm-build 0fba15
dnl If we have both, we use the "new /var" model with ostree-system-generator
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_SYSTEMD_AND_LIBMOUNT,[test x$with_libsystemd = xyes && test x$with_libmount = xyes])
rpm-build 0fba15
AM_COND_IF(BUILDOPT_SYSTEMD_AND_LIBMOUNT,
rpm-build 0fba15
  AC_DEFINE([BUILDOPT_LIBSYSTEMD_AND_LIBMOUNT], 1, [Define if systemd and libmount]))
rpm-build 0fba15
if test x$with_libsystemd = xyes; then OSTREE_FEATURES="$OSTREE_FEATURES systemd"; fi
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_WITH(builtin-grub2-mkconfig,
rpm-build 0fba15
            AS_HELP_STRING([--with-builtin-grub2-mkconfig],
rpm-build 0fba15
                           [Use a builtin minimal grub2-mkconfig to generate a GRUB2 configuration file (default: no)]),,
rpm-build 0fba15
              [with_builtin_grub2_mkconfig=no])
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_BUILTIN_GRUB2_MKCONFIG, test x$with_builtin_grub2_mkconfig = xyes)
rpm-build 0fba15
AM_COND_IF(BUILDOPT_BUILTIN_GRUB2_MKCONFIG,
rpm-build 0fba15
           AC_DEFINE([USE_BUILTIN_GRUB2_MKCONFIG], 1, [Define if using internal ostree-grub-generator]))
rpm-build 0fba15
AC_ARG_WITH(grub2-mkconfig-path,
rpm-build 0fba15
            AS_HELP_STRING([--with-grub2-mkconfig-path],
rpm-build 0fba15
                           [Path to grub2-mkconfig]))
rpm-build 0fba15
AS_IF([test x$with_grub2_mkconfig_path = x], [
rpm-build 0fba15
  dnl Otherwise, look for the path to the system generator.  On some
rpm-build 0fba15
  dnl distributions GRUB2 *-mkconfig executable has 'grub2' prefix and
rpm-build 0fba15
  dnl on some 'grub'.  We default to grub2-mkconfig.
rpm-build 0fba15
  AC_CHECK_PROGS(GRUB2_MKCONFIG, [grub2-mkconfig grub-mkconfig], [grub2-mkconfig])
rpm-build 0fba15
],[GRUB2_MKCONFIG=$with_grub2_mkconfig_path])
rpm-build 0fba15
AC_DEFINE_UNQUOTED([GRUB2_MKCONFIG_PATH], ["$GRUB2_MKCONFIG"], [The system grub2-mkconfig executable name])
rpm-build 0fba15
rpm-build 0fba15
AC_ARG_WITH(static-compiler,
rpm-build 0fba15
            AS_HELP_STRING([--with-static-compiler],
rpm-build 0fba15
                           [Use the given compiler to build ostree-prepare-root statically linked (default: no)]),,
rpm-build 0fba15
              [with_static_compiler=no])
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_USE_STATIC_COMPILER, test "x$with_static_compiler" != xno)
rpm-build 0fba15
AC_SUBST(STATIC_COMPILER, $with_static_compiler)
rpm-build 0fba15
rpm-build 0fba15
dnl for tests (but we can't use asan with gjs or any introspection,
rpm-build 0fba15
dnl see https://github.com/google/sanitizers/wiki/AddressSanitizerAsDso for more info)
rpm-build 0fba15
AS_IF([test "x$found_introspection" = xyes && test x$using_asan != xyes], [
rpm-build 0fba15
  AC_PATH_PROG(GJS, [gjs])
rpm-build 0fba15
  if test -n "$GJS"; then
rpm-build 0fba15
    have_gjs=yes
rpm-build 0fba15
  else
rpm-build 0fba15
    have_gjs=no
rpm-build 0fba15
  fi
rpm-build 0fba15
], [have_gjs=no])
rpm-build 0fba15
AM_CONDITIONAL(BUILDOPT_GJS, test x$have_gjs = xyes)
rpm-build 0fba15
rpm-build 0fba15
# Do we enable building experimental (non-stable) API?
rpm-build 0fba15
# The OSTREE_ENABLE_EXPERIMENTAL_API #define is used internally and in public
rpm-build 0fba15
# headers, so any consumer of libostree who wants to use experimental API must
rpm-build 0fba15
#    #define OSTREE_ENABLE_EXPERIMENTAL_API 1
rpm-build 0fba15
# before including libostree headers. This means the name in the AC_DEFINE below
rpm-build 0fba15
# is public API.
rpm-build 0fba15
AC_ARG_ENABLE([experimental-api],
rpm-build 0fba15
  [AS_HELP_STRING([--enable-experimental-api],
rpm-build 0fba15
                  [Enable unstable experimental API in libostree [default=no]])],,
rpm-build 0fba15
  [enable_experimental_api=no])
rpm-build 0fba15
AS_IF([test x$enable_experimental_api = xyes],
rpm-build 0fba15
  [AC_DEFINE([OSTREE_ENABLE_EXPERIMENTAL_API],[1],[Define if experimental API should be enabled])
rpm-build 0fba15
   OSTREE_FEATURES="$OSTREE_FEATURES experimental"]
rpm-build 0fba15
)
rpm-build 0fba15
AM_CONDITIONAL([ENABLE_EXPERIMENTAL_API],[test x$enable_experimental_api = xyes])
rpm-build 0fba15
AM_CONDITIONAL([BUILDOPT_IS_DEVEL_BUILD],[test x$is_release_build != xyes])
rpm-build 0fba15
AM_COND_IF([BUILDOPT_IS_DEVEL_BUILD],
rpm-build 0fba15
            AC_DEFINE([BUILDOPT_IS_DEVEL_BUILD], [1], [Define if doing a development build])
rpm-build 0fba15
            release_build_type=devel,
rpm-build 0fba15
            release_build_type=release)
rpm-build 0fba15
OSTREE_FEATURES="$OSTREE_FEATURES $release_build_type"
rpm-build 0fba15
rpm-build 0fba15
# P2P API is public in OSTree >= 2018.6
rpm-build 0fba15
OSTREE_FEATURES="$OSTREE_FEATURES p2p"
rpm-build 0fba15
rpm-build 0fba15
# Strip leading whitespace
rpm-build 0fba15
OSTREE_FEATURES=$(echo ${OSTREE_FEATURES})
rpm-build 0fba15
rpm-build 0fba15
AC_CONFIG_FILES([
rpm-build 0fba15
Makefile
rpm-build 0fba15
apidoc/Makefile
rpm-build 0fba15
src/libostree/ostree-1.pc
rpm-build 0fba15
src/libostree/ostree-version.h
rpm-build 0fba15
])
rpm-build 0fba15
AC_OUTPUT
rpm-build 0fba15
rpm-build 0fba15
echo "
rpm-build 0fba15
    libostree $VERSION ($release_build_type)
rpm-build 0fba15
    features: $OSTREE_FEATURES
rpm-build 0fba15
    ===============
rpm-build 0fba15
rpm-build 0fba15
rpm-build 0fba15
    introspection:                                $found_introspection
rpm-build 0fba15
    Rust (internal oxidation):                    $rust_debug_release
rpm-build 0fba15
    rofiles-fuse:                                 $enable_rofiles_fuse
rpm-build 0fba15
    HTTP backend:                                 $fetcher_backend
rpm-build 0fba15
    \"ostree trivial-httpd\":                       $enable_trivial_httpd_cmdline
rpm-build 0fba15
    SELinux:                                      $with_selinux
rpm-build 0fba15
    fs-verity:                                    $ac_cv_header_linux_fsverity_h
rpm-build 0fba15
    cryptographic checksums:                      $with_crypto
rpm-build 0fba15
    systemd:                                      $with_libsystemd
rpm-build 0fba15
    libmount:                                     $with_libmount
rpm-build 0fba15
    libsodium (ed25519 signatures):               $with_ed25519_libsodium
rpm-build 0fba15
    libarchive (parse tar files directly):        $with_libarchive
rpm-build 0fba15
    static deltas:                                yes (always enabled now)
rpm-build 0fba15
    O_TMPFILE:                                    $enable_otmpfile
rpm-build 0fba15
    wrpseudo-compat:                              $enable_wrpseudo_compat
rpm-build 0fba15
    man pages (xsltproc):                         $enable_man
rpm-build 0fba15
    api docs (gtk-doc):                           $enable_gtk_doc
rpm-build 0fba15
    installed tests:                              $enable_installed_tests
rpm-build 0fba15
    gjs-based tests:                              $have_gjs
rpm-build 0fba15
    dracut:                                       $with_dracut
rpm-build 0fba15
    mkinitcpio:                                   $with_mkinitcpio
rpm-build 0fba15
    Static compiler for ostree-prepare-root:      $with_static_compiler
rpm-build 0fba15
    Experimental API                              $enable_experimental_api"
rpm-build 0fba15
AS_IF([test x$with_builtin_grub2_mkconfig = xyes], [
rpm-build 0fba15
    echo "    builtin grub2-mkconfig (instead of system):   $with_builtin_grub2_mkconfig"
rpm-build 0fba15
], [
rpm-build 0fba15
    echo "    grub2-mkconfig path:                          $GRUB2_MKCONFIG"
rpm-build 0fba15
])
rpm-build 0fba15
echo ""