diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-01 00:34:48 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-01 01:05:34 +0200 |
commit | 08d5c8cea9a7aae98d3e4fd879c986e13284e13e (patch) | |
tree | 590009289b4c8a539b35e74a4d09dab67cfddd28 /configure.ac | |
parent | c6db4935bedf8dcaecea49f333572d878644fcb6 (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: I5aad87b7d4c043f890f4ae2bc5d68cbad6d2c5c7
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 249701e..de70e35 100644 --- a/configure.ac +++ b/configure.ac @@ -2,6 +2,9 @@ AC_INIT([osmo-iuh], m4_esyscmd([./git-version-gen .tarball-version]), [openbsc@lists.osmocom.org]) +dnl *This* is the root dir, even if an install-sh exists in ../ or ../../ +AC_CONFIG_AUX_DIR([.]) + LT_INIT AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip 1.9 tar-ustar]) |