diff options
author | jlam <jlam@pkgsrc.org> | 2001-09-13 19:32:11 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-09-13 19:32:11 +0000 |
commit | 752176a4e66a3d63699874a6844c0b2d423e7f6b (patch) | |
tree | 68d4c4bf668dff955dfbf5049bbeb1973b650593 /mk/motif.buildlink.mk | |
parent | a8587a15c0b007565f9d1b143875b0aacf6aab04 (diff) | |
download | pkgsrc-752176a4e66a3d63699874a6844c0b2d423e7f6b.tar.gz |
To verify a Motif-2.0 installation, test for the presence of <Xm/Xm.h> and
<Xm/Gadget.h> instead of only <Xm/Xm.h>. This differentiates between
Motif-2.0 and Motif-1.2 installations.
Diffstat (limited to 'mk/motif.buildlink.mk')
-rw-r--r-- | mk/motif.buildlink.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/motif.buildlink.mk b/mk/motif.buildlink.mk index 0e3956f37cf..e706dff210f 100644 --- a/mk/motif.buildlink.mk +++ b/mk/motif.buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: motif.buildlink.mk,v 1.5 2001/09/13 19:22:17 jlam Exp $ +# $NetBSD: motif.buildlink.mk,v 1.6 2001/09/13 19:32:11 jlam Exp $ # # This Makefile fragment is included by packages that use Motif-2.0. # @@ -28,7 +28,7 @@ MOTIF_TYPE_DEFAULT?= openmotif # Otherwise, if ${X11BASE} is valid, then use it. Otherwise, use the # Motif-2.0 specified by ${MOTIF_TYPE_DEFAULT}. # -.if exists(/usr/dt/include/Xm/Xm.h) +.if exists(/usr/dt/include/Xm/Xm.h) && exists(/usr/dt/include/Xm/Gadget.h) _MOTIF_TYPE= dt .elif exists(${X11BASE}/lib/X11/config/OpenMotif.tmpl) || \ exists(${LOCALBASE}/lib/X11/config/OpenMotif.tmpl) @@ -36,7 +36,7 @@ _MOTIF_TYPE= openmotif .elif exists(${X11BASE}/lib/X11/config/LessTif.tmpl) || \ exists(${LOCALBASE}/lib/X11/config/LessTif.tmpl) _MOTIF_TYPE= lesstif -.elif exists(${X11BASE}/include/Xm/Xm.h) +.elif exists(${X11BASE}/include/Xm.h) && exists(${X11BASE}/include/Xm/Gadget.h) _MOTIF_TYPE= none .else _MOTIF_TYPE= ${MOTIF_TYPE_DEFAULT} |