Mercurial > sdl-ios-xcode
annotate test/configure.in @ 693:6c119628180d
Date: Sat, 16 Aug 2003 16:22:56 +0300
From: "Mike Gorchak"
Subject: Package building for QNX6
I'm just completed the package description file for QNX6 - qpg, it is like a\
.spec files for Linux. Please place SDL.qpg.in file in the root of the proj\
ect, where .spec file is placed. And sdl12qpg.diff - just adding the SDL.qpg\
.in. The same for the SDL_image. I'm planning to add .qpg files creation for\
all SDL* projects.
As for shared library building for QNX6. It is very hard to improve the exis\
ting libtool code to support QNX shared libraries. Much easyiest is to remov\
e libtool.m4 code from the acinclude.m4 for those persons, who building shar\
ed libraries for QNX6. I'm described all what they need to do with .so under\
QNX6 in the README.QNX file. And 90% of people used the precompiled librari\
es, so I think it is not big problem :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 23 Aug 2003 23:25:46 +0000 |
parents | b8679559e432 |
children | dec19b813b04 |
rev | line source |
---|---|
0 | 1 dnl Process this file with autoconf to produce a configure script. |
2 AC_INIT(README) | |
3 | |
4 dnl Setup for automake | |
670
b8679559e432
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
5 SDL_VERSION=1.2.6 |
0 | 6 |
7 dnl Detect the canonical host and target build environment | |
8 AC_CANONICAL_HOST | |
9 AC_CANONICAL_TARGET | |
10 | |
51
fba28d77901f
Disabled /dev/event joystick interface by default
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
11 dnl Setup for automake |
fba28d77901f
Disabled /dev/event joystick interface by default
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
12 AM_INIT_AUTOMAKE(SDL_tests, $SDL_VERSION) |
fba28d77901f
Disabled /dev/event joystick interface by default
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
13 |
0 | 14 dnl Check for tools |
15 | |
16 AC_PROG_CC | |
17 | |
18 dnl Check for compiler environment | |
19 | |
20 AC_C_CONST | |
21 | |
22 dnl Figure out which math library to use | |
23 case "$target" in | |
24 *-*-cygwin* | *-*-mingw32*) | |
25 MATHLIB="" | |
26 SYS_GL_LIBS="-lopengl32" | |
27 ;; | |
28 *-*-beos*) | |
29 MATHLIB="" | |
30 SYS_GL_LIBS="-lGL" | |
31 ;; | |
32 *-*-darwin*) | |
33 MATHLIB="" | |
34 SYS_GL_LIBS="" | |
35 ;; | |
36 *-*-aix*) | |
37 if test x$ac_cv_prog_gcc = xyes; then | |
38 CFLAGS="-mthreads" | |
39 fi | |
40 SYS_GL_LIBS="" | |
41 ;; | |
42 *) | |
43 MATHLIB="-lm" | |
44 AC_PATH_X | |
45 AC_PATH_XTRA | |
46 if test x$have_x = xyes; then | |
47 CFLAGS="$CFLAGS $X_CFLAGS" | |
48 SYS_GL_LIBS="$X_LIBS -lGL" | |
49 else | |
50 SYS_GL_LIBS="-lGL" | |
51 fi | |
52 ;; | |
53 esac | |
54 AC_SUBST(MATHLIB) | |
55 | |
56 dnl Check for SDL | |
57 | |
58 AM_PATH_SDL($SDL_VERSION, | |
59 :, | |
60 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) | |
61 ) | |
62 CFLAGS="$CFLAGS $SDL_CFLAGS" | |
63 LIBS="$LIBS $SDL_LIBS" | |
64 | |
65 dnl Check for OpenGL | |
66 AC_MSG_CHECKING(for OpenGL support) | |
67 have_opengl=no | |
68 AC_TRY_COMPILE([ | |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
214
diff
changeset
|
69 #include "SDL_opengl.h" |
0 | 70 ],[ |
71 ],[ | |
72 have_opengl=yes | |
73 ]) | |
74 AC_MSG_RESULT($have_opengl) | |
75 if test x$have_opengl = xyes; then | |
76 CFLAGS="$CFLAGS -DHAVE_OPENGL" | |
77 GL_LIBS="$SYS_GL_LIBS" | |
78 else | |
79 GL_LIBS="" | |
80 fi | |
81 AC_SUBST(GL_LIBS) | |
82 | |
83 # Finally create all the generated files | |
84 AC_OUTPUT([Makefile]) |