source: trunk/src/3rdparty/libmng/unmaintained/autogen.sh

Last change on this file was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1# autogen.sh
2#
3# invoke the auto* tools to create the configureation system
4
5# move out configure.in
6if ! test -f configure.in; then
7 echo "copying configure.in"
8 ln -s makefiles/configure.in .
9fi
10
11# move out the macros and run aclocal
12if test ! -f acinclude.m4 -a -r makefiles/acinclude.m4; then
13 echo "copying configure macros"
14 ln -s makefiles/acinclude.m4 .
15fi
16
17# copy up our Makefile template
18if ! test -f Makefile.am; then
19 echo "copying automake template"
20 ln -s makefiles/Makefile.am .
21fi
22
23echo "running aclocal"
24aclocal
25
26# libtool is named glibtool on MacOS X
27for LIBTOOLIZE in libtoolize glibtoolize nope; do
28 ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 && break
29done
30if test x$LIBTOOLIZE = xnope; then
31 echo "error: Could not find libtoolize in the path!"
32 echo " You'll need to install a copy of libtool before continuing"
33 echo " with the generation of the build system."
34 echo
35 exit 1
36fi
37
38echo "running $LIBTOOLIZE"
39$LIBTOOLIZE --automake
40
41echo "running automake"
42automake --foreign --add-missing
43
44echo "building configure script"
45autoconf
46
47# and finally invoke our new configure
48./configure $*
49
50# end
Note: See TracBrowser for help on using the repository browser.