-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathautogen.sh
More file actions
executable file
·40 lines (31 loc) · 790 Bytes
/
autogen.sh
File metadata and controls
executable file
·40 lines (31 loc) · 790 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
31
32
33
34
35
36
37
38
39
#!/bin/sh
if test "$1" = "update"
then
# Update generated configuration files
if command -v autoreconf >/dev/null
then
autoreconf --force --install --verbose --warnings=all
else
echo "Update failed, please install autoconf first"
exit 1
fi
else
# Set up an m4 environment
aclocal
# Generate configure from configure.ac
autoconf
# reate a template header (config.h.in) for configure
autoheader
# generates a custom version of the generic libtool script
libtoolize --copy
# Generate Makefile.in from Makefile.am
automake --add-missing --copy
fi
echo
echo 'run "./configure --prefix=/usr && make"'
echo
# Generate Makefile from Makefile.in
#./configure
# Use Makefile to build and test a tarball to distribute
#make distcheck
#make distclean