Skip to content

Commit 7702a3c

Browse files
author
Mark Wielaard
committed
configure: print feature settings overview
elfutils can be configured in various ways. But we expect certain settings for the features that we explicitly support. Print an overview of all settings, plus their recommended setting, at the end of the configure run. ===================================================================== elfutils: 0.161 (eu_version: 161) ===================================================================== Prefix : /opt/local/install/elfutils Program prefix ("eu-" recommended) : eu- Source code location : /home/mark/src/elfutils Maintainer mode : yes libebl modules subdirectory : elfutils build arch : x86_64-unknown-linux-gnu RECOMMENDED FEATURES (should all be yes) gzip support : yes bzip2 support : yes lzma/xz support : yes libstdc++ demangle support : yes File textrel check : yes Symbol versioning : yes NOT RECOMMENDED FEATURES (should all be no) Experimental thread safety : no OTHER FEATURES Deterministic archives by default : false Native language support : yes EXTRA TEST FEATURES (used with make check) debug branch prediction : no gprof support : no gcov support : no run all tests under valgrind : no use rpath in tests : no test biarch : yes Signed-off-by: Mark Wielaard <[email protected]>
1 parent bcefec5 commit 7702a3c

File tree

4 files changed

+57
-5
lines changed

4 files changed

+57
-5
lines changed

ChangeLog

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2015-05-01 Mark Wielaard <[email protected]>
2+
3+
* configure.ac (debugpred): Use and set use_debugpred_val.
4+
(textrelcheck): Explicitly set enable_textrelcheck to yes or no.
5+
(symbol-versioning): Likewise for enable_symbol_versioning.
6+
AC_MSG_NOTICE overview of enabled/disabled features.
7+
18
2015-04-23 Max Filippov <[email protected]>
29

310
* configure.ac: Add --disable-symbol-versioning.

configure.ac

+44-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ AC_INIT([elfutils],[0.161],[https://bugzilla.redhat.com/],[elfutils])
2222
AC_CONFIG_AUX_DIR([config])
2323
AC_CONFIG_FILES([config/Makefile])
2424

25-
AC_COPYRIGHT([Copyright (C) 1996-2014 Red Hat, Inc.])
25+
AC_COPYRIGHT([Copyright (C) 1996-2015 Red Hat, Inc.])
2626
AC_PREREQ(2.63) dnl Minimum Autoconf version required.
2727

2828
dnl We use GNU make extensions; automake 1.10 defaults to -Wportability.
@@ -170,10 +170,10 @@ AC_ARG_ENABLE([debugpred],
170170
AS_HELP_STRING([--enable-debugpred],[build binaries with support to debug branch prediction]),
171171
[use_debugpred=$enableval], [use_debugpred=no])
172172
case $use_debugpred in
173-
yes) use_debugpred=1 ;;
174-
*) use_debugpred=0 ;;
173+
yes) use_debugpred_val=1 ;;
174+
*) use_debugpred_val=0 ;;
175175
esac
176-
AC_SUBST([DEBUGPRED], $use_debugpred)
176+
AC_SUBST([DEBUGPRED], $use_debugpred_val)
177177

178178
dnl Enable gprof suport.
179179
AC_ARG_ENABLE([gprof],
@@ -240,13 +240,16 @@ AC_ARG_ENABLE([textrelcheck],
240240
AS_HELP_STRING([--disable-textrelcheck],
241241
[Disable textrelcheck being a fatal error]))
242242
AM_CONDITIONAL(FATAL_TEXTREL, [test "x$enable_textrelcheck" != "xno"])
243+
AS_IF([test "x$enable_textrelcheck" != "xno"],
244+
[enable_textrelcheck=yes],[enable_textrelcheck=no])
243245

244246
AC_ARG_ENABLE([symbol-versioning],
245247
AS_HELP_STRING([--disable-symbol-versioning],
246248
[Disable symbol versioning in shared objects]))
247249
AM_CONDITIONAL(SYMBOL_VERSIONING, [test "x$enable_symbol_versioning" != "xno"])
248250
AS_IF([test "x$enable_symbol_versioning" = "xno"],
249-
[AC_MSG_WARN([Disabling symbol versioning breaks ABI compatibility.])])
251+
[AC_MSG_WARN([Disabling symbol versioning breaks ABI compatibility.])
252+
enable_symbol_versioning=no],[enable_symbol_versioning=yes])
250253

251254
dnl The directories with content.
252255

@@ -358,3 +361,39 @@ CC_BIARCH="$CC $utrace_biarch"
358361
AC_SUBST([CC_BIARCH])
359362

360363
AC_OUTPUT
364+
365+
AC_MSG_NOTICE([
366+
=====================================================================
367+
elfutils: ${PACKAGE_VERSION} (eu_version: ${eu_version})
368+
=====================================================================
369+
370+
Prefix : ${prefix}
371+
Program prefix ("eu-" recommended) : ${program_prefix}
372+
Source code location : ${srcdir}
373+
Maintainer mode : ${enable_maintainer_mode}
374+
libebl modules subdirectory : ${LIBEBL_SUBDIR}
375+
build arch : ${ac_cv_build}
376+
377+
RECOMMENDED FEATURES (should all be yes)
378+
gzip support : ${with_zlib}
379+
bzip2 support : ${with_bzlib}
380+
lzma/xz support : ${with_lzma}
381+
libstdc++ demangle support : ${ac_cv_lib_stdcpp___cxa_demangle}
382+
File textrel check : ${enable_textrelcheck}
383+
Symbol versioning : ${enable_symbol_versioning}
384+
385+
NOT RECOMMENDED FEATURES (should all be no)
386+
Experimental thread safety : ${use_locks}
387+
388+
OTHER FEATURES
389+
Deterministic archives by default : ${default_ar_deterministic}
390+
Native language support : ${USE_NLS}
391+
392+
EXTRA TEST FEATURES (used with make check)
393+
debug branch prediction : ${use_debugpred}
394+
gprof support : ${use_gprof}
395+
gcov support : ${use_gcov}
396+
run all tests under valgrind : ${use_valgrind}
397+
use rpath in tests : ${tests_use_rpath}
398+
test biarch : ${utrace_cv_cc_biarch}
399+
])

m4/ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2015-05-01 Mark Wielaard <[email protected]>
2+
3+
* zip.m4: Explicitly set with_ to no, if not yes.
4+
15
2014-07-14 Mark Wielaard <[email protected]>
26

37
* biarch.m4 (utrace_BIARCH): Set biarch-no for cross-compile using

m4/zip.m4

+2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ fi
1414
AM_CONDITIONAL([$2], test $with_[$1] = yes)
1515
if test $with_[$1] = yes; then
1616
AC_DEFINE(USE_[$2])
17+
else
18+
with_[$1]=no
1719
fi
1820
AH_TEMPLATE(USE_[$2], [Support $5 decompression via -l$3.])])

0 commit comments

Comments
 (0)