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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [configure.in] - Blame information for rev 478

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

Line No. Rev Author Line
1 148 jeremybenn
dnl Process this file with autoconf to produce a configure script.
2
AC_PREREQ(2.59)
3
AC_INIT([libgloss],[LIBGLOSS_VERSION])
4
AC_CONFIG_SRCDIR([libnosys])
5
 
6
if test "${enable_shared}" = "yes" ; then
7
    echo "Shared libraries not supported for cross compiling, ignored"
8
fi
9
 
10
if test "${srcdir}" = "." ; then
11
  if test "${with_target_subdir}" != "." ; then
12
    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
13
  else
14
    libgloss_topdir="${srcdir}/${with_multisrctop}.."
15
  fi
16
else
17
  libgloss_topdir="${srcdir}/.."
18
fi
19
AC_CONFIG_AUX_DIR($libgloss_topdir)
20
 
21
AC_PROG_INSTALL
22
 
23
AC_CANONICAL_SYSTEM
24
AM_INIT_AUTOMAKE([cygnus no-define 1.9.5])
25
 
26
if test -z "${with_multisubdir}" ; then
27
  AC_CONFIG_SUBDIRS(doc)
28
fi
29
 
30
AC_CONFIG_SUBDIRS(libnosys)
31
 
32
case "${target}" in
33
  i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
34
        AC_CONFIG_SUBDIRS(i386)
35
        config_testsuite=true
36
        ;;
37
  m32r-*-*)
38
        AC_CONFIG_SUBDIRS(m32r)
39
        config_testsuite=true
40
        ;;
41
  m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
42
        AC_CONFIG_SUBDIRS(m68hc11)
43
        config_testsuite=true
44
        ;;
45
  fido-*-* | m68*-*-*)
46
        AC_CONFIG_SUBDIRS(m68k)
47
        config_testsuite=true
48
        ;;
49
  hppa*-*-pro*)
50
        AC_CONFIG_SUBDIRS(pa)
51
        config_testsuite=true
52
        ;;
53
  i960-*-coff)
54
        AC_CONFIG_SUBDIRS(i960)
55
        config_testsuite=true
56
        ;;
57
  sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
58
        AC_CONFIG_SUBDIRS(sparc)
59
        config_testsuite=true
60
        ;;
61
  sh*-*-pe | mips*-*-pe | *arm-wince-pe)
62
        AC_CONFIG_SUBDIRS(wince)
63
        ;;
64
  mips*-*-*)
65
        AC_CONFIG_SUBDIRS(mips)
66
        config_testsuite=true
67
        ;;
68
  powerpc-*-*|powerpcle-*-*)
69
        AC_CONFIG_SUBDIRS(rs6000)
70
        config_testsuite=true
71
        ;;
72
  mn10200-*-*)
73
        AC_CONFIG_SUBDIRS(mn10200)
74
        config_testsuite=true
75
        ;;
76
  mn10300-*-*)
77
        AC_CONFIG_SUBDIRS(mn10300)
78
        config_testsuite=true
79
        ;;
80
  bfin-*-*)
81
        AC_CONFIG_SUBDIRS(bfin)
82
        config_testsuite=true
83
        ;;
84
  cris-*-* | crisv32-*-*)
85
        AC_CONFIG_SUBDIRS(cris)
86
        config_testsuite=true
87
        ;;
88
  crx-*-*)
89
        AC_CONFIG_SUBDIRS(crx)
90
        ;;
91
  d30v-*-*)
92
        AC_CONFIG_SUBDIRS(d30v)
93
        config_testsuite=true
94
        ;;
95
  fr30-*-*)
96
        AC_CONFIG_SUBDIRS(fr30)
97
        config_testsuite=true
98
        ;;
99
  frv*-*-*)
100
        AC_CONFIG_SUBDIRS(frv)
101
        config_testsuite=true
102
        ;;
103
  lm32*-*-*)
104
        AC_CONFIG_SUBDIRS(lm32)
105
        config_testsuite=true
106
        ;;
107
  mcore-*-*)
108
        AC_CONFIG_SUBDIRS(mcore)
109
        config_testsuite=true
110
        ;;
111
  mep-*-*)
112
        AC_CONFIG_SUBDIRS(mep)
113
        config_testsuite = true;
114
        ;;
115
  mt-*-*)
116
        AC_CONFIG_SUBDIRS(mt)
117
        config_testsuite=true
118
        ;;
119
  xstormy16-*-*)
120
        AC_CONFIG_SUBDIRS(xstormy16)
121
        config_testsuite=true
122
        ;;
123
  m32c-*-*)
124
        AC_CONFIG_SUBDIRS(m32c)
125
        config_testsuite=true
126
        ;;
127
  strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*)
128
        AC_CONFIG_SUBDIRS(arm)
129
        config_testsuite=true
130
        ;;
131
  spu-*-elf)
132
        AC_CONFIG_SUBDIRS(spu)
133
        config_testsuite=false
134
        ;;
135
  or32-*-*)
136
        AC_CONFIG_SUBDIRS(or32)
137
        config_testsuite=false
138
        ;;
139
  iq2000-*-*)
140
        AC_CONFIG_SUBDIRS(iq2000)
141
        config_testsuite=true
142
        ;;
143
esac
144
 
145
# For now, don't bother configuring testsuite
146
#
147
# if test ${config_testsuite); then AC_CONFIG_SUBDIRS(testsuite); fi
148
#
149
 
150
LIB_AC_PROG_CC
151
AS=${AS-as}
152
AC_SUBST(AS)
153
AC_CHECK_PROG(AR, ar, ar, :)
154
AR=${AR-ar}
155
AC_SUBST(AR)
156
LD=${LD-ld}
157
AC_SUBST(LD)
158
AC_PROG_RANLIB
159
LIB_AM_PROG_AS
160
 
161
host_makefile_frag=${srcdir}/config/default.mh
162
 
163
dnl We have to assign the same value to other variables because autoconf
164
dnl doesn't provide a mechanism to substitute a replacement keyword with
165
dnl arbitrary data or pathnames.
166
dnl
167
host_makefile_frag_path=$host_makefile_frag
168
AC_SUBST(host_makefile_frag_path)
169
AC_SUBST_FILE(host_makefile_frag)
170
 
171
if test "${multilib}" = "yes"; then
172
  multilib_arg="--enable-multilib"
173
else
174
  multilib_arg=
175
fi
176
 
177
# for now, only add multilibs for specific targets
178
AC_CONFIG_FILES([Makefile],
179
[if test -n "$CONFIG_FILES"; then
180
  unset ac_file
181
  . ${libgloss_topdir}/config-ml.in
182
fi],
183
srcdir=${srcdir}
184
target=${target}
185
with_multisubdir=${with_multisubdir}
186
ac_configure_args="--enable-multilib ${ac_configure_args}"
187
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
188
libgloss_topdir=${libgloss_topdir}
189
CC="${CC}"
190
LDFLAGS=${LDFLAGS}
191
)
192
AC_OUTPUT
193
 
194
 

powered by: WebSVN 2.1.0

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