summaryrefslogtreecommitdiff
path: root/devel/ftnchek/patches/patch-aa
blob: 0f9d18b8606f3538570746f62993525cdab703da (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
$NetBSD: patch-aa,v 1.5 2002/05/20 17:41:05 cjep Exp $
--- configure.orig	Tue Nov 13 02:32:40 2001
+++ configure	Mon Apr 29 11:09:02 2002
@@ -2731,6 +2731,7 @@
     if test -n "$GCC"; then
       OPT="-O2";
     fi;;
+  netbsd*) ;;
   next*)
     OPT="-O2";;
 
@@ -2762,26 +2763,6 @@
     OPT="-O";;
 esac
 
-if test -n "$GCC"; then
-  case "$host_cpu" in
-  i386*)
-    OPT="$OPT -march=i386"
-    ;;
-  i486*)
-    OPT="$OPT -march=i486"
-    ;;
-  i586*)
-    OPT="$OPT -march=i586"
-    ;;
-  i686*)
-    OPT="$OPT -march=i686"
-    ;;
-  k6*)
-    OPT="$OPT -march=k6"
-    ;;
-  esac
-fi
-
 echo $ac_n "checking whether $CC accepts function prototypes""... $ac_c" 1>&6
 echo "configure:2787: checking whether $CC accepts function prototypes" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC_protos'+set}'`\" = set"; then
@@ -2817,7 +2798,7 @@
 fi
 
 
-CFLAGS="-DUNIX \$(OPT) $OS_FLAGS $PROTOFLAG \$(OPTIONS)"
+CFLAGS="$CFLAGS -DUNIX \$(OPT) $OS_FLAGS $PROTOFLAG \$(OPTIONS)"
 echo "$ac_t""Compile command is $CC $CFLAGS" 1>&6
 echo "$ac_t""\$(OPT) is $OPT" 1>&6
 echo "$ac_t""\$(OPTIONS) is for optional defines, normally blank" 1>&6