Hi,<br><br>   While running configure script for Cairo 1.8.6 on AIX, I got the below error.<br><br>configure:12762: checking how to run the C preprocessor<br>configure:12878: result: /usr/vac/bin/xlc_r -E<br>configure:12907: /usr/vac/bin/xlc_r -E  conftest.c<br>
&quot;conftest.c&quot;, line 19.9: 1506-213 (S) Macro name PACKAGE_VERSION cannot be redefined.<br>&quot;conftest.c&quot;, line 19.9: 1506-358 (I) &quot;PACKAGE_VERSION&quot; is defined on line 4 of conftest.c.<br>&quot;conftest.c&quot;, line 20.9: 1506-213 (S) Macro name PACKAGE_STRING cannot be redefined.<br>
&quot;conftest.c&quot;, line 20.9: 1506-358 (I) &quot;PACKAGE_STRING&quot; is defined on line 5 of conftest.c.<br>&quot;conftest.c&quot;, line 21.9: 1506-213 (S) Macro name PACKAGE_NAME cannot be redefined.<br>&quot;conftest.c&quot;, line 21.9: 1506-358 (I) &quot;PACKAGE_NAME&quot; is defined on line 2 of conftest.c.<br>
&quot;conftest.c&quot;, line 22.9: 1506-213 (S) Macro name PACKAGE_TARNAME cannot be redefined.<br>&quot;conftest.c&quot;, line 22.9: 1506-358 (I) &quot;PACKAGE_TARNAME&quot; is defined on line 3 of conftest.c.<br>configure:12913: $? = 1<br>
configure: failed program was:<br>| /* confdefs.h.  */<br>| #define PACKAGE_NAME &quot;cairo&quot;<br>| #define PACKAGE_TARNAME &quot;cairo&quot;<br>| #define PACKAGE_VERSION &quot;1.8.6&quot;<br>| #define PACKAGE_STRING &quot;cairo 1.8.6&quot;<br>
| #define PACKAGE_BUGREPORT &quot;<a href="http://bugs.freedesktop.org/enter_bug.cgi?product=cairo">http://bugs.freedesktop.org/enter_bug.cgi?product=cairo</a>&quot;<br>| #define STDC_HEADERS 1<br>| #define HAVE_SYS_TYPES_H 1<br>
| #define HAVE_SYS_STAT_H 1<br>| #define HAVE_STDLIB_H 1<br>| #define HAVE_STRING_H 1<br>| #define HAVE_MEMORY_H 1<br>| #define HAVE_STRINGS_H 1<br>| #define HAVE_INTTYPES_H 1<br>| #define HAVE_STDINT_H 1<br>| #define HAVE_UNISTD_H 1<br>
| #define HAVE_DLFCN_H 1<br>| #define LT_OBJDIR &quot;.libs/&quot;<br>| #define PACKAGE_VERSION USE_cairo_version_OR_cairo_version_string_INSTEAD<br>| #define PACKAGE_STRING USE_cairo_version_OR_cairo_version_string_INSTEAD<br>
| #define PACKAGE_NAME USE_cairo_INSTEAD<br>| #define PACKAGE_TARNAME USE_cairo_INSTEAD<br>| /* end confdefs.h.  */<br>| #ifdef __STDC__<br>| # include &lt;limits.h&gt;<br>| #else<br>| # include &lt;assert.h&gt;<br>| #endif<br>
|                    Syntax error<br><br><br>To eliminate the above error I had made changes in the 2 files. Can someone advise if these changes are appropriate ?<br><br>1. ./configure <br><br>     Removed the below lines from the configure script.<br>
<br><br>cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF<br>#define PACKAGE_VERSION USE_cairo_version_OR_cairo_version_string_INSTEAD<br>_ACEOF<br><br>cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF<br>#define PACKAGE_STRING USE_cairo_version_OR_cairo_version_string_INSTEAD<br>
_ACEOF<br><br>cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF<br>#define PACKAGE_NAME USE_cairo_INSTEAD<br>_ACEOF<br><br>cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF<br>#define PACKAGE_TARNAME USE_cairo_INSTEAD<br>_ACEOF<br><br>2. ./build/configure.ac.version<br>
<br>    Removed the below lines.<br><br>dnl Disable autoconf&#39;s version macros.  We try hard to not rebuild the entire<br>dnl library just because version changed.  The PACKAGE_VERSION* stuff in<br>dnl config.h is negating all the effort.<br>
AC_DEFINE(PACKAGE_VERSION,      [USE_cairo_version_OR_cairo_version_string_INSTEAD])<br>AC_DEFINE(PACKAGE_STRING,       [USE_cairo_version_OR_cairo_version_string_INSTEAD])<br>AC_DEFINE(PACKAGE_NAME,         [USE_cairo_INSTEAD])<br>
AC_DEFINE(PACKAGE_TARNAME,      [USE_cairo_INSTEAD])<br><br>Regards,<br>Shailendra<br><br><br><br>