$NetBSD: patch-ab,v 1.10 2008/01/05 20:59:00 rillig Exp $ --- configure.orig 2006-06-09 17:54:33.000000000 +0000 +++ configure @@ -7765,7 +7765,7 @@ if test "${enable_double_buffer+set}" = else - if test "x$xc_with_GL" == "x" ; then + if test "x$xc_with_GL" = "x" ; then cat >>confdefs.h <<\_ACEOF #define DOUBLEBUFFER 1 _ACEOF @@ -8144,7 +8144,7 @@ if test "${with_tcl+set}" = set; then withval="$with_tcl" xc_with_tcl=$withval - if test "$withval" == "no" -o "$withval" == "NO"; then + if test "$withval" = "no" -o "$withval" = "NO"; then xc_with_tcl="" fi @@ -8735,12 +8735,12 @@ if test "x$xc_with_tcl" != "x" ; then if test "x${xc_with_tcl_includes}" != "x" ; then if test -r "${xc_with_tcl_includes}/tcl.h" ; then TCL_INC_DIR=${xc_with_tcl_includes} - elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then + elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then echo "Can't find tcl.h in \"${xc_with_tcl_includes}\"" echo "Reverting to non-Tcl compilation" xc_with_tcl="" fi - elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then + elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then for dir in \ ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \ ${TCL_PREFIX}/include \ @@ -8794,7 +8794,7 @@ fi if test "x$xc_with_tcl" != "x" ; then case $target in - *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-openbsd*|OpenBSD-*) + *-sunos4*|*-*-netbsd|*-*-netbsdelf|NetBSD-*|FreeBSD-*|OpenBSD-*|*-*-dragonfly*) TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}" TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}" ;; @@ -9246,7 +9246,7 @@ fi EXTRA_LIB_SPECS="-ldl" ;; - *-netbsd*|*-freebsd*|*-openbsd*) + *-netbsd*|*-freebsd*|*-openbsd*|*-*-dragonfly*) # Not available on all versions: check for include file. if test "${ac_cv_header_dlfcn_h+set}" = set; then echo "$as_me:$LINENO: checking for dlfcn.h" >&5 @@ -9393,8 +9393,8 @@ fi if test "$test_ok" = yes; then - SHLIB_CFLAGS="-fpic" - SHLIB_LD="ld" + SHLIB_CFLAGS="-fPIC" + SHLIB_LD=$CC LDDL_FLAGS="-shared" fi ;;