]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/configure.ac
Update year range in copyright notice of all files owned by the GDB project.
[thirdparty/binutils-gdb.git] / gdb / testsuite / configure.ac
CommitLineData
b39c905e
MK
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
c906108c 3
32d0add0 4# Copyright 2002-2015 Free Software Foundation, Inc.
b39c905e
MK
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
5a0e3bd0
JB
8# the Free Software Foundation; either version 3 of the License, or
9# (at your option) any later version.
b39c905e
MK
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
5a0e3bd0 17# along with this program. If not, see <http://www.gnu.org/licenses/>.
b39c905e 18
bec39cab 19AC_PREREQ(2.59)
c906108c
SS
20AC_INIT(gdb.base)
21
b39c905e
MK
22AC_CANONICAL_BUILD
23AC_CANONICAL_HOST
24AC_CANONICAL_TARGET
c906108c 25
be2a5f71
DJ
26ACX_NONCANONICAL_TARGET
27
6bc80edc
TT
28# Check for the 'make' the user wants to use.
29AC_CHECK_PROGS(MAKE, make)
30MAKE_IS_GNU=
31case "`$MAKE --version 2>&1 | sed 1q`" in
32 *GNU*)
33 MAKE_IS_GNU=yes
34 ;;
35esac
36AM_CONDITIONAL(GMAKE, test "$MAKE_IS_GNU" = yes)
37AC_PROG_MAKE_SET
38
a13c5393
YQ
39# Enable gdbtk.
40AC_ARG_ENABLE(gdbtk,
41[ --enable-gtk enable gdbtk graphical user interface (GUI)],,
42 [if test -d $srcdir/../gdbtk && test -d $srcdir/gdb.gdbtk; then
43 enable_gdbtk=yes
44 else
45 enable_gdbtk=no
46 fi])
47# We unconditionally disable gdbtk tests on selected platforms.
48case $host_os in
49 go32* | windows*)
50 enable_gdbtk=no ;;
51esac
52
53# Add gdbtk tests when appropriate.
54if test $enable_gdbtk = yes; then
55 AC_CONFIG_SUBDIRS(gdb.gdbtk)
56fi
57
b39c905e 58# Enable shared libraries.
c906108c 59AC_ARG_ENABLE(shared,
b39c905e
MK
60[ --enable-shared build shared libraries [deault=yes]],,
61 enable_shared=yes)
62
63# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
64# such that we can find the shared libraries in the build tree.
65if test $enable_shared = no; then
66 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
67 # platform.
68 RPATH_ENVVAR=RPATH_ENVVAR
69else
70 # The variable `LD_LIBRARY_PATH' is used on most platforms.
71 RPATH_ENVVAR=LD_LIBRARY_PATH
72 # The following exceptions are taken from Libtool 1.4.3.
73 case $host_os in
74 aix*)
75 if test $host_cpu != ia64; then
76 RPATH_ENVVAR=LIBPATH
77 fi ;;
78 darwin* | rhapsody*)
79 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
80 hpux*)
81 RPATH_ENVVAR=SHLIB_PATH ;;
c906108c
SS
82 esac
83fi
84AC_SUBST(RPATH_ENVVAR)
3fc11d3e 85
dc62bfc2
MK
86AC_CHECK_HEADERS(pthread.h)
87
93076499
ND
88AC_EXEEXT
89
2a31c623
PA
90if test "${build}" = "${host}" -a "${host}" = "${target}"; then
91 case "${host}" in
92 *gnu*)
93 EXTRA_RULES=read1
94 ;;
95 esac
96fi
97AC_SUBST(EXTRA_RULES)
98
8a12c1f0 99AC_OUTPUT([Makefile \
464dd14d 100 gdb.ada/Makefile \
2f1d9bdd 101 gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile \
bb2ec1b3
TT
102 gdb.cell/Makefile gdb.compile/Makefile gdb.cp/Makefile gdb.disasm/Makefile \
103 gdb.dwarf2/Makefile gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile \
104 gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile \
30e62689
TT
105 gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile \
106 gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile \
ed3ef339 107 gdb.hp/gdb.defects/Makefile gdb.guile/Makefile gdb.linespec/Makefile \
57bb97a4 108 gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile \
f4b8a18d 109 gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile \
7636ccf9 110 gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile \
5876dc88 111 gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile])