diff options
author | Daniel Elstner <danielk@openismus.com> | 2009-08-07 19:30:47 +0200 |
---|---|---|
committer | Daniel Elstner <daniel.kitta@gmail.com> | 2009-08-09 00:50:14 +0200 |
commit | 7a5a8e6efc4485a55f998488ca9e6fa52ff98397 (patch) | |
tree | a9996419a7fa0f1838d3797f884a7da001484fe6 /autogen.sh | |
parent | be416f1881aa4a3d0d8be89413c7a5eeb2c83db2 (diff) | |
download | glibmm-7a5a8e6efc4485a55f998488ca9e6fa52ff98397.tar.gz |
Begin transition to new build infrastructure
* autogen.sh: Replace script with a minimalistic wrapper around
mm-common-prepare, autoreconf and configure.
* Makefile.am (ACLOCAL_AMFLAGS): Pick up ${ACLOCAL_FLAGS} from the
environment, so that autoreconf can do its magic.
* configure.ac: Modernize. Cut loads of old cruft. Make use of
magic mm-common macros to simplify things. Declare build/ as the
destination for auxiliary build files. Add TODO comments to flag
the pieces that still need cutting. Re-enable autoheader.
* config.h.in: Remove file, and have autoheader generate it.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 84 |
1 files changed, 6 insertions, 78 deletions
@@ -1,79 +1,7 @@ -#! /bin/sh - -PKG_NAME=glibmm - -srcdir=`dirname $0` -test "x$srcdir" = x && srcdir=. - -origdir=`pwd` - -if test -f "$srcdir/configure.ac" && \ - test -d "$srcdir/glib/src" && \ - test -d "$srcdir/glib/glibmm" -then :; else - echo "** Error **: Directory \`${srcdir}\' does not look like" - echo "the top-level ${PKG_NAME} directory." - exit 1 -fi - -MAKE=`which gnumake` -test -x "$MAKE" || MAKE=`which gmake` -test -x "$MAKE" || MAKE=`which make` - -if "$MAKE" --version 2>/dev/null | grep "Free Software Foundation" >/dev/null 2>&1 -then :; else - echo "** Error **: You need GNU make to build gtkmm from CVS." - echo "${MAKE} is not GNU make." - exit 1 -fi - -echo "Found GNU make at ${MAKE}... good." - -cd "$srcdir" - -echo "Adding libtools." -libtoolize --automake || exit 1 - -echo "Building macros." -aclocal -I "$srcdir/scripts" $ACLOCAL_FLAGS || exit 1 - -#echo "Building config header." -#autoheader - -echo "Building makefiles." -automake --add-missing || exit 1 - -echo "Building configure." - -autoconf || exit 1 - - -enable_warnings= - -case "$*" in - *--enable-warnings*|*--disable-warnings*) - ;; - *) # enable -Werror by default when building with gcc3 - ${CXX:-"g++"} --version 2>/dev/null | grep '(GCC) 3\.[0-9]\+\.[0-9]' >/dev/null 2>&1 \ - && enable_warnings='--enable-warnings=hardcore' - ;; -esac - -cd "$origdir" -rm -f config.cache - -if test -z "$AUTOGEN_SUBDIR_MODE" -then - echo "Running $srcdir/configure --enable-maintainer-mode" $enable_warnings "$@" - "$srcdir/configure" --enable-maintainer-mode $enable_warnings "$@" || exit 1 - echo - echo 'run "make"' - echo -else - echo - echo 'run "./configure ; make"' - echo -fi - -exit 0 +#! /bin/sh -e +test -n "$srcdir" || srcdir=`dirname "$0"` +test -n "$srcdir" || srcdir=. +mm-common-prepare --force --copy "$srcdir" +autoreconf --force --install "$srcdir" +test -n "$NOCONFIGURE" || "$srcdir/configure" --enable-maintainer-mode "$@" |