Merge remote-tracking branch 'origin/master' into sheet
[pspp] / tests / atlocal.in
1 # -*- shell-script -*-
2
3 # Variables used internally by the testsuite.
4 EXEEXT='@EXEEXT@'
5 GNM_READ_SUPPORT='@GNM_READ_SUPPORT@'
6 ODF_READ_SUPPORT='@ODF_READ_SUPPORT@'
7 PERL='@PERL@'
8 WITH_PERL_MODULE='@WITH_PERL_MODULE@'
9 host='@host@'
10 PACKAGE_STRING='@PACKAGE_STRING@'
11 PACKAGE_BUGREPORT='@PACKAGE_BUGREPORT@'
12
13 PSQL_SUPPORT='@PSQL_SUPPORT@'
14 if test "$PSQL_SUPPORT" = yes; then
15     : ${PG_CONFIG:='@PG_CONFIG@'}
16     : ${PG_DBASE:=pspptest}
17     : ${PG_PORT:=6543}
18     : ${PG_PATH:=`$PG_CONFIG --bindir`}
19
20     # PSQL_SUPPORT indicates that PSPP was built against the PostgreSQL client
21     # library, but it does not mean that the PostgreSQL utilities are
22     # installed.  So check for them and turn off PSQL_SUPPORT if they are not
23     # available.
24     if (PATH=$PG_PATH:$PATH; export PATH; initdb --version) >/dev/null 2>&1
25     then
26         :
27     else
28         PSQL_SUPPORT=no
29     fi
30 fi
31
32 # Variables used by programs invoked by the testsuite.
33 CHARSETALIASDIR="$abs_top_builddir/gl"
34 export CHARSETALIASDIR
35
36 GZIP=
37 export GZIP
38
39 WINEPREFIX=$HOME/.wine    # Work around the following kludge to keep wine happy
40 export WINEPREFIX
41
42
43 HOME=/nonexistent               # Kluge to make PSPP ignore $HOME/.pspprc.
44 export HOME
45
46 # Avoids error messages during tests if $TERM is set to an unknown terminal.
47 TERM=; unset TERM
48
49 pspp_diff=`which diff`
50 if test X"$RUNNER" = Xwine; then
51     diff () {
52         $pspp_diff -w  "$@"
53     }
54 fi