OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [sim/] [erc32/] [configure.ac] - Blame information for rev 227

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
dnl Process this file with autoconf to produce a configure script.
2
AC_PREREQ(2.59)dnl
3
AC_INIT(Makefile.in)
4
AC_CONFIG_HEADER(config.h:config.in)
5
 
6
sinclude(../common/aclocal.m4)
7
 
8
# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
9
# it by inlining the macro's contents.
10
sinclude(../common/common.m4)
11
 
12
AC_CHECK_HEADERS(stdlib.h)
13
 
14
# In the Cygwin environment, we need some additional flags.
15
AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
16
[AC_EGREP_CPP(lose, [
17
#ifdef __CYGWIN__
18
lose
19
#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
20
 
21
if test x$sim_cv_os_cygwin = xyes; then
22
  TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
23
else
24
  AC_CHECK_LIB(termcap, main, TERMCAP=-ltermcap, TERMCAP="")
25
fi
26
AC_SUBST(TERMCAP)
27
 
28
# We prefer the in-tree readline.  Top-level dependencies make sure
29
# src/readline (if it's there) is configured before src/sim.
30
if test -r ../../readline/Makefile; then
31
  READLINE=../../readline/libreadline.a
32
else
33
  AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
34
               AC_ERROR([the required "readline" library is missing]), $TERMCAP)
35
fi
36
AC_SUBST(READLINE)
37
SIM_AC_OUTPUT

powered by: WebSVN 2.1.0

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