aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-09-14 11:56:19 -0700
committerPaul Eggert2012-09-14 11:56:19 -0700
commite3141fcf8456dc1ec7455e34437ac09f0c812ac9 (patch)
treec011d75d4f8db85fb3091c739d9f3bdc8f14f611
parent2f294edf3a601c612e0a4c208539e842d790a894 (diff)
downloademacs-e3141fcf8456dc1ec7455e34437ac09f0c812ac9.tar.gz
emacs-e3141fcf8456dc1ec7455e34437ac09f0c812ac9.zip
* configure.ac: Port to hosts lacking gtk.
(PKG_CHECK_MODULES): Capture pkg-config diagnostics better, in particular, problems in invoking pkg-config itself. This is useful on hosts that don't have pkg-config. (GTK_MODULES): Do not exit 'configure' simply because gtk3 and gtk2 are both missing. Problem found on Solaris 8.
-rw-r--r--ChangeLog9
-rw-r--r--configure.ac15
2 files changed, 17 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index e46fbef7113..b0f6ab6e984 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
12012-09-14 Paul Eggert <eggert@cs.ucla.edu>
2
3 * configure.ac: Port to hosts lacking gtk.
4 (PKG_CHECK_MODULES): Capture pkg-config diagnostics
5 better, in particular, problems in invoking pkg-config itself.
6 This is useful on hosts that don't have pkg-config.
7 (GTK_MODULES): Do not exit 'configure' simply because gtk3
8 and gtk2 are both missing. Problem found on Solaris 8.
9
12012-09-13 Jan Djärv <jan.h.d@swipnet.se> 102012-09-13 Jan Djärv <jan.h.d@swipnet.se>
2 11
3 * configure.ac: Reorder Xaw3d messages. 12 * configure.ac: Reorder Xaw3d messages.
diff --git a/configure.ac b/configure.ac
index ce65f07522d..accbb68e7b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1189,9 +1189,10 @@ AC_DEFUN([PKG_CHECK_MODULES], [
1189 $1_CFLAGS="" 1189 $1_CFLAGS=""
1190 $1_LIBS="" 1190 $1_LIBS=""
1191 ## If we have a custom action on failure, don't print errors, but 1191 ## If we have a custom action on failure, don't print errors, but
1192 ## do set a variable so people can do so. 1192 ## do set a variable so people can do so. Do it in a subshell
1193 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 1193 ## to capture any diagnostics in invoking pkg-config.
1194 ifelse([$4], ,echo $$1_PKG_ERRORS,) 1194 $1_PKG_ERRORS=`($PKG_CONFIG --print-errors "$2") 2>&1`
1195 ifelse([$4], ,echo "$$1_PKG_ERRORS",)
1195 fi 1196 fi
1196 1197
1197 AC_SUBST($1_CFLAGS) 1198 AC_SUBST($1_CFLAGS)
@@ -1934,10 +1935,10 @@ if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
1934 1935
1935 dnl Checks for libraries. 1936 dnl Checks for libraries.
1936 PKG_CHECK_MODULES(GTK, $GTK_MODULES, pkg_check_gtk=yes, pkg_check_gtk=no) 1937 PKG_CHECK_MODULES(GTK, $GTK_MODULES, pkg_check_gtk=yes, pkg_check_gtk=no)
1937 if test "$pkg_check_gtk" = "no"; then 1938 if test "$pkg_check_gtk" = "no" &&
1938 if test "$USE_X_TOOLKIT" = "maybe" || test "$with_gtk" = "yes" || test "$with_gtk2" = "yes"; then 1939 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
1939 AC_MSG_ERROR($gtk3_pkg_errors$GTK_PKG_ERRORS) 1940 then
1940 fi 1941 AC_MSG_ERROR($gtk3_pkg_errors$GTK_PKG_ERRORS)
1941 fi 1942 fi
1942fi 1943fi
1943 1944