[svn:parrot] r42795 - trunk/examples/nci
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Mon Nov 23 22:12:57 UTC 2009
Author: NotFound
Date: Mon Nov 23 22:12:55 2009
New Revision: 42795
URL: https://trac.parrot.org/parrot/changeset/42795
Log:
[examples] better check for libX11 in Xlib example module
Modified:
trunk/examples/nci/Xlib.pir
Modified: trunk/examples/nci/Xlib.pir
==============================================================================
--- trunk/examples/nci/Xlib.pir Mon Nov 23 17:51:01 2009 (r42794)
+++ trunk/examples/nci/Xlib.pir Mon Nov 23 22:12:55 2009 (r42795)
@@ -63,9 +63,17 @@
# Load library and store handler
xlib = loadlib 'libX11'
$I0 = defined xlib
- unless $I0 goto cygwin
+ unless $I0 goto check2
if xlib goto store
-cygwin:
+check2:
+ xlib = loadlib 'libX11.so'
+ unless $I0 goto check3
+ if xlib goto store
+check3:
+ xlib = loadlib 'libX11.so.6'
+ unless $I0 goto check4
+ if xlib goto store
+check4:
xlib = loadlib 'cygX11-6'
$I0 = defined xlib
unless $I0 goto failed
More information about the parrot-commits
mailing list