Merge from vendor branch FREEBSD:
[pkgsrc.git] / parallel / mpi-ch / patches / patch-ab
1 $NetBSD$
2 --- romio/configure.orig        Wed Aug  5 09:47:54 1998
3 +++ romio/configure     Wed Aug  5 09:50:05 1998
4 @@ -691,2 +691,24 @@
5  fi    
6 +if test -n "$arch_netbsd" ; then
7 +    CC=${CC:-gcc}
8 +    F77=${FC:-f77}
9 +    CFLAGS="$CFLAGS -D__FREEBSD"
10 +    longlongsize=${longlongsize:-0}
11 +# printf doesn't work properly and no integer*8 as far as I can tell
12 +    if test $DEBUG = 1; then
13 +        CFLAGS="$CFLAGS -g -D__NO_AIO"
14 +    else 
15 +        CFLAGS="$CFLAGS -O -D__NO_AIO"
16 +    fi
17 +    if test -z "$MPI" ; then
18 +        MPI=mpich
19 +        mpi_mpich=1
20 +    fi
21 +    if test -z "$FILE_SYSTEM" ; then
22 +        file_system_ufs=1
23 +        file_system_nfs=1
24 +        FILE_SYSTEM="ufs nfs"
25 +        echo "configuring for file systems ufs and nfs"
26 +    fi
27 +fi    
28  #