[Ltrace-devel] Compilation error with dwarf code

Dima Kogan lists at dima.secretsauce.net
Tue May 13 08:44:22 UTC 2014


Petr Machata <pmachata at redhat.com> writes:

> Regarding this:
>
> +AM_CONDITIONAL(HAVE_LIBDW, test x"$enable_elfutils" = xyes)
>
> I already see the following in configure.ac:
>
> if test x"$enable_elfutils" = xyes; then
>   libdw_LIBS=-ldw
>   AC_SUBST(libdw_LIBS)
>   AC_DEFINE([HAVE_LIBDW], [1], [we have elfutils libdw])
> fi
>
> Which does the same.

It does the same, but apparently autoconf is separate from automake. So
without that extra AM_CONDITIONAL line you can't put in that extra logic
in Makefile.am. You'll see that if you try. This double-definition of
HAVE_LIBDW is what maybe you could avoid if you really knew how to use
automake/autoconf. I avoid them when I can, so I'm not an expert.

dima



More information about the Ltrace-devel mailing list