Mercurial > sdl-ios-xcode
comparison configure.in @ 3354:98c5b421426e
Fixed bug #828
Added support for --disable-dependency-tracking to configure.in
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 08 Oct 2009 09:07:58 +0000 |
parents | 8e0182c236d8 |
children | 1164528004ff |
comparison
equal
deleted
inserted
replaced
3353:6b14223dd5c7 | 3354:98c5b421426e |
---|---|
107 dnl Check for compiler characteristics | 107 dnl Check for compiler characteristics |
108 AC_C_CONST | 108 AC_C_CONST |
109 AC_C_INLINE | 109 AC_C_INLINE |
110 AC_C_VOLATILE | 110 AC_C_VOLATILE |
111 | 111 |
112 dnl See whether we can use gcc style dependency tracking | |
113 AC_ARG_ENABLE(dependency-tracking, | |
114 AC_HELP_STRING([--enable-dependency-tracking], | |
115 [Use gcc -MMD -MT dependency tracking [[default=yes]]]), | |
116 , enable_dependency_tracking=yes) | |
117 if test x$enable_dependency_tracking = xyes; then | |
118 have_gcc_mmd_mt=no | |
119 AC_MSG_CHECKING(for GCC -MMD -MT option) | |
120 AC_TRY_COMPILE([ | |
121 #if !defined(__GNUC__) || __GNUC__ < 3 | |
122 #error Dependency tracking requires GCC 3.0 or newer | |
123 #endif | |
124 ],[ | |
125 ],[ | |
126 have_gcc_mmd_mt=yes | |
127 ]) | |
128 AC_MSG_RESULT($have_gcc_mmd_mt) | |
129 | |
130 if test x$have_gcc_mmd_mt = xyes; then | |
131 DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@" | |
132 fi | |
133 fi | |
134 | |
112 dnl See whether we are allowed to use the system C library | 135 dnl See whether we are allowed to use the system C library |
113 AC_ARG_ENABLE(libc, | 136 AC_ARG_ENABLE(libc, |
114 AC_HELP_STRING([--enable-libc], [Use the system C library [[default=yes]]]), | 137 AC_HELP_STRING([--enable-libc], [Use the system C library [[default=yes]]]), |
115 , enable_libc=yes) | 138 , enable_libc=yes) |
116 if test x$enable_libc = xyes; then | 139 if test x$enable_libc = xyes; then |
2779 DEPENDS=`echo $SOURCES` | 2802 DEPENDS=`echo $SOURCES` |
2780 for EXT in asm cc m c S; do | 2803 for EXT in asm cc m c S; do |
2781 OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'` | 2804 OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'` |
2782 DEPENDS=`echo "$DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.'$EXT',\\ | 2805 DEPENDS=`echo "$DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.'$EXT',\\ |
2783 $(objects)/\2.lo: \1/\2.'$EXT'\\ | 2806 $(objects)/\2.lo: \1/\2.'$EXT'\\ |
2784 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) -MMD -MT \$@ -c \$< -o \$@,g'` | 2807 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c $< -o $@,g'` |
2785 done | 2808 done |
2786 | 2809 |
2787 VERSION_OBJECTS=`echo $VERSION_SOURCES` | 2810 VERSION_OBJECTS=`echo $VERSION_SOURCES` |
2788 VERSION_DEPENDS=`echo $VERSION_SOURCES` | 2811 VERSION_DEPENDS=`echo $VERSION_SOURCES` |
2789 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'` | 2812 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'` |
2794 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES` | 2817 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES` |
2795 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES` | 2818 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES` |
2796 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'` | 2819 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'` |
2797 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.c,\\ | 2820 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.c,\\ |
2798 $(objects)/\2.o: \1/\2.c\\ | 2821 $(objects)/\2.o: \1/\2.c\\ |
2799 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) -MMD -MT \$@ -c \$< -o \$@,g'` | 2822 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c $< -o $@,g'` |
2800 | 2823 |
2801 # Set runtime shared library paths as needed | 2824 # Set runtime shared library paths as needed |
2802 | 2825 |
2803 if test "x$enable_rpath" = "xyes"; then | 2826 if test "x$enable_rpath" = "xyes"; then |
2804 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then | 2827 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then |