X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=autogen.sh;h=e5000a6fd70cddc63b1f2a2dc21f54bc760641bc;hp=5c950baa11ce1377e47f7d4d8f9449ee65141a4d;hb=4a4d8f266a79275d7b2c902dc69b5ec8d46406b2;hpb=2ed89c59f0efcd0a2763f47c7d3455663241e623 diff --git a/autogen.sh b/autogen.sh index 5c950baa..e5000a6f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,12 +1,19 @@ #!/bin/sh -echo preparing... +# check if we have multiple processors/cores +n=$(nproc 2>/dev/null) +if [ -z "$n" ]; then + n=$(grep ^processor /proc/cpuinfo 2>/dev/null | wc -l) + [ $n -eq 0 ] && n=1 +fi +echo preparing, parallel=$n... if test -f Makefile; then - make maintainer-clean > /dev/null + make maintainer-clean > /dev/null 2>&1 fi -aclocal &> /dev/null +aclocal -I . > /dev/null 2>&1 autoconf -autoheader +autoheader echo configuring... ./configure $@ > /dev/null echo compiling... -make clean all > /dev/null +make clean2 > /dev/null 2>&1 +make -j $n > /dev/null