summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/commence.in3
-rw-r--r--config/depend.in7
2 files changed, 9 insertions, 1 deletions
diff --git a/config/commence.in b/config/commence.in
index 7b41932..8b33182 100644
--- a/config/commence.in
+++ b/config/commence.in
@@ -12,7 +12,7 @@
# Programs
SHELL=/bin/sh
CC=@CC@
-CFLAGS=@CFLAGS@
+CFLAGS=-D_POSIX_SOURCE @CFLAGS@
CPPFLAGS=@CPPFLAGS@
LIBS=@LIBS@
AR=@AR@
@@ -23,6 +23,7 @@ INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
RUNTEST=@RUNTEST@
+TRACE=:
# Installation points
ROOT=@ROOT@
diff --git a/config/depend.in b/config/depend.in
index dae45ce..2bd98af 100644
--- a/config/depend.in
+++ b/config/depend.in
@@ -14,6 +14,12 @@
# have dependency information rebuilt, and the Makefile is not
# modified.
#
+# This is also where tracing information is updated. The $(TRACE)
+# program is run on each source file to make sure that the H5TRACE()
+# macros are up to date. If they are then the file is not modified,
+# otherwise the file is changed and a backup is saved by appending a
+# tilde to the file name.
+#
.PRECIOUS: .depend .distdep
dep depend: .distdep
@@ -28,6 +34,7 @@ dep depend: .distdep
echo Building dependencies for $$dep; \
obj=`echo $$dep | sed 's/\.c/\\\\.o/'`; \
sed "/$$obj/,/[^\\]$$/d" <$@ >$@- && mv $@- $@; \
+ $(TRACE) $$dep; \
$(CC) -M -MG $(CPPFLAGS) $$dep >>$@; \
fi; \
done;