summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-29 02:26:49 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-29 02:26:49 +0000
commite2c9276ccc1ef619dcfbdeb414ef0dec5113c1ee (patch)
tree5b0efcd4339aa21201682448e6a341f01a9bc41a
parent2f57ab95012d9221cca1af6c0a1ccea5d308c66f (diff)
downloadxorg-lib-libXpm-e2c9276ccc1ef619dcfbdeb414ef0dec5113c1ee.tar.gz
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.
-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)