summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-01-22 15:54:41 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-01-22 15:54:41 -0800
commit43042c25b61593352f793ce328360e09eb9aada0 (patch)
tree34e0e82a4a2ce3fb1552827cfe4b2b00700cbada
parent3e9c9d61e403c80770ddd0d01180df3efacbafe1 (diff)
Don't build Motif apps if <Xm/Print.h> isn't found
Fixes build on Solaris, which has Motif 2.1 without XPrint support
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 21ea522..4d5ca9e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,14 +54,17 @@ if test x$build_motifapps = xyes ; then
if [[ ! -z $motif_includes ]] ; then
MOTIF_CFLAGS=-I$motif_includes
fi
+ AC_CHECK_HEADER([Xm/Print.h], [], [build_motifapps=no])
+fi
+if test x$build_motifapps = xyes ; then
if [[ ! -z $motif_libs ]] ; then
MOTIF_LIBS="-L$motif_libs -lXm"
else
MOTIF_LIBS="-lXm"
fi
else
- echo motif library not found
+ echo Xprint-aware Motif library not found
fi
echo build: Build Motif Applications: $build_motifapps