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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [expect/] [Dbgconfig.in] - Blame information for rev 1776

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
dnl Process this file with autoconf to produce a configure script.
2
 
3
AC_INIT(Dbg.h)
4
 
5
DBG_MAJOR_VERSION=1
6
DBG_MINOR_VERSION=7
7
DBG_MICRO_VERSION=0
8
DBG_VERSION=$DBG_MAJOR_VERSION.$DBG_MINOR_VERSION
9
DBG_VERSION_FULL=$DBG_VERSION.$DBG_MICRO_VERSION
10
# Tcl's handling of shared_lib_suffix requires this symbol exist
11
VERSION=$DBG_MAJOR_VERSION.$DBG_MINOR_VERSION
12
 
13
AC_CONFIG_HEADER(Dbg_cf.h)
14
 
15
CY_AC_PATH_TCLCONFIG
16
CY_AC_LOAD_TCLCONFIG
17
CC=$TCL_CC
18
AC_PROG_CC
19
CY_AC_C_WORKS
20
 
21
# this'll use a BSD compatible install or our included install-sh
22
AC_PROG_INSTALL
23
 
24
# Tcl sets TCL_RANLIB appropriately for shared library if --enable-shared
25
AC_PROG_RANLIB
26
UNSHARED_RANLIB=$RANLIB
27
 
28
# This is for LynxOS, which needs a flag to force true POSIX when
29
# building. It's weirder than that, cause the flag varies depending
30
# how old the compiler is. So...
31
# -X is for the old "cc" and "gcc" (based on 1.42)
32
# -mposix is for the new gcc (at least 2.5.8)
33
# This modifies the value of $CC to have the POSIX flag added
34
# so it'll configure correctly
35
CY_AC_TCL_LYNX_POSIX
36
 
37
# we really only need the header files
38
CY_AC_PATH_TCLH
39
if test x"$no_tcl" = x"true" ; then
40
    echo "      ERROR: Can't find Tcl directory"
41
    echo "      See README for information on how to obtain Tcl."
42
    echo "      If Tcl is installed, see INSTALL on how to tell"
43
    echo "      configure where Tcl is installed."
44
    exit 1
45
fi
46
 
47
# Use -g on all systems but Linux where it upsets the dynamic X libraries.
48
AC_MSG_CHECKING([if we are running Linux])
49
if test "x`(uname) 2>/dev/null`" = xLinux; then
50
  AC_MSG_RESULT(yes)
51
  linux=1
52
  DBG_CFLAGS=
53
else
54
  AC_MSG_RESULT(no)
55
  linux=0
56
  DBG_CFLAGS=-g
57
fi
58
 
59
#
60
# Look for functions that may be missing
61
#
62
AC_FUNC_CHECK(strchr, AC_DEFINE(HAVE_STRCHR))
63
 
64
#
65
# Look for various header files
66
#
67
AC_HEADER_CHECK(stdlib.h, ,AC_DEFINE(NO_STDLIB_H))
68
 
69
# consume these flags so that user can invoke tcl-debug's configure with
70
# the same command as Tcl's configure
71
AC_ARG_ENABLE(load,
72
        [  --disable-load     disallow dynamic loading],
73
        [disable_dl=yes], [disable_dl=no])
74
 
75
AC_ARG_ENABLE(gcc,
76
        [  --enable-gcc        allow use of gcc if available],
77
        [enable_gcc=yes], [enable_gcc=no])
78
 
79
DBG_UNSHARED_LIB_FILE=libtcldbg.a
80
 
81
AC_MSG_CHECKING([type of library to build])
82
AC_ARG_ENABLE(shared,
83
        [  --enable-shared     build libtcldbg as a shared library],
84
        [enable_shared=yes], [enable_shared=no])
85
if test "$enable_shared" = "yes" -a "x${TCL_SHLIB_SUFFIX}" != "x" ; then
86
  DBG_SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
87
#  DBG_SHARED_LIB_FILE=libtcldbg$DBG_VERSION$TCL_SHLIB_SUFFIX
88
  eval "DBG_SHARED_LIB_FILE=libdbg${TCL_SHARED_LIB_SUFFIX}"
89
  DBG_LIB_FILE=$DBG_SHARED_LIB_FILE
90
  DBG_LIB_FILES="$DBG_SHARED_LIB_FILE $DBG_UNSHARED_LIB_FILE"
91
  AC_MSG_RESULT(both shared and unshared)
92
else
93
  DBG_SHLIB_CFLAGS=
94
  DBG_SHARED_LIB_FILE="reconfigure_Tcl_for_shared_library"
95
  DBG_LIB_FILE=$DBG_UNSHARED_LIB_FILE
96
  DBG_LIB_FILES="$DBG_UNSHARED_LIB_FILE"
97
  AC_MSG_RESULT(unshared)
98
fi
99
 
100
#
101
# Set up makefile substitutions
102
#
103
AC_SUBST(DBG_MAJOR_VERSION)
104
AC_SUBST(DBG_MINOR_VERSION)
105
AC_SUBST(DBG_MICRO_VERSION)
106
AC_SUBST(DBG_VERSION_FULL)
107
AC_SUBST(DBG_VERSION)
108
AC_SUBST(CC)
109
AC_SUBST(DBG_SHARED_LIB_FILE)
110
AC_SUBST(DBG_UNSHARED_LIB_FILE)
111
AC_SUBST(DBG_SHLIB_CFLAGS)
112
AC_SUBST(DBG_LIB_FILE)
113
AC_SUBST(DBG_LIB_FILES)
114
AC_SUBST(DBG_CFLAGS)
115
AC_SUBST(UNSHARED_RANLIB)
116
AC_OUTPUT(Makefile)
117
 

powered by: WebSVN 2.1.0

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