From 99a488c76c84bd3c60b7c37dfe448e79b846f4cf Mon Sep 17 00:00:00 2001 From: James Laird Date: Fri, 16 Sep 2005 15:23:06 -0500 Subject: [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: --- c++/config/commence.in | 9 ++++++--- c++/configure | 17 ++++++++++++----- c++/configure.in | 6 ++++++ config/commence.in | 8 ++++++-- configure | 14 +++++++++----- configure.in | 4 ++++ fortran/config/commence.in | 9 ++++++--- fortran/configure | 17 ++++++++++++----- fortran/configure.in | 6 ++++++ 9 files changed, 67 insertions(+), 23 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 #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 < conftest.$ac_ext < conftest.$ac_ext + echo '#line 4575 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -5137,7 +5139,7 @@ chmod -w . save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" compiler_c_o=no -if { (eval echo configure:5140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then +if { (eval echo configure:5142: \"$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 @@ -7048,7 +7050,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5 echo $ECHO_N "checking shell variables initial values... $ECHO_C" >&6 set >&5 @@ -4305,7 +4309,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes case $host in *-*-irix6*) # Find out which ABI we are using. - echo '#line 4308 "configure"' > conftest.$ac_ext + echo '#line 4312 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -4872,7 +4876,7 @@ chmod -w . save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" compiler_c_o=no -if { (eval echo configure:4875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then +if { (eval echo configure:4879: \"$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 @@ -6783,7 +6787,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <