diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-04-06 12:30:06 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:00:22 -0500 |
commit | c0fb8bf2911fff94e52588489277e1eccd6e2f1a (patch) | |
tree | 714455801998fe9c2ccad8a3613d27ad0ca4b509 /source4/configure.in | |
parent | 0291c48389c78071d72c6b7d6e1de195d6c45878 (diff) | |
download | samba-c0fb8bf2911fff94e52588489277e1eccd6e2f1a.tar.gz samba-c0fb8bf2911fff94e52588489277e1eccd6e2f1a.tar.bz2 samba-c0fb8bf2911fff94e52588489277e1eccd6e2f1a.zip |
r14950: make sure include/config.h is only updated when the content was changed
metze
(This used to be commit 2488ead8c3431be3014012a05de4ee57ff13aa93)
Diffstat (limited to 'source4/configure.in')
-rw-r--r-- | source4/configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/configure.in b/source4/configure.in index 67ee8d8a41..456b34f650 100644 --- a/source4/configure.in +++ b/source4/configure.in @@ -7,7 +7,7 @@ dnl AC_PREREQ(2.53) AC_INIT([samba],[],[samba-technical@samba.org]) AC_CONFIG_SRCDIR([include/includes.h]) -AC_CONFIG_HEADER(include/config.h) +AC_CONFIG_HEADER(include/config_tmp.h) # Configuration rules. sinclude(build/m4/env.m4) @@ -110,6 +110,12 @@ $SMB_INFO_SUBSYSTEMS $SMB_INFO_LIBRARIES CEOF +cmp include/config_tmp.h include/config.h >/dev/null 2>&1 +CMP_RET=$? +if [ $CMP_RET != 0 ];then + cp include/config_tmp.h include/config.h +fi + AC_OUTPUT_COMMANDS( [$PERL -I${builddir} -I${srcdir} -I${srcdir}/build ${srcdir}/build/smb_build/main.pl || exit $?],[ PERL="$PERL";export PERL;export srcdir; export builddir; |