Commit 0359a527 authored by Julian Kranz's avatar Julian Kranz

Automake

parent 52a98abb
......@@ -364,14 +364,21 @@ endif
if X86_RREIL
if INSTALL_AUXLIBS
lib_LTLIBRARIES += libx86-tester.la libgdwrap.la
if HAVE_POSIX200809_C11
lib_LTLIBRARIES += libx86-tester.la
endif
lib_LTLIBRARIES += libgdwrap.la
else
if BUILD_AUXLIBS
noinst_LTLIBRARIES += libx86-tester.la libgdwrap.la
if HAVE_POSIX200809_C11
noinst_LTLIBRARIES += libx86-tester.la
endif
noinst_LTLIBRARIES += libgdwrap.la
endif
endif
endif
if HAVE_POSIX200809_C11
if HAVE_RREIL
if INSTALL_AUXLIBS
lib_LTLIBRARIES += librreil.la
......@@ -387,6 +394,7 @@ noinst_LTLIBRARIES += libgdsl-multiplex.la
endif
endif
endif
endif
libreadhex_la_SOURCES = libs/readhex/src/readhex.c
libreadhex_la_CFLAGS = -I./libs/readhex/include
......@@ -493,16 +501,20 @@ endif
if HAVE_RREIL
if INSTALL_AUXBINS
if HAVE_POSIX200809_C11
bin_PROGRAMS += semantics-cli-dynamic
endif
bin_PROGRAMS += decoder-cli
bin_PROGRAMS += semantics-cli
bin_PROGRAMS += semantics-cli-dynamic
bin_PROGRAMS += semantics-cif-cli
bin_PROGRAMS += sweep
else
if BUILD_AUXBINS
if HAVE_POSIX200809_C11
noinst_PROGRAMS += semantics-cli-dynamic
endif
noinst_PROGRAMS += decoder-cli
noinst_PROGRAMS += semantics-cli
noinst_PROGRAMS += semantics-cli-dynamic
noinst_PROGRAMS += semantics-cif-cli
noinst_PROGRAMS += sweep
endif
......@@ -511,15 +523,19 @@ endif
if X86_RREIL
if INSTALL_AUXBINS
bin_PROGRAMS += liveness_sweep
if HAVE_POSIX200809_C11
bin_PROGRAMS += x86_test_runner
bin_PROGRAMS += x86_test_stats_runner
endif
bin_PROGRAMS += liveness_sweep
else
if BUILD_AUXBINS
noinst_PROGRAMS += liveness_sweep
if HAVE_POSIX200809_C11
noinst_PROGRAMS += x86_test_runner
noinst_PROGRAMS += x86_test_stats_runner
endif
noinst_PROGRAMS += liveness_sweep
endif
endif
endif
......
......@@ -83,6 +83,12 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[struct inge { union { int a; int b }; }; struct inge i; i.a = 42;]])],
has_anon_members=no)
has_open_memstream=yes
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[#include <stdio.h>]],
[[char *c, size_t s, FILE *f = open_memstream(&c, &s);]])],
has_open_memstream=no)
AM_CONDITIONAL([X86_RREIL],[test x$with_frontend = xx86-rreil])
AM_CONDITIONAL([X86],[test x$with_frontend = xx86])
AM_CONDITIONAL([AVR_RREIL],[test x$with_frontend = xavr-rreil])
......@@ -92,6 +98,8 @@ AM_CONDITIONAL([HAVE_X86], [test x$has_x86 = xyes])
#AM_CONDITIONAL([HAVE_GNU_C11], [echo "int main(void) { return 0; }" | gcc -std=gnu11 -xc - -o /dev/null])
#AM_CONDITIONAL([HAVE_POSIX200809], [test `getconf _POSIX_VERSION` -ge 200809 >/dev/null 2>&1])
AM_CONDITIONAL([HAVE_ANON_MEMBERS], [test x$has_anon_members = xyes])
AM_CONDITIONAL([HAVE_OPEN_MEMSTREAM], [test x$has_open_memstream = xyes])
AM_CONDITIONAL([HAVE_POSIX200809_C11], [test x$has_anon_members = xyes && test x$has_open_memstream = xyes])
dnl check if the helper executables should be build and/or installed
AC_ARG_ENABLE([install-auxbins],
......
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