diff options
author | 2011-05-05 11:10:36 -0400 | |
---|---|---|
committer | 2011-05-05 11:10:36 -0400 | |
commit | df7e9066d5f19264caa2b27cdae8a8e27c67433d (patch) | |
tree | 35b0b76407850c54e516c8fdaeac75c007cae7b6 /configure.ac | |
parent | configure.ac: added check for more headers (diff) | |
download | elfix-df7e9066d5f19264caa2b27cdae8a8e27c67433d.tar.gz elfix-df7e9066d5f19264caa2b27cdae8a8e27c67433d.tar.bz2 elfix-df7e9066d5f19264caa2b27cdae8a8e27c67433d.zip |
Revamped tests, added poc
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index fe326ec..039a269 100644 --- a/configure.ac +++ b/configure.ac @@ -7,8 +7,6 @@ AC_CONFIG_SRCDIR([src/fix-gnustack.c]) #AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([1.11 foreign]) -# Checks for programs. -AC_PROG_CC AC_ARG_ENABLE( [tests], AS_HELP_STRING( @@ -27,16 +25,32 @@ AC_ARG_ENABLE( ) AM_CONDITIONAL([TEST],[test "x$has_yasm" = "xyes"]) +AC_ARG_ENABLE( + [poc], + AS_HELP_STRING( + [--enable-poc], + [build proof of concept code] + ) +) +AM_CONDITIONAL([POC],[test "x$enable_poc" = "xyes"]) + +# Checks for programs. +AC_PROG_CC +AC_CHECK_FUNCS([strerror]) +AC_FUNC_MMAP + # Checks for libraries. AC_CHECK_LIB([elf], [elf_begin]) # Checks for header files. +AC_CHECK_HEADERS([errno.h]) AC_CHECK_HEADERS([error.h]) AC_CHECK_HEADERS([fcntl.h]) AC_CHECK_HEADERS([gelf.h]) AC_CHECK_HEADERS([stdio.h]) AC_CHECK_HEADERS([stdlib.h]) AC_CHECK_HEADERS([string.h]) +AC_CHECK_HEADERS([sys/mman.h]) AC_CHECK_HEADERS([sys/stat.h]) AC_CHECK_HEADERS([sys/types.h]) AC_CHECK_HEADERS([unistd.h]) @@ -50,6 +64,7 @@ AC_FUNC_ERROR_AT_LINE AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile + poc/Makefile tests/Makefile]) AC_OUTPUT |