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