source: trunk/libs/newlib/src/libgloss/mips/configure.in @ 639

Last change on this file since 639 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 3.6 KB
Line 
1# Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2002 Cygnus Support
2#
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
11# they apply.
12#
13# Process this file with autoconf to produce a configure script.
14#
15AC_PREREQ(2.59)
16AC_INIT(crt0.S)
17
18if test "${enable_shared}" = "yes" ; then
19    echo "Shared libraries not supported for cross compiling, ignored"
20fi
21
22if test "$srcdir" = "." ; then
23  if test "${with_target_subdir}" != "." ; then
24    libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
25  else
26    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
27  fi
28else
29  libgloss_topdir="${srcdir}/../.."
30fi
31AC_CONFIG_AUX_DIR($libgloss_topdir)
32
33AC_CANONICAL_SYSTEM
34AC_ARG_PROGRAM
35
36AC_PROG_INSTALL
37
38LIB_AC_PROG_CC
39AS=${AS-as}
40AC_SUBST(AS)
41AR=${AR-ar}
42AC_SUBST(AR)
43LD=${LD-ld}
44AC_SUBST(LD)
45AC_PROG_RANLIB
46LIB_AM_PROG_AS
47
48crt0=crt0.o
49pcrt0=pcrt0.o
50
51case "${target}" in
52  mips*-tx39*-*|mipstx39*-*-*)
53        part_specific_obj=
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"
57        ;;
58  mipsisa32-*-* | mipsisa32el-*-* | \
59  mipsisa32r2-*-* | mipsisa32r2el-*-* | \
60  mipsisa64*-*-*)
61        crt0="crt0_cfe.o crt0_cygmon.o crt0.o"
62        pcrt0="pcrt0.o"
63        part_specific_obj=
64        part_specific_defines=
65        script_list="idt32 idt64 cfe"
66        bsp_list="libcygmon.a libidt.a libcfe.a"
67        ;;
68  mips*-lsi*-*)
69        part_specific_obj=entry.o
70        part_specific_defines=
71        script_list="lsi"
72        bsp_list=liblsi.a
73        ;;
74  mips64vr5*-*-*)
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"
79        ;;
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"
84        ;;
85  *)
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"
91        ;;
92esac
93
94host_makefile_frag=${srcdir}/../config/default.mh
95target_makefile_frag=${srcdir}/../config/mips.mt
96
97dnl We have to assign the same value to other variables because autoconf
98dnl doesn't provide a mechanism to substitute a replacement keyword with
99dnl arbitrary data or pathnames.
100dnl
101host_makefile_frag_path=$host_makefile_frag
102AC_SUBST(host_makefile_frag_path)
103AC_SUBST_FILE(host_makefile_frag)
104target_makefile_frag_path=$target_makefile_frag
105AC_SUBST(target_makefile_frag_path)
106AC_SUBST_FILE(target_makefile_frag)
107AC_SUBST(part_specific_obj)
108AC_SUBST(part_specific_defines)
109AC_SUBST(script_list)
110AC_SUBST(bsp_list)
111AC_SUBST(crt0)
112AC_SUBST(pcrt0)
113
114AC_CONFIG_FILES(Makefile,
115. ${libgloss_topdir}/config-ml.in,
116srcdir=${srcdir}
117target=${target}
118with_multisubdir=${with_multisubdir}
119ac_configure_args="${ac_configure_args} --enable-multilib"
120CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
121libgloss_topdir=${libgloss_topdir}
122)
123AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.