so we have to do a test first to see if getopt_long() is included in the
system libs.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@435
fefdeb5f-60dc-0310-8127-
8f9354f1896f
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 ####