Commit 3977cbd4 authored by Julian Kranz's avatar Julian Kranz

Automake

parent 7e828c9a
......@@ -26,6 +26,7 @@ missing
tools/.cproject
tools/.project
tools/.settings/
*.cm/
### Manual make
......
......@@ -92,6 +92,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
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])
AM_CONDITIONAL([X86_RREIL],[test x$with_frontend = xx86-rreil])
AM_CONDITIONAL([X86],[test x$with_frontend = xx86])
......@@ -106,6 +107,97 @@ 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])
AM_CONDITIONAL([HAVE_ELF], [test x$has_elf = xyes])
#AM_COND_IF([HAVE_RREIL], [AM_COND_IF([HAVE_POSIX200809_C11], [has_semantics_cli=yes], [has_semantics_cli=yes])])
#AM_COND_IF([HAVE_RREIL], [AM_COND_IF([HAVE_POSIX200809_C11], [AM_CONDITIONAL([HAVE_SEMANTICS_CLI], true)], [AM_CONDITIONAL([HAVE_SEMANTICS_CLI], true)])])
#Library requirements
AM_CONDITIONAL([ENV_RREIL_LIB], false)
AM_CONDITIONAL([ENV_RREIL_SIM], false)
AM_CONDITIONAL([ENV_GDWRAP], false)
AM_CONDITIONAL([ENV_GDSL_MULTIPLEX], false)
AM_CONDITIONAL([ENV_JRREIL], false)
AM_CONDITIONAL([ENV_X86_LIB], false)
AM_CONDITIONAL([ENV_READHEX], false)
AM_CONDITIONAL([ENV_UTIL], false)
AM_CONDITIONAL([ENV_X86_TESTER], false)
AM_CONDITIONAL([ENV_X86_GENERATOR], false)
AM_CONDITIONAL([ENV_UTIL], true)
AM_CONDITIONAL([ENV_GDSL_MULTIPLEX], true)
AM_CONDITIONAL([ENV_GDWRAP], true)
AM_CONDITIONAL([ENV_READHEX], true)
AM_COND_IF([HAVE_RREIL], [AM_COND_IF([HAVE_ANON_MEMBERS], [AM_COND_IF([HAVE_POSIX200809_C11], [AM_CONDITIONAL([ENV_RREIL_LIB], true)], [AM_CONDITIONAL([ENV_RREIL_LIB], false)])])])
AM_CONDITIONAL([ENV_JRREIL], [test x$has_jni = xyes])
AM_COND_IF([HAVE_X86], [AM_CONDITIONAL([ENV_X86_LIB], true)], [AM_CONDITIONAL([ENV_X86_LIB], false)])
AM_COND_IF([X86_RREIL], [AM_COND_IF([HAVE_ANON_MEMBERS], [AM_COND_IF([HAVE_POSIX200809_C11], [AM_CONDITIONAL([ENV_RREIL_SIM], true)], [AM_CONDITIONAL([ENV_RREIL_SIM], false)])])])
AM_COND_IF([X86_RREIL], [AM_COND_IF([HAVE_ANON_MEMBERS], [AM_COND_IF([HAVE_POSIX200809_C11], [AM_CONDITIONAL([ENV_X86_TESTER], true)], [AM_CONDITIONAL([ENV_X86_TESTER], false)])])])
AM_CONDITIONAL([ENV_X86_GENERATOR], true)
#Tool requirements
AM_CONDITIONAL([ENV_DECODER_CLI], false)
AM_CONDITIONAL([ENV_SEMANTICS_CLI], false)
AM_CONDITIONAL([ENV_SEMANTICS_CLI_DYNAMIC], false)
AM_CONDITIONAL([ENV_SEMANTICS_CIF_CLI], false)
AM_CONDITIONAL([ENV_SWEEP], false)
AM_CONDITIONAL([ENV_SEMANTICS_OPT], false)
AM_CONDITIONAL([ENV_LIVENESS_SWEEP], false)
AM_CONDITIONAL([ENV_X86_TEST_RUNNER], false)
AM_CONDITIONAL([ENV_X86_STATS_TEST_RUNNER], false)
AM_CONDITIONAL([ENV_DECODER_CLI], true)
AM_COND_IF([HAVE_RREIL], [AM_CONDITIONAL([ENV_SEMANTICS_CLI], true)], [AM_CONDITIONAL([ENV_SEMANTICS_CLI], false)])
AM_COND_IF([HAVE_RREIL], [AM_CONDITIONAL([ENV_SEMANTICS_CLI_DYNAMIC], true)], [AM_CONDITIONAL([ENV_SEMANTICS_CLI_DYNAMIC], false)])
AM_COND_IF([HAVE_RREIL], [AM_CONDITIONAL([ENV_SEMANTICS_CIF_CLI], true)], [AM_CONDITIONAL([ENV_SEMANTICS_CIF_CLI], false)])
AM_COND_IF([HAVE_RREIL], [AM_COND_IF([HAVE_ELF], [AM_CONDITIONAL([ENV_SWEEP], true)], [AM_CONDITIONAL([ENV_SWEEP], false)])])
AM_COND_IF([HAVE_RREIL], [AM_COND_IF([HAVE_ELF], [AM_CONDITIONAL([ENV_SEMANTICS_OPT], true)], [AM_CONDITIONAL([ENV_SEMANTICS_OPT], false)])])
AM_COND_IF([HAVE_RREIL], [AM_COND_IF([HAVE_ELF], [AM_CONDITIONAL([ENV_LIVENESS_SWEEP], true)], [AM_CONDITIONAL([ENV_LIVENESS_SWEEP], false)])])
AM_COND_IF([X86_RREIL], [AM_CONDITIONAL([ENV_X86_TEST_RUNNER], true)], [AM_CONDITIONAL([ENV_X86_TEST_RUNNER], false)])
AM_COND_IF([X86_RREIL], [AM_CONDITIONAL([ENV_X86_TEST_STATS_RUNNER], true)], [AM_CONDITIONAL([ENV_X86_TEST_STATS_RUNNER], false)])
#Library dependencies
AM_CONDITIONAL([HAVE_RREIL_LIB], false)
AM_CONDITIONAL([HAVE_RREIL_SIM], false)
AM_CONDITIONAL([HAVE_GDWRAP], false)
AM_CONDITIONAL([HAVE_GDSL_MULTIPLEX], false)
AM_CONDITIONAL([HAVE_JRREIL], false)
AM_CONDITIONAL([HAVE_X86_LIB], false)
AM_CONDITIONAL([HAVE_READHEX], false)
AM_CONDITIONAL([HAVE_UTIL], false)
AM_CONDITIONAL([HAVE_X86_TESTER], false)
AM_CONDITIONAL([HAVE_X86_GENERATOR], false)
AM_COND_IF([ENV_RREIL_LIB], [AM_CONDITIONAL([HAVE_RREIL_LIB], true)])
AM_COND_IF([ENV_RREIL_SIM], [AM_COND_IF([HAVE_RREIL_LIB], [AM_CONDITIONAL([HAVE_RREIL_SIM], true)])])
AM_COND_IF([ENV_GDWRAP], [AM_CONDITIONAL([HAVE_GDWRAP], true)])
AM_COND_IF([ENV_GDSL_MULTIPLEX], [AM_CONDITIONAL([HAVE_GDSL_MULTIPLEX], true)])
AM_COND_IF([ENV_JRREIL], [AM_COND_IF([HAVE_GDSL_MULTIPLEX], [AM_CONDITIONAL([HAVE_JRREIL], true)])])
AM_COND_IF([ENV_X86_LIB], [AM_CONDITIONAL([HAVE_X86_LIB], true)])
AM_COND_IF([ENV_READHEX], [AM_CONDITIONAL([HAVE_READHEX], true)])
AM_COND_IF([ENV_UTIL], [AM_CONDITIONAL([HAVE_UTIL], true)])
AM_COND_IF([ENV_X86_TESTER], [AM_COND_IF([HAVE_UTIL], [AM_COND_IF([HAVE_RREIL_LIB], [AM_COND_IF([HAVE_GDWRAP], [AM_COND_IF([HAVE_X86_LIB], [AM_COND_IF([HAVE_RREIL_SIM], [AM_CONDITIONAL([HAVE_X86_TESTER], true)])])])])])])
AM_COND_IF([ENV_X86_GENERATOR], [AM_CONDITIONAL([HAVE_X86_GENERATOR], true)])
#Tool dependencies
AM_CONDITIONAL([HAVE_DECODER_CLI], false)
AM_CONDITIONAL([HAVE_SEMANTICS_CLI], false)
AM_CONDITIONAL([HAVE_SEMANTICS_CLI_DYNAMIC], false)
AM_CONDITIONAL([HAVE_SEMANTICS_CIF_CLI], false)
AM_CONDITIONAL([HAVE_SWEEP], false)
AM_CONDITIONAL([HAVE_SEMANTICS_OPT], false)
AM_CONDITIONAL([HAVE_LIVENESS_SWEEP], false)
AM_CONDITIONAL([HAVE_X86_TEST_RUNNER], false)
AM_CONDITIONAL([HAVE_X86_STATS_TEST_RUNNER], false)
AM_COND_IF([ENV_DECODER_CLI], [AM_COND_IF([HAVE_READHEX], [AM_CONDITIONAL([HAVE_DECODER_CLI], true)])])
AM_COND_IF([ENV_SEMANTICS_CLI], [AM_COND_IF([HAVE_READHEX], [AM_CONDITIONAL([HAVE_SEMANTICS_CLI], true)])])
AM_COND_IF([ENV_SEMANTICS_CLI_DYNAMIC], [AM_COND_IF([HAVE_READHEX], [AM_COND_IF([HAVE_GDSL_MULTIPLEX], [AM_CONDITIONAL([HAVE_SEMANTICS_CLI_DYNAMIC], true)])])])
AM_COND_IF([ENV_SEMANTICS_CIF_CLI], [AM_COND_IF([HAVE_READHEX], [AM_CONDITIONAL([HAVE_SEMANTICS_CIF_CLI], true)])])
AM_COND_IF([ENV_SWEEP], [AM_CONDITIONAL([HAVE_SWEEP], true)])
AM_COND_IF([ENV_SEMANTICS_OPT], [AM_CONDITIONAL([HAVE_SEMANTICS_OPT], true)])
AM_COND_IF([ENV_LIVENESS_SWEEP], [AM_CONDITIONAL([HAVE_LIVENESS_SWEEP], true)])
AM_COND_IF([ENV_X86_TEST_RUNNER], [AM_COND_IF([HAVE_READHEX], [AM_COND_IF([HAVE_X86_GENERATOR], [AM_COND_IF([HAVE_X86_TESTER], [AM_CONDITIONAL([HAVE_X86_TEST_RUNNER], true)])])])])
AM_COND_IF([ENV_X86_TEST_STATS_RUNNER], [AM_COND_IF([HAVE_X86_GENERATOR], [AM_COND_IF([HAVE_X86_TESTER], [AM_CONDITIONAL([HAVE_X86_STATS_TEST_RUNNER], true)])])])
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