summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-11-16 19:08:14 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-11-16 19:08:14 (GMT)
commit4b2dbd56519082544a101a54b43b17376d82fc5c (patch)
treeff0dc4040d69c8525f3f3e73c0e7dab30b331280 /configure.in
parentd78a1e0f04e18f0b9a3e352d1d386f7b17c85bc8 (diff)
downloadhdf5-4b2dbd56519082544a101a54b43b17376d82fc5c.zip
hdf5-4b2dbd56519082544a101a54b43b17376d82fc5c.tar.gz
hdf5-4b2dbd56519082544a101a54b43b17376d82fc5c.tar.bz2
[svn-r1832] * 1999-11-16
** configure.in ** configure [REGENERATED] ** src/H5private.h ** src/H5public.h ** src/Makefile.in Generates an H5pubconf.h file which is just like H5config.h except all the preprocessor symbols have `H5_' prepended. This was done so that the configuration results can be used in public header files without polluting the namespace. ** src/H5.c Added H5I_REFERENCE and H5I_VFL to the API tracing code so their names are printed instead of just numbers. ** src/H5FDstdio.c ** tools/h5import.c ** tools/h5repart.c ** tools/pdb2hdf.c Changed to use the `H5_' versions of configure results since these files include only the public API. ** test/big.c Removed a compiler warning. ** test/h5test.c Removed unused code.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 3a48062..0fe4391 100644
--- a/configure.in
+++ b/configure.in
@@ -9,6 +9,19 @@ dnl
AC_REVISION($Id$)
AC_INIT(src/H5.c)
AC_CONFIG_HEADER(src/H5config.h)
+AC_OUTPUT_COMMANDS([
+ echo "creating src/H5pubconf.h"
+ sed 's/#define /#define H5_/' <src/H5config.h |\
+ sed 's/#undef /#undef H5_/' >pubconf
+ if test ! -f src/H5pubconf.h; then
+ /bin/mv -f pubconf src/H5pubconf.h
+ elif (diff pubconf src/H5pubconf.h >/dev/null); then
+ /bin/rm -f pubconf
+ echo "src/H5pubconf.h is unchanged"
+ else
+ /bin/mv -f pubconf src/H5pubconf.h
+ fi
+])
AC_CONFIG_AUX_DIR(bin)
AC_CANONICAL_HOST
AC_SUBST(CPPFLAGS)