Add configure caching to speed up the build, and stop pixman and cairo for being configure twice

This commit is contained in:
Andreia Gaita 2011-02-15 01:48:22 +00:00
Родитель af708a1d64
Коммит 0305fe5565
3 изменённых файлов: 10 добавлений и 5 удалений

Просмотреть файл

@ -128,7 +128,7 @@ autoconf || { echo "**Error**: autoconf failed."; exit 1; }
if test -d $srcdir/pixman; then
echo Running pixman/autogen.sh ...
(cd $srcdir/pixman ; ./autogen.sh "$@")
(cd $srcdir/pixman ; NOCONFIGURE=1 ./autogen.sh "$@")
echo Done running pixman/autogen.sh ...
fi
@ -146,7 +146,7 @@ if test -d $srcdir/cairo; then
export PKG_CONFIG_PATH
fi
(cd $srcdir/cairo ; ./autogen.sh "$@")
(cd $srcdir/cairo ; NOCONFIGURE=1 ./autogen.sh "$@")
echo Done running cairo/autogen.sh ...
fi
@ -212,7 +212,7 @@ if [ $configure_gallium -eq 1 ] ; then
fi
fi
conf_flags="--enable-maintainer-mode --enable-compile-warnings --with-sanity-checks" #--enable-iso-c
conf_flags="--enable-maintainer-mode --enable-compile-warnings --with-sanity-checks -C" #--enable-iso-c
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...

Просмотреть файл

@ -20,7 +20,7 @@ AC_CONFIG_SUBDIRS([$1])
m4_ifblank([$2], [rm -f $1/configure.gnu],
[AX_PRINT_TO_FILE([$1/configure.gnu],
[#!/bin/sh
./configure $2
./configure $2 --cache-file=../config.cache
])
])

Просмотреть файл

@ -9,4 +9,9 @@ cd $srcdir
autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?
$srcdir/configure "$@"
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
$srcdir/configure "$@"
else
echo Skipping configure process.
fi