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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [win/] [configure.in] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
dnl This whole file is CYGNUS LOCAL
2
 
3
AC_INIT(../generic/tixInit.c)
4
 
5
AC_PROG_CC
6
AC_OBJEXT
7
NM=${NM-nm}
8
AC_SUBST(NM)
9
AS=${AS-as}
10
AC_SUBST(AS)
11
LD=${LD-ld}
12
AC_SUBST(LD)
13
DLLTOOL=${DLLTOOL-dlltool}
14
AC_SUBST(DLLTOOL)
15
WINDRES=${WINDRES-windres}
16
AC_SUBST(WINDRES)
17
AC_PROG_INSTALL
18
 
19
# Check for Tcl and Tk.
20
CYG_AC_PATH_TCLCONFIG
21
CYG_AC_LOAD_TCLCONFIG
22
CYG_AC_PATH_TKCONFIG
23
CYG_AC_LOAD_TKCONFIG
24
CYG_AC_PATH_TCLH
25
# FIXME: consider only doing this if --with-x given.
26
CYG_AC_PATH_TKH
27
 
28
TCL_VER=${TCL_VERSION}
29
AC_SUBST(TCL_VER)
30
 
31
if test -d tcl${TCL_VERSION}; then
32
  true
33
else
34
  mkdir tcl${TCL_VERSION}
35
fi
36
 
37
SRC_DIR=`cd ${srcdir}/..; pwd`
38
AC_SUBST(SRC_DIR)
39
 
40
TIX_VERSION=4.1
41
AC_SUBST(TIX_VERSION)
42
 
43
VERSION=${TIX_VERSION}.${TCL_VERSION}
44
 
45
if test "$GCC" = yes; then
46
    TIX_BUILD_LIB_SPEC="-L`pwd`/tcl${TCL_VERSION} -ltix`echo ${VERSION} | tr -d .`"
47
    TIX_LIB_FULL_PATH="`pwd`/tcl${TCL_VERSION}/libtix`echo ${VERSION} | tr -d .`.a"
48
    TIX_LIB_FILE="libtix`echo ${VERSION} | tr -d .`.a"
49
    TIX_BUILD_LOCATION="`pwd`/tcl${TCL_VERSION}"
50
else
51
    tmp="`pwd`/libtix`echo ${VERSION} | tr -d .`.a"
52
    TIX_LIB_FILE="libtix`echo ${VERSION} | tr -d .`.a"
53
    tmp2="`cygpath --windows $tmp`"
54
    TIX_BUILD_LIB_SPEC="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
55
    TIX_LIB_FULL_PATH=${TIX_BUILD_LIB_SPEC}
56
    TIX_BUILD_LOCATION="`pwd`\\tcl${TCL_VERSION}"
57
fi
58
 
59
case "${host}" in
60
*-*-cygwin*)
61
        touch ac$$.c
62
        if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
63
            case "$EXTRA_CFLAGS" in
64
                *-mwin32*) ;;
65
                *) EXTRA_CFLAGS="-mwin32 $EXTRA_CFLAGS" ;;
66
            esac
67
        fi
68
        rm -f ac$$.o ac$$.c
69
        ;;
70
esac
71
AC_SUBST(EXTRA_CFLAGS)
72
 
73
AC_SUBST(TIX_BUILD_LIB_SPEC)
74
AC_SUBST(TIX_LIB_FILE)
75
AC_SUBST(TIX_BUILD_LOCATION)
76
AC_SUBST(TIX_LIB_FULL_PATH)
77
 
78
AC_OUTPUT(Makefile ../tixConfig.sh)

powered by: WebSVN 2.1.0

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