comparison configure.in @ 2204:9f64d06fa168

Added support for building version.rc in Windows build.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 16 Jul 2007 03:28:48 +0000
parents 2032348afed1
children ca7d2227d630
comparison
equal deleted inserted replaced
2203:fca1cdc673b2 2204:9f64d06fa168
94 AC_PROG_LIBTOOL 94 AC_PROG_LIBTOOL
95 AC_PROG_CC 95 AC_PROG_CC
96 AC_PROG_CXX 96 AC_PROG_CXX
97 AC_PROG_INSTALL 97 AC_PROG_INSTALL
98 AC_PROG_MAKE_SET 98 AC_PROG_MAKE_SET
99 AC_CHECK_PROGS(WINDRES, windres i386-mingw32-windres)
99 100
100 dnl Check for compiler characteristics 101 dnl Check for compiler characteristics
101 AC_C_CONST 102 AC_C_CONST
102 AC_C_INLINE 103 AC_C_INLINE
103 AC_C_VOLATILE 104 AC_C_VOLATILE
2259 have_loadso=yes 2260 have_loadso=yes
2260 fi 2261 fi
2261 # Set up the system libraries we need 2262 # Set up the system libraries we need
2262 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lunicows -luser32 -lgdi32 -lmsimg32 -lwinmm" 2263 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lunicows -luser32 -lgdi32 -lmsimg32 -lwinmm"
2263 # The Win32 platform requires special setup 2264 # The Win32 platform requires special setup
2265 SOURCES="$SOURCES $srcdir/src/main/win32/*.rc"
2264 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c" 2266 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
2265 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" 2267 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
2266 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" 2268 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
2267 ;; 2269 ;;
2268 *-*-beos*) 2270 *-*-beos*)
2510 OBJECTS=`echo $SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.asm,$(objects)/\1.lo,g'` 2512 OBJECTS=`echo $SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.asm,$(objects)/\1.lo,g'`
2511 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.lo,g'` 2513 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.lo,g'`
2512 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.lo,g'` 2514 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.lo,g'`
2513 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'` 2515 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
2514 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.S,$(objects)/\1.lo,g'` 2516 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.S,$(objects)/\1.lo,g'`
2517 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
2515 2518
2516 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.o,g'` 2519 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.o,g'`
2517 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'` 2520 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
2518 2521
2519 # Set runtime shared library paths as needed 2522 # Set runtime shared library paths as needed
2572 AC_SUBST(SDLMAIN_OBJECTS) 2575 AC_SUBST(SDLMAIN_OBJECTS)
2573 AC_SUBST(BUILD_CFLAGS) 2576 AC_SUBST(BUILD_CFLAGS)
2574 AC_SUBST(EXTRA_CFLAGS) 2577 AC_SUBST(EXTRA_CFLAGS)
2575 AC_SUBST(BUILD_LDFLAGS) 2578 AC_SUBST(BUILD_LDFLAGS)
2576 AC_SUBST(EXTRA_LDFLAGS) 2579 AC_SUBST(EXTRA_LDFLAGS)
2580 AC_SUBST(WINDRES)
2577 2581
2578 AC_OUTPUT([ 2582 AC_OUTPUT([
2579 Makefile sdl-config SDL.spec SDL.qpg sdl.pc 2583 Makefile sdl-config SDL.spec SDL.qpg sdl.pc
2580 ], [ 2584 ], [
2581 : >build-deps 2585 : >build-deps