Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        Makefile.am ewl_engines.c 


Log Message:
Provide libtool version information for loading modules, this won't make much
difference until a release is made.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/Makefile.am,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- Makefile.am 30 Nov 2006 19:35:46 -0000      1.43
+++ Makefile.am 15 Dec 2006 02:48:23 -0000      1.44
@@ -184,4 +184,4 @@
 installed_headers_DATA = $(EWLHEADERS)
 
 libewl_la_LIBADD = @EDJE_LIBS@ @ECORE_LIBS@ @EVAS_LIBS@ @EMOTION_LIBS@ 
@EPSILON_LIBS@ -lm
-libewl_la_LDFLAGS = -version-info 1:0:0
+libewl_la_LDFLAGS = -version-info 
@INTERFACE_CURRENT@:@INTERFACE_REVISION@:@INTERFACE_AGE@
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_engines.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- ewl_engines.c       12 Dec 2006 15:53:35 -0000      1.27
+++ ewl_engines.c       15 Dec 2006 02:48:23 -0000      1.28
@@ -125,13 +125,21 @@
        if (engine)
                DRETURN_PTR(engine, DLEVEL_STABLE);
 
-       snprintf(filename, sizeof(filename), "%s/ewl/%s/%s.so",
+       snprintf(filename, sizeof(filename), "%s/ewl/%s/%s.so.%s",
                                                        PACKAGE_LIB_DIR, 
-                                                       EWL_ENGINE_DIR, name);
+                                                       EWL_ENGINE_DIR, name,
+                                                       INTERFACE_CURRENT);
        if (!ecore_file_exists(filename))
        {
-               DWARNING("Given engine name dosen't exist.");
-               DRETURN_PTR(NULL, DLEVEL_STABLE);
+               snprintf(filename, sizeof(filename), "%s/ewl/%s/%s.%s.so",
+                                                       PACKAGE_LIB_DIR,
+                                                       EWL_ENGINE_DIR, name,
+                                                       INTERFACE_CURRENT);
+               if (!ecore_file_exists(filename))
+               {
+                       DWARNING("Given engine name dosen't exist.");
+                       DRETURN_PTR(NULL, DLEVEL_STABLE);
+               }
        }
 
        handle = dlopen(filename, RTLD_LAZY | RTLD_GLOBAL);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to