Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore


Modified Files:
        configure.in 


Log Message:


add simple x11 linking option and handle tslib differences

===================================================================
RCS file: /cvs/e/e17/libs/ecore/configure.in,v
retrieving revision 1.245
retrieving revision 1.246
diff -u -3 -r1.245 -r1.246
--- configure.in        14 Dec 2007 05:57:15 -0000      1.245
+++ configure.in        19 Dec 2007 05:54:29 -0000      1.246
@@ -200,6 +200,14 @@
 
 ECORE_CHECK_MODULE([Evas], [yes], [$have_evas])
 
+#######################################
+## Simple X11 build/link
+
+AC_ARG_ENABLE(simple-x11,
+  AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
+  [ want_evas_simple_x11=$enableval ]
+)
+    
 dnl ecore_x{cb}
 have_ecore_x="no"
 have_ecore_x_xcb="no"
@@ -294,9 +302,13 @@
   AC_CHECK_HEADER(X11/X.h,
     [
      have_x="yes"
-     x_dir=${x_dir:-/usr/X11R6}
-     x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
-     x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
+     if test "x$want_evas_simple_x11" = "xyes"; then
+       x_libs="${x_libs} -lX11 -lXext"
+     else
+       x_dir=${x_dir:-/usr/X11R6}
+       x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
+       x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
+     fi
     ]
   )
   
@@ -569,7 +581,7 @@
 if test "x$have_ecore_fb" = "xyes" ; then
 AC_CHECK_HEADER(tslib.h,
   [
-   tslib_libs="-lts"
+   AC_CHECK_LIB(ts, ts_open, tslib_libs="-lts", tslib_libs="-ltslib")
    AC_DEFINE(HAVE_TSLIB, 1, [Build Ecore_FB Touchscreen Code])
   ]
 )



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to