configure.ac (mrouted-4.3) | : | configure.ac (mrouted-4.4) | ||
---|---|---|---|---|
AC_PREREQ(2.61) | AC_PREREQ(2.61) | |||
AC_INIT([mrouted], [4.3], [https://github.com/troglobit/mrouted/issues],, | AC_INIT([mrouted], [4.4], [https://github.com/troglobit/mrouted/issues],, | |||
[https://troglobit.com/projects/mrouted/]) | [https://troglobit.com/projects/mrouted/]) | |||
AC_CONFIG_AUX_DIR(aux) | AC_CONFIG_AUX_DIR(aux) | |||
AM_INIT_AUTOMAKE([1.11 foreign]) | AM_INIT_AUTOMAKE([1.11 foreign]) | |||
AM_SILENT_RULES([yes]) | AM_SILENT_RULES([yes]) | |||
AC_CONFIG_SRCDIR([src/main.c]) | AC_CONFIG_SRCDIR([src/main.c]) | |||
AC_CONFIG_HEADER([config.h]) | AC_CONFIG_HEADER([config.h]) | |||
AC_CONFIG_FILES([Makefile man/Makefile src/Makefile test/Makefile mrouted.servic e]) | AC_CONFIG_FILES([Makefile man/Makefile src/Makefile test/Makefile mrouted.servic e]) | |||
# Check for standard programs, headers, and functions | # Check for standard programs, headers, and functions | |||
skipping to change at line 49 | skipping to change at line 49 | |||
# Check if some func is not in libc | # Check if some func is not in libc | |||
AC_CHECK_LIB([util], [pidfile]) | AC_CHECK_LIB([util], [pidfile]) | |||
# Check for required functions in libc | # Check for required functions in libc | |||
AC_CHECK_FUNCS([atexit getifaddrs]) | AC_CHECK_FUNCS([atexit getifaddrs]) | |||
# Check for usually missing API's, which we can replace | # Check for usually missing API's, which we can replace | |||
AC_REPLACE_FUNCS([pidfile strlcpy strlcat strtonum utimensat]) | AC_REPLACE_FUNCS([pidfile strlcpy strlcat strtonum utimensat]) | |||
AC_CONFIG_LIBOBJ_DIR([lib]) | AC_CONFIG_LIBOBJ_DIR([lib]) | |||
AC_ARG_ENABLE(rsrr, | ||||
AS_HELP_STRING([--enable-rsrr], [Routing Support for Resource Reservation | ||||
currently used by RSVP (EXPERIMENTAL). For details, see | ||||
http://tools.ietf.org/html/draft-ietf-rsvp-routing-02]),, | ||||
enable_rsrr=no) | ||||
AC_ARG_ENABLE(test, | AC_ARG_ENABLE(test, | |||
AS_HELP_STRING([--enable-test], [enable tests, requries unshare, tshark, etc.]), | AS_HELP_STRING([--enable-test], [enable tests, requries unshare, tshark, etc.]), | |||
enable_test="$enableval", enable_test="no") | enable_test="$enableval", enable_test="no") | |||
AC_ARG_WITH([systemd], | AC_ARG_WITH([systemd], | |||
[AS_HELP_STRING([--with-systemd=DIR], [Directory for systemd service files] )],, | [AS_HELP_STRING([--with-systemd=DIR], [Directory for systemd service files] )],, | |||
[with_systemd=auto]) | [with_systemd=auto]) | |||
# Create config.h from selected features and fallback defautls | # Create config.h from selected features and fallback defautls | |||
AS_IF([test "x$enable_rsrr" = "xyes"], [ | ||||
AC_DEFINE(RSRR, 1, [Routing Support for Resource Reservation.])]) | ||||
AS_IF([test "x$with_systemd" = "xyes" -o "x$with_systemd" = "xauto"], [ | AS_IF([test "x$with_systemd" = "xyes" -o "x$with_systemd" = "xauto"], [ | |||
def_systemd=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) | def_systemd=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) | |||
AS_IF([test "x$def_systemd" = "x"], | AS_IF([test "x$def_systemd" = "x"], | |||
[AS_IF([test "x$with_systemd" = "xyes"], | [AS_IF([test "x$with_systemd" = "xyes"], | |||
[AC_MSG_ERROR([systemd support requested but pkg-config unable to qu ery systemd package])]) | [AC_MSG_ERROR([systemd support requested but pkg-config unable to qu ery systemd package])]) | |||
with_systemd=no], [with_systemd="$def_systemd"])]) | with_systemd=no], [with_systemd="$def_systemd"])]) | |||
AS_IF([test "x$with_systemd" != "xno"], | AS_IF([test "x$with_systemd" != "xno"], | |||
[AC_SUBST([systemddir], [$with_systemd])]) | [AC_SUBST([systemddir], [$with_systemd])]) | |||
AM_CONDITIONAL(BSD, [test "x$ac_cv_header_net_if_dl_h" = "xyes"]) | AM_CONDITIONAL(BSD, [test "x$ac_cv_header_net_if_dl_h" = "xyes"]) | |||
AM_CONDITIONAL(LINUX, [test "x$ac_cv_header_linux_netlink_h" = "xyes"]) | AM_CONDITIONAL(LINUX, [test "x$ac_cv_header_linux_netlink_h" = "xyes"]) | |||
AM_CONDITIONAL(RSRR, [test "x$enable_rsrr" = "xyes"]) | ||||
AM_CONDITIONAL(SYSTEMD, [test "x$with_systemd" != "xno"]) | AM_CONDITIONAL(SYSTEMD, [test "x$with_systemd" != "xno"]) | |||
AM_CONDITIONAL(ENABLE_TEST, [test "x$enable_test" != "xno"]) | AM_CONDITIONAL(ENABLE_TEST, [test "x$enable_test" != "xno"]) | |||
# Expand $sbindir early, into $SBINDIR, for systemd unit file | # Expand $sbindir early, into $SBINDIR, for systemd unit file | |||
# NOTE: This does *not* take prefix/exec_prefix override at "make | # NOTE: This does *not* take prefix/exec_prefix override at "make | |||
# install" into account, unfortunately. | # install" into account, unfortunately. | |||
test "x$prefix" = xNONE && prefix=$ac_default_prefix | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |||
DOCDIR=`eval echo $docdir` | DOCDIR=`eval echo $docdir` | |||
DOCDIR=`eval echo $DOCDIR` | DOCDIR=`eval echo $DOCDIR` | |||
skipping to change at line 115 | skipping to change at line 105 | |||
cat <<EOF | cat <<EOF | |||
------------------ Summary ------------------ | ------------------ Summary ------------------ | |||
$PACKAGE_NAME version $PACKAGE_VERSION | $PACKAGE_NAME version $PACKAGE_VERSION | |||
Install prefix........: $prefix | Install prefix........: $prefix | |||
Configuration file....: `eval echo $sysconfdir`/mrouted.conf | Configuration file....: `eval echo $sysconfdir`/mrouted.conf | |||
PID and .sock files...: `eval echo $runstatedir`/ | PID and .sock files...: `eval echo $runstatedir`/ | |||
C Compiler............: $CC $CFLAGS $CPPFLAGS $LDFLAGS $LIBS | C Compiler............: $CC $CFLAGS $CPPFLAGS $LDFLAGS $LIBS | |||
Optional features: | Optional features: | |||
RSRR (experimental)...: $enable_rsrr | ||||
systemd...............: $with_systemd | systemd...............: $with_systemd | |||
Unit tests............: $enable_test | Unit tests............: $enable_test | |||
------------- Compiler version -------------- | ------------- Compiler version -------------- | |||
$($CC --version || true) | $($CC --version || true) | |||
--------------------------------------------- | --------------------------------------------- | |||
Check the above options and compile with: | Check the above options and compile with: | |||
${MAKE-make} | ${MAKE-make} | |||
End of changes. 5 change blocks. | ||||
12 lines changed or deleted | 1 lines changed or added |