f2c4259b7f
iconv and gdbm. We now patch Makefile.in instead of the configure script and just pass in thr rpath flags via environment variables. * Honor PKGINFODIR.
106 lines
2.8 KiB
Text
106 lines
2.8 KiB
Text
$NetBSD: patch-aa,v 1.7 2006/03/31 18:35:22 jlam Exp $
|
|
|
|
--- configure.orig 2005-11-04 20:00:47.000000000 -0500
|
|
+++ 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"
|
|
@@ -9276,7 +9341,9 @@ fi;
|
|
if test "${with_iconv_lib+set}" = set; then
|
|
withval="$with_iconv_lib"
|
|
|
|
+ if test "x$withval" != x; then
|
|
ICONV_NAME="$with_iconv_lib"; ICONV_LIB="-l$with_iconv_lib"
|
|
+ fi
|
|
|
|
fi;
|
|
|