improve handling of --disable-tcl
authorellson <devnull@localhost>
Thu, 3 Jan 2008 22:47:49 +0000 (22:47 +0000)
committerellson <devnull@localhost>
Thu, 3 Jan 2008 22:47:49 +0000 (22:47 +0000)
configure.ac

index eb3495ddaef68514b043aa5b6ffef62c71162fc4..24dc83ac6b7f6aa4af6664f9024431f07ea1e2d4 100644 (file)
@@ -1098,6 +1098,7 @@ else
 HAVE_TCL=0
 fi
 
+if test "$HAVE_TCL" = "1"; then
 AC_ARG_WITH(tclsh,
     [AC_HELP_STRING([--with-tcl=PROG], [use a specific tclsh])],
     TCLSH=$withval,)
@@ -1118,6 +1119,7 @@ if test "x$TCLSH" = "x"; then
         HAVE_TCL=0
     fi
 fi
+fi
 
 if test "$HAVE_TCL" = "1"; then
     TCL_VERSION_FOUND=`echo 'puts [[info tclversion]]' | $TCLSH`