summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libmng/autogen.sh
blob: 0ed4a8b85104a9e751b7e116781370ac3354ad21 (plain)
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
31
32
33
34
# autogen.sh
#
# invoke the auto* tools to create the configureation system

# move out configure.in
if ! test -f configure.in; then
  echo "copying out configure.in"
  ln -s makefiles/configure.in
fi

# move out the macros and run aclocal
if ! test -f acinclude.m4; then
  echo "copying configure macros"
  ln -s makefiles/acinclude.m4 .
fi
aclocal

# build the configure script
autoconf

# set up libtool
libtoolize --force

# copy up our Makefile template and invoke automake
if ! test -f Makefile.am; then
  echo "copying automake template"
  ln -s makefiles/Makefile.am .
fi
automake --foreign --add-missing

# and finally invoke our new configure
./configure $*

# end