stacktrace, exec amd sys/mman.h are not available in windows

This commit is contained in:
Marc Wäckerlin
2017-04-05 10:50:42 +00:00
parent c901c00ba1
commit df16c058fd
4 changed files with 14 additions and 5 deletions

View File

@@ -59,10 +59,11 @@ AC_ARG_ENABLE(dir,
AS_HELP_STRING([--disable-dir], [disable POSIX directory access]),
[have_dir="$enableval"])
AM_CONDITIONAL(HAVE_DIR, test "$have_dir" = "yes")
AC_ARG_ENABLE(exec,
AC_ARG_ENABLE(exec,
AS_HELP_STRING([--disable-exec],
[disable UNIX fork and execute with pipes]),
[have_exec="$enableval"])
[have_exec="$enableval"],
[if "$MINGW" = "1"; then have_exec="no"; else have_exec="yes"; fi])
AM_CONDITIONAL(HAVE_EXEC, test "$have_exec" = "yes")
AC_ARG_ENABLE(regexp,
AS_HELP_STRING([--disable-regexp],
@@ -86,7 +87,8 @@ AC_ARG_ENABLE(dynamicstack,
AC_ARG_ENABLE(stacktrace,
AS_HELP_STRING([--disable-stacktrace],
[disable stack trace, use this if you cannot compile the library on your system otherwise and you still want to use the other parts]),
[have_stacktrace="$enableval"], [have_stacktrace="yes"])
[have_stacktrace="$enableval"],
[if "$MINGW" = "1"; then have_stacktrace="no"; else have_stacktrace="yes"; fi])
AM_CONDITIONAL(HAVE_STACKTRACE, test "$have_stacktrace" = "yes")
if test "$have_stacktrace" = "yes"; then
# Hack for bug:
@@ -169,8 +171,9 @@ AM_CONDITIONAL(HAVE_BOOST_THREAD, test -n "$BOOST_THREAD_LIB")
# special dependencies for specific distros
AX_ALL_BUILD_DEPEND_DEV(binutils)
AX_ALL_DEPEND_IFEXISTS_DEV(libiberty)
AX_ALL_DEPEND_IFEXISTS_DEV(liblog4cxx)
AX_ALL_DEPEND_IFEXISTS_DEV(liblog4cxx10)
AX_DEB_BUILD_DEPEND(libboost-dev)
AX_DEB_BUILD_DEPEND(liblog4cxx-dev)
AX_DEB_BUILD_DEPEND(libz-dev)
AX_RPM_BUILD_DEPEND(boost-devel)
AX_RPM_BUILD_DEPEND(zlib-devel)