1.1 --- a/common/autoconf/autogen.sh Mon Jun 25 21:37:09 2012 -0700 1.2 +++ b/common/autoconf/autogen.sh Tue Jul 03 16:11:12 2012 -0700 1.3 @@ -22,5 +22,19 @@ 1.4 # questions. 1.5 # 1.6 1.7 -autoconf -W all configure.ac > configure 1.8 -rm -rf config.status config.log autom4te.cache 1.9 +script_dir=`dirname $0` 1.10 +closed_script_dir="$script_dir/../../jdk/make/closed/autoconf" 1.11 + 1.12 +# Create a timestamp as seconds since epoch 1.13 +TIMESTAMP=`date +%s` 1.14 + 1.15 +cat $script_dir/configure.ac | sed -e "s|@DATE_WHEN_GENERATED@|$TIMESTAMP|" | autoconf -W all -I$script_dir - > $script_dir/generated-configure.sh 1.16 +rm -rf autom4te.cache 1.17 + 1.18 +if test -e $closed_script_dir/closed-hook.m4; then 1.19 + # We have closed sources available; also generate configure script 1.20 + # with closed hooks compiled in. 1.21 + cat $script_dir/configure.ac | sed -e "s|@DATE_WHEN_GENERATED@|$TIMESTAMP|" | \ 1.22 + sed -e "s|AC_DEFUN_ONCE(\[CLOSED_HOOK\])|m4_include([$closed_script_dir/closed-hook.m4])|" | autoconf -W all -I$script_dir - > $closed_script_dir/generated-configure.sh 1.23 + rm -rf autom4te.cache 1.24 +fi