2013-11-27 22:21:40 -03:00
|
|
|
#!/bin/sh
|
2019-12-30 06:39:22 -03:00
|
|
|
# Copyright (c) 2013-2019 The Bitcoin Core developers
|
2016-09-21 19:35:21 -03:00
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2018-06-13 10:50:48 -04:00
|
|
|
export LC_ALL=C
|
2013-11-27 22:24:26 -03:00
|
|
|
set -e
|
2019-10-07 18:02:46 -03:00
|
|
|
srcdir="$(dirname "$0")"
|
2013-11-27 22:25:58 -03:00
|
|
|
cd "$srcdir"
|
2019-10-07 18:02:46 -03:00
|
|
|
if [ -z "${LIBTOOLIZE}" ] && GLIBTOOLIZE="$(command -v glibtoolize)"; then
|
2014-10-03 15:58:59 -03:00
|
|
|
LIBTOOLIZE="${GLIBTOOLIZE}"
|
|
|
|
export LIBTOOLIZE
|
2014-06-06 10:23:34 -04:00
|
|
|
fi
|
2019-07-02 12:48:08 -04:00
|
|
|
command -v autoreconf >/dev/null || \
|
2016-02-12 17:44:42 -03:00
|
|
|
(echo "configuration failed, please install autoconf first" && exit 1)
|
2014-08-26 05:39:32 -04:00
|
|
|
autoreconf --install --force --warnings=all
|
2022-10-30 09:54:37 -03:00
|
|
|
|
|
|
|
if expr "'$(build-aux/config.guess --timestamp)" \< "'$(depends/config.guess --timestamp)" > /dev/null; then
|
2023-06-13 08:33:58 -04:00
|
|
|
chmod ug+w build-aux/config.guess
|
|
|
|
chmod ug+w src/secp256k1/build-aux/config.guess
|
2022-10-30 09:54:37 -03:00
|
|
|
cp depends/config.guess build-aux
|
|
|
|
cp depends/config.guess src/secp256k1/build-aux
|
|
|
|
fi
|
|
|
|
if expr "'$(build-aux/config.sub --timestamp)" \< "'$(depends/config.sub --timestamp)" > /dev/null; then
|
2023-06-13 08:33:58 -04:00
|
|
|
chmod ug+w build-aux/config.sub
|
|
|
|
chmod ug+w src/secp256k1/build-aux/config.sub
|
2022-10-30 09:54:37 -03:00
|
|
|
cp depends/config.sub build-aux
|
|
|
|
cp depends/config.sub src/secp256k1/build-aux
|
|
|
|
fi
|