configure.in
changeset 5066 3afb71c202b2
parent 5062 e8916fe9cfc8
child 5068 231dbbc3e31c
     1.1 --- a/configure.in	Fri Jan 21 11:23:19 2011 -0800
     1.2 +++ b/configure.in	Fri Jan 21 12:43:25 2011 -0800
     1.3 @@ -2727,6 +2727,7 @@
     1.4  \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
     1.5  	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
     1.6  done
     1.7 +DEPENDS=`echo "$DEPENDS" | sed 's,\\$,\\\\$,g'`
     1.8  
     1.9  VERSION_OBJECTS=`echo $VERSION_SOURCES`
    1.10  VERSION_DEPENDS=`echo $VERSION_SOURCES`
    1.11 @@ -2734,6 +2735,7 @@
    1.12  VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.rc,\\\\
    1.13  \\$(objects)/\\2.o: \\1/\\2.rc\\\\
    1.14  	\\$(WINDRES) \\$< \\$@,g"`
    1.15 +VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\\$,\\\\$,g'`
    1.16  
    1.17  SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
    1.18  SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
    1.19 @@ -2741,6 +2743,7 @@
    1.20  SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
    1.21  \\$(objects)/\\2.o: \\1/\\2.c\\\\
    1.22  	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    1.23 +SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed 's,\\$,\\\\$,g'`
    1.24  
    1.25  # Set runtime shared library paths as needed
    1.26  
    1.27 @@ -2793,17 +2796,29 @@
    1.28  AC_SUBST(ac_aux_dir)
    1.29  AC_SUBST(INCLUDE)
    1.30  AC_SUBST(OBJECTS)
    1.31 -AC_SUBST(DEPENDS)
    1.32  AC_SUBST(VERSION_OBJECTS)
    1.33 -AC_SUBST(VERSION_DEPENDS)
    1.34  AC_SUBST(SDLMAIN_OBJECTS)
    1.35 -AC_SUBST(SDLMAIN_DEPENDS)
    1.36  AC_SUBST(BUILD_CFLAGS)
    1.37  AC_SUBST(EXTRA_CFLAGS)
    1.38  AC_SUBST(BUILD_LDFLAGS)
    1.39  AC_SUBST(EXTRA_LDFLAGS)
    1.40  AC_SUBST(WINDRES)
    1.41  
    1.42 -AC_OUTPUT([
    1.43 +AC_CONFIG_FILES([
    1.44      Makefile sdl-config SDL.spec sdl.pc
    1.45  ])
    1.46 +AC_CONFIG_COMMANDS([default],
    1.47 +                   [cat >>Makefile <<__EOF__
    1.48 +
    1.49 +# Build rules for objects
    1.50 +-include \$(OBJECTS:.lo=.d)
    1.51 +$DEPENDS
    1.52 +$VERSION_DEPENDS
    1.53 +$SDLMAIN_DEPENDS
    1.54 +__EOF__ 
    1.55 +], [
    1.56 +DEPENDS="$DEPENDS"
    1.57 +VERSION_DEPENDS="$VERSION_DEPENDS"
    1.58 +SDLMAIN_DEPENDS="$SDLMAIN_DEPENDS"
    1.59 +])
    1.60 +AC_OUTPUT