mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Synced with autogen.sh from edelib.
This commit is contained in:
parent
fc0cdee788
commit
93f8b5043a
17
autogen.sh
17
autogen.sh
@ -1,11 +1,24 @@
|
|||||||
#!/bin/sh
|
#!/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
|
if [ "$1" = "--compile" ]; then
|
||||||
compile=1
|
compile=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if aclocal -I m4 && autoheader && autoconf; then
|
if aclocal_emulate m4 && autoheader && autoconf; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "Now run ./configure [OPTIONS]"
|
echo "Now run ./configure [OPTIONS]"
|
||||||
echo "or './configure --help' to see them"
|
echo "or './configure --help' to see them"
|
||||||
|
Loading…
Reference in New Issue
Block a user