1 # Configure script for libada.
2 # Copyright 2003, 2004 Free Software Foundation, Inc.
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
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
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.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 AC_CONFIG_SRCDIR([Makefile.in])
23 # Command-line options.
24 # Very limited version of AC_MAINTAINER_MODE.
25 AC_ARG_ENABLE([maintainer-mode],
26 [AC_HELP_STRING([--enable-maintainer-mode],
27 [enable make rules and dependencies not useful (and
28 sometimes confusing) to the casual installer])],
29 [case ${enable_maintainer_mode} in
32 *) AC_MSG_ERROR([--enable-maintainer-mode must be yes or no]) ;;
34 maintainer_mode=${enableval}],
38 # Start of actual configure tests
46 sinclude(../config/acx.m4)
47 ACX_NONCANONICAL_TARGET
49 # Need to pass this down for now :-P
52 # Determine x_ada_cflags
54 hppa*) x_ada_cflags=-mdisable-indexing ;;
57 AC_SUBST([x_ada_cflags])
59 # Determine what to build for 'gnattools'
60 if test $build = $target ; then
61 # Note that build=target is almost certainly the wrong test; FIXME
62 default_gnattools_target="gnattools-native"
64 default_gnattools_target="gnattools-cross"
66 AC_SUBST([default_gnattools_target])
68 # Target-specific stuff (defaults)
70 AC_SUBST(TOOLS_TARGET_PAIRS)
72 AC_SUBST(EXTRA_GNATTOOLS)
74 # Per-target case statement
75 # -------------------------
77 alpha*-dec-vx*) # Unlike all other Vxworks
80 | powerpc*-wrs-vxworks \
84 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-vxworks.adb"
87 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-solaris.adb"
90 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-solaris.adb"
100 mlib-tgt-specific.adb<mlib-tgt-linux.adb \
101 indepsw.adb<indepsw-gnu.adb"
104 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-linux.adb"
107 TOOLS_TARGET_PAIRS="\
108 mlib-tgt-specific.adb<mlib-tgt-linux.adb \
109 indepsw.adb<indepsw-gnu.adb"
112 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-irix.adb"
114 hppa*-hp-hpux10*) # Unlike hpux11
117 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-hpux.adb"
120 TOOLS_TARGET_PAIRS="\
121 mlib-tgt-specific.adb<mlib-tgt-aix.adb \
122 indepsw.adb<indepsw-aix.adb"
125 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-tru64.adb"
127 alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \
128 | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*)
129 TOOLS_TARGET_PAIRS="\
130 mlib-tgt-specific.adb<mlib-tgt-vms-alpha.adb \
131 symbols.adb<symbols-vms.adb \
132 symbols-processing.adb<symbols-processing-vms-alpha.adb"
134 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
136 ia64*-dec-vms* | ia64*-dec-openvms* | ia64*-dec-vms* \
137 | ia64*-hp-vms* | ia64*-hp-openvms* | ia64*-hp-vms*)
138 TOOLS_TARGET_PAIRS="\
139 mlib-tgt-specific.adb<mlib-tgt-vms-ia64.adb \
140 symbols.adb<symbols-vms.adb \
141 symbols-processing.adb<symbols-processing-vms-ia64.adb"
143 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
145 *-*-cygwin32* | *-*-mingw32* | *-*-pe)
146 TOOLS_TARGET_PAIRS="\
147 mlib-tgt-specific.adb<mlib-tgt-mingw.adb \
148 indepsw.adb<indepsw-mingw.adb"
149 EXTRA_GNATTOOLS='../../gnatdll$(exeext)'
151 powerpc-*-darwin* | *86-*-darwin*)
152 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-darwin.adb"
155 TOOLS_TARGET_PAIRS="\
156 mlib-tgt-specific.adb<mlib-tgt-lynxos.adb \
157 indepsw.adb<indepsw-gnu.adb"
161 # Output: create a Makefile.
162 AC_CONFIG_FILES([Makefile])