File: configure.in

package info (click to toggle)
iwidgets4 4.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,040 kB
  • sloc: tcl: 19,688; sh: 638; awk: 273; perl: 265; makefile: 130
file content (88 lines) | stat: -rw-r--r-- 2,971 bytes parent folder | download | duplicates (2)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
dnl	This file is an input file used by the GNU "autoconf" program to
dnl	generate the file "configure", which is run during [incr Tcl]
dnl installation to configure the system for the local environment.

# RCS: $Id: configure.in,v 1.17 2017/06/28 20:03:21 dgp Exp $

AC_INIT([iwidgets], [4.1.1])

TEA_INIT([3.2])

AC_CONFIG_AUX_DIR(tclconfig)

AC_CONFIG_SRCDIR([generic/buttonbox.itk])


#--------------------------------------------------------------------
#   See if there was a command-line option for where Tcl or Tk is;  if
#   not, search for Tcl and/or Tk.
#--------------------------------------------------------------------

TEA_PATH_TCLCONFIG
TEA_LOAD_TCLCONFIG

TEA_PATH_TKCONFIG
TEA_LOAD_TKCONFIG

TEA_PATH_CONFIG(itcl)
TEA_LOAD_CONFIG(itcl)

AC_PROG_INSTALL

#--------------------------------------------------------------------
# See if --with-itcl was specified to give the [incr Tcl] and [incr Tk]
# source code location.  If not, then we'll assume that the Iwidgets
# package is being installed directly beneath the toplevel Itcl directory.
#--------------------------------------------------------------------

#AC_ARG_WITH(itcl, [  --with-itcl=DIR         use Itcl 3.0 binaries from DIR],
#        itcl_search=$withval, itcl_search=`cd ${srcdir}/..; pwd`)

ITCL_LIB_DIR=""
if test -r $itcl_SRC_DIR/library/itcl.tcl; then
    ITCL_LIB_DIR=$itcl_SRC_DIR/library
fi

#if test -z "$ITCL_LIB_DIR"; then
#    AC_MSG_ERROR([Can't find Itcl source.  Use --with-itcl to specify the the toplevel [incr Tcl] directory on your system.  This directory should contain library/itcl.tcl.])
#fi

AC_ARG_WITH(itk, [  --with-itk=DIR         use Itk 3.0 binaries from DIR],
        itk_search=$withval, itk_search=`cd ${srcdir}/..; pwd`)

ITK_LIB_DIR=""
if test -r $itk_search/library/itk.tcl; then
    ITK_LIB_DIR=$itk_search/library
    ITK_SRC_DIR=$itk_search
fi

#if test -z "$ITK_LIB_DIR"; then
#    AC_MSG_ERROR([Can't find Itk source.  Use --with-itk to specify the the toplevel [incr Tk] directory on your system.  This directory should contain library/itk.tcl.])
#fi

#--------------------------------------------------------------------
# Handle the --prefix=... option by defaulting to what Tcl gave.
# Must be called after TEA_LOAD_TCLCONFIG and before $prefix is used.
#--------------------------------------------------------------------

TEA_PREFIX

#--------------------------------------------------------------------
#   Needed for running the test suite
#--------------------------------------------------------------------

TEA_CONFIG_CFLAGS([])
TEA_PROG_TCLSH
TEA_PROG_WISH

#--------------------------------------------------------------------
#   Fill in template files with the proper info.
#--------------------------------------------------------------------
AC_SUBST(TCL_SRC_DIR)
AC_SUBST(TK_SRC_DIR)
AC_SUBST(ITCL_LIB_DIR)
AC_SUBST(ITK_LIB_DIR)
AC_SUBST(ITK_SRC_DIR)
AC_SUBST(IWIDGETS_SRC_DIR)

AC_OUTPUT([Makefile iwidgets.tcl pkgIndex.tcl])