summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-04-29 17:33:28 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-04-29 17:33:28 (GMT)
commiteca3933fbbcedb112bda58352ef931db0238a340 (patch)
tree576bd4ca6b84b7655058b76e080c39f6bd1a9e54
parent47db555678afa77e188688dc5dae4d1134074dc2 (diff)
downloadhdf5-eca3933fbbcedb112bda58352ef931db0238a340.zip
hdf5-eca3933fbbcedb112bda58352ef931db0238a340.tar.gz
hdf5-eca3933fbbcedb112bda58352ef931db0238a340.tar.bz2
[svn-r5282] Purpose:
Update Description: Updated the h5vers script to also modify the configure.in files and regenerate the configure file. Platforms tested: Linux
-rwxr-xr-xbin/h5vers56
-rwxr-xr-xc++/configure18
-rw-r--r--c++/configure.in2
-rwxr-xr-xconfigure18
-rw-r--r--configure.in2
-rwxr-xr-xfortran/configure114
-rw-r--r--fortran/configure.in17
7 files changed, 191 insertions, 36 deletions
diff --git a/bin/h5vers b/bin/h5vers
index d35db9e..94111c2 100755
--- a/bin/h5vers
+++ b/bin/h5vers
@@ -59,6 +59,8 @@ use strict;
# the command line) then the first line of the README.txt and RELEASE.txt files
# one directory above the H5public.h file is also modified so it looks
# something like: This is hdf5-1.2.3-pre1 currently under development.
+# The AC_INIT macro in configure.in will also change in this case to be
+# something like: AC_INIT([HDF5], [hdf5-1.2.3-pre1], [hdfhelp@ncsa.uiuc.edu])
##############################################################################
sub getvers {
@@ -136,8 +138,9 @@ while ($_ = shift) {
}
die "mutually exclusive options given\n" if $set && $inc;
-# Determine file to use as H5public.h, README.txt and release_docs/RELEASE.txt.
-# The README.txt and release_docs/RELEASE.txt files are always in the
+# Determine file to use as H5public.h, README.txt,
+# release_docs/RELEASE.txt, and configure.in. The README.txt,
+# release_docs/RELEASE.txt, and configure.in files are always in the
# directory above H5public.h
unless ($file) {
for (@files) {
@@ -154,6 +157,18 @@ die "unable to read file: $README\n" unless -r $file;
my $RELEASE = $file;
$RELEASE =~ s/[^\/]*$/..\/release_docs\/RELEASE.txt/;
die "unable to read file: $RELEASE\n" unless -r $file;
+# configure.in
+my $CONFIGURE = $file;
+$CONFIGURE =~ s/[^\/]*$/..\/configure.in/;
+die "unable to read file: $CONFIGURE\n" unless -r $file;
+# fortran/configure.in
+my $FORTRAN_CONFIGURE = $file;
+$FORTRAN_CONFIGURE =~ s/[^\/]*$/..\/fortran\/configure.in/;
+die "unable to read file: $FORTRAN_CONFIGURE\n" unless -r $file;
+# c++/configure.in
+my $CXX_CONFIGURE = $file;
+$CXX_CONFIGURE =~ s/[^\/]*$/..\/c++\/configure.in/;
+die "unable to read file: $CXX_CONFIGURE\n" unless -r $file;
# Get the current version number.
open FILE, $file or die "unable to open $file: $!\n";
@@ -200,6 +215,9 @@ if ($set) {
# Nothing to do but print result
$README = "";
$RELEASE = "";
+ $CONFIGURE = "";
+ $FORTRAN_CONFIGURE = "";
+ $CXX_CONFIGURE = "";
@newver = @curver;
}
@@ -250,6 +268,40 @@ if ($RELEASE) {
close FILE;
}
+sub gen_configure {
+ my ($name, $conf) = @_;
+
+ open FILE, $conf or die "$conf: $!\n";
+ my @contents = <FILE>;
+ close FILE;
+
+ for (my $i = 0; $i < $#contents; ++$i) {
+ if ($contents[$i] =~ /^AC_INIT/) {
+ $contents[$i] = sprintf("AC_INIT([$name], [%d.%d.%d%s], [hdfhelp\@ncsa.uiuc.edu])\n",
+ @newver[0,1,2],
+ $newver[3] eq "" ? "" : "-".$newver[3]);
+ last;
+ }
+ }
+
+ open FILE, ">$conf" or die "$conf: $!\n";
+ print FILE @contents;
+ close FILE;
+
+ $conf =~ /^(.*?)\/?configure.in$/;
+
+ if ($1) {
+ system("cd $1 && autoconf && rm -rf autom4te.cache");
+ } else {
+ system("autoconf && rm -rf autom4te.cache");
+ }
+}
+
+# Update the configure.in files and regenerate them
+gen_configure("HDF5", $CONFIGURE) if $CONFIGURE;
+gen_configure("HDF5 Fortran", $FORTRAN_CONFIGURE) if $FORTRAN_CONFIGURE;
+gen_configure("HDF5 C++", $CXX_CONFIGURE) if $CXX_CONFIGURE;
+
# Print the new version number
if ($verbose) {
printf("version %d.%d release %d%s\n", @newver[0,1,2],
diff --git a/c++/configure b/c++/configure
index cf8ea7e..c33c2b1 100755
--- a/c++/configure
+++ b/c++/configure
@@ -1,7 +1,7 @@
#! /bin/sh
# From configure.in Id: configure.in.
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.53 for HDF5 C++ 1.4.4.
+# Generated by GNU Autoconf 2.53 for HDF5 C++ 1.4.4-snap4.
#
# Report bugs to <hdfhelp@ncsa.uiuc.edu>.
#
@@ -416,8 +416,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='HDF5 C++'
PACKAGE_TARNAME='hdf5-c--'
-PACKAGE_VERSION='1.4.4'
-PACKAGE_STRING='HDF5 C++ 1.4.4'
+PACKAGE_VERSION='1.4.4-snap4'
+PACKAGE_STRING='HDF5 C++ 1.4.4-snap4'
PACKAGE_BUGREPORT='hdfhelp@ncsa.uiuc.edu'
ac_unique_file="src/H5Library.cpp"
@@ -934,7 +934,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures HDF5 C++ 1.4.4 to adapt to many kinds of systems.
+\`configure' configures HDF5 C++ 1.4.4-snap4 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -995,7 +995,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of HDF5 C++ 1.4.4:";;
+ short | recursive ) echo "Configuration of HDF5 C++ 1.4.4-snap4:";;
esac
cat <<\_ACEOF
@@ -1093,7 +1093,7 @@ fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-HDF5 C++ configure 1.4.4
+HDF5 C++ configure 1.4.4-snap4
generated by GNU Autoconf 2.53
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
@@ -1108,7 +1108,7 @@ cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by HDF5 C++ $as_me 1.4.4, which was
+It was created by HDF5 C++ $as_me 1.4.4-snap4, which was
generated by GNU Autoconf 2.53. Invocation command line was
$ $0 $@
@@ -8487,7 +8487,7 @@ _ASBOX
} >&5
cat >&5 <<_CSEOF
-This file was extended by HDF5 C++ $as_me 1.4.4, which was
+This file was extended by HDF5 C++ $as_me 1.4.4-snap4, which was
generated by GNU Autoconf 2.53. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -8541,7 +8541,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-HDF5 C++ config.status 1.4.4
+HDF5 C++ config.status 1.4.4-snap4
configured by $0, generated by GNU Autoconf 2.53,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
diff --git a/c++/configure.in b/c++/configure.in
index ce50178..47eb969 100644
--- a/c++/configure.in
+++ b/c++/configure.in
@@ -18,7 +18,7 @@ dnl
dnl NOTE: Don't forget to change the version number here when we do a
dnl release!!!
dnl
-AC_INIT([HDF5 C++], [1.4.4], [hdfhelp@ncsa.uiuc.edu])
+AC_INIT([HDF5 C++], [1.4.4-snap4], [hdfhelp@ncsa.uiuc.edu])
AC_CONFIG_SRCDIR([src/H5Library.cpp])
AC_CONFIG_AUX_DIR([../bin])
diff --git a/configure b/configure
index 99fa58a..7ee552c 100755
--- a/configure
+++ b/configure
@@ -1,7 +1,7 @@
#! /bin/sh
# From configure.in Id: configure.in.
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.53 for HDF5 1.4.4.
+# Generated by GNU Autoconf 2.53 for HDF5 1.4.4-snap4.
#
# Report bugs to <hdfhelp@ncsa.uiuc.edu>.
#
@@ -416,8 +416,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='HDF5'
PACKAGE_TARNAME='hdf5'
-PACKAGE_VERSION='1.4.4'
-PACKAGE_STRING='HDF5 1.4.4'
+PACKAGE_VERSION='1.4.4-snap4'
+PACKAGE_STRING='HDF5 1.4.4-snap4'
PACKAGE_BUGREPORT='hdfhelp@ncsa.uiuc.edu'
ac_unique_file="src/H5.c"
@@ -923,7 +923,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures HDF5 1.4.4 to adapt to many kinds of systems.
+\`configure' configures HDF5 1.4.4-snap4 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -984,7 +984,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of HDF5 1.4.4:";;
+ short | recursive ) echo "Configuration of HDF5 1.4.4-snap4:";;
esac
cat <<\_ACEOF
@@ -1113,7 +1113,7 @@ fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-HDF5 configure 1.4.4
+HDF5 configure 1.4.4-snap4
generated by GNU Autoconf 2.53
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
@@ -1128,7 +1128,7 @@ cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by HDF5 $as_me 1.4.4, which was
+It was created by HDF5 $as_me 1.4.4-snap4, which was
generated by GNU Autoconf 2.53. Invocation command line was
$ $0 $@
@@ -29647,7 +29647,7 @@ _ASBOX
} >&5
cat >&5 <<_CSEOF
-This file was extended by HDF5 $as_me 1.4.4, which was
+This file was extended by HDF5 $as_me 1.4.4-snap4, which was
generated by GNU Autoconf 2.53. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -29709,7 +29709,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-HDF5 config.status 1.4.4
+HDF5 config.status 1.4.4-snap4
configured by $0, generated by GNU Autoconf 2.53,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
diff --git a/configure.in b/configure.in
index 3ac9eae..0913fd4 100644
--- a/configure.in
+++ b/configure.in
@@ -16,7 +16,7 @@ dnl
dnl NOTE: Don't forget to change the version number here when we do a
dnl release!!!
dnl
-AC_INIT([HDF5], [1.4.4], [hdfhelp@ncsa.uiuc.edu])
+AC_INIT([HDF5], [1.4.4-snap4], [hdfhelp@ncsa.uiuc.edu])
AC_CONFIG_SRCDIR([src/H5.c])
AC_CONFIG_HEADER([src/H5config.h])
diff --git a/fortran/configure b/fortran/configure
index bcbbe45..5c9a580 100755
--- a/fortran/configure
+++ b/fortran/configure
@@ -1,7 +1,7 @@
#! /bin/sh
# From configure.in Id: configure.in.
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.53 for HDF5 Fortran 1.4.4.
+# Generated by GNU Autoconf 2.53 for HDF5 Fortran 1.4.4-snap4.
#
# Report bugs to <hdfhelp@ncsa.uiuc.edu>.
#
@@ -416,8 +416,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='HDF5 Fortran'
PACKAGE_TARNAME='hdf5-fortran'
-PACKAGE_VERSION='1.4.4'
-PACKAGE_STRING='HDF5 Fortran 1.4.4'
+PACKAGE_VERSION='1.4.4-snap4'
+PACKAGE_STRING='HDF5 Fortran 1.4.4-snap4'
PACKAGE_BUGREPORT='hdfhelp@ncsa.uiuc.edu'
ac_unique_file="src/HDF5.f90"
@@ -922,7 +922,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures HDF5 Fortran 1.4.4 to adapt to many kinds of systems.
+\`configure' configures HDF5 Fortran 1.4.4-snap4 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -983,7 +983,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of HDF5 Fortran 1.4.4:";;
+ short | recursive ) echo "Configuration of HDF5 Fortran 1.4.4-snap4:";;
esac
cat <<\_ACEOF
@@ -1088,7 +1088,7 @@ fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-HDF5 Fortran configure 1.4.4
+HDF5 Fortran configure 1.4.4-snap4
generated by GNU Autoconf 2.53
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
@@ -1103,7 +1103,7 @@ cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by HDF5 Fortran $as_me 1.4.4, which was
+It was created by HDF5 Fortran $as_me 1.4.4-snap4, which was
generated by GNU Autoconf 2.53. Invocation command line was
$ $0 $@
@@ -1411,6 +1411,9 @@ ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
+ac_config_commands="$ac_config_commands default-1"
+
+
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
@@ -3879,7 +3882,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
case $host in
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 3882 "configure"' > conftest.$ac_ext
+ echo '#line 3885 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -4420,7 +4423,7 @@ chmod -w .
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
-if { (eval echo configure:4423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+if { (eval echo configure:4426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
if test -s out/conftest.err; then
@@ -6231,7 +6234,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 6234 "configure"
+#line 6237 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -6329,7 +6332,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 6332 "configure"
+#line 6335 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -8880,7 +8883,7 @@ _ASBOX
} >&5
cat >&5 <<_CSEOF
-This file was extended by HDF5 Fortran $as_me 1.4.4, which was
+This file was extended by HDF5 Fortran $as_me 1.4.4-snap4, which was
generated by GNU Autoconf 2.53. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -8934,12 +8937,15 @@ $config_files
Configuration headers:
$config_headers
+Configuration commands:
+$config_commands
+
Report bugs to <bug-autoconf@gnu.org>."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-HDF5 Fortran config.status 1.4.4
+HDF5 Fortran config.status 1.4.4-snap4
configured by $0, generated by GNU Autoconf 2.53,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
@@ -9017,8 +9023,15 @@ done
_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+#
+# INIT-COMMANDS section.
+#
+
+_ACEOF
+
cat >>$CONFIG_STATUS <<\_ACEOF
@@ -9039,6 +9052,7 @@ do
"test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
"$PARALLEL_MAKE" ) CONFIG_FILES="$CONFIG_FILES $PARALLEL_MAKE" ;;
"examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
+ "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
"src/H5config_fortran.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/H5config_fortran.h" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
@@ -9053,6 +9067,7 @@ done
if $ac_need_defaults; then
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi
# Create a temporary directory, and hook for its removal unless debugging.
@@ -9594,6 +9609,79 @@ done; }
fi
done
_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+#
+# CONFIG_COMMANDS section.
+#
+for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
+ ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
+ ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
+$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_dest" : 'X\(//\)[^/]' \| \
+ X"$ac_dest" : 'X\(//\)$' \| \
+ X"$ac_dest" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$ac_dest" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+ ac_builddir=.
+
+if test "$ac_dir" != .; then
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+ # A "../" for each directory in $ac_dir_suffix.
+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+ ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+ .) # No --srcdir option. We are building in place.
+ ac_srcdir=.
+ if test -z "$ac_top_builddir"; then
+ ac_top_srcdir=.
+ else
+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+ fi ;;
+ [\\/]* | ?:[\\/]* ) # Absolute path.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir ;;
+ *) # Relative path.
+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+# absolute.
+ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
+ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+
+ { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
+echo "$as_me: executing $ac_dest commands" >&6;}
+ case $ac_dest in
+ default-1 )
+ echo "creating src/H5pubconf_fortran.h"
+ sed 's/#define /#define H5_/' < src/H5config_fortran.h |\
+ sed 's/#undef /#undef H5_/' > pubconf_fortran
+
+ if test ! -f src/H5pubconf_fortran.h; then
+ /bin/mv -f pubconf_fortran src/H5pubconf_fortran.h
+ elif (diff pubconf_fortran src/H5pubconf_fortran.h >/dev/null); then
+ /bin/rm -f pubconf_fortran
+ echo "src/H5pubconf_fortran.h is unchanged"
+ else
+ /bin/mv -f pubconf_fortran src/H5pubconf_fortran.h
+ fi
+ ;;
+ esac
+done
+_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
diff --git a/fortran/configure.in b/fortran/configure.in
index 5ab704d..c6f7241 100644
--- a/fortran/configure.in
+++ b/fortran/configure.in
@@ -18,12 +18,27 @@ dnl
dnl NOTE: Don't forget to change the version number here when we do a
dnl release!!!
dnl
-AC_INIT([HDF5 Fortran], [1.4.4], [hdfhelp@ncsa.uiuc.edu])
+AC_INIT([HDF5 Fortran], [1.4.4-snap4], [hdfhelp@ncsa.uiuc.edu])
AC_CONFIG_SRCDIR([src/HDF5.f90])
AC_CONFIG_HEADER([src/H5config_fortran.h])
AC_CONFIG_AUX_DIR([../bin])
+AC_OUTPUT_COMMANDS([
+ echo "creating src/H5pubconf_fortran.h"
+ sed 's/#define /#define H5_/' < src/H5config_fortran.h |\
+ sed 's/#undef /#undef H5_/' > pubconf_fortran
+
+ if test ! -f src/H5pubconf_fortran.h; then
+ /bin/mv -f pubconf_fortran src/H5pubconf_fortran.h
+ elif (diff pubconf_fortran src/H5pubconf_fortran.h >/dev/null); then
+ /bin/rm -f pubconf_fortran
+ echo "src/H5pubconf_fortran.h is unchanged"
+ else
+ /bin/mv -f pubconf_fortran src/H5pubconf_fortran.h
+ fi
+])
+
AC_CANONICAL_HOST
AC_SUBST(CPPFLAGS)
AC_SUBST(FFLAGS)