summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-01-22 15:49:33 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-01-22 15:49:33 -0800
commit3e9c9d61e403c80770ddd0d01180df3efacbafe1 (patch)
treeff1c2a225992c1bda1ce68fd0c7ab93df5ca6106
parent6557f9826e5cbdf24365fac9664ffe8f43d9e19f (diff)
Bug 14189: Configure emits: motif library not found
<http://bugs.freedesktop.org/show_bug.cgi?id=14189>
-rw-r--r--configure.ac10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 833ed33..21ea522 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,7 +37,7 @@ build_motifapps=yes
AC_ARG_WITH(motif-libraries, [Directory containing the Motif libraries],
motif_libs=$withval)
-AC_ARG_WITH(motif-includes, [Directory containing the Xm direcotry with the Motif header files (eg. /usr/X11R6/include)],
+AC_ARG_WITH(motif-includes, [Directory containing the Xm directory with the Motif header files (eg. /usr/X11R6/include)],
motif_includes=$withval)
if test x$with_motif_libraries = xno; then
@@ -45,11 +45,9 @@ if test x$with_motif_libraries = xno; then
build_motifapps=no
fi
+PKG_CHECK_MODULES(X11, x11)
if [[ -z $motif_libs ]] ; then
- PKG_CHECK_MODULES(X11, x11)
- AC_CHECK_LIB(Xm, XmFontListCreate, build_motifapps=no, [$X11])
- echo motif library not found
- build_motifapps=no
+ AC_CHECK_LIB(Xm, XmFontListCreate, [], build_motifapps=no, [$X11_LIBS])
fi
if test x$build_motifapps = xyes ; then
@@ -62,6 +60,8 @@ if test x$build_motifapps = xyes ; then
else
MOTIF_LIBS="-lXm"
fi
+else
+ echo motif library not found
fi
echo build: Build Motif Applications: $build_motifapps