summaryrefslogtreecommitdiff
path: root/libada/configure.ac
diff options
context:
space:
mode:
authorneroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-15 03:38:59 +0000
committerneroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-15 03:38:59 +0000
commit1f83ab492f4f53895ee23d117d851f6787ae65f9 (patch)
treeb99029e32e885c6370af412c5c3219559ee6deea /libada/configure.ac
parenta08c0dcf03f9281be58815826516ad217223cb4a (diff)
downloadgcc-1f83ab492f4f53895ee23d117d851f6787ae65f9.tar.gz
* Makefile.in: Call gcc/ada/Makefile directly, not through the
intermediary of gcc/Makefile. Incorporate all necessary parts of rules from gcc/ada/Make-lang.in, including extra gnatlib/gnattools targets, rts-zfp, rts-ravenscar. Get needed bits of GCC configuration from (new) gcc/libada-mk. Decide what gnatlib variant to build in configure.ac, not here. * configure.ac: Provide Makefile.in with the new information it needs, such as GCC's tmake_file and xmake_file. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80711 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libada/configure.ac')
-rw-r--r--libada/configure.ac73
1 files changed, 50 insertions, 23 deletions
diff --git a/libada/configure.ac b/libada/configure.ac
index e2d6198e4e7..580447ef6a7 100644
--- a/libada/configure.ac
+++ b/libada/configure.ac
@@ -16,17 +16,16 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
AC_INIT
-AC_CONFIG_SRCDIR([Makefile.in])
-
-# This is an autoconf 2.5x script.
AC_PREREQ([2.59])
+AC_CONFIG_SRCDIR([Makefile.in])
+
+# Command-line options.
# Very limited version of AC_MAINTAINER_MODE.
-AC_ARG_ENABLE(
- [maintainer-mode],
- AC_HELP_STRING([--enable-maintainer-mode],
+AC_ARG_ENABLE([maintainer-mode],
+ [AC_HELP_STRING([--enable-maintainer-mode],
[enable make rules and dependencies not useful (and
- sometimes confusing) to the casual installer]),
+ sometimes confusing) to the casual installer])],
[case ${enable_maintainer_mode} in
yes) MAINT='' ;;
no) MAINT='#' ;;
@@ -36,30 +35,58 @@ AC_ARG_ENABLE(
[MAINT='#'])
AC_SUBST([MAINT])dnl
-# Start of actual configure tests
-
-# Output: create a Makefile.
-AC_CONFIG_FILES([Makefile])
-
-AC_CANONICAL_SYSTEM
-
-AC_ARG_ENABLE(shared,
-[ --disable-shared don't provide a shared libgnat],
-[
- case $enable_shared in
+AC_ARG_ENABLE([shared],
+[AC_HELP_STRING([--disable-shared],
+ [don't provide a shared libgnat])],
+[
+case $enable_shared in
yes | no) ;;
*)
enable_shared=no
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
- if test "$pkg" = "ada" || test "$pkg" = "libada"; then
- enable_shared=yes
- fi
+ case $pkg in
+ ada | libada)
+ enable_shared=yes ;;
+ esac
done
IFS="$ac_save_ifs"
;;
- esac
+esac
], [enable_shared=yes])
-AC_SUBST(enable_shared)
+AC_SUBST([enable_shared])
+
+# Start of actual configure tests
+
+AC_PROG_INSTALL
+
+AC_CANONICAL_SYSTEM
+
+sinclude(../config/acx.m4)
+_GCC_TOPLEV_NONCANONICAL_TARGET
+AC_SUBST(target_noncanonical)
+
+# Need to pass this down for now :-P
+AC_PROG_LN_S
+
+# Determine x_ada_cflags
+case $host in
+ hppa*) x_ada_cflags=-mdisable-indexing ;;
+ *) x_ada_cflags= ;;
+esac
+AC_SUBST([x_ada_cflags])
+
+# Determine what to build for 'gnatlib'
+if test $build = $target \
+ && test ${enable_shared} = yes ; then
+ # Note that build=target is almost certainly the wrong test; FIXME
+ default_gnatlib_target="gnatlib-shared"
+else
+ default_gnatlib_target="gnatlib-simple"
+fi
+AC_SUBST([default_gnatlib_target])
+
+# Output: create a Makefile.
+AC_CONFIG_FILES([Makefile])
AC_OUTPUT