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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
AC_INIT(README)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR(src/Main.cs)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(openracing, 0.1)
# AM_MAINTAINER_MODE
dnl -------------------------------------------
dnl OgreDotNet support
dnl -------------------------------------------
ogredotnet_lib=
AC_ARG_WITH(ogredotnet,
[ --with-ogredotnet specify path of OgreDotNet's binaries],
[if test -n ${with_ogredotnet}; then
ogredotnet_lib=${with_ogredotnet};
dcheck="$dcheck --with-ogredotnet=${with_ogredotnet} ";
else
ogredotnet_lib=${libdir}/ogredotnet;
fi
],
[ogredotnet_lib=${libdir}/ogredotnet;]
)
AC_CHECK_FILES($ogredotnet_lib/OgreDotNet.dll $ogredotnet_lib/Math3D.dll, [],
AC_MSG_ERROR([could not find ogredotnet dlls in $ogredotnet_lib please use --with-ogredotnet to set the apropriate path]))
AC_SUBST(ogredotnet_lib)
dnl -------------------------------------------
dnl MyGUI.Net support
dnl -------------------------------------------
dnl myguinet_lib=
dnl AC_ARG_WITH(myguinet,
dnl [ --with-myguinet specify path of MyGUI.Net's binaries],
dnl [if test -n ${with_myguinet}; then
dnl myguinet_lib=${with_myguinet};
dnl dcheck="$dcheck --with-myguinet=${with_myguinet} ";
dnl else
dnl myguinet_lib=${libdir}/myguinet;
dnl fi
dnl ],
dnl [myguinet_lib=${libdir}/myguinet;]
dnl )
dnl AC_CHECK_FILES($myguinet_lib/MyGUI.dll, [],
dnl AC_MSG_ERROR([could not find MyGUI.Net dlls in $myguinet_lib please use --with-myguinet to set the apropriate path]))
dnl AC_SUBST(myguinet_lib)
dnl -------------------------------------------
dnl C++ and Libtool support
dnl -------------------------------------------
AC_PROG_CXX
AC_DISABLE_STATIC
AM_PROG_LIBTOOL
AM_PROG_INSTALL
dnl -------------------------------------------
dnl Swig support
dnl -------------------------------------------
AC_PROG_SWIG(1.3.21)
SWIG_ENABLE_CXX
dnl pkg-config
#AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
#if test "x$PKG_CONFIG" = "xno"; then
# AC_MSG_ERROR([You need to install pkg-config])
#fi
dnl C# compiler
AC_PATH_PROG(CSC, csc, no)
AC_PATH_PROG(GMCS, gmcs, no)
AC_PATH_PROG(MONO, mono, no)
dnl -------------------------------------------
dnl Mono/C# support
dnl -------------------------------------------
CS="C#"
if test "x$CSC" = "xno" -a "x$MCS" = "xno" ; then
dnl AC_MSG_ERROR([You need to install a C# compiler])
AC_MSG_ERROR([No $CS compiler found])
fi
if test "x$GMCS" = "xno" ; then
GMCS=$CSC
fi
if test "x$MONO" = "xno"; then
AC_MSG_ERROR([No mono runtime found])
fi
AC_SUBST(GMCS)
OPENRACING_DATADIR=share/openracing
AC_SUBST(OPENRACING_DATADIR)
dnl ---------------------------------------
dnl STL / Freetype / Ogre / OIS (for MyGUI)
dnl ---------------------------------------
OPENRACING_USE_STLPORT
AC_CHECK_FT2(9.0.0)
OPENRACING_CHECK_OGRE
OPENRACING_CHECK_OIS
OPENRACING_CHECK_MYGUI
dnl -------------------------------------------
dnl Generated makefiles
dnl -------------------------------------------
AC_OUTPUT([
Makefile
man/Makefile
resources/Makefile
src/AssemblyInfo.cs
src/Config.cs
src/Makefile
src/libsimulator/Makefile
src/libsimulator/drivers/Makefile
src/libsimulator/drivers/olethros/Makefile
src/libsimulator/gnulinux/Makefile
src/libsimulator/interfaces/Makefile
src/libsimulator/learning/Makefile
src/libsimulator/plib/Makefile
src/libsimulator/robottools/Makefile
src/libsimulator/simuv2/Makefile
src/libsimulator/solid-2.0/Makefile
src/libsimulator/tgf/Makefile
src/libsimulator/track/Makefile
src/libsimulator/txml/Makefile
src/swigtorcs/Makefile
src/swigmisc/Makefile
data/Makefile
data/install.sh
])
|