1 # Copyright (c) 2000, Cygnus Solutions, A Red Hat Company
3 # The authors hereby grant permission to use, copy, modify, distribute,
4 # and license this software and its documentation for any purpose, provided
5 # that existing copyright notices are retained in all copies and that this
6 # notice is included verbatim in any distributions. No written agreement,
7 # license, or royalty fee is required for any of the authorized uses.
8 # Modifications to this software may be copyrighted by their authors
9 # and need not follow the licensing terms described here, provided that
10 # the new terms are clearly indicated on the first page of each file where
13 # Process this file with autoconf to produce a configure script.
18 if test "${enable_shared}" = "yes" ; then
19 echo "Shared libraries not supported for cross compiling, ignored"
22 if test "$srcdir" = "." ; then
23 if test "${with_target_subdir}" != "." ; then
24 libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
26 libgloss_topdir="${srcdir}/${with_multisrctop}../.."
29 libgloss_topdir="${srcdir}/../.."
31 AC_CONFIG_AUX_DIR($libgloss_topdir)
48 host_makefile_frag=${srcdir}/../config/default.mh
50 if test "${with_multisubdir}" = "m32"; then
57 dnl We have to assign the same value to other variables because autoconf
58 dnl doesn't provide a mechanism to substitute a replacement keyword with
59 dnl arbitrary data or pathnames.
61 host_makefile_frag_path=$host_makefile_frag
62 AC_SUBST(host_makefile_frag_path)
63 AC_SUBST_FILE(host_makefile_frag)
64 target_makefile_frag_path=$target_makefile_frag
65 AC_SUBST(target_makefile_frag_path)
66 AC_SUBST_FILE(target_makefile_frag)
67 AC_SUBST(part_specific_obj)
69 AC_CONFIG_FILES(Makefile,
70 . ${libgloss_topdir}/config-ml.in,
73 with_multisubdir=${with_multisubdir}
74 ac_configure_args="${ac_configure_args} --enable-multilib"
75 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
76 libgloss_topdir=${libgloss_topdir}