File: configure.in

package info (click to toggle)
tklib 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,156 kB
  • sloc: tcl: 105,088; sh: 2,573; ansic: 792; pascal: 359; makefile: 69; sed: 53; exp: 21
file content (47 lines) | stat: -rw-r--r-- 1,152 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
AC_INIT(ChangeLog)

case "`uname -s`" in
    *win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95*)
	CYGPATH="cygpath -w"
	;;
    *)
	CYGPATH=echo
	;;
esac
AC_SUBST(CYGPATH)

SC_SIMPLE_EXEEXT

AC_ARG_WITH(tclsh, [  --with-tclsh=FILE location of a working tclsh executable], with_tclsh=${withval})

# allow user to override the tclsh we think we found
if test x"${with_tclsh}" != x ; then
    AC_MSG_CHECKING([for tclsh])
    if "${with_tclsh}" < /dev/null > /dev/null 2> /dev/null
    then
        TCLSH_PROG=${with_tclsh}
        AC_MSG_RESULT([$TCLSH_PROG, via --with-tclsh])
    else
        AC_MSG_ERROR([Bad --with-tclsh ${with_tclsh}, not found or not executable])
    fi
    AC_SUBST(TCLSH_PROG)
else
    SC_PROG_TCLSH
fi

# ### ######### ###########################

PACKAGE=`$TCLSH_PROG ${srcdir}/sak.tcl name`
MAJOR_VERSION=`$TCLSH_PROG ${srcdir}/sak.tcl major`
MINOR_VERSION=`$TCLSH_PROG ${srcdir}/sak.tcl minor`
PATCHLEVEL=""

VERSION=${MAJOR_VERSION}.${MINOR_VERSION}${PATCHLEVEL}
NODOT_VERSION=${MAJOR_VERSION}${MINOR_VERSION}

AC_SUBST(PACKAGE)
AC_SUBST(VERSION)

# ### ######### ###########################

AC_OUTPUT([Makefile])