-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathautogen.sh
More file actions
executable file
·42 lines (33 loc) · 842 Bytes
/
autogen.sh
File metadata and controls
executable file
·42 lines (33 loc) · 842 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
40
41
42
#!/bin/sh
set -e
# Constants
ACLOCAL="aclocal"
AUTOHEADER="autoheader"
AUTOMAKE="automake"
AUTOCONF="autoconf"
case `uname` in
*"Darwin"*)
echo "It's a Mac, we use glibtoolize instead of libtoolize"
LIBTOOLIZE="glibtoolize"
;;
*)
LIBTOOLIZE="libtoolize"
;;
esac
# Cleanup
echo "Cleanup"
rm -rf .libs autom4te*.cache scripts aclocal.m4 configure config.log config.status config.guess config.sub .deps stamp-h1 depcomp install-sh ltmain.sh missing libtool config.h config.h.in config.h.in~ m4 ar-lib compile 2> /dev/null
rm -f *.o *.la *.lo *.slo Makefile.in Makefile 2> /dev/null
if [ "$1" = "clean" ]; then
exit
fi
echo "Running aclocal"
${ACLOCAL}
echo "Running libtoolize"
${LIBTOOLIZE} -c
echo "Running autoheader"
${AUTOHEADER}
echo "Running automake"
${AUTOMAKE} -a
echo "Running autoconf"
${AUTOCONF}