summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
...
* Prepare for elfutils 0.168 release.elfutils-0.168Mark Wielaard2016-12-271-1/+1
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* http://elfutils.org/ is now hosted at http://sourceware.org/elfutils/Mark Wielaard2016-12-241-2/+2
| | | | | | | | | | | | | | | | | fedorahosted used to be our home, but we are now hosted at sourceware. Change the elfutils project home to http://elfutils.org/ Point hosted services (email, release, git, bug tracker and web pages) to https://sourceware.org/elfutils/ Move design notes from README to NOTES. Add URLs for home, releases, bugs, git and mailinglist to README. Make the --version output of all tools the same by using a common print_version function and update the publicly shown copyright holder to the elfutils developers. Signed-off-by: Mark Wielaard <[email protected]>
* Only workaround fts.h if we have a bad version that doesn't handle LFS.Mark Wielaard2016-11-231-0/+9
| | | | | | | | | | Older versions of glibc included an fts implementation that didn't have Large File System support. We worked around that in linux-kernel-modules.c by including it early before config.h and then redefining some symbols to get the 64-bit versions. This is somewhat fragile and not necessary with newer glibc. If possible we want the 64bit fts version always. Signed-off-by: Mark Wielaard <[email protected]>
* Add GCC7 -Wimplicit-fallthrough support/fixes.Mark Wielaard2016-11-101-0/+10
| | | | | | | | | | | GCC7 will have a new -Wimplicit-fallthrough warning. It did catch one small buglet in elflint option procession. So it seems useful to enable to make sure all swatch case fallthroughs are deliberate. Add configure check to detect whether gcc support -Wimplicit-fallthrough and enable it. Add fixes and explicit fallthrough comments where necessary. Signed-off-by: Mark Wielaard <[email protected]>
* Do not depend on some non-POSIX features.Akihiko Odaki2016-10-131-0/+5
| | | | | | | | Define/open code memrchr, rawmemchr, powerof2 and TEMP_FAILURE_RETRY if not available through system headers. Signed-off-by: Akihiko Odaki <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* Prepare 0.167 release.Mark Wielaard2016-08-041-1/+1
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Remove eu-ld and unused code.Mark Wielaard2016-08-031-30/+0
| | | | | | | | Nobody has hacked on eu-ld in a very long time. It didn't really work. And we didn't install it by default in the spec file. Remove sources, the build rules and any (now) unused code. Signed-off-by: Mark Wielaard <[email protected]>
* Add support for BPFRichard Henderson2016-06-281-0/+4
| | | | Signed-off-by: Richard Henderson <[email protected]>
* config: Pass the compiler -Werror during warning detectionFilipe Brandenburger2016-05-031-3/+3
| | | | | | | | | | | | | | Otherwise the compilation prints a warning but exits with 0 return code. However, later during the compilation, when -Werror is enforced to about every file, the unsupported options start breaking the builds. Tested: Ran configure with clang-3.5 and built libelf/ tree with it. $ autoreconf -i $ ./configure CC=clang-3.5 ... $ make -C libelf Signed-off-by: Filipe Brandenburger <[email protected]>
* config: Fix check for argp_parse to pass &argvFilipe Brandenburger2016-05-021-1/+1
| | | | | | | | | | | | | | | | | | | Right now it's passing a char* when it expects a char** instead. This usually produces a warning that may go unnoticed, but if CFLAGS contains -Werror, that breaks the ./configure run with the following error: $ ./configure CFLAGS=-Werror ... configure: WARNING: "libc does not have argp" checking for argp_parse in -largp... no configure: error: "no libargp found" Tested: Checked that after this fix, running ./configure CFLAGS=-Werror works as expected and argp_parse is correctly detected. Signed-off-by: Filipe Brandenburger <[email protected]>
* Prepare 0.166 release.elfutils-0.166Mark Wielaard2016-03-311-1/+1
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* config: Use --program-prefix=eu- by default.Mark Wielaard2016-03-021-0/+13
| | | | | | | | | | | | We want eu- as default program prefix if none was given by the user. But if the user explicitly provided --program-prefix="" then pretend it wasn't set at all (NONE). This makes sure all tools will be installed as eu-<program>. We want this default since most tools would normally conflict with the GNU binutils variants that have similar names. Signed-off-by: Mark Wielaard <[email protected]>
* config: Check for and use gcc -Wnull-dereference.Mark Wielaard2016-02-221-0/+10
| | | | | | -Wnull-dereference is new in GCC6 Signed-off-by: Mark Wielaard <[email protected]>
* config: Check for and use gcc -Wlogical-op and -Wduplicated-cond.Mark Wielaard2016-02-151-0/+22
| | | | | | | | | Both -Wlogical-op and -Wduplicated-cond may produce useful warnings. But we have to check them first. Older versions of gcc had a -Wlogical-op that warned on some constructs using macros that are not erronious. Only GCC6 has -Wduplicated-cond. Signed-off-by: Mark Wielaard <[email protected]>
* configure: clarify zlib error messageMike Frysinger2016-01-141-1/+1
| | | | | | Also drop the spurious quotes. Signed-off-by: Mike Frysinger <[email protected]>
* Prepare 0.165 release.Mark Wielaard2016-01-081-1/+1
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* config: Add libelf and libdw pkg-config files.Mark Wielaard2016-01-051-2/+10
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Make zlib mandatory.Mark Wielaard2015-10-261-2/+8
| | | | | | Explicitly link libelf and libdw with -lz. Signed-off-by: Mark Wielaard <[email protected]>
* Prepare 0.164 release.Mark Wielaard2015-10-151-1/+1
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* configure.ac: Add AM_SILENT_RULES([yes])Mark Wielaard2015-10-121-0/+2
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Use -fPIC instead of -fpic when generating PIC code.Jose E. Marchesi2015-10-061-1/+1
| | | | | | | This avoids relocation overflows in sparc/sparc64 targets while linking, where the reachable data using -fpic is only 4kb. Signed-off-by: Jose E. Marchesi <[email protected]>
* Prepare 0.163 release.elfutils-0.163Mark Wielaard2015-06-191-1/+1
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Prepare 0.162 release.Mark Wielaard2015-06-101-1/+1
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* configure: Add check for gcc -Wstack-usage.Mark Wielaard2015-06-101-0/+8
| | | | | | | Some older gcc versions don't support -Wstack-usage. Only use it when accepted by the compiler. Signed-off-by: Mark Wielaard <[email protected]>
* Define MODVERSION in a more reproducable way.Mark Wielaard2015-06-051-6/+6
| | | | | | | | | We define MODVERSION to make sure the libebl backend modules match the elfutils build when we dlopen them. Using hostname and date makes it very hard to create reproducable builds. Define them a little more reproducable using LIBEBL_SUBDIR, eu_version and ac_cv_build. Signed-off-by: Mark Wielaard <[email protected]>
* Fix sanitize-undefined config check. Don't ALLOW_UNALIGNED when checking.Mark Wielaard2015-06-051-3/+9
| | | | | | | | | The -fsanitize=undefined check need to use AC_LINK_IFELSE to make sure libubsan is installed. When doing undefined checking we should disable ALLOW_UNALIGNED memory accesses to catch issues where we do unaligned accesses by accident. Signed-off-by: Mark Wielaard <[email protected]>
* configure: Add check for bunzip2 and maintainer-mode tools.Mark Wielaard2015-06-051-0/+24
| | | | | | | | Without bunzip2 make check cannot be run. To generate all files in maintainer-mode flex and bison are needed. Otherwise check that libdw/known-dwarf.h is already generated. Signed-off-by: Mark Wielaard <[email protected]>
* configure: Add --enable-sanitize-undefined.Mark Wielaard2015-05-271-0/+18
| | | | | | | | | | | | Now that we are -fsanitize=undefined clean make sure we keep it that way. We do have to disable alignment checking. Because we might explicitly use unaligned accesses (see ALLOW_UNALIGNED). Rename DISTCHECK_CONFIGURE_FLAGS to AM_DISTCHECK_CONFIGURE_FLAGS, so the user can override. And add --enable-sanitize-undefined. Signed-off-by: Mark Wielaard <[email protected]>
* Link against standalone argp libraryAnthony G. Basile2015-05-041-0/+25
| | | | | | | | | | | | | | argp is not part of POSIX standards and not provided by uClibc or some other standard C libraries. However, it is possible to link against a breakout argp library. One is provided at http://www.lysator.liu.se/~nisse/misc/ This patch tests if libc provides argp otherwise it adds the linker flag -largp where needed in the build system. Signed-off-by: Anthony G. Basile <[email protected]> Signed-off-by: Max Filippov <[email protected]>
* configure: fix enable_demangler settingMax Filippov2015-05-031-2/+2
| | | | | | | Add missing comma to AS_IF, otherwise enable_demangler is always set to 'no'. Canonicalize tests. Signed-off-by: Max Filippov <[email protected]>
* tests: Split run-stack tests to support missing demangler.Mark Wielaard2015-05-011-1/+3
| | | | | | SKIP tests that need a demangler if it is not there. Signed-off-by: Mark Wielaard <[email protected]>
* configure: print feature settings overviewMark Wielaard2015-05-011-5/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]>
* Allow disabling symbol versioning at configure timeMax Filippov2015-04-231-0/+7
| | | | | | | | | | | | | Due to missing symbol versioning support in uClibc calls to versioned functions that internally call different version of themselves results in infinite recursion. Introduce macro SYMBOL_VERSIONING and use it instead of plain SHARED to decide whether symbol versioning is needed. Control this macro definition with new configure option --disable-symbol-versioning. Signed-off-by: Max Filippov <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* configure: Add explicit checks for all GNU99 extensions used.Mark Wielaard2015-04-141-3/+26
| | | | | | | | | | | | Some compilers (clang) claim to support -std=gnu99 but don't actually implement all extensions we use in the code. Producing really hard to parse errors. Add explicit checks for some of the other language extensions we use, Nested Functions and Arrays of Variable Length, to the configure check to catch such issues early. https://bugzilla.redhat.com/show_bug.cgi?id=1211357 Signed-off-by: Mark Wielaard <[email protected]>
* Fix -Wimplicit warnings.Mark Wielaard2015-03-131-3/+4
|
* Prepare 0.161 release.Mark Wielaard2014-12-181-1/+1
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Add configure --disable-textrelcheck option to enable CC=afl-fuzz on 32bit.Mark Wielaard2014-12-041-0/+5
| | | | | | | | | | | | | | | Using american fuzzy lop has found a lot of issues. It would be nice to make using it a bit easier. Our build files make sure that no shared library uses text relocations, but afl-gcc will insert some on i686. http://www.akkadia.org/drepper/textrelocs.html Now CC=afl-gcc ./configure --disable-textrelcheck will allow them so that afl can instrument the libraries. Don't try to use or install them except with afl-fuzz. When selinux is enabled it might prevent loading the libraries with DT_TEXTREL set. Signed-off-by: Mark Wielaard <[email protected]>
* Prepare 0.160 release.Mark Wielaard2014-08-251-1/+1
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* aarch64: use <sys/user.h> defined register structuresKyle McMartin2014-08-011-0/+13
| | | | | | | | | | | glibc now supplies these (compatible) structs instead of including the kernel's <asm/ptrace.h> header, so let's use them. Annoyingly this will cause new elfutils to FTBFS on old glibc, and vice versa. So include a new configure check for the new struct names and use the old ones if they are not avilable. Signed-off-by: Kyle McMartin <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* Prepare 0.159 release.Mark Wielaard2014-05-181-1/+1
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Remove --enable-dwz. dwz alt debug is no longer experimental.Mark Wielaard2014-05-031-10/+0
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* libdwelf: New DWARF ELF Low-level Functions. Add dwelf_elf_gnu_debuglink.Mark Wielaard2014-04-241-0/+3
| | | | | | | | New public header elfutils/libdwelf.h for low-level DWARF/ELF helper functions. The new function dwelf_elf_gnu_debuglink returns the name and crc as found in the .gnu_debuglink section of an ELF file. Signed-off-by: Mark Wielaard <[email protected]>
* Remove mudflap build option.Mark Wielaard2014-04-181-21/+1
| | | | | | | | | The --enable-mudflap configure build has been broken for 2 years without anybody apparently noticing. GCC 4.9 removed mudflap support. Before release we now run make distcheck with valgrind support. Removal of the mudflap configure option simplifies the build a little. Signed-off-by: Mark Wielaard <[email protected]>
* Prepare 0.158 release.Mark Wielaard2014-01-031-3/+3
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Tests for unwinder of x86*.Jan Kratochvil2013-12-021-3/+1
| | | | Signed-off-by: Jan Kratochvil <[email protected]>
* Unwinder for x86*.Jan Kratochvil2013-11-071-0/+11
| | | | | Signed-off-by: Jan Kratochvil <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* configure.ac: Warn when --enable-dwz=no, but /usr/lib/debug/.dwz exists.Mark Wielaard2013-11-061-0/+2
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* configure.ac: Add warning that --enable-thread-safety is experimental.Mark Wielaard2013-11-061-2/+5
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Check for prefixed ar, readelf, and nmMichael Forney2013-11-051-0/+4
| | | | | | | | Sometimes with cross-compile toolchains, the tools are prefixed with the target arch. Using AC_CHECK_TOOL looks for tools named like this. Signed-off-by: Michael Forney <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* Prepare 0.157 release.Mark Wielaard2013-09-271-2/+2
| | | | Signed-off-by: Mark Wielaard <[email protected]>