diff --git a/Makefile.in b/Makefile.in index f45e06aa..89c37cea 100644 --- a/Makefile.in +++ b/Makefile.in @@ -91,7 +91,11 @@ DIST_COMMON = $(top_srcdir)/config/Make-inc.mk $(srcdir)/Makefile.in \ $(top_srcdir)/config/missing subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/config/libtool.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/config/ax_append_compile_flags.m4 \ + $(top_srcdir)/config/ax_append_flag.m4 \ + $(top_srcdir)/config/ax_check_compile_flag.m4 \ + $(top_srcdir)/config/ax_require_defined.m4 \ + $(top_srcdir)/config/libtool.m4 \ $(top_srcdir)/config/ltoptions.m4 \ $(top_srcdir)/config/ltsugar.m4 \ $(top_srcdir)/config/ltversion.m4 \ diff --git a/aclocal.m4 b/aclocal.m4 index e72cd5ef..fefd0d68 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -226,9 +226,10 @@ _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- @@ -695,8 +696,7 @@ to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi -fi -]) +fi]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further @@ -1306,6 +1306,10 @@ AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR +m4_include([config/ax_append_compile_flags.m4]) +m4_include([config/ax_append_flag.m4]) +m4_include([config/ax_check_compile_flag.m4]) +m4_include([config/ax_require_defined.m4]) m4_include([config/libtool.m4]) m4_include([config/ltoptions.m4]) m4_include([config/ltsugar.m4]) diff --git a/config/ax_append_compile_flags.m4 b/config/ax_append_compile_flags.m4 new file mode 100644 index 00000000..2bb27ef2 --- /dev/null +++ b/config/ax_append_compile_flags.m4 @@ -0,0 +1,67 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_append_compile_flags.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_APPEND_COMPILE_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) +# +# DESCRIPTION +# +# For every FLAG1, FLAG2 it is checked whether the compiler works with the +# flag. If it does, the flag is added FLAGS-VARIABLE +# +# If FLAGS-VARIABLE is not specified, the current language's flags (e.g. +# CFLAGS) is used. During the check the flag is always added to the +# current language's flags. +# +# If EXTRA-FLAGS is defined, it is added to the current language's default +# flags (e.g. CFLAGS) when the check is done. The check is thus made with +# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to +# force the compiler to issue an error when a bad flag is given. +# +# INPUT gives an alternative input source to AC_COMPILE_IFELSE. +# +# NOTE: This macro depends on the AX_APPEND_FLAG and +# AX_CHECK_COMPILE_FLAG. Please keep this macro in sync with +# AX_APPEND_LINK_FLAGS. +# +# LICENSE +# +# Copyright (c) 2011 Maarten Bosmans +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 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 General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 5 + +AC_DEFUN([AX_APPEND_COMPILE_FLAGS], +[AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) +AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) +for flag in $1; do + AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3], [$4]) +done +])dnl AX_APPEND_COMPILE_FLAGS diff --git a/config/ax_append_flag.m4 b/config/ax_append_flag.m4 new file mode 100644 index 00000000..08f2e07e --- /dev/null +++ b/config/ax_append_flag.m4 @@ -0,0 +1,71 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_append_flag.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE]) +# +# DESCRIPTION +# +# FLAG is appended to the FLAGS-VARIABLE shell variable, with a space +# added in between. +# +# If FLAGS-VARIABLE is not specified, the current language's flags (e.g. +# CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains +# FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly +# FLAG. +# +# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. +# +# LICENSE +# +# Copyright (c) 2008 Guido U. Draheim +# Copyright (c) 2011 Maarten Bosmans +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 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 General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 6 + +AC_DEFUN([AX_APPEND_FLAG], +[dnl +AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_SET_IF +AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])]) +AS_VAR_SET_IF(FLAGS,[ + AS_CASE([" AS_VAR_GET(FLAGS) "], + [*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])], + [ + AS_VAR_APPEND(FLAGS,[" $1"]) + AC_RUN_LOG([: FLAGS="$FLAGS"]) + ]) + ], + [ + AS_VAR_SET(FLAGS,[$1]) + AC_RUN_LOG([: FLAGS="$FLAGS"]) + ]) +AS_VAR_POPDEF([FLAGS])dnl +])dnl AX_APPEND_FLAG diff --git a/config/ax_check_compile_flag.m4 b/config/ax_check_compile_flag.m4 new file mode 100644 index 00000000..ca363971 --- /dev/null +++ b/config/ax_check_compile_flag.m4 @@ -0,0 +1,74 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT]) +# +# DESCRIPTION +# +# Check whether the given FLAG works with the current language's compiler +# or gives an error. (Warnings, however, are ignored) +# +# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on +# success/failure. +# +# If EXTRA-FLAGS is defined, it is added to the current language's default +# flags (e.g. CFLAGS) when the check is done. The check is thus made with +# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to +# force the compiler to issue an error when a bad flag is given. +# +# INPUT gives an alternative input source to AC_COMPILE_IFELSE. +# +# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this +# macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG. +# +# LICENSE +# +# Copyright (c) 2008 Guido U. Draheim +# Copyright (c) 2011 Maarten Bosmans +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 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 General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 4 + +AC_DEFUN([AX_CHECK_COMPILE_FLAG], +[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF +AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl +AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [ + ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS + _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1" + AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], + [AS_VAR_SET(CACHEVAR,[yes])], + [AS_VAR_SET(CACHEVAR,[no])]) + _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags]) +AS_VAR_IF(CACHEVAR,yes, + [m4_default([$2], :)], + [m4_default([$3], :)]) +AS_VAR_POPDEF([CACHEVAR])dnl +])dnl AX_CHECK_COMPILE_FLAGS diff --git a/config/ax_require_defined.m4 b/config/ax_require_defined.m4 new file mode 100644 index 00000000..cae11112 --- /dev/null +++ b/config/ax_require_defined.m4 @@ -0,0 +1,37 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_require_defined.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_REQUIRE_DEFINED(MACRO) +# +# DESCRIPTION +# +# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have +# been defined and thus are available for use. This avoids random issues +# where a macro isn't expanded. Instead the configure script emits a +# non-fatal: +# +# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found +# +# It's like AC_REQUIRE except it doesn't expand the required macro. +# +# Here's an example: +# +# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) +# +# LICENSE +# +# Copyright (c) 2014 Mike Frysinger +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + +#serial 1 + +AC_DEFUN([AX_REQUIRE_DEFINED], [dnl + m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])]) +])dnl AX_REQUIRE_DEFINED diff --git a/configure b/configure index 315f08ad..e4f824b3 100755 --- a/configure +++ b/configure @@ -803,6 +803,7 @@ enable_debug with_libgcrypt_prefix with_openssl_prefix with_crypto_lib +enable_hardening ' ac_precious_vars='build_alias host_alias @@ -1445,6 +1446,7 @@ Optional Features: optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-debug enable debugging for code development + --disable-hardening Disable hardening features Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -2990,8 +2992,8 @@ test "$program_suffix" != NONE && ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in @@ -3355,7 +3357,6 @@ END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi - ac_config_headers="$ac_config_headers config/config.h" @@ -14861,6 +14862,221 @@ $as_echo "failed" >&6; } $as_echo "$AUTH_METHOD" >&6; } + +# Hardening options +# See e.g. +# https://wiki.debian.org/Hardening +# https://fedoraproject.org/wiki/Changes/Harden_All_Packages +# +# -Wl,-z,relro,now linker flags are not enabled since they can cause +# problems for users who load libmunge.so at runtime. +# Check whether --enable-hardening was given. +if test "${enable_hardening+set}" = set; then : + enableval=$enable_hardening; +fi + + +if test "x$enable_hardening" != "xno"; then : + + CFLAGS_HARDENING="" + + + + +for flag in -D_FORTIFY_SOURCE=2 -Werror=format-security -fPIC -pie; do + as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 +$as_echo_n "checking whether C compiler accepts $flag... " >&6; } +if eval \${$as_CACHEVAR+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS $flag" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_CACHEVAR=yes" +else + eval "$as_CACHEVAR=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +eval ac_res=\$$as_CACHEVAR + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : + +if ${CFLAGS_HARDENING+:} false; then : + + case " $CFLAGS_HARDENING " in #( + *" $flag "*) : + { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_HARDENING already contains \$flag"; } >&5 + (: CFLAGS_HARDENING already contains $flag) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } ;; #( + *) : + + as_fn_append CFLAGS_HARDENING " $flag" + { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_HARDENING=\"\$CFLAGS_HARDENING\""; } >&5 + (: CFLAGS_HARDENING="$CFLAGS_HARDENING") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + ;; +esac + +else + + CFLAGS_HARDENING=$flag + { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_HARDENING=\"\$CFLAGS_HARDENING\""; } >&5 + (: CFLAGS_HARDENING="$CFLAGS_HARDENING") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + +fi + +else + : +fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-strong" >&5 +$as_echo_n "checking whether C compiler accepts -fstack-protector-strong... " >&6; } +if ${ax_cv_check_cflags___fstack_protector_strong+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -fstack-protector-strong" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags___fstack_protector_strong=yes +else + ax_cv_check_cflags___fstack_protector_strong=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_strong" >&5 +$as_echo "$ax_cv_check_cflags___fstack_protector_strong" >&6; } +if test "x$ax_cv_check_cflags___fstack_protector_strong" = xyes; then : + HAVE_FSTACK_PROTECTOR_STRONG=yes +else + HAVE_FSTACK_PROTECTOR_STRONG=no +fi + + if test "x$HAVE_FSTACK_PROTECTOR_STRONG" = "xyes"; then : + + CFLAGS_HARDENING="$CFLAGS_HARDENING -fstack-protector-strong" + +else + + + + + +for flag in -fstack-protector; do + as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 +$as_echo_n "checking whether C compiler accepts $flag... " >&6; } +if eval \${$as_CACHEVAR+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS $flag" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_CACHEVAR=yes" +else + eval "$as_CACHEVAR=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +eval ac_res=\$$as_CACHEVAR + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : + +if ${CFLAGS_HARDENING+:} false; then : + + case " $CFLAGS_HARDENING " in #( + *" $flag "*) : + { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_HARDENING already contains \$flag"; } >&5 + (: CFLAGS_HARDENING already contains $flag) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } ;; #( + *) : + + as_fn_append CFLAGS_HARDENING " $flag" + { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_HARDENING=\"\$CFLAGS_HARDENING\""; } >&5 + (: CFLAGS_HARDENING="$CFLAGS_HARDENING") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + ;; +esac + +else + + CFLAGS_HARDENING=$flag + { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_HARDENING=\"\$CFLAGS_HARDENING\""; } >&5 + (: CFLAGS_HARDENING="$CFLAGS_HARDENING") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + +fi + +else + : +fi + +done + + +fi + AM_CFLAGS="$AM_CFLAGS $CFLAGS_HARDENING" + +fi + + ## # Epilogue. ## diff --git a/configure.ac b/configure.ac index fbb23f26..5e80a509 100644 --- a/configure.ac +++ b/configure.ac @@ -137,6 +137,30 @@ X_AC_DARWIN ## X_AC_SELECT_AUTH_METHOD + +# Hardening options +# See e.g. +# https://wiki.debian.org/Hardening +# https://fedoraproject.org/wiki/Changes/Harden_All_Packages +# +# -Wl,-z,relro,now linker flags are not enabled since they can cause +# problems for users who load libmunge.so at runtime. +AC_ARG_ENABLE([hardening], + AS_HELP_STRING([--disable-hardening], [Disable hardening features])) + +AS_IF([test "x$enable_hardening" != "xno"], [ + CFLAGS_HARDENING="" + AX_APPEND_COMPILE_FLAGS([-D_FORTIFY_SOURCE=2 -Werror=format-security -fPIC -pie], [CFLAGS_HARDENING]) + AX_CHECK_COMPILE_FLAG(-fstack-protector-strong, [HAVE_FSTACK_PROTECTOR_STRONG=yes], [HAVE_FSTACK_PROTECTOR_STRONG=no]) + AS_IF([test "x$HAVE_FSTACK_PROTECTOR_STRONG" = "xyes"], [ + CFLAGS_HARDENING="$CFLAGS_HARDENING -fstack-protector-strong" + ],[ + AX_APPEND_COMPILE_FLAGS([-fstack-protector], [CFLAGS_HARDENING]) + ]) + AM_CFLAGS="$AM_CFLAGS $CFLAGS_HARDENING" +]) + + ## # Epilogue. ## diff --git a/src/Makefile.in b/src/Makefile.in index f0bfbd00..49c568a8 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -81,7 +81,11 @@ DIST_COMMON = $(top_srcdir)/config/Make-inc.mk $(srcdir)/Makefile.in \ $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/config/libtool.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/config/ax_append_compile_flags.m4 \ + $(top_srcdir)/config/ax_append_flag.m4 \ + $(top_srcdir)/config/ax_check_compile_flag.m4 \ + $(top_srcdir)/config/ax_require_defined.m4 \ + $(top_srcdir)/config/libtool.m4 \ $(top_srcdir)/config/ltoptions.m4 \ $(top_srcdir)/config/ltsugar.m4 \ $(top_srcdir)/config/ltversion.m4 \ @@ -393,9 +397,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign src/Makefile + $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ diff --git a/src/etc/Makefile.in b/src/etc/Makefile.in index 9601f4b8..cb0ad6ee 100644 --- a/src/etc/Makefile.in +++ b/src/etc/Makefile.in @@ -82,7 +82,11 @@ DIST_COMMON = $(top_srcdir)/config/Make-inc.mk $(srcdir)/Makefile.in \ $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs subdir = src/etc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/config/libtool.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/config/ax_append_compile_flags.m4 \ + $(top_srcdir)/config/ax_append_flag.m4 \ + $(top_srcdir)/config/ax_check_compile_flag.m4 \ + $(top_srcdir)/config/ax_require_defined.m4 \ + $(top_srcdir)/config/libtool.m4 \ $(top_srcdir)/config/ltoptions.m4 \ $(top_srcdir)/config/ltsugar.m4 \ $(top_srcdir)/config/ltversion.m4 \ @@ -353,9 +357,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/etc/Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/etc/Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign src/etc/Makefile + $(AUTOMAKE) --gnu src/etc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ diff --git a/src/libcommon/Makefile.in b/src/libcommon/Makefile.in index e0add48d..2a5b1b69 100644 --- a/src/libcommon/Makefile.in +++ b/src/libcommon/Makefile.in @@ -83,7 +83,11 @@ DIST_COMMON = $(top_srcdir)/config/Make-inc.mk $(srcdir)/Makefile.in \ $(srcdir)/munge.7.in $(top_srcdir)/config/depcomp subdir = src/libcommon ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/config/libtool.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/config/ax_append_compile_flags.m4 \ + $(top_srcdir)/config/ax_append_flag.m4 \ + $(top_srcdir)/config/ax_check_compile_flag.m4 \ + $(top_srcdir)/config/ax_require_defined.m4 \ + $(top_srcdir)/config/libtool.m4 \ $(top_srcdir)/config/ltoptions.m4 \ $(top_srcdir)/config/ltsugar.m4 \ $(top_srcdir)/config/ltversion.m4 \ @@ -435,9 +439,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/libcommon/Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/libcommon/Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign src/libcommon/Makefile + $(AUTOMAKE) --gnu src/libcommon/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ diff --git a/src/libmissing/Makefile.in b/src/libmissing/Makefile.in index d32366b7..a530a935 100644 --- a/src/libmissing/Makefile.in +++ b/src/libmissing/Makefile.in @@ -83,7 +83,11 @@ DIST_COMMON = $(top_srcdir)/config/Make-inc.mk $(srcdir)/Makefile.in \ inet_ntop.c strlcat.c strlcpy.c $(top_srcdir)/config/depcomp subdir = src/libmissing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/config/libtool.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/config/ax_append_compile_flags.m4 \ + $(top_srcdir)/config/ax_append_flag.m4 \ + $(top_srcdir)/config/ax_check_compile_flag.m4 \ + $(top_srcdir)/config/ax_require_defined.m4 \ + $(top_srcdir)/config/libtool.m4 \ $(top_srcdir)/config/ltoptions.m4 \ $(top_srcdir)/config/ltsugar.m4 \ $(top_srcdir)/config/ltversion.m4 \ @@ -396,9 +400,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/libmissing/Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/libmissing/Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign src/libmissing/Makefile + $(AUTOMAKE) --gnu src/libmissing/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ diff --git a/src/libmunge/Makefile.in b/src/libmunge/Makefile.in index 9751cb72..7d6f217e 100644 --- a/src/libmunge/Makefile.in +++ b/src/libmunge/Makefile.in @@ -86,7 +86,11 @@ DIST_COMMON = $(top_srcdir)/config/Make-inc.mk $(srcdir)/Makefile.in \ $(include_HEADERS) subdir = src/libmunge ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/config/libtool.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/config/ax_append_compile_flags.m4 \ + $(top_srcdir)/config/ax_append_flag.m4 \ + $(top_srcdir)/config/ax_check_compile_flag.m4 \ + $(top_srcdir)/config/ax_require_defined.m4 \ + $(top_srcdir)/config/libtool.m4 \ $(top_srcdir)/config/ltoptions.m4 \ $(top_srcdir)/config/ltsugar.m4 \ $(top_srcdir)/config/ltversion.m4 \ @@ -450,9 +454,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/libmunge/Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/libmunge/Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign src/libmunge/Makefile + $(AUTOMAKE) --gnu src/libmunge/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ diff --git a/src/munge/Makefile.in b/src/munge/Makefile.in index 6aedcc8e..c2e89e7c 100644 --- a/src/munge/Makefile.in +++ b/src/munge/Makefile.in @@ -85,7 +85,11 @@ DIST_COMMON = $(top_srcdir)/config/Make-inc.mk $(srcdir)/Makefile.in \ bin_PROGRAMS = munge$(EXEEXT) unmunge$(EXEEXT) remunge$(EXEEXT) subdir = src/munge ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/config/libtool.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/config/ax_append_compile_flags.m4 \ + $(top_srcdir)/config/ax_append_flag.m4 \ + $(top_srcdir)/config/ax_check_compile_flag.m4 \ + $(top_srcdir)/config/ax_require_defined.m4 \ + $(top_srcdir)/config/libtool.m4 \ $(top_srcdir)/config/ltoptions.m4 \ $(top_srcdir)/config/ltsugar.m4 \ $(top_srcdir)/config/ltversion.m4 \ @@ -461,9 +465,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/munge/Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/munge/Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign src/munge/Makefile + $(AUTOMAKE) --gnu src/munge/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ diff --git a/src/munged/Makefile.in b/src/munged/Makefile.in index 92819102..52f328cb 100644 --- a/src/munged/Makefile.in +++ b/src/munged/Makefile.in @@ -87,7 +87,11 @@ check_PROGRAMS = $(am__EXEEXT_1) TESTS = base64_test$(EXEEXT) subdir = src/munged ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/config/libtool.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/config/ax_append_compile_flags.m4 \ + $(top_srcdir)/config/ax_append_flag.m4 \ + $(top_srcdir)/config/ax_check_compile_flag.m4 \ + $(top_srcdir)/config/ax_require_defined.m4 \ + $(top_srcdir)/config/libtool.m4 \ $(top_srcdir)/config/ltoptions.m4 \ $(top_srcdir)/config/ltsugar.m4 \ $(top_srcdir)/config/ltversion.m4 \ @@ -684,9 +688,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/munged/Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/munged/Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign src/munged/Makefile + $(AUTOMAKE) --gnu src/munged/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \