2007-03-17 14:28:25 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-11-20 18:22:43 +03:00
|
|
|
# create aclocal.m4 file with content of given directory without 'aclocal' tool
|
2009-11-20 18:29:47 +03:00
|
|
|
aclocal_emulate() {
|
2009-11-20 18:22:43 +03:00
|
|
|
dir="$1"
|
|
|
|
filename="aclocal.m4"
|
|
|
|
|
|
|
|
rm -f $filename
|
|
|
|
|
|
|
|
for i in `ls $dir/*`; do
|
|
|
|
echo "m4_include([$i])" >> $filename
|
|
|
|
done
|
|
|
|
|
|
|
|
echo " " >> $filename
|
|
|
|
}
|
|
|
|
|
2009-02-24 16:39:50 +03:00
|
|
|
if [ "$1" = "--compile" ]; then
|
|
|
|
compile=1
|
|
|
|
fi
|
2008-08-25 17:51:38 +04:00
|
|
|
|
2009-11-20 18:22:43 +03:00
|
|
|
if aclocal_emulate m4 && autoheader && autoconf; then
|
2007-03-17 14:28:25 +03:00
|
|
|
echo ""
|
|
|
|
echo "Now run ./configure [OPTIONS]"
|
|
|
|
echo "or './configure --help' to see them"
|
2009-02-24 16:39:50 +03:00
|
|
|
|
|
|
|
if [ $compile ]; then
|
|
|
|
./configure --enable-debug --prefix=/opt/ede && jam
|
|
|
|
fi
|
2007-03-17 14:28:25 +03:00
|
|
|
else
|
|
|
|
echo ""
|
2009-02-24 16:39:50 +03:00
|
|
|
echo "We failed :(. There should be some output, right?"
|
2007-03-17 14:28:25 +03:00
|
|
|
exit 1
|
|
|
|
fi
|