diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-02-17 16:47:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 16:47:52 +0100 |
commit | b4c6470df41c639a2fd3b854c5fec10718709a89 (patch) | |
tree | a1a842b4463742441eed0e03da29f3191c8e3b83 /configure.ac | |
parent | 0089fbcf0a7bf3ba92fa2ba657c5e7d70e395ed7 (diff) | |
parent | b267b065f5b4c6fef93cb6f26c59f2e5c7dc7342 (diff) | |
download | profani-tty-b4c6470df41c639a2fd3b854c5fec10718709a89.tar.gz |
Merge pull request #1269 from wstrm/add-sr.ht-ci
Add builds.sr.ht CI for OpenBSD
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 393e70d1..0800ea0a 100644 --- a/configure.ac +++ b/configure.ac @@ -106,13 +106,17 @@ else if test "x$enable_plugins" = xno; then AM_CONDITIONAL([BUILD_C_API], [false]) elif test "x$enable_c_plugins" != xno; then - AC_CHECK_LIB([dl], [main], - [AM_CONDITIONAL([BUILD_C_API], [true]) LIBS="$LIBS -ldl" AC_DEFINE([HAVE_C], [1], [C support])], - [AS_IF( - [test "x$enable_c_plugins" = xyes], - [AC_MSG_ERROR([dl library needed to run C plugins])], - [AM_CONDITIONAL([BUILD_C_API], [false])]) - ]) + # libdl doesn't exist as a separate library in OpenBSD/FreeBSD and is + # provided in the standard libraries. + AS_IF([test "x$PLATFORM" = xopenbsd -o "x$PLATFORM" = xfreebsd], + [AM_CONDITIONAL([BUILD_C_API], [true]) AC_DEFINE([HAVE_C], [1], [C support])], + [AC_CHECK_LIB([dl], [main], + [AM_CONDITIONAL([BUILD_C_API], [true]) LIBS="$LIBS -ldl" AC_DEFINE([HAVE_C], [1], [C support])], + [AS_IF( + [test "x$enable_c_plugins" = xyes], + [AC_MSG_ERROR([dl library needed to run C plugins])], + [AM_CONDITIONAL([BUILD_C_API], [false])]) + ])]) else AM_CONDITIONAL([BUILD_C_API], [false]) fi |