1#!/bin/sh 2 3if ! test -f build/gnuauto/setup.sh; then 4 5 echo "" 6 echo "* * * Execute this script from the top source directory, e.g.:" 7 echo "" 8 echo " $ /bin/sh build/gnuauto/setup.sh" 9 echo "" 10 11else 12 13 for i in libtoolize glibtoolize 14 do 15 ( $i --version) < /dev/null > /dev/null 2>&1 && 16 LIBTOOLIZE=$i 17 done 18 if test -z "$LIBTOOLIZE" ; then 19 echo "You need libtoolize to continue" 20 exit 1; 21 fi 22 top_srcdir=`pwd` 23 echo "" 24 echo "Generating the build system in $top_srcdir" 25 echo "" 26 echo "copying files into place: cd build/gnuauto && cp -R -f * $top_srcdir" 27 (cd build/gnuauto && cp -R -f * $top_srcdir) 28 echo "running: $LIBTOOLIZE --force --copy" 29 $LIBTOOLIZE --force --copy 30 echo "running: aclocal" 31 aclocal 32 echo "running: automake -a -c --foreign" 33 automake -a -c --foreign 34 echo "running: autoconf" 35 autoconf 36 echo "" 37 echo "If the above commands were successful you should now be able" 38 echo "to build in the usual way:" 39 echo "" 40 echo " $ ./configure --prefix=/usr" 41 echo " $ make" 42 echo " $ make install" 43 echo "" 44 echo "to get a list of configure options type: ./configure --help" 45 echo "" 46 echo "Alternatively, you should be able to build outside of the source" 47 echo "tree. e.g.:" 48 echo "" 49 echo " $ mkdir ../build-tidy" 50 echo " $ cd ../build-tidy" 51 echo " $ ../tidy/configure --prefix=/usr" 52 echo " $ make" 53 echo " $ make install" 54 echo "" 55 56fi 57