source: trunk/dports/lang/ocaml/files/patch-configure @ 4520

Last change on this file since 4520 was 4520, checked in by pguyot (Paul Guyot), 17 years ago

Fixed the labltk variant. This fixes problems with lablgtk.
Bug: #1394
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1--- configure.old       Thu Jan  8 01:29:08 2004
2+++ configure   Thu Jan  8 01:29:41 2004
3@@ -1325,6 +1325,10 @@
4     tk_defs="-I/sw/include"
5     tcl_version=`sh ./runtest $tk_defs $tk_x11_include tclversion.c`
6   fi
7+  if test -z "$tcl_version"; then
8+    tk_defs="-I__PREFIX/include -I/System/Library/Frameworks/Tcl.framework/Versions/8.4/Headers/"
9+    tcl_version=`sh ./runtest $tk_defs $tk_x11_include tclversion.c`
10+  fi
11   if test -n "$tcl_version"; then
12     echo "tcl.h version $tcl_version found with \"$tk_defs\"."
13     case $tcl_version in
14@@ -1376,6 +1380,9 @@
15   elif sh ./hasgot -L/sw/lib $tk_libs -ltcl$tclmaj.$tclmin $tkauxlibs \
16                    Tcl_DoOneEvent
17   then tk_libs="-L/sw/lib -ltk$tkmaj.$tkmin -ltcl$tclmaj.$tclmin $dllib"
18+  elif sh ./hasgot -L__PREFIX/lib $tk_libs -ltcl$tclmaj.$tclmin $tkauxlibs \
19+                   Tcl_DoOneEvent
20+  then tk_libs="-L__PREFIX/lib -ltk$tkmaj.$tkmin -ltcl$tclmaj.$tclmin $dllib"
21   else
22     echo "Tcl library not found."
23     has_tk=false
24@@ -1386,6 +1393,9 @@
25     echo "Tcl/Tk libraries found."
26   elif sh ./hasgot -L/sw/lib $tk_libs $tk_x11_libs $tkauxlibs Tk_SetGrid; then
27     tk_libs="-L/sw/lib $tk_libs"
28+    echo "Tcl/Tk libraries found."
29+  elif sh ./hasgot -L__PREFIX/lib $tk_libs $tk_x11_libs $tkauxlibs Tk_SetGrid; then
30+    tk_libs="-L__PREFIX/lib $tk_libs"
31     echo "Tcl/Tk libraries found."
32   else
33     echo "Tcl library found."
Note: See TracBrowser for help on using the repository browser.