Add a TeX driver
[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 PERL='@PERL@'
24 PYTHON='@PYTHON@'
25 TEX='@TEX@'
26 WITH_PERL_MODULE='@WITH_PERL_MODULE@'
27 host='@host@'
28 PACKAGE_STRING='@PACKAGE_STRING@'
29 PACKAGE_BUGREPORT='@PACKAGE_BUGREPORT@'
30
31 XMLLINT='@XMLLINT@'
32 if echo | $XMLLINT - >/dev/null 2>&1; then
33     HAVE_XMLLINT=no
34 else
35     HAVE_XMLLINT=yes
36 fi
37
38 PSQL_SUPPORT='@PSQL_SUPPORT@'
39 if test "$PSQL_SUPPORT" = yes; then
40     : ${PG_CONFIG:='@PG_CONFIG@'}
41     : ${PG_DBASE:=pspptest}
42     : ${PG_PORT:=6543}
43     : ${PG_PATH:=`$PG_CONFIG --bindir`}
44
45     # PSQL_SUPPORT indicates that PSPP was built against the PostgreSQL client
46     # library, but it does not mean that the PostgreSQL utilities are
47     # installed.  So check for them and turn off PSQL_SUPPORT if they are not
48     # available.
49     if (PATH=$PG_PATH:$PATH; export PATH; initdb --version) >/dev/null 2>&1
50     then
51         :
52     else
53         PSQL_SUPPORT=no
54     fi
55 fi
56
57 # Variables used by programs invoked by the testsuite.
58 CHARSETALIASDIR="$abs_top_builddir/gl"
59 export CHARSETALIASDIR
60
61 GZIP=
62 export GZIP
63
64 WINEPREFIX=$HOME/.wine    # Work around the following kludge to keep wine happy
65 export WINEPREFIX
66
67 HOME=/nonexistent               # Kluge to make PSPP ignore $HOME/.pspprc.
68 export HOME
69
70 # Avoids error messages during tests if $TERM is set to an unknown terminal.
71 TERM=; unset TERM
72
73 pspp_diff=`which diff`
74 if test X"$RUNNER" = Xwine; then
75     diff () {
76         $pspp_diff -w  "$@"
77     }
78 fi
79
80 case $host in
81     *-*-mingw*) MINGW=: ;;
82     *) MINGW=false ;;
83 esac
84
85 # Enable leak suppressions for Address Sanitizer/Leak Sanitizer.
86 LSAN_OPTIONS="suppressions=$abs_top_srcdir/tests/lsan.supp print_suppressions=0"
87 export LSAN_OPTIONS
88
89 # Avoid complaints if the system doesn't have a configured paper size.
90 export PAPERSIZE=a4