summaryrefslogtreecommitdiffstats
path: root/math/metis-edf/files/patch-CONFIG::configure
blob: 72bc1f1c3d14a9439104f957c1c7dfc06fabae01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- CONFIG/configure.orig	Mon Dec 16 18:11:44 2002
+++ CONFIG/configure	Tue Aug 12 22:47:59 2003
@@ -4,6 +4,7 @@
 # SHELL defined by make (sh)
 
 OS_TYPE=`uname -s`
+ARCHI=`uname -p`
 if [ $OS_TYPE = "SunOS" ]; then
  	OS_LEVEL=`uname -r`
    OS_NIV=`echo $OS_LEVEL | awk -F'.' '{print $2}'`
@@ -18,7 +19,7 @@
    if [ -z "$rtn" ] || [ "$rtn" = "y" -o "$rtn" = "Y" ]; then
       OS_TYPE=SunOS64
    fi
-elif [ $OS_TYPE != "OSF1" -a $OS_TYPE != "IRIX64" -a $OS_TYPE != "Linux" ]; then
+elif [ $OS_TYPE != "OSF1" -a $OS_TYPE != "IRIX64" -a $OS_TYPE != "Linux" -a $OS_TYPE != "FreeBSD" ]; then
 	echo " Operating system $OS_TYPE unknown on this distribution"
 	echo " Installation failed !"
    exit 8
@@ -30,14 +31,25 @@
 # FOPTIONS : Fortran compiler options,
 # LDOPTIONS : link options, AR : archiver
 
-CC="cc"
-F90="f90"
-LD="$F90"
-COPTIONS=""
-FOPTIONS=""
-LDOPTIONS="-L. -L.."
-OPTFLAGS="-O"
-AR="ar rv"
+if [ $OS_TYPE = "FreeBSD" ]; then
+   CC="$CC"
+   F90="$F77"
+   LD="$CC -v"
+   COPTIONS="$CFLAGS"
+   OPTFLAGS=""
+   FOPTIONS="$FFLAGS"
+   LDOPTIONS="$LDFLAGS -L. -L.."
+   AR="$AR rv"
+else
+   CC="cc"
+   F90="f90"
+   LD="$F90"
+   COPTIONS=""
+   FOPTIONS=""
+   LDOPTIONS="-L. -L.."
+   OPTFLAGS="-O"
+   AR="ar rv"
+fi
 if [ $OS_TYPE = "Linux" ]; then
    CC="gcc"
    F90="g77"
OpenPOWER on IntegriCloud