moved sed command to its own script(for BSD with non-GNU make users) + improved confi...
[mod_auth_kerb.git] / apxs.sh
diff --git a/apxs.sh b/apxs.sh
new file mode 100755 (executable)
index 0000000..cdb3e65
--- /dev/null
+++ b/apxs.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+cppflags=`[ -n "$1" ] && echo $1 | sed -e 's/\([^ ]*\)/-Wc,\1/g'`
+ldflags=`[ -n "$2"  ] && echo $2 | sed -e 's/\([^ ]*\)/-Wl,\1/g'`
+ret=eval "$4" $5 $cppflags $ldflags src/mod_auth_kerb.c $3
+exit $ret