source: OGRE/trunk/ogrenew/configure.in @ 657

Revision 657, 6.5 KB checked in by mattausch, 18 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1AC_PREREQ(2.50)
2
3AC_INIT([OGRE], [1.0.7])
4
5AC_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])
9AM_INIT_AUTOMAKE([OGRE], [1.0.7])
10AC_CONFIG_HEADERS([OgreMain/include/config.h])
11
12dnl Check for programs
13AC_PROG_CC
14AC_PROG_CXX
15AM_PROG_CC_C_O
16AC_PROG_INSTALL
17AC_PROG_YACC
18AM_PROG_LEX
19
20dnl Setup target-specific parameters
21OGRE_SETUP_FOR_TARGET
22
23AC_DISABLE_STATIC
24AC_PROG_LIBTOOL
25
26dnl GCC version check
27if 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
36fi
37
38dnl Other stuff we need
39OGRE_USE_STLPORT
40#AM_PATH_SDL(1.2.0)
41AC_CHECK_FT2(9.0.0)
42
43AC_CHECK_LIB(dl, dlopen)
44AC_CHECK_LIB(m, pow)
45AC_CHECK_LIB(z, gzopen)
46AC_CHECK_LIB(pthread, pthread_create)
47AC_CHECK_FUNC(snprintf, AC_DEFINE(HAVE_SNPRINTF,,snprintf))
48AC_CHECK_FUNC(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF,,vsnprintf))
49
50OGRE_CHECK_CPPUNIT
51
52PKG_CHECK_MODULES(ZZIPLIB, zziplib)
53AC_SUBST(ZZIPLIB_CFLAGS)
54AC_SUBST(ZZIPLIB_LIBS)
55
56OGRE_GET_CONFIG_TOOLKIT
57OGRE_GET_PLATFORM
58OGRE_GET_GLSUPPORT
59
60dnl Find the optional components we should build
61OGRE_CHECK_DOUBLE
62OGRE_CHECK_THREADING
63OGRE_CHECK_DEVIL
64OGRE_CHECK_CG
65OGRE_CHECK_OPENEXR
66OGRE_CHECK_DX9
67
68dnl Detect endianness
69OGRE_DETECT_ENDIAN
70
71dnl Check to see if -fPIC is required.
72OGRE_CHECK_PIC
73
74dnl Check to see if CEGUI is installed.
75OGRE_CHECK_CEGUI
76
77CFLAGS="$CFLAGS $SDL_CFLAGS"
78CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
79LIBS="$LIBS $SDL_LIBS"
80
81dnl versioning info for libtool
82dnl Note this is the ABI version which is not the same as our actual library version
83OGREMAIN_CURRENT=10
84OGREMAIN_REVISION=0
85OGREMAIN_AGE=6
86OGREMAIN_VERSION_INFO=$OGREMAIN_CURRENT:$OGREMAIN_REVISION:$OGREMAIN_AGE
87AC_SUBST(OGREMAIN_VERSION_INFO)
88
89
90dnl Create the makefiles
91AC_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
219AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.