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