aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure53
1 files changed, 53 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 00000000..4ffb738b
--- /dev/null
+++ b/configure
@@ -0,0 +1,53 @@
1#!/bin/sh
2
3# This file is part of TALER
4# (C) 2019 GNUnet e.V.
5#
6# This is very simple POSIX sh script which
7# identifies the first matching
8# python3 identifier in $PATH and produces
9# configure.py from configure.py.in, and then
10# calls the new executable configure.py.
11#
12# It should be portable on Unices. Report bugs on
13# the bugtracker if you discover that it isn't
14# working as intended.
15#
16# Authors:
17# Author: ng0 <ng0@taler.net>
18#
19# Permission to use, copy, modify, and/or distribute this software for any
20# purpose with or without fee is hereby granted.
21#
22# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
23# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
24# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
25# LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
26# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
27# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
28# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
29# THIS SOFTWARE.
30#
31# SPDX-License-Identifier: 0BSD
32
33# we invoke configure not as a symlink but as a copy,
34# so we have to use a fixed location for the repository!
35dir=$(dirname "$(readlink -f -- "$0")")/build-system/taler-build-scripts
36. $dir/sh/lib.sh/existence.sh
37. $dir/sh/lib.sh/existence_python.sh
38
39scriptpath=build-system/taler-build-scripts
40
41if ! test -d "$scriptpath"; then
42 echo "fatal error: taler-build-scripts not found at $scriptpath" >&2
43 exit 1
44fi
45
46export PYTHONPATH="$scriptpath:${PYTHONPATH:-}"
47
48# Call configure.py, assuming all went well.
49# $1 is read by configure.py as the prefix.
50# If $1 is empty, the python script checks the
51# environment for PREFIX. We might need more
52# variables and switches, such as DESTDIR.
53exec "$PYTHON" ./configure.py $@