From 65806ccb721251cdae290fa000be4185ff466398 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 6 Feb 2002 08:25:00 +0000 Subject: [PATCH] * configure.in: keep old config.h unless changed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ configure.in | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8b7de97234..7d6887004a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 6 17:18:54 2002 Nobuyoshi Nakada + + * configure.in: keep old config.h unless changed. + Wed Feb 6 13:28:53 2002 Amos Gouaux * lib/net/imap.rb: OpenSSL support. diff --git a/configure.in b/configure.in index 28e91b8af7..afa29a70e0 100644 --- a/configure.in +++ b/configure.in @@ -1093,8 +1093,12 @@ if test "$search_path" != ""; then AC_DEFINE_UNQUOTED(RUBY_SEARCH_PATH,"$search_path") fi -echo "creating config.h" -tr -d '\015' < confdefs.h > config.h +if test -f config.h && tr -d '\015' < confdefs.h | cmp -s config.h -; then + echo "config.h unchanged" +else + echo "creating config.h" + tr -d '\015' < confdefs.h > config.h +fi : > confdefs.h AC_OUTPUT($FIRSTMAKEFILE Makefile ext/extmk.rb)