1AC_INIT(ChangeLog) 2 3case "`uname -s`" in 4 *win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95*) 5 CYGPATH="cygpath -w" 6 ;; 7 *) 8 CYGPATH=echo 9 ;; 10esac 11AC_SUBST(CYGPATH) 12 13AC_ARG_WITH(tclsh, [ --with-tclsh=FILE location of a working tclsh executable], with_tclsh=${withval}) 14 15SC_SIMPLE_EXEEXT 16 17# allow user to override the tclsh we think we found 18if test x"${with_tclsh}" != x ; then 19 AC_MSG_CHECKING([for tclsh]) 20 if "${with_tclsh}" < /dev/null > /dev/null 2> /dev/null 21 then 22 TCLSH_PROG=${with_tclsh} 23 AC_MSG_RESULT([$TCLSH_PROG, via --with-tclsh]) 24 else 25 AC_MSG_ERROR([Bad --with-tclsh ${with_tclsh}, not found or not executable]) 26 fi 27 AC_SUBST(TCLSH_PROG) 28else 29 SC_PROG_TCLSH 30fi 31 32 33# ### ######### ########################### 34 35SAK=`$CYGPATH ${srcdir}/sak.tcl` 36 37PACKAGE=`$TCLSH_PROG "${SAK}" name` 38MAJOR_VERSION=`$TCLSH_PROG "${SAK}" major` 39MINOR_VERSION=`$TCLSH_PROG "${SAK}" minor` 40PATCHLEVEL="" 41 42VERSION=${MAJOR_VERSION}.${MINOR_VERSION}${PATCHLEVEL} 43NODOT_VERSION=${MAJOR_VERSION}${MINOR_VERSION} 44 45AC_SUBST(PACKAGE) 46AC_SUBST(VERSION) 47 48# ### ######### ########################### 49 50AC_OUTPUT([Makefile]) 51