]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/configure.ac
Change the readelf and objdump programs so that they will automatically follow links...
[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
c46b7066
NC
85
86AC_ARG_ENABLE(follow-debug-links,
87[AS_HELP_STRING([--enable-follow-debug-links],
88 [Have readelf and objdump follow debug links by default])], [
89if test "${enableval}" = no; then
90 default_for_follow_links=0
91else
92 default_for_follow_links=1
93fi], [default_for_follow_links=1])
94
95AC_DEFINE_UNQUOTED(DEFAULT_FOR_FOLLOW_LINKS, $default_for_follow_links,
96 [Have readelf and objdump follow debug links by default])
97
98
e6f6aa8d
NC
99AC_DEBUGINFOD
100
094e34f2
NA
101GCC_ENABLE([libctf], [yes], [], [Handle .ctf type-info sections])
102if test "${enable_libctf}" = yes; then
103 AC_DEFINE(ENABLE_LIBCTF, 1, [Handle .ctf type-info sections])
104fi
105AM_CONDITIONAL(ENABLE_LIBCTF, test "${enable_libctf}" = yes)
106
398ee8f1 107AM_BINUTILS_WARNINGS
9cb80f72 108
da594c4a 109AC_CONFIG_HEADERS(config.h:config.in)
252b5132 110
df7b86aa
NC
111AH_VERBATIM([00_CONFIG_H_CHECK],
112[/* Check that config.h is #included before system headers
113 (this works only for glibc, but that should be enough). */
e6f88107 114#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
df7b86aa 115# error config.h must be #included before system headers
e6f88107
AM
116#endif
117#define __CONFIG_H__ 1])
df7b86aa 118
252b5132
RH
119if test -z "$target" ; then
120 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
121fi
122if test -z "$host" ; then
123 AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)
124fi
125
252b5132
RH
126AC_PROG_YACC
127AM_PROG_LEX
128
e184813f 129ALL_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
130ZW_GNU_GETTEXT_SISTER_DIR
131AM_PO_SUBDIRS
252b5132
RH
132
133AM_MAINTAINER_MODE
d5fbea21 134AM_CONDITIONAL(GENINSRC_NEVER, false)
252b5132 135AC_EXEEXT
2481e6a2
ILT
136if test -n "$EXEEXT"; then
137 AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1,
138 [Does the platform use an executable suffix?])
139fi
bb0cb4db
ILT
140AC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}",
141 [Suffix used for executables, if any.])
252b5132
RH
142
143# host-specific stuff:
144
145HDEFINES=
146
147. ${srcdir}/../bfd/configure.host
148
149AC_SUBST(HDEFINES)
150AR=${AR-ar}
151AC_SUBST(AR)
152AC_PROG_RANLIB
153AC_PROG_INSTALL
154
155BFD_CC_FOR_BUILD
156
8a965946
ILT
157DEMANGLER_NAME=c++filt
158case "${host}" in
159 *-*-go32* | *-*-msdos*)
160 DEMANGLER_NAME=cxxfilt
161esac
162AC_SUBST(DEMANGLER_NAME)
163
4c219c2e
AM
164AC_CHECK_SIZEOF([long])
165AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
166
3bfcb652 167AC_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 168AC_HEADER_SYS_WAIT
208a4923 169ACX_HEADER_STRING
252b5132 170AC_FUNC_ALLOCA
34156b23 171AC_FUNC_MMAP
44350750 172AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale)
f9c026a8
NC
173AC_CHECK_FUNC([mkstemp],
174 AC_DEFINE([HAVE_MKSTEMP], 1,
175 [Define to 1 if you have the `mkstemp' function.]))
176AC_CHECK_FUNC([mkdtemp],
177 AC_DEFINE([HAVE_MKDTEMP], 1,
178 [Define to 1 if you have the `mkdtemp' function.]))
3bfcb652
NC
179 AC_MSG_CHECKING([for mbstate_t])
180 AC_TRY_COMPILE([#include <wchar.h>],
181 [mbstate_t teststate;],
182 have_mbstate_t=yes, have_mbstate_t=no)
183 AC_MSG_RESULT($have_mbstate_t)
184 if test x"$have_mbstate_t" = xyes; then
185 AC_DEFINE(HAVE_MBSTATE_T,1,[Define if mbstate_t exists in wchar.h.])
186 fi
cedd9a58 187
f353eb8a 188# Some systems have frexp only in -lm, not in -lc.
07735828 189AC_SEARCH_LIBS(frexp, m)
f353eb8a 190
44350750
NC
191AM_LC_MESSAGES
192
252b5132
RH
193AC_MSG_CHECKING(for time_t in time.h)
194AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
da594c4a 195[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>], [time_t i;])],
252b5132
RH
196bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])
197AC_MSG_RESULT($bu_cv_decl_time_t_time_h)
198if test $bu_cv_decl_time_t_time_h = yes; then
199 AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1,
200 [Is the type time_t defined in <time.h>?])
201fi
202
203AC_MSG_CHECKING(for time_t in sys/types.h)
204AC_CACHE_VAL(bu_cv_decl_time_t_types_h,
da594c4a 205[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>], [time_t i;])],
252b5132
RH
206bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])
207AC_MSG_RESULT($bu_cv_decl_time_t_types_h)
208if test $bu_cv_decl_time_t_types_h = yes; then
209 AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1,
210 [Is the type time_t defined in <sys/types.h>?])
211fi
212
e46eba98
NC
213AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
214AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
da594c4a 215[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
e46eba98
NC
216bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)])
217AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h)
218if test $bu_cv_decl_getopt_unistd_h = yes; then
219 AC_DEFINE([HAVE_DECL_GETOPT], 1,
220 [Is the prototype for getopt in <unistd.h> in the expected format?])
221fi
222
252b5132
RH
223# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
224# by default.
225AC_MSG_CHECKING([for utime.h])
226AC_CACHE_VAL(bu_cv_header_utime_h,
da594c4a 227[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
252b5132
RH
228#ifdef HAVE_TIME_H
229#include <time.h>
230#endif
231#include <utime.h>],
da594c4a 232[struct utimbuf s;])],
252b5132
RH
233bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])
234AC_MSG_RESULT($bu_cv_header_utime_h)
235if test $bu_cv_header_utime_h = yes; then
236 AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
237fi
238
1f5345a6 239AC_CHECK_DECLS([asprintf, environ, fprintf, getc_unlocked, getenv,
952781e8 240 sbrk, snprintf, stpcpy, strnlen, strstr, vsnprintf])
252b5132 241
ed2b5077
L
242# Link in zlib if we can. This allows us to read compressed debug
243# sections. This is used only by readelf.c (objdump uses bfd for
244# reading compressed sections).
245AM_ZLIB
1b315056 246
252b5132
RH
247BFD_BINARY_FOPEN
248
249# target-specific stuff:
250
251# Canonicalize the secondary target names.
252if test -n "$enable_targets"; then
253 for targ in `echo $enable_targets | sed 's/,/ /g'`
254 do
6d83c84b 255 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
256 if test -n "$result"; then
257 canon_targets="$canon_targets $result"
258 else
259 # Allow targets that config.sub doesn't recognize, like "all".
260 canon_targets="$canon_targets $targ"
261 fi
262 done
263fi
264
5ba684e2
NC
265AC_CHECK_HEADER(iconv.h)
266AM_ICONV
267
252b5132 268all_targets=false
252b5132
RH
269BUILD_SRCONV=
270BUILD_DLLTOOL=
271DLLTOOL_DEFS=
7aad4c3d 272DLLTOOL_DEFAULT=
252b5132 273BUILD_WINDRES=
692ed3e7 274BUILD_WINDMC=
252b5132
RH
275BUILD_DLLWRAP=
276BUILD_MISC=
1d97d67f 277BUILD_INSTALL_MISC=
8b1e6df3 278OBJDUMP_DEFS=
6abcee90
TG
279OBJDUMP_PRIVATE_VECTORS=
280OBJDUMP_PRIVATE_OFILES=
281od_vectors=
252b5132
RH
282
283for targ in $target $canon_targets
284do
285 if test "x$targ" = "xall"; then
286 all_targets=true
252b5132 287 BUILD_SRCONV='$(SRCONV_PROG)'
1d97d67f 288 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
289 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
290 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
291 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
292 if test -z "$DLLTOOL_DEFAULT"; then
293 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
294 fi
295 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
296 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
6abcee90 297 od_vectors="$od_vectors objdump_private_desc_xcoff"
252b5132
RH
298 else
299 case $targ in
252b5132
RH
300 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
301 esac
6abcee90 302
252b5132 303 case $targ in
361dff73 304 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
7148cc28 305 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
306 if test -z "$DLLTOOL_DEFAULT"; then
307 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
308 fi
7148cc28
NC
309 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
310 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 311 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
312 ;;
313 arm-*-pe*)
252b5132 314 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
315 if test -z "$DLLTOOL_DEFAULT"; then
316 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
317 fi
252b5132
RH
318 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
319 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 320 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 321 ;;
ee36d918 322 x86_64-*-mingw* | x86_64-*-cygwin*)
99ad8390 323 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
324 if test -z "$DLLTOOL_DEFAULT"; then
325 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
326 fi
99ad8390
NC
327 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
328 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 329 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
330 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
331 ;;
252b5132 332changequote(,)dnl
80c7c40a 333 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132
RH
334changequote([,])dnl
335 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
336 if test -z "$DLLTOOL_DEFAULT"; then
337 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
338 fi
252b5132
RH
339 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
340 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 341 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 342 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 343 ;;
80c7c40a
NC
344changequote(,)dnl
345 i[3-7]86-*-interix)
346changequote([,])dnl
7a7b06ef 347 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
348 if test -z "$DLLTOOL_DEFAULT"; then
349 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
350 fi
7a7b06ef
ILT
351 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
352 ;;
f0660b73
NC
353changequote(,)dnl
354 powerpc*-aix5.[01])
355changequote([,])dnl
356 ;;
e5231592
RS
357changequote(,)dnl
358 powerpc*-aix[5-9].*)
359changequote([,])dnl
f0660b73
NC
360 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
361 ;;
59678365 362 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1ab52cbe
AM
363 case "$BUILD_INSTALL_MISC" in
364 *embedspu*) ;;
365 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
366 esac
669a9a2a 367 ;;
e1d5b1e7 368 sh*-*-pe)
8a0e0f38 369 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
370 if test -z "$DLLTOOL_DEFAULT"; then
371 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
372 fi
8a0e0f38
NC
373 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
374 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 375 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 376 ;;
cd14b966 377 spu-*-*)
1d97d67f 378 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 379 ;;
e1d5b1e7 380 mips*-*-pe)
8a0e0f38 381 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
382 if test -z "$DLLTOOL_DEFAULT"; then
383 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
384 fi
8a0e0f38
NC
385 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
386 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 387 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 388 ;;
27a710e5 389 mcore-*-pe)
661016bb 390 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
391 if test -z "$DLLTOOL_DEFAULT"; then
392 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
393 fi
661016bb
NC
394 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
395 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 396 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 397 ;;
27a710e5 398 mcore-*-elf)
661016bb 399 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
400 if test -z "$DLLTOOL_DEFAULT"; then
401 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
402 fi
661016bb 403 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 404 ;;
15ab5209
DB
405 mep-*)
406 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
407 ;;
252b5132 408 esac
6abcee90
TG
409
410 # Add objdump private vectors.
411 case $targ in
6d0cfb9c
DC
412 avr-*-*)
413 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
414 ;;
52fe4420 415 powerpc*-*-aix* | rs6000-*-aix*)
c5012cd8
TG
416 od_vectors="$od_vectors objdump_private_desc_xcoff"
417 ;;
418 *-*-darwin*)
419 od_vectors="$od_vectors objdump_private_desc_mach_o"
6abcee90
TG
420 ;;
421 esac
252b5132
RH
422 fi
423done
424
6abcee90
TG
425# Uniq objdump private vector, build objdump target ofiles.
426od_files=
427f=""
428for i in $od_vectors ; do
429 case " $f " in
430 *" $i "*) ;;
431 *)
432 f="$f $i"
433 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
434 case $i in
6d0cfb9c
DC
435 objdump_private_desc_elf32_avr)
436 od_files="$od_files od-elf32_avr" ;;
6abcee90
TG
437 objdump_private_desc_xcoff)
438 od_files="$od_files od-xcoff" ;;
c5012cd8
TG
439 objdump_private_desc_mach_o)
440 od_files="$od_files od-macho" ;;
6abcee90
TG
441 *) AC_MSG_ERROR(*** unknown private vector $i) ;;
442 esac
443 ;;
444 esac
445done
446
447# Uniq objdump target ofiles
448f=""
449for i in $od_files ; do
450 case " $f " in
451 *" $i "*) ;;
452 *)
453 f="$f $i"
454 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
455 ;;
456 esac
457done
458
7aad4c3d
L
459DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
460
c918cb96
DD
461if test "${with_windres+set}" = set; then
462 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
463fi
464
692ed3e7
NC
465if test "${with_windmc+set}" = set; then
466 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
467fi
468
6abcee90
TG
469OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
470
252b5132
RH
471AC_SUBST(BUILD_SRCONV)
472AC_SUBST(BUILD_DLLTOOL)
473AC_SUBST(DLLTOOL_DEFS)
474AC_SUBST(BUILD_WINDRES)
692ed3e7 475AC_SUBST(BUILD_WINDMC)
252b5132
RH
476AC_SUBST(BUILD_DLLWRAP)
477AC_SUBST(BUILD_MISC)
1d97d67f 478AC_SUBST(BUILD_INSTALL_MISC)
8b1e6df3 479AC_SUBST(OBJDUMP_DEFS)
6abcee90 480AC_SUBST(OBJDUMP_PRIVATE_OFILES)
252b5132
RH
481
482AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
483
484targ=$target
485. $srcdir/../bfd/config.bfd
486if test "x$targ_underscore" = "xyes"; then
487 UNDERSCORE=1
488else
489 UNDERSCORE=0
490fi
bb279dc0
ZW
491AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
492 [Define to 1 if user symbol names have a leading underscore, 0 if not.])
252b5132 493
9cb80f72 494# Emulation
52fbfb5d
AM
495targ=$target
496. ${srcdir}/configure.tgt
497EMULATION=$targ_emul
9cb80f72 498EMULATION_VECTOR=$targ_emul_vector
eb1e0e80
NC
499
500AC_SUBST(EMULATION)
501AC_SUBST(EMULATION_VECTOR)
502
108a6f8e
CD
503# Required for html and install-html
504AC_SUBST(datarootdir)
505AC_SUBST(docdir)
506AC_SUBST(htmldir)
31dd3154 507AC_SUBST(pdfdir)
108a6f8e 508
da594c4a
AM
509AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
510AC_OUTPUT
d546b610
L
511
512GNU_MAKE_JOBSERVER