diff --git a/configure.ac b/configure.ac index c815f8ca..a8ff84c0 100644 --- a/configure.ac +++ b/configure.ac @@ -433,8 +433,14 @@ src/yaz/yaz-version.h AC_CONFIG_COMMANDS([default],[ sed -e 's%echo_source=yes%echo_source=no%g; s%src_root=.*$%%g; s%build_root=.*%%g' \ < yaz-config > src/yaz-config && chmod +x yaz-config src/yaz-config - diff doc/local.ent doc/local0.ent >/dev/null 2>/dev/null \ - || cp doc/local0.ent doc/local.ent + if ! diff doc/local.ent doc/local0.ent >/dev/null 2>/dev/null; then + # Reuse distributed entities through VPATH without rebuilding documentation. + if diff "$srcdir/doc/local.ent" doc/local0.ent >/dev/null 2>/dev/null; then + rm -f doc/local.ent + else + cp doc/local0.ent doc/local.ent + fi + fi ],[]) AC_OUTPUT