forked from silnrsi/encoding-converters-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautogen.sh
More file actions
executable file
·30 lines (25 loc) · 804 Bytes
/
autogen.sh
File metadata and controls
executable file
·30 lines (25 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# !/bin/sh
# Run this before configure (it runs configure itself, actually)
rm -f autogen.err
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
olddir=`pwd`
cd $srcdir
# Create aclocal.m4, so autoconf gets the additional macros it needs
echo "Creating aclocal.m4: aclocal -I ac-helpers $ACLOCAL_FLAGS"
aclocal -I ac-helpers $ACLOCAL_FLAGS 2>> autogen.err
# If we have an existing configure script, save a copy for comparison.
if [ -f config.cache ] && [ -f configure ]; then
cp configure configure.old
fi
# Create ./configure
echo "Creating configure..."
autoconf 2>> autogen.err || {
echo ""
echo "*** warning: possible errors while running automake - check autogen.err"
echo ""
}
cd $olddir
$srcdir/configure "$@"
echo
echo "Now type 'make' to compile the encConverter libraries."