diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-08-24 15:03:44 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-08-24 15:03:44 +0200 |
commit | 55d3dff9449a88925dc35eae1a1010a7f92a129c (patch) | |
tree | 0c45d7a27acc7ba7a7f54099a07cf13d82609baf /autogen.sh | |
parent | a1311aa20f2e7cc5d87b1bf6975f8fd6357dc75e (diff) |
Remove 'configure' from the SCM, generate it using ./autogen.sh instead.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 000000000000..2725f167972a --- /dev/null +++ b/autogen.sh @@ -0,0 +1,35 @@ +#!/bin/sh +# Run this to generate all the initial makefiles, etc. + +if test "z$1" = "z--clean"; then + echo "Cleaning" + + rm -Rf autom4te.cache bonobo/autom4te.cache + rm -f missing install-sh mkinstalldirs libtool ltmain.sh + exit 1; +fi + +requote_args () +{ + sed -e 's/.*configure //' -e 's/=\(\([^"'"'"'-]\|-[^-]\| \)*\)\( \|$\)/="\1" /g' +} + +new_args=`echo $@ | requote_args` + +old_args="" +if test $# -eq 0 && test -f config.log; then + old_args=`grep '\$ ./configure' config.log | requote_args` + echo "re-using arguments from last configure: $old_args"; +fi + +touch ChangeLog + +aclocal $ACLOCAL_FLAGS || exit 1; +#automake --gnu --add-missing --copy || exit 1; +#intltoolize --copy --force --automake +autoconf || exit 1; +if test "x$NOCONFIGURE" = "x"; then + eval `echo ./configure $new_args $old_args` +else + echo "Skipping configure process." +fi |