imagemagick: help configure to detect file_offset_bits
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 21 Feb 2010 12:35:19 +0000 (13:35 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 23 Feb 2010 19:34:34 +0000 (20:34 +0100)
imagemagick configure script wants to run programs to detect the
file_offset_bits, but fails since it is running cross-compile
mode. Therefore, we help the configure script by passing the
appropriate ac_cv variable.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/imagemagick/imagemagick.mk

index 2bcd076cde3f77c1534500650fc403ee4c26eebb..e8584306e79932c1d74e130312b55f792627826c 100644 (file)
@@ -31,6 +31,12 @@ $(IMAGEMAGICK_DIR)/.unpacked: $(DL_DIR)/$(IMAGEMAGICK_SOURCE)
        $(CONFIG_UPDATE) $(IMAGEMAGICK_DIR)/config
        touch $@
 
+ifeq ($(BR2_LARGEFILE),y)
+IMAGEMAGICK_CONF_OPTS = ac_cv_sys_file_offset_bits=64
+else
+IMAGEMAGICK_CONF_OPTS = ac_cv_sys_file_offset_bits=32
+endif
+
 $(IMAGEMAGICK_DIR)/.configured: $(IMAGEMAGICK_DIR)/.unpacked
        (cd $(IMAGEMAGICK_DIR); rm -f config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
@@ -55,6 +61,7 @@ $(IMAGEMAGICK_DIR)/.configured: $(IMAGEMAGICK_DIR)/.unpacked
                --without-fpx \
                --without-freetype \
                --without-x \
+               $(IMAGEMAGICK_CONF_OPTS) \
        )
        touch $@