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 AC_ARG_ENABLE([shared],
39 [AC_HELP_STRING([--disable-shared],
40 [don't provide a shared libgnat])],
42 case $enable_shared in
46 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
47 for pkg in $enableval; do
56 ], [enable_shared=yes])
57 AC_SUBST([enable_shared])
59 # Start of actual configure tests
65 # Need to pass this down for now :-P
68 # Determine x_ada_cflags
70 hppa*) x_ada_cflags=-mdisable-indexing ;;
73 AC_SUBST([x_ada_cflags])
75 # Determine what to build for 'gnatlib'
76 if test $build = $target \
77 && test ${enable_shared} = yes ; then
78 # Note that build=target is almost certainly the wrong test; FIXME
79 default_gnatlib_target="gnatlib-shared"
81 default_gnatlib_target="gnatlib-plain"
83 AC_SUBST([default_gnatlib_target])
85 # Output: create a Makefile.
86 AC_CONFIG_FILES([Makefile])