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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
m4_include([version.m4])
AC_INIT(authselect, VERSION_NUMBER)
AC_CONFIG_SRCDIR(src/cli/main.c)
AC_CONFIG_AUX_DIR(build)
AC_CONFIG_HEADERS(config.h)
m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
[AC_USE_SYSTEM_EXTENSIONS],
[AC_GNU_SOURCE])
AM_INIT_AUTOMAKE([foreign subdir-objects])
LT_INIT
AC_PROG_CC
AC_PROG_MKDIR_P
AC_PROG_LN_S
AC_PROG_SED
AC_PATH_PROG(FIND, find, /usr/bin/find)
AC_PATH_PROG(SHA256SUM, sha256sum, /usr/bin/sha256sum)
AC_LANG([C])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION(0.19)
AC_SUBST([RELEASE_NUMBER], m4_esyscmd(./scripts/release-version.sh RELEASE_VERSION))
AC_CONFIG_MACRO_DIRS([m4])
m4_include(src/build_macros.m4)
m4_include(src/conf_macros.m4)
m4_include(external/a2x.m4)
m4_include(external/po4a.m4)
dnl Check if functions are present
AC_CHECK_FUNCS_ONCE([reallocarray])
dnl Required libraries
REQUIRE_POPT
REQUIRE_CMOCKA
REQUIRE_SELINUX
dnl Optional build dependencies - man pages generation
CHECK_ASCIIDOC_TOOLS
CHECK_PO4A
AM_CONDITIONAL([HAVE_MANPAGES], [test ! -z "$A2X" -a ! -z "$PO4A_TRANSLATE"])
AC_CONFIG_FILES([Makefile
po/Makefile.in
profiles/Makefile
systemd/Makefile
rpm/authselect.spec
src/common/Makefile
src/cli/Makefile
src/lib/Makefile
src/lib/authselect.pc
src/man/Makefile
src/tests/Makefile])
AC_CONFIG_FILES([scripts/manpages-build.sh],
[chmod +x scripts/manpages-build.sh])
AC_CONFIG_FILES([scripts/manpages-install.sh],
[chmod +x scripts/manpages-install.sh])
AC_CONFIG_FILES([scripts/manpages-uninstall.sh],
[chmod +x scripts/manpages-uninstall.sh])
AC_OUTPUT
|