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

  ... error: required file '../' not found installing '../missing'
  src/ installing '../depcomp'
  autoreconf: automake failed with exit status: 1

See also automake (vim `which automake`) and look for 'sub locate_aux_dir'.

Change-Id: I3b6d9ad4e5af44c2bdf3844c7bf8e8517bd61d8e
Neels Hofmeyr 2016-10-01 00:34:31 +02:00
parent ea291e3004
commit b81031292b
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@ AC_INIT([openbsc],
m4_esyscmd([./git-version-gen .tarball-version]),
dnl *This* is the root dir, even if an install-sh exists in ../ or ../../