]> sourceware.org Git - newlib-cygwin.git/blob - libgloss/configure.in
2006-05-10 Jeff Johnston <jjohnstn@redhat.com>
[newlib-cygwin.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 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 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 cris-*-* | crisv32-*-*)
81 AC_CONFIG_SUBDIRS(cris)
82 config_testsuite = true;
83 ;;
84 crx-*-*)
85 AC_CONFIG_SUBDIRS(crx)
86 ;;
87 d30v-*-*)
88 AC_CONFIG_SUBDIRS(d30v)
89 config_testsuite = true;
90 ;;
91 fr30-*-*)
92 AC_CONFIG_SUBDIRS(fr30)
93 config_testsuite = true;
94 ;;
95 frv*-*-*)
96 AC_CONFIG_SUBDIRS(frv)
97 config_testsuite = true;
98 ;;
99 mcore-*-*)
100 AC_CONFIG_SUBDIRS(mcore)
101 config_testsuite = true;
102 ;;
103 mt-*-*)
104 AC_CONFIG_SUBDIRS(mt)
105 config_testsuite = true;
106 ;;
107 xstormy16-*-*)
108 AC_CONFIG_SUBDIRS(xstormy16)
109 config_testsuite = true;
110 ;;
111 m32c-*-*)
112 AC_CONFIG_SUBDIRS(m32c)
113 config_testsuite = true;
114 ;;
115 strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*)
116 AC_CONFIG_SUBDIRS(arm)
117 config_testsuite = true;
118 ;;
119 iq2000-*-*)
120 AC_CONFIG_SUBDIRS(iq2000)
121 config_testsuite = true;
122 ;;
123 esac
124
125 # For now, don't bother configuring testsuite
126 #
127 # if test ${config_testsuite); then AC_CONFIG_SUBDIRS(testsuite); fi
128 #
129
130 LIB_AC_PROG_CC
131 AS=${AS-as}
132 AC_SUBST(AS)
133 AC_CHECK_PROG(AR, ar, ar, :)
134 AR=${AR-ar}
135 AC_SUBST(AR)
136 LD=${LD-ld}
137 AC_SUBST(LD)
138 AC_PROG_RANLIB
139 LIB_AM_PROG_AS
140
141 host_makefile_frag=${srcdir}/config/default.mh
142
143 dnl We have to assign the same value to other variables because autoconf
144 dnl doesn't provide a mechanism to substitute a replacement keyword with
145 dnl arbitrary data or pathnames.
146 dnl
147 host_makefile_frag_path=$host_makefile_frag
148 AC_SUBST(host_makefile_frag_path)
149 AC_SUBST_FILE(host_makefile_frag)
150
151 if test "${multilib}" = "yes"; then
152 multilib_arg="--enable-multilib"
153 else
154 multilib_arg=
155 fi
156
157 # for now, only add multilibs for specific targets
158 AC_CONFIG_FILES([Makefile],
159 [if test -n "$CONFIG_FILES"; then
160 unset ac_file
161 . ${libgloss_topdir}/config-ml.in
162 fi],
163 srcdir=${srcdir}
164 target=${target}
165 with_multisubdir=${with_multisubdir}
166 ac_configure_args="--enable-multilib ${ac_configure_args}"
167 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
168 libgloss_topdir=${libgloss_topdir}
169 CC="${CC}"
170 LDFLAGS=${LDFLAGS}
171 )
172 AC_OUTPUT
173
174
This page took 0.041049 seconds and 5 git commands to generate.