Hi, When I (re)run autogen.sh, I do not want it to run configure automatically, because I do not want to pollute my source directory. I normally run configure and make in a directory different from my source directory. With gnome-autogen.sh, you can disable running configure by defining NOCONFIGURE. The attached patches will let you do the same for poppler, eg.:
linux-vz0y:poppler> NOCONFIGURE=1 ./autogen.sh Checking for automake >= 1.7... Testing automake-1.11... found 1.11 Running autoreconf -v -i ... autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force autoreconf: Leaving directory `.' Skipping configure process. I hope you will find this usefull. Cheers, Hib Eris
From c0fe32bf4db9eeb710c084f4c8fffc8ecdc15174 Mon Sep 17 00:00:00 2001 From: Hib Eris <[email protected]> Date: Fri, 2 Jul 2010 20:51:47 +0200 Subject: [PATCH 1/2] Add option for autogen.sh to skip configure If you do not want to automatically run configure when calling autogen.sh, run it with: $ NOCONFIGURE=1 ./autogen.sh This feature is modeled after gnome-autogen.sh behaviour. --- autogen.sh | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/autogen.sh b/autogen.sh index 6a4d508..953c14f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -122,4 +122,10 @@ if $want_gtk_doc; then (cd $srcdir && $GTKDOCIZE --copy) || exit 1 fi -$srcdir/configure $@ +if test x$NOCONFIGURE = x; then + printbold "Running $srcdir/configure $@ ..." + $srcdir/configure $@ +else + printbold "Skipping configure process." +fi + -- 1.6.4.2
From 4db2f14a1c47ea92e4cefe2efaa83a89569f7963 Mon Sep 17 00:00:00 2001 From: Hib Eris <[email protected]> Date: Fri, 2 Jul 2010 21:07:53 +0200 Subject: [PATCH 2/2] Nicer autogen.sh output --- autogen.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/autogen.sh b/autogen.sh index 953c14f..b2de90c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -115,6 +115,7 @@ fi version_check automake AUTOMAKE "$automake_progs" $REQUIRED_AUTOMAKE_VERSION \ "http://ftp.gnu.org/pub/gnu/automake/automake-$REQUIRED_AUTOMAKE_VERSION.tar.gz" || DIE=1 +printbold "Running autoreconf -v -i ..." (cd $srcdir && autoreconf -v -i ) if $want_gtk_doc; then -- 1.6.4.2
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
