gdbserver: constify the 'pid_to_exec_file' target op
[deliverable/binutils-gdb.git] / ld / 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.
995da1ff 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.
995da1ff 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
AM
20m4_include([../bfd/version.m4])
21AC_INIT([ld], BFD_VERSION)
da594c4a 22AC_CONFIG_SRCDIR(ldmain.c)
252b5132 23
da594c4a 24AC_CANONICAL_TARGET
02ecc8e9 25AC_CANONICAL_BUILD
252b5132 26
2e98a7bd 27AM_INIT_AUTOMAKE
64ac50ac 28AM_MAINTAINER_MODE
252b5132 29
b879806f
AM
30AC_PROG_CC
31AC_PROG_CXX
68880f31 32AC_PROG_GREP
b879806f
AM
33AC_GNU_SOURCE
34AC_USE_SYSTEM_EXTENSIONS
35AC_PROG_INSTALL
36
37LT_INIT
38ACX_LARGEFILE
39
8e523c23 40AC_ARG_WITH(lib-path, [ --with-lib-path=dir1:dir2... set default LIB_PATH],LIB_PATH=$withval)
252b5132
RH
41AC_ARG_ENABLE(targets,
42[ --enable-targets alternative target configurations],
43[case "${enableval}" in
da594c4a 44 yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all')
6c19b93b 45 ;;
252b5132
RH
46 no) enable_targets= ;;
47 *) enable_targets=$enableval ;;
48esac])dnl
49AC_ARG_ENABLE(64-bit-bfd,
50[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
51[case "${enableval}" in
52 yes) want64=true ;;
53 no) want64=false ;;
54 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
55esac],[want64=false])dnl
56
9c8ebd6a
DJ
57AC_ARG_WITH(sysroot,
58[ --with-sysroot[=DIR] Search for usr/lib et al within DIR.],
59[
60 case ${with_sysroot} in
715d1656 61 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
9c8ebd6a
DJ
62 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
63 esac
64
65 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
66 use_sysroot=yes
67
fa1e8d8e
RS
68 if test "x$prefix" = xNONE; then
69 test_prefix=/usr/local
70 else
71 test_prefix=$prefix
72 fi
9c8ebd6a 73 if test "x$exec_prefix" = xNONE; then
fa1e8d8e 74 test_exec_prefix=$test_prefix
9c8ebd6a 75 else
fa1e8d8e 76 test_exec_prefix=$exec_prefix
9c8ebd6a
DJ
77 fi
78 case ${TARGET_SYSTEM_ROOT} in
715d1656 79 "${test_prefix}"|"${test_prefix}/"*|\
fa1e8d8e
RS
80 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
81 '${prefix}'|'${prefix}/'*|\
715d1656 82 '${exec_prefix}'|'${exec_prefix}/'*)
9c8ebd6a
DJ
83 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
84 TARGET_SYSTEM_ROOT_DEFINE="$t"
85 ;;
86 esac
87], [
88 use_sysroot=no
89 TARGET_SYSTEM_ROOT=
90 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
91])
92AC_SUBST(use_sysroot)
93AC_SUBST(TARGET_SYSTEM_ROOT)
94AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
95
4fda8867
NC
96dnl Use --enable-gold to decide if this linker should be the default.
97dnl "install_as_default" is set to false if gold is the default linker.
98dnl "installed_linker" is the installed BFD linker name.
99AC_ARG_ENABLE(gold,
c7791212 100[[ --enable-gold[=ARG] build gold [ARG={default,yes,no}]]],
bf9ef603 101[case "${enableval}" in
c7791212 102 default)
4fda8867
NC
103 install_as_default=no
104 installed_linker=ld.bfd
105 ;;
c7791212 106 yes|no)
4fda8867
NC
107 install_as_default=yes
108 installed_linker=ld.bfd
109 ;;
110 *)
111 AC_MSG_ERROR([invalid --enable-gold argument])
112 ;;
113 esac],
c7791212
NC
114[install_as_default=yes
115 installed_linker=ld.bfd])
4fda8867
NC
116AC_SUBST(install_as_default)
117AC_SUBST(installed_linker)
118
7fb9f789
NC
119AC_ARG_ENABLE([got],
120AS_HELP_STRING([--enable-got=<type>],
6c19b93b 121 [GOT handling scheme (target, single, negative, multigot)]),
7fb9f789
NC
122[case "${enableval}" in
123 target | single | negative | multigot) got_handling=$enableval ;;
da594c4a 124 *) AC_MSG_ERROR(bad value ${enableval} for --enable-got option) ;;
7fb9f789
NC
125esac],
126[got_handling=target])
127
128case "${got_handling}" in
129 target)
130 AC_DEFINE([GOT_HANDLING_DEFAULT], [GOT_HANDLING_TARGET_DEFAULT],
6c19b93b 131 [Define to choose default GOT handling scheme]) ;;
7fb9f789
NC
132 single)
133 AC_DEFINE([GOT_HANDLING_DEFAULT], [GOT_HANDLING_SINGLE],
6c19b93b 134 [Define to choose default GOT handling scheme]) ;;
7fb9f789
NC
135 negative)
136 AC_DEFINE([GOT_HANDLING_DEFAULT], [GOT_HANDLING_NEGATIVE],
6c19b93b 137 [Define to choose default GOT handling scheme]) ;;
7fb9f789
NC
138 multigot)
139 AC_DEFINE([GOT_HANDLING_DEFAULT], [GOT_HANDLING_MULTIGOT],
6c19b93b 140 [Define to choose default GOT handling scheme]) ;;
da594c4a 141 *) AC_MSG_ERROR(bad value ${got_handling} for --enable-got option) ;;
7fb9f789
NC
142esac
143
6c3bc0f8
NC
144# PR gas/19109
145# Decide the default method for compressing debug sections.
146ac_default_compressed_debug_sections=unset
147# Provide a configure time option to override our default.
148AC_ARG_ENABLE(compressed_debug_sections,
4894d80b
L
149 AS_HELP_STRING([--enable-compressed-debug-sections={all,ld,none}],
150 [compress debug sections by default])],
151[case ,"${enableval}", in
9b4c123c 152 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 153 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
154esac])dnl
155
6734f10a
SB
156# Decide setting DT_RUNPATH instead of DT_RPATH by default
157ac_default_new_dtags=unset
158# Provide a configure time option to override our default.
159AC_ARG_ENABLE(new_dtags,
160 AS_HELP_STRING([--enable-new-dtags],
161 [set DT_RUNPATH instead of DT_RPATH by default])],
162[case "${enableval}" in
163 yes) ac_default_new_dtags=1 ;;
164 no) ac_default_new_dtags=0 ;;
165esac])dnl
166
647e4d46
L
167# Decide if -z relro should be enabled in ELF linker by default.
168ac_default_ld_z_relro=unset
169# Provide a configure time option to override our default.
170AC_ARG_ENABLE(relro,
171 AS_HELP_STRING([--enable-relro],
172 [enable -z relro in ELF linker by default]),
173[case "${enableval}" in
174 yes) ac_default_ld_z_relro=1 ;;
175 no) ac_default_ld_z_relro=0 ;;
176esac])dnl
177
b32632c4
L
178# Decide if DT_TEXTREL check should be enabled in ELF linker.
179ac_default_ld_textrel_check=unset
180AC_ARG_ENABLE([textrel-check],
181 AC_HELP_STRING([--enable-textrel-check=@<:@yes|no|warning|error@:>@],
182 [enable DT_TEXTREL check in ELF linker]),
183[case "${enableval}" in
184 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
185esac])
186
f6aec96d
L
187# Decide if -z separate-code should be enabled in ELF linker by default.
188ac_default_ld_z_separate_code=unset
189AC_ARG_ENABLE(separate-code,
190 AS_HELP_STRING([--enable-separate-code],
191 [enable -z separate-code in ELF linker by default]),
192[case "${enableval}" in
193 yes) ac_default_ld_z_separate_code=1 ;;
194 no) ac_default_ld_z_separate_code=0 ;;
195esac])
196
23ae20f5
NC
197# Decide if --error-handling-script should be supported.
198ac_support_error_handling_script=unset
199AC_ARG_ENABLE(error-handling-script,
200 AS_HELP_STRING([--enable-error-handling-script],
201 [enable/disable support for the --error-handling-script option]),
202[case "${enableval}" in
203 yes) ac_support_error_handling_script=1 ;;
204 no) ac_support_error_handling_script=0 ;;
205esac])
206
2760f24c
RG
207# Decide which "--hash-style" to use by default
208# Provide a configure time option to override our default.
209AC_ARG_ENABLE([default-hash-style],
210AS_HELP_STRING([--enable-default-hash-style={sysv,gnu,both}],
211 [use this default hash style]),
212[case "${enable_default_hash_style}" in
213 sysv | gnu | both) ;;
214 *) AC_MSG_ERROR([bad value ${enable_default_hash_style} for enable-default-hash-style option]) ;;
215esac],
216[case "${target}" in
217 # Enable gnu hash only on GNU targets, but not mips
218 mips*-*-*) enable_default_hash_style=sysv ;;
219 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
220 *) enable_default_hash_style=sysv ;;
221esac])
222
223case "${enable_default_hash_style}" in
224 sysv | both) ac_default_emit_sysv_hash=1 ;;
225 *) ac_default_emit_sysv_hash=0 ;;
226esac
227
228case "${enable_default_hash_style}" in
229 gnu | both) ac_default_emit_gnu_hash=1 ;;
230 *) ac_default_emit_gnu_hash=0 ;;
231esac
232
c774eab1
AM
233AC_ARG_ENABLE(initfini-array,
234[ --disable-initfini-array do not use .init_array/.fini_array sections],
235[case "${enableval}" in
236 yes|no) ;;
237 *) AC_MSG_ERROR([invalid --enable-initfini-array argument]) ;;
238 esac], [enable_initfini_array=yes])
239AC_SUBST(enable_initfini_array)
240if test $enable_initfini_array = yes; then
241 AC_DEFINE(HAVE_INITFINI_ARRAY, 1,
242 [Define .init_array/.fini_array sections are available and working.])
243fi
244
094e34f2
NA
245GCC_ENABLE([libctf], [yes], [], [Handle .ctf type-info sections])
246if test "${enable_libctf}" = yes; then
247 AC_DEFINE(ENABLE_LIBCTF, 1, [Handle .ctf type-info sections])
248fi
249AM_CONDITIONAL(ENABLE_LIBCTF, test "${enable_libctf}" = yes)
7cdfc346 250AC_SUBST(enable_libctf)
094e34f2 251
502bdb00 252AM_BINUTILS_WARNINGS
a2d91340 253
44350750
NC
254AM_LC_MESSAGES
255
da594c4a 256AC_CONFIG_HEADERS([config.h:config.in])
252b5132 257
df7b86aa
NC
258# PR 14072
259AH_VERBATIM([00_CONFIG_H_CHECK],
260[/* Check that config.h is #included before system headers
261 (this works only for glibc, but that should be enough). */
d17dce55 262#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
df7b86aa
NC
263# error config.h must be #included before system headers
264#endif
265#define __CONFIG_H__ 1])
266
252b5132
RH
267if test -z "$target" ; then
268 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
269fi
270if test -z "$host" ; then
271 AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)
272fi
273
274# host-specific stuff:
275
e184813f 276ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
20e95c23
DJ
277ZW_GNU_GETTEXT_SISTER_DIR
278AM_PO_SUBDIRS
252b5132
RH
279
280AC_EXEEXT
281
282AC_PROG_YACC
283AM_PROG_LEX
284
285AM_MAINTAINER_MODE
d5fbea21 286AM_CONDITIONAL(GENINSRC_NEVER, false)
eccbf555 287ACX_PROG_CMP_IGNORE_INITIAL
252b5132
RH
288
289. ${srcdir}/configure.host
290
291AC_SUBST(HDEFINES)
252b5132
RH
292AC_SUBST(NATIVE_LIB_DIRS)
293
c774eab1
AM
294# We use headers from include/ that check various HAVE_*_H macros, thus
295# should ensure they are set by configure. This is true even when C99
296# guarantees they are available.
297# sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
298# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
299# Besides those, we need to check anything used in ld/ not in C99.
300AC_CHECK_HEADERS(fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
301 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
302 sys/types.h unistd.h)
303AC_CHECK_FUNCS(close glob lseek mkstemp open realpath sbrk waitpid)
304
305BFD_BINARY_FOPEN
306
307AC_CHECK_DECLS([asprintf, environ, sbrk])
252b5132 308
2aec968d
L
309AC_FUNC_MMAP
310
b879806f 311AC_SEARCH_LIBS([dlopen], [dl])
5d3236ee 312
34875e64
NC
313AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
314AC_CACHE_VAL(ld_cv_decl_getopt_unistd_h,
da594c4a 315[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
34875e64
NC
316ld_cv_decl_getopt_unistd_h=yes, ld_cv_decl_getopt_unistd_h=no)])
317AC_MSG_RESULT($ld_cv_decl_getopt_unistd_h)
318if test $ld_cv_decl_getopt_unistd_h = yes; then
319 AC_DEFINE([HAVE_DECL_GETOPT], 1,
320 [Is the prototype for getopt in <unistd.h> in the expected format?])
321fi
bf9ef603 322
1ff6de03
NA
323# Link in zlib if we can. This allows us to read and write
324# compressed CTF sections.
325AM_ZLIB
326
597e2591
ILT
327# When converting linker scripts into strings for use in emulation
328# files, use astring.sed if the compiler supports ANSI string
329# concatenation, or ostring.sed otherwise. This is to support the
330# broken Microsoft MSVC compiler, which limits the length of string
331# constants, while still supporting pre-ANSI compilers which do not
332# support string concatenation.
e4dabd0e 333AC_MSG_CHECKING([whether ANSI C string concatenation works])
597e2591 334AC_CACHE_VAL(ld_cv_string_concatenation,
da594c4a
AM
335[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [char *a = "a" "a";])],
336 ld_cv_string_concatenation=yes,
337 ld_cv_string_concatenation=no)])
e4dabd0e
AS
338AC_MSG_RESULT($ld_cv_string_concatenation)
339if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
340 STRINGIFY=astring.sed
341else
342 STRINGIFY=ostring.sed
343fi
344AC_SUBST(STRINGIFY)
345
252b5132
RH
346# target-specific stuff:
347
348all_targets=
349EMUL=
350all_emuls=
351all_emul_extras=
ba2be581 352all_libpath=
50ff67e6 353TDIRS=
252b5132 354
bf9ef603 355# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 356# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
357if test x${want64} = xfalse; then
358 AC_CHECK_SIZEOF(void *)
359 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
360 want64=true
361 fi
362fi
363
f38a2680
AM
364elf_list_options=false
365elf_shlib_list_options=false
366elf_plt_unwind_list_options=false
252b5132
RH
367for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
368do
369 if test "$targ_alias" = "all"; then
370 all_targets=true
f38a2680
AM
371 elf_list_options=true
372 elf_shlib_list_options=true
373 elf_plt_unwind_list_options=true
252b5132
RH
374 else
375 # Canonicalize the secondary target names.
42ecbf5e 376 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
377 if test -n "$result"; then
378 targ=$result
379 else
380 targ=$targ_alias
381 fi
382
383 . ${srcdir}/configure.tgt
384
385 if test "$targ" = "$target"; then
386 EMUL=$targ_emul
387 fi
388
314e9a4e
L
389 if test x${want64} = xfalse; then
390 . ${srcdir}/../bfd/config.bfd
391 fi
392
534d3119
L
393 if test x${want64} = xtrue; then
394 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
395 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
396 fi
397
3336653a 398 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132 399 case " $all_emuls " in
8c3fff59
AM
400 *" e${i}.o "*) ;;
401 *)
402 all_emuls="$all_emuls e${i}.o"
403 eval result=\$tdir_$i
404 test -z "$result" && result=$targ_alias
50ff67e6
AM
405 TDIRS="$TDIRS
406tdir_$i=$result"
c58212ea
L
407 case "${i}" in
408 *elf*)
f38a2680 409 elf_list_options=true
68880f31
CLT
410 ;;
411 *)
075a2b89 412 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
f38a2680 413 elf_list_options=true
68880f31
CLT
414 fi
415 ;;
416 esac
f38a2680 417 if test "$elf_list_options" = "true"; then
c40e31a1
AM
418 source_sh()
419 {
420 . $1
421 }
422 source_sh ${srcdir}/emulparams/${i}.sh
c58212ea 423 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
f38a2680 424 elf_shlib_list_options=true
c58212ea
L
425 fi
426 if test x${PLT_UNWIND} = xyes; then
f38a2680 427 elf_plt_unwind_list_options=true
c58212ea 428 fi
68880f31 429 fi
c58212ea 430 ;;
252b5132
RH
431 esac
432 done
433
ba2be581 434 for i in $targ_emul $targ_extra_libpath; do
3336653a
RH
435 case " $all_libpath " in
436 *" ${i} "*) ;;
437 *)
ba2be581
RH
438 if test -z "$all_libpath"; then
439 all_libpath=${i}
440 else
441 all_libpath="$all_libpath ${i}"
442 fi
3336653a
RH
443 ;;
444 esac
445 done
446
252b5132
RH
447 for i in $targ_extra_ofiles; do
448 case " $all_emul_extras " in
449 *" ${i} "*) ;;
450 *)
451 all_emul_extras="$all_emul_extras ${i}"
452 ;;
453 esac
454 done
5063daf7 455
252b5132
RH
456 fi
457done
458
621ff761 459if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
460 AC_DEFINE(DEFAULT_FLAG_COMPRESS_DEBUG, 1, [Define if you want compressed debug sections by default.])
461fi
462
6734f10a
SB
463if test "${ac_default_new_dtags}" = unset; then
464 ac_default_new_dtags=0
465fi
466AC_DEFINE_UNQUOTED(DEFAULT_NEW_DTAGS,
467 $ac_default_new_dtags,
468 [Define to 1 if you want to set DT_RUNPATH instead of DT_RPATH by default.])
469
647e4d46
L
470if test "${ac_default_ld_z_relro}" = unset; then
471 ac_default_ld_z_relro=0
472fi
473AC_DEFINE_UNQUOTED(DEFAULT_LD_Z_RELRO,
474 $ac_default_ld_z_relro,
475 [Define to 1 if you want to enable -z relro in ELF linker by default.])
476
b32632c4
L
477ac_default_ld_textrel_check_warning=0
478case "${ac_default_ld_textrel_check}" in
479 unset|no)
480 ac_default_ld_textrel_check=textrel_check_none
481 ;;
482 yes|warning)
483 ac_default_ld_textrel_check=textrel_check_warning
484 ac_default_ld_textrel_check_warning=1
485 ;;
486 error)
487 ac_default_ld_textrel_check=textrel_check_error
488 ;;
489esac
490AC_DEFINE_UNQUOTED(DEFAULT_LD_TEXTREL_CHECK,
491 $ac_default_ld_textrel_check,
492 [The default method for DT_TEXTREL check in ELF linker.])
493AC_DEFINE_UNQUOTED(DEFAULT_LD_TEXTREL_CHECK_WARNING,
494 $ac_default_ld_textrel_check_warning,
495 [Define to 1 if DT_TEXTREL check is warning in ELF linker by default.])
496
f6aec96d
L
497if test "${ac_default_ld_z_separate_code}" = unset; then
498 ac_default_ld_z_separate_code=0
499fi
500AC_DEFINE_UNQUOTED(DEFAULT_LD_Z_SEPARATE_CODE,
501 $ac_default_ld_z_separate_code,
502 [Define to 1 if you want to enable -z separate-code in ELF linker by default.])
503
23ae20f5
NC
504if test "${ac_support_error_handling_script}" = unset; then
505 ac_support_error_handling_script=1
506fi
507AC_DEFINE_UNQUOTED(SUPPORT_ERROR_HANDLING_SCRIPT,
508 $ac_support_error_handling_script,
509 [Define to 1 if you want to support the --error-handling-script command line option.])
510
2760f24c
RG
511AC_DEFINE_UNQUOTED([DEFAULT_EMIT_SYSV_HASH],
512 [$ac_default_emit_sysv_hash],
513 [Define to 1 if you want to emit sysv hash in the ELF linker by default.])
514
515AC_DEFINE_UNQUOTED([DEFAULT_EMIT_GNU_HASH],
516 [$ac_default_emit_gnu_hash],
517 [Define to 1 if you want to emit gnu hash in the ELF linker by default.])
518
c58212ea
L
519AC_SUBST(elf_list_options)
520AC_SUBST(elf_shlib_list_options)
521AC_SUBST(elf_plt_unwind_list_options)
252b5132
RH
522AC_SUBST(EMUL)
523
50ff67e6
AM
524AC_SUBST(TDIRS)
525AM_SUBST_NOTMAKE(TDIRS)
252b5132 526
252b5132
RH
527if test x${all_targets} = xtrue; then
528 if test x${want64} = xtrue; then
529 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 530 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
252b5132
RH
531 else
532 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 533 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
252b5132 534 fi
252b5132
RH
535else
536 EMULATION_OFILES=$all_emuls
537 EMUL_EXTRA_OFILES=$all_emul_extras
538fi
539AC_SUBST(EMULATION_OFILES)
540AC_SUBST(EMUL_EXTRA_OFILES)
8e523c23 541AC_SUBST(LIB_PATH)
252b5132 542
3336653a
RH
543EMULATION_LIBPATH=$all_libpath
544AC_SUBST(EMULATION_LIBPATH)
545
252b5132 546if test x${enable_static} = xno; then
9165f454 547 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
87279e3c 548 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
252b5132
RH
549else
550 TESTBFDLIB="../bfd/.libs/libbfd.a"
87279e3c 551 TESTCTFLIB="../libctf/.libs/libctf.a"
252b5132 552fi
094e34f2
NA
553if test "${enable_libctf}" = no; then
554 TESTCTFLIB=
555fi
252b5132 556AC_SUBST(TESTBFDLIB)
87279e3c 557AC_SUBST(TESTCTFLIB)
252b5132 558
93a6d436
JL
559target_vendor=${target_vendor=$host_vendor}
560case "$target_vendor" in
561 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
562 *) EXTRA_SHLIB_EXTENSION= ;;
563esac
f234d5fe
NC
564
565case "$target_os" in
566 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
567esac
568
93a6d436
JL
569if test x${EXTRA_SHLIB_EXTENSION} != x ; then
570 AC_DEFINE_UNQUOTED(EXTRA_SHLIB_EXTENSION, "$EXTRA_SHLIB_EXTENSION",
571 [Additional extension a shared object might have.])
572fi
573
33589acb
AM
574AC_CONFIG_COMMANDS([default],
575[[
576case "$srcdir" in
577 .) srcdirpre= ;;
578 *) srcdirpre='$(srcdir)/' ;;
579esac
580POFILES=
581GMOFILES=
582for lang in dummy $OBSOLETE_ALL_LINGUAS; do
583 if test $lang != dummy; then
584 POFILES="$POFILES $srcdirpre$lang.po"
585 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
586 fi
587done
588sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
589 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
590 -e "s,@POFILES@,$POFILES," \
591 -e "s,@GMOFILES@,$GMOFILES," \
592 po/Makefile.in > po/Makefile]],[[]])
593
31dd3154 594dnl Required by html, pdf, install-pdf and install-html
108a6f8e
CD
595AC_SUBST(datarootdir)
596AC_SUBST(docdir)
597AC_SUBST(htmldir)
31dd3154 598AC_SUBST(pdfdir)
108a6f8e 599
da594c4a
AM
600AC_CONFIG_FILES(Makefile po/Makefile.in:po/Make-in)
601AC_OUTPUT
d546b610
L
602
603GNU_MAKE_JOBSERVER
This page took 0.904943 seconds and 4 git commands to generate.