forked from b-k/apophenia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·44 lines (32 loc) · 1.26 KB
/
configure
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
43
44
version=0.999
workdir=apophenia-$version
echo This configure script uses Autotools to generate a build directory, $workdir.
if [ ! -x `which autoreconf` ]
then
echo "I couldn't find and execute autoreconf, part of the Autotools suite. See README for details."
else
echo "Don't forget: Apophenia always depends on the GNU Scientific Library and SQLite3 (_and_ their -dev or -devel packages) to build and run."
mkdir -p $workdir/m4
cp -r cmd docs eg install/{acinclude.m4,apophenia.pc.in,configure.ac,Makefile.am,COPYING,COPYING2,Readme-pkg,rpm.spec,apophenia.map} model tests transform README ChangeLog $workdir
#Debian maintainers didn't want this in the makefile.
cp *.c $workdir && rm $workdir/*.m4.c
cp apop_internal.h $workdir
m4 -P install/prep_variadics.m4 apop.m4.h > $workdir/apop.h
for i in *.m4.c; do
m4 -P install/prep_variadics.m4 $i > $workdir/`basename $i .m4.c`.c
done
#mkdir -p $workdir/tests/apophenia
#cp *.h $workdir/tests/apophenia
cd $workdir
#Autoconf requirements:
cp ChangeLog NEWS
echo "Ben Klemens (fluffmail@f-m.fm)" > AUTHORS
autoreconf -f -i
autoreconf -i
./configure -C
make dist
echo
echo ---------------------
echo
echo "OK, built. From the $workdir directory, you can run: make && sudo make install"
fi #end `else' block of test for Autotools.