fixed WIN32 compatibility
[NeonServV5.git] / configure.ac
index e75bc48a9bcb19ff480853ff11a681f5e7959252..ad949f64cf9beac6629c7abd5a17d1f27d63c88f 100644 (file)
@@ -30,9 +30,9 @@ AC_SUBST([MYSQL_LIBS])
 
 AC_ARG_WITH([winsock],
   [AS_HELP_STRING([--with-winsock], [use winsock (WIN32 systems)])],
-  [WINSOCK_LIBS='-lws2_32'],
-  [WINSOCK_LIBS=''])
-AC_SUBST([WINSOCK_LIBS])
+  [SYSTEM_LIBS='-lws2_32'],
+  [SYSTEM_LIBS='-ldl'])
+AC_SUBST([SYSTEM_LIBS])
 
 do_have_ssl="no";
 AC_CHECK_LIB(ssl, SSL_read, [
@@ -88,7 +88,5 @@ AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.
 AC_FUNC_MALLOC
 AC_CHECK_FUNCS([gethostbyname memset select socket strchr strdup strstr])
 
-MY_SUBDIRS="src"
-AC_SUBST(MY_SUBDIRS)
-AC_CONFIG_FILES(Makefile src/Makefile src/modules/Makefile)
+AC_CONFIG_FILES(Makefile)
 AC_OUTPUT
\ No newline at end of file