Changeset 167
- Timestamp:
- 06/08/07 14:03:42 (3 years ago)
- Files:
-
- trunk/configure.ac (modified) (4 diffs)
- trunk/src/autoconf.h.in (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/configure.ac
r159 r167 75 75 [enable_gtk=no]) 76 76 AC_ARG_ENABLE(curses, 77 [ --enable-curses Enables Curses frontend (default: enabled)],77 [ --enable-curses Enables Curses frontend], 78 78 [enable_curses=$enableval], 79 79 [enable_curses=yes]) 80 80 AC_ARG_ENABLE(x11, 81 [ --enable-x11 Enables X11 frontend (default: disabled)],81 [ --enable-x11 Enables X11 frontend], 82 82 [enable_x11=$enableval], 83 [enable_x11= no])83 [enable_x11=yes]) 84 84 AC_ARG_ENABLE(sdl, 85 [ --enable-sdl Enables SDL frontend (default: disabled)],85 [ --enable-sdl Enables SDL frontend], 86 86 [enable_sdl=$enableval], 87 [enable_sdl= no])87 [enable_sdl=yes]) 88 88 89 89 dnl Sound modules … … 130 130 dnl X11 checking 131 131 if test "$enable_x11" = "yes"; then 132 AC_PATH_X 133 if test "$x_libraries" = "no"; then 132 AC_PATH_XTRA 133 134 if test "$X_DISPLAY_MISSING" != ""; then 134 135 AC_DEFINE(USE_X11, 0, [Define to 1 if using the X11 frontend and X11 libraries are found.]) 135 136 with_x11=no 136 137 else 137 138 AC_DEFINE(USE_X11, 1, [Define to 1 if using the X11 frontend and X11 libraries are found.]) 138 CFLAGS +=" -I/usr/X11R6/include -I/usr/include"139 LDFLAGS +=" $x_libraries"139 CFLAGS="$CFLAGS $X_CFLAGS" 140 LDFLAGS="$LDFLAGS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 140 141 with_x11=yes 141 142 fi … … 145 146 if test "$enable_sdl" = "yes"; then 146 147 AM_PATH_SDL(1.2.0,,) 147 AC_CHECK_HEADERS([SDL/SDL_ttf.h]) 148 148 149 if test "$SDL_CONFIG" = "no"; then 149 150 with_sdl=no 150 151 AC_DEFINE(USE_SDL, 0, [Define to 1 if using the SDL interface and SDL & SDL_ttf are found.]) 151 152 else 152 AC_DEFINE(USE_SDL, 1, [Define to 1 if using the SDL interface and SDL & SDL_ttf are found.]) 153 CFLAGS="${CFLAGS} $SDL_CFLAGS" 154 LDFLAGS="${LDFLAGS} $SDL_LIBS" 155 with_sdl=yes 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 158 AC_DEFINE(USE_SDL, 1, [Define to 1 if using the SDL interface and SDL is found.]) 159 CFLAGS="${CFLAGS} ${SDL_CFLAGS}" 160 LDFLAGS="${LDFLAGS} ${SDL_LIBS} -lSDL_image -lSDL_ttf" 161 with_sdl=yes 162 fi; fi 156 163 fi 157 164 fi … … 203 210 dnl Check for functions. 204 211 AC_FUNC_STAT 205 AC_FUNC_SELECT_ARGTYPES 206 AC_CHECK_FUNCS([memmove memset strrchr mkdir strtol mkstemp setegid can_change_color]) 212 AC_CHECK_FUNCS([memmove memset mkdir strtol mkstemp setegid can_change_color]) 207 213 208 214 dnl XXX: Work around some autoconf bugs. trunk/src/autoconf.h.in
r159 r167 34 34 #undef HAVE_MKSTEMP 35 35 36 /* Define to 1 if you have the <SDL/SDL_ttf.h> header file. */37 #undef HAVE_SDL_SDL_TTF_H38 39 36 /* Define to 1 if you have the `setegid' function. */ 40 37 #undef HAVE_SETEGID … … 56 53 #undef HAVE_STRING_H 57 54 58 /* Define to 1 if you have the `strrchr' function. */59 #undef HAVE_STRRCHR60 61 55 /* Define to 1 if you have the `strtol' function. */ 62 56 #undef HAVE_STRTOL 63 64 /* Define to 1 if you have the <sys/select.h> header file. */65 #undef HAVE_SYS_SELECT_H66 67 /* Define to 1 if you have the <sys/socket.h> header file. */68 #undef HAVE_SYS_SOCKET_H69 57 70 58 /* Define to 1 if you have the <sys/stat.h> header file. */ … … 111 99 #undef SDL_SOUND 112 100 113 /* Define to the type of arg 1 for `select'. */114 #undef SELECT_TYPE_ARG1115 116 /* Define to the type of args 2, 3 and 4 for `select'. */117 #undef SELECT_TYPE_ARG234118 119 /* Define to the type of arg 5 for `select'. */120 #undef SELECT_TYPE_ARG5121 122 101 /* Define to 1 if you have the ANSI C header files. */ 123 102 #undef STDC_HEADERS … … 141 120 #undef USE_NCURSES 142 121 143 /* Define to 1 if using the SDL interface and SDL & SDL_ttf arefound. */122 /* Define to 1 if using the SDL interface and SDL is found. */ 144 123 #undef USE_SDL 145 124 … … 153 132 first (like Motorola and SPARC, unlike Intel and VAX). */ 154 133 #undef WORDS_BIGENDIAN 134 135 /* Define to 1 if the X Window System is missing or not being used. */ 136 #undef X_DISPLAY_MISSING
