Mercurial > otakunoraifu
annotate configure.ac @ 55:f1a27ee7e03c
* started the same changes on scn2k_text.cc
* handle opcodes childObj*. In fact, it was handled (in a strange way, but it worked) before the previous changeset
author | thib |
---|---|
date | Wed, 22 Apr 2009 15:01:42 +0000 |
parents | 6581f7eccd26 |
children | 045ca45f9610 |
rev | line source |
---|---|
0 | 1 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
2 dnl | |
3 dnl First definition | |
41
4c832144b3f2
OtakuNoRaifu is born! (Changed 'xclannad' to 'OtakuNoRaifu')
thib
parents:
37
diff
changeset
|
4 AC_INIT(otakunoraifu, 0.1) |
0 | 5 |
6 dnl Software version | |
37 | 7 PACKAGE=$AC_PACKAGE_NAME |
8 VERSION=$AC_PACKAGE_VERSION | |
0 | 9 |
37 | 10 AM_INIT_AUTOMAKE |
0 | 11 |
12 dnl Specify a configuretion file | |
20
824b89018ea8
* CG completion percentage (maybe not working properly?)
thib
parents:
0
diff
changeset
|
13 AC_CONFIG_HEADER(config.h) |
0 | 14 |
15 dnl Checks for programs. | |
16 AC_PROG_CC | |
17 AC_PROG_CXX | |
18 AC_PROG_LN_S | |
19 AC_PROG_RANLIB | |
20 dnl AC_PROG_INSTALL | |
21 AC_PROG_MAKE_SET | |
22 | |
23 dnl dnl On FreeBSD 3.0 (and perhaps some other systems) GNU m4 is | |
24 dnl dnl called `gm4' where `m4' is the system's own m4. | |
25 dnl AC_CHECK_PROGS(M4, gm4 m4, m4) | |
26 dnl | |
27 dnl if test "$M4" = "m4"; then | |
28 dnl AC_MSG_CHECKING(whether m4 is GNU m4) | |
29 dnl if $M4 --version < /dev/null 2>/dev/null | grep '^GNU m4 ' >/dev/null ; then | |
30 dnl AC_MSG_RESULT(yes) | |
31 dnl else | |
32 dnl AC_MSG_RESULT(no) | |
33 dnl if test "$host_vendor" = "sun"; then | |
34 dnl AC_MSG_ERROR("SUN m4 does not work for building Gtk--. Please install GNU m4") | |
35 dnl fi | |
36 dnl fi | |
37 dnl fi | |
38 dnl | |
39 dnl dnl Check that this is GNU m4 - if not, exit with error if this is a SUN | |
40 dnl dnl | |
41 | |
42 dnl Checks for header files. | |
43 AC_HEADER_DIRENT | |
44 AC_HEADER_STDC | |
45 AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h) | |
46 | |
47 dnl Checks for typedefs, structures, and compiler characteristics. | |
48 AC_C_CONST | |
49 AC_TYPE_SIZE_T | |
50 AC_HEADER_TIME | |
51 AC_STRUCT_TM | |
52 #X_LIBS="$X_LIBS -lX11 -lXext -L/usr/X11R6/lib" | |
53 | |
54 | |
55 | |
56 dnl Checks for library functions. | |
57 AC_PROG_GCC_TRADITIONAL | |
58 AC_FUNC_MEMCMP | |
59 AC_FUNC_MMAP | |
60 AC_TYPE_SIGNAL | |
61 AC_CHECK_FUNCS(gettimeofday mkdir snprintf) | |
62 #ac_save_LIBS="$LIBS" | |
63 #LIBS="$LIBS -pthread" | |
64 #AC_CHECK_FUNCS(_thread_sys_sigaltstack) | |
65 #LIBS="$ac_save_LIBS" | |
66 AC_C_BIGENDIAN | |
67 | |
68 dnl for gettext | |
69 dnl ALL_LINGUAS="ja" | |
70 dnl AM_GNU_GETTEXT | |
71 AC_CHECK_FUNC(gettext,,AC_CHECK_LIB(intl, gettext)) | |
72 | |
73 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
74 dnl | |
75 dnl Check libraries | |
76 | |
77 AC_CHECK_LIB(z, zlibVersion) | |
78 AC_CHECK_LIB(png, png_write_end) | |
79 AC_CHECK_LIB(jpeg, jpeg_start_decompress) | |
80 dnl ogg vobis | |
49 | 81 AC_ARG_ENABLE(vorbis, |
25 | 82 AS_HELP_STRING([--disable-vorbis], [Build with vorbis and ogg (default yes)])) |
49 | 83 if test X$enable_vorbis != X"no"; then |
84 AC_ARG_WITH(tremor, AS_HELP_STRING([--with-tremor], | |
85 [use the tremor (integer-only implementation of vorbisfile) library (default no)])) | |
25 | 86 AC_CHECK_LIB(ogg, ogg_stream_init) |
87 AC_CHECK_LIB(vorbis, vorbis_book_decode,,,-logg) | |
49 | 88 if test X$with_tremor = X"yes"; then |
44 | 89 AC_CHECK_LIB(vorbisidec, ov_read,, |
90 AC_MSG_ERROR(vorbisidec (tremor) not found),-logg -lvorbis) | |
25 | 91 else |
44 | 92 AC_CHECK_LIB(vorbisfile, ov_read,, |
93 AC_MSG_ERROR(vorbisfile not found),-logg -lvorbis) | |
25 | 94 fi |
0 | 95 fi |
96 | |
97 dnl SDL config | |
98 AM_PATH_SDL() | |
99 AC_SUBST(SDL_CFLAGS) | |
100 AC_SUBST(SDL_LIBS) | |
101 | |
34 | 102 dnl check for sdl_gfx and sdl_mixer |
103 | |
104 AC_CHECK_LIB(SDL_gfx, rotozoomSurfaceXY,, | |
105 AC_MSG_ERROR(This program cannot be build without SDL_gfx)) | |
106 AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio,, | |
107 AC_MSG_ERROR(This program cannot be build without SDL_mixer)) | |
108 | |
0 | 109 dnl SMPEG & MAD config |
110 AM_PATH_SMPEG() | |
111 AC_SUBST(SMPEG_CFLAGS) | |
112 AC_SUBST(SMPEG_LIBS) | |
113 if test X"$SMPEG_LIBS" = X ; then | |
114 USE_SMPEG=0 | |
115 else | |
116 USE_SMPEG=1 | |
117 fi | |
49 | 118 AC_ARG_WITH(mad, |
119 [ --without-mad use mad (integer-only implementation for mpeg decoding) [ default yes]]) | |
120 if test X$without_mad != X"no"; then | |
0 | 121 AC_CHECK_LIB(mad, mad_decoder_run) |
122 fi | |
123 | |
124 AC_DEFINE_UNQUOTED(USE_SMPEG,$USE_SMPEG, [smpeg library is used]) | |
125 | |
126 dnl FreeType2 | |
127 AC_CHECK_FT2() | |
128 AC_SUBST(FT2_CFLAGS) | |
129 AC_SUBST(FT2_LIBS) | |
130 | |
131 | |
132 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
133 dnl | |
134 dnl Check option ... Zaurus or embed machines | |
135 USE_X11=1 | |
136 DISPSIZE="no" | |
137 | |
25 | 138 AC_ARG_ENABLE(nwatowav, |
139 AS_HELP_STRING([--enable-nwatowav], [Build the nwatowav utility (default no)])) | |
140 if test X$enable_nwatowav = X"yes"; then | |
141 AC_SUBST(NWATOWAV, ['nwatowav${EXEEXT}']) | |
142 fi | |
143 | |
144 AC_ARG_ENABLE(visarc, | |
145 AS_HELP_STRING([--enable-visarc], [Build the visarc utility (default no)])) | |
146 if test X$enable_visarc = X"yes"; then | |
147 AC_SUBST(VISARC, ['visarc${EXEEXT}']) | |
148 fi | |
149 | |
0 | 150 AC_ARG_ENABLE(zaurus, |
25 | 151 AS_HELP_STRING([--enable-zaurus], [Compile for zaurus environment (default no)])) |
0 | 152 if test X$enable_zaurus = X"yes"; then |
153 USE_X11=0 | |
154 DISPSIZE="320x240" | |
155 fi | |
156 | |
49 | 157 AC_ARG_WITH(x11, |
158 AS_HELP_STRING([--without-x11], [Use the X11 library (default yes)])) | |
159 if test X$with_x11 = X"no"; then | |
0 | 160 USE_X11=0 |
161 else | |
162 AC_PATH_X | |
163 AC_PATH_XTRA | |
164 X_LIBS="$X_LIBS -lX11 -lXext -L/usr/X11R6/lib" | |
165 LIBS="$LIBS $X_LIBS" | |
166 fi | |
167 | |
168 AC_ARG_ENABLE(displaysize, | |
25 | 169 AS_HELP_STRING([--enable-displaysize=SIZE], |
170 [Change default display size, for example --enable-displaysize=320x240]), | |
0 | 171 displaysize=$enableval) |
172 if test X$displaysize != X; then | |
173 DISPSIZE=$displaysize | |
174 fi | |
175 | |
176 AC_DEFINE_UNQUOTED(USE_X11,$USE_X11, [X11 library is used]) | |
177 AC_DEFINE_UNQUOTED(DISPSIZE, "$DISPSIZE", [default display size]) | |
178 | |
179 AC_OUTPUT(Makefile system/Makefile font/Makefile window/Makefile music2/Makefile scn2k/Makefile) |