Synced with autogen.sh from edelib.

This commit is contained in:
Sanel Zukan 2009-11-20 15:22:43 +00:00
parent fc0cdee788
commit 93f8b5043a

View File

@ -1,11 +1,24 @@
#!/bin/sh
# to save me from typing :P
# create aclocal.m4 file with content of given directory without 'aclocal' tool
function aclocal_emulate() {
dir="$1"
filename="aclocal.m4"
rm -f $filename
for i in `ls $dir/*`; do
echo "m4_include([$i])" >> $filename
done
echo " " >> $filename
}
if [ "$1" = "--compile" ]; then
compile=1
fi
if aclocal -I m4 && autoheader && autoconf; then
if aclocal_emulate m4 && autoheader && autoconf; then
echo ""
echo "Now run ./configure [OPTIONS]"
echo "or './configure --help' to see them"