diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-10-04 08:26:58 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-10-04 08:26:58 +0000 |
commit | d1be585d8fc2b2a5a18269257625a29bdf344a6f (patch) | |
tree | 27f4b758e4ad4cd10b1bcbce01ddc964a7875144 | |
parent | aa5add4dd94cb50ba957e8cb08ad5e2e38354875 (diff) |
prevent accidentally configuring the source tree
git-svn-id: svn://tug.org/texlive/trunk@24185 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Build/source/configure | 8 | ||||
-rw-r--r-- | Build/source/configure.ac | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Build/source/configure b/Build/source/configure index 3d0a0072fe2..366360aa412 100755 --- a/Build/source/configure +++ b/Build/source/configure @@ -2820,6 +2820,14 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. +if test "x$srcdir" = x. && test "x$enable_build_in_source_tree" != xyes; then + rm -rf config.log + as_fn_error $? "Configuring and building TeX Live in the source tree +is strongly discouraged. If you really want to do that, you must +specify the configure option \`--enable-build-in-source-tree', but +then do not ask for help -- you have been warned." "$LINENO" 5 +fi + # Check whether --enable-missing was given. if test "${enable_missing+set}" = set; then : enableval=$enable_missing; diff --git a/Build/source/configure.ac b/Build/source/configure.ac index 78a7468c6e9..efa596b0f7e 100644 --- a/Build/source/configure.ac +++ b/Build/source/configure.ac @@ -14,6 +14,15 @@ AC_CONFIG_SRCDIR([m4/kpse-pkgs.m4]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) +dnl Prevent to configure the source tree by mistake. +if test "x$srcdir" = x. && test "x$enable_build_in_source_tree" != xyes; then + rm -rf config.log + AC_MSG_ERROR([Configuring and building TeX Live in the source tree +is strongly discouraged. If you really want to do that, you must +specify the configure option `--enable-build-in-source-tree', but +then do not ask for help -- you have been warned.]) +fi + dnl ## ------------------------------------------- ## dnl ## Setup of the TeX Live (TL) infrastructure ## dnl ## done in ./, libs/, utils/, and texk/ ## |