summaryrefslogtreecommitdiff
path: root/graphics/geomview/files/patch-configure.in
blob: 719c67c045258a4562efb92e774b5354fc04f77f (plain) (blame)
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
--- configure.in.orig	Sun Mar 25 17:56:01 2001
+++ configure.in	Mon Aug 12 18:07:49 2002
@@ -433,6 +433,10 @@
           AC_DEFINE(unix, 1)
           AC_DEFINE(alloca, __alloca)
 	  ;;
+*freebsd*) MACHTYPE=$target_os
+	  AC_DEFINE_UNQUOTED(MACHTYPE, "$MACHTYPE")
+          AC_DEFINE(alloca, alloca)	dnl work around flawed GNU assumption
+          ;;
        *) MACHTYPE=$target_os
 	  AC_DEFINE_UNQUOTED(MACHTYPE, "$MACHTYPE")
           ;;
@@ -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()])
-AC_TRY_LINK([ #include <sys/socket.h> ],
+AC_TRY_LINK([ #include <sys/types.h>
+	      #include <sys/socket.h> ],
             [ int s = socket(AF_UNIX, SOCK_STREAM, 0); ],
             [ SOCKETLIBS=""
               AC_MSG_RESULT([no]) ],
@@ -491,10 +497,10 @@
 
 AC_CHECK_HEADERS(fpu_control.h i386/fpu_control.h netinet/in.h)
 
-moduledir="\$(exec_prefix)/bin"
+moduledir="\$(exec_prefix)/libexec/geomview/modules"
 AC_SUBST(moduledir)
 
-geomdatadir="\$(prefix)/data"
+geomdatadir="\$(prefix)/share/geomview/data"
 AC_SUBST(geomdatadir)
 
 # cache 'moduledir' and 'geomdatadir' so individual module configure scripts