Mercurial > otakunoraifu
comparison configure.in @ 0:223b71206888
Initial import
author | thib |
---|---|
date | Fri, 01 Aug 2008 16:32:45 +0000 |
parents | |
children | 824b89018ea8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:223b71206888 |
---|---|
1 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
2 dnl | |
3 dnl First definition | |
4 AC_INIT(scn2k) | |
5 | |
6 dnl Software version | |
7 PACKAGE=xclannad | |
8 VERSION=scn2k | |
9 | |
10 dnl I do not use automake ; It is too difficult for me ... | |
11 dnl AM_INIT_AUTOMAKE($PACKAGE, $VERSION) | |
12 | |
13 dnl Specify a configuretion file | |
14 AM_CONFIG_HEADER(config.h) | |
15 | |
16 dnl Checks for programs. | |
17 AC_PROG_CC | |
18 AC_PROG_CXX | |
19 AC_PROG_LN_S | |
20 AC_PROG_RANLIB | |
21 dnl AC_PROG_INSTALL | |
22 AC_PROG_MAKE_SET | |
23 | |
24 dnl dnl On FreeBSD 3.0 (and perhaps some other systems) GNU m4 is | |
25 dnl dnl called `gm4' where `m4' is the system's own m4. | |
26 dnl AC_CHECK_PROGS(M4, gm4 m4, m4) | |
27 dnl | |
28 dnl if test "$M4" = "m4"; then | |
29 dnl AC_MSG_CHECKING(whether m4 is GNU m4) | |
30 dnl if $M4 --version < /dev/null 2>/dev/null | grep '^GNU m4 ' >/dev/null ; then | |
31 dnl AC_MSG_RESULT(yes) | |
32 dnl else | |
33 dnl AC_MSG_RESULT(no) | |
34 dnl if test "$host_vendor" = "sun"; then | |
35 dnl AC_MSG_ERROR("SUN m4 does not work for building Gtk--. Please install GNU m4") | |
36 dnl fi | |
37 dnl fi | |
38 dnl fi | |
39 dnl | |
40 dnl dnl Check that this is GNU m4 - if not, exit with error if this is a SUN | |
41 dnl dnl | |
42 | |
43 dnl Checks for header files. | |
44 AC_HEADER_DIRENT | |
45 AC_HEADER_STDC | |
46 AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h) | |
47 | |
48 dnl Checks for typedefs, structures, and compiler characteristics. | |
49 AC_C_CONST | |
50 AC_TYPE_SIZE_T | |
51 AC_HEADER_TIME | |
52 AC_STRUCT_TM | |
53 #X_LIBS="$X_LIBS -lX11 -lXext -L/usr/X11R6/lib" | |
54 | |
55 | |
56 | |
57 dnl Checks for library functions. | |
58 AC_PROG_GCC_TRADITIONAL | |
59 AC_FUNC_MEMCMP | |
60 AC_FUNC_MMAP | |
61 AC_TYPE_SIGNAL | |
62 AC_CHECK_FUNCS(gettimeofday mkdir snprintf) | |
63 #ac_save_LIBS="$LIBS" | |
64 #LIBS="$LIBS -pthread" | |
65 #AC_CHECK_FUNCS(_thread_sys_sigaltstack) | |
66 #LIBS="$ac_save_LIBS" | |
67 AC_C_BIGENDIAN | |
68 | |
69 dnl for gettext | |
70 dnl ALL_LINGUAS="ja" | |
71 dnl AM_GNU_GETTEXT | |
72 AC_CHECK_FUNC(gettext,,AC_CHECK_LIB(intl, gettext)) | |
73 | |
74 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
75 dnl | |
76 dnl Check libraries | |
77 | |
78 AC_CHECK_LIB(z, zlibVersion) | |
79 AC_CHECK_LIB(png, png_write_end) | |
80 AC_CHECK_LIB(jpeg, jpeg_start_decompress) | |
81 dnl ogg vobis | |
82 AC_ARG_ENABLE(tremor, | |
83 [ --enable-tremor enable tremor (integer-only implementation for vorbisfile) [ default no]]) | |
84 AC_CHECK_LIB(ogg, ogg_stream_init) | |
85 AC_CHECK_LIB(vorbis, vorbis_book_decode,,,-logg) | |
86 if test X$enable_tremor = X"yes"; then | |
87 AC_CHECK_LIB(vorbisidec, ov_read,,,-logg -lvorbis) | |
88 else | |
89 AC_CHECK_LIB(vorbisfile, ov_read,,,-logg -lvorbis) | |
90 fi | |
91 | |
92 dnl SDL config | |
93 AM_PATH_SDL() | |
94 AC_SUBST(SDL_CFLAGS) | |
95 AC_SUBST(SDL_LIBS) | |
96 | |
97 dnl SMPEG & MAD config | |
98 AM_PATH_SMPEG() | |
99 AC_SUBST(SMPEG_CFLAGS) | |
100 AC_SUBST(SMPEG_LIBS) | |
101 if test X"$SMPEG_LIBS" = X ; then | |
102 USE_SMPEG=0 | |
103 else | |
104 USE_SMPEG=1 | |
105 fi | |
106 AC_ARG_ENABLE(mad, | |
107 [ --disable-mad disable mad (integer-only implementation for mpeg decoding) [ default yes]]) | |
108 if test X$enable_mad != X"no"; then | |
109 AC_CHECK_LIB(mad, mad_decoder_run) | |
110 fi | |
111 | |
112 AC_DEFINE_UNQUOTED(USE_SMPEG,$USE_SMPEG, [smpeg library is used]) | |
113 | |
114 dnl FreeType2 | |
115 AC_CHECK_FT2() | |
116 AC_SUBST(FT2_CFLAGS) | |
117 AC_SUBST(FT2_LIBS) | |
118 | |
119 | |
120 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
121 dnl | |
122 dnl Check option ... Zaurus or embed machines | |
123 USE_X11=1 | |
124 DISPSIZE="no" | |
125 | |
126 AC_ARG_ENABLE(zaurus, | |
127 [ --enable-zaurus compile for zaurus environment [ default no]]) | |
128 if test X$enable_zaurus = X"yes"; then | |
129 USE_X11=0 | |
130 DISPSIZE="320x240" | |
131 fi | |
132 | |
133 AC_ARG_ENABLE(x11, | |
134 [ --disable-x11 turn off using X11 library [default enable]]) | |
135 if test X$x11 = X"no"; then | |
136 USE_X11=0 | |
137 else | |
138 AC_PATH_X | |
139 AC_PATH_XTRA | |
140 X_LIBS="$X_LIBS -lX11 -lXext -L/usr/X11R6/lib" | |
141 LIBS="$LIBS $X_LIBS" | |
142 fi | |
143 | |
144 AC_ARG_ENABLE(displaysize, | |
145 [ --enable-displaysize=SIZE change default display size, for example --enable-displaysize=320x240], | |
146 displaysize=$enableval) | |
147 if test X$displaysize != X; then | |
148 DISPSIZE=$displaysize | |
149 fi | |
150 | |
151 AC_DEFINE_UNQUOTED(USE_X11,$USE_X11, [X11 library is used]) | |
152 AC_DEFINE_UNQUOTED(DISPSIZE, "$DISPSIZE", [default display size]) | |
153 | |
154 AC_OUTPUT(Makefile system/Makefile font/Makefile window/Makefile music2/Makefile scn2k/Makefile) |