From 413435a79edf70273034798bf5b3d7163cd04141 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Wed, 22 Sep 2010 06:31:55 +0300 Subject: [PATCH] configure: improve error message of sizeof(uuid_t) check --- configure.ac | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6f9f412b..a9f77e30 100644 --- a/configure.ac +++ b/configure.ac @@ -210,11 +210,24 @@ typedef struct { guint8 node[6]; } uuid_t; ]]], - [return(sizeof(uuid_t) == 16 ? 0 : 1);]), + [if (sizeof(uuid_t) == 16) { + return(0); + } else { + printf("\n\nOoops, sizeof(uuid_t) is %" G_GSIZE_FORMAT ".\n\n", sizeof(uuid_t)); + return(1); + }]), [AC_MSG_RESULT(yes)], [AC_MSG_FAILURE([sizeof(uuid_t) is not 16 -Please notify the SIPE developers and provide the following information: +Please notify the SIPE developers. + +Copy & paste all lines starting with the line + + checking that sizeof(uuid_t) is 16... + +to the report and attach the file "config.log". + +Compiler information: host: $host build: $build -- 2.11.4.GIT