summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2005-01-18 17:28:09 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2005-01-18 17:28:09 (GMT)
commit53bb03ebc3b3bcb46d0deb9b8739bc9bc7c341fa (patch)
treeda84525b1338a57f9b2dc6473651194c17b11c05
parentf505b1c23ca88153aa04bc531fb297e596ae2bc9 (diff)
downloadhdf5-53bb03ebc3b3bcb46d0deb9b8739bc9bc7c341fa.zip
hdf5-53bb03ebc3b3bcb46d0deb9b8739bc9bc7c341fa.tar.gz
hdf5-53bb03ebc3b3bcb46d0deb9b8739bc9bc7c341fa.tar.bz2
[svn-r9832] Purpose: Bug fix
Description: h5c++ couldn't create object files Solution: Modified h5c++.in (following h5fc aand mpiCC code) Platforms tested: arabica Misc. update:
-rwxr-xr-xc++/src/h5c++.in55
1 files changed, 28 insertions, 27 deletions
diff --git a/c++/src/h5c++.in b/c++/src/h5c++.in
index 5c485d2..1840724 100755
--- a/c++/src/h5c++.in
+++ b/c++/src/h5c++.in
@@ -194,33 +194,34 @@ for arg in $@ ; do
*)
allargs="$allargs $qarg"
- if test -s "$arg"; then
- ext=`expr "$arg" : '.*\(\..*\)'`
-
- if test "x$ext" = "x.c"; then
- do_compile="yes"
- compile_args="$compile_args $arg"
- fname=`basename $arg .c`
- link_objs="$link_objs $fname.o"
- elif test "x$ext" = "x.o"; then
- if test "x$dash_c" = "xyes"; then
- compile_args="$compile_args $arg"
- else
- do_link="yes"
- link_objs="$link_objs $arg"
- fi
- elif test "x$ext" = "x.a"; then
- # This is an archive that we're linking in
- libraries=" $libraries $arg "
- else
- compile_args="$compile_args $arg"
- link_args="$link_args $arg"
- fi
- else
- compile_args="$compile_args $arg"
- link_args="$link_args $arg"
- fi
- ;;
+ if [ -s "$arg" ] ; then
+ ext=`expr "$arg" : '.*\(\..*\)'`
+ if [ "$ext" = ".C" -o "$ext" = ".cxx" -o "$ext" = ".cpp" -o \
+ "$ext" = ".cc" -o "$ext" = ".c" -o "$ext" = ".CC" ] ; then
+
+ do_compile="yes"
+ compile_args="$compile_args $arg"
+ fname=`basename $arg $ext`
+ link_objs="$link_objs $fname.o"
+ elif [ "$ext" = ".o" ] ; then
+ if test "x$dash_c" = "xyes" ; then
+ compile_args="$compile_args $arg"
+ else
+ do_link="yes"
+ link_objs="$link_objs $arg"
+ fi
+ elif test "x$ext" = "x.a"; then
+ # This is an archive that we're linking in
+ libraries=" $libraries $arg "
+ else
+ compile_args="$compile_args $arg"
+ link_args="$link_args $arg"
+ fi
+ else
+ compile_args="$compile_args $arg"
+ link_args="$link_args $arg"
+ fi
+ ;;
esac
done