Revert patchset for c++/16253: it causes a large performance regression.
[deliverable/binutils-gdb.git] / sim / erc32 / configure.ac
CommitLineData
c906108c 1dnl Process this file with autoconf to produce a configure script.
6ffe910a 2AC_PREREQ(2.64)dnl
c906108c 3AC_INIT(Makefile.in)
9c082ca8 4sinclude(../common/acinclude.m4)
c906108c 5
6ffe910a 6SIM_AC_COMMON
35695fd6 7
c906108c
SS
8AC_CHECK_HEADERS(stdlib.h)
9
7a292a7a
SS
10# In the Cygwin environment, we need some additional flags.
11AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
12[AC_EGREP_CPP(lose, [
13#ifdef __CYGWIN__
14lose
15#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
16
17if test x$sim_cv_os_cygwin = xyes; then
18 TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
19else
b909d38d
MF
20 # Keep in sync with gdb's configure.ac list.
21 AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],
22 [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])
7a292a7a 23fi
c906108c
SS
24AC_SUBST(TERMCAP)
25
70a9be63
HPN
26# We prefer the in-tree readline. Top-level dependencies make sure
27# src/readline (if it's there) is configured before src/sim.
28if test -r ../../readline/Makefile; then
29 READLINE=../../readline/libreadline.a
30else
31 AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
32 AC_ERROR([the required "readline" library is missing]), $TERMCAP)
33fi
34AC_SUBST(READLINE)
c906108c 35SIM_AC_OUTPUT
This page took 0.628391 seconds and 4 git commands to generate.