3fcbbe7
diff -urN graphviz-2.12/configure graphviz-2.12-patched/configure
3fcbbe7
--- graphviz-2.12/configure	2006-12-04 16:02:10.000000000 -0600
3fcbbe7
+++ graphviz-2.12-patched/configure	2007-02-07 08:20:19.000000000 -0600
3fcbbe7
@@ -26251,8 +26251,8 @@
3fcbbe7
 fi;
3fcbbe7
 
3fcbbe7
 if test "x$TCLSH" = "x"; then
3fcbbe7
-    # Extract the first word of "tclsh8.4", so it can be a program name with args.
3fcbbe7
-set dummy tclsh8.4; ac_word=$2
3fcbbe7
+    # Extract the first word of "tclsh8.5", so it can be a program name with args.
3fcbbe7
+set dummy tclsh8.5; ac_word=$2
3fcbbe7
 echo "$as_me:$LINENO: checking for $ac_word" >&5
3fcbbe7
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3fcbbe7
 if test "${ac_cv_path_TCLSH+set}" = set; then
3fcbbe7
@@ -26291,8 +26291,8 @@
3fcbbe7
 fi
3fcbbe7
 
3fcbbe7
     if test "x$TCLSH" = "x"; then
3fcbbe7
-        # Extract the first word of "tclsh8.3", so it can be a program name with args.
3fcbbe7
-set dummy tclsh8.3; ac_word=$2
3fcbbe7
+        # Extract the first word of "tclsh8.4", so it can be a program name with args.
3fcbbe7
+set dummy tclsh8.4; ac_word=$2
3fcbbe7
 echo "$as_me:$LINENO: checking for $ac_word" >&5
3fcbbe7
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3fcbbe7
 if test "${ac_cv_path_TCLSH+set}" = set; then
3fcbbe7
@@ -26331,7 +26331,47 @@
3fcbbe7
 fi
3fcbbe7
 
3fcbbe7
         if test "x$TCLSH" = "x"; then
3fcbbe7
-            # Extract the first word of "tclsh", so it can be a program name with args.
3fcbbe7
+            # Extract the first word of "tclsh8.3", so it can be a program name with args.
3fcbbe7
+set dummy tclsh8.3; ac_word=$2
3fcbbe7
+echo "$as_me:$LINENO: checking for $ac_word" >&5
3fcbbe7
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3fcbbe7
+if test "${ac_cv_path_TCLSH+set}" = set; then
3fcbbe7
+  echo $ECHO_N "(cached) $ECHO_C" >&6
3fcbbe7
+else
3fcbbe7
+  case $TCLSH in
3fcbbe7
+  [\\/]* | ?:[\\/]*)
3fcbbe7
+  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
3fcbbe7
+  ;;
3fcbbe7
+  *)
3fcbbe7
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3fcbbe7
+for as_dir in $PATH
3fcbbe7
+do
3fcbbe7
+  IFS=$as_save_IFS
3fcbbe7
+  test -z "$as_dir" && as_dir=.
3fcbbe7
+  for ac_exec_ext in '' $ac_executable_extensions; do
3fcbbe7
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3fcbbe7
+    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
3fcbbe7
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3fcbbe7
+    break 2
3fcbbe7
+  fi
3fcbbe7
+done
3fcbbe7
+done
3fcbbe7
+
3fcbbe7
+  ;;
3fcbbe7
+esac
3fcbbe7
+fi
3fcbbe7
+TCLSH=$ac_cv_path_TCLSH
3fcbbe7
+
3fcbbe7
+if test -n "$TCLSH"; then
3fcbbe7
+  echo "$as_me:$LINENO: result: $TCLSH" >&5
3fcbbe7
+echo "${ECHO_T}$TCLSH" >&6
3fcbbe7
+else
3fcbbe7
+  echo "$as_me:$LINENO: result: no" >&5
3fcbbe7
+echo "${ECHO_T}no" >&6
3fcbbe7
+fi
3fcbbe7
+
3fcbbe7
+            if test "x$TCLSH" = "x"; then
3fcbbe7
+                # Extract the first word of "tclsh", so it can be a program name with args.
3fcbbe7
 set dummy tclsh; ac_word=$2
3fcbbe7
 echo "$as_me:$LINENO: checking for $ac_word" >&5
3fcbbe7
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3fcbbe7
@@ -26370,6 +26410,7 @@
3fcbbe7
 echo "${ECHO_T}no" >&6
3fcbbe7
 fi
3fcbbe7
 
3fcbbe7
+            fi
3fcbbe7
         fi
3fcbbe7
     fi
3fcbbe7
 fi
3fcbbe7
@@ -26674,8 +26715,8 @@
3fcbbe7
   WISH=$withval
3fcbbe7
 fi;
3fcbbe7
     if test "x$WISH" = "x"; then
3fcbbe7
-        # Extract the first word of "wish8.4", so it can be a program name with args.
3fcbbe7
-set dummy wish8.4; ac_word=$2
3fcbbe7
+        # Extract the first word of "wish8.5", so it can be a program name with args.
3fcbbe7
+set dummy wish8.5; ac_word=$2
3fcbbe7
 echo "$as_me:$LINENO: checking for $ac_word" >&5
3fcbbe7
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3fcbbe7
 if test "${ac_cv_path_WISH+set}" = set; then
3fcbbe7
@@ -26714,7 +26755,47 @@
3fcbbe7
 fi
3fcbbe7
 
3fcbbe7
         if test "x$WISH" = "x"; then
3fcbbe7
-    	    # Extract the first word of "wish8.3", so it can be a program name with args.
3fcbbe7
+            # Extract the first word of "wish8.4", so it can be a program name with args.
3fcbbe7
+set dummy wish8.4; ac_word=$2
3fcbbe7
+echo "$as_me:$LINENO: checking for $ac_word" >&5
3fcbbe7
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3fcbbe7
+if test "${ac_cv_path_WISH+set}" = set; then
3fcbbe7
+  echo $ECHO_N "(cached) $ECHO_C" >&6
3fcbbe7
+else
3fcbbe7
+  case $WISH in
3fcbbe7
+  [\\/]* | ?:[\\/]*)
3fcbbe7
+  ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3fcbbe7
+  ;;
3fcbbe7
+  *)
3fcbbe7
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3fcbbe7
+for as_dir in $PATH
3fcbbe7
+do
3fcbbe7
+  IFS=$as_save_IFS
3fcbbe7
+  test -z "$as_dir" && as_dir=.
3fcbbe7
+  for ac_exec_ext in '' $ac_executable_extensions; do
3fcbbe7
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3fcbbe7
+    ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
3fcbbe7
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3fcbbe7
+    break 2
3fcbbe7
+  fi
3fcbbe7
+done
3fcbbe7
+done
3fcbbe7
+
3fcbbe7
+  ;;
3fcbbe7
+esac
3fcbbe7
+fi
3fcbbe7
+WISH=$ac_cv_path_WISH
3fcbbe7
+
3fcbbe7
+if test -n "$WISH"; then
3fcbbe7
+  echo "$as_me:$LINENO: result: $WISH" >&5
3fcbbe7
+echo "${ECHO_T}$WISH" >&6
3fcbbe7
+else
3fcbbe7
+  echo "$as_me:$LINENO: result: no" >&5
3fcbbe7
+echo "${ECHO_T}no" >&6
3fcbbe7
+fi
3fcbbe7
+
3fcbbe7
+            if test "x$WISH" = "x"; then
3fcbbe7
+                # Extract the first word of "wish8.3", so it can be a program name with args.
3fcbbe7
 set dummy wish8.3; ac_word=$2
3fcbbe7
 echo "$as_me:$LINENO: checking for $ac_word" >&5
3fcbbe7
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3fcbbe7
@@ -26753,8 +26834,8 @@
3fcbbe7
 echo "${ECHO_T}no" >&6
3fcbbe7
 fi
3fcbbe7
 
3fcbbe7
-    	    if test "x$WISH" = "x"; then
3fcbbe7
-                # Extract the first word of "wish", so it can be a program name with args.
3fcbbe7
+                if test "x$WISH" = "x"; then
3fcbbe7
+                    # Extract the first word of "wish", so it can be a program name with args.
3fcbbe7
 set dummy wish; ac_word=$2
3fcbbe7
 echo "$as_me:$LINENO: checking for $ac_word" >&5
3fcbbe7
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3fcbbe7
@@ -26793,6 +26874,7 @@
3fcbbe7
 echo "${ECHO_T}no" >&6
3fcbbe7
 fi
3fcbbe7
 
3fcbbe7
+                fi
3fcbbe7
             fi
3fcbbe7
         fi
3fcbbe7
     fi
3fcbbe7
@@ -26815,7 +26897,7 @@
3fcbbe7
     WISH_EXEC_PREFIX=`echo $WISH|sed -e 's%/bin/wish.*$%%'`
3fcbbe7
 
3fcbbe7
     if test -f ${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/tk.h; then
3fcbbe7
-	TK_INCLUDES="-I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND} -I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/generic"
3fcbbe7
+	TK_INCLUDES="-I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND} -I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/generic -I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/unix"
3fcbbe7
     else
3fcbbe7
         if test "x${WISH_EXEC_PREFIX}" != "x/usr" -a -f ${WISH_EXEC_PREFIX}/include/tk.h; then
3fcbbe7
 	    TK_INCLUDES=-I${WISH_EXEC_PREFIX}/include
3fcbbe7
@@ -33490,7 +33572,7 @@
3fcbbe7
 # -----------------------------------
3fcbbe7
 # tkInt.h
3fcbbe7
 if test -f "$TK_SRC_DIR/generic/tkInt.h"; then
3fcbbe7
-TKINT_INCLUDES="-I$TK_SRC_DIR/generic"
3fcbbe7
+TKINT_INCLUDES="-I$TK_SRC_DIR/generic -I$TK_SRC_DIR/unix"
3fcbbe7
 else
3fcbbe7
 if test -f "/usr/include/tkInt.h"; then
3fcbbe7
 TKINT_INCLUDES=""
3fcbbe7
diff -urN graphviz-2.12/configure.ac graphviz-2.12-patched/configure.ac
3fcbbe7
--- graphviz-2.12/configure.ac	2006-12-04 15:11:58.000000000 -0600
3fcbbe7
+++ graphviz-2.12-patched/configure.ac	2007-02-07 08:20:02.000000000 -0600
3fcbbe7
@@ -755,11 +755,14 @@
3fcbbe7
     TCLSH=$withval,)
3fcbbe7
 
3fcbbe7
 if test "x$TCLSH" = "x"; then
3fcbbe7
-    AC_PATH_PROG(TCLSH,tclsh8.4)
3fcbbe7
+    AC_PATH_PROG(TCLSH,tclsh8.5)
3fcbbe7
     if test "x$TCLSH" = "x"; then
3fcbbe7
-        AC_PATH_PROG(TCLSH,tclsh8.3)
3fcbbe7
+        AC_PATH_PROG(TCLSH,tclsh8.4)
3fcbbe7
         if test "x$TCLSH" = "x"; then
3fcbbe7
-            AC_PATH_PROG(TCLSH,tclsh)
3fcbbe7
+            AC_PATH_PROG(TCLSH,tclsh8.3)
3fcbbe7
+            if test "x$TCLSH" = "x"; then
3fcbbe7
+                AC_PATH_PROG(TCLSH,tclsh)
3fcbbe7
+            fi
3fcbbe7
         fi
3fcbbe7
     fi
3fcbbe7
 fi
3fcbbe7
@@ -904,11 +907,14 @@
3fcbbe7
         [  --with-wish=PROG        build graphviz for specific wish],
3fcbbe7
         WISH=$withval,)
3fcbbe7
     if test "x$WISH" = "x"; then
3fcbbe7
-        AC_PATH_PROG(WISH,wish8.4)
3fcbbe7
+        AC_PATH_PROG(WISH,wish8.5)
3fcbbe7
         if test "x$WISH" = "x"; then
3fcbbe7
-    	    AC_PATH_PROG(WISH,wish8.3)
3fcbbe7
-    	    if test "x$WISH" = "x"; then
3fcbbe7
-                AC_PATH_PROG(WISH,wish)
3fcbbe7
+            AC_PATH_PROG(WISH,wish8.4)
3fcbbe7
+            if test "x$WISH" = "x"; then
3fcbbe7
+                AC_PATH_PROG(WISH,wish8.3)
3fcbbe7
+                if test "x$WISH" = "x"; then
3fcbbe7
+                    AC_PATH_PROG(WISH,wish)
3fcbbe7
+                fi
3fcbbe7
             fi
3fcbbe7
         fi
3fcbbe7
     fi
3fcbbe7
@@ -930,7 +936,7 @@
3fcbbe7
     WISH_EXEC_PREFIX=`echo $WISH|sed -e 's%/bin/wish.*$%%'`
3fcbbe7
 
3fcbbe7
     if test -f ${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/tk.h; then
3fcbbe7
-	TK_INCLUDES="-I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND} -I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/generic"
3fcbbe7
+	TK_INCLUDES="-I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND} -I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/generic -I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/unix"
3fcbbe7
     else
3fcbbe7
         if test "x${WISH_EXEC_PREFIX}" != "x/usr" -a -f ${WISH_EXEC_PREFIX}/include/tk.h; then
3fcbbe7
 	    TK_INCLUDES=-I${WISH_EXEC_PREFIX}/include
3fcbbe7
@@ -1673,7 +1679,7 @@
3fcbbe7
 # -----------------------------------
3fcbbe7
 # tkInt.h
3fcbbe7
 if test -f "$TK_SRC_DIR/generic/tkInt.h"; then
3fcbbe7
-TKINT_INCLUDES="-I$TK_SRC_DIR/generic"
3fcbbe7
+TKINT_INCLUDES="-I$TK_SRC_DIR/generic -I$TK_SRC_DIR/unix"
3fcbbe7
 else
3fcbbe7
 if test -f "/usr/include/tkInt.h"; then
3fcbbe7
 TKINT_INCLUDES=""