Last change
on this file since 28 was
5,
checked in by anonymous, 17 years ago
|
=hoffentlich gehts jetzt
|
File size:
1.1 KB
|
Line | |
---|
1 | AC_PREREQ(2.50) |
---|
2 | |
---|
3 | AC_INIT(OGRE_REFAPP, 0.10.0) |
---|
4 | AM_INIT_AUTOMAKE([1.6.1 foreign no-installinfo no-installman subdir-objects]) |
---|
5 | AM_CONFIG_HEADER(ReferenceAppLayer/include/config.h) |
---|
6 | |
---|
7 | AC_CANONICAL_TARGET |
---|
8 | |
---|
9 | dnl Check for programs |
---|
10 | AC_PROG_CC |
---|
11 | AC_PROG_CXX |
---|
12 | AC_PROG_INSTALL |
---|
13 | |
---|
14 | AM_PROG_LIBTOOL |
---|
15 | |
---|
16 | dnl GCC ersion check |
---|
17 | if test x$GCC = xyes; then |
---|
18 | AC_MSG_CHECKING([version 3.x of gcc]) |
---|
19 | if test -n "`$CC --version 2>&1|grep '3.'`"; then |
---|
20 | AC_DEFINE(EXT_HASH,, Use old STL hash options) |
---|
21 | AC_MSG_RESULT(yes); |
---|
22 | else |
---|
23 | AC_MSG_RESULT(no)! |
---|
24 | fi |
---|
25 | fi |
---|
26 | |
---|
27 | dnl Other stuff we need |
---|
28 | PKG_CHECK_MODULES(OGRE, OGRE) |
---|
29 | AC_LANG_PUSH([C++]) |
---|
30 | AC_CHECK_LIB([ode], [main], [], AC_MSG_ERROR([Can't find libode])) |
---|
31 | AC_LANG_POP([C++]) |
---|
32 | AC_CHECK_LIB(m, pow) |
---|
33 | AC_CHECK_LIB(z, gzopen) |
---|
34 | AC_CHECK_FUNC(snprintf, AC_DEFINE(HAVE_SNPRINTF,,snprintf)) |
---|
35 | AC_CHECK_FUNC(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF,,vsnprintf)) |
---|
36 | |
---|
37 | dnl Create the makefiles |
---|
38 | AC_CONFIG_FILES([Makefile \ |
---|
39 | ReferenceAppLayer/Makefile \ |
---|
40 | ReferenceAppLayer/src/Makefile \ |
---|
41 | ReferenceAppLayer/include/Makefile \ |
---|
42 | BspCollision/Makefile \ |
---|
43 | BspCollision/src/Makefile |
---|
44 | |
---|
45 | ]) |
---|
46 | |
---|
47 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.