diff options
| author | Glenn Morris | 2014-05-03 11:24:10 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-05-03 11:24:10 -0700 |
| commit | c3a435feddf2e1c1e74e41a05d4dd8a59bc766b0 (patch) | |
| tree | 001b7337b806dd4bb67837ad9ea4ea549d505d4b | |
| parent | 541df9f424b82b90ec4bd798ab6b8f1c655e3acd (diff) | |
| download | emacs-c3a435feddf2e1c1e74e41a05d4dd8a59bc766b0.tar.gz emacs-c3a435feddf2e1c1e74e41a05d4dd8a59bc766b0.zip | |
* autogen.sh: If all else fails, try using pkg-config to find pkg.m4.
This is an attempt to get hydra builds working again.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rwxr-xr-x | autogen.sh | 22 |
2 files changed, 26 insertions, 0 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-05-03 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * autogen.sh: If all else fails, try using pkg-config to find pkg.m4. | ||
| 4 | |||
| 1 | 2014-05-03 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2014-05-03 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Get --enable-gcc-warnings to work after touching configure.ac. | 7 | Get --enable-gcc-warnings to work after touching configure.ac. |
diff --git a/autogen.sh b/autogen.sh index b7804548cec..cc68f13a138 100755 --- a/autogen.sh +++ b/autogen.sh | |||
| @@ -234,6 +234,28 @@ ac_dir=`aclocal --print-ac-dir` && test -r "$ac_dir/pkg.m4" || { | |||
| 234 | done | 234 | done |
| 235 | IFS=$oIFS | 235 | IFS=$oIFS |
| 236 | 236 | ||
| 237 | ## OK, maybe pkg-config is in a weird place (eg on hydra). | ||
| 238 | if test -z "$AUTORECONF_ENV"; then | ||
| 239 | oIFS=$IFS | ||
| 240 | IFS=: | ||
| 241 | for dir in $PATH; do | ||
| 242 | if test -x "$dir/pkg-config"; then | ||
| 243 | ac_dir=`echo "$dir" | sed 's|bin$|share/aclocal|'` | ||
| 244 | if test -r "$ac_dir/pkg.m4"; then | ||
| 245 | case $ACLOCAL_PATH in | ||
| 246 | '') ACLOCAL_PATH=$ac_dir;; | ||
| 247 | ?*) ACLOCAL_PATH=$ACLOCAL_PATH:$ac_dir;; | ||
| 248 | esac | ||
| 249 | export ACLOCAL_PATH | ||
| 250 | AUTORECONF_ENV="ACLOCAL_PATH='$ACLOCAL_PATH'" | ||
| 251 | env_space=' ' | ||
| 252 | break | ||
| 253 | fi | ||
| 254 | fi | ||
| 255 | done | ||
| 256 | IFS=$oIFS | ||
| 257 | fi | ||
| 258 | |||
| 237 | if test -z "$AUTORECONF_ENV"; then | 259 | if test -z "$AUTORECONF_ENV"; then |
| 238 | cat <<EOF | 260 | cat <<EOF |
| 239 | The version of aclocal that you are using cannot find the pkg.m4 file that | 261 | The version of aclocal that you are using cannot find the pkg.m4 file that |