diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2015-12-03 02:45:07 +0300 |
---|---|---|
committer | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2015-12-30 19:30:09 +0300 |
commit | 0d309a85c768317e9b1db60c30898f34a039448a (patch) | |
tree | 698f9e913eec33b96d06b5d3cb5de71bf399d3a0 /configure.ac | |
parent | 4abeb9c0bb3fd0cb12eadda9b9b77f8dd1c13f50 (diff) |
Fix linking on FreeBSD
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c61710a..2e07e28 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,13 @@ AC_ARG_ENABLE(valgrind,[ --enable-valgrind fixes for correct valgrind work], ]) # Checks for header files. -AC_CHECK_HEADERS([execinfo.h fcntl.h malloc.h netdb.h stdlib.h string.h unistd.h arpa/inet.h mach/mach.h netinet/in.h sys/file.h sys/socket.h termios.h]) +AC_CHECK_HEADERS([fcntl.h malloc.h netdb.h stdlib.h string.h unistd.h arpa/inet.h mach/mach.h netinet/in.h sys/file.h sys/socket.h termios.h]) + +# FreeBSD needs -lexecinfo +AC_CHECK_HEADERS([execinfo.h], [tgl_found_execinfo_header=yes; break;]) +AS_IF([test "x$tgl_found_execinfo_header" = "xyes"], + [AC_SEARCH_LIBS([backtrace_symbols_fd], [execinfo])]) + # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T |