# HG changeset patch # User Mike Miller # Date 1424752117 18000 # Node ID 07b970d6cdfe3167da74109871eb5629cf387ddb # Parent 4006a7377a190ef6b975574f5c2038b497a3d294 Only install config.log in $octetc if user requested (bug #43087) * configure.ac: Add a --enable-install-build-logs configure option. Set AMCOND_INSTALL_BUILD_LOGS. * Makefile.am (octetc_DATA): Use AMCOND_INSTALL_BUILD_LOGS to include config.log in the list conditionally. diff -r 4006a7377a19 -r 07b970d6cdfe Makefile.am --- a/Makefile.am Mon Feb 23 23:05:30 2015 -0500 +++ b/Makefile.am Mon Feb 23 23:28:37 2015 -0500 @@ -173,8 +173,11 @@ octetc_DATA = \ CITATION \ - NEWS \ - config.log + NEWS + +if AMCOND_INSTALL_BUILD_LOGS +octetc_DATA += config.log +endif doxyhtml: $(MAKE) -C doc/doxyhtml doxyhtml diff -r 4006a7377a19 -r 07b970d6cdfe configure.ac --- a/configure.ac Mon Feb 23 23:05:30 2015 -0500 +++ b/configure.ac Mon Feb 23 23:28:37 2015 -0500 @@ -2965,6 +2965,15 @@ AC_SUBST(QT_LDFLAGS) AC_SUBST(QT_LIBS) +### Decide whether or not to install build logs with Octave. + +install_build_logs=no +AC_ARG_ENABLE([install-build-logs], + [AS_HELP_STRING([--enable-install-build-logs], + [install build logs (e.g. config.log) with Octave])], + [if test "$enableval" = yes; then install_build_logs=yes; fi]) +AM_CONDITIONAL([AMCOND_INSTALL_BUILD_LOGS], [test $install_build_logs = yes]) + CFLAGS="$original_octave_configure_CFLAGS" CXXFLAGS="$original_octave_configure_CXXFLAGS"