fbuf: New data structure for buffered file I/O.
[pspp] / tests / atlocal.in
1 # -*- shell-script -*-
2
3 # PSPP - a program for statistical analysis.
4 # Copyright (C) 2017 Free Software Foundation, Inc.
5
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
19
20
21 # Variables used internally by the testsuite.
22 EXEEXT='@EXEEXT@'
23 GNM_READ_SUPPORT='@GNM_READ_SUPPORT@'
24 ODF_READ_SUPPORT='@ODF_READ_SUPPORT@'
25 PERL='@PERL@'
26 WITH_PERL_MODULE='@WITH_PERL_MODULE@'
27 host='@host@'
28 PACKAGE_STRING='@PACKAGE_STRING@'
29 PACKAGE_BUGREPORT='@PACKAGE_BUGREPORT@'
30
31 PSQL_SUPPORT='@PSQL_SUPPORT@'
32 if test "$PSQL_SUPPORT" = yes; then
33     : ${PG_CONFIG:='@PG_CONFIG@'}
34     : ${PG_DBASE:=pspptest}
35     : ${PG_PORT:=6543}
36     : ${PG_PATH:=`$PG_CONFIG --bindir`}
37
38     # PSQL_SUPPORT indicates that PSPP was built against the PostgreSQL client
39     # library, but it does not mean that the PostgreSQL utilities are
40     # installed.  So check for them and turn off PSQL_SUPPORT if they are not
41     # available.
42     if (PATH=$PG_PATH:$PATH; export PATH; initdb --version) >/dev/null 2>&1
43     then
44         :
45     else
46         PSQL_SUPPORT=no
47     fi
48 fi
49
50 # Variables used by programs invoked by the testsuite.
51 CHARSETALIASDIR="$abs_top_builddir/gl"
52 export CHARSETALIASDIR
53
54 GZIP=
55 export GZIP
56
57 WINEPREFIX=$HOME/.wine    # Work around the following kludge to keep wine happy
58 export WINEPREFIX
59
60
61 HOME=/nonexistent               # Kluge to make PSPP ignore $HOME/.pspprc.
62 export HOME
63
64 # Avoids error messages during tests if $TERM is set to an unknown terminal.
65 TERM=; unset TERM
66
67 pspp_diff=`which diff`
68 if test X"$RUNNER" = Xwine; then
69     diff () {
70         $pspp_diff -w  "$@"
71     }
72 fi