merged tag LIBREOFFICE_3_2_99_3
[LibreOffice.git] / autogen.sh
blobdefc542c41e96d9d6c189344bed21349098a4e34
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 if test "z$1" = "z--clean"; then
5 echo "Cleaning"
7 rm -Rf autom4te.cache
8 rm -f missing install-sh mkinstalldirs libtool ltmain.sh
9 exit 1;
12 requote_args ()
14 sed -r -e 's/.*configure //' -e 's/(["'"'"'])/\\\1/g' -e 's/=(([^"'"'"'-]|-[^-]| )*)( |$)/="\1" /g'
17 old_args=""
18 if test $# -eq 0 && test -f config.log; then
19 old_args=`grep '\$ ./configure' config.log | requote_args`
20 echo "re-using arguments from last configure: $old_args";
23 touch ChangeLog
25 aclocal $ACLOCAL_FLAGS || exit 1;
26 #automake --gnu --add-missing --copy || exit 1;
27 #intltoolize --copy --force --automake
28 autoconf || exit 1;
29 if test "x$NOCONFIGURE" = "x"; then
30 if test -n "$old_args" ; then
31 eval `echo ./configure $old_args`
32 else
33 ./configure "$@"
35 else
36 echo "Skipping configure process."