summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-09-16 20:23:06 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-09-16 20:23:06 (GMT)
commit99a488c76c84bd3c60b7c37dfe448e79b846f4cf (patch)
treea4740bc8fe757683d7a3f8f6105a56577dca8b7c /c++
parentba34b659b1a70ba8f891ee641f3db67f14e0e5a4 (diff)
downloadhdf5-99a488c76c84bd3c60b7c37dfe448e79b846f4cf.zip
hdf5-99a488c76c84bd3c60b7c37dfe448e79b846f4cf.tar.gz
hdf5-99a488c76c84bd3c60b7c37dfe448e79b846f4cf.tar.bz2
[svn-r11419] Purpose:
Feature Description: Created H5_CFLAGS, H5_CPPFLAGS, H5_CXXFLAGS, and H5_FFLAGS variables. These hold flags that are used to build hdf5, but won't be passed on to h5cc (or h5fc, or h5c++). Currently there are no flags included; this is just the framework for such flags. Platforms tested: mir, modi4, sleipnir Misc. update:
Diffstat (limited to 'c++')
-rw-r--r--c++/config/commence.in9
-rwxr-xr-xc++/configure17
-rw-r--r--c++/configure.in6
3 files changed, 24 insertions, 8 deletions
diff --git a/c++/config/commence.in b/c++/config/commence.in
index 381f014..17e5c65 100644
--- a/c++/config/commence.in
+++ b/c++/config/commence.in
@@ -15,9 +15,12 @@
## Programs
SHELL=/bin/sh
CXX=@CXX@
-CXXFLAGS=@CXXFLAGS@
-CFLAGS=@CFLAGS@
-CPPFLAGS=@CPPFLAGS@
+## H5_CPPFLAGS, H5_CFLAGS, and H5_CXXFLAGS are used for extra flags
+## used to build HDF5 (flags that don't need to be included in h5cc,
+## for instance).
+CXXFLAGS=@CXXFLAGS@ @H5_CXXFLAGS@
+CFLAGS=@CFLAGS@ @H5_CFLAGS@
+CPPFLAGS=@CPPFLAGS@ @H5_CPPFLAGS@
LDFLAGS=@LDFLAGS@
ROOT=@ROOT@
LIBS=@LIBS@
diff --git a/c++/configure b/c++/configure
index 16f86a8..3e25526 100755
--- a/c++/configure
+++ b/c++/configure
@@ -471,7 +471,7 @@ ac_includes_default="\
# include <unistd.h>
#endif"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPPFLAGS ROOT DEFAULT_LIBS CXX CXXFLAGS LDFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS ac_ct_CC LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL PERL AR LT_STATIC_EXEC DYNAMIC_DIRS SEARCH SETX LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPPFLAGS H5_CPPFLAGS H5_CFLAGS H5_CXXFLAGS ROOT DEFAULT_LIBS CXX CXXFLAGS LDFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS ac_ct_CC LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL PERL AR LT_STATIC_EXEC DYNAMIC_DIRS SEARCH SETX LIBOBJS LTLIBOBJS'
ac_subst_files='DEPEND COMMENCE CONCLUDE'
# Initialize some variables set by options.
@@ -1585,6 +1585,10 @@ host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+
+
+
echo "$as_me:$LINENO: checking shell variables initial values" >&5
echo $ECHO_N "checking shell variables initial values... $ECHO_C" >&6
set >&5
@@ -4878,7 +4882,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
case $host in
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 4881 "configure"' > conftest.$ac_ext
+ echo '#line 4885 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -5445,7 +5449,7 @@ chmod -w .
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
-if { (eval echo configure:5448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+if { (eval echo configure:5452: \"$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
@@ -7356,7 +7360,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 7359 "configure"
+#line 7363 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -7454,7 +7458,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 7457 "configure"
+#line 7461 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11248,6 +11252,9 @@ s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
+s,@H5_CPPFLAGS@,$H5_CPPFLAGS,;t t
+s,@H5_CFLAGS@,$H5_CFLAGS,;t t
+s,@H5_CXXFLAGS@,$H5_CXXFLAGS,;t t
s,@ROOT@,$ROOT,;t t
s,@DEFAULT_LIBS@,$DEFAULT_LIBS,;t t
s,@CXX@,$CXX,;t t
diff --git a/c++/configure.in b/c++/configure.in
index ca06636..a677161 100644
--- a/c++/configure.in
+++ b/c++/configure.in
@@ -34,6 +34,12 @@ AC_CONFIG_AUX_DIR([../bin])
AC_CANONICAL_HOST
AC_SUBST(CPPFLAGS)
+dnl These hold flags which we want to use when compiling HDF5, but which
+dnl the user might not want in h5c++.
+AC_SUBST(H5_CPPFLAGS)
+AC_SUBST(H5_CFLAGS)
+AC_SUBST(H5_CXXFLAGS)
+
dnl ----------------------------------------------------------------------
dnl Dump all shell variables values.
dnl