OSDN Git Service

sim: bfin: skip acc/ASTAT updates for moves
[pf3gnuchains/sourceware.git] / libgloss / configure.in
1 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 dnl indicates whether to run configure within the testsuite subdirectory
31 config_testsuite=true
32
33 dnl indicates whether to run configure within the libnosys subdirectory
34 config_libnosys=true
35
36 case "${target}" in
37   i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
38         AC_CONFIG_SUBDIRS([i386])
39         ;;
40   m32r-*-*)
41         AC_CONFIG_SUBDIRS([m32r])
42         ;;
43   m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
44         AC_CONFIG_SUBDIRS([m68hc11])
45         ;;
46   fido-*-* | m68*-*-*)
47         AC_CONFIG_SUBDIRS([m68k])
48         ;;
49   hppa*-*-pro*)
50         AC_CONFIG_SUBDIRS([pa])
51         ;;
52   i960-*-coff)
53         AC_CONFIG_SUBDIRS([i960])
54         ;;
55   sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
56         AC_CONFIG_SUBDIRS([sparc])
57         ;;
58   sh*-*-pe | mips*-*-pe | *arm-wince-pe)
59         AC_CONFIG_SUBDIRS([wince])
60         ;;
61   mips*-*-*)
62         AC_CONFIG_SUBDIRS([mips])
63         ;;
64   powerpc-*-*|powerpcle-*-*)
65         AC_CONFIG_SUBDIRS([rs6000])
66         ;;
67   mn10200-*-*)
68         AC_CONFIG_SUBDIRS([mn10200])
69         ;;
70   mn10300-*-*)
71         AC_CONFIG_SUBDIRS([mn10300])
72         ;;
73   bfin-*-*)
74         AC_CONFIG_SUBDIRS([bfin])
75         ;;
76   cr16-*-*)
77         AC_CONFIG_SUBDIRS([cr16])
78         ;;
79   cris-*-* | crisv32-*-*)
80         AC_CONFIG_SUBDIRS([cris])
81         ;;
82   crx-*-*)
83         AC_CONFIG_SUBDIRS([crx])
84         ;;
85   d30v-*-*)
86         AC_CONFIG_SUBDIRS([d30v])
87         ;;
88   fr30-*-*)
89         AC_CONFIG_SUBDIRS([fr30])
90         ;;
91   frv*-*-*)
92         AC_CONFIG_SUBDIRS([frv])
93         ;;
94   lm32*-*-*)
95         AC_CONFIG_SUBDIRS([lm32])
96         ;;
97   mcore-*-*)
98         AC_CONFIG_SUBDIRS([mcore])
99         ;;
100   mep-*-*)
101         AC_CONFIG_SUBDIRS([mep])
102         ;;
103   moxie-*-*)
104         AC_CONFIG_SUBDIRS([moxie])
105         ;;
106   microblaze-*-*)
107         AC_CONFIG_SUBDIRS([microblaze])
108         ;;
109   mt-*-*)
110         AC_CONFIG_SUBDIRS([mt])
111         ;;
112   v850*-*-*)
113         AC_CONFIG_SUBDIRS([v850])
114         ;;
115   xc16x-*-*)
116         AC_CONFIG_SUBDIRS([xc16x])
117         ;;
118   xstormy16-*-*)
119         AC_CONFIG_SUBDIRS([xstormy16])
120         ;;
121   m32c-*-*)
122         AC_CONFIG_SUBDIRS([m32c])
123         ;;
124   rx*-*-elf)
125         AC_CONFIG_SUBDIRS([rx])
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         ;;
130   spu-*-elf)
131         AC_CONFIG_SUBDIRS([spu])
132         config_testsuite=false
133         config_libnosys=false
134         ;;
135   tic6x-*-*)
136         AC_CONFIG_SUBDIRS(tic6x)
137         config_testsuite=false
138         ;;
139   iq2000-*-*)
140         AC_CONFIG_SUBDIRS([iq2000])
141         ;;
142 esac
143
144 dnl For now, don't bother configuring testsuite
145 dnl
146 dnl if test "${config_testsuite}" = "true";
147 dnl   then AC_CONFIG_SUBDIRS([testsuite])
148 dnl fi
149
150 if test "${config_libnosys}" = "true"; then
151   AC_CONFIG_SUBDIRS([libnosys])
152 fi
153
154 LIB_AC_PROG_CC
155 AS=${AS-as}
156 AC_SUBST(AS)
157 AC_CHECK_PROG(AR, ar, ar, :)
158 AR=${AR-ar}
159 AC_SUBST(AR)
160 LD=${LD-ld}
161 AC_SUBST(LD)
162 AC_PROG_RANLIB
163 LIB_AM_PROG_AS
164
165 host_makefile_frag=${srcdir}/config/default.mh
166
167 dnl We have to assign the same value to other variables because autoconf
168 dnl doesn't provide a mechanism to substitute a replacement keyword with
169 dnl arbitrary data or pathnames.
170 dnl
171 host_makefile_frag_path=$host_makefile_frag
172 AC_SUBST(host_makefile_frag_path)
173 AC_SUBST_FILE(host_makefile_frag)
174
175 if test "${multilib}" = "yes"; then
176   multilib_arg="--enable-multilib"
177 else
178   multilib_arg=
179 fi
180
181 # for now, only add multilibs for specific targets
182 AC_CONFIG_FILES([Makefile],
183 [if test -n "$CONFIG_FILES"; then
184   unset ac_file
185   . ${libgloss_topdir}/config-ml.in
186 fi],
187 srcdir=${srcdir}
188 target=${target}
189 with_multisubdir=${with_multisubdir}
190 ac_configure_args="--enable-multilib ${ac_configure_args}"
191 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
192 libgloss_topdir=${libgloss_topdir}
193 CC="${CC}"
194 LDFLAGS=${LDFLAGS}
195 )
196 AC_OUTPUT
197
198