Index: configure.in
===================================================================
RCS file: /cvs/gnome/criawips/configure.in,v
retrieving revision 1.93
diff -u -r1.93 configure.in
--- configure.in	24 Nov 2006 14:57:44 -0000	1.93
+++ configure.in	26 Nov 2006 06:37:17 -0000
@@ -22,6 +22,8 @@
 GCJ=no
 
 AC_PROG_CC
+AC_DISABLE_STATIC
+AC_LIBTOOL_WIN32_DLL
 AC_PROG_LIBTOOL
 AC_PROG_INTLTOOL
 
@@ -213,30 +215,41 @@
                 [The package's gconf base path])
 
 dnl  -------------------------------
+dnl | Platform tests |--------------------------------------------------------
+dnl  -------------------------------
+
+AC_MSG_CHECKING([if building for some Win32 platform])
+case "$host" in
+  *-*-mingw*|*-*-cygwin*)
+    platform_win32=yes
+    ;;
+  *)
+    platform_win32=no
+    ;;
+esac
+AC_MSG_RESULT($platform_win32)
+AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
+
+dnl  -------------------------------
 dnl | pulling the configuration out |-----------------------------------------
 dnl  -------------------------------
 
 AC_OUTPUT([
   Makefile
-
   copy-src/Makefile
   copy-src/ccc/Makefile
   copy-src/ccc/reference/Makefile
   copy-src/cdebug/Makefile
   copy-src/helpers/Makefile
-  
   data/Makefile
   doc/Makefile
   doc/reference/Makefile
-
   help/Makefile
   help/user-guide/Makefile
-  
   pixmaps/Makefile
   po/Makefile.in
   samples/Makefile
   samples/0.0.1/Makefile
-  
   src/Makefile
   src/code-templates/Makefile
   src/cut-n-paste/Makefile
@@ -246,7 +259,6 @@
   src/rendering/Makefile
   src/utils/Makefile
   src/widgets/Makefile
-  
   test/Makefile
 ])
 
Index: copy-src/ccc/Makefile.am
===================================================================
RCS file: /cvs/gnome/criawips/copy-src/ccc/Makefile.am,v
retrieving revision 1.10
diff -u -r1.10 Makefile.am
--- copy-src/ccc/Makefile.am	3 Sep 2005 00:36:00 -0000	1.10
+++ copy-src/ccc/Makefile.am	26 Nov 2006 06:37:17 -0000
@@ -4,6 +4,10 @@
 ## toplevel source directory) to create a Makefile.in which will be used to
 ## create a Makefile by executing the configure script
 
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+
 NULL=
 
 SUBDIRS=\
@@ -26,6 +30,9 @@
 	canvas-priv.h	\
 	canvas.c	\
 	utils.h		\
+	$(NULL)
+libccc_la_LDFLAGS=\
+	$(no_undefined) \
 	$(NULL)
 libccc_la_LIBADD=\
 	$(CANVAS_LIBS)		\
Index: copy-src/cdebug/Makefile.am
===================================================================
RCS file: /cvs/gnome/criawips/copy-src/cdebug/Makefile.am,v
retrieving revision 1.5
diff -u -r1.5 Makefile.am
--- copy-src/cdebug/Makefile.am	14 Aug 2005 18:49:31 -0000	1.5
+++ copy-src/cdebug/Makefile.am	26 Nov 2006 06:37:17 -0000
@@ -4,6 +4,10 @@
 ## toplevel source directory) to create a Makefile.in which will be used to
 ## create a Makefile by executing the configure script
 
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+
 NULL=
 lib_LTLIBRARIES=libcdebug.la
 noinst_PROGRAMS=\
@@ -13,6 +17,9 @@
 libcdebug_la_SOURCES=\
 	cdebug.h	\
 	cdebug.c	\
+	$(NULL)
+libcdebug_la_LDFLAGS=\
+	$(no_undefined) \
 	$(NULL)
 libcdebug_la_LIBADD=\
 	$(CORE_LIBS)	\
Index: src/Makefile.am
===================================================================
RCS file: /cvs/gnome/criawips/src/Makefile.am,v
retrieving revision 1.90
diff -u -r1.90 Makefile.am
--- src/Makefile.am	24 Nov 2006 14:39:19 -0000	1.90
+++ src/Makefile.am	26 Nov 2006 06:37:18 -0000
@@ -9,11 +9,11 @@
 SUBDIRS = \
 	code-templates					\
 	cut-n-paste					\
+	utils						\
 	dom						\
 	helpers						\
 	io						\
 	rendering					\
-	utils						\
 	widgets						\
 	$(NULL)
 
Index: src/dom/Makefile.am
===================================================================
RCS file: /cvs/gnome/criawips/src/dom/Makefile.am,v
retrieving revision 1.16
diff -u -r1.16 Makefile.am
--- src/dom/Makefile.am	24 Nov 2006 14:57:46 -0000	1.16
+++ src/dom/Makefile.am	26 Nov 2006 06:37:18 -0000
@@ -4,6 +4,10 @@
 ## toplevel source directory) to create a Makefile.in which will be used to
 ## create a Makefile by executing the configure script
 
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+
 NULL=
 
 lib_LTLIBRARIES=\
@@ -63,8 +67,13 @@
 	cria-theme-view.c	\
 	cria-theme-view.h	\
 	$(NULL)
+libcriawips_dom_la_LDFLAGS=\
+	$(no_undefined)         \
+	$(NULL)
 libcriawips_dom_la_LIBADD=\
 	$(CORE_LIBS)		\
+	../utils/libcriawips-utils.la \
+	../../copy-src/cdebug/libcdebug.la \
 	$(NULL)
 INCLUDES=\
 	-I$(top_srcdir)/copy-src\
Index: src/io/Makefile.am
===================================================================
RCS file: /cvs/gnome/criawips/src/io/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- src/io/Makefile.am	3 Sep 2005 00:36:03 -0000	1.2
+++ src/io/Makefile.am	26 Nov 2006 06:37:19 -0000
@@ -4,6 +4,10 @@
 ## toplevel source directory) to create a Makefile.in which will be used to
 ## create a Makefile by executing the configure script
 
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+
 NULL=
 
 lib_LTLIBRARIES=\
@@ -16,8 +20,12 @@
 	cria-presentation-writer.c \
 	cria-presentation-writer.h \
 	$(NULL)
+libcriawips_io_la_LDFLAGS=\
+	$(no_undefined)         \
+	$(NULL)
 libcriawips_io_la_LIBADD=\
 	$(IO_LIBS)		\
+	../../copy-src/cdebug/libcdebug.la \
 	$(NULL)
 INCLUDES=\
 	-I$(top_srcdir)/copy-src\
Index: src/utils/Makefile.am
===================================================================
RCS file: /cvs/gnome/criawips/src/utils/Makefile.am,v
retrieving revision 1.6
diff -u -r1.6 Makefile.am
--- src/utils/Makefile.am	3 Oct 2005 23:09:35 -0000	1.6
+++ src/utils/Makefile.am	26 Nov 2006 06:37:19 -0000
@@ -4,6 +4,10 @@
 ## toplevel source directory) to create a Makefile.in which will be used to
 ## create a Makefile by executing the configure script
 
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+
 NULL=
 
 lib_LTLIBRARIES=\
@@ -16,8 +20,12 @@
 	cria-units.h		\
 	cria-units.c		\
 	$(NULL)
+libcriawips_utils_la_LDFLAGS=\
+	$(no_undefined)         \
+	$(NULL)
 libcriawips_utils_la_LIBADD=\
 	$(CORE_LIBS)		\
+	../../copy-src/cdebug/libcdebug.la \
 	$(NULL)
 INCLUDES=\
 	-I$(srcdir)/..		\
