Re: [E-devel] E SVN: discomfitor IN trunk/eina: . m4
and stop using AS_IF Vincent On Sun, 8 Aug 2010, Enlightenment SVN wrote: Log: split out spinlock detection to separate macro for readability, add rwlock detection macro ***no functional changes*** Author: discomfitor Date: 2010-08-08 12:20:07 -0700 (Sun, 08 Aug 2010) New Revision: 50910 Modified: trunk/eina/configure.ac trunk/eina/m4/efl_threads.m4 Modified: trunk/eina/configure.ac === --- trunk/eina/configure.ac 2010-08-08 19:03:34 UTC (rev 50909) +++ trunk/eina/configure.ac 2010-08-08 19:20:07 UTC (rev 50910) @@ -84,7 +84,7 @@ EFL_CHECK_CPU_SSE2([have_sse2=yes], [have_sse2=no]) EFL_CHECK_CPU_ALTIVEC([have_altivec=yes], [have_altivec=no]) -EFL_CHECK_THREADS([yes], +EFL_CHECK_THREADS( [ if test x${_efl_have_posix_threads} = xyes ; then have_threads=POSIX @@ -96,9 +96,9 @@ fi fi ], - [have_threads=no], - [have_posix_threads_spinlock=yes], - [have_posix_threads_spinlock=no]) + [have_threads=no]) +EFL_CHECK_SPINLOCK([have_posix_threads_spinlock=yes], [have_posix_threads_spinlock=no]) +EFL_CHECK_RWLOCK([have_posix_threads_rwlock=yes], [have_posix_threads_rwlock=no]) ### Additional options to configure @@ -591,11 +591,10 @@ echo Maximum log level: ${with_max_log_level} echo Report string usage..: ${have_stringshare_usage} echo Default mempool..: ${have_default_mempool} -echo $ECHO_N Thread Support...: ${have_threads}$ECHO_C +echo Thread Support...: ${have_threads} if test ${have_threads} = POSIX ; then - echo (spinlock: ${have_posix_threads_spinlock}) -else - echo +echo spinlock...: ${have_posix_threads_spinlock} +echo rwlock.: ${have_posix_threads_rwlock} fi echo Amalgamation.: ${do_amalgamation} echo Iconv support: ${have_iconv} Modified: trunk/eina/m4/efl_threads.m4 === --- trunk/eina/m4/efl_threads.m4 2010-08-08 19:03:34 UTC (rev 50909) +++ trunk/eina/m4/efl_threads.m4 2010-08-08 19:20:07 UTC (rev 50910) @@ -1,13 +1,13 @@ dnl Copyright (C) 2010 Vincent Torri vtorri at univ-evry dot fr -dnl That code is public domain and can be freely used or copied. +dnl rwlock code added by Mike Blumenkrantz mike at zentific dot com +dnl This code is public domain and can be freely used or copied. dnl Macro that check if POSIX or Win32 threads library is available or not. -dnl Usage: EFL_CHECK_THREADS(want_pthread_spin[, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +dnl Usage: EFL_CHECK_THREADS(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) dnl Call AC_SUBST(EFL_PTHREAD_CFLAGS) dnl Call AC_SUBST(EFL_PTHREAD_LIBS) -dnl Define EFL_HAVE_POSIX_THREADS or EFL_HAVE_WIN32_THREADS, and EFL_HAVE_THREADS -dnl Define EFL_HAVE_POSIX_THREADS_SPINLOCK +dnl Defines EFL_HAVE_POSIX_THREADS or EFL_HAVE_WIN32_THREADS, and EFL_HAVE_THREADS AC_DEFUN([EFL_CHECK_THREADS], [ @@ -138,11 +138,29 @@ AC_DEFINE([EFL_HAVE_POSIX_THREADS], [1], [Define to mention that POSIX threads are supported]) fi + +if test x${_efl_enable_win32_threads} = xyes ; then + _efl_have_win32_threads=yes + AC_DEFINE([EFL_HAVE_WIN32_THREADS], [1], [Define to mention that Win32 threads are supported]) +fi + +if test x${_efl_have_posix_threads} = xyes || test x${_efl_have_win32_threads} = xyes ; then + AC_DEFINE([EFL_HAVE_THREADS], [1], [Define to mention that POSIX or Win32 threads are supported]) +fi + +AS_IF([test x$_efl_have_posix_threads = xyes || test x$_efl_have_win32_threads = xyes], [$1], [$2]) +]) + +dnl Usage: EFL_CHECK_SPINLOCK(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) +dnl Defines EFL_HAVE_POSIX_THREADS_SPINLOCK +AC_DEFUN([EFL_CHECK_SPINLOCK], +[ + dnl check if the compiler supports pthreads spinlock _efl_have_posix_threads_spinlock=no -if test x${_efl_have_posix_threads} = xyes test x$1 = xyes ; then +if test x${_efl_have_posix_threads} = xyes ; then SAVE_CFLAGS=${CFLAGS} CFLAGS=${CFLAGS} ${EFL_PTHREAD_CFLAGS} @@ -166,24 +184,55 @@ AC_MSG_CHECKING([whether to build POSIX threads spinlock code]) AC_MSG_RESULT([${_efl_have_posix_threads_spinlock}]) -if test x${_efl_enable_posix_threads} = xyes test x${_efl_have_posix_threads_spinlock} = xno test x$1 = xyes ; then +if test x${_efl_enable_posix_threads} = xyes test x${_efl_have_posix_threads_spinlock} = xno ; then AC_MSG_WARN([POSIX threads support requested but spinlocks are not supported]) fi if test x${_efl_have_posix_threads_spinlock} = xyes ; then AC_DEFINE([EFL_HAVE_POSIX_THREADS_SPINLOCK], [1], [Define to mention that POSIX threads spinlocks are supported]) fi +AS_IF([test x$_efl_have_posix_threads_spinlock = xyes], [$1], [$2]) +]) -if test x${_efl_enable_win32_threads} = xyes ; then - _efl_have_win32_threads=yes - AC_DEFINE([EFL_HAVE_WIN32_THREADS], [1], [Define to
Re: [E-devel] E SVN: discomfitor IN trunk/eina: . m4
On Mon, 2 Aug 2010, Carsten Haitzler (The Rasterman) wrote: On Sun, 1 Aug 2010 10:41:51 +0200 (CEST) Vincent Torri vto...@univ-evry.fr said: On Sun, 1 Aug 2010, m...@zentific.com wrote: If you know enough to specify the --enable-voltron flag (since it will only show if you explicitly set it) and you then decide to manually set it, I really don't think that's an issue. not an issue. It's just completely useless and can just hide useful informations. only if you --enable-voltron... which does nothing other than add that banner. it's a sense of humor. nothing more. and we will have lots of questions from users about what that strange option does. There are already plenty of options for configure. Why adding a new one that is (again) useless, hide useful informations (the configure output) ? I'm against it, that's all. I like sense of humor, just look at the message in evas when you statically link the modules, it's just 1 or 2 lines, not a bunch of ascii art lines that has no link at all with eina. Vincent -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: discomfitor IN trunk/eina: . m4
what the fuck is this ??? Vincent On Tue, 27 Jul 2010, Enlightenment SVN wrote: Log: when all files combine and the enable flag is set, form VOLTRON, DEFENDER OF THE UNIVERSE! Author: discomfitor Date: 2010-07-27 13:17:25 -0700 (Tue, 27 Jul 2010) New Revision: 50550 Added: trunk/eina/m4/efl_voltron.m4 Modified: trunk/eina/configure.ac Modified: trunk/eina/configure.ac === --- trunk/eina/configure.ac 2010-07-27 17:28:40 UTC (rev 50549) +++ trunk/eina/configure.ac 2010-07-27 20:17:25 UTC (rev 50550) @@ -631,3 +631,4 @@ echo Installation...: make install (as root if needed, with 'su' or 'sudo') echo prefix...: $prefix echo +EFL_FORM_VOLTRON -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ enlightenment-svn mailing list enlightenment-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: discomfitor IN trunk/eina: . m4
On Sun, 1 Aug 2010 08:23:59 +0200 (CEST) Vincent Torri vto...@univ-evry.fr wrote: what the fuck is this ??? Vincent On Tue, 27 Jul 2010, Enlightenment SVN wrote: Log: when all files combine and the enable flag is set, form VOLTRON, DEFENDER OF THE UNIVERSE! Author: discomfitor Date: 2010-07-27 13:17:25 -0700 (Tue, 27 Jul 2010) New Revision: 50550 Added: trunk/eina/m4/efl_voltron.m4 Modified: trunk/eina/configure.ac Modified: trunk/eina/configure.ac === --- trunk/eina/configure.ac 2010-07-27 17:28:40 UTC (rev 50549) +++ trunk/eina/configure.ac 2010-07-27 20:17:25 UTC (rev 50550) @@ -631,3 +631,4 @@ echo Installation...: make install (as root if needed, with 'su' or 'sudo') echo prefix...: $prefix echo +EFL_FORM_VOLTRON -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ enlightenment-svn mailing list enlightenment-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel It's an m4 file that draws an ascii image of Voltron if you use the --enable-voltron flag with --amalgamation. It exists because of a joke along the lines of eina_hamster. -- Mike Blumenkrantz Zentific: Our boolean values are huge. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: discomfitor IN trunk/eina: . m4
so please revert it. It completely hides the configure options. Thise are a lot more important than a useless ascii art Vincent On Sun, 1 Aug 2010, Michael Blumenkrantz wrote: On Sun, 1 Aug 2010 08:23:59 +0200 (CEST) Vincent Torri vto...@univ-evry.fr wrote: what the fuck is this ??? Vincent On Tue, 27 Jul 2010, Enlightenment SVN wrote: Log: when all files combine and the enable flag is set, form VOLTRON, DEFENDER OF THE UNIVERSE! Author: discomfitor Date: 2010-07-27 13:17:25 -0700 (Tue, 27 Jul 2010) New Revision: 50550 Added: trunk/eina/m4/efl_voltron.m4 Modified: trunk/eina/configure.ac Modified: trunk/eina/configure.ac === --- trunk/eina/configure.ac 2010-07-27 17:28:40 UTC (rev 50549) +++ trunk/eina/configure.ac 2010-07-27 20:17:25 UTC (rev 50550) @@ -631,3 +631,4 @@ echo Installation...: make install (as root if needed, with 'su' or 'sudo') echo prefix...: $prefix echo +EFL_FORM_VOLTRON -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ enlightenment-svn mailing list enlightenment-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel It's an m4 file that draws an ascii image of Voltron if you use the --enable-voltron flag with --amalgamation. It exists because of a joke along the lines of eina_hamster. -- Mike Blumenkrantz Zentific: Our boolean values are huge. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: discomfitor IN trunk/eina: . m4
If you know enough to specify the --enable-voltron flag (since it will only show if you explicitly set it) and you then decide to manually set it, I really don't think that's an issue. -- Mike Blumenkrantz Zentific: Our boolean values are huge. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: discomfitor IN trunk/eina: . m4
On Sun, 1 Aug 2010, m...@zentific.com wrote: If you know enough to specify the --enable-voltron flag (since it will only show if you explicitly set it) and you then decide to manually set it, I really don't think that's an issue. not an issue. It's just completely useless and can just hide useful informations. Vincent -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: discomfitor IN trunk/eina: . m4
On Sun, 1 Aug 2010 10:41:51 +0200 (CEST) Vincent Torri vto...@univ-evry.fr said: On Sun, 1 Aug 2010, m...@zentific.com wrote: If you know enough to specify the --enable-voltron flag (since it will only show if you explicitly set it) and you then decide to manually set it, I really don't think that's an issue. not an issue. It's just completely useless and can just hide useful informations. only if you --enable-voltron... which does nothing other than add that banner. it's a sense of humor. nothing more. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: discomfitor IN trunk/eina: . m4
next we'll have 'found beer' pulled from e16 configure ;) On 2 August 2010 10:32, Carsten Haitzler ras...@rasterman.com wrote: On Sun, 1 Aug 2010 10:41:51 +0200 (CEST) Vincent Torri vto...@univ-evry.fr said: On Sun, 1 Aug 2010, m...@zentific.com wrote: If you know enough to specify the --enable-voltron flag (since it will only show if you explicitly set it) and you then decide to manually set it, I really don't think that's an issue. not an issue. It's just completely useless and can just hide useful informations. only if you --enable-voltron... which does nothing other than add that banner. it's a sense of humor. nothing more. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel