2022-01-15 14:18:18 +01:00
AC_INIT([libpsl],[m4_normalize(m4_include(version.txt))],[tim.ruehsen@gmx.de],[libpsl],[https://github.com/rockdaboot/libpsl])
2014-03-20 17:17:24 +01:00
AC_PREREQ([2.59])
2018-04-25 16:50:42 +02:00
AC_CONFIG_AUX_DIR([build-aux])
2019-04-16 14:42:34 +02:00
AM_INIT_AUTOMAKE([1.10 no-define foreign dist-lzip])
2014-03-20 17:17:24 +01:00
# Generate two configuration headers; one for building the library itself with
# an autogenerated template, and a second one that will be installed alongside
# the library.
AC_CONFIG_HEADERS([config.h])
2014-08-22 17:46:57 +02:00
AC_PROG_CC
2014-05-26 11:13:52 +02:00
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
#LT_INIT([disable-static])
2018-04-25 15:56:00 +02:00
LT_INIT([win32-dll])
2014-03-20 22:43:04 +01:00
AC_CONFIG_MACRO_DIR([m4])
2014-03-20 17:17:24 +01:00
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
2015-01-26 11:05:32 +01:00
dnl Check that compiler understands inline
AC_C_INLINE
2018-04-19 10:06:47 +02:00
dnl Check for visibility support
gl_VISIBILITY
2015-09-23 12:38:34 +02:00
#
# Generate version defines for include file
#
2015-11-19 12:11:27 +01:00
AC_SUBST([LIBPSL_VERSION_MAJOR], [`echo $VERSION|cut -d'.' -f1`])
AC_SUBST([LIBPSL_VERSION_MINOR], [`echo $VERSION|cut -d'.' -f2`])
AC_SUBST([LIBPSL_VERSION_PATCH], [`echo $VERSION|cut -d'.' -f3`])
2015-09-23 12:38:34 +02:00
AC_SUBST([LIBPSL_VERSION_NUMBER], [`printf '0x%02x%02x%02x' $LIBPSL_VERSION_MAJOR $LIBPSL_VERSION_MINOR $LIBPSL_VERSION_PATCH`])
AC_CONFIG_FILES([include/libpsl.h])
2014-03-20 22:43:04 +01:00
#
# Gettext
#
AM_GNU_GETTEXT([external],[need-ngettext])
2022-01-15 14:26:06 +01:00
AM_GNU_GETTEXT_VERSION([0.19.3])
2022-01-16 19:14:33 +01:00
AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.3])
2014-03-20 22:43:04 +01:00
2014-04-02 10:27:13 +02:00
#
# check for gtk-doc
#
m4_ifdef([GTK_DOC_CHECK], [
GTK_DOC_CHECK([1.15],[--flavour no-tmpl])
],[
AM_CONDITIONAL([ENABLE_GTK_DOC], false)
])
2015-01-21 11:16:02 +01:00
# needed for some older versions of gtk-doc
m4_ifdef([GTK_DOC_USE_LIBTOOL], [], [
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], false)
])
2014-04-02 10:27:13 +02:00
2015-01-26 13:16:59 +01:00
if test x"$have_gtk_doc" = xyes -a x"$enable_gtk_doc" = xyes; then
AC_SUBST([LIBPSL_DOCS], [docs/libpsl])
fi
2014-04-02 10:27:13 +02:00
#
# enable creation of man pages
#
2018-03-06 09:40:11 +01:00
AC_ARG_ENABLE([man],
2021-01-16 18:15:55 +01:00
[AS_HELP_STRING([--enable-man], [generate man pages [default=auto]])],
2018-03-06 09:40:11 +01:00
[
2018-04-26 19:20:46 +02:00
if test "$enable_man" = yes; then
2018-03-06 09:40:11 +01:00
AC_PATH_PROG([XSLTPROC], [xsltproc])
AS_IF([test -z "$XSLTPROC"], [
AC_MSG_ERROR([xsltproc is required for --enable-man])
enable_man="no (xsltproc not found)"
])
fi
2018-04-26 19:20:46 +02:00
], [ enable_man=no ])
2018-03-06 09:40:11 +01:00
AM_CONDITIONAL(ENABLE_MAN, test x$enable_man = xyes)
2014-04-02 10:27:13 +02:00
2016-07-14 11:52:56 +02:00
# src/psl-make-dafsa needs python 2.7+
2016-01-04 20:41:24 +01:00
AM_PATH_PYTHON([2.7])
2015-01-21 14:22:57 +01:00
PKG_PROG_PKG_CONFIG
2014-04-02 10:27:13 +02:00
2022-01-16 12:59:23 +01:00
AC_ARG_ENABLE([fuzzing],
[AS_HELP_STRING([--enable-fuzzing], [Turn on fuzzing build (for developers)])],
[enable_fuzzing=yes;
AC_SUBST([LIB_FUZZING_ENGINE])
AC_DEFINE([FUZZING], 1, [Define to 1 if this is a fuzzing build])
], [enable_fuzzing=no; LIB_FUZZING_ENGINE=""])
AM_CONDITIONAL([FUZZING], [test "$enable_fuzzing" = "yes"])
2017-06-16 16:51:33 +02:00
AC_ARG_ENABLE([cfi],
2017-06-20 16:22:53 +02:00
[AS_HELP_STRING([--enable-cfi], [Turn on clang's Control Flow Integrity (CFI)])],
2017-06-16 16:51:33 +02:00
[
2018-04-26 19:20:46 +02:00
if test "$enable_cfi" = yes; then
2017-06-16 16:51:33 +02:00
CFLAGS=$CFLAGS" -B/usr/bin/gold -fsanitize=cfi -flto -fvisibility=default -fno-sanitize-trap=all"
AC_LINK_IFELSE([
AC_LANG_PROGRAM([], [])
], [], [
AC_MSG_ERROR([clang 3.7+ and the 'gold' linker are required for --enable-cfi])
])
fi
2018-04-26 19:20:46 +02:00
], [ enable_cfi=no ])
2017-06-20 16:22:53 +02:00
AC_ARG_ENABLE([ubsan],
[AS_HELP_STRING([--enable-ubsan], [Turn on Undefined Behavior Sanitizer (UBSan)])],
[
2018-04-26 19:20:46 +02:00
if test "$enable_ubsan" = yes; then
2022-01-16 12:59:23 +01:00
# Set basic UBSAN compiler flags. Add your own to CFLAGS.
2017-06-20 16:22:53 +02:00
CFLAGS=$CFLAGS" -fsanitize=undefined -fno-sanitize-recover=undefined"
fi
2018-04-26 19:20:46 +02:00
], [ enable_ubsan=no ])
2017-06-20 16:22:53 +02:00
AC_ARG_ENABLE([asan],
[AS_HELP_STRING([--enable-asan], [Turn on Address Sanitizer (ASan)])],
[
2018-04-26 19:20:46 +02:00
if test "$enable_asan" = yes; then
2022-01-16 12:59:23 +01:00
# Set basic ASAN compiler flags. Add your own to CFLAGS.
2017-06-20 16:22:53 +02:00
CFLAGS=$CFLAGS" -fsanitize=address -fno-omit-frame-pointer"
2017-07-27 11:29:02 +02:00
AX_CHECK_COMPILE_FLAG([-fsanitize-address-use-after-scope], [CFLAGS="$CFLAGS -fsanitize-address-use-after-scope"])
2017-06-20 16:22:53 +02:00
fi
2018-04-26 19:20:46 +02:00
], [ enable_asan=no ])
2017-06-16 16:51:33 +02:00
2018-12-28 19:44:39 +01:00
# Define these substitutions here to keep all version information in one place.
2014-03-20 17:17:24 +01:00
# For information on how to properly maintain the library version information,
# refer to the libtool manual, section "Updating library version information":
2016-07-05 17:49:14 +02:00
# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
2014-04-25 12:36:59 +02:00
#
# 1. Start with version information of ‘ 0:0:0’ for each libtool library.
# 2. Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster.
# 3. If the library source code has changed at all since the last update, then increment revision (‘ c:r:a’ becomes ‘ c:r+1:a’ ).
# 4. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
# 5. If any interfaces have been added since the last public release, then increment age.
2014-06-23 12:12:54 +02:00
# 6. If any existing interfaces have been removed or changed since the last public release, then set age to 0.
2022-01-06 00:08:32 +01:00
AC_SUBST([LIBPSL_SO_VERSION], m4_normalize(m4_include([libtool_version_info.txt])))
2014-05-31 18:56:07 +02:00
AC_SUBST([LIBPSL_VERSION], $VERSION)
2014-03-20 17:17:24 +01:00
2019-08-28 13:51:14 +02:00
# Check for enable/disable runtime PSL data
2014-06-29 22:56:33 +02:00
AC_ARG_ENABLE(runtime,
2014-06-15 22:31:18 +02:00
[
2014-07-01 13:05:32 +02:00
--enable-runtime[[=IDNA library]]
2014-06-29 22:56:33 +02:00
Specify the IDNA library used for libpsl run-time conversions:
2017-07-09 22:09:09 +02:00
libidn2 [[default]]: IDNA2008 library (also needs libunistring)
libicu: IDNA2008 UTS#46 library
libidn: IDNA2003 library (also needs libunistring)
--disable-runtime Do not link runtime IDNA functionality
2014-06-29 22:56:33 +02:00
], [
2017-07-09 22:09:09 +02:00
if test "$enableval" = "libidn2" -o "$enableval" = "yes"; then
2014-06-29 22:56:33 +02:00
enable_runtime=libidn2
AC_DEFINE([WITH_LIBIDN2], [1], [generate PSL data using libidn2])
2017-07-09 22:09:09 +02:00
elif test "$enableval" = "libicu"; then
enable_runtime=libicu
AC_DEFINE([WITH_LIBICU], [1], [generate PSL data using libicu])
2014-06-29 22:56:33 +02:00
elif test "$enableval" = "libidn"; then
enable_runtime=libidn
AC_DEFINE([WITH_LIBIDN], [1], [generate PSL data using libidn])
2015-12-25 19:40:24 +01:00
elif test "$enableval" = "no"; then
enable_runtime=no
2014-06-29 22:56:33 +02:00
else
AC_MSG_ERROR([Unknown value $enableval for --enable-runtime])
fi
], [
# this is the default if neither --enable-runtime nor --disable-runtime were specified
2018-04-20 15:31:37 +02:00
enable_runtime=auto
2014-06-15 22:31:18 +02:00
])
2014-03-30 17:02:56 +02:00
# Check for enable/disable builtin PSL data
AC_ARG_ENABLE(builtin,
[
2014-07-01 13:05:32 +02:00
--enable-builtin[[=IDNA library]]
2014-06-27 17:13:30 +02:00
Specify the IDNA library used for built-in data generation:
2017-07-09 22:09:09 +02:00
libidn2 [[default]]: IDNA2008 library (also needs libunistring)
libicu: IDNA2008 UTS#46 library
libidn: IDNA2003 library (also needs libunistring)
--disable-builtin Do not generate built-in PSL data
2014-03-30 17:02:56 +02:00
], [
2017-07-09 22:09:09 +02:00
if test "$enableval" = "libidn2" -o "$enableval" = "yes"; then
2014-06-27 17:13:30 +02:00
enable_builtin=libidn2
AC_DEFINE([BUILTIN_GENERATOR_LIBIDN2], [1], [generate PSL data using libidn2])
2017-07-09 22:09:09 +02:00
elif test "$enableval" = "libicu"; then
enable_builtin=libicu
AC_DEFINE([BUILTIN_GENERATOR_LIBICU], [1], [generate PSL data using libicu])
2014-06-29 22:56:33 +02:00
elif test "$enableval" = "libidn"; then
enable_builtin=libidn
AC_DEFINE([BUILTIN_GENERATOR_LIBIDN], [1], [generate PSL data using libidn])
2014-06-27 17:13:30 +02:00
elif test "$enableval" = "no"; then
enable_builtin=no
else
AC_MSG_ERROR(Unknown value $enableval)
fi
], [
2014-06-29 22:56:33 +02:00
# this is the default if neither --enable-builtin nor --disable-builtin were specified
2018-04-20 15:31:37 +02:00
enable_builtin=auto
2014-03-30 17:02:56 +02:00
])
2014-06-27 17:13:30 +02:00
2018-04-20 15:31:37 +02:00
if test "$enable_runtime" = "libidn2" -o "$enable_builtin" = "libidn2" -o "$enable_runtime" = "auto" -o "$enable_builtin" = "auto"; then
# Check for libidn2
PKG_CHECK_MODULES([LIBIDN2], [libidn2], [
HAVE_LIBIDN2=yes
2018-04-30 11:52:34 +02:00
if test "$enable_runtime" = "libidn2" -o "$enable_runtime" = "auto"; then
LIBS="$LIBIDN2_LIBS $LIBS"
2018-04-20 15:31:37 +02:00
CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
fi
], [
AC_SEARCH_LIBS(idn2_lookup_u8, idn2, HAVE_LIBIDN2=yes,
[
if test "$enable_runtime" = "libidn2" -o "$enable_builtin" = "libidn2"; then
AC_MSG_ERROR(You requested libidn2 but it is not installed.)
fi
], -lunistring)
])
if test "x$HAVE_LIBIDN2" = "xyes"; then
if test "$enable_runtime" = "auto"; then
enable_runtime=libidn2
2018-04-21 11:26:20 +02:00
AC_DEFINE([WITH_LIBIDN2], [1], [generate PSL data using libidn2])
2018-04-20 15:31:37 +02:00
fi
if test "$enable_builtin" = "auto"; then
enable_builtin=libidn2
2018-04-21 11:26:20 +02:00
AC_DEFINE([BUILTIN_GENERATOR_LIBIDN2], [1], [generate PSL data using libidn2])
2018-04-20 15:31:37 +02:00
fi
fi
fi
if test "$enable_runtime" = "libicu" -o "$enable_builtin" = "libicu" -o "$enable_runtime" = "auto" -o "$enable_builtin" = "auto"; then
2014-06-29 22:56:33 +02:00
# Check for libicu
# using pkg-config won't work on older systems like Ubuntu 12.04 LTS Server Edition 64bit
# using AC_SEARCH_LIBS also don't work since functions have the library version appended
2015-01-21 14:26:12 +01:00
PKG_CHECK_MODULES([LIBICU], [icu-uc], [
2015-01-21 14:22:57 +01:00
HAVE_LIBICU=yes
2018-04-30 11:52:34 +02:00
if test "$enable_runtime" = "libicu" -o "$enable_runtime" = "auto"; then
LIBS="$LIBICU_LIBS $LIBS"
2015-12-26 14:44:57 +01:00
CFLAGS="$LIBICU_CFLAGS $CFLAGS"
fi
2015-01-21 14:22:57 +01:00
], [
OLDLIBS=$LIBS
LIBS="-licuuc $LIBS"
AC_MSG_CHECKING([for ICU unicode library])
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[#include <unicode/ustring.h>]],
[[u_strToUTF8(NULL, 0, NULL, NULL, 0, NULL);]])],
2016-08-21 14:14:18 +02:00
[HAVE_LIBICU=yes; LIBICU_LIBS="-licuuc"; AC_MSG_RESULT([yes])],
2018-04-20 15:31:37 +02:00
[ AC_MSG_RESULT([no]);
if test "$enable_runtime" = "libicu" -o "$enable_builtin" = "libicu"; then
AC_MSG_ERROR(You requested libicu but it is not installed.)
fi
2018-04-30 11:52:34 +02:00
LIBS=$OLDLIBS
2018-04-20 15:31:37 +02:00
])
2015-01-21 14:22:57 +01:00
])
2014-06-29 22:56:33 +02:00
2018-04-20 15:31:37 +02:00
if test "x$HAVE_LIBICU" = "xyes"; then
if test "$enable_runtime" = "auto"; then
enable_runtime=libicu
2019-08-28 13:51:14 +02:00
AC_DEFINE([WITH_LIBICU], [1], [generate PSL data using libicu])
2017-07-09 22:09:09 +02:00
fi
2018-04-20 15:31:37 +02:00
if test "$enable_builtin" = "auto"; then
enable_builtin=libicu
2018-04-21 11:26:20 +02:00
AC_DEFINE([BUILTIN_GENERATOR_LIBICU], [1], [generate PSL data using libicu])
2018-04-20 15:31:37 +02:00
fi
fi
2014-06-29 22:56:33 +02:00
fi
2018-04-20 15:31:37 +02:00
if test "$enable_runtime" = "libidn" -o "$enable_builtin" = "libidn" -o "$enable_runtime" = "auto" -o "$enable_builtin" = "auto"; then
2014-06-29 22:56:33 +02:00
# Check for libidn
2017-07-15 12:31:01 +02:00
PKG_CHECK_MODULES([LIBIDN], [libidn], [
2018-04-20 15:31:37 +02:00
HAVE_LIBIDN=yes
2018-04-30 11:52:34 +02:00
if test "$enable_runtime" = "libidn" -o "$enable_runtime" = "auto"; then
LIBS="$LIBIDN_LIBS $LIBS"
2017-07-15 12:31:01 +02:00
CFLAGS="$LIBIDN_CFLAGS $CFLAGS"
fi
], [
2018-04-20 15:31:37 +02:00
AC_SEARCH_LIBS(idna_to_ascii_8z, idn, HAVE_LIBIDN=yes,
[
if test "$enable_runtime" = "libidn" -o "$enable_builtin" = "libidn"; then
AC_MSG_ERROR(You requested libidn but it is not installed.)
fi
])
2017-07-15 12:31:01 +02:00
])
2018-04-20 15:31:37 +02:00
if test "x$HAVE_LIBIDN" = "xyes"; then
if test "$enable_runtime" = "auto"; then
enable_runtime=libidn
2018-04-21 11:26:20 +02:00
AC_DEFINE([WITH_LIBIDN], [1], [generate PSL data using libidn])
2018-04-20 15:31:37 +02:00
fi
if test "$enable_builtin" = "auto"; then
enable_builtin=libidn
2019-08-28 13:51:14 +02:00
AC_DEFINE([BUILTIN_GENERATOR_LIBIDN], [1], [generate PSL data using libidn])
2018-04-20 15:31:37 +02:00
fi
fi
fi
# last fallback is noruntime/nobuiltin
if test "$enable_runtime" = "auto"; then
enable_runtime=no
fi
if test "$enable_builtin" = "auto"; then
enable_builtin=no
2014-06-29 22:56:33 +02:00
fi
if test "x$HAVE_LIBIDN2" = "xyes" -o "x$HAVE_LIBIDN" = "xyes"; then
# Check for libunistring, we need it for psl_str_to_utf8lower()
2016-08-31 15:16:04 +02:00
AC_SEARCH_LIBS(u8_tolower, unistring, HAVE_UNISTRING=yes, AC_MSG_ERROR(You requested libidn2|libidn but libunistring is not installed.))
2014-06-29 22:56:33 +02:00
fi
2015-01-23 16:13:19 +01:00
# AM_ICONV sets @LIBICONV@ and @LTLIBICONV@ for use in Makefile.am
# do not use AM_ICONV conditionally
AM_ICONV
2014-06-29 22:56:33 +02:00
AM_CONDITIONAL([WITH_LIBICU], test "x$enable_runtime" = "xlibicu")
AM_CONDITIONAL([WITH_LIBIDN2], test "x$enable_runtime" = "xlibidn2")
AM_CONDITIONAL([WITH_LIBIDN], test "x$enable_runtime" = "xlibidn")
2014-06-27 17:13:30 +02:00
AM_CONDITIONAL([BUILTIN_GENERATOR_LIBICU], test "x$enable_builtin" = "xlibicu")
AM_CONDITIONAL([BUILTIN_GENERATOR_LIBIDN2], test "x$enable_builtin" = "xlibidn2")
2014-06-29 22:56:33 +02:00
AM_CONDITIONAL([BUILTIN_GENERATOR_LIBIDN], test "x$enable_builtin" = "xlibidn")
2014-06-27 17:13:30 +02:00
AM_CONDITIONAL([WITH_BUILTIN], test $enable_builtin = yes)
2014-03-30 17:02:56 +02:00
2015-01-21 11:36:58 +01:00
# Solaris has socket in libsocket and inet_ntop in libnsl, but also needs libsocket, so the order is important here
AC_CHECK_LIB([socket], [socket], [NEEDS_SOCKET=yes], [])
if test -n "$NEEDS_SOCKET" ; then
AC_CHECK_LIB([nsl], [inet_ntop], [NEEDS_NSL=yes], [])
fi
if test -n "$NEEDS_SOCKET" && test -n "$NEEDS_NSL" ; then
LIBS="$LIBS -lsocket -lnsl"
elif test -n "$NEEDS_SOCKET" ; then
LIBS="$LIBS -lsocket"
elif test -n "$NEEDS_NSL" ; then
LIBS="$LIBS -lnsl"
2018-04-21 11:30:22 +02:00
else
2019-01-09 15:30:50 +01:00
# Platform dependant options
case "${host_os}" in
# MinGW / Windows
*mingw*)
# Select Windows NT/2000 and later, for WSAStringToAddressW()
CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x500"
# Needed for network support
LIBS="$LIBS -lws2_32"
;;
*)
;;
esac
2015-01-21 11:36:58 +01:00
fi
2015-12-03 10:08:04 +01:00
# Check for clock_gettime() used for performance measurement
AC_SEARCH_LIBS(clock_gettime, rt)
2014-03-20 17:17:24 +01:00
# Check for valgrind
ac_enable_valgrind=no
AC_ARG_ENABLE(valgrind-tests,
AS_HELP_STRING([--enable-valgrind-tests], [enable using Valgrind for tests]),
2014-06-27 17:13:30 +02:00
[ac_enable_valgrind=$enableval],
[ac_enable_valgrind=no])
2014-03-20 17:17:24 +01:00
if test "${ac_enable_valgrind}" = "yes" ; then
AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
if test "$HAVE_VALGRIND" = "yes" ; then
VALGRIND_ENVIRONMENT="valgrind --error-exitcode=1 --leak-check=yes --show-reachable=yes --track-origins=yes"
AC_SUBST(VALGRIND_ENVIRONMENT)
TESTS_INFO="Test suite will be run under Valgrind"
else
TESTS_INFO="Valgrind not found"
fi
else
TESTS_INFO="Valgrind testing not enabled"
fi
2016-12-05 14:48:49 +01:00
# Check for distribution-wide PSL file
AC_ARG_WITH(psl-distfile,
2021-01-16 18:15:55 +01:00
AS_HELP_STRING([--with-psl-distfile=[PATH]], [path to distribution-wide PSL file]),
2016-12-05 14:48:49 +01:00
PSL_DISTFILE=$withval AC_SUBST(PSL_DISTFILE))
2014-04-13 16:35:28 +02:00
# Check for custom PSL file
AC_ARG_WITH(psl-file,
2021-01-16 18:15:55 +01:00
AS_HELP_STRING([--with-psl-file=[PATH]], [path to PSL file]),
2014-04-13 16:35:28 +02:00
PSL_FILE=$withval,
2015-07-14 13:15:49 +02:00
PSL_FILE="\$(top_srcdir)/list/public_suffix_list.dat")
2014-04-13 16:35:28 +02:00
AC_SUBST(PSL_FILE)
2014-04-13 16:43:03 +02:00
# Check for custom PSL test file
AC_ARG_WITH(psl-testfile,
2021-01-16 18:15:55 +01:00
AS_HELP_STRING([--with-psl-testfile=[PATH]], [path to PSL test file]),
2014-04-13 16:43:03 +02:00
PSL_TESTFILE=$withval,
2016-02-20 22:20:30 +01:00
PSL_TESTFILE="\$(top_srcdir)/list/tests/tests.txt")
2014-04-13 16:43:03 +02:00
AC_SUBST(PSL_TESTFILE)
2014-10-28 15:41:35 +01:00
# check for alloca / alloca.h
AC_FUNC_ALLOCA
2018-04-21 11:30:22 +02:00
AC_CHECK_FUNCS([strndup clock_gettime fmemopen nl_langinfo])
2014-10-28 15:41:35 +01:00
2019-06-04 21:31:43 +02:00
# check for dirent.h
AC_HEADER_DIRENT
2020-03-10 15:16:25 +01:00
# strings.h may not exist on WIN32
AC_CHECK_HEADERS([strings.h])
2014-03-20 17:17:24 +01:00
# Override the template file name of the generated .pc file, so that there
# is no need to rename the template file when the API version changes.
AC_CONFIG_FILES([Makefile
include/Makefile
src/Makefile
2014-04-11 17:16:23 +02:00
tools/Makefile
2014-03-20 17:17:24 +01:00
po/Makefile.in
2017-06-09 16:27:37 +02:00
fuzz/Makefile
2014-03-20 17:17:24 +01:00
tests/Makefile
2018-03-06 10:21:45 +01:00
docs/libpsl/Makefile docs/libpsl/version.xml
2018-04-24 12:51:04 +02:00
libpsl.pc:libpsl.pc.in
msvc/Makefile
msvc/config.h.win32
msvc/config-msvc.mak])
2014-03-20 17:17:24 +01:00
AC_OUTPUT
AC_MSG_NOTICE([Summary of build options:
Version: ${PACKAGE_VERSION}
Host OS: ${host_os}
Install prefix: ${prefix}
Compiler: ${CC}
CFlags: ${CFLAGS} ${CPPFLAGS}
LDFlags: ${LDFLAGS}
2014-06-29 22:56:33 +02:00
Libs: ${LIBS}
Runtime: ${enable_runtime}
Builtin: ${enable_builtin}
2016-12-05 14:48:49 +01:00
PSL Dist File: ${PSL_DISTFILE}
2014-04-13 16:35:28 +02:00
PSL File: ${PSL_FILE}
2014-04-13 16:43:03 +02:00
PSL Test File: ${PSL_TESTFILE}
2018-04-26 19:20:46 +02:00
Sanitizers: UBSan $enable_ubsan, ASan $enable_asan, CFI $enable_cfi
2018-03-06 09:40:11 +01:00
Docs: $enable_gtk_doc
Man pages: $enable_man
2014-03-20 17:17:24 +01:00
Tests: ${TESTS_INFO}
2022-01-16 12:59:23 +01:00
Fuzzing build: $enable_fuzzing, $LIB_FUZZING_ENGINE
2014-03-20 17:17:24 +01:00
])