OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [tk/] [win/] [configure.in] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
nl      The file is CYGNUS LOCAL.  It is used for cygwin.
2
 
3
dnl     This file is an input file used by the GNU "autoconf" program to
4
dnl     generate the file "configure", which is run during Tcl installation
5
dnl     to configure the system for the local environment.
6
 
7
AC_PREREQ(2.5)
8
 
9
AC_INIT(../generic/tk.h)
10
 
11
if test "${prefix}" = "NONE"; then
12
    prefix=/usr/local
13
fi
14
if test "${exec_prefix}" = "NONE"; then
15
    exec_prefix=$prefix
16
fi
17
 
18
AC_CANONICAL_HOST
19
 
20
AC_PROG_CC
21
AC_OBJEXT
22
NM=${NM-nm}
23
AC_SUBST(NM)
24
AS=${AS-as}
25
AC_SUBST(AS)
26
LD=${LD-ld}
27
AC_SUBST(LD)
28
DLLTOOL=${DLLTOOL-dlltool}
29
AC_SUBST(DLLTOOL)
30
WINDRES=${WINDRES-windres}
31
AC_SUBST(WINDRES)
32
AC_PROG_INSTALL
33
 
34
# needed for the subtle differences between cygwin and mingw32
35
case "${host}" in
36
*-*-cygwin*)
37
        DLL_LDLIBS=-lcygwin
38
        DLL_LDFLAGS='-nostartfiles -Wl,--dll'
39
        ;;
40
*-*-mingw32*)
41
        DLL_LDLIBS=
42
        DLL_LDFLAGS='-mdll'
43
        ;;
44
esac
45
 
46
AC_SUBST(TCL_ALLOC_OBJ)
47
AC_SUBST(DLL_LDFLAGS)
48
AC_SUBST(DLL_LDLIBS)
49
 
50
# The following stuff is just for tkConfig.sh, not for Makefile.
51
 
52
AC_ARG_WITH(tcl, [  --with-tcl=DIR          use Tcl 8.0 binaries from DIR],
53
        TCL_BIN_DIR=$withval, TCL_BIN_DIR=`cd ../../tcl/unix; pwd`)
54
if test ! -d $TCL_BIN_DIR; then
55
    AC_MSG_ERROR(Tcl directory $TCL_BIN_DIR doesn't exist)
56
fi
57
if test ! -f $TCL_BIN_DIR/tclConfig.sh; then
58
    AC_MSG_ERROR(There's no tclConfig.sh in $TCL_BIN_DIR;  perhaps you didn't specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?)
59
fi
60
 
61
file=$TCL_BIN_DIR/tclConfig.sh
62
. $file
63
SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
64
SHLIB_LD=$TCL_SHLIB_LD
65
SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
66
SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
67
SHLIB_VERSION=$TCL_SHLIB_VERSION
68
DL_LIBS=$TCL_DL_LIBS
69
LD_FLAGS=$TCL_LD_FLAGS
70
TK_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
71
 
72
LIBOBJS=
73
AC_SUBST(LIBOBJS)
74
TK_VERSION=8.0
75
TK_MAJOR_VERSION=8
76
TK_MINOR_VERSION=0
77
TK_PATCH_LEVEL=p2
78
VERSION=${TK_VERSION}
79
 
80
MATH_LIBS=-lm
81
LIBOBJS=
82
 
83
TK_SHLIB_CFLAGS=""
84
eval "TK_LIB_FILE=libtk${TCL_UNSHARED_LIB_SUFFIX}"
85
 
86
TK_UNSHARED_LIB_FILE="$TK_LIB_FILE"
87
TK_SRC_DIR=`cd $srcdir/..; pwd`
88
 
89
XINCLUDES="-I`cd $srcdir/../xlib; pwd`"
90
XLIBSW=
91
TK_BUILD_INCLUDES="-I`cd $srcdir/../generic; pwd` -I`cd $srcdir/../xlib; pwd`"
92
TK_BUILD_LIB_SPEC="-L`pwd` -ltk`echo ${VERSION} | tr -d .`"
93
TK_LIB_SPEC="-L${exec_prefix}/lib -ltk`echo ${VERSION} | tr -d .`"
94
 
95
AC_SUBST(DL_LIBS)
96
AC_SUBST(LD_FLAGS)
97
AC_SUBST(MATH_LIBS)
98
AC_SUBST(TK_BUILD_INCLUDES)
99
AC_SUBST(TK_BUILD_LIB_SPEC)
100
AC_SUBST(TK_LIB_FILE)
101
AC_SUBST(TK_LIB_SPEC)
102
AC_SUBST(TK_MAJOR_VERSION)
103
AC_SUBST(TK_MINOR_VERSION)
104
AC_SUBST(TK_PATCH_LEVEL)
105
AC_SUBST(TK_SRC_DIR)
106
AC_SUBST(TK_VERSION)
107
AC_SUBST(XINCLUDES)
108
AC_SUBST(XLIBSW)
109
 
110
AC_OUTPUT(Makefile ../unix/tkConfig.sh)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.