Changeset 181
- Timestamp:
- 06/09/07 21:25:19 (1 year ago)
- Files:
-
- trunk/configure.ac (modified) (8 diffs)
- trunk/src/autoconf.h.in (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/configure.ac
r171 r181 17 17 dnl Check for C compiler 18 18 AC_PROG_CC 19 AC_PROG_CXX20 19 AC_ISC_POSIX 21 20 AC_C_BIGENDIAN … … 75 74 [enable_gtk=no]) 76 75 AC_ARG_ENABLE(curses, 77 [ --enable-curses Enables Curses frontend ],76 [ --enable-curses Enables Curses frontend (default: enabled)], 78 77 [enable_curses=$enableval], 79 78 [enable_curses=yes]) 80 79 AC_ARG_ENABLE(x11, 81 [ --enable-x11 Enables X11 frontend ],80 [ --enable-x11 Enables X11 frontend (default: enabled)], 82 81 [enable_x11=$enableval], 83 82 [enable_x11=yes]) 84 83 AC_ARG_ENABLE(sdl, 85 [ --enable-sdl Enables SDL frontend ],84 [ --enable-sdl Enables SDL frontend (default: enabled)], 86 85 [enable_sdl=$enableval], 87 86 [enable_sdl=yes]) … … 89 88 dnl Sound modules 90 89 AC_ARG_ENABLE(sdl_mixer, 91 [ -- disable-sdl-mixer Disables SDL mixer sound support],92 [ disable_sdl_mixer=$disable_sdl_mixer],93 [ disable_sdl_mixer=no])90 [ --enable-sdl-mixer Enables SDL mixer sound support (default: enabled)], 91 [enable_sdl_mixer=$enable_sdl_mixer], 92 [enable_sdl_mixer=yes]) 94 93 95 94 … … 132 131 AC_PATH_XTRA 133 132 134 if test "$X_DISPLAY_MISSING" != ""; then 135 AC_DEFINE(USE_X11, 0, [Define to 1 if using the X11 frontend and X11 libraries are found.]) 133 if test "x$have_x" != "xyes"; then 136 134 with_x11=no 137 135 else … … 149 147 if test "$SDL_CONFIG" = "no"; then 150 148 with_sdl=no 151 AC_DEFINE(USE_SDL, 0, [Define to 1 if using the SDL interface and SDL & SDL_ttf are found.]) 152 else 153 AC_CHECK_LIB(SDL_image, IMG_LoadPNG_RW, sdl_image=yes, sdl_image=no) 154 AC_CHECK_LIB(SDL_ttf, TTF_Init, sdl_ttf=yes, sdl_ttf=no) 155 156 if test "$sdl_image" = "yes"; then 157 if test "$sdl_ttf" = "yes"; then 149 else 150 AC_CHECK_LIB(SDL_image, IMG_LoadPNG_RW, with_sdl=yes, with_sdl=no) 151 AC_CHECK_LIB(SDL_ttf, TTF_Init, with_sdlx=yes, with_sdl=no) 152 153 if test "$with_sdl" = "yes"; then 158 154 AC_DEFINE(USE_SDL, 1, [Define to 1 if using the SDL interface and SDL is found.]) 159 155 CFLAGS="${CFLAGS} ${SDL_CFLAGS}" 160 156 LDFLAGS="${LDFLAGS} ${SDL_LIBS} -lSDL_image -lSDL_ttf" 161 with_sdl=yes 162 fi; fi 157 fi 163 158 fi 164 159 fi … … 171 166 ) 172 167 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6.0], 173 [with_g et=yes],168 [with_gtkx=yes], 174 169 [with_gtk=no] 175 170 ) 171 176 172 if test "$with_gtk" = "yes"; then 177 173 AC_DEFINE(USE_GTK, 1, [Define to 1 if using the GTK+ 2.x interface and GTK+ 2.x is found.]) 178 174 CFLAGS="${CFLAGS} $GTK_CFLAGS" 179 175 LDFLAGS="${LDFLAGS} $GTK_LIBS" 180 else181 AC_DEFINE(USE_GTK, 0, [Define to 1 if using the GTK+ 2.x interface and GTK+ 2.x is found.])182 176 fi 183 177 fi … … 185 179 dnl SDL mixer checking 186 180 187 if test "$ disable_sdl_mixer" != "yes"; then181 if test "$enable_sdl_mixer" = "yes"; then 188 182 AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, found_sdl_mixer=yes, found_sdl_mixer=no) 189 183 190 184 if test "$found_sdl_mixer" = "yes"; then 191 AC_DEFINE(SDL_SOUND, 1, [ Enabled SDL_mixer sound support])185 AC_DEFINE(SDL_SOUND, 1, [Define to 1 if using SDL_mixer sound support and it's found.]) 192 186 LDFLAGS="${LDFLAGS} -lSDL_mixer" 193 else194 AC_DEFINE(SDL_SOUND, 0, [Disabled SDL_mixer sound support])195 187 fi 196 188 fi … … 209 201 210 202 dnl Check for functions. 211 AC_FUNC_STAT212 203 AC_CHECK_FUNCS([memmove memset mkdir strtol mkstemp setegid can_change_color]) 213 204 trunk/src/autoconf.h.in
r167 r181 37 37 #undef HAVE_SETEGID 38 38 39 /* Define to 1 if `stat' has the bug that it succeeds when given the40 zero-length file name argument. */41 #undef HAVE_STAT_EMPTY_STRING_BUG42 43 39 /* Define to 1 if you have the <stdint.h> header file. */ 44 40 #undef HAVE_STDINT_H … … 71 67 #undef HAVE_UNISTD_H 72 68 73 /* Define to 1 if `lstat' dereferences a symlink specified with a trailing74 slash. */75 #undef LSTAT_FOLLOWS_SLASHED_SYMLINK76 77 69 /* Name of package */ 78 70 #undef PACKAGE … … 96 88 #undef RETSIGTYPE 97 89 98 /* D isabled SDL_mixer sound support*/90 /* Define to 1 if using SDL_mixer sound support and it's found. */ 99 91 #undef SDL_SOUND 100 92
