build/autoconf/hooks.m4
author Mike Hommey <mh+mozilla@glandium.org>
Mon, 14 Jan 2019 18:37:06 +0000
changeset 513854 129e9f6b6295da4ed2a2e7bfb73f1c75200ad9ef
parent 513429 65511e8d7a7e0df5df7c4b7c96ffc3cbd2590db3
child 517102 6a22ba01cdfbe4dbc4b0cee28d008b2bc7f53958
permissions -rw-r--r--
Bug 1519603 - Manually inline AC_OUTPUT_SUBDIRS and MOZ_RUN_ALL_SUBCONFIGURES. r=nalexander Because we only ever run one subconfigure, the machinery to execute several is not useful anymore. Inlining it allows to simplify the code too, because it doesn't need to be generic anymore. This also removes the last remaining bits of acwinpaths.m4. Also remove now unused support for --list in build/subconfigure.py. Depends on D16380 Differential Revision: https://phabricator.services.mozilla.com/D16381

dnl This Source Code Form is subject to the terms of the Mozilla Public
dnl License, v. 2.0. If a copy of the MPL was not distributed with this
dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.

dnl Wrap AC_INIT_PREPARE to add the above trap.
define([_MOZ_AC_INIT_PREPARE], defn([AC_INIT_PREPARE]))
define([AC_INIT_PREPARE],
[_MOZ_AC_INIT_PREPARE($1)

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
])

dnl Print error messages in config.log as well as stderr
define([AC_MSG_ERROR],
[{ echo "configure: error: $1" 1>&2; echo "configure: error: $1" 1>&5; exit 1; }])