about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-09-08 00:36:11 +0100
committerJames Booth <boothj5@gmail.com>2016-09-08 00:36:11 +0100
commit56c0c533e3f2d8b01be16eecdafa39dc6ebb4e32 (patch)
treebebced24358fac2925a60b8353f7a4edee18f7bd
parent4647fd8a4fed432faf68de1b48d964deb01b7474 (diff)
downloadprofani-tty-56c0c533e3f2d8b01be16eecdafa39dc6ebb4e32.tar.gz
Disable C plugins on Cygwin
-rw-r--r--configure.ac26
1 files changed, 15 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index d0f6ee14..ab395741 100644
--- a/configure.ac
+++ b/configure.ac
@@ -96,19 +96,23 @@ else
 fi
 
 # c
-LT_INIT
-if test "x$enable_plugins" = xno; then
+if test "x$PLATFORM" = xcygwin; 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])])
-        ])
 else
-    AM_CONDITIONAL([BUILD_C_API], [false])
+    LT_INIT
+    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])])
+            ])
+    else
+        AM_CONDITIONAL([BUILD_C_API], [false])
+    fi
 fi
 
 # threading