# This is the configuration script for regression testing
#
-CFLAGS="-g -O2 -Wall" \
+if test "x${CONFIG_SHELL}" != "x"; then
+ CONFIG_SHELL=/bin/sh
+fi
+
+# Handle Solaris compiler (possibly some others)
+VERSION="`cc --version | head -1 | awk '{ print $2 }' 2> /dev/null`"
+
+if [ -n "${VERSION}" -a "${VERSION}" = "(GCC)" ]; then
+ OPTIMIZE="-O2"
+ WARNINGS="-Wall"
+else
+ OPTIMIZE="-O"
+ WARNINGS="-v"
+fi
+
+CFLAGS="-g ${OPTIMIZE} ${WARNINGS}" \
./configure \
--sbindir=$1/bin \
--sysconfdir=$1/bin \
- --with-pid-dir=$1/bin/working \
- --with-subsys-dir=$1/bin/working \
+ --mandir=$1/bin \
+ --with-pid-dir=$1/working \
+ --with-subsys-dir=$1/working \
--enable-smartalloc \
- --with-sqlite=$1/../depkgs/sqlite \
- --with-working-dir=$1/bin/working \
- --with-dump-email=kern+ok@sibbald.com \
- --with-job-email=kern+ok@sibbald.com \
- --with-baseport=8101
+ --disable-readline \
+ --with-working-dir=$1/working \
+ --with-dump-email=$2 \
+ --with-job-email=$2 \
+ --with-smtp-host=$5 \
+ --with-db-name=regress \
+ --with-db-user=regress \
+ $3 \
+ --with-baseport=8101 \
+ $4 \
+ $6
exit 0