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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
$NetBSD: patch-aa,v 1.5 2005/12/30 14:18:52 joerg Exp $
--- configure.orig 2005-11-05 01:00:47.000000000 +0000
+++ configure
@@ -1631,7 +1631,7 @@ _ACEOF
THREADLIBS="-lpthread -lrt"
;;
- *-*-freebsd*)
+ *-*-freebsd*|*-*-dragonfly*)
{ echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
@@ -7238,7 +7238,72 @@ fi
-for ac_func in isnan isinf trunc rint
+for ac_func in isnan isinf
+do
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+#include <math.h>
+
+double val;
+
+int
+main ()
+{
+return $ac_func (val);
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+for ac_func in trunc rint
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -8878,7 +8943,7 @@ case $target in
SHLIB_MAIN_LDFLAGS=""
SHLIB_OK=ok
;;
- *-linux-gnu|*freebsd*)
+ *-linux-gnu|*freebsd*|*dragonfly*)
SHLIB_SO_CFLAGS="-fPIC"
SHLIB_SO_LDFLAGS="$rpath -shared -o"
SHLIB_SO_SUFFIX="so"
@@ -10097,12 +10162,12 @@ fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
if test $ac_cv_lib_gdbm_gdbm_open = yes; then
- GDBMLIB="-lgdbm"
+ GDBMLIB="-Wl,-R/usr/pkg/lib -lgdbm"
fi
LIBSAVE="$LIBS"
if test "$NDBM_HEADER" = "gdbm/ndbm.h"; then
- NDBMLIB="-lgdbm" # use emulation by gdbm
+ NDBMLIB="-Wl,-R/usr/pkg/lib -lgdbm" # use emulation by gdbm
else
echo "$as_me:$LINENO: checking for library containing dbm_open" >&5
echo $ECHO_N "checking for library containing dbm_open... $ECHO_C" >&6
@@ -10232,7 +10297,7 @@ fi
fi
if test "$ODBM_HEADER" = "gdbm/dbm.h"; then
- ODBMLIB="-lgdbm" # use emulation by gdbm
+ ODBMLIB="-Wl,-R/usr/pkg/lib -lgdbm" # use emulation by gdbm
else
echo "$as_me:$LINENO: checking for library containing dbminit" >&5
echo $ECHO_N "checking for library containing dbminit... $ECHO_C" >&6
|