1 | AC_PREREQ(2.50) |
---|
2 | |
---|
3 | AC_INIT([OGRE], [1.0.7]) |
---|
4 | |
---|
5 | AC_CANONICAL_TARGET |
---|
6 | |
---|
7 | # New syntax, but this is still buggy; PACKAGE gets defined as 'ogre' not 'OGRE' |
---|
8 | #AM_INIT_AUTOMAKE([1.7.0 foreign no-installinfo no-installman subdir-objects]) |
---|
9 | AM_INIT_AUTOMAKE([OGRE], [1.0.7]) |
---|
10 | AC_CONFIG_HEADERS([OgreMain/include/config.h]) |
---|
11 | |
---|
12 | dnl Check for programs |
---|
13 | AC_PROG_CC |
---|
14 | AC_PROG_CXX |
---|
15 | AM_PROG_CC_C_O |
---|
16 | AC_PROG_INSTALL |
---|
17 | AC_PROG_YACC |
---|
18 | AM_PROG_LEX |
---|
19 | |
---|
20 | dnl Setup target-specific parameters |
---|
21 | OGRE_SETUP_FOR_TARGET |
---|
22 | |
---|
23 | AC_DISABLE_STATIC |
---|
24 | AC_PROG_LIBTOOL |
---|
25 | |
---|
26 | dnl GCC version check |
---|
27 | if test x$GCC = xyes; then |
---|
28 | AC_MSG_CHECKING([version 3.1 or above of gcc]) |
---|
29 | if test -n "`$CC --version 2>&1|grep ' [[34]].'`"; then |
---|
30 | AC_DEFINE(EXT_HASH,, Use old STL hash options) |
---|
31 | AC_SUBST(OGRE_CFLAGS, "-DEXT_HASH") |
---|
32 | AC_MSG_RESULT(yes); |
---|
33 | else |
---|
34 | AC_MSG_RESULT(no) |
---|
35 | fi |
---|
36 | fi |
---|
37 | |
---|
38 | dnl Other stuff we need |
---|
39 | OGRE_USE_STLPORT |
---|
40 | #AM_PATH_SDL(1.2.0) |
---|
41 | AC_CHECK_FT2(9.0.0) |
---|
42 | |
---|
43 | AC_CHECK_LIB(dl, dlopen) |
---|
44 | AC_CHECK_LIB(m, pow) |
---|
45 | AC_CHECK_LIB(z, gzopen) |
---|
46 | AC_CHECK_LIB(pthread, pthread_create) |
---|
47 | AC_CHECK_FUNC(snprintf, AC_DEFINE(HAVE_SNPRINTF,,snprintf)) |
---|
48 | AC_CHECK_FUNC(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF,,vsnprintf)) |
---|
49 | |
---|
50 | OGRE_CHECK_CPPUNIT |
---|
51 | |
---|
52 | PKG_CHECK_MODULES(ZZIPLIB, zziplib) |
---|
53 | AC_SUBST(ZZIPLIB_CFLAGS) |
---|
54 | AC_SUBST(ZZIPLIB_LIBS) |
---|
55 | |
---|
56 | OGRE_GET_CONFIG_TOOLKIT |
---|
57 | OGRE_GET_PLATFORM |
---|
58 | OGRE_GET_GLSUPPORT |
---|
59 | |
---|
60 | dnl Find the optional components we should build |
---|
61 | OGRE_CHECK_DOUBLE |
---|
62 | OGRE_CHECK_THREADING |
---|
63 | OGRE_CHECK_DEVIL |
---|
64 | OGRE_CHECK_CG |
---|
65 | OGRE_CHECK_OPENEXR |
---|
66 | OGRE_CHECK_DX9 |
---|
67 | |
---|
68 | dnl Detect endianness |
---|
69 | OGRE_DETECT_ENDIAN |
---|
70 | |
---|
71 | dnl Check to see if -fPIC is required. |
---|
72 | OGRE_CHECK_PIC |
---|
73 | |
---|
74 | dnl Check to see if CEGUI is installed. |
---|
75 | OGRE_CHECK_CEGUI |
---|
76 | |
---|
77 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
78 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
79 | LIBS="$LIBS $SDL_LIBS" |
---|
80 | |
---|
81 | dnl versioning info for libtool |
---|
82 | dnl Note this is the ABI version which is not the same as our actual library version |
---|
83 | OGREMAIN_CURRENT=10 |
---|
84 | OGREMAIN_REVISION=0 |
---|
85 | OGREMAIN_AGE=6 |
---|
86 | OGREMAIN_VERSION_INFO=$OGREMAIN_CURRENT:$OGREMAIN_REVISION:$OGREMAIN_AGE |
---|
87 | AC_SUBST(OGREMAIN_VERSION_INFO) |
---|
88 | |
---|
89 | |
---|
90 | dnl Create the makefiles |
---|
91 | AC_CONFIG_FILES([Makefile \ |
---|
92 | OgreMain/Makefile \ |
---|
93 | OgreMain/src/Makefile \ |
---|
94 | OgreMain/include/Makefile \ |
---|
95 | PlatformManagers/Makefile \ |
---|
96 | PlatformManagers/SDL/Makefile \ |
---|
97 | PlatformManagers/SDL/src/Makefile |
---|
98 | PlatformManagers/SDL/include/Makefile |
---|
99 | PlatformManagers/gtk/Makefile \ |
---|
100 | PlatformManagers/gtk/src/Makefile \ |
---|
101 | PlatformManagers/gtk/include/Makefile \ |
---|
102 | PlatformManagers/GLX/Makefile \ |
---|
103 | PlatformManagers/GLX/src/Makefile \ |
---|
104 | PlatformManagers/GLX/include/Makefile \ |
---|
105 | PlatformManagers/Win32/Makefile \ |
---|
106 | PlatformManagers/Win32/src/Makefile \ |
---|
107 | PlatformManagers/Win32/include/Makefile \ |
---|
108 | PlugIns/Makefile \ |
---|
109 | PlugIns/BSPSceneManager/Makefile \ |
---|
110 | PlugIns/BSPSceneManager/src/Makefile \ |
---|
111 | PlugIns/BSPSceneManager/include/Makefile \ |
---|
112 | PlugIns/CgProgramManager/Makefile \ |
---|
113 | PlugIns/CgProgramManager/src/Makefile \ |
---|
114 | PlugIns/CgProgramManager/include/Makefile \ |
---|
115 | PlugIns/OctreeSceneManager/Makefile \ |
---|
116 | PlugIns/OctreeSceneManager/src/Makefile \ |
---|
117 | PlugIns/OctreeSceneManager/include/Makefile \ |
---|
118 | PlugIns/ParticleFX/Makefile \ |
---|
119 | PlugIns/ParticleFX/src/Makefile \ |
---|
120 | PlugIns/ParticleFX/include/Makefile \ |
---|
121 | RenderSystems/Makefile \ |
---|
122 | RenderSystems/GL/Makefile \ |
---|
123 | RenderSystems/GL/src/Makefile \ |
---|
124 | RenderSystems/GL/include/Makefile \ |
---|
125 | RenderSystems/GL/src/atifs/Makefile \ |
---|
126 | RenderSystems/GL/src/atifs/include/Makefile \ |
---|
127 | RenderSystems/GL/src/atifs/src/Makefile \ |
---|
128 | RenderSystems/GL/src/GLSL/Makefile \ |
---|
129 | RenderSystems/GL/src/GLSL/include/Makefile \ |
---|
130 | RenderSystems/GL/src/GLSL/src/Makefile \ |
---|
131 | RenderSystems/GL/src/nvparse/Makefile \ |
---|
132 | RenderSystems/Direct3D9/Makefile \ |
---|
133 | RenderSystems/Direct3D9/src/Makefile \ |
---|
134 | RenderSystems/Direct3D9/include/Makefile \ |
---|
135 | Samples/Makefile \ |
---|
136 | Samples/Common/Makefile \ |
---|
137 | Samples/Common/include/Makefile \ |
---|
138 | Samples/BezierPatch/Makefile \ |
---|
139 | Samples/BezierPatch/src/Makefile \ |
---|
140 | Samples/BezierPatch/include/Makefile \ |
---|
141 | Samples/CameraTrack/Makefile \ |
---|
142 | Samples/CameraTrack/src/Makefile \ |
---|
143 | Samples/CelShading/Makefile \ |
---|
144 | Samples/CelShading/src/Makefile \ |
---|
145 | Samples/CubeMapping/Makefile \ |
---|
146 | Samples/CubeMapping/src/Makefile \ |
---|
147 | Samples/CubeMapping/include/Makefile \ |
---|
148 | Samples/Dot3Bump/Makefile \ |
---|
149 | Samples/Dot3Bump/src/Makefile \ |
---|
150 | Samples/EnvMapping/Makefile \ |
---|
151 | Samples/EnvMapping/src/Makefile \ |
---|
152 | Samples/EnvMapping/include/Makefile \ |
---|
153 | Samples/Fresnel/Makefile \ |
---|
154 | Samples/Fresnel/src/Makefile \ |
---|
155 | Samples/Grass/Makefile \ |
---|
156 | Samples/Grass/src/Makefile \ |
---|
157 | Samples/Transpacency/Makefile \ |
---|
158 | Samples/Transpacency/src/Makefile \ |
---|
159 | Samples/Transpacency/include/Makefile \ |
---|
160 | Samples/Lighting/Makefile \ |
---|
161 | Samples/Lighting/src/Makefile \ |
---|
162 | Samples/Lighting/include/Makefile \ |
---|
163 | Samples/ParticleFX/Makefile \ |
---|
164 | Samples/ParticleFX/src/Makefile \ |
---|
165 | Samples/ParticleFX/include/Makefile \ |
---|
166 | Samples/RenderToTexture/Makefile \ |
---|
167 | Samples/RenderToTexture/src/Makefile \ |
---|
168 | Samples/TextureFX/Makefile \ |
---|
169 | Samples/TextureFX/src/Makefile \ |
---|
170 | Samples/TextureFX/include/Makefile \ |
---|
171 | Samples/Shadows/Makefile \ |
---|
172 | Samples/Shadows/src/Makefile \ |
---|
173 | Samples/SkyBox/Makefile \ |
---|
174 | Samples/SkyBox/src/Makefile \ |
---|
175 | Samples/SkyBox/include/Makefile \ |
---|
176 | Samples/SkyDome/Makefile \ |
---|
177 | Samples/SkyDome/src/Makefile \ |
---|
178 | Samples/SkyDome/include/Makefile \ |
---|
179 | Samples/SkyPlane/Makefile \ |
---|
180 | Samples/SkyPlane/src/Makefile \ |
---|
181 | Samples/SkyPlane/include/Makefile \ |
---|
182 | Samples/Smoke/Makefile \ |
---|
183 | Samples/Smoke/src/Makefile \ |
---|
184 | Samples/Smoke/include/Makefile \ |
---|
185 | Samples/BSP/Makefile \ |
---|
186 | Samples/BSP/src/Makefile \ |
---|
187 | Samples/SkeletalAnimation/Makefile \ |
---|
188 | Samples/SkeletalAnimation/src/Makefile \ |
---|
189 | Samples/SkeletalAnimation/include/Makefile \ |
---|
190 | Samples/Terrain/Makefile \ |
---|
191 | Samples/Terrain/src/Makefile \ |
---|
192 | Samples/Terrain/include/Makefile \ |
---|
193 | Samples/Water/Makefile \ |
---|
194 | Samples/Water/src/Makefile \ |
---|
195 | Samples/Water/include/Makefile \ |
---|
196 | Samples/DynTex/Makefile \ |
---|
197 | Samples/DynTex/src/Makefile \ |
---|
198 | Samples/DynTex/include/Makefile \ |
---|
199 | Samples/VolumeTex/Makefile \ |
---|
200 | Samples/VolumeTex/src/Makefile \ |
---|
201 | Samples/VolumeTex/include/Makefile \ |
---|
202 | Tests/Makefile \ |
---|
203 | Tests/src/Makefile \ |
---|
204 | Tools/Makefile \ |
---|
205 | Tools/MaterialUpgrader/Makefile \ |
---|
206 | Tools/MaterialUpgrader/src/Makefile \ |
---|
207 | Tools/MaterialUpgrader/include/Makefile \ |
---|
208 | Tools/MeshUpgrader/Makefile \ |
---|
209 | Tools/MeshUpgrader/src/Makefile \ |
---|
210 | Tools/XMLConverter/Makefile \ |
---|
211 | Tools/XMLConverter/src/Makefile \ |
---|
212 | Tools/XMLConverter/include/Makefile \ |
---|
213 | Tools/LightwaveConverter/Makefile \ |
---|
214 | Tools/LightwaveConverter/src/Makefile \ |
---|
215 | Tools/LightwaveConverter/include/Makefile \ |
---|
216 | OGRE.pc |
---|
217 | ]) |
---|
218 | |
---|
219 | AC_OUTPUT |
---|