]> granicus.if.org Git - curl/commitdiff
Andres Garcia's fix for building static curl on windows.
authorDaniel Stenberg <daniel@haxx.se>
Fri, 22 Apr 2005 21:13:27 +0000 (21:13 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 22 Apr 2005 21:13:27 +0000 (21:13 +0000)
configure.ac

index a263fd4ed9b884a6b4a84836daed89ed447975d6..f65f8fb20865eb8e47b978b5c4de79ef02975bca 100644 (file)
@@ -122,6 +122,14 @@ case $host in
   *-*-mingw*)
     AC_DEFINE(BUILDING_LIBCURL, 1, [when building libcurl itself])
     AC_MSG_RESULT(yes)
+    AC_MSG_CHECKING([if we need CURL_STATICLIB])
+    if test "X$enable_shared" = "Xno"
+    then
+      AC_DEFINE(CURL_STATICLIB, 1, [when not building a shared library])
+      AC_MSG_RESULT(yes)
+    else
+      AC_MSG_RESULT(no)
+    fi
     ;;
   *)
     AC_MSG_RESULT(no)