aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-05-03 11:24:10 -0700
committerGlenn Morris2014-05-03 11:24:10 -0700
commitc3a435feddf2e1c1e74e41a05d4dd8a59bc766b0 (patch)
tree001b7337b806dd4bb67837ad9ea4ea549d505d4b
parent541df9f424b82b90ec4bd798ab6b8f1c655e3acd (diff)
downloademacs-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--ChangeLog4
-rwxr-xr-xautogen.sh22
2 files changed, 26 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a93a93c8f29..35b690d75e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12014-05-03 Glenn Morris <rgm@gnu.org>
2
3 * autogen.sh: If all else fails, try using pkg-config to find pkg.m4.
4
12014-05-03 Paul Eggert <eggert@cs.ucla.edu> 52014-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
239The version of aclocal that you are using cannot find the pkg.m4 file that 261The version of aclocal that you are using cannot find the pkg.m4 file that