diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-01 00:51:13 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-12 23:26:17 +0000 |
commit | ee9d34a9ccc78f69971ec7140bd3a7076d232465 (patch) | |
tree | 99599c504d2da5d046b88ccab5e9eb1dbb77f77b | |
parent | 727417dd28813c697b4820aef9f54f249e30c4b8 (diff) |
build: be robust against install-sh files above the root dir
Explicitly set AC_CONFIG_AUX_DIR.
To reproduce the error avoided by this patch:
rm install-sh # in case it was already generated.
touch ../install-sh # yes, outside this source tree
autoreconf -fi
This will produce an error like
...
configure.ac:16: error: required file '../ltmain.sh' not found
configure.ac:5: installing '../missing'
src/Makefile.am: installing '../depcomp'
autoreconf: automake failed with exit status: 1
See also automake (vim `which automake`) and look for 'sub locate_aux_dir'.
Change-Id: I4aef311d7a475800e09f48110a499c3759c69f5d
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b11730b..e4744b3 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,9 @@ AC_CONFIG_SRCDIR([gtp/gtp.c]) AM_CONFIG_HEADER([config.h]) #AC_CONFIG_HEADER([config.h]) +dnl *This* is the root dir, even if an install-sh exists in ../ or ../../ +AC_CONFIG_AUX_DIR([.]) + AC_CANONICAL_SYSTEM dnl kernel style compile messages |