1 --- configure.ac 2015-10-15 15:16:57.000000000 +0200
2 +++ configure.ac 2015-11-20 05:32:57.723901582 +0100
7 +dnl Check if we have fts available from our libc
10 + [#if !defined(__x86_64__)
11 + #undef _FILE_OFFSET_BITS
12 + #define _FILE_OFFSET_BITS 32
15 + [FTS* fts = 0; return fts_close(fts); return 0;]
17 + [libc_has_fts="true"],
18 + [libc_has_fts="false"]
21 +dnl If our libc doesn't provide fts, then test for libfts
22 +if test "$libc_has_fts" = "false" ; then
23 + AC_MSG_WARN("libc does not have fts")
24 + AC_CHECK_LIB([fts], [fts_close], [have_fts="true"], [have_fts="false"])
26 + if test "$have_fts" = "false"; then
27 + AC_MSG_ERROR("no libfts found")
34 +AC_SUBST([fts_LDADD])
36 +dnl Check if we have obstack available from our libc
39 + [#include <obstack.h>],
40 + [_obstack_begin(0, 0, 0, NULL, NULL); return 0;]
42 + [libc_has_obstack="true"],
43 + [libc_has_obstack="false"]
46 +dnl If our libc doesn't provide obstack, then test for libobstack
47 +if test "$libc_has_obstack" = "false" ; then
48 + AC_MSG_WARN("libc does not have obstack")
49 + AC_CHECK_LIB([obstack], [_obstack_begin], [have_obstack="true"], [have_obstack="false"])
51 + if test "$have_obstack" = "false"; then
52 + AC_MSG_ERROR("no libobstack found")
54 + obstack_LDADD="-lobstack"
59 +AC_SUBST([obstack_LDADD])
61 +dnl The directories with content.
63 dnl The directories with content.
66 --- src/Makefile.am.orig
70 libasm = ../libasm/libasm.so
71 libdw = ../libdw/libdw.so
72 -libelf = ../libelf/libelf.so
73 +libelf = ../libelf/libelf.so $(fts_LDADD) $(obstack_LDADD)
75 libebl = ../libebl/libebl.a
76 libeu = ../lib/libeu.a
77 --- libdw/Makefile.am.orig
80 ../libcpu/libcpu_pic.a libdw_pic.a ../libdwelf/libdwelf_pic.a \
81 ../libdwfl/libdwfl_pic.a
82 libdw_so_DEPS = ../lib/libeu.a ../libelf/libelf.so
83 -libdw_so_LDLIBS = $(libdw_so_DEPS) -ldl -lz $(argp_LDADD) $(zip_LIBS) -pthread
84 +libdw_so_LDLIBS = $(libdw_so_DEPS) -ldl -lz $(argp_LDADD) $(fts_LDADD) $(obstack_LDADD) $(zip_LIBS) -pthread
86 libdw.so$(EXEEXT): $(srcdir)/libdw.map $(libdw_so_LIBS) $(libdw_so_DEPS)
87 $(AM_V_CCLD)$(LINK) $(dso_LDFLAGS) -o $@ \