summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--configure.ac11
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 229536a..e42f86d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-10-28 Alan Coopersmith <alan.coopersmith@sun.com>
+
+ * configure.ac:
+ Add --enable-stat-zfile (on by default) to replace Imake's
+ ZFILEDEF = -DSTAT_ZFILE to enable automatically searching
+ for file.xpm.Z & file.xpm.gz when file.xpm is requested.
+
2005-10-18 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
diff --git a/configure.ac b/configure.ac
index e532ad3..c8860f2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,3 +1,5 @@
+# $Id$
+
AC_PREREQ(2.57)
AC_INIT([libXpm], 3.5.3, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXpm)
AC_CONFIG_SRCDIR([Makefile.am])
@@ -31,6 +33,15 @@ if test "x$GCC" = "xyes"; then
CFLAGS="$GCC_WARNINGS $CFLAGS"
fi
+# Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz
+# Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile
+AC_ARG_ENABLE(stat-zfile,
+ AC_HELP_STRING([--enable-stat-zfile],
+ [Search for files with .Z & .gz extensions automatically @<:@default=yes@:>@]),
+ [STAT_ZFILE=$enableval], [STAT_ZFILE=yes])
+if test x$STAT_ZFILE = xyes ; then
+ AC_DEFINE(STAT_ZFILE, 1, [Define to 1 to automatically look for files with .Z & .gz extensions])
+fi
PKG_CHECK_MODULES(SXPM, xt xext, build_sxpm=true, build_sxpm=false)