]> git.ipfire.org Git - thirdparty/gcc.git/blame - gnattools/configure.ac
Remove obsolete IRIX 6.5 support
[thirdparty/gcc.git] / gnattools / configure.ac
CommitLineData
a136b23d 1# Configure script for libada.
126b6848 2# Copyright 2003, 2004, 2009, 2012 Free Software Foundation, Inc.
a136b23d 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
6bc9506f 6# the Free Software Foundation; either version 3 of the License, or
a136b23d 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
6bc9506f 15# along with this program; see the file COPYING3. If not see
16# <http://www.gnu.org/licenses/>.
a136b23d 17
5b2c7553 18sinclude(../config/acx.m4)
19sinclude(../config/override.m4)
20
a136b23d 21AC_INIT
81a71e2b 22AC_PREREQ([2.64])
a136b23d 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
a136b23d 49ACX_NONCANONICAL_TARGET
50
51# Need to pass this down for now :-P
52AC_PROG_LN_S
53
a136b23d 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 \
a136b23d 78 | mips*-wrs-vx*)
e92dcf50 79 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb"
a136b23d 80 ;;
81 sparc-sun-solaris*)
e92dcf50 82 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
a136b23d 83 ;;
14f27bc6 84 *86-*-solaris2* | x86_64-*-solaris2.1[[0-9]]*)
e92dcf50 85 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
a136b23d 86 ;;
87 *86-*-linux* \
1b924cb3 88 | powerpc*-*-linux* \
89 | *ia64-*-linux* \
90 | alpha*-*-linux* \
91 | sparc*-*-linux* \
92 | hppa*-*-linux* \
93 | *x86_64-*-linux*)
a136b23d 94 TOOLS_TARGET_PAIRS="\
e92dcf50 95 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1b924cb3 96 indepsw.adb<indepsw-gnu.adb"
a136b23d 97 ;;
1b924cb3 98 s390*-*-linux*)
e92dcf50 99 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
a136b23d 100 ;;
101 *86-*-freebsd*)
102 TOOLS_TARGET_PAIRS="\
e92dcf50 103 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1b924cb3 104 indepsw.adb<indepsw-gnu.adb"
a136b23d 105 ;;
a136b23d 106 hppa*-hp-hpux10*) # Unlike hpux11
107 ;;
108 hppa*-hp-hpux11*)
e92dcf50 109 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb"
a136b23d 110 ;;
111 *-ibm-aix*)
112 TOOLS_TARGET_PAIRS="\
e92dcf50 113 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb \
a136b23d 114 indepsw.adb<indepsw-aix.adb"
115 ;;
a136b23d 116 alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \
117 | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*)
118 TOOLS_TARGET_PAIRS="\
e92dcf50 119 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1b924cb3 120 symbols.adb<symbols-vms.adb \
121 symbols-processing.adb<symbols-processing-vms-alpha.adb"
a136b23d 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="\
e92dcf50 128 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1b924cb3 129 symbols.adb<symbols-vms.adb \
130 symbols-processing.adb<symbols-processing-vms-ia64.adb"
a136b23d 131
132 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
133 ;;
134 *-*-cygwin32* | *-*-mingw32* | *-*-pe)
135 TOOLS_TARGET_PAIRS="\
e92dcf50 136 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
a136b23d 137 indepsw.adb<indepsw-mingw.adb"
138 EXTRA_GNATTOOLS='../../gnatdll$(exeext)'
139 ;;
fa7b4975 140 *-*-darwin*)
e92dcf50 141 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb"
a136b23d 142 ;;
143 *-*-lynxos)
1b924cb3 144 TOOLS_TARGET_PAIRS="\
e92dcf50 145 mlib-tgt-specific.adb<mlib-tgt-specific-lynxos.adb \
1b924cb3 146 indepsw.adb<indepsw-gnu.adb"
a136b23d 147 ;;
148esac
149
3bed0958 150# From user or toplevel makefile.
151AC_SUBST(ADA_CFLAGS)
152
9a8d280d 153AC_PROG_CC
154warn_cflags=
155if test "x$GCC" = "xyes"; then
156 warn_cflags='$(GCC_WARN_CFLAGS)'
157fi
158AC_SUBST(warn_cflags)
159
a136b23d 160# Output: create a Makefile.
161AC_CONFIG_FILES([Makefile])
162
163AC_OUTPUT