--- gnu/configure.in	2005-06-21 18:27:20.000000000 +0000
+++ gnu/configure.in.new	2007-06-25 23:15:00.000000000 +0000
@@ -62,6 +62,10 @@
         DLL_FLAGS="-shared -export-dynamic"
         LD_STRIP="gnu/stripgcc.lnk"
 	;;
+darwin*)
+	DLL_EXT=".dylib"
+	DLL_FLAGS="-dynamiclib"
+	;;
 interix3*)
 	# not ELF
 	DLL_FLAGS="-shared"
