Fix broken APACI static builds on recent Mac OS X.

Reported-By: david@kineticode.com



git-svn-id: https://svn.apache.org/repos/asf/perl/modperl/branches/1.x@773444 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/Changes b/Changes
index 8710bd7..e6bd6c3 100644
--- a/Changes
+++ b/Changes
@@ -10,6 +10,8 @@
 
 =item 1.31-dev
 
+Fix static APACI build on Mac OS X. [Gozer]
+
 Fix XSS vulnerability in Apache::Status reported by 
 Richard J. Brain, CVE-2009-0796
 [Fred Moyer]
diff --git a/apaci/mod_perl.config.sh b/apaci/mod_perl.config.sh
index 8298419..17ec6fe 100755
--- a/apaci/mod_perl.config.sh
+++ b/apaci/mod_perl.config.sh
@@ -133,6 +133,12 @@
     	perl_lddlflags="$perl_lddlflags $XLINKER-bI:\$(APACHELIBEXEC)/httpd.exp"
 	;;
     
+    darwin*)
+    # OS X has .bundle's, .so's and .dylib's, but we need to normalize
+    # to .so, so keep it simple, and blindly normalize
+    perl_dlext="`echo $perl_dlext | sed -e's/bundle/so/' | sed -e's/dylib/so/'`"
+    ;;
+
     cygwin*)
 	perl_ld="gcc -shared"
 	;;