summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d450f4a3..1a002e54 100644
--- a/configure.ac
+++ b/configure.ac
@@ -174,7 +174,10 @@ AC_CHECK_LIB([rt], [sched_setscheduler])
AC_CHECK_LIB([socket], [connect])
# Non-standard
-AC_CHECK_LIB([iberty], [getopt_long])
+
+# This magic is needed so we do not needlessly add static libs to the win32
+# build, disabling its ability to make dlls.
+AC_CHECK_FUNCS([getopt_long], [], [AC_CHECK_LIB([iberty], [getopt_long])])
#### Check for functions ####