diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-03-04 16:55:54 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-03-04 16:55:54 (GMT) |
commit | 37294049ea0dcd44ef02a23957f4fae50c200393 (patch) | |
tree | a92fe1ea0f9e70ec3521f967e287bdeb189f06ec /unix | |
parent | 8a5b028a3ecc87e9e9b83fe81c1c0ac11f3dbac1 (diff) | |
parent | c0dd076445aa4353b3647459ac5c36760df8579c (diff) | |
download | tk-37294049ea0dcd44ef02a23957f4fae50c200393.zip tk-37294049ea0dcd44ef02a23957f4fae50c200393.tar.gz tk-37294049ea0dcd44ef02a23957f4fae50c200393.tar.bz2 |
Patch from the cygwin folks
Diffstat (limited to 'unix')
-rwxr-xr-x | unix/configure | 15 | ||||
-rw-r--r-- | unix/tcl.m4 | 3 |
2 files changed, 12 insertions, 6 deletions
diff --git a/unix/configure b/unix/configure index a08ada4..6ea35a4 100755 --- a/unix/configure +++ b/unix/configure @@ -5141,6 +5141,9 @@ fi DL_LIBS="-ldl" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" + TCL_NEEDS_EXP_FILE=1 + TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.dll.a' + TCL_SHLIB_LD_EXTRAS='-Wl,--out-implib,$@.a' ;; dgux*) SHLIB_CFLAGS="-K PIC" @@ -9950,7 +9953,7 @@ ac_x_header_dirs=' /usr/openwin/share/include' if test "$ac_x_includes" = no; then - # Guess where to find include files, by looking for Xlib.h. + # Guess where to find include files, by looking for Intrinsic.h. # First, try using that file with no special directory specified. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -9958,7 +9961,7 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include <X11/Xlib.h> +#include <X11/Intrinsic.h> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 @@ -9985,7 +9988,7 @@ else sed 's/^/| /' conftest.$ac_ext >&5 for ac_dir in $ac_x_header_dirs; do - if test -r "$ac_dir/X11/Xlib.h"; then + if test -r "$ac_dir/X11/Intrinsic.h"; then ac_x_includes=$ac_dir break fi @@ -9999,18 +10002,18 @@ if test "$ac_x_libraries" = no; then # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS - LIBS="-lX11 $LIBS" + LIBS="-lXt $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include <X11/Xlib.h> +#include <X11/Intrinsic.h> int main () { -XrmInitialize () +XtMalloc (0) ; return 0; } diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 78eacd9..37c7c74 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1245,6 +1245,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ DL_LIBS="-ldl" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" + TCL_NEEDS_EXP_FILE=1 + TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.dll.a' + TCL_SHLIB_LD_EXTRAS='-Wl,--out-implib,$[@].a' ;; dgux*) SHLIB_CFLAGS="-K PIC" |