-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
182 lines (169 loc) · 4.86 KB
/
configure.ac
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
AC_INIT(taoframework, 2.1.svn20090801)
AC_CONFIG_AUX_DIR(.auto)
AM_INIT_AUTOMAKE([no-define tar-ustar])
AM_MAINTAINER_MODE
AC_SUBST(VERSION)
# Find version information for all projects
ACX_ASSEMBLY_VERSION(Tao.Cg, TAOCG_MAJOR, TAOCG_VERSION)
ACX_ASSEMBLY_VERSION(Tao.DevIl, TAODEVIL_MAJOR, TAODEVIL_VERSION)
ACX_ASSEMBLY_VERSION(Tao.FFmpeg, TAOFFMPEG_MAJOR, TAOFFMPEG_VERSION)
ACX_ASSEMBLY_VERSION(Tao.FreeGlut, TAOFREEGLUT_MAJOR, TAOFREEGLUT_VERSION)
ACX_ASSEMBLY_VERSION(Tao.FreeType, TAOFREETYPE_MAJOR, TAOFREETYPE_VERSION)
ACX_ASSEMBLY_VERSION(Tao.Glfw, TAOGLFW_MAJOR, TAOGLFW_VERSION)
ACX_ASSEMBLY_VERSION(Tao.Lua, TAOLUA_MAJOR, TAOLUA_VERSION)
ACX_ASSEMBLY_VERSION(Tao.FtGl, TAOFTGL_MAJOR, TAOFTGL_VERSION)
ACX_ASSEMBLY_VERSION(Tao.Ode, TAOODE_MAJOR, TAOODE_VERSION)
ACX_ASSEMBLY_VERSION(Tao.OpenAl, TAOOPENAL_MAJOR, TAOOPENAL_VERSION)
ACX_ASSEMBLY_VERSION(Tao.OpenGl, TAOOPENGL_MAJOR, TAOOPENGL_VERSION)
ACX_ASSEMBLY_VERSION(Tao.PhysFs, TAOPHYSFS_MAJOR, TAOPHYSFS_VERSION)
ACX_ASSEMBLY_VERSION(Tao.Platform.Windows, TAOWINDOWS_MAJOR, TAOWINDOWS_VERSION)
ACX_ASSEMBLY_VERSION(Tao.Platform.X11, TAOX11_MAJOR, TAOX11_VERSION)
ACX_ASSEMBLY_VERSION(Tao.Sdl, TAOSDL_MAJOR, TAOSDL_VERSION)
MONO_REQUIRED_VERSION=1.1
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION,
has_mono=true, has_mono=false)
if test "x$has_mono" = "xtrue"; then
AC_PATH_PROG(RUNTIME, mono, no)
AC_PATH_PROG(CSC, csc, no)
if test "$CSC" = "no"; then
AC_PATH_PROG(GMCS2, gmcs2, no)
CSC="$GMCS2"
fi
if test "$CSC" = "no"; then
AC_PATH_PROG(GMCS, gmcs, no)
CSC="$GMCS"
fi
if test `uname -s` = "Darwin"; then
LIB_PREFIX=
LIB_SUFFIX=.dylib
else
LIB_PREFIX=.so
LIB_SUFFIX=
fi
else
AC_PATH_PROG(CSC, csc.exe, no)
RUNTIME=
LIB_PREFIX=
LIB_SUFFIX=
fi
if test x$CSC = "xno"; then
AC_MSG_ERROR([You need to install either mono or .Net])
fi
AC_SUBST(LIB_PREFIX)
AC_SUBST(LIB_SUFFIX)
AC_SUBST(RUNTIME)
AC_SUBST(CSC)
AC_PATH_PROG(GACUTIL, gacutil2)
if test "$GACUTIL" = "no"; then
AC_PATH_PROG(GACUTIL1, gacutil, no)
GACUTIL="$GACUTIL1"
fi
if test "$GACUTIL" = "no" ; then
AC_MSG_ERROR([No gacutil tool found])
fi
AC_SUBST(GACUTIL)
AC_PATH_PROG(RESGEN, resgen2)
if test "$RESGEN" = "no"; then
AC_PATH_PROG(RESGEN1, resgen, no)
RESGEN="$RESGEN1"
fi
if test "$RESGEN" = "no" ; then
AC_MSG_ERROR([No resgen tool found])
fi
AC_SUBST(RESGEN)
MONODOC_REQUIRED_VERSION=1.0
AC_SUBST(MONODOC_REQUIRED_VERSION)
PKG_CHECK_MODULES(MONODOC_DEPENDENCY, monodoc >= $MONODOC_REQUIRED_VERSION,
enable_monodoc=yes, enable_monodoc=no)
if test "x$enable_monodoc" = "xyes"; then
AC_PATH_PROG(MONODOC, monodoc, no)
if test x$MONODOC = xno; then
enable_monodoc=no
fi
else
MONODOC=
fi
AC_SUBST(MONODOC)
AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_monodoc" = "xyes")
winbuild=no
case "$host" in
*-*-mingw*|*-*-cygwin*)
winbuild=yes
;;
esac
AM_CONDITIONAL(WINBUILD, test x$winbuild = xyes)
dnl
dnl TODO: put .pc files in there, too
dnl
AC_CONFIG_FILES(
Makefile
m4/Makefile
)
AC_CONFIG_FILES(
src/Makefile
src/Tao.Cg/Makefile
src/Tao.Cg/tao-cg.pc
src/Tao.DevIl/Makefile
src/Tao.DevIl/tao-devil.pc
src/Tao.FFmpeg/Makefile
src/Tao.FFmpeg/tao-ffmpeg.pc
src/Tao.FreeGlut/Makefile
src/Tao.FreeGlut/tao-freeglut.pc
src/Tao.FreeType/Makefile
src/Tao.FreeType/tao-freetype.pc
src/Tao.GlBindGen/Makefile
src/Tao.Glfw/Makefile
src/Tao.Glfw/tao-glfw.pc
src/Tao.Lua/Makefile
src/Tao.Lua/tao-lua.pc
src/Tao.FtGl/Makefile
src/Tao.FtGl/tao-ftgl.pc
src/Tao.Ode/Makefile
src/Tao.Ode/tao-ode.pc
src/Tao.OpenAl/Makefile
src/Tao.OpenAl/tao-openal.pc
src/Tao.OpenGl/Makefile
src/Tao.OpenGl/tao-opengl.pc
src/Tao.PhysFs/Makefile
src/Tao.PhysFs/tao-physfs.pc
src/Tao.Platform.Windows/Makefile
src/Tao.Platform.Windows/tao-platform-windows.pc
src/Tao.Platform.X11/Makefile
src/Tao.Platform.X11/tao-platform-x11.pc
src/Tao.Sdl/Makefile
src/Tao.Sdl/tao-sdl.pc
)
AC_CONFIG_FILES(
tests/Makefile
tests/Ode/Makefile
tests/Ode/tao-ode-tests.pc
tests/Sdl/Makefile
tests/Sdl/tao-sdl-tests.pc
)
AC_CONFIG_FILES(
examples/Makefile
examples/CgExamples/Makefile
examples/DevIlExamples/Makefile
examples/FFmpegExamples/Makefile
examples/FreeGlutExamples/Makefile
examples/GeWangExamples/Makefile
examples/GlfwExamples/Makefile
examples/LuaFunctions/Makefile
examples/LuaSimple/Makefile
examples/FtGlSimple/Makefile
examples/FtGlScrolling/Makefile
examples/NateRobins/Makefile
examples/NeHe/Makefile
examples/OdeExamples/Makefile
examples/OpenAlExamples/Makefile
examples/PhysFsExamples/Makefile
examples/Redbook/Makefile
examples/SdlExamples/Makefile
)
AC_OUTPUT
echo "==="
echo "Project configuration summary"
echo " * installation prefix: $prefix"
echo " * compiler: $CSC"
echo " * documentation: $enable_monodoc ($MONODOC)"
echo "==="