<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>The openjpeg header file seems to do some weird things with bool, true, false definitions. It has a HAVE_STD_BOOL_H flag but is not checked by cmake. I was getting some problems with these definitions on an optimized version on my apple (gcc4, G5). I just added a configure file to check for this header. This seems like the correct way to deal with the problem. I am not sure if this is more apple wackyness or what. Perhaps this can be checked it? Probably needs a few comments added, but I wanted to keep the diff simple.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Index: Utilities/openjpeg/CMakeLists.txt</DIV><DIV>===================================================================</DIV><DIV>RCS file: /cvsroot/Insight/Insight/Utilities/openjpeg/CMakeLists.txt,v</DIV><DIV>retrieving revision 1.8</DIV><DIV>diff -r1.8 CMakeLists.txt</DIV><DIV>24a25,30</DIV><DIV>&gt; </DIV><DIV>&gt; CHECK_INCLUDE_FILES("stdbool.h" HAVE_STDBOOL_H)     </DIV><DIV>&gt; CONFIGURE_FILE(${ITKOpenJPEG_SOURCE_DIR}/openjpeg_config.h.in</DIV><DIV>&gt;   ${ITKOpenJPEG_BINARY_DIR}/openjpeg_config.h) </DIV><DIV>&gt; INCLUDE_DIRECTORIES(${ITKOpenJPEG_BINARY_DIR})</DIV><DIV>&gt;             </DIV><DIV>Index: Utilities/openjpeg/openjpeg.h</DIV><DIV>===================================================================</DIV><DIV>RCS file: /cvsroot/Insight/Insight/Utilities/openjpeg/openjpeg.h,v</DIV><DIV>retrieving revision 1.5</DIV><DIV>diff -r1.5 openjpeg.h</DIV><DIV>32c32</DIV><DIV>&lt; </DIV><DIV>---</DIV><DIV>&gt; #include "openjpeg_config.h"</DIV><DIV>cvs diff: Diffing Utilities/gdcm/src</DIV><DIV>Index: Utilities/gdcm/src/CMakeLists.txt</DIV><DIV>===================================================================</DIV><DIV>RCS file: /cvsroot/Insight/Insight/Utilities/gdcm/src/CMakeLists.txt,v</DIV><DIV>retrieving revision 1.17</DIV><DIV>diff -r1.17 CMakeLists.txt</DIV><DIV>9a10</DIV><DIV>&gt;   ${ITKOpenJPEG_BINARY_DIR}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I also added this file too.</DIV><DIV>/Insight blowek1$ cat Utilities/openjpeg/openjpeg_config.h.in </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>/* system support for &lt;stdbool.h&gt; */</DIV><DIV>#cmakedefine HAVE_STDBOOL_H</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks,</DIV><DIV>Brad</DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">========================================================</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Bradley Lowekamp <SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Management Systems Designers Contractor for</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Office of High Performance Computing and Communications</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">National Library of Medicine<SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><A href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</A></FONT></P>  </DIV><BR></BODY></HTML>