1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-25 20:30:43 +01:00
build/util/autotools.sh
David Oberhollenzer 50dce293c1 Add helper macro for running configure with standard arguments
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-09-03 13:58:35 +02:00

14 lines
482 B
Bash

run_configure() {
local srcdir="$1"
shift
ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes \
$srcdir/configure --prefix="" --build="$HOSTTUPLE" --host="$TARGET" \
--bindir="/bin" --sbindir="/bin" --sysconfdir="/etc" \
--libexecdir="/lib/libexec" --datarootdir="/share" \
--datadir="/share" --sharedstatedir="/share" \
--with-bashcompletiondir="/share/bash-completion/completions" \
--includedir="/include" \
--enable-shared --disable-static $@
}