961105: udunit, linux

------- Forwarded Message

>To: owner-ncdigest@xxxxxxxxxxxxxxxx
>From: Henning Rosemann <henning@xxxxxxxxxxxxxxxx>
>Subject: Re: ncdigest V1 #369
>Organization: .
>Keywords: 199611050842.AA01634

> From: Jens.Decker@xxxxxxxxxxxxxxxxxxxxxxxx (Jens Decker)
> Did someone manage to compile udunit on a linux box? I was quite astonished
> that linux isn't supported.

I got udunits-1.10.2 running on a linux box using the following patch. I
don't remember any specific problems, but I did not spend much time on
testing. 

- -hr
- -------------------------------------------------------------------------
Henning Rosemann                      E-mail:    henning.rosemann@xxxxxx
DLR, Institute of Fluid Mechanics     Telephone: +49-551-7092260
Bunsenstr. 10,                        Telefax:   +49-551-7092811       
D-37073 Goettingen, Germany     
_________________________________________________________________________


=============================================================================

*** /dev/null   Mon Jul 18 01:46:18 1994
- --- udunits-1.10.2/src/port/fortc/linux.m4    Wed Jan 24 11:41:50 1996
***************
*** 0 ****
- --- 1,34 ----
+ divert(-1)
+ define(`M4__SYSTEM', linux)
+ # Macro for converting C name into FORTRAN name
+ define(`NAMEF', `$1_')
+ # transformation from string name to corresponding argument name
+ define(`STRINGF',`$1')
+ # extra arguments, if any, for argument lengths
+ define(`STRINGX',`, $1_len')  # one extra stringlen parameter
+ define(`REALX',`')
+ define(`INTEGERX',`')
+ define(`FUNCTIONX',`')
+ define(`DOUBLEX',`')
+ # declaration to be used for argument name descriptor
+ define(`STRINGD',`
+     char      *$1;
+     int        $1_len;') # declare argument string with extra stringlen 
parameter
+ define(`STRINGP',`
+     char      *$1')
+ define(`STRINGPX',`,
+     int        $1_len')
+ # declarations and initializations of canonical local variables
+ define(`STRINGL',`')
+ # FORTRAN declaration for a long integer (e.g. integer*4 for Microsoft)
+ define(`LONG_INT',`integer')
+ # FORTRAN declaration for a short integer (e.g. integer*2)
+ define(`SHORT_INT',`integer*2')
+ # FORTRAN declaration for an integer byte (e.g. integer*1 or byte)
+ define(`BYTE_INT',`byte')
+ # FORTRAN declaration for double precision (e.g. real for a Cray)
+ define(`DOUBLE_PRECISION',`double precision')
+ # FORTRAN syntax for including a file
+ define(`M4__RIGHT_QUOTE',')
+ define(`F_INCLUDE',`      `include' M4__RIGHT_QUOTE`'$1`'M4__RIGHT_QUOTE')
+ divert(0)dnl
*** udunits-1.10.2/src/port/master.mk.in.orig   Thu Oct 12 21:29:06 1995
- --- udunits-1.10.2/src/port/master.mk.in      Wed Jan 24 13:06:01 1996
***************
*** 398,403 ****
- --- 398,404 ----
                HP-UX);; \
                IRIX*);; \
                ULTRIX);; \
+               Linux);; \
                UNICOS|sn*);; \
                *)  $(MAKE) $(MFLAGS) $(MANDIR)/whatis;; \
            esac; \
***************
*** 433,440 ****
        mkdir -p $@
        chmod u+rwx,g+rws,o=rx $@
  
! $(MANDIR)/whatis:     FORCE
!       catman -w -M $(MANDIR)
  
  
  ############################################################################
- --- 434,441 ----
        mkdir -p $@
        chmod u+rwx,g+rws,o=rx $@
  
! #$(MANDIR)/whatis:    FORCE
! #     catman -w -M $(MANDIR)
  
  
  ############################################################################
*** udunits-1.10.2/src/CUSTOMIZE.orig   Fri Aug  4 22:54:09 1995
- --- udunits-1.10.2/src/CUSTOMIZE      Tue Jan 30 18:37:17 1996
***************
*** 29,35 ****
- --- 29,40 ----
  #
  # Installation prefix (default is `../..'):
  # prefix=/usr/local/unidata
+ prefix=/usr/local
  #
  # Ancillary libraries.  SunOS 4 user's might need something like the
  # following in order to resolve strerror() in the perl/ subdirectory.
  # LIBS='-L/usr/lang/SC3.0.1/lib -lansi'
+ 
+ PERL
+ LD_YACC=' '
+ LD_MATH=-lm



------- End of Forwarded Message


  • 1996 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: