Commit 139852e8 authored by Julian Kranz's avatar Julian Kranz

Automake

parent 0f867851
......@@ -22,6 +22,9 @@ EXEEXT=
# we need to add a dependency to the actual backend to this variable
libjrreil_la_LIBADD =
libx86_tester_la_LIBADD =
libgdsl_multiplex_la_LIBADD =
decoder_cli_LDADD =
semantics_cli_LDADD =
semantics_cli_dynamic_LDADD =
......@@ -537,7 +540,7 @@ include_HEADERS += $(srcdir)/libs/x86-tester/include/tbgen.h \
$(srcdir)/libs/x86-tester/include/executor.h \
$(srcdir)/libs/x86-tester/include/tester.h
if HAVE_MEMSTREAM
libx86_tester_la_LDADD += libmemstream.la
libx86_tester_la_LIBADD += libmemstream.la
endif
endif
......@@ -554,13 +557,27 @@ libgdsl_multiplex_la_CFLAGS = -I$(srcdir)/libs/gdsl-multiplex/include
libgdsl_multiplex_la_LDFLAGS = -ldl
include_HEADERS += $(srcdir)/libs/gdsl-multiplex/include/gdsl_multiplex.h
if HAVE_MEMSTREAM
libgdsl_multiplex_la_LDADD += libmemstream.la
libgdsl_multiplex_la_LIBADD += libmemstream.la
endif
endif
if HAVE_MEMSTREAM
libmemstream_la_SOURCES = $(srcdir)/libs/memstream/src/memstream.c
libmemstream_la_CFLAGS = -I$(srcdir)/libs/memstream/include
include_HEADERS += $(srcdir)/libs/memstream/include/memstream.h
endif
#if HAVE_MEMSTREAM
#$(info HAVE_MEMSTREAM)
#else
#$(info NOT HAVE_MEMSTREAM)
#endif
#
#if HAVE_OPEN_MEMSTREAM
#$(info HAVE_OPEN_MEMSTREAM)
#else
#$(info NOT HAVE_OPEN_MEMSTREAM)
#endif
if INSTALL_AUXBINS
if HAVE_DECODER_CLI
......
......@@ -93,10 +93,10 @@ AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[#include <stdio.h>]],
[[char *c; size_t s; FILE *f = open_memstream(&c, &s);]])],
[AC_MSG_RESULT([yes])
has_open_memstream=1;],
has_open_memstream=yes;],
[AC_MSG_RESULT([no])
LIBS=$OLD_LIBS; dnl reset to old value since XXX was not found
has_open_memstream=0;])
has_open_memstream=no;])
AC_CHECK_HEADERS([gelf.h], [has_elf=yes], [has_elf=no])
AC_CHECK_HEADERS([jni.h], [has_jni=yes], [has_jni=no])
......@@ -209,6 +209,11 @@ AM_COND_IF([ENV_X86_TEST_RUNNER], [AM_COND_IF([HAVE_READHEX], [AM_COND_IF([HAVE_
AM_COND_IF([ENV_X86_TEST_STATS_RUNNER], [AM_COND_IF([HAVE_X86_GENERATOR], [AM_COND_IF([HAVE_X86_TESTER], [AM_CONDITIONAL([HAVE_X86_TEST_STATS_RUNNER], true)])])])
AM_COND_IF([HAVE_OPEN_MEMSTREAM], [AM_CONDITIONAL([HAVE_MEMSTREAM], false)])
#echo HAVE_OPEN_MEMSTREAM_TRUE $HAVE_OPEN_MEMSTREAM_TRUE
#echo HAVE_MEMSTREAM_TRUE $HAVE_MEMSTREAM_TRUE
#echo HAVE_OPEN_MEMSTREAM_FALSE $HAVE_OPEN_MEMSTREAM_FALSE
#echo HAVE_MEMSTREAM_FALSE $HAVE_MEMSTREAM_FALSE
dnl check if the helper executables should be build and/or installed
AC_ARG_ENABLE([install-auxbins],
[AS_HELP_STRING(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment