[DebianGIS-dev] r2657 - packages/libhdf4/trunk/debian/patches

frankie at alioth.debian.org frankie at alioth.debian.org
Thu Jan 14 13:43:48 UTC 2010


Author: frankie
Date: 2010-01-14 13:43:47 +0000 (Thu, 14 Jan 2010)
New Revision: 2657

Modified:
   packages/libhdf4/trunk/debian/patches/autotools
   packages/libhdf4/trunk/debian/patches/shared_fortran
Log:
Still some missing files added to patches.


Modified: packages/libhdf4/trunk/debian/patches/autotools
===================================================================
--- packages/libhdf4/trunk/debian/patches/autotools	2010-01-14 12:34:48 UTC (rev 2656)
+++ packages/libhdf4/trunk/debian/patches/autotools	2010-01-14 13:43:47 UTC (rev 2657)
@@ -1,7 +1,7 @@
 Index: libhdf4-4.2r4/HDF4/aclocal.m4
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/aclocal.m4	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/aclocal.m4	2010-01-14 13:20:28.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/aclocal.m4	2008-10-09 21:45:04.000000000 +0200
++++ libhdf4-4.2r4/HDF4/aclocal.m4	2010-01-14 14:39:13.000000000 +0100
 @@ -1,7 +1,7 @@
 -# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 +# generated automatically by aclocal 1.11 -*- Autoconf -*-
@@ -13584,8 +13584,8 @@
  
 Index: libhdf4-4.2r4/HDF4/configure
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/configure	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/configure	2010-01-14 13:20:30.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/configure	2009-01-21 03:44:10.000000000 +0100
++++ libhdf4-4.2r4/HDF4/configure	2010-01-14 14:39:15.000000000 +0100
 @@ -1,63 +1,86 @@
  #! /bin/sh
  # From configure.ac Id: configure.ac 5143 2009-01-13 21:13:49Z epourmal .
@@ -37041,8 +37041,8 @@
  
 Index: libhdf4-4.2r4/HDF4/hdf/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/Makefile.in	2010-01-14 13:20:33.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/hdf/Makefile.in	2010-01-14 14:39:18.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -37377,8 +37377,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/src/h4config.h.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in	2010-01-14 13:20:32.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/src/h4config.h.in	2008-10-09 21:45:04.000000000 +0200
++++ libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in	2010-01-14 14:39:17.000000000 +0100
 @@ -1,5 +1,8 @@
  /* hdf/src/h4config.h.in.  Generated from configure.ac by autoheader.  */
  
@@ -37422,7 +37422,7 @@
 Index: libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in~
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in~	2010-01-14 13:18:39.000000000 +0100
++++ libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in~	2010-01-14 14:38:42.000000000 +0100
 @@ -0,0 +1,140 @@
 +/* hdf/src/h4config.h.in.  Generated from configure.ac by autoheader.  */
 +
@@ -37566,8 +37566,8 @@
 +#undef YYTEXT_POINTER
 Index: libhdf4-4.2r4/HDF4/hdf/src/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/src/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/src/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/src/Makefile.am	2008-10-09 21:45:04.000000000 +0200
++++ libhdf4-4.2r4/HDF4/hdf/src/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -4,7 +4,7 @@
  
  include $(top_srcdir)/config/commence.am
@@ -37592,8 +37592,8 @@
  
 Index: libhdf4-4.2r4/HDF4/hdf/src/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/src/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/src/Makefile.in	2010-01-14 13:20:33.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/src/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/hdf/src/Makefile.in	2010-01-14 14:39:18.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -38010,8 +38010,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/hdf/test/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/test/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/test/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/test/Makefile.am	2008-10-15 16:08:16.000000000 +0200
++++ libhdf4-4.2r4/HDF4/hdf/test/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -23,11 +23,11 @@
                    mgr.c nbit.c rig.c sdmms.c sdnmms.c sdstr.c slab.c tbv.c  \
                    tdupimgs.c testhdf.c tree.c tszip.c tvattr.c tvset.c      \
@@ -38030,8 +38030,8 @@
  fortest_SOURCES = fortest.c
 Index: libhdf4-4.2r4/HDF4/hdf/test/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/test/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/test/Makefile.in	2010-01-14 13:20:33.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/test/Makefile.in	2008-10-15 16:08:16.000000000 +0200
++++ libhdf4-4.2r4/HDF4/hdf/test/Makefile.in	2010-01-14 14:39:18.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -38429,8 +38429,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/hdf/util/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/util/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/util/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/util/Makefile.am	2008-10-09 21:45:04.000000000 +0200
++++ libhdf4-4.2r4/HDF4/hdf/util/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -22,76 +22,76 @@
  endif
  
@@ -38546,8 +38546,8 @@
  ##                   Testing -- Here there be dragons.                     ##
 Index: libhdf4-4.2r4/HDF4/hdf/util/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/util/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/util/Makefile.in	2010-01-14 13:20:33.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/util/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/hdf/util/Makefile.in	2010-01-14 14:39:18.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -39035,8 +39035,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/Makefile.in	2010-01-14 13:20:35.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/Makefile.in	2010-01-14 14:39:20.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -39540,8 +39540,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/man/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/man/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/man/Makefile.in	2010-01-14 13:20:33.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/man/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/man/Makefile.in	2010-01-14 14:39:18.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -39818,8 +39818,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/dumper/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/dumper/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/dumper/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/dumper/Makefile.am	2008-10-09 21:45:04.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/dumper/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -20,8 +20,8 @@
  ## Information for building the "hdp" program
  hdp_SOURCES = hdp.c hdp_dump.c hdp_gr.c hdp_list.c hdp_rig.c hdp_sds.c      \
@@ -39833,8 +39833,8 @@
  ##                   Testing -- Here there be dragons.                     ##
 Index: libhdf4-4.2r4/HDF4/mfhdf/dumper/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/dumper/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/dumper/Makefile.in	2010-01-14 13:20:33.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/dumper/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/dumper/Makefile.in	2010-01-14 14:39:18.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -40168,8 +40168,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/fortran/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/fortran/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/fortran/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/fortran/Makefile.am	2008-10-15 16:08:16.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/fortran/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -27,22 +27,22 @@
  if HDF_BUILD_NETCDF
  ftest_SOURCES = ftest.f
@@ -40203,8 +40203,8 @@
  	-mkdir testdir
 Index: libhdf4-4.2r4/HDF4/mfhdf/fortran/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/fortran/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/fortran/Makefile.in	2010-01-14 13:20:34.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/fortran/Makefile.in	2008-10-15 16:08:16.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/fortran/Makefile.in	2010-01-14 14:39:18.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -40528,8 +40528,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/hdfimport/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/hdfimport/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/hdfimport/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/hdfimport/Makefile.am	2008-10-09 21:45:04.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/hdfimport/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -16,7 +16,7 @@
  ##                      Libraries to link against                          ##
  #############################################################################
@@ -40541,8 +40541,8 @@
  ##                          Programs to build                              ##
 Index: libhdf4-4.2r4/HDF4/mfhdf/hdfimport/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/hdfimport/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/hdfimport/Makefile.in	2010-01-14 13:20:34.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/hdfimport/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/hdfimport/Makefile.in	2010-01-14 14:39:19.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -40906,8 +40906,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/hdiff/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/hdiff/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/hdiff/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/hdiff/Makefile.am	2008-10-14 23:51:03.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/hdiff/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -22,8 +22,8 @@
  hdiff_SOURCES = hdiff.c hdiff_array.c hdiff_gr.c hdiff_list.c hdiff_main.c  \
                  hdiff_mattbl.c hdiff_gattr.c hdiff_misc.c hdiff_sds.c       \
@@ -40932,8 +40932,8 @@
  	@srcdir="$(srcdir)" $(SHELL) $(srcdir)/testhdiff.sh
 Index: libhdf4-4.2r4/HDF4/mfhdf/hdiff/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/hdiff/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/hdiff/Makefile.in	2010-01-14 13:20:34.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/hdiff/Makefile.in	2008-10-14 23:51:03.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/hdiff/Makefile.in	2010-01-14 14:39:19.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -41288,8 +41288,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/hrepack/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/hrepack/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/hrepack/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/hrepack/Makefile.am	2008-11-18 22:40:10.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/hrepack/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -24,8 +24,8 @@
                    hrepack_opttable.c hrepack_parse.c                        \
                    hrepack_sds.c hrepack_utils.c                             \
@@ -41320,8 +41320,8 @@
  ##                          And the cleanup                                ##
 Index: libhdf4-4.2r4/HDF4/mfhdf/hrepack/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/hrepack/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/hrepack/Makefile.in	2010-01-14 13:20:34.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/hrepack/Makefile.in	2008-11-18 22:40:10.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/hrepack/Makefile.in	2010-01-14 14:39:19.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -41972,8 +41972,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/libsrc/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/libsrc/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/libsrc/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/libsrc/Makefile.am	2009-01-21 03:44:10.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/libsrc/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -15,9 +15,9 @@
  ##                          Library to build                               ##
  #############################################################################
@@ -42022,8 +42022,8 @@
  	@echo "============================"
 Index: libhdf4-4.2r4/HDF4/mfhdf/libsrc/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/libsrc/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/libsrc/Makefile.in	2010-01-14 13:20:34.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/libsrc/Makefile.in	2009-01-21 03:44:10.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/libsrc/Makefile.in	2010-01-14 14:39:19.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -42541,8 +42541,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/Makefile.in	2010-01-14 13:20:33.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/Makefile.in	2010-01-14 14:39:18.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -42878,8 +42878,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/ncdump/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/ncdump/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/ncdump/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/ncdump/Makefile.am	2008-10-09 21:45:04.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/ncdump/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -21,8 +21,8 @@
  
  ## Information for building the "ncdump" program
@@ -42893,8 +42893,8 @@
  	$(TESTS_ENVIRONMENT) ../ncgen/ncgen -o test0.nc -n $(srcdir)/test0.cdl
 Index: libhdf4-4.2r4/HDF4/mfhdf/ncdump/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/ncdump/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/ncdump/Makefile.in	2010-01-14 13:20:34.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/ncdump/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/ncdump/Makefile.in	2010-01-14 14:39:19.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -43343,8 +43343,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/ncgen/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/ncgen/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/ncgen/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/ncgen/Makefile.am	2008-10-09 21:45:04.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/ncgen/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -5,9 +5,9 @@
  include $(top_srcdir)/config/commence.am
  
@@ -43374,8 +43374,8 @@
  
 Index: libhdf4-4.2r4/HDF4/mfhdf/ncgen/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/ncgen/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/ncgen/Makefile.in	2010-01-14 13:20:34.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/ncgen/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/ncgen/Makefile.in	2010-01-14 14:39:19.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -43856,8 +43856,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/nctest/Makefile.am
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/nctest/Makefile.am	2010-01-14 13:06:54.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/nctest/Makefile.am	2010-01-14 13:18:39.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/nctest/Makefile.am	2008-10-09 21:45:04.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/nctest/Makefile.am	2010-01-14 14:38:42.000000000 +0100
 @@ -24,8 +24,8 @@
                   error.c misctest.c rec.c slabs.c val.c varget_unlim.c      \
                   varget.c vargetg.c varput.c varputg.c vardef.c vartests.c  \
@@ -43871,8 +43871,8 @@
  ##                          And the cleanup                                ##
 Index: libhdf4-4.2r4/HDF4/mfhdf/nctest/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/nctest/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/nctest/Makefile.in	2010-01-14 13:20:34.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/nctest/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/nctest/Makefile.in	2010-01-14 14:39:19.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -44266,8 +44266,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/port/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/port/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/port/Makefile.in	2010-01-14 13:20:34.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/port/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/port/Makefile.in	2010-01-14 14:39:19.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -44514,8 +44514,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/xdr/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/xdr/Makefile.in	2010-01-14 13:07:24.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/xdr/Makefile.in	2010-01-14 13:20:34.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/xdr/Makefile.in	2008-10-13 21:39:11.000000000 +0200
++++ libhdf4-4.2r4/HDF4/mfhdf/xdr/Makefile.in	2010-01-14 14:39:20.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -44991,3 +44991,1880 @@
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
  # Otherwise a system limit (for SysV at least) may be exceeded.
  .NOEXPORT:
+Index: libhdf4-4.2r4/HDF4/bin/depcomp
+===================================================================
+--- libhdf4-4.2r4.orig/HDF4/bin/depcomp	2010-01-14 14:38:52.000000000 +0100
++++ libhdf4-4.2r4/HDF4/bin/depcomp	2010-01-14 14:39:19.000000000 +0100
+@@ -1,7 +1,10 @@
+ #! /bin/sh
+-
+ # depcomp - compile a program generating dependencies as side-effects
+-# Copyright 1999, 2000 Free Software Foundation, Inc.
++
++scriptversion=2009-04-28.21; # UTC
++
++# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
++# Software Foundation, Inc.
+ 
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -14,9 +17,7 @@
+ # GNU General Public License for more details.
+ 
+ # You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ 
+ # As a special exception to the GNU General Public License, if you
+ # distribute this file as part of a program that contains a
+@@ -25,22 +26,45 @@
+ 
+ # Originally written by Alexandre Oliva <oliva at dcc.unicamp.br>.
+ 
++case $1 in
++  '')
++     echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
++     exit 1;
++     ;;
++  -h | --h*)
++    cat <<\EOF
++Usage: depcomp [--help] [--version] PROGRAM [ARGS]
++
++Run PROGRAMS ARGS to compile a file, generating dependencies
++as side-effects.
++
++Environment variables:
++  depmode     Dependency tracking mode.
++  source      Source file read by `PROGRAMS ARGS'.
++  object      Object file output by `PROGRAMS ARGS'.
++  DEPDIR      directory where to store dependencies.
++  depfile     Dependency file to output.
++  tmpdepfile  Temporary file to use when outputing dependencies.
++  libtool     Whether libtool is used (yes/no).
++
++Report bugs to <bug-automake at gnu.org>.
++EOF
++    exit $?
++    ;;
++  -v | --v*)
++    echo "depcomp $scriptversion"
++    exit $?
++    ;;
++esac
++
+ if test -z "$depmode" || test -z "$source" || test -z "$object"; then
+   echo "depcomp: Variables source, object and depmode must be set" 1>&2
+   exit 1
+ fi
+-# `libtool' can also be set to `yes' or `no'.
+-
+-if test -z "$depfile"; then
+-   base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
+-   dir=`echo "$object" | sed 's,/.*$,/,'`
+-   if test "$dir" = "$object"; then
+-      dir=
+-   fi
+-   # FIXME: should be _deps on DOS.
+-   depfile="$dir.deps/$base"
+-fi
+ 
++# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
++depfile=${depfile-`echo "$object" |
++  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
+ tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
+ 
+ rm -f "$tmpdepfile"
+@@ -61,12 +85,34 @@
+    depmode=dashmstdout
+ fi
+ 
++cygpath_u="cygpath -u -f -"
++if test "$depmode" = msvcmsys; then
++   # This is just like msvisualcpp but w/o cygpath translation.
++   # Just convert the backslash-escaped backslashes to single forward
++   # slashes to satisfy depend.m4
++   cygpath_u="sed s,\\\\\\\\,/,g"
++   depmode=msvisualcpp
++fi
++
+ case "$depmode" in
+ gcc3)
+ ## gcc 3 implements dependency tracking that does exactly what
+ ## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
+ ## it if -MD -MP comes after the -MF stuff.  Hmm.
+-  "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
++## Unfortunately, FreeBSD c89 acceptance of flags depends upon
++## the command line argument order; so add the flags where they
++## appear in depend2.am.  Note that the slowdown incurred here
++## affects only configure: in makefiles, %FASTDEP% shortcuts this.
++  for arg
++  do
++    case $arg in
++    -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
++    *)  set fnord "$@" "$arg" ;;
++    esac
++    shift # fnord
++    shift # $arg
++  done
++  "$@"
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+@@ -153,14 +199,14 @@
+ ' < "$tmpdepfile" \
+     | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
+     tr '
+-' ' ' >> $depfile
+-    echo >> $depfile
++' ' ' >> "$depfile"
++    echo >> "$depfile"
+ 
+     # The second pass generates a dummy entry for each header file.
+     tr ' ' '
+ ' < "$tmpdepfile" \
+    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+-   >> $depfile
++   >> "$depfile"
+   else
+     # The sourcefile does not contain any dependencies, so just
+     # store a dummy comment line, to avoid errors with the Makefile
+@@ -172,31 +218,43 @@
+ 
+ aix)
+   # The C for AIX Compiler uses -M and outputs the dependencies
+-  # in a .u file.  This file always lives in the current directory.
+-  # Also, the AIX compiler puts `$object:' at the start of each line;
+-  # $object doesn't have directory information.
+-  stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
+-  tmpdepfile="$stripped.u"
+-  outname="$stripped.o"
++  # in a .u file.  In older versions, this file always lives in the
++  # current directory.  Also, the AIX compiler puts `$object:' at the
++  # start of each line; $object doesn't have directory information.
++  # Version 6 uses the directory in both cases.
++  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
++  test "x$dir" = "x$object" && dir=
++  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+   if test "$libtool" = yes; then
++    tmpdepfile1=$dir$base.u
++    tmpdepfile2=$base.u
++    tmpdepfile3=$dir.libs/$base.u
+     "$@" -Wc,-M
+   else
++    tmpdepfile1=$dir$base.u
++    tmpdepfile2=$dir$base.u
++    tmpdepfile3=$dir$base.u
+     "$@" -M
+   fi
+-
+   stat=$?
++
+   if test $stat -eq 0; then :
+   else
+-    rm -f "$tmpdepfile"
++    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+     exit $stat
+   fi
+ 
++  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
++  do
++    test -f "$tmpdepfile" && break
++  done
+   if test -f "$tmpdepfile"; then
+     # Each line is of the form `foo.o: dependent.h'.
+     # Do two passes, one to just change these to
+     # `$object: dependent.h' and one to simply `dependent.h:'.
+-    sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
+-    sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
++    sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
++    # That's a tab and a space in the [].
++    sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+   else
+     # The sourcefile does not contain any dependencies, so just
+     # store a dummy comment line, to avoid errors with the Makefile
+@@ -244,6 +302,51 @@
+   rm -f "$tmpdepfile"
+   ;;
+ 
++hp2)
++  # The "hp" stanza above does not work with aCC (C++) and HP's ia64
++  # compilers, which have integrated preprocessors.  The correct option
++  # to use with these is +Maked; it writes dependencies to a file named
++  # 'foo.d', which lands next to the object file, wherever that
++  # happens to be.
++  # Much of this is similar to the tru64 case; see comments there.
++  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
++  test "x$dir" = "x$object" && dir=
++  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
++  if test "$libtool" = yes; then
++    tmpdepfile1=$dir$base.d
++    tmpdepfile2=$dir.libs/$base.d
++    "$@" -Wc,+Maked
++  else
++    tmpdepfile1=$dir$base.d
++    tmpdepfile2=$dir$base.d
++    "$@" +Maked
++  fi
++  stat=$?
++  if test $stat -eq 0; then :
++  else
++     rm -f "$tmpdepfile1" "$tmpdepfile2"
++     exit $stat
++  fi
++
++  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
++  do
++    test -f "$tmpdepfile" && break
++  done
++  if test -f "$tmpdepfile"; then
++    sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
++    # Add `dependent.h:' lines.
++    sed -ne '2,${
++	       s/^ *//
++	       s/ \\*$//
++	       s/$/:/
++	       p
++	     }' "$tmpdepfile" >> "$depfile"
++  else
++    echo "#dummy" > "$depfile"
++  fi
++  rm -f "$tmpdepfile" "$tmpdepfile2"
++  ;;
++
+ tru64)
+    # The Tru64 compiler uses -MD to generate dependencies as a side
+    # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
+@@ -255,31 +358,47 @@
+    base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ 
+    if test "$libtool" = yes; then
+-      tmpdepfile1="$dir.libs/$base.lo.d"
+-      tmpdepfile2="$dir.libs/$base.d"
++      # With Tru64 cc, shared objects can also be used to make a
++      # static library.  This mechanism is used in libtool 1.4 series to
++      # handle both shared and static libraries in a single compilation.
++      # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
++      #
++      # With libtool 1.5 this exception was removed, and libtool now
++      # generates 2 separate objects for the 2 libraries.  These two
++      # compilations output dependencies in $dir.libs/$base.o.d and
++      # in $dir$base.o.d.  We have to check for both files, because
++      # one of the two compilations can be disabled.  We should prefer
++      # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
++      # automatically cleaned when .libs/ is deleted, while ignoring
++      # the former would cause a distcleancheck panic.
++      tmpdepfile1=$dir.libs/$base.lo.d   # libtool 1.4
++      tmpdepfile2=$dir$base.o.d          # libtool 1.5
++      tmpdepfile3=$dir.libs/$base.o.d    # libtool 1.5
++      tmpdepfile4=$dir.libs/$base.d      # Compaq CCC V6.2-504
+       "$@" -Wc,-MD
+    else
+-      tmpdepfile1="$dir$base.o.d"
+-      tmpdepfile2="$dir$base.d"
++      tmpdepfile1=$dir$base.o.d
++      tmpdepfile2=$dir$base.d
++      tmpdepfile3=$dir$base.d
++      tmpdepfile4=$dir$base.d
+       "$@" -MD
+    fi
+ 
+    stat=$?
+    if test $stat -eq 0; then :
+    else
+-      rm -f "$tmpdepfile1" "$tmpdepfile2"
++      rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+       exit $stat
+    fi
+ 
+-   if test -f "$tmpdepfile1"; then
+-      tmpdepfile="$tmpdepfile1"
+-   else
+-      tmpdepfile="$tmpdepfile2"
+-   fi
++   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
++   do
++     test -f "$tmpdepfile" && break
++   done
+    if test -f "$tmpdepfile"; then
+       sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+-      # That's a space and a tab in the [].
+-      sed -e 's,^.*\.[a-z]*:[ 	]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
++      # That's a tab and a space in the [].
++      sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+    else
+       echo "#dummy" > "$depfile"
+    fi
+@@ -292,12 +411,12 @@
+ 
+ dashmstdout)
+   # Important note: in order to support this mode, a compiler *must*
+-  # always write the proprocessed file to stdout, regardless of -o.
++  # always write the preprocessed file to stdout, regardless of -o.
+   "$@" || exit $?
+ 
+   # Remove the call to Libtool.
+   if test "$libtool" = yes; then
+-    while test $1 != '--mode=compile'; do
++    while test "X$1" != 'X--mode=compile'; do
+       shift
+     done
+     shift
+@@ -348,32 +467,39 @@
+   "$@" || exit $?
+   # Remove any Libtool call
+   if test "$libtool" = yes; then
+-    while test $1 != '--mode=compile'; do
++    while test "X$1" != 'X--mode=compile'; do
+       shift
+     done
+     shift
+   fi
+   # X makedepend
+   shift
+-  cleared=no
+-  for arg in "$@"; do
++  cleared=no eat=no
++  for arg
++  do
+     case $cleared in
+     no)
+       set ""; shift
+       cleared=yes ;;
+     esac
++    if test $eat = yes; then
++      eat=no
++      continue
++    fi
+     case "$arg" in
+     -D*|-I*)
+       set fnord "$@" "$arg"; shift ;;
+     # Strip any option that makedepend may not understand.  Remove
+     # the object too, otherwise makedepend will parse it as a source file.
++    -arch)
++      eat=yes ;;
+     -*|$object)
+       ;;
+     *)
+       set fnord "$@" "$arg"; shift ;;
+     esac
+   done
+-  obj_suffix="`echo $object | sed 's/^.*\././'`"
++  obj_suffix=`echo "$object" | sed 's/^.*\././'`
+   touch "$tmpdepfile"
+   ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
+   rm -f "$depfile"
+@@ -388,12 +514,12 @@
+ 
+ cpp)
+   # Important note: in order to support this mode, a compiler *must*
+-  # always write the proprocessed file to stdout.
++  # always write the preprocessed file to stdout.
+   "$@" || exit $?
+ 
+   # Remove the call to Libtool.
+   if test "$libtool" = yes; then
+-    while test $1 != '--mode=compile'; do
++    while test "X$1" != 'X--mode=compile'; do
+       shift
+     done
+     shift
+@@ -419,7 +545,8 @@
+   done
+ 
+   "$@" -E |
+-    sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
++    sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
++       -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
+     sed '$ s: \\$::' > "$tmpdepfile"
+   rm -f "$depfile"
+   echo "$object : \\" > "$depfile"
+@@ -430,13 +557,27 @@
+ 
+ msvisualcpp)
+   # Important note: in order to support this mode, a compiler *must*
+-  # always write the proprocessed file to stdout, regardless of -o,
+-  # because we must use -o when running libtool.
++  # always write the preprocessed file to stdout.
+   "$@" || exit $?
++
++  # Remove the call to Libtool.
++  if test "$libtool" = yes; then
++    while test "X$1" != 'X--mode=compile'; do
++      shift
++    done
++    shift
++  fi
++
+   IFS=" "
+   for arg
+   do
+     case "$arg" in
++    -o)
++      shift
++      ;;
++    $object)
++      shift
++      ;;
+     "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
+ 	set fnord "$@"
+ 	shift
+@@ -449,16 +590,23 @@
+ 	;;
+     esac
+   done
+-  "$@" -E |
+-  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
++  "$@" -E 2>/dev/null |
++  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
+   rm -f "$depfile"
+   echo "$object : \\" > "$depfile"
+-  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::	\1 \\:p' >> "$depfile"
++  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::	\1 \\:p' >> "$depfile"
+   echo "	" >> "$depfile"
+-  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
++  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
+   rm -f "$tmpdepfile"
+   ;;
+ 
++msvcmsys)
++  # This case exists only to let depend.m4 do its work.  It works by
++  # looking at the text of this script.  This case will never be run,
++  # since it is checked for above.
++  exit 1
++  ;;
++
+ none)
+   exec "$@"
+   ;;
+@@ -470,3 +618,13 @@
+ esac
+ 
+ exit 0
++
++# Local Variables:
++# mode: shell-script
++# sh-indentation: 2
++# eval: (add-hook 'write-file-hooks 'time-stamp)
++# time-stamp-start: "scriptversion="
++# time-stamp-format: "%:y-%02m-%02d.%02H"
++# time-stamp-time-zone: "UTC"
++# time-stamp-end: "; # UTC"
++# End:
+Index: libhdf4-4.2r4/HDF4/bin/install-sh
+===================================================================
+--- libhdf4-4.2r4.orig/HDF4/bin/install-sh	2010-01-14 14:38:52.000000000 +0100
++++ libhdf4-4.2r4/HDF4/bin/install-sh	2010-01-14 14:39:17.000000000 +0100
+@@ -1,7 +1,8 @@
+ #!/bin/sh
+-#
+ # install - install a program, script, or datafile
+-#
++
++scriptversion=2009-04-28.21; # UTC
++
+ # This originates from X11R5 (mit/util/scripts/install.sh), which was
+ # later released in X11R6 (xc/config/util/install.sh) with the
+ # following copyright and license.
+@@ -38,257 +39,482 @@
+ # when there is no Makefile.
+ #
+ # This script is compatible with the BSD install script, but was written
+-# from scratch.  It can only install one file at a time, a restriction
+-# shared with many OS's install programs.
++# from scratch.
+ 
++nl='
++'
++IFS=" ""	$nl"
+ 
+ # set DOITPROG to echo to test this script
+ 
+ # Don't use :- since 4.3BSD and earlier shells don't like it.
+-doit="${DOITPROG-}"
+-
++doit=${DOITPROG-}
++if test -z "$doit"; then
++  doit_exec=exec
++else
++  doit_exec=$doit
++fi
+ 
+-# put in absolute paths if you don't have them in your path; or use env. vars.
++# Put in absolute file names if you don't have them in your path;
++# or use environment vars.
+ 
+-mvprog="${MVPROG-mv}"
+-cpprog="${CPPROG-cp}"
+-chmodprog="${CHMODPROG-chmod}"
+-chownprog="${CHOWNPROG-chown}"
+-chgrpprog="${CHGRPPROG-chgrp}"
+-stripprog="${STRIPPROG-strip}"
+-rmprog="${RMPROG-rm}"
+-mkdirprog="${MKDIRPROG-mkdir}"
+-
+-transformbasename=""
+-transform_arg=""
+-instcmd="$mvprog"
+-chmodcmd="$chmodprog 0755"
+-chowncmd=""
+-chgrpcmd=""
+-stripcmd=""
++chgrpprog=${CHGRPPROG-chgrp}
++chmodprog=${CHMODPROG-chmod}
++chownprog=${CHOWNPROG-chown}
++cmpprog=${CMPPROG-cmp}
++cpprog=${CPPROG-cp}
++mkdirprog=${MKDIRPROG-mkdir}
++mvprog=${MVPROG-mv}
++rmprog=${RMPROG-rm}
++stripprog=${STRIPPROG-strip}
++
++posix_glob='?'
++initialize_posix_glob='
++  test "$posix_glob" != "?" || {
++    if (set -f) 2>/dev/null; then
++      posix_glob=
++    else
++      posix_glob=:
++    fi
++  }
++'
++
++posix_mkdir=
++
++# Desired mode of installed file.
++mode=0755
++
++chgrpcmd=
++chmodcmd=$chmodprog
++chowncmd=
++mvcmd=$mvprog
+ rmcmd="$rmprog -f"
+-mvcmd="$mvprog"
+-src=""
+-dst=""
+-dir_arg=""
+-
+-while [ x"$1" != x ]; do
+-    case $1 in
+-	-c) instcmd=$cpprog
+-	    shift
+-	    continue;;
+-
+-	-d) dir_arg=true
+-	    shift
+-	    continue;;
+-
+-	-m) chmodcmd="$chmodprog $2"
+-	    shift
+-	    shift
+-	    continue;;
+-
+-	-o) chowncmd="$chownprog $2"
+-	    shift
+-	    shift
+-	    continue;;
+-
+-	-g) chgrpcmd="$chgrpprog $2"
+-	    shift
+-	    shift
+-	    continue;;
+-
+-	-s) stripcmd=$stripprog
+-	    shift
+-	    continue;;
+-
+-	-t=*) transformarg=`echo $1 | sed 's/-t=//'`
+-	    shift
+-	    continue;;
+-
+-	-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
+-	    shift
+-	    continue;;
++stripcmd=
+ 
+-	*)  if [ x"$src" = x ]
+-	    then
+-		src=$1
+-	    else
+-		# this colon is to work around a 386BSD /bin/sh bug
+-		:
+-		dst=$1
+-	    fi
+-	    shift
+-	    continue;;
+-    esac
+-done
++src=
++dst=
++dir_arg=
++dst_arg=
+ 
+-if [ x"$src" = x ]
+-then
+-	echo "$0: no input file specified" >&2
+-	exit 1
+-else
+-	:
+-fi
++copy_on_change=false
++no_target_directory=
+ 
+-if [ x"$dir_arg" != x ]; then
+-	dst=$src
+-	src=""
+-
+-	if [ -d "$dst" ]; then
+-		instcmd=:
+-		chmodcmd=""
+-	else
+-		instcmd=$mkdirprog
+-	fi
+-else
++usage="\
++Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
++   or: $0 [OPTION]... SRCFILES... DIRECTORY
++   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
++   or: $0 [OPTION]... -d DIRECTORIES...
+ 
+-# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
+-# might cause directories to be created, which would be especially bad
+-# if $src (and thus $dsttmp) contains '*'.
+-
+-	if [ -f "$src" ] || [ -d "$src" ]
+-	then
+-		:
+-	else
+-		echo "$0: $src does not exist" >&2
+-		exit 1
+-	fi
++In the 1st form, copy SRCFILE to DSTFILE.
++In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
++In the 4th, create DIRECTORIES.
+ 
+-	if [ x"$dst" = x ]
+-	then
+-		echo "$0: no destination specified" >&2
+-		exit 1
+-	else
+-		:
+-	fi
++Options:
++     --help     display this help and exit.
++     --version  display version info and exit.
+ 
+-# If destination is a directory, append the input filename; if your system
+-# does not like double slashes in filenames, you may need to add some logic
++  -c            (ignored)
++  -C            install only if different (preserve the last data modification time)
++  -d            create directories instead of installing files.
++  -g GROUP      $chgrpprog installed files to GROUP.
++  -m MODE       $chmodprog installed files to MODE.
++  -o USER       $chownprog installed files to USER.
++  -s            $stripprog installed files.
++  -t DIRECTORY  install into DIRECTORY.
++  -T            report an error if DSTFILE is a directory.
+ 
+-	if [ -d "$dst" ]
+-	then
+-		dst=$dst/`basename "$src"`
+-	else
+-		:
+-	fi
+-fi
++Environment variables override the default commands:
++  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
++  RMPROG STRIPPROG
++"
+ 
+-## this sed command emulates the dirname command
+-dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
++while test $# -ne 0; do
++  case $1 in
++    -c) ;;
+ 
+-# Make sure that the destination directory exists.
+-#  this part is taken from Noah Friedman's mkinstalldirs script
++    -C) copy_on_change=true;;
+ 
+-# Skip lots of stat calls in the usual case.
+-if [ ! -d "$dstdir" ]; then
+-defaultIFS='
+-	'
+-IFS="${IFS-$defaultIFS}"
+-
+-oIFS=$IFS
+-# Some sh's can't handle IFS=/ for some reason.
+-IFS='%'
+-set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
+-IFS=$oIFS
+-
+-pathcomp=''
+-
+-while [ $# -ne 0 ] ; do
+-	pathcomp=$pathcomp$1
+-	shift
+-
+-	if [ ! -d "$pathcomp" ] ;
+-        then
+-		$mkdirprog "$pathcomp"
+-	else
+-		:
+-	fi
++    -d) dir_arg=true;;
+ 
+-	pathcomp=$pathcomp/
+-done
+-fi
++    -g) chgrpcmd="$chgrpprog $2"
++	shift;;
+ 
+-if [ x"$dir_arg" != x ]
+-then
+-	$doit $instcmd "$dst" &&
+-
+-	if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi &&
+-	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi &&
+-	if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi &&
+-	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi
+-else
++    --help) echo "$usage"; exit $?;;
+ 
+-# If we're going to rename the final executable, determine the name now.
++    -m) mode=$2
++	case $mode in
++	  *' '* | *'	'* | *'
++'*	  | *'*'* | *'?'* | *'['*)
++	    echo "$0: invalid mode: $mode" >&2
++	    exit 1;;
++	esac
++	shift;;
+ 
+-	if [ x"$transformarg" = x ]
+-	then
+-		dstfile=`basename "$dst"`
+-	else
+-		dstfile=`basename "$dst" $transformbasename |
+-			sed $transformarg`$transformbasename
+-	fi
++    -o) chowncmd="$chownprog $2"
++	shift;;
+ 
+-# don't allow the sed command to completely eliminate the filename
++    -s) stripcmd=$stripprog;;
+ 
+-	if [ x"$dstfile" = x ]
+-	then
+-		dstfile=`basename "$dst"`
+-	else
+-		:
+-	fi
++    -t) dst_arg=$2
++	shift;;
+ 
+-# Make a couple of temp file names in the proper directory.
++    -T) no_target_directory=true;;
+ 
+-	dsttmp=$dstdir/_inst.$$_
+-	rmtmp=$dstdir/_rm.$$_
++    --version) echo "$0 $scriptversion"; exit $?;;
+ 
+-# Trap to clean up temp files at exit.
++    --)	shift
++	break;;
+ 
+-	trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
+-	trap '(exit $?); exit' 1 2 13 15
++    -*)	echo "$0: invalid option: $1" >&2
++	exit 1;;
+ 
+-# Move or copy the file name to the temp name
++    *)  break;;
++  esac
++  shift
++done
+ 
+-	$doit $instcmd "$src" "$dsttmp" &&
++if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
++  # When -d is used, all remaining arguments are directories to create.
++  # When -t is used, the destination is already specified.
++  # Otherwise, the last argument is the destination.  Remove it from $@.
++  for arg
++  do
++    if test -n "$dst_arg"; then
++      # $@ is not empty: it contains at least $arg.
++      set fnord "$@" "$dst_arg"
++      shift # fnord
++    fi
++    shift # arg
++    dst_arg=$arg
++  done
++fi
+ 
+-# and set any options; do chmod last to preserve setuid bits
++if test $# -eq 0; then
++  if test -z "$dir_arg"; then
++    echo "$0: no input file specified." >&2
++    exit 1
++  fi
++  # It's OK to call `install-sh -d' without argument.
++  # This can happen when creating conditional directories.
++  exit 0
++fi
+ 
+-# If any of these fail, we abort the whole thing.  If we want to
+-# ignore errors from any of these, just make sure not to ignore
+-# errors from the above "$doit $instcmd $src $dsttmp" command.
++if test -z "$dir_arg"; then
++  trap '(exit $?); exit' 1 2 13 15
+ 
+-	if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi &&
+-	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi &&
+-	if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi &&
+-	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi &&
++  # Set umask so as not to create temps with too-generous modes.
++  # However, 'strip' requires both read and write access to temps.
++  case $mode in
++    # Optimize common cases.
++    *644) cp_umask=133;;
++    *755) cp_umask=22;;
++
++    *[0-7])
++      if test -z "$stripcmd"; then
++	u_plus_rw=
++      else
++	u_plus_rw='% 200'
++      fi
++      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
++    *)
++      if test -z "$stripcmd"; then
++	u_plus_rw=
++      else
++	u_plus_rw=,u+rw
++      fi
++      cp_umask=$mode$u_plus_rw;;
++  esac
++fi
+ 
+-# Now remove or move aside any old file at destination location.  We try this
+-# two ways since rm can't unlink itself on some systems and the destination
+-# file might be busy for other reasons.  In this case, the final cleanup
+-# might fail but the new file should still install successfully.
++for src
++do
++  # Protect names starting with `-'.
++  case $src in
++    -*) src=./$src;;
++  esac
++
++  if test -n "$dir_arg"; then
++    dst=$src
++    dstdir=$dst
++    test -d "$dstdir"
++    dstdir_status=$?
++  else
++
++    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
++    # might cause directories to be created, which would be especially bad
++    # if $src (and thus $dsttmp) contains '*'.
++    if test ! -f "$src" && test ! -d "$src"; then
++      echo "$0: $src does not exist." >&2
++      exit 1
++    fi
++
++    if test -z "$dst_arg"; then
++      echo "$0: no destination specified." >&2
++      exit 1
++    fi
++
++    dst=$dst_arg
++    # Protect names starting with `-'.
++    case $dst in
++      -*) dst=./$dst;;
++    esac
+ 
+-{
+-	if [ -f "$dstdir/$dstfile" ]
+-	then
+-		$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null ||
+-		$doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null ||
+-		{
+-		  echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
+-		  (exit 1); exit
+-		}
++    # If destination is a directory, append the input filename; won't work
++    # if double slashes aren't ignored.
++    if test -d "$dst"; then
++      if test -n "$no_target_directory"; then
++	echo "$0: $dst_arg: Is a directory" >&2
++	exit 1
++      fi
++      dstdir=$dst
++      dst=$dstdir/`basename "$src"`
++      dstdir_status=0
++    else
++      # Prefer dirname, but fall back on a substitute if dirname fails.
++      dstdir=`
++	(dirname "$dst") 2>/dev/null ||
++	expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++	     X"$dst" : 'X\(//\)[^/]' \| \
++	     X"$dst" : 'X\(//\)$' \| \
++	     X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
++	echo X"$dst" |
++	    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
++		   s//\1/
++		   q
++		 }
++		 /^X\(\/\/\)[^/].*/{
++		   s//\1/
++		   q
++		 }
++		 /^X\(\/\/\)$/{
++		   s//\1/
++		   q
++		 }
++		 /^X\(\/\).*/{
++		   s//\1/
++		   q
++		 }
++		 s/.*/./; q'
++      `
++
++      test -d "$dstdir"
++      dstdir_status=$?
++    fi
++  fi
++
++  obsolete_mkdir_used=false
++
++  if test $dstdir_status != 0; then
++    case $posix_mkdir in
++      '')
++	# Create intermediate dirs using mode 755 as modified by the umask.
++	# This is like FreeBSD 'install' as of 1997-10-28.
++	umask=`umask`
++	case $stripcmd.$umask in
++	  # Optimize common cases.
++	  *[2367][2367]) mkdir_umask=$umask;;
++	  .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
++
++	  *[0-7])
++	    mkdir_umask=`expr $umask + 22 \
++	      - $umask % 100 % 40 + $umask % 20 \
++	      - $umask % 10 % 4 + $umask % 2
++	    `;;
++	  *) mkdir_umask=$umask,go-w;;
++	esac
++
++	# With -d, create the new directory with the user-specified mode.
++	# Otherwise, rely on $mkdir_umask.
++	if test -n "$dir_arg"; then
++	  mkdir_mode=-m$mode
+ 	else
+-		:
++	  mkdir_mode=
+ 	fi
+-} &&
+ 
+-# Now rename the file to the real destination.
++	posix_mkdir=false
++	case $umask in
++	  *[123567][0-7][0-7])
++	    # POSIX mkdir -p sets u+wx bits regardless of umask, which
++	    # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
++	    ;;
++	  *)
++	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
++	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
++
++	    if (umask $mkdir_umask &&
++		exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
++	    then
++	      if test -z "$dir_arg" || {
++		   # Check for POSIX incompatibilities with -m.
++		   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
++		   # other-writeable bit of parent directory when it shouldn't.
++		   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
++		   ls_ld_tmpdir=`ls -ld "$tmpdir"`
++		   case $ls_ld_tmpdir in
++		     d????-?r-*) different_mode=700;;
++		     d????-?--*) different_mode=755;;
++		     *) false;;
++		   esac &&
++		   $mkdirprog -m$different_mode -p -- "$tmpdir" && {
++		     ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
++		     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
++		   }
++		 }
++	      then posix_mkdir=:
++	      fi
++	      rmdir "$tmpdir/d" "$tmpdir"
++	    else
++	      # Remove any dirs left behind by ancient mkdir implementations.
++	      rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
++	    fi
++	    trap '' 0;;
++	esac;;
++    esac
+ 
+-	$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
++    if
++      $posix_mkdir && (
++	umask $mkdir_umask &&
++	$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
++      )
++    then :
++    else
++
++      # The umask is ridiculous, or mkdir does not conform to POSIX,
++      # or it failed possibly due to a race condition.  Create the
++      # directory the slow way, step by step, checking for races as we go.
++
++      case $dstdir in
++	/*) prefix='/';;
++	-*) prefix='./';;
++	*)  prefix='';;
++      esac
++
++      eval "$initialize_posix_glob"
++
++      oIFS=$IFS
++      IFS=/
++      $posix_glob set -f
++      set fnord $dstdir
++      shift
++      $posix_glob set +f
++      IFS=$oIFS
++
++      prefixes=
++
++      for d
++      do
++	test -z "$d" && continue
++
++	prefix=$prefix$d
++	if test -d "$prefix"; then
++	  prefixes=
++	else
++	  if $posix_mkdir; then
++	    (umask=$mkdir_umask &&
++	     $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
++	    # Don't fail if two instances are running concurrently.
++	    test -d "$prefix" || exit 1
++	  else
++	    case $prefix in
++	      *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
++	      *) qprefix=$prefix;;
++	    esac
++	    prefixes="$prefixes '$qprefix'"
++	  fi
++	fi
++	prefix=$prefix/
++      done
+ 
+-fi &&
++      if test -n "$prefixes"; then
++	# Don't fail if two instances are running concurrently.
++	(umask $mkdir_umask &&
++	 eval "\$doit_exec \$mkdirprog $prefixes") ||
++	  test -d "$dstdir" || exit 1
++	obsolete_mkdir_used=true
++      fi
++    fi
++  fi
++
++  if test -n "$dir_arg"; then
++    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
++    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
++    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
++      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
++  else
++
++    # Make a couple of temp file names in the proper directory.
++    dsttmp=$dstdir/_inst.$$_
++    rmtmp=$dstdir/_rm.$$_
++
++    # Trap to clean up those temp files at exit.
++    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
++
++    # Copy the file name to the temp name.
++    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
++
++    # and set any options; do chmod last to preserve setuid bits.
++    #
++    # If any of these fail, we abort the whole thing.  If we want to
++    # ignore errors from any of these, just make sure not to ignore
++    # errors from the above "$doit $cpprog $src $dsttmp" command.
++    #
++    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
++    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
++    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
++    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
++
++    # If -C, don't bother to copy if it wouldn't change the file.
++    if $copy_on_change &&
++       old=`LC_ALL=C ls -dlL "$dst"	2>/dev/null` &&
++       new=`LC_ALL=C ls -dlL "$dsttmp"	2>/dev/null` &&
++
++       eval "$initialize_posix_glob" &&
++       $posix_glob set -f &&
++       set X $old && old=:$2:$4:$5:$6 &&
++       set X $new && new=:$2:$4:$5:$6 &&
++       $posix_glob set +f &&
++
++       test "$old" = "$new" &&
++       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
++    then
++      rm -f "$dsttmp"
++    else
++      # Rename the file to the real destination.
++      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
++
++      # The rename failed, perhaps because mv can't rename something else
++      # to itself, or perhaps because mv is so ancient that it does not
++      # support -f.
++      {
++	# Now remove or move aside any old file at destination location.
++	# We try this two ways since rm can't unlink itself on some
++	# systems and the destination file might be busy for other
++	# reasons.  In this case, the final cleanup might fail but the new
++	# file should still install successfully.
++	{
++	  test ! -f "$dst" ||
++	  $doit $rmcmd -f "$dst" 2>/dev/null ||
++	  { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
++	    { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
++	  } ||
++	  { echo "$0: cannot unlink or rename $dst" >&2
++	    (exit 1); exit 1
++	  }
++	} &&
++
++	# Now rename the file to the real destination.
++	$doit $mvcmd "$dsttmp" "$dst"
++      }
++    fi || exit 1
+ 
+-# The final little trick to "correctly" pass the exit status to the exit trap.
++    trap '' 0
++  fi
++done
+ 
+-{
+-	(exit 0); exit
+-}
++# Local variables:
++# eval: (add-hook 'write-file-hooks 'time-stamp)
++# time-stamp-start: "scriptversion="
++# time-stamp-format: "%:y-%02m-%02d.%02H"
++# time-stamp-time-zone: "UTC"
++# time-stamp-end: "; # UTC"
++# End:
+Index: libhdf4-4.2r4/HDF4/bin/ltmain.sh
+===================================================================
+--- libhdf4-4.2r4.orig/HDF4/bin/ltmain.sh	2010-01-14 14:38:52.000000000 +0100
++++ libhdf4-4.2r4/HDF4/bin/ltmain.sh	2010-01-14 14:39:10.000000000 +0100
+@@ -1,6 +1,6 @@
+ # Generated from ltmain.m4sh.
+ 
+-# ltmain.sh (GNU libtool) 2.2.6
++# ltmain.sh (GNU libtool) 2.2.6b
+ # Written by Gordon Matzigkeit <gord at gnu.ai.mit.edu>, 1996
+ 
+ # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
+@@ -65,7 +65,7 @@
+ #       compiler:		$LTCC
+ #       compiler flags:		$LTCFLAGS
+ #       linker:		$LD (gnu? $with_gnu_ld)
+-#       $progname:		(GNU libtool) 2.2.6
++#       $progname:		(GNU libtool) 2.2.6b Debian-2.2.6b-2
+ #       automake:		$automake_version
+ #       autoconf:		$autoconf_version
+ #
+@@ -73,9 +73,9 @@
+ 
+ PROGRAM=ltmain.sh
+ PACKAGE=libtool
+-VERSION=2.2.6
++VERSION="2.2.6b Debian-2.2.6b-2"
+ TIMESTAMP=""
+-package_revision=1.3012
++package_revision=1.3017
+ 
+ # Be Bourne compatible
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+@@ -116,15 +116,15 @@
+ 
+ : ${CP="cp -f"}
+ : ${ECHO="echo"}
+-: ${EGREP="/usr/bin/grep -E"}
+-: ${FGREP="/usr/bin/grep -F"}
+-: ${GREP="/usr/bin/grep"}
++: ${EGREP="/bin/grep -E"}
++: ${FGREP="/bin/grep -F"}
++: ${GREP="/bin/grep"}
+ : ${LN_S="ln -s"}
+ : ${MAKE="make"}
+ : ${MKDIR="mkdir"}
+ : ${MV="mv -f"}
+ : ${RM="rm -f"}
+-: ${SED="/opt/local/bin/gsed"}
++: ${SED="/bin/sed"}
+ : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
+ : ${Xsed="$SED -e 1s/^X//"}
+ 
+@@ -5033,7 +5033,10 @@
+ 	case $pass in
+ 	dlopen) libs="$dlfiles" ;;
+ 	dlpreopen) libs="$dlprefiles" ;;
+-	link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
++	link)
++	  libs="$deplibs %DEPLIBS%"
++	  test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
++	  ;;
+ 	esac
+       fi
+       if test "$linkmode,$pass" = "lib,dlpreopen"; then
+@@ -5344,19 +5347,19 @@
+ 	    # It is a libtool convenience library, so add in its objects.
+ 	    convenience="$convenience $ladir/$objdir/$old_library"
+ 	    old_convenience="$old_convenience $ladir/$objdir/$old_library"
++	    tmp_libs=
++	    for deplib in $dependency_libs; do
++	      deplibs="$deplib $deplibs"
++	      if $opt_duplicate_deps ; then
++		case "$tmp_libs " in
++		*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
++		esac
++	      fi
++	      tmp_libs="$tmp_libs $deplib"
++	    done
+ 	  elif test "$linkmode" != prog && test "$linkmode" != lib; then
+ 	    func_fatal_error "\`$lib' is not a convenience library"
+ 	  fi
+-	  tmp_libs=
+-	  for deplib in $dependency_libs; do
+-	    deplibs="$deplib $deplibs"
+-	    if $opt_duplicate_deps ; then
+-	      case "$tmp_libs " in
+-	      *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+-	      esac
+-	    fi
+-	    tmp_libs="$tmp_libs $deplib"
+-	  done
+ 	  continue
+ 	fi # $pass = conv
+ 
+@@ -5893,6 +5896,7 @@
+ 	  if test "$link_all_deplibs" != no; then
+ 	    # Add the search paths of all dependency libraries
+ 	    for deplib in $dependency_libs; do
++	      path=
+ 	      case $deplib in
+ 	      -L*) path="$deplib" ;;
+ 	      *.la)
+@@ -6206,6 +6210,9 @@
+ 	    revision="$number_minor"
+ 	    lt_irix_increment=no
+ 	    ;;
++	  *)
++	    func_fatal_configuration "$modename: unknown library version type \`$version_type'"
++	    ;;
+ 	  esac
+ 	  ;;
+ 	no)
+Index: libhdf4-4.2r4/HDF4/bin/missing
+===================================================================
+--- libhdf4-4.2r4.orig/HDF4/bin/missing	2010-01-14 14:38:52.000000000 +0100
++++ libhdf4-4.2r4/HDF4/bin/missing	2010-01-14 14:39:17.000000000 +0100
+@@ -1,6 +1,10 @@
+ #! /bin/sh
+ # Common stub for a few missing GNU programs while installing.
+-# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
++
++scriptversion=2009-04-28.21; # UTC
++
++# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
++# 2008, 2009 Free Software Foundation, Inc.
+ # Originally by Fran,cois Pinard <pinard at iro.umontreal.ca>, 1996.
+ 
+ # This program is free software; you can redistribute it and/or modify
+@@ -14,9 +18,7 @@
+ # GNU General Public License for more details.
+ 
+ # You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ 
+ # As a special exception to the GNU General Public License, if you
+ # distribute this file as part of a program that contains a
+@@ -29,6 +31,8 @@
+ fi
+ 
+ run=:
++sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
++sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+ 
+ # In the cases where this matters, `missing' is being run in the
+ # srcdir already.
+@@ -38,18 +42,24 @@
+   configure_ac=configure.in
+ fi
+ 
+-case "$1" in
++msg="missing on your system"
++
++case $1 in
+ --run)
+   # Try to run requested program, and just exit if it succeeds.
+   run=
+   shift
+   "$@" && exit 0
++  # Exit code 63 means version mismatch.  This often happens
++  # when the user try to use an ancient version of a tool on
++  # a file that requires a minimum version.  In this case we
++  # we should proceed has if the program had been absent, or
++  # if --run hadn't been passed.
++  if test $? = 63; then
++    run=:
++    msg="probably too old"
++  fi
+   ;;
+-esac
+-
+-# If it does not exist, or fails to run (possibly an outdated version),
+-# try to emulate it.
+-case "$1" in
+ 
+   -h|--h|--he|--hel|--help)
+     echo "\
+@@ -67,6 +77,7 @@
+   aclocal      touch file \`aclocal.m4'
+   autoconf     touch file \`configure'
+   autoheader   touch file \`config.h.in'
++  autom4te     touch the output file, or create a stub one
+   automake     touch all \`Makefile.in' files
+   bison        create \`y.tab.[ch]', if possible, from existing .[ch]
+   flex         create \`lex.yy.c', if possible, from existing .c
+@@ -74,11 +85,18 @@
+   lex          create \`lex.yy.c', if possible, from existing .c
+   makeinfo     touch the output file
+   tar          try tar, gnutar, gtar, then tar without non-portable flags
+-  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]"
++  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
++
++Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
++\`g' are ignored when checking the name.
++
++Send bug reports to <bug-automake at gnu.org>."
++    exit $?
+     ;;
+ 
+   -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+-    echo "missing 0.4 - GNU automake"
++    echo "missing $scriptversion (GNU Automake)"
++    exit $?
+     ;;
+ 
+   -*)
+@@ -87,42 +105,69 @@
+     exit 1
+     ;;
+ 
+-  aclocal*)
++esac
++
++# normalize program name to check for.
++program=`echo "$1" | sed '
++  s/^gnu-//; t
++  s/^gnu//; t
++  s/^g//; t'`
++
++# Now exit if we have it, but it failed.  Also exit now if we
++# don't have it and --version was passed (most likely to detect
++# the program).  This is about non-GNU programs, so use $1 not
++# $program.
++case $1 in
++  lex*|yacc*)
++    # Not GNU programs, they don't have --version.
++    ;;
++
++  tar*)
++    if test -n "$run"; then
++       echo 1>&2 "ERROR: \`tar' requires --run"
++       exit 1
++    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
++       exit 1
++    fi
++    ;;
++
++  *)
+     if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+        # We have it, but it failed.
+        exit 1
++    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
++       # Could not run --version or --help.  This is probably someone
++       # running `$TOOL --version' or `$TOOL --help' to check whether
++       # $TOOL exists and not knowing $TOOL uses missing.
++       exit 1
+     fi
++    ;;
++esac
+ 
++# If it does not exist, or fails to run (possibly an outdated version),
++# try to emulate it.
++case $program in
++  aclocal*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
+          to install the \`Automake' and \`Perl' packages.  Grab them from
+          any GNU archive site."
+     touch aclocal.m4
+     ;;
+ 
+-  autoconf)
+-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+-       # We have it, but it failed.
+-       exit 1
+-    fi
+-
++  autoconf*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified \`${configure_ac}'.  You might want to install the
+          \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
+          archive site."
+     touch configure
+     ;;
+ 
+-  autoheader)
+-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+-       # We have it, but it failed.
+-       exit 1
+-    fi
+-
++  autoheader*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified \`acconfig.h' or \`${configure_ac}'.  You might want
+          to install the \`Autoconf' and \`GNU m4' packages.  Grab them
+          from any GNU archive site."
+@@ -130,7 +175,7 @@
+     test -z "$files" && files="config.h"
+     touch_files=
+     for f in $files; do
+-      case "$f" in
++      case $f in
+       *:*) touch_files="$touch_files "`echo "$f" |
+ 				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+       *) touch_files="$touch_files $f.in";;
+@@ -140,13 +185,8 @@
+     ;;
+ 
+   automake*)
+-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+-       # We have it, but it failed.
+-       exit 1
+-    fi
+-
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+          You might want to install the \`Automake' and \`Perl' packages.
+          Grab them from any GNU archive site."
+@@ -155,21 +195,16 @@
+ 	   while read f; do touch "$f"; done
+     ;;
+ 
+-  autom4te)
+-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+-       # We have it, but it failed.
+-       exit 1
+-    fi
+-
++  autom4te*)
+     echo 1>&2 "\
+-WARNING: \`$1' is needed, and you do not seem to have it handy on your
+-         system.  You might have modified some files without having the
++WARNING: \`$1' is needed, but is $msg.
++         You might have modified some files without having the
+          proper tools for further handling them.
+-         You can get \`$1Help2man' as part of \`Autoconf' from any GNU
++         You can get \`$1' as part of \`Autoconf' from any GNU
+          archive site."
+ 
+-    file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
+-    test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
++    file=`echo "$*" | sed -n "$sed_output"`
++    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+     if test -f "$file"; then
+ 	touch $file
+     else
+@@ -183,111 +218,108 @@
+     fi
+     ;;
+ 
+-  bison|yacc)
++  bison*|yacc*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' $msg.  You should only need it if
+          you modified a \`.y' file.  You may need the \`Bison' package
+          in order for those modifications to take effect.  You can get
+          \`Bison' from any GNU archive site."
+     rm -f y.tab.c y.tab.h
+-    if [ $# -ne 1 ]; then
++    if test $# -ne 1; then
+         eval LASTARG="\${$#}"
+-	case "$LASTARG" in
++	case $LASTARG in
+ 	*.y)
+ 	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+-	    if [ -f "$SRCFILE" ]; then
++	    if test -f "$SRCFILE"; then
+ 	         cp "$SRCFILE" y.tab.c
+ 	    fi
+ 	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+-	    if [ -f "$SRCFILE" ]; then
++	    if test -f "$SRCFILE"; then
+ 	         cp "$SRCFILE" y.tab.h
+ 	    fi
+ 	  ;;
+ 	esac
+     fi
+-    if [ ! -f y.tab.h ]; then
++    if test ! -f y.tab.h; then
+ 	echo >y.tab.h
+     fi
+-    if [ ! -f y.tab.c ]; then
++    if test ! -f y.tab.c; then
+ 	echo 'main() { return 0; }' >y.tab.c
+     fi
+     ;;
+ 
+-  lex|flex)
++  lex*|flex*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified a \`.l' file.  You may need the \`Flex' package
+          in order for those modifications to take effect.  You can get
+          \`Flex' from any GNU archive site."
+     rm -f lex.yy.c
+-    if [ $# -ne 1 ]; then
++    if test $# -ne 1; then
+         eval LASTARG="\${$#}"
+-	case "$LASTARG" in
++	case $LASTARG in
+ 	*.l)
+ 	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+-	    if [ -f "$SRCFILE" ]; then
++	    if test -f "$SRCFILE"; then
+ 	         cp "$SRCFILE" lex.yy.c
+ 	    fi
+ 	  ;;
+ 	esac
+     fi
+-    if [ ! -f lex.yy.c ]; then
++    if test ! -f lex.yy.c; then
+ 	echo 'main() { return 0; }' >lex.yy.c
+     fi
+     ;;
+ 
+-  help2man)
+-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+-       # We have it, but it failed.
+-       exit 1
+-    fi
+-
++  help2man*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+ 	 you modified a dependency of a manual page.  You may need the
+ 	 \`Help2man' package in order for those modifications to take
+ 	 effect.  You can get \`Help2man' from any GNU archive site."
+ 
+-    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
+-    if test -z "$file"; then
+-	file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
+-    fi
+-    if [ -f "$file" ]; then
++    file=`echo "$*" | sed -n "$sed_output"`
++    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
++    if test -f "$file"; then
+ 	touch $file
+     else
+ 	test -z "$file" || exec >$file
+ 	echo ".ab help2man is required to generate this page"
+-	exit 1
++	exit $?
+     fi
+     ;;
+ 
+-  makeinfo)
+-    if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
+-       # We have makeinfo, but it failed.
+-       exit 1
+-    fi
+-
++  makeinfo*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified a \`.texi' or \`.texinfo' file, or any other file
+          indirectly affecting the aspect of the manual.  The spurious
+          call might also be the consequence of using a buggy \`make' (AIX,
+          DU, IRIX).  You might want to install the \`Texinfo' package or
+          the \`GNU make' package.  Grab either from any GNU archive site."
+-    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
++    # The file to touch is that specified with -o ...
++    file=`echo "$*" | sed -n "$sed_output"`
++    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+     if test -z "$file"; then
+-      file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+-      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
+-    fi
++      # ... or it is the one specified with @setfilename ...
++      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
++      file=`sed -n '
++	/^@setfilename/{
++	  s/.* \([^ ]*\) *$/\1/
++	  p
++	  q
++	}' $infile`
++      # ... or it is derived from the source name (dir/f.texi becomes f.info)
++      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
++    fi
++    # If the file does not exist, the user really needs makeinfo;
++    # let's fail without touching anything.
++    test -f $file || exit 1
+     touch $file
+     ;;
+ 
+-  tar)
++  tar*)
+     shift
+-    if test -n "$run"; then
+-      echo 1>&2 "ERROR: \`tar' requires --run"
+-      exit 1
+-    fi
+ 
+     # We have already tried tar in the generic part.
+     # Look for gnutar/gtar before invocation to avoid ugly error
+@@ -300,13 +332,13 @@
+     fi
+     firstarg="$1"
+     if shift; then
+-	case "$firstarg" in
++	case $firstarg in
+ 	*o*)
+ 	    firstarg=`echo "$firstarg" | sed s/o//`
+ 	    tar "$firstarg" "$@" && exit 0
+ 	    ;;
+ 	esac
+-	case "$firstarg" in
++	case $firstarg in
+ 	*h*)
+ 	    firstarg=`echo "$firstarg" | sed s/h//`
+ 	    tar "$firstarg" "$@" && exit 0
+@@ -323,10 +355,10 @@
+ 
+   *)
+     echo 1>&2 "\
+-WARNING: \`$1' is needed, and you do not seem to have it handy on your
+-         system.  You might have modified some files without having the
++WARNING: \`$1' is needed, and is $msg.
++         You might have modified some files without having the
+          proper tools for further handling them.  Check the \`README' file,
+-         it often tells you about the needed prerequirements for installing
++         it often tells you about the needed prerequisites for installing
+          this package.  You may also peek at any GNU archive site, in case
+          some other package would contain this missing \`$1' program."
+     exit 1
+@@ -334,3 +366,11 @@
+ esac
+ 
+ exit 0
++
++# Local variables:
++# eval: (add-hook 'write-file-hooks 'time-stamp)
++# time-stamp-start: "scriptversion="
++# time-stamp-format: "%:y-%02m-%02d.%02H"
++# time-stamp-time-zone: "UTC"
++# time-stamp-end: "; # UTC"
++# End:
+Index: libhdf4-4.2r4/HDF4/bin/mkinstalldirs
+===================================================================
+--- libhdf4-4.2r4.orig/HDF4/bin/mkinstalldirs	2010-01-14 14:38:52.000000000 +0100
++++ libhdf4-4.2r4/HDF4/bin/mkinstalldirs	2010-01-14 14:39:20.000000000 +0100
+@@ -1,21 +1,36 @@
+ #! /bin/sh
+ # mkinstalldirs --- make directory hierarchy
+-# Author: Noah Friedman <friedman at prep.ai.mit.edu>
+-# Created: 1993-05-16
+-# Public domain
+ 
++scriptversion=2009-04-28.21; # UTC
++
++# Original author: Noah Friedman <friedman at prep.ai.mit.edu>
++# Created: 1993-05-16
++# Public domain.
++#
++# This file is maintained in Automake, please report
++# bugs to <bug-automake at gnu.org> or send patches to
++# <automake-patches at gnu.org>.
++
++nl='
++'
++IFS=" ""	$nl"
+ errstatus=0
+-dirmode=""
++dirmode=
+ 
+ usage="\
+-Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
++Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
++
++Create each directory DIR (with mode MODE, if specified), including all
++leading file name components.
++
++Report bugs to <bug-automake at gnu.org>."
+ 
+ # process command line arguments
+ while test $# -gt 0 ; do
+   case $1 in
+     -h | --help | --h*)         # -h for help
+-      echo "$usage" 1>&2
+-      exit 0
++      echo "$usage"
++      exit $?
+       ;;
+     -m)                         # -m PERM arg
+       shift
+@@ -23,6 +38,10 @@
+       dirmode=$1
+       shift
+       ;;
++    --version)
++      echo "$0 $scriptversion"
++      exit $?
++      ;;
+     --)                         # stop option processing
+       shift
+       break
+@@ -50,30 +69,58 @@
+   0) exit 0 ;;
+ esac
+ 
++# Solaris 8's mkdir -p isn't thread-safe.  If you mkdir -p a/b and
++# mkdir -p a/c at the same time, both will detect that a is missing,
++# one will create a, then the other will try to create a and die with
++# a "File exists" error.  This is a problem when calling mkinstalldirs
++# from a parallel make.  We use --version in the probe to restrict
++# ourselves to GNU mkdir, which is thread-safe.
+ case $dirmode in
+   '')
+-    if mkdir -p -- . 2>/dev/null; then
++    if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
+       echo "mkdir -p -- $*"
+       exec mkdir -p -- "$@"
++    else
++      # On NextStep and OpenStep, the `mkdir' command does not
++      # recognize any option.  It will interpret all options as
++      # directories to create, and then abort because `.' already
++      # exists.
++      test -d ./-p && rmdir ./-p
++      test -d ./--version && rmdir ./--version
+     fi
+     ;;
+   *)
+-    if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
++    if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
++       test ! -d ./--version; then
+       echo "mkdir -m $dirmode -p -- $*"
+       exec mkdir -m "$dirmode" -p -- "$@"
++    else
++      # Clean up after NextStep and OpenStep mkdir.
++      for d in ./-m ./-p ./--version "./$dirmode";
++      do
++        test -d $d && rmdir $d
++      done
+     fi
+     ;;
+ esac
+ 
+ for file
+ do
+-  set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
++  case $file in
++    /*) pathcomp=/ ;;
++    *)  pathcomp= ;;
++  esac
++  oIFS=$IFS
++  IFS=/
++  set fnord $file
+   shift
++  IFS=$oIFS
+ 
+-  pathcomp=
+   for d
+   do
+-    pathcomp="$pathcomp$d"
++    test "x$d" = x && continue
++
++    pathcomp=$pathcomp$d
+     case $pathcomp in
+       -*) pathcomp=./$pathcomp ;;
+     esac
+@@ -84,21 +131,21 @@
+       mkdir "$pathcomp" || lasterr=$?
+ 
+       if test ! -d "$pathcomp"; then
+-  	errstatus=$lasterr
++	errstatus=$lasterr
+       else
+-  	if test ! -z "$dirmode"; then
++	if test ! -z "$dirmode"; then
+ 	  echo "chmod $dirmode $pathcomp"
+-    	  lasterr=""
+-  	  chmod "$dirmode" "$pathcomp" || lasterr=$?
++	  lasterr=
++	  chmod "$dirmode" "$pathcomp" || lasterr=$?
+ 
+-  	  if test ! -z "$lasterr"; then
+-  	    errstatus=$lasterr
+-  	  fi
+-  	fi
++	  if test ! -z "$lasterr"; then
++	    errstatus=$lasterr
++	  fi
++	fi
+       fi
+     fi
+ 
+-    pathcomp="$pathcomp/"
++    pathcomp=$pathcomp/
+   done
+ done
+ 
+@@ -107,5 +154,9 @@
+ # Local Variables:
+ # mode: shell-script
+ # sh-indentation: 2
++# eval: (add-hook 'write-file-hooks 'time-stamp)
++# time-stamp-start: "scriptversion="
++# time-stamp-format: "%:y-%02m-%02d.%02H"
++# time-stamp-time-zone: "UTC"
++# time-stamp-end: "; # UTC"
+ # End:
+-# mkinstalldirs ends here

Modified: packages/libhdf4/trunk/debian/patches/shared_fortran
===================================================================
--- packages/libhdf4/trunk/debian/patches/shared_fortran	2010-01-14 12:34:48 UTC (rev 2656)
+++ packages/libhdf4/trunk/debian/patches/shared_fortran	2010-01-14 13:43:47 UTC (rev 2657)
@@ -1,7 +1,7 @@
 Index: libhdf4-4.2r4/HDF4/aclocal.m4
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/aclocal.m4	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/aclocal.m4	2010-01-14 13:33:26.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/aclocal.m4	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/aclocal.m4	2010-01-14 14:40:38.000000000 +0100
 @@ -1,7 +1,7 @@
 -# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 +# generated automatically by aclocal 1.11 -*- Autoconf -*-
@@ -13584,8 +13584,8 @@
  
 Index: libhdf4-4.2r4/HDF4/configure
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/configure	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/configure	2010-01-14 13:33:28.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/configure	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/configure	2010-01-14 14:40:41.000000000 +0100
 @@ -1,63 +1,86 @@
  #! /bin/sh
  # From configure.ac Id: configure.ac 5143 2009-01-13 21:13:49Z epourmal .
@@ -37071,8 +37071,8 @@
  
 Index: libhdf4-4.2r4/HDF4/configure.ac
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/configure.ac	2010-01-14 13:18:39.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/configure.ac	2010-01-14 13:31:48.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/configure.ac	2010-01-14 14:38:42.000000000 +0100
++++ libhdf4-4.2r4/HDF4/configure.ac	2010-01-14 14:40:14.000000000 +0100
 @@ -190,12 +190,6 @@
      enable_shared="no"
  fi
@@ -37088,8 +37088,8 @@
  AC_PROG_INSTALL
 Index: libhdf4-4.2r4/HDF4/hdf/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/Makefile.in	2010-01-14 13:33:30.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/hdf/Makefile.in	2010-01-14 14:40:43.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -37424,8 +37424,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/src/h4config.h.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in	2010-01-14 13:33:30.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/src/h4config.h.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in	2010-01-14 14:40:42.000000000 +0100
 @@ -1,5 +1,8 @@
  /* hdf/src/h4config.h.in.  Generated from configure.ac by autoheader.  */
  
@@ -37469,7 +37469,7 @@
 Index: libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in~
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in~	2010-01-14 13:31:48.000000000 +0100
++++ libhdf4-4.2r4/HDF4/hdf/src/h4config.h.in~	2010-01-14 14:40:14.000000000 +0100
 @@ -0,0 +1,140 @@
 +/* hdf/src/h4config.h.in.  Generated from configure.ac by autoheader.  */
 +
@@ -37613,8 +37613,8 @@
 +#undef YYTEXT_POINTER
 Index: libhdf4-4.2r4/HDF4/hdf/src/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/src/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/src/Makefile.in	2010-01-14 13:33:31.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/src/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/hdf/src/Makefile.in	2010-01-14 14:40:43.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -37977,8 +37977,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/hdf/test/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/test/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/test/Makefile.in	2010-01-14 13:33:31.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/test/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/hdf/test/Makefile.in	2010-01-14 14:40:43.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -38361,8 +38361,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/hdf/util/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/hdf/util/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/hdf/util/Makefile.in	2010-01-14 13:33:31.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/hdf/util/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/hdf/util/Makefile.in	2010-01-14 14:40:43.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -38754,8 +38754,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/Makefile.in	2010-01-14 13:33:32.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/Makefile.in	2010-01-14 14:40:45.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -39259,8 +39259,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/man/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/man/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/man/Makefile.in	2010-01-14 13:33:31.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/man/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/man/Makefile.in	2010-01-14 14:40:43.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -39537,8 +39537,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/dumper/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/dumper/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/dumper/Makefile.in	2010-01-14 13:33:31.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/dumper/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/dumper/Makefile.in	2010-01-14 14:40:43.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -39861,8 +39861,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/fortran/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/fortran/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/fortran/Makefile.in	2010-01-14 13:33:31.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/fortran/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/fortran/Makefile.in	2010-01-14 14:40:43.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -40157,8 +40157,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/hdfimport/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/hdfimport/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/hdfimport/Makefile.in	2010-01-14 13:33:31.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/hdfimport/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/hdfimport/Makefile.in	2010-01-14 14:40:44.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -40495,8 +40495,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/hdiff/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/hdiff/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/hdiff/Makefile.in	2010-01-14 13:33:31.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/hdiff/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/hdiff/Makefile.in	2010-01-14 14:40:44.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -40831,8 +40831,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/hrepack/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/hrepack/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/hrepack/Makefile.in	2010-01-14 13:33:32.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/hrepack/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/hrepack/Makefile.in	2010-01-14 14:40:44.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -41456,8 +41456,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/libsrc/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/libsrc/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/libsrc/Makefile.in	2010-01-14 13:33:32.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/libsrc/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/libsrc/Makefile.in	2010-01-14 14:40:44.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -41858,8 +41858,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/Makefile.in	2010-01-14 13:33:31.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/Makefile.in	2010-01-14 14:40:43.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -42195,8 +42195,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/ncdump/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/ncdump/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/ncdump/Makefile.in	2010-01-14 13:33:32.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/ncdump/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/ncdump/Makefile.in	2010-01-14 14:40:44.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -42634,8 +42634,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/ncgen/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/ncgen/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/ncgen/Makefile.in	2010-01-14 13:33:32.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/ncgen/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/ncgen/Makefile.in	2010-01-14 14:40:44.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -43087,8 +43087,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/nctest/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/nctest/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/nctest/Makefile.in	2010-01-14 13:33:32.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/nctest/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/nctest/Makefile.in	2010-01-14 14:40:44.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -43471,8 +43471,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/port/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/port/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/port/Makefile.in	2010-01-14 13:33:32.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/port/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/port/Makefile.in	2010-01-14 14:40:44.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -43719,8 +43719,8 @@
  .NOEXPORT:
 Index: libhdf4-4.2r4/HDF4/mfhdf/xdr/Makefile.in
 ===================================================================
---- libhdf4-4.2r4.orig/HDF4/mfhdf/xdr/Makefile.in	2010-01-14 13:31:33.000000000 +0100
-+++ libhdf4-4.2r4/HDF4/mfhdf/xdr/Makefile.in	2010-01-14 13:33:32.000000000 +0100
+--- libhdf4-4.2r4.orig/HDF4/mfhdf/xdr/Makefile.in	2010-01-14 14:40:01.000000000 +0100
++++ libhdf4-4.2r4/HDF4/mfhdf/xdr/Makefile.in	2010-01-14 14:40:45.000000000 +0100
 @@ -1,8 +1,9 @@
 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
 +# Makefile.in generated by automake 1.11 from Makefile.am.
@@ -44196,3 +44196,1880 @@
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
  # Otherwise a system limit (for SysV at least) may be exceeded.
  .NOEXPORT:
+Index: libhdf4-4.2r4/HDF4/bin/depcomp
+===================================================================
+--- libhdf4-4.2r4.orig/HDF4/bin/depcomp	2010-01-14 14:40:22.000000000 +0100
++++ libhdf4-4.2r4/HDF4/bin/depcomp	2010-01-14 14:40:44.000000000 +0100
+@@ -1,7 +1,10 @@
+ #! /bin/sh
+-
+ # depcomp - compile a program generating dependencies as side-effects
+-# Copyright 1999, 2000 Free Software Foundation, Inc.
++
++scriptversion=2009-04-28.21; # UTC
++
++# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
++# Software Foundation, Inc.
+ 
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -14,9 +17,7 @@
+ # GNU General Public License for more details.
+ 
+ # You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ 
+ # As a special exception to the GNU General Public License, if you
+ # distribute this file as part of a program that contains a
+@@ -25,22 +26,45 @@
+ 
+ # Originally written by Alexandre Oliva <oliva at dcc.unicamp.br>.
+ 
++case $1 in
++  '')
++     echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
++     exit 1;
++     ;;
++  -h | --h*)
++    cat <<\EOF
++Usage: depcomp [--help] [--version] PROGRAM [ARGS]
++
++Run PROGRAMS ARGS to compile a file, generating dependencies
++as side-effects.
++
++Environment variables:
++  depmode     Dependency tracking mode.
++  source      Source file read by `PROGRAMS ARGS'.
++  object      Object file output by `PROGRAMS ARGS'.
++  DEPDIR      directory where to store dependencies.
++  depfile     Dependency file to output.
++  tmpdepfile  Temporary file to use when outputing dependencies.
++  libtool     Whether libtool is used (yes/no).
++
++Report bugs to <bug-automake at gnu.org>.
++EOF
++    exit $?
++    ;;
++  -v | --v*)
++    echo "depcomp $scriptversion"
++    exit $?
++    ;;
++esac
++
+ if test -z "$depmode" || test -z "$source" || test -z "$object"; then
+   echo "depcomp: Variables source, object and depmode must be set" 1>&2
+   exit 1
+ fi
+-# `libtool' can also be set to `yes' or `no'.
+-
+-if test -z "$depfile"; then
+-   base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
+-   dir=`echo "$object" | sed 's,/.*$,/,'`
+-   if test "$dir" = "$object"; then
+-      dir=
+-   fi
+-   # FIXME: should be _deps on DOS.
+-   depfile="$dir.deps/$base"
+-fi
+ 
++# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
++depfile=${depfile-`echo "$object" |
++  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
+ tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
+ 
+ rm -f "$tmpdepfile"
+@@ -61,12 +85,34 @@
+    depmode=dashmstdout
+ fi
+ 
++cygpath_u="cygpath -u -f -"
++if test "$depmode" = msvcmsys; then
++   # This is just like msvisualcpp but w/o cygpath translation.
++   # Just convert the backslash-escaped backslashes to single forward
++   # slashes to satisfy depend.m4
++   cygpath_u="sed s,\\\\\\\\,/,g"
++   depmode=msvisualcpp
++fi
++
+ case "$depmode" in
+ gcc3)
+ ## gcc 3 implements dependency tracking that does exactly what
+ ## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
+ ## it if -MD -MP comes after the -MF stuff.  Hmm.
+-  "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
++## Unfortunately, FreeBSD c89 acceptance of flags depends upon
++## the command line argument order; so add the flags where they
++## appear in depend2.am.  Note that the slowdown incurred here
++## affects only configure: in makefiles, %FASTDEP% shortcuts this.
++  for arg
++  do
++    case $arg in
++    -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
++    *)  set fnord "$@" "$arg" ;;
++    esac
++    shift # fnord
++    shift # $arg
++  done
++  "$@"
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+@@ -153,14 +199,14 @@
+ ' < "$tmpdepfile" \
+     | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
+     tr '
+-' ' ' >> $depfile
+-    echo >> $depfile
++' ' ' >> "$depfile"
++    echo >> "$depfile"
+ 
+     # The second pass generates a dummy entry for each header file.
+     tr ' ' '
+ ' < "$tmpdepfile" \
+    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+-   >> $depfile
++   >> "$depfile"
+   else
+     # The sourcefile does not contain any dependencies, so just
+     # store a dummy comment line, to avoid errors with the Makefile
+@@ -172,31 +218,43 @@
+ 
+ aix)
+   # The C for AIX Compiler uses -M and outputs the dependencies
+-  # in a .u file.  This file always lives in the current directory.
+-  # Also, the AIX compiler puts `$object:' at the start of each line;
+-  # $object doesn't have directory information.
+-  stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
+-  tmpdepfile="$stripped.u"
+-  outname="$stripped.o"
++  # in a .u file.  In older versions, this file always lives in the
++  # current directory.  Also, the AIX compiler puts `$object:' at the
++  # start of each line; $object doesn't have directory information.
++  # Version 6 uses the directory in both cases.
++  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
++  test "x$dir" = "x$object" && dir=
++  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+   if test "$libtool" = yes; then
++    tmpdepfile1=$dir$base.u
++    tmpdepfile2=$base.u
++    tmpdepfile3=$dir.libs/$base.u
+     "$@" -Wc,-M
+   else
++    tmpdepfile1=$dir$base.u
++    tmpdepfile2=$dir$base.u
++    tmpdepfile3=$dir$base.u
+     "$@" -M
+   fi
+-
+   stat=$?
++
+   if test $stat -eq 0; then :
+   else
+-    rm -f "$tmpdepfile"
++    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+     exit $stat
+   fi
+ 
++  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
++  do
++    test -f "$tmpdepfile" && break
++  done
+   if test -f "$tmpdepfile"; then
+     # Each line is of the form `foo.o: dependent.h'.
+     # Do two passes, one to just change these to
+     # `$object: dependent.h' and one to simply `dependent.h:'.
+-    sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
+-    sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
++    sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
++    # That's a tab and a space in the [].
++    sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+   else
+     # The sourcefile does not contain any dependencies, so just
+     # store a dummy comment line, to avoid errors with the Makefile
+@@ -244,6 +302,51 @@
+   rm -f "$tmpdepfile"
+   ;;
+ 
++hp2)
++  # The "hp" stanza above does not work with aCC (C++) and HP's ia64
++  # compilers, which have integrated preprocessors.  The correct option
++  # to use with these is +Maked; it writes dependencies to a file named
++  # 'foo.d', which lands next to the object file, wherever that
++  # happens to be.
++  # Much of this is similar to the tru64 case; see comments there.
++  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
++  test "x$dir" = "x$object" && dir=
++  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
++  if test "$libtool" = yes; then
++    tmpdepfile1=$dir$base.d
++    tmpdepfile2=$dir.libs/$base.d
++    "$@" -Wc,+Maked
++  else
++    tmpdepfile1=$dir$base.d
++    tmpdepfile2=$dir$base.d
++    "$@" +Maked
++  fi
++  stat=$?
++  if test $stat -eq 0; then :
++  else
++     rm -f "$tmpdepfile1" "$tmpdepfile2"
++     exit $stat
++  fi
++
++  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
++  do
++    test -f "$tmpdepfile" && break
++  done
++  if test -f "$tmpdepfile"; then
++    sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
++    # Add `dependent.h:' lines.
++    sed -ne '2,${
++	       s/^ *//
++	       s/ \\*$//
++	       s/$/:/
++	       p
++	     }' "$tmpdepfile" >> "$depfile"
++  else
++    echo "#dummy" > "$depfile"
++  fi
++  rm -f "$tmpdepfile" "$tmpdepfile2"
++  ;;
++
+ tru64)
+    # The Tru64 compiler uses -MD to generate dependencies as a side
+    # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
+@@ -255,31 +358,47 @@
+    base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ 
+    if test "$libtool" = yes; then
+-      tmpdepfile1="$dir.libs/$base.lo.d"
+-      tmpdepfile2="$dir.libs/$base.d"
++      # With Tru64 cc, shared objects can also be used to make a
++      # static library.  This mechanism is used in libtool 1.4 series to
++      # handle both shared and static libraries in a single compilation.
++      # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
++      #
++      # With libtool 1.5 this exception was removed, and libtool now
++      # generates 2 separate objects for the 2 libraries.  These two
++      # compilations output dependencies in $dir.libs/$base.o.d and
++      # in $dir$base.o.d.  We have to check for both files, because
++      # one of the two compilations can be disabled.  We should prefer
++      # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
++      # automatically cleaned when .libs/ is deleted, while ignoring
++      # the former would cause a distcleancheck panic.
++      tmpdepfile1=$dir.libs/$base.lo.d   # libtool 1.4
++      tmpdepfile2=$dir$base.o.d          # libtool 1.5
++      tmpdepfile3=$dir.libs/$base.o.d    # libtool 1.5
++      tmpdepfile4=$dir.libs/$base.d      # Compaq CCC V6.2-504
+       "$@" -Wc,-MD
+    else
+-      tmpdepfile1="$dir$base.o.d"
+-      tmpdepfile2="$dir$base.d"
++      tmpdepfile1=$dir$base.o.d
++      tmpdepfile2=$dir$base.d
++      tmpdepfile3=$dir$base.d
++      tmpdepfile4=$dir$base.d
+       "$@" -MD
+    fi
+ 
+    stat=$?
+    if test $stat -eq 0; then :
+    else
+-      rm -f "$tmpdepfile1" "$tmpdepfile2"
++      rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+       exit $stat
+    fi
+ 
+-   if test -f "$tmpdepfile1"; then
+-      tmpdepfile="$tmpdepfile1"
+-   else
+-      tmpdepfile="$tmpdepfile2"
+-   fi
++   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
++   do
++     test -f "$tmpdepfile" && break
++   done
+    if test -f "$tmpdepfile"; then
+       sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+-      # That's a space and a tab in the [].
+-      sed -e 's,^.*\.[a-z]*:[ 	]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
++      # That's a tab and a space in the [].
++      sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+    else
+       echo "#dummy" > "$depfile"
+    fi
+@@ -292,12 +411,12 @@
+ 
+ dashmstdout)
+   # Important note: in order to support this mode, a compiler *must*
+-  # always write the proprocessed file to stdout, regardless of -o.
++  # always write the preprocessed file to stdout, regardless of -o.
+   "$@" || exit $?
+ 
+   # Remove the call to Libtool.
+   if test "$libtool" = yes; then
+-    while test $1 != '--mode=compile'; do
++    while test "X$1" != 'X--mode=compile'; do
+       shift
+     done
+     shift
+@@ -348,32 +467,39 @@
+   "$@" || exit $?
+   # Remove any Libtool call
+   if test "$libtool" = yes; then
+-    while test $1 != '--mode=compile'; do
++    while test "X$1" != 'X--mode=compile'; do
+       shift
+     done
+     shift
+   fi
+   # X makedepend
+   shift
+-  cleared=no
+-  for arg in "$@"; do
++  cleared=no eat=no
++  for arg
++  do
+     case $cleared in
+     no)
+       set ""; shift
+       cleared=yes ;;
+     esac
++    if test $eat = yes; then
++      eat=no
++      continue
++    fi
+     case "$arg" in
+     -D*|-I*)
+       set fnord "$@" "$arg"; shift ;;
+     # Strip any option that makedepend may not understand.  Remove
+     # the object too, otherwise makedepend will parse it as a source file.
++    -arch)
++      eat=yes ;;
+     -*|$object)
+       ;;
+     *)
+       set fnord "$@" "$arg"; shift ;;
+     esac
+   done
+-  obj_suffix="`echo $object | sed 's/^.*\././'`"
++  obj_suffix=`echo "$object" | sed 's/^.*\././'`
+   touch "$tmpdepfile"
+   ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
+   rm -f "$depfile"
+@@ -388,12 +514,12 @@
+ 
+ cpp)
+   # Important note: in order to support this mode, a compiler *must*
+-  # always write the proprocessed file to stdout.
++  # always write the preprocessed file to stdout.
+   "$@" || exit $?
+ 
+   # Remove the call to Libtool.
+   if test "$libtool" = yes; then
+-    while test $1 != '--mode=compile'; do
++    while test "X$1" != 'X--mode=compile'; do
+       shift
+     done
+     shift
+@@ -419,7 +545,8 @@
+   done
+ 
+   "$@" -E |
+-    sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
++    sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
++       -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
+     sed '$ s: \\$::' > "$tmpdepfile"
+   rm -f "$depfile"
+   echo "$object : \\" > "$depfile"
+@@ -430,13 +557,27 @@
+ 
+ msvisualcpp)
+   # Important note: in order to support this mode, a compiler *must*
+-  # always write the proprocessed file to stdout, regardless of -o,
+-  # because we must use -o when running libtool.
++  # always write the preprocessed file to stdout.
+   "$@" || exit $?
++
++  # Remove the call to Libtool.
++  if test "$libtool" = yes; then
++    while test "X$1" != 'X--mode=compile'; do
++      shift
++    done
++    shift
++  fi
++
+   IFS=" "
+   for arg
+   do
+     case "$arg" in
++    -o)
++      shift
++      ;;
++    $object)
++      shift
++      ;;
+     "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
+ 	set fnord "$@"
+ 	shift
+@@ -449,16 +590,23 @@
+ 	;;
+     esac
+   done
+-  "$@" -E |
+-  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
++  "$@" -E 2>/dev/null |
++  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
+   rm -f "$depfile"
+   echo "$object : \\" > "$depfile"
+-  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::	\1 \\:p' >> "$depfile"
++  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::	\1 \\:p' >> "$depfile"
+   echo "	" >> "$depfile"
+-  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
++  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
+   rm -f "$tmpdepfile"
+   ;;
+ 
++msvcmsys)
++  # This case exists only to let depend.m4 do its work.  It works by
++  # looking at the text of this script.  This case will never be run,
++  # since it is checked for above.
++  exit 1
++  ;;
++
+ none)
+   exec "$@"
+   ;;
+@@ -470,3 +618,13 @@
+ esac
+ 
+ exit 0
++
++# Local Variables:
++# mode: shell-script
++# sh-indentation: 2
++# eval: (add-hook 'write-file-hooks 'time-stamp)
++# time-stamp-start: "scriptversion="
++# time-stamp-format: "%:y-%02m-%02d.%02H"
++# time-stamp-time-zone: "UTC"
++# time-stamp-end: "; # UTC"
++# End:
+Index: libhdf4-4.2r4/HDF4/bin/install-sh
+===================================================================
+--- libhdf4-4.2r4.orig/HDF4/bin/install-sh	2010-01-14 14:40:22.000000000 +0100
++++ libhdf4-4.2r4/HDF4/bin/install-sh	2010-01-14 14:40:43.000000000 +0100
+@@ -1,7 +1,8 @@
+ #!/bin/sh
+-#
+ # install - install a program, script, or datafile
+-#
++
++scriptversion=2009-04-28.21; # UTC
++
+ # This originates from X11R5 (mit/util/scripts/install.sh), which was
+ # later released in X11R6 (xc/config/util/install.sh) with the
+ # following copyright and license.
+@@ -38,257 +39,482 @@
+ # when there is no Makefile.
+ #
+ # This script is compatible with the BSD install script, but was written
+-# from scratch.  It can only install one file at a time, a restriction
+-# shared with many OS's install programs.
++# from scratch.
+ 
++nl='
++'
++IFS=" ""	$nl"
+ 
+ # set DOITPROG to echo to test this script
+ 
+ # Don't use :- since 4.3BSD and earlier shells don't like it.
+-doit="${DOITPROG-}"
+-
++doit=${DOITPROG-}
++if test -z "$doit"; then
++  doit_exec=exec
++else
++  doit_exec=$doit
++fi
+ 
+-# put in absolute paths if you don't have them in your path; or use env. vars.
++# Put in absolute file names if you don't have them in your path;
++# or use environment vars.
+ 
+-mvprog="${MVPROG-mv}"
+-cpprog="${CPPROG-cp}"
+-chmodprog="${CHMODPROG-chmod}"
+-chownprog="${CHOWNPROG-chown}"
+-chgrpprog="${CHGRPPROG-chgrp}"
+-stripprog="${STRIPPROG-strip}"
+-rmprog="${RMPROG-rm}"
+-mkdirprog="${MKDIRPROG-mkdir}"
+-
+-transformbasename=""
+-transform_arg=""
+-instcmd="$mvprog"
+-chmodcmd="$chmodprog 0755"
+-chowncmd=""
+-chgrpcmd=""
+-stripcmd=""
++chgrpprog=${CHGRPPROG-chgrp}
++chmodprog=${CHMODPROG-chmod}
++chownprog=${CHOWNPROG-chown}
++cmpprog=${CMPPROG-cmp}
++cpprog=${CPPROG-cp}
++mkdirprog=${MKDIRPROG-mkdir}
++mvprog=${MVPROG-mv}
++rmprog=${RMPROG-rm}
++stripprog=${STRIPPROG-strip}
++
++posix_glob='?'
++initialize_posix_glob='
++  test "$posix_glob" != "?" || {
++    if (set -f) 2>/dev/null; then
++      posix_glob=
++    else
++      posix_glob=:
++    fi
++  }
++'
++
++posix_mkdir=
++
++# Desired mode of installed file.
++mode=0755
++
++chgrpcmd=
++chmodcmd=$chmodprog
++chowncmd=
++mvcmd=$mvprog
+ rmcmd="$rmprog -f"
+-mvcmd="$mvprog"
+-src=""
+-dst=""
+-dir_arg=""
+-
+-while [ x"$1" != x ]; do
+-    case $1 in
+-	-c) instcmd=$cpprog
+-	    shift
+-	    continue;;
+-
+-	-d) dir_arg=true
+-	    shift
+-	    continue;;
+-
+-	-m) chmodcmd="$chmodprog $2"
+-	    shift
+-	    shift
+-	    continue;;
+-
+-	-o) chowncmd="$chownprog $2"
+-	    shift
+-	    shift
+-	    continue;;
+-
+-	-g) chgrpcmd="$chgrpprog $2"
+-	    shift
+-	    shift
+-	    continue;;
+-
+-	-s) stripcmd=$stripprog
+-	    shift
+-	    continue;;
+-
+-	-t=*) transformarg=`echo $1 | sed 's/-t=//'`
+-	    shift
+-	    continue;;
+-
+-	-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
+-	    shift
+-	    continue;;
++stripcmd=
+ 
+-	*)  if [ x"$src" = x ]
+-	    then
+-		src=$1
+-	    else
+-		# this colon is to work around a 386BSD /bin/sh bug
+-		:
+-		dst=$1
+-	    fi
+-	    shift
+-	    continue;;
+-    esac
+-done
++src=
++dst=
++dir_arg=
++dst_arg=
+ 
+-if [ x"$src" = x ]
+-then
+-	echo "$0: no input file specified" >&2
+-	exit 1
+-else
+-	:
+-fi
++copy_on_change=false
++no_target_directory=
+ 
+-if [ x"$dir_arg" != x ]; then
+-	dst=$src
+-	src=""
+-
+-	if [ -d "$dst" ]; then
+-		instcmd=:
+-		chmodcmd=""
+-	else
+-		instcmd=$mkdirprog
+-	fi
+-else
++usage="\
++Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
++   or: $0 [OPTION]... SRCFILES... DIRECTORY
++   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
++   or: $0 [OPTION]... -d DIRECTORIES...
+ 
+-# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
+-# might cause directories to be created, which would be especially bad
+-# if $src (and thus $dsttmp) contains '*'.
+-
+-	if [ -f "$src" ] || [ -d "$src" ]
+-	then
+-		:
+-	else
+-		echo "$0: $src does not exist" >&2
+-		exit 1
+-	fi
++In the 1st form, copy SRCFILE to DSTFILE.
++In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
++In the 4th, create DIRECTORIES.
+ 
+-	if [ x"$dst" = x ]
+-	then
+-		echo "$0: no destination specified" >&2
+-		exit 1
+-	else
+-		:
+-	fi
++Options:
++     --help     display this help and exit.
++     --version  display version info and exit.
+ 
+-# If destination is a directory, append the input filename; if your system
+-# does not like double slashes in filenames, you may need to add some logic
++  -c            (ignored)
++  -C            install only if different (preserve the last data modification time)
++  -d            create directories instead of installing files.
++  -g GROUP      $chgrpprog installed files to GROUP.
++  -m MODE       $chmodprog installed files to MODE.
++  -o USER       $chownprog installed files to USER.
++  -s            $stripprog installed files.
++  -t DIRECTORY  install into DIRECTORY.
++  -T            report an error if DSTFILE is a directory.
+ 
+-	if [ -d "$dst" ]
+-	then
+-		dst=$dst/`basename "$src"`
+-	else
+-		:
+-	fi
+-fi
++Environment variables override the default commands:
++  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
++  RMPROG STRIPPROG
++"
+ 
+-## this sed command emulates the dirname command
+-dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
++while test $# -ne 0; do
++  case $1 in
++    -c) ;;
+ 
+-# Make sure that the destination directory exists.
+-#  this part is taken from Noah Friedman's mkinstalldirs script
++    -C) copy_on_change=true;;
+ 
+-# Skip lots of stat calls in the usual case.
+-if [ ! -d "$dstdir" ]; then
+-defaultIFS='
+-	'
+-IFS="${IFS-$defaultIFS}"
+-
+-oIFS=$IFS
+-# Some sh's can't handle IFS=/ for some reason.
+-IFS='%'
+-set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
+-IFS=$oIFS
+-
+-pathcomp=''
+-
+-while [ $# -ne 0 ] ; do
+-	pathcomp=$pathcomp$1
+-	shift
+-
+-	if [ ! -d "$pathcomp" ] ;
+-        then
+-		$mkdirprog "$pathcomp"
+-	else
+-		:
+-	fi
++    -d) dir_arg=true;;
+ 
+-	pathcomp=$pathcomp/
+-done
+-fi
++    -g) chgrpcmd="$chgrpprog $2"
++	shift;;
+ 
+-if [ x"$dir_arg" != x ]
+-then
+-	$doit $instcmd "$dst" &&
+-
+-	if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi &&
+-	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi &&
+-	if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi &&
+-	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi
+-else
++    --help) echo "$usage"; exit $?;;
+ 
+-# If we're going to rename the final executable, determine the name now.
++    -m) mode=$2
++	case $mode in
++	  *' '* | *'	'* | *'
++'*	  | *'*'* | *'?'* | *'['*)
++	    echo "$0: invalid mode: $mode" >&2
++	    exit 1;;
++	esac
++	shift;;
+ 
+-	if [ x"$transformarg" = x ]
+-	then
+-		dstfile=`basename "$dst"`
+-	else
+-		dstfile=`basename "$dst" $transformbasename |
+-			sed $transformarg`$transformbasename
+-	fi
++    -o) chowncmd="$chownprog $2"
++	shift;;
+ 
+-# don't allow the sed command to completely eliminate the filename
++    -s) stripcmd=$stripprog;;
+ 
+-	if [ x"$dstfile" = x ]
+-	then
+-		dstfile=`basename "$dst"`
+-	else
+-		:
+-	fi
++    -t) dst_arg=$2
++	shift;;
+ 
+-# Make a couple of temp file names in the proper directory.
++    -T) no_target_directory=true;;
+ 
+-	dsttmp=$dstdir/_inst.$$_
+-	rmtmp=$dstdir/_rm.$$_
++    --version) echo "$0 $scriptversion"; exit $?;;
+ 
+-# Trap to clean up temp files at exit.
++    --)	shift
++	break;;
+ 
+-	trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
+-	trap '(exit $?); exit' 1 2 13 15
++    -*)	echo "$0: invalid option: $1" >&2
++	exit 1;;
+ 
+-# Move or copy the file name to the temp name
++    *)  break;;
++  esac
++  shift
++done
+ 
+-	$doit $instcmd "$src" "$dsttmp" &&
++if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
++  # When -d is used, all remaining arguments are directories to create.
++  # When -t is used, the destination is already specified.
++  # Otherwise, the last argument is the destination.  Remove it from $@.
++  for arg
++  do
++    if test -n "$dst_arg"; then
++      # $@ is not empty: it contains at least $arg.
++      set fnord "$@" "$dst_arg"
++      shift # fnord
++    fi
++    shift # arg
++    dst_arg=$arg
++  done
++fi
+ 
+-# and set any options; do chmod last to preserve setuid bits
++if test $# -eq 0; then
++  if test -z "$dir_arg"; then
++    echo "$0: no input file specified." >&2
++    exit 1
++  fi
++  # It's OK to call `install-sh -d' without argument.
++  # This can happen when creating conditional directories.
++  exit 0
++fi
+ 
+-# If any of these fail, we abort the whole thing.  If we want to
+-# ignore errors from any of these, just make sure not to ignore
+-# errors from the above "$doit $instcmd $src $dsttmp" command.
++if test -z "$dir_arg"; then
++  trap '(exit $?); exit' 1 2 13 15
+ 
+-	if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi &&
+-	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi &&
+-	if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi &&
+-	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi &&
++  # Set umask so as not to create temps with too-generous modes.
++  # However, 'strip' requires both read and write access to temps.
++  case $mode in
++    # Optimize common cases.
++    *644) cp_umask=133;;
++    *755) cp_umask=22;;
++
++    *[0-7])
++      if test -z "$stripcmd"; then
++	u_plus_rw=
++      else
++	u_plus_rw='% 200'
++      fi
++      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
++    *)
++      if test -z "$stripcmd"; then
++	u_plus_rw=
++      else
++	u_plus_rw=,u+rw
++      fi
++      cp_umask=$mode$u_plus_rw;;
++  esac
++fi
+ 
+-# Now remove or move aside any old file at destination location.  We try this
+-# two ways since rm can't unlink itself on some systems and the destination
+-# file might be busy for other reasons.  In this case, the final cleanup
+-# might fail but the new file should still install successfully.
++for src
++do
++  # Protect names starting with `-'.
++  case $src in
++    -*) src=./$src;;
++  esac
++
++  if test -n "$dir_arg"; then
++    dst=$src
++    dstdir=$dst
++    test -d "$dstdir"
++    dstdir_status=$?
++  else
++
++    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
++    # might cause directories to be created, which would be especially bad
++    # if $src (and thus $dsttmp) contains '*'.
++    if test ! -f "$src" && test ! -d "$src"; then
++      echo "$0: $src does not exist." >&2
++      exit 1
++    fi
++
++    if test -z "$dst_arg"; then
++      echo "$0: no destination specified." >&2
++      exit 1
++    fi
++
++    dst=$dst_arg
++    # Protect names starting with `-'.
++    case $dst in
++      -*) dst=./$dst;;
++    esac
+ 
+-{
+-	if [ -f "$dstdir/$dstfile" ]
+-	then
+-		$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null ||
+-		$doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null ||
+-		{
+-		  echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
+-		  (exit 1); exit
+-		}
++    # If destination is a directory, append the input filename; won't work
++    # if double slashes aren't ignored.
++    if test -d "$dst"; then
++      if test -n "$no_target_directory"; then
++	echo "$0: $dst_arg: Is a directory" >&2
++	exit 1
++      fi
++      dstdir=$dst
++      dst=$dstdir/`basename "$src"`
++      dstdir_status=0
++    else
++      # Prefer dirname, but fall back on a substitute if dirname fails.
++      dstdir=`
++	(dirname "$dst") 2>/dev/null ||
++	expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++	     X"$dst" : 'X\(//\)[^/]' \| \
++	     X"$dst" : 'X\(//\)$' \| \
++	     X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
++	echo X"$dst" |
++	    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
++		   s//\1/
++		   q
++		 }
++		 /^X\(\/\/\)[^/].*/{
++		   s//\1/
++		   q
++		 }
++		 /^X\(\/\/\)$/{
++		   s//\1/
++		   q
++		 }
++		 /^X\(\/\).*/{
++		   s//\1/
++		   q
++		 }
++		 s/.*/./; q'
++      `
++
++      test -d "$dstdir"
++      dstdir_status=$?
++    fi
++  fi
++
++  obsolete_mkdir_used=false
++
++  if test $dstdir_status != 0; then
++    case $posix_mkdir in
++      '')
++	# Create intermediate dirs using mode 755 as modified by the umask.
++	# This is like FreeBSD 'install' as of 1997-10-28.
++	umask=`umask`
++	case $stripcmd.$umask in
++	  # Optimize common cases.
++	  *[2367][2367]) mkdir_umask=$umask;;
++	  .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
++
++	  *[0-7])
++	    mkdir_umask=`expr $umask + 22 \
++	      - $umask % 100 % 40 + $umask % 20 \
++	      - $umask % 10 % 4 + $umask % 2
++	    `;;
++	  *) mkdir_umask=$umask,go-w;;
++	esac
++
++	# With -d, create the new directory with the user-specified mode.
++	# Otherwise, rely on $mkdir_umask.
++	if test -n "$dir_arg"; then
++	  mkdir_mode=-m$mode
+ 	else
+-		:
++	  mkdir_mode=
+ 	fi
+-} &&
+ 
+-# Now rename the file to the real destination.
++	posix_mkdir=false
++	case $umask in
++	  *[123567][0-7][0-7])
++	    # POSIX mkdir -p sets u+wx bits regardless of umask, which
++	    # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
++	    ;;
++	  *)
++	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
++	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
++
++	    if (umask $mkdir_umask &&
++		exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
++	    then
++	      if test -z "$dir_arg" || {
++		   # Check for POSIX incompatibilities with -m.
++		   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
++		   # other-writeable bit of parent directory when it shouldn't.
++		   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
++		   ls_ld_tmpdir=`ls -ld "$tmpdir"`
++		   case $ls_ld_tmpdir in
++		     d????-?r-*) different_mode=700;;
++		     d????-?--*) different_mode=755;;
++		     *) false;;
++		   esac &&
++		   $mkdirprog -m$different_mode -p -- "$tmpdir" && {
++		     ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
++		     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
++		   }
++		 }
++	      then posix_mkdir=:
++	      fi
++	      rmdir "$tmpdir/d" "$tmpdir"
++	    else
++	      # Remove any dirs left behind by ancient mkdir implementations.
++	      rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
++	    fi
++	    trap '' 0;;
++	esac;;
++    esac
+ 
+-	$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
++    if
++      $posix_mkdir && (
++	umask $mkdir_umask &&
++	$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
++      )
++    then :
++    else
++
++      # The umask is ridiculous, or mkdir does not conform to POSIX,
++      # or it failed possibly due to a race condition.  Create the
++      # directory the slow way, step by step, checking for races as we go.
++
++      case $dstdir in
++	/*) prefix='/';;
++	-*) prefix='./';;
++	*)  prefix='';;
++      esac
++
++      eval "$initialize_posix_glob"
++
++      oIFS=$IFS
++      IFS=/
++      $posix_glob set -f
++      set fnord $dstdir
++      shift
++      $posix_glob set +f
++      IFS=$oIFS
++
++      prefixes=
++
++      for d
++      do
++	test -z "$d" && continue
++
++	prefix=$prefix$d
++	if test -d "$prefix"; then
++	  prefixes=
++	else
++	  if $posix_mkdir; then
++	    (umask=$mkdir_umask &&
++	     $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
++	    # Don't fail if two instances are running concurrently.
++	    test -d "$prefix" || exit 1
++	  else
++	    case $prefix in
++	      *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
++	      *) qprefix=$prefix;;
++	    esac
++	    prefixes="$prefixes '$qprefix'"
++	  fi
++	fi
++	prefix=$prefix/
++      done
+ 
+-fi &&
++      if test -n "$prefixes"; then
++	# Don't fail if two instances are running concurrently.
++	(umask $mkdir_umask &&
++	 eval "\$doit_exec \$mkdirprog $prefixes") ||
++	  test -d "$dstdir" || exit 1
++	obsolete_mkdir_used=true
++      fi
++    fi
++  fi
++
++  if test -n "$dir_arg"; then
++    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
++    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
++    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
++      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
++  else
++
++    # Make a couple of temp file names in the proper directory.
++    dsttmp=$dstdir/_inst.$$_
++    rmtmp=$dstdir/_rm.$$_
++
++    # Trap to clean up those temp files at exit.
++    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
++
++    # Copy the file name to the temp name.
++    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
++
++    # and set any options; do chmod last to preserve setuid bits.
++    #
++    # If any of these fail, we abort the whole thing.  If we want to
++    # ignore errors from any of these, just make sure not to ignore
++    # errors from the above "$doit $cpprog $src $dsttmp" command.
++    #
++    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
++    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
++    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
++    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
++
++    # If -C, don't bother to copy if it wouldn't change the file.
++    if $copy_on_change &&
++       old=`LC_ALL=C ls -dlL "$dst"	2>/dev/null` &&
++       new=`LC_ALL=C ls -dlL "$dsttmp"	2>/dev/null` &&
++
++       eval "$initialize_posix_glob" &&
++       $posix_glob set -f &&
++       set X $old && old=:$2:$4:$5:$6 &&
++       set X $new && new=:$2:$4:$5:$6 &&
++       $posix_glob set +f &&
++
++       test "$old" = "$new" &&
++       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
++    then
++      rm -f "$dsttmp"
++    else
++      # Rename the file to the real destination.
++      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
++
++      # The rename failed, perhaps because mv can't rename something else
++      # to itself, or perhaps because mv is so ancient that it does not
++      # support -f.
++      {
++	# Now remove or move aside any old file at destination location.
++	# We try this two ways since rm can't unlink itself on some
++	# systems and the destination file might be busy for other
++	# reasons.  In this case, the final cleanup might fail but the new
++	# file should still install successfully.
++	{
++	  test ! -f "$dst" ||
++	  $doit $rmcmd -f "$dst" 2>/dev/null ||
++	  { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
++	    { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
++	  } ||
++	  { echo "$0: cannot unlink or rename $dst" >&2
++	    (exit 1); exit 1
++	  }
++	} &&
++
++	# Now rename the file to the real destination.
++	$doit $mvcmd "$dsttmp" "$dst"
++      }
++    fi || exit 1
+ 
+-# The final little trick to "correctly" pass the exit status to the exit trap.
++    trap '' 0
++  fi
++done
+ 
+-{
+-	(exit 0); exit
+-}
++# Local variables:
++# eval: (add-hook 'write-file-hooks 'time-stamp)
++# time-stamp-start: "scriptversion="
++# time-stamp-format: "%:y-%02m-%02d.%02H"
++# time-stamp-time-zone: "UTC"
++# time-stamp-end: "; # UTC"
++# End:
+Index: libhdf4-4.2r4/HDF4/bin/ltmain.sh
+===================================================================
+--- libhdf4-4.2r4.orig/HDF4/bin/ltmain.sh	2010-01-14 14:40:22.000000000 +0100
++++ libhdf4-4.2r4/HDF4/bin/ltmain.sh	2010-01-14 14:40:36.000000000 +0100
+@@ -1,6 +1,6 @@
+ # Generated from ltmain.m4sh.
+ 
+-# ltmain.sh (GNU libtool) 2.2.6
++# ltmain.sh (GNU libtool) 2.2.6b
+ # Written by Gordon Matzigkeit <gord at gnu.ai.mit.edu>, 1996
+ 
+ # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
+@@ -65,7 +65,7 @@
+ #       compiler:		$LTCC
+ #       compiler flags:		$LTCFLAGS
+ #       linker:		$LD (gnu? $with_gnu_ld)
+-#       $progname:		(GNU libtool) 2.2.6
++#       $progname:		(GNU libtool) 2.2.6b Debian-2.2.6b-2
+ #       automake:		$automake_version
+ #       autoconf:		$autoconf_version
+ #
+@@ -73,9 +73,9 @@
+ 
+ PROGRAM=ltmain.sh
+ PACKAGE=libtool
+-VERSION=2.2.6
++VERSION="2.2.6b Debian-2.2.6b-2"
+ TIMESTAMP=""
+-package_revision=1.3012
++package_revision=1.3017
+ 
+ # Be Bourne compatible
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+@@ -116,15 +116,15 @@
+ 
+ : ${CP="cp -f"}
+ : ${ECHO="echo"}
+-: ${EGREP="/usr/bin/grep -E"}
+-: ${FGREP="/usr/bin/grep -F"}
+-: ${GREP="/usr/bin/grep"}
++: ${EGREP="/bin/grep -E"}
++: ${FGREP="/bin/grep -F"}
++: ${GREP="/bin/grep"}
+ : ${LN_S="ln -s"}
+ : ${MAKE="make"}
+ : ${MKDIR="mkdir"}
+ : ${MV="mv -f"}
+ : ${RM="rm -f"}
+-: ${SED="/opt/local/bin/gsed"}
++: ${SED="/bin/sed"}
+ : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
+ : ${Xsed="$SED -e 1s/^X//"}
+ 
+@@ -5033,7 +5033,10 @@
+ 	case $pass in
+ 	dlopen) libs="$dlfiles" ;;
+ 	dlpreopen) libs="$dlprefiles" ;;
+-	link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
++	link)
++	  libs="$deplibs %DEPLIBS%"
++	  test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
++	  ;;
+ 	esac
+       fi
+       if test "$linkmode,$pass" = "lib,dlpreopen"; then
+@@ -5344,19 +5347,19 @@
+ 	    # It is a libtool convenience library, so add in its objects.
+ 	    convenience="$convenience $ladir/$objdir/$old_library"
+ 	    old_convenience="$old_convenience $ladir/$objdir/$old_library"
++	    tmp_libs=
++	    for deplib in $dependency_libs; do
++	      deplibs="$deplib $deplibs"
++	      if $opt_duplicate_deps ; then
++		case "$tmp_libs " in
++		*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
++		esac
++	      fi
++	      tmp_libs="$tmp_libs $deplib"
++	    done
+ 	  elif test "$linkmode" != prog && test "$linkmode" != lib; then
+ 	    func_fatal_error "\`$lib' is not a convenience library"
+ 	  fi
+-	  tmp_libs=
+-	  for deplib in $dependency_libs; do
+-	    deplibs="$deplib $deplibs"
+-	    if $opt_duplicate_deps ; then
+-	      case "$tmp_libs " in
+-	      *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+-	      esac
+-	    fi
+-	    tmp_libs="$tmp_libs $deplib"
+-	  done
+ 	  continue
+ 	fi # $pass = conv
+ 
+@@ -5893,6 +5896,7 @@
+ 	  if test "$link_all_deplibs" != no; then
+ 	    # Add the search paths of all dependency libraries
+ 	    for deplib in $dependency_libs; do
++	      path=
+ 	      case $deplib in
+ 	      -L*) path="$deplib" ;;
+ 	      *.la)
+@@ -6206,6 +6210,9 @@
+ 	    revision="$number_minor"
+ 	    lt_irix_increment=no
+ 	    ;;
++	  *)
++	    func_fatal_configuration "$modename: unknown library version type \`$version_type'"
++	    ;;
+ 	  esac
+ 	  ;;
+ 	no)
+Index: libhdf4-4.2r4/HDF4/bin/missing
+===================================================================
+--- libhdf4-4.2r4.orig/HDF4/bin/missing	2010-01-14 14:40:22.000000000 +0100
++++ libhdf4-4.2r4/HDF4/bin/missing	2010-01-14 14:40:43.000000000 +0100
+@@ -1,6 +1,10 @@
+ #! /bin/sh
+ # Common stub for a few missing GNU programs while installing.
+-# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
++
++scriptversion=2009-04-28.21; # UTC
++
++# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
++# 2008, 2009 Free Software Foundation, Inc.
+ # Originally by Fran,cois Pinard <pinard at iro.umontreal.ca>, 1996.
+ 
+ # This program is free software; you can redistribute it and/or modify
+@@ -14,9 +18,7 @@
+ # GNU General Public License for more details.
+ 
+ # You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ 
+ # As a special exception to the GNU General Public License, if you
+ # distribute this file as part of a program that contains a
+@@ -29,6 +31,8 @@
+ fi
+ 
+ run=:
++sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
++sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+ 
+ # In the cases where this matters, `missing' is being run in the
+ # srcdir already.
+@@ -38,18 +42,24 @@
+   configure_ac=configure.in
+ fi
+ 
+-case "$1" in
++msg="missing on your system"
++
++case $1 in
+ --run)
+   # Try to run requested program, and just exit if it succeeds.
+   run=
+   shift
+   "$@" && exit 0
++  # Exit code 63 means version mismatch.  This often happens
++  # when the user try to use an ancient version of a tool on
++  # a file that requires a minimum version.  In this case we
++  # we should proceed has if the program had been absent, or
++  # if --run hadn't been passed.
++  if test $? = 63; then
++    run=:
++    msg="probably too old"
++  fi
+   ;;
+-esac
+-
+-# If it does not exist, or fails to run (possibly an outdated version),
+-# try to emulate it.
+-case "$1" in
+ 
+   -h|--h|--he|--hel|--help)
+     echo "\
+@@ -67,6 +77,7 @@
+   aclocal      touch file \`aclocal.m4'
+   autoconf     touch file \`configure'
+   autoheader   touch file \`config.h.in'
++  autom4te     touch the output file, or create a stub one
+   automake     touch all \`Makefile.in' files
+   bison        create \`y.tab.[ch]', if possible, from existing .[ch]
+   flex         create \`lex.yy.c', if possible, from existing .c
+@@ -74,11 +85,18 @@
+   lex          create \`lex.yy.c', if possible, from existing .c
+   makeinfo     touch the output file
+   tar          try tar, gnutar, gtar, then tar without non-portable flags
+-  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]"
++  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
++
++Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
++\`g' are ignored when checking the name.
++
++Send bug reports to <bug-automake at gnu.org>."
++    exit $?
+     ;;
+ 
+   -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+-    echo "missing 0.4 - GNU automake"
++    echo "missing $scriptversion (GNU Automake)"
++    exit $?
+     ;;
+ 
+   -*)
+@@ -87,42 +105,69 @@
+     exit 1
+     ;;
+ 
+-  aclocal*)
++esac
++
++# normalize program name to check for.
++program=`echo "$1" | sed '
++  s/^gnu-//; t
++  s/^gnu//; t
++  s/^g//; t'`
++
++# Now exit if we have it, but it failed.  Also exit now if we
++# don't have it and --version was passed (most likely to detect
++# the program).  This is about non-GNU programs, so use $1 not
++# $program.
++case $1 in
++  lex*|yacc*)
++    # Not GNU programs, they don't have --version.
++    ;;
++
++  tar*)
++    if test -n "$run"; then
++       echo 1>&2 "ERROR: \`tar' requires --run"
++       exit 1
++    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
++       exit 1
++    fi
++    ;;
++
++  *)
+     if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+        # We have it, but it failed.
+        exit 1
++    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
++       # Could not run --version or --help.  This is probably someone
++       # running `$TOOL --version' or `$TOOL --help' to check whether
++       # $TOOL exists and not knowing $TOOL uses missing.
++       exit 1
+     fi
++    ;;
++esac
+ 
++# If it does not exist, or fails to run (possibly an outdated version),
++# try to emulate it.
++case $program in
++  aclocal*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
+          to install the \`Automake' and \`Perl' packages.  Grab them from
+          any GNU archive site."
+     touch aclocal.m4
+     ;;
+ 
+-  autoconf)
+-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+-       # We have it, but it failed.
+-       exit 1
+-    fi
+-
++  autoconf*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified \`${configure_ac}'.  You might want to install the
+          \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
+          archive site."
+     touch configure
+     ;;
+ 
+-  autoheader)
+-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+-       # We have it, but it failed.
+-       exit 1
+-    fi
+-
++  autoheader*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified \`acconfig.h' or \`${configure_ac}'.  You might want
+          to install the \`Autoconf' and \`GNU m4' packages.  Grab them
+          from any GNU archive site."
+@@ -130,7 +175,7 @@
+     test -z "$files" && files="config.h"
+     touch_files=
+     for f in $files; do
+-      case "$f" in
++      case $f in
+       *:*) touch_files="$touch_files "`echo "$f" |
+ 				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+       *) touch_files="$touch_files $f.in";;
+@@ -140,13 +185,8 @@
+     ;;
+ 
+   automake*)
+-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+-       # We have it, but it failed.
+-       exit 1
+-    fi
+-
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+          You might want to install the \`Automake' and \`Perl' packages.
+          Grab them from any GNU archive site."
+@@ -155,21 +195,16 @@
+ 	   while read f; do touch "$f"; done
+     ;;
+ 
+-  autom4te)
+-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+-       # We have it, but it failed.
+-       exit 1
+-    fi
+-
++  autom4te*)
+     echo 1>&2 "\
+-WARNING: \`$1' is needed, and you do not seem to have it handy on your
+-         system.  You might have modified some files without having the
++WARNING: \`$1' is needed, but is $msg.
++         You might have modified some files without having the
+          proper tools for further handling them.
+-         You can get \`$1Help2man' as part of \`Autoconf' from any GNU
++         You can get \`$1' as part of \`Autoconf' from any GNU
+          archive site."
+ 
+-    file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
+-    test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
++    file=`echo "$*" | sed -n "$sed_output"`
++    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+     if test -f "$file"; then
+ 	touch $file
+     else
+@@ -183,111 +218,108 @@
+     fi
+     ;;
+ 
+-  bison|yacc)
++  bison*|yacc*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' $msg.  You should only need it if
+          you modified a \`.y' file.  You may need the \`Bison' package
+          in order for those modifications to take effect.  You can get
+          \`Bison' from any GNU archive site."
+     rm -f y.tab.c y.tab.h
+-    if [ $# -ne 1 ]; then
++    if test $# -ne 1; then
+         eval LASTARG="\${$#}"
+-	case "$LASTARG" in
++	case $LASTARG in
+ 	*.y)
+ 	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+-	    if [ -f "$SRCFILE" ]; then
++	    if test -f "$SRCFILE"; then
+ 	         cp "$SRCFILE" y.tab.c
+ 	    fi
+ 	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+-	    if [ -f "$SRCFILE" ]; then
++	    if test -f "$SRCFILE"; then
+ 	         cp "$SRCFILE" y.tab.h
+ 	    fi
+ 	  ;;
+ 	esac
+     fi
+-    if [ ! -f y.tab.h ]; then
++    if test ! -f y.tab.h; then
+ 	echo >y.tab.h
+     fi
+-    if [ ! -f y.tab.c ]; then
++    if test ! -f y.tab.c; then
+ 	echo 'main() { return 0; }' >y.tab.c
+     fi
+     ;;
+ 
+-  lex|flex)
++  lex*|flex*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified a \`.l' file.  You may need the \`Flex' package
+          in order for those modifications to take effect.  You can get
+          \`Flex' from any GNU archive site."
+     rm -f lex.yy.c
+-    if [ $# -ne 1 ]; then
++    if test $# -ne 1; then
+         eval LASTARG="\${$#}"
+-	case "$LASTARG" in
++	case $LASTARG in
+ 	*.l)
+ 	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+-	    if [ -f "$SRCFILE" ]; then
++	    if test -f "$SRCFILE"; then
+ 	         cp "$SRCFILE" lex.yy.c
+ 	    fi
+ 	  ;;
+ 	esac
+     fi
+-    if [ ! -f lex.yy.c ]; then
++    if test ! -f lex.yy.c; then
+ 	echo 'main() { return 0; }' >lex.yy.c
+     fi
+     ;;
+ 
+-  help2man)
+-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+-       # We have it, but it failed.
+-       exit 1
+-    fi
+-
++  help2man*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+ 	 you modified a dependency of a manual page.  You may need the
+ 	 \`Help2man' package in order for those modifications to take
+ 	 effect.  You can get \`Help2man' from any GNU archive site."
+ 
+-    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
+-    if test -z "$file"; then
+-	file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
+-    fi
+-    if [ -f "$file" ]; then
++    file=`echo "$*" | sed -n "$sed_output"`
++    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
++    if test -f "$file"; then
+ 	touch $file
+     else
+ 	test -z "$file" || exec >$file
+ 	echo ".ab help2man is required to generate this page"
+-	exit 1
++	exit $?
+     fi
+     ;;
+ 
+-  makeinfo)
+-    if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
+-       # We have makeinfo, but it failed.
+-       exit 1
+-    fi
+-
++  makeinfo*)
+     echo 1>&2 "\
+-WARNING: \`$1' is missing on your system.  You should only need it if
++WARNING: \`$1' is $msg.  You should only need it if
+          you modified a \`.texi' or \`.texinfo' file, or any other file
+          indirectly affecting the aspect of the manual.  The spurious
+          call might also be the consequence of using a buggy \`make' (AIX,
+          DU, IRIX).  You might want to install the \`Texinfo' package or
+          the \`GNU make' package.  Grab either from any GNU archive site."
+-    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
++    # The file to touch is that specified with -o ...
++    file=`echo "$*" | sed -n "$sed_output"`
++    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+     if test -z "$file"; then
+-      file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+-      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
+-    fi
++      # ... or it is the one specified with @setfilename ...
++      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
++      file=`sed -n '
++	/^@setfilename/{
++	  s/.* \([^ ]*\) *$/\1/
++	  p
++	  q
++	}' $infile`
++      # ... or it is derived from the source name (dir/f.texi becomes f.info)
++      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
++    fi
++    # If the file does not exist, the user really needs makeinfo;
++    # let's fail without touching anything.
++    test -f $file || exit 1
+     touch $file
+     ;;
+ 
+-  tar)
++  tar*)
+     shift
+-    if test -n "$run"; then
+-      echo 1>&2 "ERROR: \`tar' requires --run"
+-      exit 1
+-    fi
+ 
+     # We have already tried tar in the generic part.
+     # Look for gnutar/gtar before invocation to avoid ugly error
+@@ -300,13 +332,13 @@
+     fi
+     firstarg="$1"
+     if shift; then
+-	case "$firstarg" in
++	case $firstarg in
+ 	*o*)
+ 	    firstarg=`echo "$firstarg" | sed s/o//`
+ 	    tar "$firstarg" "$@" && exit 0
+ 	    ;;
+ 	esac
+-	case "$firstarg" in
++	case $firstarg in
+ 	*h*)
+ 	    firstarg=`echo "$firstarg" | sed s/h//`
+ 	    tar "$firstarg" "$@" && exit 0
+@@ -323,10 +355,10 @@
+ 
+   *)
+     echo 1>&2 "\
+-WARNING: \`$1' is needed, and you do not seem to have it handy on your
+-         system.  You might have modified some files without having the
++WARNING: \`$1' is needed, and is $msg.
++         You might have modified some files without having the
+          proper tools for further handling them.  Check the \`README' file,
+-         it often tells you about the needed prerequirements for installing
++         it often tells you about the needed prerequisites for installing
+          this package.  You may also peek at any GNU archive site, in case
+          some other package would contain this missing \`$1' program."
+     exit 1
+@@ -334,3 +366,11 @@
+ esac
+ 
+ exit 0
++
++# Local variables:
++# eval: (add-hook 'write-file-hooks 'time-stamp)
++# time-stamp-start: "scriptversion="
++# time-stamp-format: "%:y-%02m-%02d.%02H"
++# time-stamp-time-zone: "UTC"
++# time-stamp-end: "; # UTC"
++# End:
+Index: libhdf4-4.2r4/HDF4/bin/mkinstalldirs
+===================================================================
+--- libhdf4-4.2r4.orig/HDF4/bin/mkinstalldirs	2010-01-14 14:40:22.000000000 +0100
++++ libhdf4-4.2r4/HDF4/bin/mkinstalldirs	2010-01-14 14:40:45.000000000 +0100
+@@ -1,21 +1,36 @@
+ #! /bin/sh
+ # mkinstalldirs --- make directory hierarchy
+-# Author: Noah Friedman <friedman at prep.ai.mit.edu>
+-# Created: 1993-05-16
+-# Public domain
+ 
++scriptversion=2009-04-28.21; # UTC
++
++# Original author: Noah Friedman <friedman at prep.ai.mit.edu>
++# Created: 1993-05-16
++# Public domain.
++#
++# This file is maintained in Automake, please report
++# bugs to <bug-automake at gnu.org> or send patches to
++# <automake-patches at gnu.org>.
++
++nl='
++'
++IFS=" ""	$nl"
+ errstatus=0
+-dirmode=""
++dirmode=
+ 
+ usage="\
+-Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
++Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
++
++Create each directory DIR (with mode MODE, if specified), including all
++leading file name components.
++
++Report bugs to <bug-automake at gnu.org>."
+ 
+ # process command line arguments
+ while test $# -gt 0 ; do
+   case $1 in
+     -h | --help | --h*)         # -h for help
+-      echo "$usage" 1>&2
+-      exit 0
++      echo "$usage"
++      exit $?
+       ;;
+     -m)                         # -m PERM arg
+       shift
+@@ -23,6 +38,10 @@
+       dirmode=$1
+       shift
+       ;;
++    --version)
++      echo "$0 $scriptversion"
++      exit $?
++      ;;
+     --)                         # stop option processing
+       shift
+       break
+@@ -50,30 +69,58 @@
+   0) exit 0 ;;
+ esac
+ 
++# Solaris 8's mkdir -p isn't thread-safe.  If you mkdir -p a/b and
++# mkdir -p a/c at the same time, both will detect that a is missing,
++# one will create a, then the other will try to create a and die with
++# a "File exists" error.  This is a problem when calling mkinstalldirs
++# from a parallel make.  We use --version in the probe to restrict
++# ourselves to GNU mkdir, which is thread-safe.
+ case $dirmode in
+   '')
+-    if mkdir -p -- . 2>/dev/null; then
++    if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
+       echo "mkdir -p -- $*"
+       exec mkdir -p -- "$@"
++    else
++      # On NextStep and OpenStep, the `mkdir' command does not
++      # recognize any option.  It will interpret all options as
++      # directories to create, and then abort because `.' already
++      # exists.
++      test -d ./-p && rmdir ./-p
++      test -d ./--version && rmdir ./--version
+     fi
+     ;;
+   *)
+-    if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
++    if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
++       test ! -d ./--version; then
+       echo "mkdir -m $dirmode -p -- $*"
+       exec mkdir -m "$dirmode" -p -- "$@"
++    else
++      # Clean up after NextStep and OpenStep mkdir.
++      for d in ./-m ./-p ./--version "./$dirmode";
++      do
++        test -d $d && rmdir $d
++      done
+     fi
+     ;;
+ esac
+ 
+ for file
+ do
+-  set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
++  case $file in
++    /*) pathcomp=/ ;;
++    *)  pathcomp= ;;
++  esac
++  oIFS=$IFS
++  IFS=/
++  set fnord $file
+   shift
++  IFS=$oIFS
+ 
+-  pathcomp=
+   for d
+   do
+-    pathcomp="$pathcomp$d"
++    test "x$d" = x && continue
++
++    pathcomp=$pathcomp$d
+     case $pathcomp in
+       -*) pathcomp=./$pathcomp ;;
+     esac
+@@ -84,21 +131,21 @@
+       mkdir "$pathcomp" || lasterr=$?
+ 
+       if test ! -d "$pathcomp"; then
+-  	errstatus=$lasterr
++	errstatus=$lasterr
+       else
+-  	if test ! -z "$dirmode"; then
++	if test ! -z "$dirmode"; then
+ 	  echo "chmod $dirmode $pathcomp"
+-    	  lasterr=""
+-  	  chmod "$dirmode" "$pathcomp" || lasterr=$?
++	  lasterr=
++	  chmod "$dirmode" "$pathcomp" || lasterr=$?
+ 
+-  	  if test ! -z "$lasterr"; then
+-  	    errstatus=$lasterr
+-  	  fi
+-  	fi
++	  if test ! -z "$lasterr"; then
++	    errstatus=$lasterr
++	  fi
++	fi
+       fi
+     fi
+ 
+-    pathcomp="$pathcomp/"
++    pathcomp=$pathcomp/
+   done
+ done
+ 
+@@ -107,5 +154,9 @@
+ # Local Variables:
+ # mode: shell-script
+ # sh-indentation: 2
++# eval: (add-hook 'write-file-hooks 'time-stamp)
++# time-stamp-start: "scriptversion="
++# time-stamp-format: "%:y-%02m-%02d.%02H"
++# time-stamp-time-zone: "UTC"
++# time-stamp-end: "; # UTC"
+ # End:
+-# mkinstalldirs ends here




More information about the Pkg-grass-devel mailing list