--- liblscp/trunk/configure.ac 2010/09/25 22:01:28 2131 +++ liblscp/trunk/configure.ac 2010/09/28 18:00:38 2132 @@ -26,6 +26,7 @@ # Checks for programs. AC_PROG_CC +AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL AM_PROG_LIBTOOL @@ -40,6 +41,12 @@ # Checks for library functions. AC_CHECK_FUNCS(strdup strtok_r memset memmove socket connect bind listen setsockopt getsockopt getsockname gethostbyname) +case $host in + *mingw*|*cygwin*) windows=yes ;; + *) windows=no ;; +esac +AM_CONDITIONAL(WINDOWS, test "$windows" = "yes") + # Checks for pthread library. AC_CHECK_LIB(pthread, pthread_create)