00001
00002
00003 #include <config.h>
00004 const char * dummy[] = {
00005 "/** @file version.h",
00006 " * @brief Define preprocesor symbols for the library version",
00007 " */",
00008 "// Copyright (C) 2002,2004,2005,2006,2007,2008,2009,2010 Olly Betts",
00009 "//",
00010 "// This program is free software; you can redistribute it and/or",
00011 "// modify it under the terms of the GNU General Public License as",
00012 "// published by the Free Software Foundation; either version 2 of the",
00013 "// License, or (at your option) any later version.",
00014 "//",
00015 "// This program is distributed in the hope that it will be useful,",
00016 "// but WITHOUT ANY WARRANTY; without even the implied warranty of",
00017 "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",
00018 "// GNU General Public License for more details.",
00019 "//",
00020 "// You should have received a copy of the GNU General Public License",
00021 "// along with this program; if not, write to the Free Software",
00022 "// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA",
00023 "",
00024 "#ifndef XAPIAN_INCLUDED_VERSION_H",
00025 "#define XAPIAN_INCLUDED_VERSION_H",
00026 #ifdef __GNUC__
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #define V2(A,B) J2(A,B)
00048 #define J2(A,B) g++ A##.##B
00049 #define V3(A,B,C) J3(A,B,C)
00050 #define J3(A,B,C) g++ A##.##B##.##C
00051 "",
00052 "#ifdef __GNUC__",
00053 "#if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0)",
00054 "#error Xapian no longer supports GCC < 3.1",
00055 "#else",
00056 #ifndef __GXX_ABI_VERSION
00057 #error GCC does not have __GXX_ABI_VERSION defined
00058 #endif
00059
00060
00061 "#if !defined(__GXX_ABI_VERSION) || __GXX_ABI_VERSION != ",__GXX_ABI_VERSION,
00062 "#error The C++ ABI version of compiler you are using does not match",
00063 "#error that of the compiler used to build the library. The versions",
00064 "#error must match or your program will not work correctly.",
00065 #ifdef __GNUC_PATCHLEVEL__
00066 "#error The Xapian library was built with ",V3(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__),
00067 #else
00068 "#error The Xapian library was built with ",V2(__GNUC__,__GNUC_MINOR__),
00069 #endif
00070 "#endif",
00071 "",
00072
00073
00074 #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || __GNUC__ >= 4
00075 #ifdef _GLIBCXX_DEBUG
00076 "#ifndef _GLIBCXX_DEBUG",
00077 "#error This library was compiled with _GLIBCXX_DEBUG defined, but you",
00078 "#error have not specified this flag. The settings must match or your",
00079 "#error program will not work correctly.",
00080 "#endif",
00081 #else
00082 "#ifdef _GLIBCXX_DEBUG",
00083 "#error You are compiling with _GLIBCXX_DEBUG defined, but the library",
00084 "#error was not compiled with this flag. The settings must match or your",
00085 "#error program will not work correctly.",
00086 "#endif",
00087 #endif
00088 #endif
00089 "#endif",
00090 "#endif",
00091 "",
00092 #endif
00093 #ifdef XAPIAN_ENABLE_VISIBILITY
00094 "/// The library was compiled with GCC's -fvisibility=hidden option.",
00095 "#define XAPIAN_ENABLE_VISIBILITY",
00096 "",
00097 #endif
00098 "/// The version of Xapian as a C string literal.",
00099 "#define XAPIAN_VERSION ",STRING_VERSION,
00100 "",
00101 "/** The major component of the Xapian version.",
00102 " * E.g. for Xapian 1.0.14 this would be: 1",
00103 " */",
00104 "#define XAPIAN_MAJOR_VERSION ",MAJOR_VERSION,
00105 "",
00106 "/** The minor component of the Xapian version.",
00107 " * E.g. for Xapian 1.0.14 this would be: 0",
00108 " */",
00109 "#define XAPIAN_MINOR_VERSION ",MINOR_VERSION,
00110 "",
00111 "/** The revision component of the Xapian version.",
00112 " * E.g. for Xapian 1.0.14 this would be: 14",
00113 " */",
00114 "#define XAPIAN_REVISION ",REVISION,
00115 "",
00116 "/// XAPIAN_HAS_BRASS_BACKEND Defined if the brass backend is enabled.",
00117 #ifdef XAPIAN_HAS_BRASS_BACKEND
00118 "#define XAPIAN_HAS_BRASS_BACKEND 1",
00119 #else
00120 "/* #undef XAPIAN_HAS_BRASS_BACKEND */",
00121 #endif
00122 "",
00123 "/// XAPIAN_HAS_CHERT_BACKEND Defined if the chert backend is enabled.",
00124 #ifdef XAPIAN_HAS_CHERT_BACKEND
00125 "#define XAPIAN_HAS_CHERT_BACKEND 1",
00126 #else
00127 "/* #undef XAPIAN_HAS_CHERT_BACKEND */",
00128 #endif
00129 "",
00130 "/// XAPIAN_HAS_FLINT_BACKEND Defined if the flint backend is enabled.",
00131 #ifdef XAPIAN_HAS_FLINT_BACKEND
00132 "#define XAPIAN_HAS_FLINT_BACKEND 1",
00133 #else
00134 "/* #undef XAPIAN_HAS_FLINT_BACKEND */",
00135 #endif
00136 "",
00137 "/// XAPIAN_HAS_INMEMORY_BACKEND Defined if the inmemory backend is enabled.",
00138 #ifdef XAPIAN_HAS_INMEMORY_BACKEND
00139 "#define XAPIAN_HAS_INMEMORY_BACKEND 1",
00140 #else
00141 "/* #undef XAPIAN_HAS_INMEMORY_BACKEND */",
00142 #endif
00143 "",
00144 "/// XAPIAN_HAS_REMOTE_BACKEND Defined if the remote backend is enabled.",
00145 #ifdef XAPIAN_HAS_REMOTE_BACKEND
00146 "#define XAPIAN_HAS_REMOTE_BACKEND 1",
00147 #else
00148 "/* #undef XAPIAN_HAS_REMOTE_BACKEND */",
00149 #endif
00150 "",
00151 "#endif /* XAPIAN_INCLUDED_VERSION_H */"
00152 };