diff options
author | DJ Delorie <dj@delorie.com> | 2002-03-26 23:29:30 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2002-03-26 23:29:30 +0000 |
commit | 12ecd7ed00569781ba495f82cfa1be5687e4e981 (patch) | |
tree | 0fbc19cd4182661f57486172cc598b7c7ac2d181 /libiberty/configure.in | |
parent | 4ffc020ef058f85a4e3069fe9ac3c97da4211b93 (diff) | |
download | gdb-12ecd7ed00569781ba495f82cfa1be5687e4e981.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/configure.in')
-rw-r--r-- | libiberty/configure.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libiberty/configure.in b/libiberty/configure.in index f37fdc75b53..0de0f8ac285 100644 --- a/libiberty/configure.in +++ b/libiberty/configure.in @@ -5,14 +5,19 @@ AC_INIT(pexecute.c) dnl We use these options to decide which functions to include. AC_ARG_WITH(target-subdir, -[ --with-target-subdir=SUBDIR Configuring in a subdirectory]) +[ --with-target-subdir=SUBDIR Configuring in a subdirectory for target]) +AC_ARG_WITH(build-subdir, +[ --with-build-subdir=SUBDIR Configuring in a subdirectory for build]) AC_ARG_WITH(cross-host, [ --with-cross-host=HOST Configuring with a cross compiler]) AC_ARG_WITH(newlib, [ --with-newlib Configuring with newlib]) if test "${srcdir}" = "."; then - if test -z "${with_target_subdir}"; then + if test -n "${with_build_subdir}"; then + libiberty_topdir="${srcdir}/../.." + with_target_subdir= + elif test -z "${with_target_subdir}"; then libiberty_topdir="${srcdir}/.." else if test "${with_target_subdir}" != "."; then @@ -417,7 +422,7 @@ AC_SUBST(INSTALL_DEST) AC_OUTPUT(Makefile testsuite/Makefile, [test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h if test -n "$CONFIG_FILES"; then - if test -n "${with_target_subdir}"; then + if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then # FIXME: We shouldn't need to set ac_file ac_file=Makefile . ${libiberty_topdir}/config-ml.in @@ -427,6 +432,7 @@ srcdir=${srcdir} host=${host} target=${target} with_target_subdir=${with_target_subdir} +with_build_subdir=${with_build_subdir} with_multisubdir=${with_multisubdir} ac_configure_args="--enable-multilib ${ac_configure_args}" CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |