summaryrefslogtreecommitdiff
path: root/graphics/geomview/files/patch-configure.in
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2004-10-07 18:48:29 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2004-10-07 18:48:29 +0000
commit0925066a54f1cd8f7a7eb909dbff10dae4be044c (patch)
tree943dd3c3187ae1fd9d9b9c88d5f5d389f46c0553 /graphics/geomview/files/patch-configure.in
parentChange the default value of PTHREAD_LIBS to -pthread for 5.x and (diff)
Don't allow GCC to optimize away -lm test, and thus unbreak.
Reported by: kris Approved by: portmgr (krion), fjoe (mentor, implicit)
Notes
Notes: svn path=/head/; revision=118579
Diffstat (limited to 'graphics/geomview/files/patch-configure.in')
-rw-r--r--graphics/geomview/files/patch-configure.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/graphics/geomview/files/patch-configure.in b/graphics/geomview/files/patch-configure.in
index 0ac72663638b..719c67c04525 100644
--- a/graphics/geomview/files/patch-configure.in
+++ b/graphics/geomview/files/patch-configure.in
@@ -11,7 +11,17 @@
*) MACHTYPE=$target_os
AC_DEFINE_UNQUOTED(MACHTYPE, "$MACHTYPE")
;;
-@@ -471,7 +471,8 @@
+@@ -459,7 +463,8 @@
+ # mbp Mon May 8 18:47:33 2000
+ AC_MSG_CHECKING([whether we need to link -lm to get math functions])
+ AC_TRY_LINK([ #include <math.h> ],
+- [ double s = sin(1.5); ],
++ [ double s = sin(1.5);
++ return ((int)s); ],
+ [ MATHLIB=""
+ AC_MSG_RESULT([no]) ],
+ [ MATHLIB=-lm
+@@ -471,7 +476,8 @@
AC_MSG_CHECKING([whether we need to link -lsocket to get socket()])
@@ -21,7 +31,7 @@
[ int s = socket(AF_UNIX, SOCK_STREAM, 0); ],
[ SOCKETLIBS=""
AC_MSG_RESULT([no]) ],
-@@ -491,10 +492,10 @@
+@@ -491,10 +497,10 @@
AC_CHECK_HEADERS(fpu_control.h i386/fpu_control.h netinet/in.h)