e64a08e4e2fb2275122183c7d57578e9017ae004
[pspp-builds.git] / tests / atlocal.in
1 # -*- shell-script -*-
2
3 # Variables used internally by the testsuite.
4 EXEEXT='@EXEEXT@'
5 GNM_SUPPORT='@GNM_SUPPORT@'
6 PERL='@PERL@'
7 WITH_PERL_MODULE='@WITH_PERL_MODULE@'
8 host='@host@'
9
10 PSQL_SUPPORT='@PSQL_SUPPORT@'
11 if test "$PSQL_SUPPORT" = yes; then
12     : ${PG_CONFIG:='@PG_CONFIG@'}
13     : ${PG_DBASE:=pspptest}
14     : ${PG_PORT:=6543}
15     : ${PG_PATH:=`$PG_CONFIG --bindir`}
16
17     # PSQL_SUPPORT indicates that PSPP was built against the PostgreSQL client
18     # library, but it does not mean that the PostgreSQL utilities are
19     # installed.  So check for them and turn off PSQL_SUPPORT if they are not
20     # available.
21     if (PATH=$PG_PATH:$PATH; export PATH; initdb --version) >/dev/null 2>&1
22     then
23         :
24     else
25         PSQL_SUPPORT=no
26     fi
27 fi
28
29 # Variables used by programs invoked by the testsuite.
30 CHARSETALIASDIR="$abs_top_builddir/gl"
31 export CHARSETALIASDIR
32
33 GZIP=
34 export GZIP
35
36 HOME=/nonexistent               # Kluge to make PSPP ignore $HOME/.pspprc.
37 export HOME