Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | dnl | |
da594c4a AM |
3 | AC_PREREQ(2.59) |
4 | AC_INIT | |
5 | AC_CONFIG_SRCDIR(ar.c) | |
252b5132 | 6 | |
da594c4a | 7 | AC_CANONICAL_TARGET |
5d64ca4e | 8 | AC_ISC_POSIX |
252b5132 | 9 | |
27b7e12d AM |
10 | changequote(,)dnl |
11 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
12 | changequote([,])dnl | |
13 | AM_INIT_AUTOMAKE(binutils, ${BFD_VERSION}) | |
252b5132 | 14 | |
d45dc31f SE |
15 | AC_PROG_CC |
16 | AC_GNU_SOURCE | |
7357c5b6 | 17 | AC_USE_SYSTEM_EXTENSIONS |
e3525117 | 18 | |
da2f07f1 | 19 | ACX_LARGEFILE |
da594c4a | 20 | LT_INIT |
252b5132 RH |
21 | |
22 | AC_ARG_ENABLE(targets, | |
23 | [ --enable-targets alternative target configurations], | |
24 | [case "${enableval}" in | |
da594c4a | 25 | yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all') |
252b5132 RH |
26 | ;; |
27 | no) enable_targets= ;; | |
28 | *) enable_targets=$enableval ;; | |
29 | esac])dnl | |
252b5132 | 30 | |
9cb80f72 RM |
31 | AC_ARG_ENABLE(deterministic-archives, |
32 | [AS_HELP_STRING([--enable-deterministic-archives], | |
33 | [ar and ranlib default to -D behavior])], [ | |
34 | if test "${enableval}" = no; then | |
35 | default_ar_deterministic=0 | |
36 | else | |
37 | default_ar_deterministic=1 | |
38 | fi], [default_ar_deterministic=0]) | |
39 | ||
40 | AC_DEFINE_UNQUOTED(DEFAULT_AR_DETERMINISTIC, $default_ar_deterministic, | |
41 | [Should ar and ranlib use -D behavior by default?]) | |
42 | ||
398ee8f1 | 43 | AM_BINUTILS_WARNINGS |
9cb80f72 | 44 | |
da594c4a | 45 | AC_CONFIG_HEADERS(config.h:config.in) |
252b5132 RH |
46 | |
47 | if test -z "$target" ; then | |
48 | AC_MSG_ERROR(Unrecognized target system type; please check config.sub.) | |
49 | fi | |
50 | if test -z "$host" ; then | |
51 | AC_MSG_ERROR(Unrecognized host system type; please check config.sub.) | |
52 | fi | |
53 | ||
252b5132 RH |
54 | AC_PROG_YACC |
55 | AM_PROG_LEX | |
56 | ||
1c062060 | 57 | ALL_LINGUAS="bg da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW" |
20e95c23 DJ |
58 | ZW_GNU_GETTEXT_SISTER_DIR |
59 | AM_PO_SUBDIRS | |
252b5132 RH |
60 | |
61 | AM_MAINTAINER_MODE | |
d5fbea21 | 62 | AM_CONDITIONAL(GENINSRC_NEVER, false) |
252b5132 | 63 | AC_EXEEXT |
2481e6a2 ILT |
64 | if test -n "$EXEEXT"; then |
65 | AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1, | |
66 | [Does the platform use an executable suffix?]) | |
67 | fi | |
bb0cb4db ILT |
68 | AC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}", |
69 | [Suffix used for executables, if any.]) | |
252b5132 RH |
70 | |
71 | # host-specific stuff: | |
72 | ||
73 | HDEFINES= | |
74 | ||
75 | . ${srcdir}/../bfd/configure.host | |
76 | ||
77 | AC_SUBST(HDEFINES) | |
78 | AR=${AR-ar} | |
79 | AC_SUBST(AR) | |
80 | AC_PROG_RANLIB | |
81 | AC_PROG_INSTALL | |
82 | ||
83 | BFD_CC_FOR_BUILD | |
84 | ||
8a965946 ILT |
85 | DEMANGLER_NAME=c++filt |
86 | case "${host}" in | |
87 | *-*-go32* | *-*-msdos*) | |
88 | DEMANGLER_NAME=cxxfilt | |
89 | esac | |
90 | AC_SUBST(DEMANGLER_NAME) | |
91 | ||
58797674 | 92 | AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h) |
252b5132 RH |
93 | AC_HEADER_SYS_WAIT |
94 | AC_FUNC_ALLOCA | |
44350750 | 95 | AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale) |
f9c026a8 NC |
96 | AC_CHECK_FUNC([mkstemp], |
97 | AC_DEFINE([HAVE_MKSTEMP], 1, | |
98 | [Define to 1 if you have the `mkstemp' function.])) | |
99 | AC_CHECK_FUNC([mkdtemp], | |
100 | AC_DEFINE([HAVE_MKDTEMP], 1, | |
101 | [Define to 1 if you have the `mkdtemp' function.])) | |
cedd9a58 | 102 | |
f353eb8a | 103 | # Some systems have frexp only in -lm, not in -lc. |
07735828 | 104 | AC_SEARCH_LIBS(frexp, m) |
f353eb8a | 105 | |
44350750 NC |
106 | AM_LC_MESSAGES |
107 | ||
252b5132 RH |
108 | AC_MSG_CHECKING(for time_t in time.h) |
109 | AC_CACHE_VAL(bu_cv_decl_time_t_time_h, | |
da594c4a | 110 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>], [time_t i;])], |
252b5132 RH |
111 | bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)]) |
112 | AC_MSG_RESULT($bu_cv_decl_time_t_time_h) | |
113 | if test $bu_cv_decl_time_t_time_h = yes; then | |
114 | AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1, | |
115 | [Is the type time_t defined in <time.h>?]) | |
116 | fi | |
117 | ||
118 | AC_MSG_CHECKING(for time_t in sys/types.h) | |
119 | AC_CACHE_VAL(bu_cv_decl_time_t_types_h, | |
da594c4a | 120 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>], [time_t i;])], |
252b5132 RH |
121 | bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)]) |
122 | AC_MSG_RESULT($bu_cv_decl_time_t_types_h) | |
123 | if test $bu_cv_decl_time_t_types_h = yes; then | |
124 | AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1, | |
125 | [Is the type time_t defined in <sys/types.h>?]) | |
126 | fi | |
127 | ||
e46eba98 NC |
128 | AC_MSG_CHECKING(for a known getopt prototype in unistd.h) |
129 | AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h, | |
da594c4a | 130 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])], |
e46eba98 NC |
131 | bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)]) |
132 | AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h) | |
133 | if test $bu_cv_decl_getopt_unistd_h = yes; then | |
134 | AC_DEFINE([HAVE_DECL_GETOPT], 1, | |
135 | [Is the prototype for getopt in <unistd.h> in the expected format?]) | |
136 | fi | |
137 | ||
252b5132 RH |
138 | # Under Next 3.2 <utime.h> apparently does not define struct utimbuf |
139 | # by default. | |
140 | AC_MSG_CHECKING([for utime.h]) | |
141 | AC_CACHE_VAL(bu_cv_header_utime_h, | |
da594c4a | 142 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h> |
252b5132 RH |
143 | #ifdef HAVE_TIME_H |
144 | #include <time.h> | |
145 | #endif | |
146 | #include <utime.h>], | |
da594c4a | 147 | [struct utimbuf s;])], |
252b5132 RH |
148 | bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)]) |
149 | AC_MSG_RESULT($bu_cv_header_utime_h) | |
150 | if test $bu_cv_header_utime_h = yes; then | |
151 | AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?]) | |
152 | fi | |
153 | ||
db50c840 EB |
154 | AC_CHECK_DECLS([fprintf, stpcpy, strstr, sbrk, getenv, environ, getc_unlocked, |
155 | snprintf, vsnprintf]) | |
252b5132 | 156 | |
1b315056 CS |
157 | # Link in zlib if we can. This allows us to read compressed debug |
158 | # sections. This is used only by readelf.c (objdump uses bfd for | |
159 | # reading compressed sections). | |
52546677 | 160 | AM_ZLIB |
1b315056 | 161 | |
252b5132 RH |
162 | BFD_BINARY_FOPEN |
163 | ||
164 | # target-specific stuff: | |
165 | ||
166 | # Canonicalize the secondary target names. | |
167 | if test -n "$enable_targets"; then | |
168 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
169 | do | |
6d83c84b | 170 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
171 | if test -n "$result"; then |
172 | canon_targets="$canon_targets $result" | |
173 | else | |
174 | # Allow targets that config.sub doesn't recognize, like "all". | |
175 | canon_targets="$canon_targets $targ" | |
176 | fi | |
177 | done | |
178 | fi | |
179 | ||
5ba684e2 NC |
180 | AC_CHECK_HEADER(iconv.h) |
181 | AM_ICONV | |
182 | ||
252b5132 RH |
183 | all_targets=false |
184 | BUILD_NLMCONV= | |
185 | NLMCONV_DEFS= | |
186 | BUILD_SRCONV= | |
187 | BUILD_DLLTOOL= | |
188 | DLLTOOL_DEFS= | |
7aad4c3d | 189 | DLLTOOL_DEFAULT= |
252b5132 | 190 | BUILD_WINDRES= |
692ed3e7 | 191 | BUILD_WINDMC= |
252b5132 RH |
192 | BUILD_DLLWRAP= |
193 | BUILD_MISC= | |
1d97d67f | 194 | BUILD_INSTALL_MISC= |
8b1e6df3 | 195 | OBJDUMP_DEFS= |
6abcee90 TG |
196 | OBJDUMP_PRIVATE_VECTORS= |
197 | OBJDUMP_PRIVATE_OFILES= | |
198 | od_vectors= | |
252b5132 RH |
199 | |
200 | for targ in $target $canon_targets | |
201 | do | |
202 | if test "x$targ" = "xall"; then | |
203 | all_targets=true | |
204 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
205 | BUILD_SRCONV='$(SRCONV_PROG)' | |
206 | NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" | |
1d97d67f | 207 | BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)' |
003bc0ba NC |
208 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
209 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
210 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
211 | if test -z "$DLLTOOL_DEFAULT"; then | |
212 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" | |
213 | fi | |
214 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
215 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' | |
6abcee90 | 216 | od_vectors="$od_vectors objdump_private_desc_xcoff" |
252b5132 RH |
217 | else |
218 | case $targ in | |
219 | changequote(,)dnl | |
9cb80f72 | 220 | i[3-7]86*-*-netware*) |
252b5132 RH |
221 | changequote([,])dnl |
222 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
223 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386" | |
224 | ;; | |
225 | alpha*-*-netware*) | |
226 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
227 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA" | |
228 | ;; | |
229 | powerpc*-*-netware*) | |
230 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
231 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC" | |
232 | ;; | |
233 | sparc*-*-netware*) | |
234 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
235 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC" | |
236 | ;; | |
237 | esac | |
6abcee90 | 238 | |
252b5132 RH |
239 | case $targ in |
240 | *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;; | |
241 | esac | |
6abcee90 | 242 | |
252b5132 | 243 | case $targ in |
a8c548cb NC |
244 | arm-epoc-pe*) |
245 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
7aad4c3d L |
246 | if test -z "$DLLTOOL_DEFAULT"; then |
247 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC" | |
248 | fi | |
a8c548cb NC |
249 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM" |
250 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 251 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
a8c548cb | 252 | ;; |
361dff73 | 253 | arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*) |
7148cc28 | 254 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
255 | if test -z "$DLLTOOL_DEFAULT"; then |
256 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE" | |
257 | fi | |
7148cc28 NC |
258 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM" |
259 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 260 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
7148cc28 NC |
261 | ;; |
262 | arm-*-pe*) | |
252b5132 | 263 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
264 | if test -z "$DLLTOOL_DEFAULT"; then |
265 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM" | |
266 | fi | |
252b5132 RH |
267 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" |
268 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 269 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
7a7b06ef | 270 | ;; |
42037fe5 | 271 | x86_64-*-mingw*) |
99ad8390 | 272 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
273 | if test -z "$DLLTOOL_DEFAULT"; then |
274 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64" | |
275 | fi | |
99ad8390 NC |
276 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64" |
277 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 278 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
99ad8390 NC |
279 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' |
280 | ;; | |
252b5132 | 281 | changequote(,)dnl |
80c7c40a | 282 | i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*) |
252b5132 RH |
283 | changequote([,])dnl |
284 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
7aad4c3d L |
285 | if test -z "$DLLTOOL_DEFAULT"; then |
286 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" | |
287 | fi | |
252b5132 RH |
288 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" |
289 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 290 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
252b5132 | 291 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' |
7a7b06ef | 292 | ;; |
80c7c40a NC |
293 | changequote(,)dnl |
294 | i[3-7]86-*-interix) | |
295 | changequote([,])dnl | |
7a7b06ef | 296 | BUILD_DLLTOOL='$(DLLTOOL_PROG)' |
7aad4c3d L |
297 | if test -z "$DLLTOOL_DEFAULT"; then |
298 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" | |
299 | fi | |
7a7b06ef ILT |
300 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" |
301 | ;; | |
f0660b73 NC |
302 | changequote(,)dnl |
303 | powerpc*-aix5.[01]) | |
304 | changequote([,])dnl | |
305 | ;; | |
e5231592 RS |
306 | changequote(,)dnl |
307 | powerpc*-aix[5-9].*) | |
308 | changequote([,])dnl | |
f0660b73 NC |
309 | OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT" |
310 | ;; | |
e1d5b1e7 | 311 | powerpc*-*-pe* | powerpc*-*-cygwin*) |
252b5132 | 312 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
313 | if test -z "$DLLTOOL_DEFAULT"; then |
314 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC" | |
315 | fi | |
252b5132 RH |
316 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC" |
317 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 318 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
7a7b06ef | 319 | ;; |
59678365 | 320 | powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*) |
1ab52cbe AM |
321 | case "$BUILD_INSTALL_MISC" in |
322 | *embedspu*) ;; | |
323 | *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu" | |
324 | esac | |
669a9a2a | 325 | ;; |
e1d5b1e7 | 326 | sh*-*-pe) |
8a0e0f38 | 327 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
328 | if test -z "$DLLTOOL_DEFAULT"; then |
329 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH" | |
330 | fi | |
8a0e0f38 NC |
331 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" |
332 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 333 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
8a0e0f38 | 334 | ;; |
cd14b966 | 335 | spu-*-*) |
1d97d67f | 336 | BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)' |
cd14b966 | 337 | ;; |
e1d5b1e7 | 338 | mips*-*-pe) |
8a0e0f38 | 339 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
340 | if test -z "$DLLTOOL_DEFAULT"; then |
341 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS" | |
342 | fi | |
8a0e0f38 NC |
343 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS" |
344 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 345 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
8a0e0f38 | 346 | ;; |
27a710e5 | 347 | mcore-*-pe) |
661016bb | 348 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
349 | if test -z "$DLLTOOL_DEFAULT"; then |
350 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE" | |
351 | fi | |
661016bb NC |
352 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE" |
353 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 354 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
7a7b06ef | 355 | ;; |
27a710e5 | 356 | mcore-*-elf) |
661016bb | 357 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
358 | if test -z "$DLLTOOL_DEFAULT"; then |
359 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF" | |
360 | fi | |
661016bb | 361 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" |
7a7b06ef | 362 | ;; |
15ab5209 DB |
363 | mep-*) |
364 | OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0" | |
365 | ;; | |
252b5132 | 366 | esac |
6abcee90 TG |
367 | |
368 | # Add objdump private vectors. | |
369 | case $targ in | |
370 | powerpc-*-aix*) | |
c5012cd8 TG |
371 | od_vectors="$od_vectors objdump_private_desc_xcoff" |
372 | ;; | |
373 | *-*-darwin*) | |
374 | od_vectors="$od_vectors objdump_private_desc_mach_o" | |
6abcee90 TG |
375 | ;; |
376 | esac | |
252b5132 RH |
377 | fi |
378 | done | |
379 | ||
6abcee90 TG |
380 | # Uniq objdump private vector, build objdump target ofiles. |
381 | od_files= | |
382 | f="" | |
383 | for i in $od_vectors ; do | |
384 | case " $f " in | |
385 | *" $i "*) ;; | |
386 | *) | |
387 | f="$f $i" | |
388 | OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i," | |
389 | case $i in | |
390 | objdump_private_desc_xcoff) | |
391 | od_files="$od_files od-xcoff" ;; | |
c5012cd8 TG |
392 | objdump_private_desc_mach_o) |
393 | od_files="$od_files od-macho" ;; | |
6abcee90 TG |
394 | *) AC_MSG_ERROR(*** unknown private vector $i) ;; |
395 | esac | |
396 | ;; | |
397 | esac | |
398 | done | |
399 | ||
400 | # Uniq objdump target ofiles | |
401 | f="" | |
402 | for i in $od_files ; do | |
403 | case " $f " in | |
404 | *" $i "*) ;; | |
405 | *) | |
406 | f="$f $i" | |
407 | OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext" | |
408 | ;; | |
409 | esac | |
410 | done | |
411 | ||
7aad4c3d L |
412 | DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT" |
413 | ||
c918cb96 DD |
414 | if test "${with_windres+set}" = set; then |
415 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
416 | fi | |
417 | ||
692ed3e7 NC |
418 | if test "${with_windmc+set}" = set; then |
419 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
420 | fi | |
421 | ||
6abcee90 TG |
422 | OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\"" |
423 | ||
252b5132 RH |
424 | AC_SUBST(NLMCONV_DEFS) |
425 | AC_SUBST(BUILD_NLMCONV) | |
426 | AC_SUBST(BUILD_SRCONV) | |
427 | AC_SUBST(BUILD_DLLTOOL) | |
428 | AC_SUBST(DLLTOOL_DEFS) | |
429 | AC_SUBST(BUILD_WINDRES) | |
692ed3e7 | 430 | AC_SUBST(BUILD_WINDMC) |
252b5132 RH |
431 | AC_SUBST(BUILD_DLLWRAP) |
432 | AC_SUBST(BUILD_MISC) | |
1d97d67f | 433 | AC_SUBST(BUILD_INSTALL_MISC) |
8b1e6df3 | 434 | AC_SUBST(OBJDUMP_DEFS) |
6abcee90 | 435 | AC_SUBST(OBJDUMP_PRIVATE_OFILES) |
252b5132 RH |
436 | |
437 | AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.]) | |
438 | ||
439 | targ=$target | |
440 | . $srcdir/../bfd/config.bfd | |
441 | if test "x$targ_underscore" = "xyes"; then | |
442 | UNDERSCORE=1 | |
443 | else | |
444 | UNDERSCORE=0 | |
445 | fi | |
bb279dc0 ZW |
446 | AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE, |
447 | [Define to 1 if user symbol names have a leading underscore, 0 if not.]) | |
252b5132 | 448 | |
9cb80f72 | 449 | # Emulation |
52fbfb5d AM |
450 | targ=$target |
451 | . ${srcdir}/configure.tgt | |
452 | EMULATION=$targ_emul | |
9cb80f72 | 453 | EMULATION_VECTOR=$targ_emul_vector |
eb1e0e80 NC |
454 | |
455 | AC_SUBST(EMULATION) | |
456 | AC_SUBST(EMULATION_VECTOR) | |
457 | ||
108a6f8e CD |
458 | # Required for html and install-html |
459 | AC_SUBST(datarootdir) | |
460 | AC_SUBST(docdir) | |
461 | AC_SUBST(htmldir) | |
31dd3154 | 462 | AC_SUBST(pdfdir) |
108a6f8e | 463 | |
da594c4a AM |
464 | AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in) |
465 | AC_OUTPUT |