diff options
| author | Jan Djärv | 2009-11-14 15:17:38 +0000 |
|---|---|---|
| committer | Jan Djärv | 2009-11-14 15:17:38 +0000 |
| commit | a53cfbe58781e8f967d298d937e34efa3db93c1d (patch) | |
| tree | 8aa46fd5982fc66cc1073d9677a7441045979756 | |
| parent | 603f5979461a6524340d8010eb088abc89655664 (diff) | |
| download | emacs-a53cfbe58781e8f967d298d937e34efa3db93c1d.tar.gz emacs-a53cfbe58781e8f967d298d937e34efa3db93c1d.zip | |
Use gcc-generated dependency files if we can (GNU Make and gcc required).
* Makefile.in: If AUTO_DEPEND is defined, make gcc generate
dependency files in deps/. Include those files into Makefile.
* config.in: Generated (AUTO_DEPEND).
* configure.in: --enable-autodepend is new. Check for GNU Make
and that gcc supports -MMD -MF. Define AUTO_DEPEND if we can use
gcc and GNU make to generate dependencies.
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rwxr-xr-x | configure | 86 | ||||
| -rw-r--r-- | configure.in | 33 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/Makefile.in | 32 | ||||
| -rw-r--r-- | src/config.in | 35 |
6 files changed, 178 insertions, 21 deletions
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-11-14 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * configure.in: --enable-autodepend is new. Check for GNU Make | ||
| 4 | and that gcc supports -MMD -MF. Define AUTO_DEPEND if we can use | ||
| 5 | gcc and GNU make to generate dependencies. | ||
| 6 | |||
| 1 | 2009-10-27 Glenn Morris <rgm@gnu.org> | 7 | 2009-10-27 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * make-dist: Make links to doc/lispintro/*.pdf. | 9 | * make-dist: Make links to doc/lispintro/*.pdf. |
| @@ -802,6 +802,7 @@ enable_maintainer_mode | |||
| 802 | enable_locallisppath | 802 | enable_locallisppath |
| 803 | enable_checking | 803 | enable_checking |
| 804 | enable_profiling | 804 | enable_profiling |
| 805 | enable_autodepend | ||
| 805 | enable_largefile | 806 | enable_largefile |
| 806 | with_x | 807 | with_x |
| 807 | ' | 808 | ' |
| @@ -1465,6 +1466,9 @@ Optional Features: | |||
| 1465 | stringfreelist, xmallocoverrun, conslist | 1466 | stringfreelist, xmallocoverrun, conslist |
| 1466 | --enable-profiling build emacs with profiling support. This might not | 1467 | --enable-profiling build emacs with profiling support. This might not |
| 1467 | work on all platforms | 1468 | work on all platforms |
| 1469 | --enable-autodepend automatically generate dependencies to .h-files. | ||
| 1470 | Requires GNU Make and Gcc. Enabled if GNU Make and | ||
| 1471 | Gcc is found | ||
| 1468 | --disable-largefile omit support for large files | 1472 | --disable-largefile omit support for large files |
| 1469 | 1473 | ||
| 1470 | Optional Packages: | 1474 | Optional Packages: |
| @@ -2424,6 +2428,14 @@ else | |||
| 2424 | PROFILING_LDFLAGS= | 2428 | PROFILING_LDFLAGS= |
| 2425 | fi | 2429 | fi |
| 2426 | 2430 | ||
| 2431 | # Check whether --enable-autodepend was given. | ||
| 2432 | if test "${enable_autodepend+set}" = set; then | ||
| 2433 | enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" | ||
| 2434 | else | ||
| 2435 | ac_enable_autodepend=yes | ||
| 2436 | fi | ||
| 2437 | |||
| 2438 | |||
| 2427 | #### Make srcdir absolute, if it isn't already. It's important to | 2439 | #### Make srcdir absolute, if it isn't already. It's important to |
| 2428 | #### avoid running the path through pwd unnecessarily, since pwd can | 2440 | #### avoid running the path through pwd unnecessarily, since pwd can |
| 2429 | #### give you automounter prefixes, which can go away. We do all this | 2441 | #### give you automounter prefixes, which can go away. We do all this |
| @@ -9124,6 +9136,80 @@ $as_echo "no" >&6; } | |||
| 9124 | fi | 9136 | fi |
| 9125 | 9137 | ||
| 9126 | 9138 | ||
| 9139 | if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then | ||
| 9140 | { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5 | ||
| 9141 | $as_echo_n "checking whether we are using GNU Make... " >&6; } | ||
| 9142 | HAVE_GNU_MAKE=no | ||
| 9143 | testval=`make --version 2>/dev/null | grep 'GNU Make'` | ||
| 9144 | if test "x$testval" != x; then | ||
| 9145 | HAVE_GNU_MAKE=yes | ||
| 9146 | else | ||
| 9147 | ac_enable_autodepend=no | ||
| 9148 | fi | ||
| 9149 | { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5 | ||
| 9150 | $as_echo "$HAVE_GNU_MAKE" >&6; } | ||
| 9151 | if test $HAVE_GNU_MAKE = yes; then | ||
| 9152 | { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5 | ||
| 9153 | $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } | ||
| 9154 | SAVE_CFLAGS="$CFLAGS" | ||
| 9155 | CFLAGS="$CFLAGS -MMD -MF deps.d" | ||
| 9156 | cat >conftest.$ac_ext <<_ACEOF | ||
| 9157 | /* confdefs.h. */ | ||
| 9158 | _ACEOF | ||
| 9159 | cat confdefs.h >>conftest.$ac_ext | ||
| 9160 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 9161 | /* end confdefs.h. */ | ||
| 9162 | |||
| 9163 | int | ||
| 9164 | main () | ||
| 9165 | { | ||
| 9166 | |||
| 9167 | ; | ||
| 9168 | return 0; | ||
| 9169 | } | ||
| 9170 | _ACEOF | ||
| 9171 | rm -f conftest.$ac_objext | ||
| 9172 | if { (ac_try="$ac_compile" | ||
| 9173 | case "(($ac_try" in | ||
| 9174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 9175 | *) ac_try_echo=$ac_try;; | ||
| 9176 | esac | ||
| 9177 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
| 9178 | $as_echo "$ac_try_echo") >&5 | ||
| 9179 | (eval "$ac_compile") 2>conftest.er1 | ||
| 9180 | ac_status=$? | ||
| 9181 | grep -v '^ *+' conftest.er1 >conftest.err | ||
| 9182 | rm -f conftest.er1 | ||
| 9183 | cat conftest.err >&5 | ||
| 9184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 9185 | (exit $ac_status); } && { | ||
| 9186 | test -z "$ac_c_werror_flag" || | ||
| 9187 | test ! -s conftest.err | ||
| 9188 | } && test -s conftest.$ac_objext; then | ||
| 9189 | : | ||
| 9190 | else | ||
| 9191 | $as_echo "$as_me: failed program was:" >&5 | ||
| 9192 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 9193 | |||
| 9194 | ac_enable_autodepend=no | ||
| 9195 | fi | ||
| 9196 | |||
| 9197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 9198 | CFLAGS="$SAVE_CFLAGS" | ||
| 9199 | test -f deps.d || ac_enable_autodepend=no | ||
| 9200 | rm -rf deps.d | ||
| 9201 | { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5 | ||
| 9202 | $as_echo "$ac_enable_autodepend" >&6; } | ||
| 9203 | fi | ||
| 9204 | if test $ac_enable_autodepend = yes; then | ||
| 9205 | |||
| 9206 | cat >>confdefs.h <<\_ACEOF | ||
| 9207 | #define AUTO_DEPEND 1 | ||
| 9208 | _ACEOF | ||
| 9209 | |||
| 9210 | fi | ||
| 9211 | fi | ||
| 9212 | |||
| 9127 | { $as_echo "$as_me:$LINENO: checking for long file names" >&5 | 9213 | { $as_echo "$as_me:$LINENO: checking for long file names" >&5 |
| 9128 | $as_echo_n "checking for long file names... " >&6; } | 9214 | $as_echo_n "checking for long file names... " >&6; } |
| 9129 | if test "${ac_cv_sys_long_file_names+set}" = set; then | 9215 | if test "${ac_cv_sys_long_file_names+set}" = set; then |
diff --git a/configure.in b/configure.in index a1104078089..c2f680106dc 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -286,6 +286,13 @@ else | |||
| 286 | PROFILING_LDFLAGS= | 286 | PROFILING_LDFLAGS= |
| 287 | fi | 287 | fi |
| 288 | 288 | ||
| 289 | AC_ARG_ENABLE(autodepend, | ||
| 290 | [AS_HELP_STRING([--enable-autodepend], | ||
| 291 | [automatically generate dependencies to .h-files. | ||
| 292 | Requires GNU Make and Gcc. Enabled if GNU Make and Gcc is | ||
| 293 | found])], | ||
| 294 | [ac_enable_autodepend="${enableval}"],[ac_enable_autodepend=yes]) | ||
| 295 | |||
| 289 | #### Make srcdir absolute, if it isn't already. It's important to | 296 | #### Make srcdir absolute, if it isn't already. It's important to |
| 290 | #### avoid running the path through pwd unnecessarily, since pwd can | 297 | #### avoid running the path through pwd unnecessarily, since pwd can |
| 291 | #### give you automounter prefixes, which can go away. We do all this | 298 | #### give you automounter prefixes, which can go away. We do all this |
| @@ -1229,6 +1236,32 @@ dnl AC_C_BIGENDIAN | |||
| 1229 | dnl check for Make feature | 1236 | dnl check for Make feature |
| 1230 | AC_PROG_MAKE_SET | 1237 | AC_PROG_MAKE_SET |
| 1231 | 1238 | ||
| 1239 | dnl check for GNU Make if we have GCC and autodepend is on. | ||
| 1240 | if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then | ||
| 1241 | AC_MSG_CHECKING([whether we are using GNU Make]) | ||
| 1242 | HAVE_GNU_MAKE=no | ||
| 1243 | testval=`make --version 2>/dev/null | grep 'GNU Make'` | ||
| 1244 | if test "x$testval" != x; then | ||
| 1245 | HAVE_GNU_MAKE=yes | ||
| 1246 | else | ||
| 1247 | ac_enable_autodepend=no | ||
| 1248 | fi | ||
| 1249 | AC_MSG_RESULT([$HAVE_GNU_MAKE]) | ||
| 1250 | if test $HAVE_GNU_MAKE = yes; then | ||
| 1251 | AC_MSG_CHECKING([whether gcc understands -MMD -MF]) | ||
| 1252 | SAVE_CFLAGS="$CFLAGS" | ||
| 1253 | CFLAGS="$CFLAGS -MMD -MF deps.d" | ||
| 1254 | AC_TRY_COMPILE([], [], , ac_enable_autodepend=no) | ||
| 1255 | CFLAGS="$SAVE_CFLAGS" | ||
| 1256 | test -f deps.d || ac_enable_autodepend=no | ||
| 1257 | rm -rf deps.d | ||
| 1258 | AC_MSG_RESULT([$ac_enable_autodepend]) | ||
| 1259 | fi | ||
| 1260 | if test $ac_enable_autodepend = yes; then | ||
| 1261 | AC_DEFINE(AUTO_DEPEND, 1, [Generate dependencies with gcc.]) | ||
| 1262 | fi | ||
| 1263 | fi | ||
| 1264 | |||
| 1232 | dnl checks for operating system services | 1265 | dnl checks for operating system services |
| 1233 | AC_SYS_LONG_FILE_NAMES | 1266 | AC_SYS_LONG_FILE_NAMES |
| 1234 | 1267 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index fb1093ae1f8..37ff8860779 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-11-14 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * Makefile.in: If AUTO_DEPEND is defined, make gcc generate | ||
| 4 | dependency files in deps/. Include those files into Makefile. | ||
| 5 | |||
| 6 | * config.in: Generated (AUTO_DEPEND). | ||
| 7 | |||
| 1 | 2009-11-13 Michael Albinus <michael.albinus@gmx.de> | 8 | 2009-11-13 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 9 | ||
| 3 | * dbusbind.c (Vdbus_registered_objects_table): Renamed from | 10 | * dbusbind.c (Vdbus_registered_objects_table): Renamed from |
diff --git a/src/Makefile.in b/src/Makefile.in index adb1c817f30..e6fa649e682 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -79,6 +79,10 @@ SHELL=/bin/sh | |||
| 79 | #define NOT_C_CODE | 79 | #define NOT_C_CODE |
| 80 | #include "config.h" | 80 | #include "config.h" |
| 81 | 81 | ||
| 82 | #ifdef AUTO_DEPEND | ||
| 83 | DEPFLAGS = -MMD -MF deps/$*.d | ||
| 84 | #endif | ||
| 85 | |||
| 82 | /* Do not let the file name mktime.c get messed up. */ | 86 | /* Do not let the file name mktime.c get messed up. */ |
| 83 | #ifdef mktime | 87 | #ifdef mktime |
| 84 | #undef mktime | 88 | #undef mktime |
| @@ -257,13 +261,19 @@ DBUS_OBJ = dbusbind.o | |||
| 257 | 261 | ||
| 258 | /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM | 262 | /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM |
| 259 | since it may have -I options that should override those two. */ | 263 | since it may have -I options that should override those two. */ |
| 260 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ | 264 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ ${DEPFLAGS} |
| 261 | ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@ | 265 | ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@ |
| 262 | 266 | ||
| 263 | .SUFFIXES: .m | 267 | .SUFFIXES: .m |
| 264 | .c.o: | 268 | .c.o: |
| 269 | #ifdef AUTO_DEPEND | ||
| 270 | @test -d deps || mkdir deps | ||
| 271 | #endif | ||
| 265 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< | 272 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< |
| 266 | .m.o: | 273 | .m.o: |
| 274 | #ifdef AUTO_DEPEND | ||
| 275 | @test -d deps || mkdir deps | ||
| 276 | #endif | ||
| 267 | $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< | 277 | $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< |
| 268 | 278 | ||
| 269 | #ifndef LIBX11_SYSTEM | 279 | #ifndef LIBX11_SYSTEM |
| @@ -958,7 +968,7 @@ temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} pre | |||
| 958 | /* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE | 968 | /* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE |
| 959 | often contain options that have to do with using Emacs''s crt0, | 969 | often contain options that have to do with using Emacs''s crt0, |
| 960 | which are only good with temacs. */ | 970 | which are only good with temacs. */ |
| 961 | prefix-args${EXEEXT}: prefix-args.c $(config_h) | 971 | prefix-args${EXEEXT}: prefix-args.o $(config_h) |
| 962 | $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args | 972 | $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args |
| 963 | 973 | ||
| 964 | #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (USE_GTK) | 974 | #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (USE_GTK) |
| @@ -1024,6 +1034,11 @@ stamp-oldxmenu: | |||
| 1024 | @echo "Please run the `configure' script again." | 1034 | @echo "Please run the `configure' script again." |
| 1025 | exit 1 | 1035 | exit 1 |
| 1026 | 1036 | ||
| 1037 | ecrt0.o: ecrt0.c $(config_h) | ||
| 1038 | CRT0_COMPILE ${srcdir}/ecrt0.c | ||
| 1039 | doc.o: buildobj.h | ||
| 1040 | |||
| 1041 | #ifndef AUTO_DEPEND | ||
| 1027 | /* Nearly all the following files depend on lisp.h, | 1042 | /* Nearly all the following files depend on lisp.h, |
| 1028 | but it is not included as a dependency because | 1043 | but it is not included as a dependency because |
| 1029 | it is so often changed in ways that do not require any recompilation | 1044 | it is so often changed in ways that do not require any recompilation |
| @@ -1056,8 +1071,6 @@ cm.o: cm.c frame.h cm.h termhooks.h termchar.h lisp.h $(config_h) | |||
| 1056 | cmds.o: cmds.c syntax.h buffer.h character.h commands.h window.h lisp.h $(config_h) \ | 1071 | cmds.o: cmds.c syntax.h buffer.h character.h commands.h window.h lisp.h $(config_h) \ |
| 1057 | msdos.h dispextern.h keyboard.h keymap.h | 1072 | msdos.h dispextern.h keyboard.h keymap.h |
| 1058 | pre-crt0.o: pre-crt0.c | 1073 | pre-crt0.o: pre-crt0.c |
| 1059 | ecrt0.o: ecrt0.c $(config_h) | ||
| 1060 | CRT0_COMPILE ${srcdir}/ecrt0.c | ||
| 1061 | dbusbind.o: dbusbind.c termhooks.h frame.h keyboard.h lisp.h $(config_h) | 1074 | dbusbind.o: dbusbind.c termhooks.h frame.h keyboard.h lisp.h $(config_h) |
| 1062 | dired.o: dired.c commands.h buffer.h lisp.h $(config_h) character.h charset.h \ | 1075 | dired.o: dired.c commands.h buffer.h lisp.h $(config_h) character.h charset.h \ |
| 1063 | coding.h regex.h systime.h blockinput.h atimer.h | 1076 | coding.h regex.h systime.h blockinput.h atimer.h |
| @@ -1066,8 +1079,7 @@ dispnew.o: dispnew.c systime.h commands.h process.h frame.h \ | |||
| 1066 | disptab.h indent.h $(INTERVALS_H) \ | 1079 | disptab.h indent.h $(INTERVALS_H) \ |
| 1067 | xterm.h blockinput.h atimer.h character.h msdos.h composite.h keyboard.h \ | 1080 | xterm.h blockinput.h atimer.h character.h msdos.h composite.h keyboard.h \ |
| 1068 | syssignal.h lisp.h $(config_h) | 1081 | syssignal.h lisp.h $(config_h) |
| 1069 | doc.o: doc.c lisp.h $(config_h) epaths.h buffer.h keyboard.h keymap.h character.h \ | 1082 | doc.o: doc.c lisp.h $(config_h) epaths.h buffer.h keyboard.h keymap.h character.h |
| 1070 | buildobj.h | ||
| 1071 | doprnt.o: doprnt.c character.h lisp.h $(config_h) | 1083 | doprnt.o: doprnt.c character.h lisp.h $(config_h) |
| 1072 | dosfns.o: buffer.h termchar.h termhooks.h frame.h blockinput.h window.h \ | 1084 | dosfns.o: buffer.h termchar.h termhooks.h frame.h blockinput.h window.h \ |
| 1073 | msdos.h dosfns.h dispextern.h charset.h coding.h atimer.h systime.h \ | 1085 | msdos.h dosfns.h dispextern.h charset.h coding.h atimer.h systime.h \ |
| @@ -1252,6 +1264,8 @@ intervals.o: intervals.c buffer.h $(INTERVALS_H) keyboard.h puresize.h \ | |||
| 1252 | textprop.o: textprop.c buffer.h window.h dispextern.h $(INTERVALS_H) \ | 1264 | textprop.o: textprop.c buffer.h window.h dispextern.h $(INTERVALS_H) \ |
| 1253 | lisp.h $(config_h) | 1265 | lisp.h $(config_h) |
| 1254 | 1266 | ||
| 1267 | #endif /* ! AUTO_DEPEND */ | ||
| 1268 | |||
| 1255 | /* System-specific programs to be made. | 1269 | /* System-specific programs to be made. |
| 1256 | OTHER_FILES | 1270 | OTHER_FILES |
| 1257 | select which of these should be compiled. */ | 1271 | select which of these should be compiled. */ |
| @@ -1287,6 +1301,7 @@ mostlyclean: | |||
| 1287 | rm -f buildobj.h | 1301 | rm -f buildobj.h |
| 1288 | clean: mostlyclean | 1302 | clean: mostlyclean |
| 1289 | rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT} | 1303 | rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT} |
| 1304 | -rm -rf deps | ||
| 1290 | #ifdef HAVE_NS | 1305 | #ifdef HAVE_NS |
| 1291 | rm -fr ${ns_appdir} | 1306 | rm -fr ${ns_appdir} |
| 1292 | #endif | 1307 | #endif |
| @@ -1385,3 +1400,8 @@ bootstrap-emacs${EXEEXT}: temacs${EXEEXT} | |||
| 1385 | #endif /* ! defined (CANNOT_DUMP) */ | 1400 | #endif /* ! defined (CANNOT_DUMP) */ |
| 1386 | @: Compile some files earlier to speed up further compilation. | 1401 | @: Compile some files earlier to speed up further compilation. |
| 1387 | cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS=${bootstrap_exe} | 1402 | cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS=${bootstrap_exe} |
| 1403 | |||
| 1404 | #ifdef AUTO_DEPEND | ||
| 1405 | ALLOBJS=$(STARTFILES) ${obj} ${otherobj} prefix-args.o | ||
| 1406 | -include $(ALLOBJS:%.o=deps/%.d) | ||
| 1407 | #endif | ||
diff --git a/src/config.in b/src/config.in index 4241b3eee41..04b6de5714d 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -27,6 +27,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 27 | #define EMACS_CONFIG_H | 27 | #define EMACS_CONFIG_H |
| 28 | 28 | ||
| 29 | 29 | ||
| 30 | /* Generate dependencies with gcc. */ | ||
| 31 | #undef AUTO_DEPEND | ||
| 32 | |||
| 30 | /* Define to 1 if the mktime function is broken. */ | 33 | /* Define to 1 if the mktime function is broken. */ |
| 31 | #undef BROKEN_MKTIME | 34 | #undef BROKEN_MKTIME |
| 32 | 35 | ||
| @@ -828,6 +831,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 828 | /* Define to 1 if you don't have struct exception in math.h. */ | 831 | /* Define to 1 if you don't have struct exception in math.h. */ |
| 829 | #undef NO_MATHERR | 832 | #undef NO_MATHERR |
| 830 | 833 | ||
| 834 | /* Define to 1 if `NSInteger' is defined. */ | ||
| 835 | #undef NS_HAVE_NSINTEGER | ||
| 836 | |||
| 831 | /* Define to 1 if you are using NS windowing under MacOS X. */ | 837 | /* Define to 1 if you are using NS windowing under MacOS X. */ |
| 832 | #undef NS_IMPL_COCOA | 838 | #undef NS_IMPL_COCOA |
| 833 | 839 | ||
| @@ -921,21 +927,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 921 | XPointer or XPointer*. */ | 927 | XPointer or XPointer*. */ |
| 922 | #undef XRegisterIMInstantiateCallback_arg6 | 928 | #undef XRegisterIMInstantiateCallback_arg6 |
| 923 | 929 | ||
| 924 | /* Define to 1 if on AIX 3. | ||
| 925 | System headers sometimes define this. | ||
| 926 | We just want to avoid a redefinition error message. */ | ||
| 927 | #ifndef _ALL_SOURCE | ||
| 928 | # undef _ALL_SOURCE | ||
| 929 | #endif | ||
| 930 | |||
| 931 | /* Number of bits in a file offset, on hosts where this is settable. */ | 930 | /* Number of bits in a file offset, on hosts where this is settable. */ |
| 932 | #undef _FILE_OFFSET_BITS | 931 | #undef _FILE_OFFSET_BITS |
| 933 | 932 | ||
| 934 | /* Enable GNU extensions on systems that have them. */ | ||
| 935 | #ifndef _GNU_SOURCE | ||
| 936 | # undef _GNU_SOURCE | ||
| 937 | #endif | ||
| 938 | |||
| 939 | /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ | 933 | /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ |
| 940 | #undef _LARGEFILE_SOURCE | 934 | #undef _LARGEFILE_SOURCE |
| 941 | 935 | ||
| @@ -952,16 +946,27 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 952 | /* Define to 1 if you need to in order for `stat' and other things to work. */ | 946 | /* Define to 1 if you need to in order for `stat' and other things to work. */ |
| 953 | #undef _POSIX_SOURCE | 947 | #undef _POSIX_SOURCE |
| 954 | 948 | ||
| 955 | /* Enable extensions on Solaris. */ | 949 | /* Enable extensions on AIX 3, Interix. */ |
| 956 | #ifndef __EXTENSIONS__ | 950 | #ifndef _ALL_SOURCE |
| 957 | # undef __EXTENSIONS__ | 951 | # undef _ALL_SOURCE |
| 958 | #endif | 952 | #endif |
| 953 | /* Enable GNU extensions on systems that have them. */ | ||
| 954 | #ifndef _GNU_SOURCE | ||
| 955 | # undef _GNU_SOURCE | ||
| 956 | #endif | ||
| 957 | /* Enable threading extensions on Solaris. */ | ||
| 959 | #ifndef _POSIX_PTHREAD_SEMANTICS | 958 | #ifndef _POSIX_PTHREAD_SEMANTICS |
| 960 | # undef _POSIX_PTHREAD_SEMANTICS | 959 | # undef _POSIX_PTHREAD_SEMANTICS |
| 961 | #endif | 960 | #endif |
| 961 | /* Enable extensions on HP NonStop. */ | ||
| 962 | #ifndef _TANDEM_SOURCE | 962 | #ifndef _TANDEM_SOURCE |
| 963 | # undef _TANDEM_SOURCE | 963 | # undef _TANDEM_SOURCE |
| 964 | #endif | 964 | #endif |
| 965 | /* Enable general extensions on Solaris. */ | ||
| 966 | #ifndef __EXTENSIONS__ | ||
| 967 | # undef __EXTENSIONS__ | ||
| 968 | #endif | ||
| 969 | |||
| 965 | 970 | ||
| 966 | /* Define to rpl_ if the getopt replacement functions and variables should be | 971 | /* Define to rpl_ if the getopt replacement functions and variables should be |
| 967 | used. */ | 972 | used. */ |