blob: e85773a69e1b9a1dc2aa894ab6bf999169dd2c66 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
AC_INIT(Makefile.am)
#Variables
resid=resid-0.13
pwd=`pwd`
builders='${libdir}'/sidplay/builders
ac_configure_args="$ac_configure_args --disable-library-checks"
# Setup paths
test ! -r "resid" && ln -sf "$resid" "resid"
test ! -r "unix" && ln -sf libsidplay/unix unix
AC_CONFIG_AUX_DIR(unix)
AM_INIT_AUTOMAKE(sidplay-libs,2.1.0)
if ! test -r "builders/Makefile.am"; then
echo "Generating builder Makefile.am..."
cat >>builders/Makefile.am <<EOF
SUBDIRS = resid-builder
EOF
automake -a
fi
cd $pwd/libsidplay
if ! eval ./configure $ac_configure_args \
--with-sidbuilders=$builders;
then
exit
fi
cd "$pwd/resid"
if ! eval ./configure $ac_configure_args \
--disable-resid-install;
then
exit
fi
cd $pwd/builders/resid-builder
if ! eval ./configure $ac_configure_args \
--with-sidplay2-includes=$pwd/libsidplay/include \
--with-sidplay2-library=$pwd/libsidplay/src \
--with-resid-includes=$pwd/resid \
--with-resid-library=$pwd/resid \
--libdir=$builders;
then
exit
fi
cd $pwd/libsidutils
if ! eval ./configure $ac_configure_args \
--with-sidplay2-includes=$pwd/libsidplay/include \
--with-sidplay2-library=$pwd/libsidplay/src;
then
exit
fi
cd $pwd
AC_OUTPUT(
Makefile \
builders/Makefile \
)
|