]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/regress-config
ebl add 3 others errors
[bacula/bacula] / regress / scripts / regress-config
1 #!/bin/sh
2 #
3 # This is the configuration script for regression testing
4 #
5
6 if test "x${CONFIG_SHELL}" != "x"; then
7     CONFIG_SHELL=/bin/sh
8 fi
9
10 # Handle Solaris compiler (possibly some others) 
11 VERSION="`cc --version | head -1 | awk '{ print $2 }' 2> /dev/null`"
12
13 if [ -n "${VERSION}" -a "${VERSION}" = "(GCC)" ]; then
14   OPTIMIZE="-O2"
15   WARNINGS="-Wall"
16 else
17   OPTIMIZE="-O"
18   WARNINGS="-v"
19 fi
20
21 CFLAGS="-g ${OPTIMIZE} ${WARNINGS}" \
22  ./configure \
23     --sbindir=$1/bin \
24     --sysconfdir=$1/bin \
25     --mandir=$1/bin \
26     --with-pid-dir=$1/working \
27     --with-subsys-dir=$1/working \
28     --enable-smartalloc \
29     --disable-readline \
30     --with-working-dir=$1/working \
31     --with-dump-email=$2 \
32     --with-job-email=$2 \
33     --with-smtp-host=$5 \
34     --with-db-name=regress \
35     --with-db-user=regress \
36     $3 \
37     --with-baseport=8101 \
38     $4 \
39     $6
40
41 exit 0