AC_ARG_WITH(newlib,
[ --with-newlib Configuring with newlib])
-AC_ARG_WITH(sphinx-build,
- [AS_HELP_STRING([--with-sphinx-build=],
- [Use sphinx-build from a given path])],
- [CONFIGURE_SPHINX_BUILD=$withval],
- [CONFIGURE_SPHINX_BUILD=]
-)
-AC_SUBST(CONFIGURE_SPHINX_BUILD)
-
-# See if sphinx-build has been installed and is modern enough
-# that we can use it.
-AC_MSG_CHECKING([for sphinx-build])
-sphinx=sphinx-build
-if test x${CONFIGURE_SPHINX_BUILD} != x ; then
- sphinx=${CONFIGURE_SPHINX_BUILD}
-fi
-
-tempdir=build.$$
-source=source.$$
-mkdir $source
-grep 'needs_sphinx =' ${srcdir}/../doc/baseconf.py > $source/conf.py
-touch $source/index.rst
-if ${sphinx} $source $tempdir >/dev/null 2>&1; then
- SPHINX_BUILD=${sphinx}
- HAS_SPHINX_BUILD=has-sphinx-build
- AC_MSG_RESULT(yes)
-else
- AC_MSG_WARN([
- *** sphinx-build is missing or too old.
- *** Info and man pages documentation will not be built.])
- AC_MSG_RESULT(no)
- SPHINX_BUILD=
- HAS_SPHINX_BUILD=
-fi
-rm -rf $tempdir
-rm -rf $source
-AC_SUBST(SPHINX_BUILD)
-AC_SUBST(HAS_SPHINX_BUILD)
-
if test "${srcdir}" = "."; then
if test -n "${with_build_subdir}"; then
libiberty_topdir="${srcdir}/../.."
*) shared=yes ;;
esac
-# ...unless --enable-host-shared was passed from top-level config:
-if [[ "${enable_host_shared}" = "yes" ]]; then
+# ...unless --enable-host-{shared,pie} was passed from top-level config:
+if [[ "${enable_host_shared}" = "yes" ]] || [[ "${enable_host_pie}" = "yes" ]]; then
shared=yes
fi