Enlightenment CVS committal Author : raster Project : e17 Module : libs/eet
Dir : e17/libs/eet Modified Files: configure.in Log Message: add a check for c99 %a format support - so all those people with mysterious errors will know why and who to contact for fixes (not us!) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/eet/configure.in,v retrieving revision 1.47 retrieving revision 1.48 diff -u -3 -r1.47 -r1.48 --- configure.in 12 Jan 2006 05:43:07 -0000 1.47 +++ configure.in 14 Jan 2006 08:59:42 -0000 1.48 @@ -55,17 +55,39 @@ AC_MSG_CHECKING([value of the null pointer]) AC_TRY_RUN([ #include <stdlib.h> -int main () { -void *foo = NULL; -int bar = (int) foo; - -return (int) foo;} -], AC_MSG_RESULT([\o/]), [ - AC_MSG_RESULT([o_O]) +int main (int argc, char **argv) { + void *foo = NULL; + int bar = (int)foo; + return (int)foo; +} +], AC_MSG_RESULT([yes]), [ + AC_MSG_RESULT([no]) AC_MSG_WARN([Your system is a bit too funny, eet might not work properly]) ], AC_MSG_WARN([Cannot check when cross-compiling -- assuming null is okay]) ) +AC_MSG_CHECKING([OS libc C99 '%a' support]) +AC_TRY_RUN([ +#include <stdio.h> +int main(int argc, char **argv) { + char buf[4096]; + float ival = 0.1234, oval = 0.0; + snprintf(buf, sizeof(buf), "%a", (double)ival); + sscanf(buf, "%a", &oval); + if (ival != oval) return -1; + return 0; +} +], AC_MSG_RESULT([yes]), [ + AC_MSG_RESULT([no]) + AC_MSG_ERROR([Unsupported Operating System! +Your OS does not support C99's '%a' string format. Eet cannot function without +it. Please contact your OS vendor to get updates for C99 '%a' floating point +format read/write support or change operating systems for one with support +for an already very old standard. (Linux is known to support this, as is +Solaris 10)]) +], AC_MSG_WARN([Cannot check when cross-compiling -- assuming C99 '%a' support is OK]) +) + if test "x${bindir}" = 'x${exec_prefix}/bin'; then if test "x${exec_prefix}" = "xNONE"; then if test "x${prefix}" = "xNONE"; then ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs