[gdk-pixbuf] Make relocations optional



commit 847f707477753876a0700b1decb2465b3c82506f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Sep 25 06:57:17 2015 -0400

    Make relocations optional
    
    Instead of hardcoding enable_relocations for OS X, make this
    a configure option.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755526

 configure.ac |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a50a8f7..370a2fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1055,18 +1055,17 @@ AC_SUBST(GENHTML)
 # Enable replacing the build-time prefix in the loaders
 # cache with the installation prefix on this machine
 # for relocatable packages such as Windows and OS X
-# applicationsapplications and linux bundles
+# applications and linux bundles
 #######################################################
 
-enable_relocations=no
-case $host in
-  *-*-mingw*)
-    enable_relocations=yes
-    ;;
-  *-*-darwin*)
-    enable_relocations=yes
-    ;;
-esac
+AC_MSG_CHECKING([whether to build with application bundle relocation support])
+AC_ARG_ENABLE([relocations],
+              AS_HELP_STRING([--enable-relocations],
+                             [Whether to build with application bundle relocation support]),
+              [],
+              [enable_relocations=no])
+
+AC_MSG_RESULT([$enable_relocations])
 
 if test "x$enable_relocations" = "xyes"; then
   AC_DEFINE(GDK_PIXBUF_RELOCATABLE, 1,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]