URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [insight/] [expect/] [Dbgconfig.in] - Rev 1782
Compare with Previous | Blame | View Log
dnl Process this file with autoconf to produce a configure script.AC_INIT(Dbg.h)DBG_MAJOR_VERSION=1DBG_MINOR_VERSION=7DBG_MICRO_VERSION=0DBG_VERSION=$DBG_MAJOR_VERSION.$DBG_MINOR_VERSIONDBG_VERSION_FULL=$DBG_VERSION.$DBG_MICRO_VERSION# Tcl's handling of shared_lib_suffix requires this symbol existVERSION=$DBG_MAJOR_VERSION.$DBG_MINOR_VERSIONAC_CONFIG_HEADER(Dbg_cf.h)CY_AC_PATH_TCLCONFIGCY_AC_LOAD_TCLCONFIGCC=$TCL_CCAC_PROG_CCCY_AC_C_WORKS# this'll use a BSD compatible install or our included install-shAC_PROG_INSTALL# Tcl sets TCL_RANLIB appropriately for shared library if --enable-sharedAC_PROG_RANLIBUNSHARED_RANLIB=$RANLIB# This is for LynxOS, which needs a flag to force true POSIX when# building. It's weirder than that, cause the flag varies depending# how old the compiler is. So...# -X is for the old "cc" and "gcc" (based on 1.42)# -mposix is for the new gcc (at least 2.5.8)# This modifies the value of $CC to have the POSIX flag added# so it'll configure correctlyCY_AC_TCL_LYNX_POSIX# we really only need the header filesCY_AC_PATH_TCLHif test x"$no_tcl" = x"true" ; thenecho " ERROR: Can't find Tcl directory"echo " See README for information on how to obtain Tcl."echo " If Tcl is installed, see INSTALL on how to tell"echo " configure where Tcl is installed."exit 1fi# Use -g on all systems but Linux where it upsets the dynamic X libraries.AC_MSG_CHECKING([if we are running Linux])if test "x`(uname) 2>/dev/null`" = xLinux; thenAC_MSG_RESULT(yes)linux=1DBG_CFLAGS=elseAC_MSG_RESULT(no)linux=0DBG_CFLAGS=-gfi## Look for functions that may be missing#AC_FUNC_CHECK(strchr, AC_DEFINE(HAVE_STRCHR))## Look for various header files#AC_HEADER_CHECK(stdlib.h, ,AC_DEFINE(NO_STDLIB_H))# consume these flags so that user can invoke tcl-debug's configure with# the same command as Tcl's configureAC_ARG_ENABLE(load,[ --disable-load disallow dynamic loading],[disable_dl=yes], [disable_dl=no])AC_ARG_ENABLE(gcc,[ --enable-gcc allow use of gcc if available],[enable_gcc=yes], [enable_gcc=no])DBG_UNSHARED_LIB_FILE=libtcldbg.aAC_MSG_CHECKING([type of library to build])AC_ARG_ENABLE(shared,[ --enable-shared build libtcldbg as a shared library],[enable_shared=yes], [enable_shared=no])if test "$enable_shared" = "yes" -a "x${TCL_SHLIB_SUFFIX}" != "x" ; thenDBG_SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS# DBG_SHARED_LIB_FILE=libtcldbg$DBG_VERSION$TCL_SHLIB_SUFFIXeval "DBG_SHARED_LIB_FILE=libdbg${TCL_SHARED_LIB_SUFFIX}"DBG_LIB_FILE=$DBG_SHARED_LIB_FILEDBG_LIB_FILES="$DBG_SHARED_LIB_FILE $DBG_UNSHARED_LIB_FILE"AC_MSG_RESULT(both shared and unshared)elseDBG_SHLIB_CFLAGS=DBG_SHARED_LIB_FILE="reconfigure_Tcl_for_shared_library"DBG_LIB_FILE=$DBG_UNSHARED_LIB_FILEDBG_LIB_FILES="$DBG_UNSHARED_LIB_FILE"AC_MSG_RESULT(unshared)fi## Set up makefile substitutions#AC_SUBST(DBG_MAJOR_VERSION)AC_SUBST(DBG_MINOR_VERSION)AC_SUBST(DBG_MICRO_VERSION)AC_SUBST(DBG_VERSION_FULL)AC_SUBST(DBG_VERSION)AC_SUBST(CC)AC_SUBST(DBG_SHARED_LIB_FILE)AC_SUBST(DBG_UNSHARED_LIB_FILE)AC_SUBST(DBG_SHLIB_CFLAGS)AC_SUBST(DBG_LIB_FILE)AC_SUBST(DBG_LIB_FILES)AC_SUBST(DBG_CFLAGS)AC_SUBST(UNSHARED_RANLIB)AC_OUTPUT(Makefile)
