changequote([,])dnl
AM_INIT_AUTOMAKE(ld, ${BFD_VERSION})
-AM_PROG_LIBTOOL
-
AC_ARG_WITH(lib-path, [ --with-lib-path=dir1:dir2... set default LIB_PATH],LIB_PATH=$withval)
AC_ARG_ENABLE(targets,
[ --enable-targets alternative target configurations],
AC_SUBST(TARGET_SYSTEM_ROOT)
AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
+AC_ARG_ENABLE([got],
+AS_HELP_STRING([--enable-got=<type>],
+ [GOT handling scheme (target, single, negative, multigot)]),
+[case "${enableval}" in
+ target | single | negative | multigot) got_handling=$enableval ;;
+ *) AC_ERROR(bad value ${enableval} for --enable-got option) ;;
+esac],
+[got_handling=target])
+
+case "${got_handling}" in
+ target)
+ AC_DEFINE([GOT_HANDLING_DEFAULT], [GOT_HANDLING_TARGET_DEFAULT],
+ [Define to choose default GOT handling scheme]) ;;
+ single)
+ AC_DEFINE([GOT_HANDLING_DEFAULT], [GOT_HANDLING_SINGLE],
+ [Define to choose default GOT handling scheme]) ;;
+ negative)
+ AC_DEFINE([GOT_HANDLING_DEFAULT], [GOT_HANDLING_NEGATIVE],
+ [Define to choose default GOT handling scheme]) ;;
+ multigot)
+ AC_DEFINE([GOT_HANDLING_DEFAULT], [GOT_HANDLING_MULTIGOT],
+ [Define to choose default GOT handling scheme]) ;;
+ *) AC_ERROR(bad value ${got_handling} for --enable-got option) ;;
+esac
+
AM_BINUTILS_WARNINGS
AM_CONFIG_HEADER(config.h:config.in)
# host-specific stuff:
AC_PROG_CC
+AC_GNU_SOURCE
AC_PROG_INSTALL
+AM_PROG_LIBTOOL
+
ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
ZW_GNU_GETTEXT_SISTER_DIR
AM_PO_SUBDIRS
AC_CHECK_DECLS([strstr, free, sbrk, getenv, environ])
+# Link in zlib if we can. This is needed only for the bootstrap tests
+# right now, since those tests use libbfd, which depends on zlib.
+AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+
# When converting linker scripts into strings for use in emulation
# files, use astring.sed if the compiler supports ANSI string
# concatenation, or ostring.sed otherwise. This is to support the