diff options
-rwxr-xr-x | c++/configure | 66 | ||||
-rw-r--r-- | c++/configure.in | 72 | ||||
-rwxr-xr-x | fortran/configure | 78 | ||||
-rw-r--r-- | fortran/configure.in | 84 |
4 files changed, 300 insertions, 0 deletions
diff --git a/c++/configure b/c++/configure index 14e478b..9695078 100755 --- a/c++/configure +++ b/c++/configure @@ -10527,3 +10527,69 @@ no_create=$saved_no_create test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 chmod 755 src/h5c++ + +if test -z "$ECHO_N" -o -z "$ECHO_C"; then + if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ECHO_N='' + ECHO_C=' +' + else + ECHO_N=-n + ECHO_C='' + fi + else + ECHO_N='' + ECHO_C='\c' + fi +fi + +PRINT_PLAIN() { + echo $ECHO_N "$1$ECHO_C" + echo $ECHO_N "$1$ECHO_C" 1>>src/libhdf5.settings +} + +PRINT_N() { + echo $ECHO_N "$1: $ECHO_C" + echo $ECHO_N "$1: $ECHO_C" 1>>src/libhdf5.settings +} + +PRINT() { + echo "$1" + echo "$1" 1>>src/libhdf5.settings +} + +IF_YES_NO() { + if test $# -lt 1; then + PRINT "No" + return + else + while test $# -gt 0; do + if test "$1" != "yes"; then + PRINT "No" + return + fi + shift + done + fi + PRINT "Yes" +} + +IF_ENABLED_DISABLED() { + if test "$1" = "yes"; then + PRINT "Enabled" + else + PRINT "Disabled" + fi +} + +PRINT "C++ Configure Summary" +PRINT "Compiling Options:" + +PRINT_N " C++ Compiler" +PRINT "$CXX" + +PRINT_N " CXXFLAGS" +PRINT "$CXXFLAGS" + +PRINT "Features:" diff --git a/c++/configure.in b/c++/configure.in index a3d06b6..1780176 100644 --- a/c++/configure.in +++ b/c++/configure.in @@ -810,3 +810,75 @@ dnl Finally the makefiles test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 chmod 755 src/h5c++ + +dnl ---------------------------------------------------------------------- +dnl Print out a summary of what we are going to build. +dnl +if test -z "$ECHO_N" -o -z "$ECHO_C"; then + if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ECHO_N='' + ECHO_C=' +' + else + ECHO_N=-n + ECHO_C='' + fi + else + ECHO_N='' + ECHO_C='\c' + fi +fi + +PRINT_PLAIN() { + echo $ECHO_N "$1$ECHO_C" + echo $ECHO_N "$1$ECHO_C" 1>>src/libhdf5.settings +} + +PRINT_N() { + echo $ECHO_N "$1: $ECHO_C" + echo $ECHO_N "$1: $ECHO_C" 1>>src/libhdf5.settings +} + +PRINT() { + echo "$1" + echo "$1" 1>>src/libhdf5.settings +} + +dnl ---------------------------------------------------------------------- +dnl Print "Yes" if all arguments are "yes", otherwise "No" +dnl +IF_YES_NO() { + if test $# -lt 1; then + PRINT "No" + return + else + while test $# -gt 0; do + if test "$1" != "yes"; then + PRINT "No" + return + fi + shift + done + fi + PRINT "Yes" +} + +IF_ENABLED_DISABLED() { + if test "$1" = "yes"; then + PRINT "Enabled" + else + PRINT "Disabled" + fi +} + +PRINT "C++ Configure Summary" +PRINT "Compiling Options:" + +PRINT_N " C++ Compiler" +PRINT "$CXX" + +PRINT_N " CXXFLAGS" +PRINT "$CXXFLAGS" + +PRINT "Features:" diff --git a/fortran/configure b/fortran/configure index 99d36a0..8c646d5 100755 --- a/fortran/configure +++ b/fortran/configure @@ -11913,3 +11913,81 @@ touch ./config/stamp2 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 chmod 755 src/h5fc + +if test -z "$ECHO_N" -o -z "$ECHO_C"; then + if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ECHO_N='' + ECHO_C=' +' + else + ECHO_N=-n + ECHO_C='' + fi + else + ECHO_N='' + ECHO_C='\c' + fi +fi + +PRINT_PLAIN() { + echo $ECHO_N "$1$ECHO_C" + echo $ECHO_N "$1$ECHO_C" 1>>src/libhdf5.settings +} + +PRINT_N() { + echo $ECHO_N "$1: $ECHO_C" + echo $ECHO_N "$1: $ECHO_C" 1>>src/libhdf5.settings +} + +PRINT() { + echo "$1" + echo "$1" 1>>src/libhdf5.settings +} + +IF_YES_NO() { + if test $# -lt 1; then + PRINT "No" + return + else + while test $# -gt 0; do + if test "$1" != "yes"; then + PRINT "No" + return + fi + shift + done + fi + PRINT "Yes" +} + +IF_ENABLED_DISABLED() { + if test "$1" = "yes"; then + PRINT "Enabled" + else + PRINT "Disabled" + fi +} + +PRINT "Fortran Configure Summary" +PRINT "Compiling Options:" + +PRINT_N " Fortran Compiler" +PRINT "$F9X" + +PRINT_N " FFLAGS" +PRINT "$FFLAGS" + +PRINT_N " C Compiler" +PRINT "$CC" + +PRINT_N " CFLAGS" +PRINT "$CFLAGS" + +PRINT_N " CPPFLAGS" +PRINT "$CPPFLAGS" + +PRINT_N " LDFLAGS" +PRINT "$LDFLAGS" + +PRINT "Features:" diff --git a/fortran/configure.in b/fortran/configure.in index f091c77..41444e8 100644 --- a/fortran/configure.in +++ b/fortran/configure.in @@ -1223,3 +1223,87 @@ dnl Finally the makefiles test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 chmod 755 src/h5fc + +dnl ---------------------------------------------------------------------- +dnl Print out a summary of what we are going to build. +dnl +if test -z "$ECHO_N" -o -z "$ECHO_C"; then + if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ECHO_N='' + ECHO_C=' +' + else + ECHO_N=-n + ECHO_C='' + fi + else + ECHO_N='' + ECHO_C='\c' + fi +fi + +PRINT_PLAIN() { + echo $ECHO_N "$1$ECHO_C" + echo $ECHO_N "$1$ECHO_C" 1>>src/libhdf5.settings +} + +PRINT_N() { + echo $ECHO_N "$1: $ECHO_C" + echo $ECHO_N "$1: $ECHO_C" 1>>src/libhdf5.settings +} + +PRINT() { + echo "$1" + echo "$1" 1>>src/libhdf5.settings +} + +dnl ---------------------------------------------------------------------- +dnl Print "Yes" if all arguments are "yes", otherwise "No" +dnl +IF_YES_NO() { + if test $# -lt 1; then + PRINT "No" + return + else + while test $# -gt 0; do + if test "$1" != "yes"; then + PRINT "No" + return + fi + shift + done + fi + PRINT "Yes" +} + +IF_ENABLED_DISABLED() { + if test "$1" = "yes"; then + PRINT "Enabled" + else + PRINT "Disabled" + fi +} + +PRINT "Fortran Configure Summary" +PRINT "Compiling Options:" + +PRINT_N " Fortran Compiler" +PRINT "$F9X" + +PRINT_N " FFLAGS" +PRINT "$FFLAGS" + +PRINT_N " C Compiler" +PRINT "$CC" + +PRINT_N " CFLAGS" +PRINT "$CFLAGS" + +PRINT_N " CPPFLAGS" +PRINT "$CPPFLAGS" + +PRINT_N " LDFLAGS" +PRINT "$LDFLAGS" + +PRINT "Features:" |