From: Jan Djärv Date: Fri, 26 Aug 2011 07:12:16 +0000 (+0200) Subject: * configure.in: Add -MP to DEPFLAGS. X-Git-Tag: emacs-pretest-24.0.90~104^2~152^2~66^2~6 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=52ec1febdd45af74ee71bc42b2ebd74fabc73ed8;p=emacs.git * configure.in: Add -MP to DEPFLAGS. Fixes: debbugs:9372 --- diff --git a/ChangeLog b/ChangeLog index 55deca05751..dd803790093 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-08-26 Jan Djärv + + * configure.in: Add -MP to DEPFLAGS (Bug#9372). + 2011-08-13 Jan Djärv * configure.in: Add header check: sys/socket.h (Bug#8477), diff --git a/configure.in b/configure.in index cfb9dc8bab2..f62f364715f 100644 --- a/configure.in +++ b/configure.in @@ -1390,7 +1390,7 @@ if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then if test $HAVE_GNU_MAKE = yes; then AC_MSG_CHECKING([whether gcc understands -MMD -MF]) SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -MMD -MF deps.d" + CFLAGS="$CFLAGS -MMD -MF deps.d -MP" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], , ac_enable_autodepend=no) CFLAGS="$SAVE_CFLAGS" test -f deps.d || ac_enable_autodepend=no @@ -1398,7 +1398,7 @@ if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then AC_MSG_RESULT([$ac_enable_autodepend]) fi if test $ac_enable_autodepend = yes; then - DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d' + DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP' ## In parallel builds, another make might create depdir between ## the first test and mkdir, so stick another test on the end. ## Or use install-sh -d? mkdir -p is not portable.