Changeset 2894

Show
Ignore:
Timestamp:
02/04/05 03:12:15 (4 years ago)
Author:
drach
Message:

Ported to cygwin.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cdat/trunk/Packages/cdms/Include/Cdunifmodule.h

    r2109 r2894  
    193193 
    194194/* Type object declarations */ 
     195#if defined(__CYGWIN__) 
     196extern PyTypeObject PyCdunifFile_Type; 
     197extern PyTypeObject PyCdunifVariable_Type; 
     198#else 
    195199extern DL_IMPORT(PyTypeObject) PyCdunifFile_Type; 
    196200extern DL_IMPORT(PyTypeObject) PyCdunifVariable_Type; 
     201#endif 
    197202 
    198203/* Type check macros */ 
  • cdat/trunk/Packages/cdms/Src/Cdunifmodule.c

    r2317 r2894  
    632632     char *mode; 
    633633{ 
    634   PyCdunifFileObject *self = PyObject_NEW(PyCdunifFileObject, 
    635                                           &PyCdunifFile_Type); 
     634  PyCdunifFileObject *self; 
    636635  int rw; 
    637636  CuFileType filetype; 
    638637 
     638  self = PyObject_NEW(PyCdunifFileObject, &PyCdunifFile_Type); 
    639639  if (self == NULL) 
    640640    return NULL; 
  • cdat/trunk/Packages/cdtime/Src/cdtimemodule.c

    r2109 r2894  
    802802statichere PyTypeObject RelTimeType = {      /* main python type-descriptor */ 
    803803  /* type header */                    /* shared by all instances */ 
    804       PyObject_HEAD_INIT(&PyType_Type)          
     804      PyObject_HEAD_INIT(NULL)          
    805805      0,                               /* ob_size */ 
    806806      "reltime",                         /* tp_name */ 
     
    831831statichere PyTypeObject CompTimeType = {      /* main python type-descriptor */ 
    832832  /* type header */                    /* shared by all instances */ 
    833       PyObject_HEAD_INIT(&PyType_Type)          
     833      PyObject_HEAD_INIT(NULL)          
    834834      0,                               /* ob_size */ 
    835835      "comptime",                         /* tp_name */ 
     
    10591059{ 
    10601060    PyObject *m, *d; 
     1061 
     1062    /* Initialize type object headers */ 
     1063    RelTimeType.ob_type = &PyType_Type; 
     1064    CompTimeType.ob_type = &PyType_Type; 
    10611065 
    10621066    /* create the module and add the functions */ 
  • cdat/trunk/libcdms/configure

    r2561 r2894  
    20402040                HDF_LIB_OPTIONS="mfhdf -ldf -ljpeg -lz -lm" 
    20412041                ;; 
     2042        Windows_NT*) 
     2043                HDF_LIB_OPTIONS="mfhdf -ldf -ljpeg -lz -lm" 
     2044                ;; 
    20422045        *) 
    20432046                HDF_LIB_OPTIONS="mfhdf -ldf -ljpeg -lz" 
     
    21612164                NC_LIB_OPTIONS=$DODS_LIB_OPTIONS" -lm" 
    21622165                ;; 
     2166        Windows_NT*) 
     2167                NC_LIB_OPTIONS=$DODS_LIB_OPTIONS" -lm" 
     2168                ;; 
    21632169        *) 
    21642170                NC_LIB_OPTIONS=$DODS_LIB_OPTIONS 
     
    22722278                PC_FORT_EXTRA_LIBS=$PC_FORT_EXTRA_LIBS" -L/usr/pgi/linux86/$PGI_VERSION/lib -lpgftnrtl -lpgc -lm" 
    22732279                ;; 
     2280         Windows_NT*) 
     2281                PC_FORT_EXTRA_LIBS=$PC_FORT_EXTRA_LIBS" -L/usr/pgi/linux86/$PGI_VERSION/lib -lpgftnrtl -lpgc -lm" 
     2282                ;; 
    22742283         osf*) 
    22752284                PC_FORT_EXTRA_LIBS=$PC_FORT_EXTRA_LIBS" -lfor -lc -lm" 
     
    22982307     echo "checking that libdrs.a is in $DRSLIB (modify with --with-drslib=DIR)" 
    22992308    case "$OS" in 
     2309#--------------- 
    23002310         aix) 
    23012311                echo $ac_n "checking for libdrs.a""... $ac_c" 1>&6 
     
    23372347                fi 
    23382348                ;; 
     2349#--------------- 
    23392350         osf*) 
    23402351                echo $ac_n "checking for libdrs.a""... $ac_c" 1>&6 
     
    23762387                fi 
    23772388                ;; 
     2389#--------------- 
    23782390         linux*) 
    2379                 echo $ac_n "checking for libdrs.a on linux""... $ac_c" 1>&6 
    2380 echo "configure:2372: checking for libdrs.a on linux" >&5 
     2391                echo $ac_n "checking for libdrs.a on Windows_NT""... $ac_c" 1>&6 
     2392echo "configure:2372: checking for libdrs.a on Windows_NT" >&5 
    23812393                if test -r "$DRSLIB/libdrs.a"; then 
    23822394                    for arg in -L$DRSLIB -ldrs; do 
     
    24152427                fi 
    24162428                ;; 
     2429#--------------- 
     2430         Windows_NT*) 
     2431                echo $ac_n "checking for libdrs.a on Windows_NT""... $ac_c" 1>&6 
     2432echo "configure:2372: checking for libdrs.a on Windows_NT" >&5 
     2433                if test -r "$DRSLIB/libdrs.a"; then 
     2434                    for arg in -L$DRSLIB -ldrs; do 
     2435    case "$LIBS" in 
     2436      *$arg*) 
     2437        ;; 
     2438      *) 
     2439        LIBS="${LIBS-} $arg" 
     2440        ;; 
     2441    esac 
     2442  done 
     2443 
     2444                    for arg in $PC_FORT_EXTRA_LIBS; do 
     2445    case "$LIBS" in 
     2446      *$arg*) 
     2447        ;; 
     2448      *) 
     2449        LIBS="${LIBS-} $arg" 
     2450        ;; 
     2451    esac 
     2452  done 
     2453 
     2454                    for arg in -Ddrs; do 
     2455    case "$CPPFLAGS" in 
     2456      *$arg*) 
     2457        ;; 
     2458      *) 
     2459        CPPFLAGS="${CPPFLAGS-} $arg" 
     2460        ;; 
     2461    esac 
     2462  done 
     2463 
     2464                  echo "$ac_t""yes" 1>&6 
     2465                else 
     2466                  echo "$ac_t""no" 1>&6 
     2467                fi 
     2468                ;; 
     2469#--------------- 
    24172470         *) 
    24182471                        echo $ac_n "checking for libdrs.a""... $ac_c" 1>&6 
     
    25652618        ;; 
    25662619    linux) 
     2620        GRADS_BYTEORDER=0 
     2621          for arg in -DBYTESWAP -DpgiFortran; do 
     2622    case "$CPPFLAGS" in 
     2623      *$arg*) 
     2624        ;; 
     2625      *) 
     2626        CPPFLAGS="${CPPFLAGS-} $arg" 
     2627        ;; 
     2628    esac 
     2629  done 
     2630        ;; 
     2631    Windows_NT) 
    25672632        GRADS_BYTEORDER=0 
    25682633          for arg in -DBYTESWAP -DpgiFortran; do 
  • cdat/trunk/libcdms/configure.in

    r2561 r2894  
    150150                ;; 
    151151        linux*) 
     152                HDF_LIB_OPTIONS="mfhdf -ldf -ljpeg -lz -lm" 
     153                ;; 
     154        Windows_NT*) 
    152155                HDF_LIB_OPTIONS="mfhdf -ldf -ljpeg -lz -lm" 
    153156                ;; 
     
    192195                NC_LIB_OPTIONS=$DODS_LIB_OPTIONS" -lm" 
    193196                ;; 
     197        Windows_NT*) 
     198                NC_LIB_OPTIONS=$DODS_LIB_OPTIONS" -lm" 
     199                ;; 
    194200        *) 
    195201                NC_LIB_OPTIONS=$DODS_LIB_OPTIONS 
     
    245251        PC_ENSURE(CPPFLAGS, -DBYTESWAP -DpgiFortran) dnl 
    246252        ;; 
     253    Windows_NT*) 
     254        GRADS_BYTEORDER=0 
     255dnl     PC_ENSURE(CPPFLAGS, -DBYTESWAP -DAbsoftUNIXFortran -D__linux_absoft) dnl 
     256        PC_ENSURE(CPPFLAGS, -DBYTESWAP -DpgiFortran) dnl 
     257        ;; 
    247258    *ultrix) 
    248259        GRADS_BYTEORDER=0