1 # Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2002 Cygnus Support
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)
52 mips*-tx39*-*|mipstx39*-*-*)
54 part_specific_defines=
55 script_list="dve idt jmr3904app jmr3904dram jmr3904dram-java jmr3904app-java sde32 sde64 mti32 mti64 mti64_n32 mti64_64"
56 bsp_list="libdve.a libidt.a libjmr3904.a"
58 mipsisa32-*-* | mipsisa32el-*-* | \
59 mipsisa32r2-*-* | mipsisa32r2el-*-* | \
61 crt0="crt0_cfe.o crt0_cygmon.o crt0.o"
64 part_specific_defines=
65 script_list="idt32 idt64 cfe"
66 bsp_list="libcygmon.a libidt.a libcfe.a"
69 part_specific_obj=entry.o
70 part_specific_defines=
75 part_specific_obj="vr5xxx.o cma101.o"
76 part_specific_defines=-DR5000
77 script_list="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon"
78 bsp_list="libidt.a libpmon.a liblsi.a libnullmon.a"
80 mips64vr-*-* | mips64vrel-*-*)
81 part_specific_obj="vr5xxx.o cma101.o"
82 script_list="ddb ddb-kseg0 nullmon"
83 bsp_list="libpmon.a libnullmon.a"
86 crt0="crt0_cfe.o crt0.o"
87 part_specific_obj="vr4300.o cma101.o"
88 part_specific_defines=
89 script_list="idt pmon ddb ddb-kseg0 lsi cfe idtecoff nullmon sde32 sde64 mti32 mti64 mti64_n32 mti64_64"
90 bsp_list="libidt.a libpmon.a liblsi.a libcfe.a libnullmon.a"
94 host_makefile_frag=${srcdir}/../config/default.mh
95 target_makefile_frag=${srcdir}/../config/mips.mt
97 dnl We have to assign the same value to other variables because autoconf
98 dnl doesn't provide a mechanism to substitute a replacement keyword with
99 dnl arbitrary data or pathnames.
101 host_makefile_frag_path=$host_makefile_frag
102 AC_SUBST(host_makefile_frag_path)
103 AC_SUBST_FILE(host_makefile_frag)
104 target_makefile_frag_path=$target_makefile_frag
105 AC_SUBST(target_makefile_frag_path)
106 AC_SUBST_FILE(target_makefile_frag)
107 AC_SUBST(part_specific_obj)
108 AC_SUBST(part_specific_defines)
109 AC_SUBST(script_list)
114 AC_CONFIG_FILES(Makefile,
115 . ${libgloss_topdir}/config-ml.in,
118 with_multisubdir=${with_multisubdir}
119 ac_configure_args="${ac_configure_args} --enable-multilib"
120 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
121 libgloss_topdir=${libgloss_topdir}