]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/erc32/configure.ac
Update copyright year range in all GDB files
[thirdparty/binutils-gdb.git] / sim / erc32 / configure.ac
CommitLineData
e2882c85 1dnl Copyright (C) 1996-2018 Free Software Foundation, Inc.
17d88f73
JB
2dnl
3dnl This program is free software; you can redistribute it and/or modify
4dnl it under the terms of the GNU General Public License as published by
5dnl the Free Software Foundation; either version 3 of the License, or
6dnl (at your option) any later version.
7dnl
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11dnl GNU General Public License for more details.
12dnl
13dnl You should have received a copy of the GNU General Public License
14dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
15
c906108c 16dnl Process this file with autoconf to produce a configure script.
6ffe910a 17AC_PREREQ(2.64)dnl
c906108c 18AC_INIT(Makefile.in)
9c082ca8 19sinclude(../common/acinclude.m4)
c906108c 20
6ffe910a 21SIM_AC_COMMON
35695fd6 22
7a292a7a
SS
23# In the Cygwin environment, we need some additional flags.
24AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
25[AC_EGREP_CPP(lose, [
26#ifdef __CYGWIN__
27lose
28#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
29
30if test x$sim_cv_os_cygwin = xyes; then
31 TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
32else
b909d38d
MF
33 # Keep in sync with gdb's configure.ac list.
34 AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],
35 [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])
7a292a7a 36fi
c906108c
SS
37AC_SUBST(TERMCAP)
38
70a9be63
HPN
39# We prefer the in-tree readline. Top-level dependencies make sure
40# src/readline (if it's there) is configured before src/sim.
41if test -r ../../readline/Makefile; then
42 READLINE=../../readline/libreadline.a
43else
44 AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
45 AC_ERROR([the required "readline" library is missing]), $TERMCAP)
46fi
47AC_SUBST(READLINE)
c906108c 48SIM_AC_OUTPUT