summaryrefslogtreecommitdiff
path: root/benchmarks/benchfft/patches/patch-ac
blob: 4c68919af7f1cfedb403b0534ba69745dac9fdb0 (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
$NetBSD: patch-ac,v 1.2 2005/11/05 21:04:36 joerg Exp $

need to be able to link with -lf2c when using f2c or -lg2c when using
g77.

--- configure.in.orig	Tue Oct 20 12:42:05 1998
+++ configure.in	Fri May 12 17:10:03 2000
@@ -58,6 +58,7 @@ if test $F77 = echo; then
 else
 	USE_F77=" "
 	AC_DEFINE(HAVE_F77)
+        AC_F77_LIBRARY_LDFLAGS
 fi
 
 if test $F90 = echo; then
@@ -158,13 +159,8 @@ AC_CHECK_FUNCS(dcft3)
 
 dnl Check for librfftw.a (in rfftw 2.0+)
 AC_MSG_CHECKING(for location of rfftw)
-if test -r $FFTWDIR/rfftw/.libs/librfftw.a; then
-        RFFTWLIB="-lrfftw"
-        AC_MSG_RESULT(found librfftw.a)
-else
-        RFFTWLIB="$FFTWDIR/rfftw/rfftw.o $FFTWDIR/rfftw/rfftwnd.o"
-        AC_MSG_RESULT(using rfftw object code)
-fi
+RFFTWLIB="$FFTWDIR/rfftw/.libs/librfftw.a"
+AC_MSG_RESULT(found librfftw.a)
 AC_SUBST(RFFTWLIB)
 
 dnl Check for Numerical Recipes code: