-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·38 lines (29 loc) · 1.26 KB
/
autogen.sh
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
35
36
37
38
#!/bin/sh -
## autogen.sh - generate all the twisty little files.
rm -f libtool ltconfig ltmain.sh
# Generate aclocal.m4 from configure.in
aclocal
# Copy ltconfig and ltmain.sh for this version of libtool
libtoolize --automake --copy
# Generate Makefile.in's from Makefile.am's and configure.in
# (adding missing files that may be needed for proper operation)
automake --add-missing
# Generate include/config.h.in from acconfig.h and configure.in
autoheader
# Generate configure from configure.in and aclocal.m4
autoconf
# Rerun ./config.status, if it exists,
# to create new Makefiles under modules/* directories (e.g., modules/pie-menus)
# (Note that this only is useful if builddir == scrdir, otherwise the
# user may need to run config.status from their builddir(s) manually)
#test -x ./config.status && ./config.status || true
# Instead of rerunning config.status, re-run configure from scratch
if [ -r config.status ]; then
CMD=`awk '/^#.*\/?configure .*/ { $1 = ""; print; exit }' < config.status`
echo "Running: $CMD $@" 1>&2
else
CMD=./configure
fi
$CMD "$@" && echo && echo "Now type 'make' to compile Cassowary, and install via 'make install'."
# Make a missing symlink that does not get created from cvs checkouts
test -L c++/cassowary || ln -sf . ./c++/cassowary