1#! /bin/sh 2# this is stolen from https://github.com/rakshasa/rtorrent/blob/master/autogen.sh and modified slightly 3 4echo aclocal... 5(aclocal --version) < /dev/null > /dev/null 2>&1 || { 6 echo aclocal not found 7 exit 1 8} 9 10aclocal -I . ${ACLOCAL_FLAGS} || exit 1 11 12echo autoheader... 13(autoheader --version) < /dev/null > /dev/null 2>&1 || { 14 echo autoheader not found 15 exit 1 16} 17 18autoheader || exit 1 19 20printf "%s" "libtoolize... " 21if ( (glibtoolize --version) < /dev/null > /dev/null 2>&1 ); then 22 echo "using glibtoolize" 23 glibtoolize --automake --copy --force || exit 1 24elif ( (libtoolize --version) < /dev/null > /dev/null 2>&1 ) ; then 25 echo "using libtoolize" 26 libtoolize --automake --copy --force || exit 1 27else 28 echo "neither libtoolize nor glibtoolize found" 29 exit 1 30fi 31 32echo automake... 33(automake --version) < /dev/null > /dev/null 2>&1 || { 34 echo automake not found 35 exit 1 36} 37 38automake --add-missing --copy --gnu || exit 1 39 40echo autoconf... 41(autoconf --version) < /dev/null > /dev/null 2>&1 || { 42 echo autoconf not found 43 exit 1 44} 45 46autoconf || exit 1 47 48echo ready to configure 49 50exit 0 51