Support MinGW builds when using httpd's configure
(i.e., when you export/unpack fcgid on top of the httpd tree)
git-svn-id: https://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk@1092808 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/modules/fcgid/config.m4 b/modules/fcgid/config.m4
index 27cf4ff..eb8f67f 100644
--- a/modules/fcgid/config.m4
+++ b/modules/fcgid/config.m4
@@ -16,6 +16,15 @@
dnl # start of module specific part
APACHE_MODPATH_INIT(fcgid)
+case $host in
+ *mingw*)
+ fcgid_platform_objs="fcgid_pm_win.lo fcgid_proc_win.lo fcgid_proctbl_win.lo"
+ ;;
+ *)
+ fcgid_platform_objs="fcgid_pm_unix.lo fcgid_proc_unix.lo fcgid_proctbl_unix.lo fcgid_mutex_unix.lo"
+ ;;
+esac
+
dnl # list of module object files
fcigd_objs="dnl
mod_fcgid.lo dnl
@@ -24,12 +33,9 @@
fcgid_pm_main.lo dnl
fcgid_protocol.lo dnl
fcgid_spawn_ctl.lo dnl
-fcgid_proctbl_unix.lo dnl
-fcgid_pm_unix.lo dnl
-fcgid_proc_unix.lo dnl
fcgid_bucket.lo dnl
fcgid_filter.lo dnl
-fcgid_mutex_unix.lo dnl
+$fcgid_platform_objs dnl
"
APACHE_MODULE(fcgid, [FastCGI support (mod_fcgid)], $fcigd_objs, , no, [