]> git.ipfire.org Git - thirdparty/gcc.git/blame - gnattools/configure.ac
Remove obsolete IRIX 6.5 support
[thirdparty/gcc.git] / gnattools / configure.ac
CommitLineData
5395b47b 1# Configure script for libada.
5c30094f 2# Copyright 2003, 2004, 2009, 2012 Free Software Foundation, Inc.
5395b47b
NN
3#
4# This file is free software; you can redistribute it and/or modify it
5# under the terms of the GNU General Public License as published by
748086b7 6# the Free Software Foundation; either version 3 of the License, or
5395b47b
NN
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful, but
10# WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12# General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
748086b7
JJ
15# along with this program; see the file COPYING3. If not see
16# <http://www.gnu.org/licenses/>.
5395b47b 17
18c04407
RW
18sinclude(../config/acx.m4)
19sinclude(../config/override.m4)
20
5395b47b 21AC_INIT
df58e648 22AC_PREREQ([2.64])
5395b47b
NN
23
24AC_CONFIG_SRCDIR([Makefile.in])
25
26# Command-line options.
27# Very limited version of AC_MAINTAINER_MODE.
28AC_ARG_ENABLE([maintainer-mode],
29 [AC_HELP_STRING([--enable-maintainer-mode],
30 [enable make rules and dependencies not useful (and
31 sometimes confusing) to the casual installer])],
32 [case ${enable_maintainer_mode} in
33 yes) MAINT='' ;;
34 no) MAINT='#' ;;
35 *) AC_MSG_ERROR([--enable-maintainer-mode must be yes or no]) ;;
36 esac
37 maintainer_mode=${enableval}],
38 [MAINT='#'])
39AC_SUBST([MAINT])dnl
40
41# Start of actual configure tests
42
43AC_PROG_INSTALL
44
45AC_CANONICAL_BUILD
46AC_CANONICAL_HOST
47AC_CANONICAL_TARGET
48
5395b47b
NN
49ACX_NONCANONICAL_TARGET
50
51# Need to pass this down for now :-P
52AC_PROG_LN_S
53
5395b47b
NN
54# Determine what to build for 'gnattools'
55if test $build = $target ; then
56 # Note that build=target is almost certainly the wrong test; FIXME
57 default_gnattools_target="gnattools-native"
58else
59 default_gnattools_target="gnattools-cross"
60fi
61AC_SUBST([default_gnattools_target])
62
63# Target-specific stuff (defaults)
64TOOLS_TARGET_PAIRS=
65AC_SUBST(TOOLS_TARGET_PAIRS)
66EXTRA_GNATTOOLS=
67AC_SUBST(EXTRA_GNATTOOLS)
68
69# Per-target case statement
70# -------------------------
71case "${target}" in
72 alpha*-dec-vx*) # Unlike all other Vxworks
73 ;;
74 m68k*-wrs-vx* \
75 | powerpc*-wrs-vxworks \
76 | sparc*-wrs-vx* \
77 | *86-wrs-vxworks \
5395b47b 78 | mips*-wrs-vx*)
b4b010ad 79 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb"
5395b47b
NN
80 ;;
81 sparc-sun-solaris*)
b4b010ad 82 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
5395b47b 83 ;;
fbdd5d87 84 *86-*-solaris2* | x86_64-*-solaris2.1[[0-9]]*)
b4b010ad 85 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
5395b47b
NN
86 ;;
87 *86-*-linux* \
1c85c51a
AS
88 | powerpc*-*-linux* \
89 | *ia64-*-linux* \
90 | alpha*-*-linux* \
91 | sparc*-*-linux* \
92 | hppa*-*-linux* \
93 | *x86_64-*-linux*)
5395b47b 94 TOOLS_TARGET_PAIRS="\
b4b010ad 95 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1c85c51a 96 indepsw.adb<indepsw-gnu.adb"
5395b47b 97 ;;
1c85c51a 98 s390*-*-linux*)
b4b010ad 99 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
5395b47b
NN
100 ;;
101 *86-*-freebsd*)
102 TOOLS_TARGET_PAIRS="\
b4b010ad 103 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1c85c51a 104 indepsw.adb<indepsw-gnu.adb"
5395b47b 105 ;;
5395b47b
NN
106 hppa*-hp-hpux10*) # Unlike hpux11
107 ;;
108 hppa*-hp-hpux11*)
b4b010ad 109 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb"
5395b47b
NN
110 ;;
111 *-ibm-aix*)
112 TOOLS_TARGET_PAIRS="\
b4b010ad 113 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb \
5395b47b
NN
114 indepsw.adb<indepsw-aix.adb"
115 ;;
5395b47b
NN
116 alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \
117 | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*)
118 TOOLS_TARGET_PAIRS="\
b4b010ad 119 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1c85c51a
AS
120 symbols.adb<symbols-vms.adb \
121 symbols-processing.adb<symbols-processing-vms-alpha.adb"
5395b47b
NN
122
123 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
124 ;;
125 ia64*-dec-vms* | ia64*-dec-openvms* | ia64*-dec-vms* \
126 | ia64*-hp-vms* | ia64*-hp-openvms* | ia64*-hp-vms*)
127 TOOLS_TARGET_PAIRS="\
b4b010ad 128 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1c85c51a
AS
129 symbols.adb<symbols-vms.adb \
130 symbols-processing.adb<symbols-processing-vms-ia64.adb"
5395b47b
NN
131
132 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
133 ;;
134 *-*-cygwin32* | *-*-mingw32* | *-*-pe)
135 TOOLS_TARGET_PAIRS="\
b4b010ad 136 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
5395b47b
NN
137 indepsw.adb<indepsw-mingw.adb"
138 EXTRA_GNATTOOLS='../../gnatdll$(exeext)'
139 ;;
f5fcb67a 140 *-*-darwin*)
b4b010ad 141 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb"
5395b47b
NN
142 ;;
143 *-*-lynxos)
1c85c51a 144 TOOLS_TARGET_PAIRS="\
b4b010ad 145 mlib-tgt-specific.adb<mlib-tgt-specific-lynxos.adb \
1c85c51a 146 indepsw.adb<indepsw-gnu.adb"
5395b47b
NN
147 ;;
148esac
149
00afcaa0
PB
150# From user or toplevel makefile.
151AC_SUBST(ADA_CFLAGS)
152
47ad7893
PB
153AC_PROG_CC
154warn_cflags=
155if test "x$GCC" = "xyes"; then
156 warn_cflags='$(GCC_WARN_CFLAGS)'
157fi
158AC_SUBST(warn_cflags)
159
5395b47b
NN
160# Output: create a Makefile.
161AC_CONFIG_FILES([Makefile])
162
163AC_OUTPUT