| 1 | dnl
|
|---|
| 2 | dnl Initialize basic configure bits, set toplevel_srcdir for Makefiles.
|
|---|
| 3 | dnl
|
|---|
| 4 | dnl GLIBCPP_TOPREL_CONFIGURE
|
|---|
| 5 | AC_DEFUN(GLIBCPP_TOPREL_CONFIGURE, [
|
|---|
| 6 | dnl Default to --enable-multilib (this is also passed by default
|
|---|
| 7 | dnl from the ubercommon-top-level configure)
|
|---|
| 8 | AC_ARG_ENABLE(multilib,
|
|---|
| 9 | [ --enable-multilib build hella library versions (default)],
|
|---|
| 10 | [case "${enableval}" in
|
|---|
| 11 | yes) multilib=yes ;;
|
|---|
| 12 | no) multilib=no ;;
|
|---|
| 13 | *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
|
|---|
| 14 | esac], [multilib=yes])dnl
|
|---|
| 15 |
|
|---|
| 16 | # When building with srcdir == objdir, links to the source files will
|
|---|
| 17 | # be created in directories within the target_subdir. We have to
|
|---|
| 18 | # adjust toplevel_srcdir accordingly, so that configure finds
|
|---|
| 19 | # install-sh and other auxiliary files that live in the top-level
|
|---|
| 20 | # source directory.
|
|---|
| 21 | if test "${srcdir}" = "."; then
|
|---|
| 22 | if test -z "${with_target_subdir}"; then
|
|---|
| 23 | toprel=".."
|
|---|
| 24 | else
|
|---|
| 25 | if test "${with_target_subdir}" != "."; then
|
|---|
| 26 | toprel="${with_multisrctop}../.."
|
|---|
| 27 | else
|
|---|
| 28 | toprel="${with_multisrctop}.."
|
|---|
| 29 | fi
|
|---|
| 30 | fi
|
|---|
|
|---|