summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-07-18 10:59:54 -0400
committerStef Walter <stefw@collabora.co.uk>2011-07-19 22:59:26 +0200
commitb59ab92e640e13d10484fffc74ed6a218930c6ab (patch)
treea3998af4be4b440ad4ed46b82546e1adbb8c2be4 /autogen.sh
parent69dd8b722bcb1a76ff586e71c580f6844412abb9 (diff)
downloadp11-kit-b59ab92e640e13d10484fffc74ed6a218930c6ab.tar.gz
build: Make autogen.sh work
* We were missing a call to gettextize, which is what copies in config.rpath * Delete ABOUT-NLS, it is copied in by gettextize * While we're here, take a page from gtk+'s autogen.sh and just use autoreconf, instead of specifying everything. * We need to always have an m4/ directory, so that gettextize works, so we make a dummy empty file * Apparently gettextize is totally insane, requiring user input etc. Copy in some hacks from Avahi's autogen.sh to work around this.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh17
1 files changed, 11 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh
index 2c35908..2b68539 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -12,10 +12,15 @@ fi
set -x
-aclocal
-libtoolize
-autoheader
-automake -a
-autoconf
-./configure "$@"
+# Copied from avahi's autogen.sh to work around gettext braindamage
+rm -f Makefile.am~ configure.ac~
+# Evil, evil, evil, evil hack
+sed 's/read dummy/\#/' `which gettextize` | sh -s -- --copy --force --no-changelog
+test -f Makefile.am~ && mv Makefile.am~ Makefile.am
+test -f configure.ac~ && mv configure.ac~ configure.ac
+
+autoreconf --force --install --verbose
+if test x"$NOCONFIGURE" = x; then
+ exec ./configure "$@"
+fi