OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [libgloss/] [mips/] [configure.in] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1005 ivang
# Copyright (c) 1995, 1996, 1997, 1998, 1999 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
#
15
AC_PREREQ(2.5)dnl
16
AC_INIT(crt0.S)
17
 
18
if test "${enable_shared}" = "yes" ; then
19
    echo "Shared libraries not supported for cross compiling, ignored"
20
fi
21
 
22
if 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
28
else
29
  libgloss_topdir="${srcdir}/../.."
30
fi
31
AC_CONFIG_AUX_DIR($libgloss_topdir)
32
 
33
AC_CANONICAL_SYSTEM
34
AC_ARG_PROGRAM
35
 
36
AC_PROG_INSTALL
37
 
38
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
39
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
40
# are building a library that must be included in all links, so we
41
# can't link an executable until this lib is built.
42
# autoconf should provide a way to do this.
43
 
44
AC_DEFUN(LIB_AC_PROG_CC,
45
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
46
AC_CHECK_PROG(CC, gcc, gcc)
47
if test -z "$CC"; then
48
  AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
49
  test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
50
fi
51
 
52
AC_PROG_CC_GNU
53
 
54
if test $ac_cv_prog_gcc = yes; then
55
  GCC=yes
56
dnl Check whether -g works, even if CFLAGS is set, in case the package
57
dnl plays around with CFLAGS (such as to build both debugging and
58
dnl normal versions of a library), tasteless as that idea is.
59
  ac_test_CFLAGS="${CFLAGS+set}"
60
  ac_save_CFLAGS="$CFLAGS"
61
  CFLAGS=
62
  AC_PROG_CC_G
63
  if test "$ac_test_CFLAGS" = set; then
64
    CFLAGS="$ac_save_CFLAGS"
65
  elif test $ac_cv_prog_cc_g = yes; then
66
    CFLAGS="-g -O2"
67
  else
68
    CFLAGS="-O2"
69
  fi
70
else
71
  GCC=
72
  test "${CFLAGS+set}" = set || CFLAGS="-g"
73
fi
74
])
75
 
76
LIB_AC_PROG_CC
77
AS=${AS-as}
78
AC_SUBST(AS)
79
AR=${AR-ar}
80
AC_SUBST(AR)
81
LD=${LD-ld}
82
AC_SUBST(LD)
83
AC_PROG_RANLIB
84
 
85
crt0=crt0.o
86
pcrt0=pcrt0.o
87
 
88
case "${target}" in
89
  mips*-tx39*-*|mipstx39*-*-*)
90
        part_specific_obj=
91
        part_specific_defines=
92
        script_list="dve idt jmr3904app jmr3904dram jmr3904dram-java jmr3904app-java"
93
        bsp_list="libdve.a libidt.a libjmr3904.a"
94
        ;;
95
  mips*-lsi*-*)
96
        part_specific_obj=entry.o
97
        part_specific_defines=
98
        script_list="lsi"
99
        bsp_list=liblsi.a
100
        ;;
101
  mips64vr5*-*-*)
102
        part_specific_obj="vr5xxx.o cma101.o"
103
        part_specific_defines=-DR5000
104
        script_list="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon"
105
        bsp_list="libidt.a libpmon.a liblsi.a libnullmon.a"
106
        ;;
107
  mipsisa32*-*-*)
108
        part_specific_obj=
109
        part_specific_defines=
110
        script_list="idt32 idt64"
111
        bsp_list="libidt.a"
112
        ;;
113
  *)
114
        part_specific_obj="vr4300.o cma101.o"
115
        part_specific_defines=
116
        script_list="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon"
117
        bsp_list="libidt.a libpmon.a liblsi.a libnullmon.a"
118
        ;;
119
esac
120
 
121
host_makefile_frag=${srcdir}/../config/default.mh
122
target_makefile_frag=${srcdir}/../config/mips.mt
123
 
124
dnl We have to assign the same value to other variables because autoconf
125
dnl doesn't provide a mechanism to substitute a replacement keyword with
126
dnl arbitrary data or pathnames.
127
dnl
128
host_makefile_frag_path=$host_makefile_frag
129
AC_SUBST(host_makefile_frag_path)
130
AC_SUBST_FILE(host_makefile_frag)
131
target_makefile_frag_path=$target_makefile_frag
132
AC_SUBST(target_makefile_frag_path)
133
AC_SUBST_FILE(target_makefile_frag)
134
AC_SUBST(part_specific_obj)
135
AC_SUBST(part_specific_defines)
136
AC_SUBST(script_list)
137
AC_SUBST(bsp_list)
138
AC_SUBST(crt0)
139
AC_SUBST(pcrt0)
140
 
141
AC_OUTPUT(Makefile,
142
. ${libgloss_topdir}/config-ml.in,
143
srcdir=${srcdir}
144
target=${target}
145
ac_configure_args="${ac_configure_args} --enable-multilib"
146
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
147
libgloss_topdir=${libgloss_topdir}
148
)

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.